xref: /freebsd/contrib/unbound/configure (revision 38a52bd3)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.17.0.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
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 or
279$0: https://github.com/NLnetLabs/unbound/issues about your
280$0: system, including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='unbound'
593PACKAGE_TARNAME='unbound'
594PACKAGE_VERSION='1.17.0'
595PACKAGE_STRING='unbound 1.17.0'
596PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='LTLIBOBJS
636date
637version
638INSTALLTARGET
639ALLTARGET
640SOURCEFILE
641SOURCEDETERMINE
642IPSET_OBJ
643IPSET_SRC
644IPSECMOD_HEADER
645IPSECMOD_OBJ
646CACHEDB_OBJ
647CACHEDB_SRC
648DNSCRYPT_OBJ
649DNSCRYPT_SRC
650ENABLE_DNSCRYPT
651ENABLE_DNSCRYPT_XCHACHA20
652DNSTAP_OBJ
653DNSTAP_SRC
654DNSTAP_SOCKET_TESTBIN
655DNSTAP_SOCKET_PATH
656opt_dnstap_socket_path
657ENABLE_DNSTAP
658PROTOC_C
659UBSYMS
660EXTRALINK
661COMMON_OBJ_ALL_SYMBOLS
662LIBOBJ_WITHOUT_CTIME
663LIBOBJ_WITHOUT_CTIMEARC4
664WIN_CHECKCONF_OBJ_LINK
665WIN_CONTROL_OBJ_LINK
666WIN_UBANCHOR_OBJ_LINK
667WIN_HOST_OBJ_LINK
668WIN_DAEMON_OBJ_LINK
669WIN_DAEMON_OBJ
670WIN_DAEMON_SRC
671WINAPPS
672WINDRES
673CHECKLOCK_OBJ
674staticexe
675PC_LIBEVENT_DEPENDENCY
676UNBOUND_EVENT_UNINSTALL
677UNBOUND_EVENT_INSTALL
678SUBNET_HEADER
679SUBNET_OBJ
680PC_LIBBSD_DEPENDENCY
681SSLLIB
682HAVE_SSL
683PC_CRYPTO_DEPENDENCY
684CONFIG_DATE
685GCC_DOCKER_LINTFLAGS
686NETBSD_LINTFLAGS
687PYUNBOUND_UNINSTALL
688PYUNBOUND_INSTALL
689PYUNBOUND_TARGET
690PYUNBOUND_OBJ
691WITH_PYUNBOUND
692PYTHONMOD_UNINSTALL
693PYTHONMOD_INSTALL
694PYTHONMOD_HEADER
695PYTHONMOD_OBJ
696WITH_PYTHONMODULE
697swig
698SWIG_LIB
699SWIG
700PC_PY_DEPENDENCY
701PYTHON_LIBS
702PY_MAJOR_VERSION
703PYTHON_SITE_PKG
704PYTHON_LDFLAGS
705PYTHON_CPPFLAGS
706PYTHON
707PYTHON_VERSION
708DYNLIBMOD_EXTRALIBS
709DYNLIBMOD_HEADER
710DYNLIBMOD_OBJ
711WITH_DYNLIBMODULE
712PTHREAD_CFLAGS_ONLY
713PTHREAD_CFLAGS
714PTHREAD_LIBS
715PTHREAD_CC
716ax_pthread_config
717ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
718SLDNS_ALLOCCHECK_EXTRA_OBJ
719USE_SYSTEMD_FALSE
720USE_SYSTEMD_TRUE
721SYSTEMD_DAEMON_LIBS
722SYSTEMD_DAEMON_CFLAGS
723SYSTEMD_LIBS
724SYSTEMD_CFLAGS
725RUNTIME_PATH
726LIBOBJS
727PKG_CONFIG_LIBDIR
728PKG_CONFIG_PATH
729PKG_CONFIG
730LT_SYS_LIBRARY_PATH
731OTOOL64
732OTOOL
733LIPO
734NMEDIT
735DSYMUTIL
736MANIFEST_TOOL
737AWK
738RANLIB
739ac_ct_AR
740DLLTOOL
741OBJDUMP
742LN_S
743NM
744ac_ct_DUMPBIN
745DUMPBIN
746LD
747FGREP
748SED
749LIBTOOL
750AR
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759libtool
760STRIP
761doxygen
762YFLAGS
763YACC
764LEXLIB
765LEX_OUTPUT_ROOT
766LEX
767debug_enabled
768DEPFLAG
769UNBOUND_USERNAME
770UNBOUND_ROOTCERT_FILE
771UNBOUND_ROOTKEY_FILE
772UNBOUND_PIDFILE
773UNBOUND_SHARE_DIR
774UNBOUND_CHROOT_DIR
775UNBOUND_RUN_DIR
776ub_conf_dir
777ub_conf_file
778UNBOUND_LOCALSTATE_DIR
779UNBOUND_SYSCONF_DIR
780UNBOUND_SBIN_DIR
781EGREP
782GREP
783CPP
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791LIBUNBOUND_AGE
792LIBUNBOUND_REVISION
793LIBUNBOUND_CURRENT
794UNBOUND_VERSION_MICRO
795UNBOUND_VERSION_MINOR
796UNBOUND_VERSION_MAJOR
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816runstatedir
817localstatedir
818sharedstatedir
819sysconfdir
820datadir
821datarootdir
822libexecdir
823sbindir
824bindir
825program_transform_name
826prefix
827exec_prefix
828PACKAGE_URL
829PACKAGE_BUGREPORT
830PACKAGE_STRING
831PACKAGE_VERSION
832PACKAGE_TARNAME
833PACKAGE_NAME
834PATH_SEPARATOR
835SHELL'
836ac_subst_files=''
837ac_user_opts='
838enable_option_checking
839with_conf_file
840with_run_dir
841with_chroot_dir
842with_share_dir
843with_pidfile
844with_rootkey_file
845with_rootcert_file
846with_username
847enable_checking
848enable_debug
849enable_flto
850enable_pie
851enable_relro_now
852enable_shared
853enable_static
854with_pic
855enable_fast_install
856with_aix_soname
857with_gnu_ld
858with_sysroot
859enable_libtool_lock
860enable_rpath
861enable_largefile
862enable_systemd
863enable_alloc_checks
864enable_alloc_lite
865enable_alloc_nonregional
866with_pthreads
867with_solaris_threads
868with_syslog_facility
869with_dynlibmodule
870with_pyunbound
871with_pythonmodule
872enable_swig_version_check
873with_nss
874with_nettle
875with_ssl
876with_libbsd
877enable_sha1
878enable_sha2
879enable_subnet
880enable_gost
881enable_ecdsa
882enable_dsa
883with_deprecate_rsa_1024
884enable_ed25519
885enable_ed448
886enable_event_api
887enable_tfo_client
888enable_tfo_server
889with_libevent
890with_libexpat
891with_libhiredis
892with_libnghttp2
893enable_static_exe
894enable_fully_static
895enable_lock_checks
896enable_allsymbols
897enable_dnstap
898with_dnstap_socket_path
899with_protobuf_c
900enable_dnscrypt
901with_libsodium
902enable_cachedb
903enable_ipsecmod
904enable_ipset
905with_libmnl
906enable_explicit_port_randomisation
907enable_linux_ip_local_port_range
908with_libunbound_only
909'
910      ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP
919YACC
920YFLAGS
921LT_SYS_LIBRARY_PATH
922PKG_CONFIG
923PKG_CONFIG_PATH
924PKG_CONFIG_LIBDIR
925SYSTEMD_CFLAGS
926SYSTEMD_LIBS
927SYSTEMD_DAEMON_CFLAGS
928SYSTEMD_DAEMON_LIBS
929PYTHON_VERSION'
930
931
932# Initialize some variables set by options.
933ac_init_help=
934ac_init_version=false
935ac_unrecognized_opts=
936ac_unrecognized_sep=
937# The variables have the same names as the options, with
938# dashes changed to underlines.
939cache_file=/dev/null
940exec_prefix=NONE
941no_create=
942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
950verbose=
951x_includes=NONE
952x_libraries=NONE
953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
959# (The list follows the same order as the GNU Coding Standards.)
960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
968runstatedir='${localstatedir}/run'
969includedir='${prefix}/include'
970oldincludedir='/usr/include'
971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
980
981ac_prev=
982ac_dashdash=
983for ac_option
984do
985  # If the previous option needs an argument, assign it.
986  if test -n "$ac_prev"; then
987    eval $ac_prev=\$ac_option
988    ac_prev=
989    continue
990  fi
991
992  case $ac_option in
993  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994  *=)   ac_optarg= ;;
995  *)    ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error $? "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048	 ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -runstatedir | --runstatedir | --runstatedi | --runstated \
1222  | --runstate | --runstat | --runsta | --runst | --runs \
1223  | --run | --ru | --r)
1224    ac_prev=runstatedir ;;
1225  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227  | --run=* | --ru=* | --r=*)
1228    runstatedir=$ac_optarg ;;
1229
1230  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231    ac_prev=sbindir ;;
1232  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233  | --sbi=* | --sb=*)
1234    sbindir=$ac_optarg ;;
1235
1236  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238  | --sharedst | --shareds | --shared | --share | --shar \
1239  | --sha | --sh)
1240    ac_prev=sharedstatedir ;;
1241  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244  | --sha=* | --sh=*)
1245    sharedstatedir=$ac_optarg ;;
1246
1247  -site | --site | --sit)
1248    ac_prev=site ;;
1249  -site=* | --site=* | --sit=*)
1250    site=$ac_optarg ;;
1251
1252  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253    ac_prev=srcdir ;;
1254  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255    srcdir=$ac_optarg ;;
1256
1257  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258  | --syscon | --sysco | --sysc | --sys | --sy)
1259    ac_prev=sysconfdir ;;
1260  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262    sysconfdir=$ac_optarg ;;
1263
1264  -target | --target | --targe | --targ | --tar | --ta | --t)
1265    ac_prev=target_alias ;;
1266  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267    target_alias=$ac_optarg ;;
1268
1269  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270    verbose=yes ;;
1271
1272  -version | --version | --versio | --versi | --vers | -V)
1273    ac_init_version=: ;;
1274
1275  -with-* | --with-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=\$ac_optarg ;;
1290
1291  -without-* | --without-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error $? "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=no ;;
1306
1307  --x)
1308    # Obsolete; use --with-x.
1309    with_x=yes ;;
1310
1311  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312  | --x-incl | --x-inc | --x-in | --x-i)
1313    ac_prev=x_includes ;;
1314  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316    x_includes=$ac_optarg ;;
1317
1318  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320    ac_prev=x_libraries ;;
1321  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323    x_libraries=$ac_optarg ;;
1324
1325  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326Try \`$0 --help' for more information"
1327    ;;
1328
1329  *=*)
1330    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331    # Reject names that are not valid shell variable names.
1332    case $ac_envvar in #(
1333      '' | [0-9]* | *[!_$as_cr_alnum]* )
1334      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335    esac
1336    eval $ac_envvar=\$ac_optarg
1337    export $ac_envvar ;;
1338
1339  *)
1340    # FIXME: should be removed in autoconf 3.0.
1341    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345    ;;
1346
1347  esac
1348done
1349
1350if test -n "$ac_prev"; then
1351  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352  as_fn_error $? "missing argument to $ac_option"
1353fi
1354
1355if test -n "$ac_unrecognized_opts"; then
1356  case $enable_option_checking in
1357    no) ;;
1358    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360  esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365		datadir sysconfdir sharedstatedir localstatedir includedir \
1366		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367		libdir localedir mandir runstatedir
1368do
1369  eval ac_val=\$$ac_var
1370  # Remove trailing slashes.
1371  case $ac_val in
1372    */ )
1373      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374      eval $ac_var=\$ac_val;;
1375  esac
1376  # Be sure to have absolute directory names.
1377  case $ac_val in
1378    [\\/$]* | ?:[\\/]* )  continue;;
1379    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380  esac
1381  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393  if test "x$build_alias" = x; then
1394    cross_compiling=maybe
1395  elif test "x$build_alias" != "x$host_alias"; then
1396    cross_compiling=yes
1397  fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
1404
1405
1406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409  as_fn_error $? "working directory cannot be determined"
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411  as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures unbound 1.17.0 to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking ...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502                          [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                          [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR            user executables [EPREFIX/bin]
1515  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of unbound 1.17.0:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-option-checking  ignore unrecognized --enable/--with options
1552  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554  --enable-checking       Enable warnings, asserts, makefile-dependencies
1555  --enable-debug          same as enable-checking
1556  --disable-flto          Disable link-time optimization (gcc specific option)
1557  --enable-pie            Enable Position-Independent Executable (eg. to fully
1558                          benefit from ASLR, small performance penalty)
1559  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1560                          NOW, to protect GOT and .dtor areas)
1561  --enable-shared[=PKGS]  build shared libraries [default=yes]
1562  --enable-static[=PKGS]  build static libraries [default=yes]
1563  --enable-fast-install[=PKGS]
1564                          optimize for fast installation [default=yes]
1565  --disable-libtool-lock  avoid locking (might break parallel builds)
1566  --disable-rpath         disable hardcoded rpath (default=enabled)
1567  --disable-largefile     omit support for large files
1568  --enable-systemd        compile with systemd support
1569  --enable-alloc-checks   enable to memory allocation statistics, for debug
1570                          purposes
1571  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1572                          purposes
1573  --enable-alloc-nonregional
1574                          enable nonregional allocs, slow but exposes regional
1575                          allocations to other memory purifiers, for debug
1576                          purposes
1577  --disable-swig-version-check
1578                          Disable swig version check to build python modules
1579                          with older swig even though that is unreliable
1580  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1581                          support
1582  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1583  --enable-subnet         Enable client subnet
1584  --disable-gost          Disable GOST support
1585  --disable-ecdsa         Disable ECDSA support
1586  --disable-dsa           Disable DSA support
1587  --disable-ed25519       Disable ED25519 support
1588  --disable-ed448         Disable ED448 support
1589  --enable-event-api      Enable (experimental) pluggable event base
1590                          libunbound API installed to unbound-event.h
1591  --enable-tfo-client     Enable TCP Fast Open for client mode
1592  --enable-tfo-server     Enable TCP Fast Open for server mode
1593  --enable-static-exe     enable to compile executables statically against
1594                          (event) uninstalled libs, for debug purposes
1595  --enable-fully-static   enable to compile fully static
1596  --enable-lock-checks    enable to check lock and unlock calls, for debug
1597                          purposes
1598  --enable-allsymbols     export all symbols from libunbound and link binaries
1599                          to it, smaller install size but libunbound export
1600                          table is polluted by internal symbols
1601  --enable-dnstap         Enable dnstap support (requires protobuf-c)
1602  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1603  --enable-cachedb        enable cachedb module that can use external cache
1604                          storage
1605  --enable-ipsecmod       Enable ipsecmod module that facilitates
1606                          opportunistic IPsec
1607  --enable-ipset          enable ipset module
1608  --disable-explicit-port-randomisation
1609                          disable explicit source port randomisation and rely
1610                          on the kernel to provide random source ports
1611  --enable-linux-ip-local-port-range
1612                          Define this to enable use of
1613                          /proc/sys/net/ipv4/ip_local_port_range as a default
1614                          outgoing port range. This is only for the libunbound
1615                          on Linux and does not affect unbound resolving
1616                          daemon itself. This may severely limit the number of
1617                          available outgoing ports and thus decrease
1618                          randomness. Define this only when the target system
1619                          restricts (e.g. some of SELinux enabled
1620                          distributions) the use of non-ephemeral ports.
1621
1622Optional Packages:
1623  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1624  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1625  --with-conf-file=path   Pathname to the Unbound configuration file
1626  --with-run-dir=path     set default directory to chdir to (by default dir
1627                          part of cfg file)
1628  --with-chroot-dir=path  set default directory to chroot to (by default same
1629                          as run-dir)
1630  --with-share-dir=path   set default directory with shared data (by default
1631                          same as share/unbound)
1632  --with-pidfile=filename set default pathname to unbound pidfile (default
1633                          run-dir/unbound.pid)
1634  --with-rootkey-file=filename
1635                          set default pathname to root key file (default
1636                          run-dir/root.key). This file is read and written.
1637  --with-rootcert-file=filename
1638                          set default pathname to root update certificate file
1639                          (default run-dir/icannbundle.pem). This file need
1640                          not exist if you are content with the builtin.
1641  --with-username=user    set default user that unbound changes to (default
1642                          user is unbound)
1643  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1644                          both]
1645  --with-aix-soname=aix|svr4|both
1646                          shared library versioning (aka "SONAME") variant to
1647                          provide on AIX, [default=aix].
1648  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1649  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1650                          compiler's sysroot if not specified).
1651  --with-pthreads         use pthreads library, or --without-pthreads to
1652                          disable threading support.
1653  --with-solaris-threads  use solaris native thread library.
1654  --with-syslog-facility=LOCAL0 - LOCAL7
1655                          set SYSLOG_FACILITY, default DAEMON
1656  --with-dynlibmodule     build dynamic library module, or
1657                          --without-dynlibmodule to disable it. (default=no)
1658  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1659                          (default=no)
1660  --with-pythonmodule     build Python module, or --without-pythonmodule to
1661                          disable script engine. (default=no)
1662  --with-nss=path         use libnss instead of openssl, installed at path.
1663  --with-nettle=path      use libnettle as crypto library, installed at path.
1664  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1665                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1666                          /usr or specify like /usr/include/openssl11)
1667  --with-libbsd           Use portable libbsd functions
1668  --with-deprecate-rsa-1024
1669                          Deprecate RSA 1024 bit length, makes that an
1670                          unsupported key, for use when OpenSSL FIPS refuses
1671                          1024 bit verification
1672  --with-libevent=pathname
1673                          use libevent (will check /usr/local /opt/local
1674                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1675                          an explicit path). Slower, but allows use of large
1676                          outgoing port ranges.
1677  --with-libexpat=path    specify explicit path for libexpat.
1678  --with-libhiredis=path  specify explicit path for libhiredis.
1679  --with-libnghttp2=path  specify explicit path for libnghttp2.
1680  --with-dnstap-socket-path=pathname
1681                          set default dnstap socket path
1682  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1683  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1684  --with-libmnl=path      specify explicit path for libmnl.
1685  --with-libunbound-only  do not build daemon and tool programs
1686
1687Some influential environment variables:
1688  CC          C compiler command
1689  CFLAGS      C compiler flags
1690  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1691              nonstandard directory <lib dir>
1692  LIBS        libraries to pass to the linker, e.g. -l<library>
1693  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1694              you have headers in a nonstandard directory <include dir>
1695  CPP         C preprocessor
1696  YACC        The `Yet Another Compiler Compiler' implementation to use.
1697              Defaults to the first program found out of: `bison -y', `byacc',
1698              `yacc'.
1699  YFLAGS      The list of arguments that will be passed by default to $YACC.
1700              This script will default YFLAGS to the empty string to avoid a
1701              default value of `-d' given by some make applications.
1702  LT_SYS_LIBRARY_PATH
1703              User-defined run-time library search path.
1704  PKG_CONFIG  path to pkg-config utility
1705  PKG_CONFIG_PATH
1706              directories to add to pkg-config's search path
1707  PKG_CONFIG_LIBDIR
1708              path overriding pkg-config's built-in search path
1709  SYSTEMD_CFLAGS
1710              C compiler flags for SYSTEMD, overriding pkg-config
1711  SYSTEMD_LIBS
1712              linker flags for SYSTEMD, overriding pkg-config
1713  SYSTEMD_DAEMON_CFLAGS
1714              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1715  SYSTEMD_DAEMON_LIBS
1716              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1717  PYTHON_VERSION
1718              The installed Python version to use, for example '2.3'. This
1719              string will be appended to the Python interpreter canonical
1720              name.
1721
1722Use these variables to override the choices made by `configure' or to help
1723it to find libraries and programs with nonstandard names/locations.
1724
1725Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1726_ACEOF
1727ac_status=$?
1728fi
1729
1730if test "$ac_init_help" = "recursive"; then
1731  # If there are subdirs, report their specific --help.
1732  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733    test -d "$ac_dir" ||
1734      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735      continue
1736    ac_builddir=.
1737
1738case "$ac_dir" in
1739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740*)
1741  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742  # A ".." for each directory in $ac_dir_suffix.
1743  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744  case $ac_top_builddir_sub in
1745  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747  esac ;;
1748esac
1749ac_abs_top_builddir=$ac_pwd
1750ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751# for backward compatibility:
1752ac_top_builddir=$ac_top_build_prefix
1753
1754case $srcdir in
1755  .)  # We are building in place.
1756    ac_srcdir=.
1757    ac_top_srcdir=$ac_top_builddir_sub
1758    ac_abs_top_srcdir=$ac_pwd ;;
1759  [\\/]* | ?:[\\/]* )  # Absolute name.
1760    ac_srcdir=$srcdir$ac_dir_suffix;
1761    ac_top_srcdir=$srcdir
1762    ac_abs_top_srcdir=$srcdir ;;
1763  *) # Relative name.
1764    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765    ac_top_srcdir=$ac_top_build_prefix$srcdir
1766    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767esac
1768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770    cd "$ac_dir" || { ac_status=$?; continue; }
1771    # Check for guested configure.
1772    if test -f "$ac_srcdir/configure.gnu"; then
1773      echo &&
1774      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775    elif test -f "$ac_srcdir/configure"; then
1776      echo &&
1777      $SHELL "$ac_srcdir/configure" --help=recursive
1778    else
1779      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780    fi || ac_status=$?
1781    cd "$ac_pwd" || { ac_status=$?; break; }
1782  done
1783fi
1784
1785test -n "$ac_init_help" && exit $ac_status
1786if $ac_init_version; then
1787  cat <<\_ACEOF
1788unbound configure 1.17.0
1789generated by GNU Autoconf 2.69
1790
1791Copyright (C) 2012 Free Software Foundation, Inc.
1792This configure script is free software; the Free Software Foundation
1793gives unlimited permission to copy, distribute and modify it.
1794_ACEOF
1795  exit
1796fi
1797
1798## ------------------------ ##
1799## Autoconf initialization. ##
1800## ------------------------ ##
1801
1802# ac_fn_c_try_compile LINENO
1803# --------------------------
1804# Try to compile conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_compile ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext
1809  if { { ac_try="$ac_compile"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_compile") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825	 test -z "$ac_c_werror_flag" ||
1826	 test ! -s conftest.err
1827       } && test -s conftest.$ac_objext; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836  as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_compile
1839
1840# ac_fn_c_try_cpp LINENO
1841# ----------------------
1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_c_try_cpp ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  if { { ac_try="$ac_cpp conftest.$ac_ext"
1847case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854  ac_status=$?
1855  if test -s conftest.err; then
1856    grep -v '^ *+' conftest.err >conftest.er1
1857    cat conftest.er1 >&5
1858    mv -f conftest.er1 conftest.err
1859  fi
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; } > conftest.i && {
1862	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863	 test ! -s conftest.err
1864       }; then :
1865  ac_retval=0
1866else
1867  $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870    ac_retval=1
1871fi
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_cpp
1876
1877# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878# -------------------------------------------------------
1879# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880# the include files in INCLUDES and setting the cache variable VAR
1881# accordingly.
1882ac_fn_c_check_header_mongrel ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  if eval \${$3+:} false; then :
1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889  $as_echo_n "(cached) " >&6
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894else
1895  # Is the header compilable?
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897$as_echo_n "checking $2 usability... " >&6; }
1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900$4
1901#include <$2>
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904  ac_header_compiler=yes
1905else
1906  ac_header_compiler=no
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910$as_echo "$ac_header_compiler" >&6; }
1911
1912# Is the header present?
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914$as_echo_n "checking $2 presence... " >&6; }
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_cpp "$LINENO"; then :
1920  ac_header_preproc=yes
1921else
1922  ac_header_preproc=no
1923fi
1924rm -f conftest.err conftest.i conftest.$ac_ext
1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926$as_echo "$ac_header_preproc" >&6; }
1927
1928# So?  What about this header?
1929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1930  yes:no: )
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935    ;;
1936  no:yes:* )
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1940$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1944$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947( $as_echo "## --------------------------------------------------------------------------------------- ##
1948## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1949## --------------------------------------------------------------------------------------- ##"
1950     ) | sed "s/^/$as_me: WARNING:     /" >&2
1951    ;;
1952esac
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954$as_echo_n "checking for $2... " >&6; }
1955if eval \${$3+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957else
1958  eval "$3=\$ac_header_compiler"
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963fi
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_header_mongrel
1967
1968# ac_fn_c_try_run LINENO
1969# ----------------------
1970# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971# that executables *can* be run.
1972ac_fn_c_try_run ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if { { ac_try="$ac_link"
1976case "(($ac_try" in
1977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978  *) ac_try_echo=$ac_try;;
1979esac
1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981$as_echo "$ac_try_echo"; } >&5
1982  (eval "$ac_link") 2>&5
1983  ac_status=$?
1984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986  { { case "(($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_try") 2>&5
1993  ac_status=$?
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; }; }; then :
1996  ac_retval=0
1997else
1998  $as_echo "$as_me: program exited with status $ac_status" >&5
1999       $as_echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
2002       ac_retval=$ac_status
2003fi
2004  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006  as_fn_set_status $ac_retval
2007
2008} # ac_fn_c_try_run
2009
2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011# -------------------------------------------------------
2012# Tests whether HEADER exists and can be compiled using the include files in
2013# INCLUDES, setting the cache variable VAR accordingly.
2014ac_fn_c_check_header_compile ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018$as_echo_n "checking for $2... " >&6; }
2019if eval \${$3+:} false; then :
2020  $as_echo_n "(cached) " >&6
2021else
2022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025#include <$2>
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  eval "$3=yes"
2029else
2030  eval "$3=no"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_c_check_header_compile
2040
2041# ac_fn_c_try_link LINENO
2042# -----------------------
2043# Try to link conftest.$ac_ext, and return whether this succeeded.
2044ac_fn_c_try_link ()
2045{
2046  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047  rm -f conftest.$ac_objext conftest$ac_exeext
2048  if { { ac_try="$ac_link"
2049case "(($ac_try" in
2050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051  *) ac_try_echo=$ac_try;;
2052esac
2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054$as_echo "$ac_try_echo"; } >&5
2055  (eval "$ac_link") 2>conftest.err
2056  ac_status=$?
2057  if test -s conftest.err; then
2058    grep -v '^ *+' conftest.err >conftest.er1
2059    cat conftest.er1 >&5
2060    mv -f conftest.er1 conftest.err
2061  fi
2062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063  test $ac_status = 0; } && {
2064	 test -z "$ac_c_werror_flag" ||
2065	 test ! -s conftest.err
2066       } && test -s conftest$ac_exeext && {
2067	 test "$cross_compiling" = yes ||
2068	 test -x conftest$ac_exeext
2069       }; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075	ac_retval=1
2076fi
2077  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079  # interfere with the next link command; also delete a directory that is
2080  # left behind by Apple's compiler.  We do this before executing the actions.
2081  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083  as_fn_set_status $ac_retval
2084
2085} # ac_fn_c_try_link
2086
2087# ac_fn_c_check_func LINENO FUNC VAR
2088# ----------------------------------
2089# Tests whether FUNC exists, setting the cache variable VAR accordingly
2090ac_fn_c_check_func ()
2091{
2092  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if eval \${$3+:} false; then :
2096  $as_echo_n "(cached) " >&6
2097else
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2102#define $2 innocuous_$2
2103
2104/* System header to define __stub macros and hopefully few prototypes,
2105    which can conflict with char $2 (); below.
2106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107    <limits.h> exists even on freestanding compilers.  */
2108
2109#ifdef __STDC__
2110# include <limits.h>
2111#else
2112# include <assert.h>
2113#endif
2114
2115#undef $2
2116
2117/* Override any GCC internal prototype to avoid an error.
2118   Use char because int might match the return type of a GCC
2119   builtin and then its argument prototype would still apply.  */
2120#ifdef __cplusplus
2121extern "C"
2122#endif
2123char $2 ();
2124/* The GNU C library defines this for functions which it implements
2125    to always fail with ENOSYS.  Some functions are actually named
2126    something starting with __ and the normal name is an alias.  */
2127#if defined __stub_$2 || defined __stub___$2
2128choke me
2129#endif
2130
2131int
2132main ()
2133{
2134return $2 ();
2135  ;
2136  return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_link "$LINENO"; then :
2140  eval "$3=yes"
2141else
2142  eval "$3=no"
2143fi
2144rm -f core conftest.err conftest.$ac_objext \
2145    conftest$ac_exeext conftest.$ac_ext
2146fi
2147eval ac_res=\$$3
2148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_func
2153
2154# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155# -------------------------------------------
2156# Tests whether TYPE exists after having included INCLUDES, setting cache
2157# variable VAR accordingly.
2158ac_fn_c_check_type ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  eval "$3=no"
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170int
2171main ()
2172{
2173if (sizeof ($2))
2174	 return 0;
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186if (sizeof (($2)))
2187	    return 0;
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193
2194else
2195  eval "$3=yes"
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_check_type
2207
2208# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209# --------------------------------------------
2210# Tries to find the compile-time value of EXPR in a program that includes
2211# INCLUDES, setting VAR accordingly. Returns whether the value could be
2212# computed
2213ac_fn_c_compute_int ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  if test "$cross_compiling" = yes; then
2217    # Depending upon the size, compute the lo and hi bounds.
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) >= 0)];
2225test_array [0] = 0;
2226return test_array [0];
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  ac_lo=0 ac_mid=0
2234  while :; do
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242test_array [0] = 0;
2243return test_array [0];
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250  ac_hi=$ac_mid; break
2251else
2252  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253			if test $ac_lo -le $ac_mid; then
2254			  ac_lo= ac_hi=
2255			  break
2256			fi
2257			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2258fi
2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260  done
2261else
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268static int test_array [1 - 2 * !(($2) < 0)];
2269test_array [0] = 0;
2270return test_array [0];
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277  ac_hi=-1 ac_mid=-1
2278  while :; do
2279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h.  */
2281$4
2282int
2283main ()
2284{
2285static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2286test_array [0] = 0;
2287return test_array [0];
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293if ac_fn_c_try_compile "$LINENO"; then :
2294  ac_lo=$ac_mid; break
2295else
2296  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2297			if test $ac_mid -le $ac_hi; then
2298			  ac_lo= ac_hi=
2299			  break
2300			fi
2301			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304  done
2305else
2306  ac_lo= ac_hi=
2307fi
2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311# Binary search between lo and hi bounds.
2312while test "x$ac_lo" != "x$ac_hi"; do
2313  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h.  */
2316$4
2317int
2318main ()
2319{
2320static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2321test_array [0] = 0;
2322return test_array [0];
2323
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328if ac_fn_c_try_compile "$LINENO"; then :
2329  ac_hi=$ac_mid
2330else
2331  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334done
2335case $ac_lo in #((
2336?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2337'') ac_retval=1 ;;
2338esac
2339  else
2340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h.  */
2342$4
2343static long int longval () { return $2; }
2344static unsigned long int ulongval () { return $2; }
2345#include <stdio.h>
2346#include <stdlib.h>
2347int
2348main ()
2349{
2350
2351  FILE *f = fopen ("conftest.val", "w");
2352  if (! f)
2353    return 1;
2354  if (($2) < 0)
2355    {
2356      long int i = longval ();
2357      if (i != ($2))
2358	return 1;
2359      fprintf (f, "%ld", i);
2360    }
2361  else
2362    {
2363      unsigned long int i = ulongval ();
2364      if (i != ($2))
2365	return 1;
2366      fprintf (f, "%lu", i);
2367    }
2368  /* Do not output a trailing newline, as this causes \r\n confusion
2369     on some platforms.  */
2370  return ferror (f) || fclose (f) != 0;
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_run "$LINENO"; then :
2377  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2378else
2379  ac_retval=1
2380fi
2381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382  conftest.$ac_objext conftest.beam conftest.$ac_ext
2383rm -f conftest.val
2384
2385  fi
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387  as_fn_set_status $ac_retval
2388
2389} # ac_fn_c_compute_int
2390
2391# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2392# ---------------------------------------------
2393# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2394# accordingly.
2395ac_fn_c_check_decl ()
2396{
2397  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398  as_decl_name=`echo $2|sed 's/ *(.*//'`
2399  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402if eval \${$3+:} false; then :
2403  $as_echo_n "(cached) " >&6
2404else
2405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406/* end confdefs.h.  */
2407$4
2408int
2409main ()
2410{
2411#ifndef $as_decl_name
2412#ifdef __cplusplus
2413  (void) $as_decl_use;
2414#else
2415  (void) $as_decl_name;
2416#endif
2417#endif
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_compile "$LINENO"; then :
2424  eval "$3=yes"
2425else
2426  eval "$3=no"
2427fi
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429fi
2430eval ac_res=\$$3
2431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432$as_echo "$ac_res" >&6; }
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434
2435} # ac_fn_c_check_decl
2436
2437# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438# ----------------------------------------------------
2439# Tries to find if the field MEMBER exists in type AGGR, after including
2440# INCLUDES, setting cache variable VAR accordingly.
2441ac_fn_c_check_member ()
2442{
2443  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445$as_echo_n "checking for $2.$3... " >&6; }
2446if eval \${$4+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h.  */
2451$5
2452int
2453main ()
2454{
2455static $2 ac_aggr;
2456if (ac_aggr.$3)
2457return 0;
2458  ;
2459  return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463  eval "$4=yes"
2464else
2465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h.  */
2467$5
2468int
2469main ()
2470{
2471static $2 ac_aggr;
2472if (sizeof ac_aggr.$3)
2473return 0;
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479  eval "$4=yes"
2480else
2481  eval "$4=no"
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487eval ac_res=\$$4
2488	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489$as_echo "$ac_res" >&6; }
2490  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_c_check_member
2493cat >config.log <<_ACEOF
2494This file contains any messages produced by compilers while
2495running configure, to aid debugging if configure makes a mistake.
2496
2497It was created by unbound $as_me 1.17.0, which was
2498generated by GNU Autoconf 2.69.  Invocation command line was
2499
2500  $ $0 $@
2501
2502_ACEOF
2503exec 5>>config.log
2504{
2505cat <<_ASUNAME
2506## --------- ##
2507## Platform. ##
2508## --------- ##
2509
2510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2511uname -m = `(uname -m) 2>/dev/null || echo unknown`
2512uname -r = `(uname -r) 2>/dev/null || echo unknown`
2513uname -s = `(uname -s) 2>/dev/null || echo unknown`
2514uname -v = `(uname -v) 2>/dev/null || echo unknown`
2515
2516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2517/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2518
2519/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2520/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2522/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2523/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2524/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2525/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2526
2527_ASUNAME
2528
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    $as_echo "PATH: $as_dir"
2535  done
2536IFS=$as_save_IFS
2537
2538} >&5
2539
2540cat >&5 <<_ACEOF
2541
2542
2543## ----------- ##
2544## Core tests. ##
2545## ----------- ##
2546
2547_ACEOF
2548
2549
2550# Keep a trace of the command line.
2551# Strip out --no-create and --no-recursion so they do not pile up.
2552# Strip out --silent because we don't want to record it for future runs.
2553# Also quote any args containing shell meta-characters.
2554# Make two passes to allow for proper duplicate-argument suppression.
2555ac_configure_args=
2556ac_configure_args0=
2557ac_configure_args1=
2558ac_must_keep_next=false
2559for ac_pass in 1 2
2560do
2561  for ac_arg
2562  do
2563    case $ac_arg in
2564    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2565    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2566    | -silent | --silent | --silen | --sile | --sil)
2567      continue ;;
2568    *\'*)
2569      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2570    esac
2571    case $ac_pass in
2572    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2573    2)
2574      as_fn_append ac_configure_args1 " '$ac_arg'"
2575      if test $ac_must_keep_next = true; then
2576	ac_must_keep_next=false # Got value, back to normal.
2577      else
2578	case $ac_arg in
2579	  *=* | --config-cache | -C | -disable-* | --disable-* \
2580	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2581	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2582	  | -with-* | --with-* | -without-* | --without-* | --x)
2583	    case "$ac_configure_args0 " in
2584	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2585	    esac
2586	    ;;
2587	  -* ) ac_must_keep_next=true ;;
2588	esac
2589      fi
2590      as_fn_append ac_configure_args " '$ac_arg'"
2591      ;;
2592    esac
2593  done
2594done
2595{ ac_configure_args0=; unset ac_configure_args0;}
2596{ ac_configure_args1=; unset ac_configure_args1;}
2597
2598# When interrupted or exit'd, cleanup temporary files, and complete
2599# config.log.  We remove comments because anyway the quotes in there
2600# would cause problems or look ugly.
2601# WARNING: Use '\'' to represent an apostrophe within the trap.
2602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2603trap 'exit_status=$?
2604  # Save into config.log some information that might help in debugging.
2605  {
2606    echo
2607
2608    $as_echo "## ---------------- ##
2609## Cache variables. ##
2610## ---------------- ##"
2611    echo
2612    # The following way of writing the cache mishandles newlines in values,
2613(
2614  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2615    eval ac_val=\$$ac_var
2616    case $ac_val in #(
2617    *${as_nl}*)
2618      case $ac_var in #(
2619      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2620$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2621      esac
2622      case $ac_var in #(
2623      _ | IFS | as_nl) ;; #(
2624      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2625      *) { eval $ac_var=; unset $ac_var;} ;;
2626      esac ;;
2627    esac
2628  done
2629  (set) 2>&1 |
2630    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2631    *${as_nl}ac_space=\ *)
2632      sed -n \
2633	"s/'\''/'\''\\\\'\'''\''/g;
2634	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2635      ;; #(
2636    *)
2637      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2638      ;;
2639    esac |
2640    sort
2641)
2642    echo
2643
2644    $as_echo "## ----------------- ##
2645## Output variables. ##
2646## ----------------- ##"
2647    echo
2648    for ac_var in $ac_subst_vars
2649    do
2650      eval ac_val=\$$ac_var
2651      case $ac_val in
2652      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2653      esac
2654      $as_echo "$ac_var='\''$ac_val'\''"
2655    done | sort
2656    echo
2657
2658    if test -n "$ac_subst_files"; then
2659      $as_echo "## ------------------- ##
2660## File substitutions. ##
2661## ------------------- ##"
2662      echo
2663      for ac_var in $ac_subst_files
2664      do
2665	eval ac_val=\$$ac_var
2666	case $ac_val in
2667	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668	esac
2669	$as_echo "$ac_var='\''$ac_val'\''"
2670      done | sort
2671      echo
2672    fi
2673
2674    if test -s confdefs.h; then
2675      $as_echo "## ----------- ##
2676## confdefs.h. ##
2677## ----------- ##"
2678      echo
2679      cat confdefs.h
2680      echo
2681    fi
2682    test "$ac_signal" != 0 &&
2683      $as_echo "$as_me: caught signal $ac_signal"
2684    $as_echo "$as_me: exit $exit_status"
2685  } >&5
2686  rm -f core *.core core.conftest.* &&
2687    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2688    exit $exit_status
2689' 0
2690for ac_signal in 1 2 13 15; do
2691  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2692done
2693ac_signal=0
2694
2695# confdefs.h avoids OS command line length limits that DEFS can exceed.
2696rm -f -r conftest* confdefs.h
2697
2698$as_echo "/* confdefs.h */" > confdefs.h
2699
2700# Predefined preprocessor variables.
2701
2702cat >>confdefs.h <<_ACEOF
2703#define PACKAGE_NAME "$PACKAGE_NAME"
2704_ACEOF
2705
2706cat >>confdefs.h <<_ACEOF
2707#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2708_ACEOF
2709
2710cat >>confdefs.h <<_ACEOF
2711#define PACKAGE_VERSION "$PACKAGE_VERSION"
2712_ACEOF
2713
2714cat >>confdefs.h <<_ACEOF
2715#define PACKAGE_STRING "$PACKAGE_STRING"
2716_ACEOF
2717
2718cat >>confdefs.h <<_ACEOF
2719#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2720_ACEOF
2721
2722cat >>confdefs.h <<_ACEOF
2723#define PACKAGE_URL "$PACKAGE_URL"
2724_ACEOF
2725
2726
2727# Let the site file select an alternate cache file if it wants to.
2728# Prefer an explicitly selected file to automatically selected ones.
2729ac_site_file1=NONE
2730ac_site_file2=NONE
2731if test -n "$CONFIG_SITE"; then
2732  # We do not want a PATH search for config.site.
2733  case $CONFIG_SITE in #((
2734    -*)  ac_site_file1=./$CONFIG_SITE;;
2735    */*) ac_site_file1=$CONFIG_SITE;;
2736    *)   ac_site_file1=./$CONFIG_SITE;;
2737  esac
2738elif test "x$prefix" != xNONE; then
2739  ac_site_file1=$prefix/share/config.site
2740  ac_site_file2=$prefix/etc/config.site
2741else
2742  ac_site_file1=$ac_default_prefix/share/config.site
2743  ac_site_file2=$ac_default_prefix/etc/config.site
2744fi
2745for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2746do
2747  test "x$ac_site_file" = xNONE && continue
2748  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2749    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2750$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2751    sed 's/^/| /' "$ac_site_file" >&5
2752    . "$ac_site_file" \
2753      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755as_fn_error $? "failed to load site script $ac_site_file
2756See \`config.log' for more details" "$LINENO" 5; }
2757  fi
2758done
2759
2760if test -r "$cache_file"; then
2761  # Some versions of bash will fail to source /dev/null (special files
2762  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2763  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2764    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2765$as_echo "$as_me: loading cache $cache_file" >&6;}
2766    case $cache_file in
2767      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2768      *)                      . "./$cache_file";;
2769    esac
2770  fi
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2773$as_echo "$as_me: creating cache $cache_file" >&6;}
2774  >$cache_file
2775fi
2776
2777# Check that the precious variables saved in the cache have kept the same
2778# value.
2779ac_cache_corrupted=false
2780for ac_var in $ac_precious_vars; do
2781  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2782  eval ac_new_set=\$ac_env_${ac_var}_set
2783  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2784  eval ac_new_val=\$ac_env_${ac_var}_value
2785  case $ac_old_set,$ac_new_set in
2786    set,)
2787      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2788$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2789      ac_cache_corrupted=: ;;
2790    ,set)
2791      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2792$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2793      ac_cache_corrupted=: ;;
2794    ,);;
2795    *)
2796      if test "x$ac_old_val" != "x$ac_new_val"; then
2797	# differences in whitespace do not lead to failure.
2798	ac_old_val_w=`echo x $ac_old_val`
2799	ac_new_val_w=`echo x $ac_new_val`
2800	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2801	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2802$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2803	  ac_cache_corrupted=:
2804	else
2805	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2806$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2807	  eval $ac_var=\$ac_old_val
2808	fi
2809	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2810$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2811	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2812$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2813      fi;;
2814  esac
2815  # Pass precious variables to config.status.
2816  if test "$ac_new_set" = set; then
2817    case $ac_new_val in
2818    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2819    *) ac_arg=$ac_var=$ac_new_val ;;
2820    esac
2821    case " $ac_configure_args " in
2822      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2823      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2824    esac
2825  fi
2826done
2827if $ac_cache_corrupted; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2831$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2832  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2833fi
2834## -------------------- ##
2835## Main body of script. ##
2836## -------------------- ##
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844
2845UNBOUND_VERSION_MAJOR=1
2846
2847UNBOUND_VERSION_MINOR=17
2848
2849UNBOUND_VERSION_MICRO=0
2850
2851
2852LIBUNBOUND_CURRENT=9
2853LIBUNBOUND_REVISION=20
2854LIBUNBOUND_AGE=1
2855# 1.0.0 had 0:12:0
2856# 1.0.1 had 0:13:0
2857# 1.0.2 had 0:14:0
2858# 1.1.0 had 0:15:0
2859# 1.1.1 had 0:16:0
2860# 1.2.0 had 0:17:0
2861# 1.2.1 had 0:18:0
2862# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2863# 1.3.1 had 1:1:0
2864# 1.3.2 had 1:2:0
2865# 1.3.3 had 1:3:0
2866# 1.3.4 had 1:4:0
2867# 1.4.0-snapshots had 1:5:0
2868# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2869# 1.4.1 had 2:1:0
2870# 1.4.2 had 2:2:0
2871# 1.4.3 had 2:3:0
2872# 1.4.4 had 2:4:0
2873# 1.4.5 had 2:5:0
2874# 1.4.6 had 2:6:0
2875# 1.4.7 had 2:7:0
2876# 1.4.8 had 2:8:0
2877# 1.4.9 had 2:9:0
2878# 1.4.10 had 2:10:0
2879# 1.4.11 had 2:11:0
2880# 1.4.12 had 2:12:0
2881# 1.4.13 had 2:13:0
2882# and 1.4.13p1 and 1.4.13.p2
2883# 1.4.14 had 2:14:0
2884# 1.4.15 had 3:0:1 # adds ub_version()
2885# 1.4.16 had 3:1:1
2886# 1.4.17 had 3:2:1
2887# 1.4.18 had 3:3:1
2888# 1.4.19 had 3:4:1
2889# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2890# 1.4.21 had 4:1:2
2891# 1.4.22 had 4:1:2
2892# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2893# 1.5.1 had 5:3:3
2894# 1.5.2 had 5:5:3
2895# 1.5.3 had 5:6:3
2896# 1.5.4 had 5:7:3
2897# 1.5.5 had 5:8:3
2898# 1.5.6 had 5:9:3
2899# 1.5.7 had 5:10:3
2900# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2901# 1.5.9 had 6:1:4
2902# 1.5.10 had 6:2:4
2903# 1.6.0 had 6:3:4
2904# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2905# 1.6.2 had 7:1:5
2906# 1.6.3 had 7:2:5
2907# 1.6.4 had 7:3:5
2908# 1.6.5 had 7:4:5
2909# 1.6.6 had 7:5:5
2910# 1.6.7 had 7:6:5
2911# 1.6.8 had 7:7:5
2912# 1.7.0 had 7:8:5
2913# 1.7.1 had 7:9:5
2914# 1.7.2 had 7:10:5
2915# 1.7.3 had 7:11:5
2916# 1.8.0 had 8:0:0 # changes the event callback function signature
2917# 1.8.1 had 8:1:0
2918# 1.8.2 had 8:2:0
2919# 1.8.3 had 8:3:0
2920# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2921# 1.9.1 had 9:1:1
2922# 1.9.2 had 9:2:1
2923# 1.9.3 had 9:3:1
2924# 1.9.4 had 9:4:1
2925# 1.9.5 had 9:5:1
2926# 1.9.6 had 9:6:1
2927# 1.10.0 had 9:7:1
2928# 1.10.1 had 9:8:1
2929# 1.11.0 had 9:9:1
2930# 1.12.0 had 9:10:1
2931# 1.13.0 had 9:11:1
2932# 1.13.1 had 9:12:1
2933# 1.13.2 had 9:13:1
2934# 1.14.0 had 9:14:1
2935# 1.15.0 had 9:15:1
2936# 1.16.0 had 9:16:1
2937# 1.16.1 had 9:17:1
2938# 1.16.2 had 9:18:1
2939# 1.16.3 had 9:19:1
2940# 1.17.0 had 9:20:1
2941
2942#   Current  -- the number of the binary API that we're implementing
2943#   Revision -- which iteration of the implementation of the binary
2944#               API are we supplying?
2945#   Age      -- How many previous binary API versions do we also
2946#               support?
2947#
2948# If we release a new version that does not change the binary API,
2949# increment Revision.
2950#
2951# If we release a new version that changes the binary API, but does
2952# not break programs compiled against the old binary API, increment
2953# Current and Age.  Set Revision to 0, since this is the first
2954# implementation of the new API.
2955#
2956# Otherwise, we're changing the binary API and breaking backward
2957# compatibility with old binaries.  Increment Current.  Set Age to 0,
2958# since we're backward compatible with no previous APIs.  Set Revision
2959# to 0 too.
2960
2961
2962
2963
2964
2965cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2966
2967cat >>confdefs.h <<_ACEOF
2968#define CONFCMDLINE "$cmdln"
2969_ACEOF
2970
2971
2972CFLAGS="$CFLAGS"
2973ac_ext=c
2974ac_cpp='$CPP $CPPFLAGS'
2975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978if test -n "$ac_tool_prefix"; then
2979  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_CC+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$CC"; then
2987  ac_cv_prog_CC="$CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006CC=$ac_cv_prog_CC
3007if test -n "$CC"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009$as_echo "$CC" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015
3016fi
3017if test -z "$ac_cv_prog_CC"; then
3018  ac_ct_CC=$CC
3019  # Extract the first word of "gcc", so it can be a program name with args.
3020set dummy gcc; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$ac_ct_CC"; then
3027  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036    ac_cv_prog_ac_ct_CC="gcc"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047if test -n "$ac_ct_CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049$as_echo "$ac_ct_CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055  if test "x$ac_ct_CC" = x; then
3056    CC=""
3057  else
3058    case $cross_compiling:$ac_tool_warned in
3059yes:)
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062ac_tool_warned=yes ;;
3063esac
3064    CC=$ac_ct_CC
3065  fi
3066else
3067  CC="$ac_cv_prog_CC"
3068fi
3069
3070if test -z "$CC"; then
3071          if test -n "$ac_tool_prefix"; then
3072    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}cc; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_CC+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$CC"; then
3080  ac_cv_prog_CC="$CC" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087    for ac_exec_ext in '' $ac_executable_extensions; do
3088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089    ac_cv_prog_CC="${ac_tool_prefix}cc"
3090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091    break 2
3092  fi
3093done
3094  done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099CC=$ac_cv_prog_CC
3100if test -n "$CC"; then
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102$as_echo "$CC" >&6; }
3103else
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109  fi
3110fi
3111if test -z "$CC"; then
3112  # Extract the first word of "cc", so it can be a program name with args.
3113set dummy cc; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_CC+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122  ac_prog_rejected=no
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128    for ac_exec_ext in '' $ac_executable_extensions; do
3129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3131       ac_prog_rejected=yes
3132       continue
3133     fi
3134    ac_cv_prog_CC="cc"
3135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139  done
3140IFS=$as_save_IFS
3141
3142if test $ac_prog_rejected = yes; then
3143  # We found a bogon in the path, so make sure we never use it.
3144  set dummy $ac_cv_prog_CC
3145  shift
3146  if test $# != 0; then
3147    # We chose a different compiler from the bogus one.
3148    # However, it has the same basename, so the bogon will be chosen
3149    # first if we set CC to just the basename; use the full file name.
3150    shift
3151    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3152  fi
3153fi
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166fi
3167if test -z "$CC"; then
3168  if test -n "$ac_tool_prefix"; then
3169  for ac_prog in cl.exe
3170  do
3171    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_CC+:} false; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$CC"; then
3179  ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208    test -n "$CC" && break
3209  done
3210fi
3211if test -z "$CC"; then
3212  ac_ct_CC=$CC
3213  for ac_prog in cl.exe
3214do
3215  # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test -n "$ac_ct_CC"; then
3223  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_ac_ct_CC="$ac_prog"
3233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243if test -n "$ac_ct_CC"; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245$as_echo "$ac_ct_CC" >&6; }
3246else
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252  test -n "$ac_ct_CC" && break
3253done
3254
3255  if test "x$ac_ct_CC" = x; then
3256    CC=""
3257  else
3258    case $cross_compiling:$ac_tool_warned in
3259yes:)
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262ac_tool_warned=yes ;;
3263esac
3264    CC=$ac_ct_CC
3265  fi
3266fi
3267
3268fi
3269
3270
3271test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273as_fn_error $? "no acceptable C compiler found in \$PATH
3274See \`config.log' for more details" "$LINENO" 5; }
3275
3276# Provide some information about the compiler.
3277$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3278set X $ac_compile
3279ac_compiler=$2
3280for ac_option in --version -v -V -qversion; do
3281  { { ac_try="$ac_compiler $ac_option >&5"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
3288  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3289  ac_status=$?
3290  if test -s conftest.err; then
3291    sed '10a\
3292... rest of stderr output deleted ...
3293         10q' conftest.err >conftest.er1
3294    cat conftest.er1 >&5
3295  fi
3296  rm -f conftest.er1 conftest.err
3297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298  test $ac_status = 0; }
3299done
3300
3301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h.  */
3303
3304int
3305main ()
3306{
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312ac_clean_files_save=$ac_clean_files
3313ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3314# Try to create an executable without -o first, disregard a.out.
3315# It will help us diagnose broken compilers, and finding out an intuition
3316# of exeext.
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3318$as_echo_n "checking whether the C compiler works... " >&6; }
3319ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3320
3321# The possible output files:
3322ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3323
3324ac_rmfiles=
3325for ac_file in $ac_files
3326do
3327  case $ac_file in
3328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3330  esac
3331done
3332rm -f $ac_rmfiles
3333
3334if { { ac_try="$ac_link_default"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341  (eval "$ac_link_default") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }; then :
3345  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3346# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3347# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3348# so that the user can short-circuit this test for compilers unknown to
3349# Autoconf.
3350for ac_file in $ac_files ''
3351do
3352  test -f "$ac_file" || continue
3353  case $ac_file in
3354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3355	;;
3356    [ab].out )
3357	# We found the default executable, but exeext='' is most
3358	# certainly right.
3359	break;;
3360    *.* )
3361	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3362	then :; else
3363	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364	fi
3365	# We set ac_cv_exeext here because the later test for it is not
3366	# safe: cross compilers may not add the suffix if given an `-o'
3367	# argument, so we may need to know it at that point already.
3368	# Even if this section looks crufty: it has the advantage of
3369	# actually working.
3370	break;;
3371    * )
3372	break;;
3373  esac
3374done
3375test "$ac_cv_exeext" = no && ac_cv_exeext=
3376
3377else
3378  ac_file=''
3379fi
3380if test -z "$ac_file"; then :
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382$as_echo "no" >&6; }
3383$as_echo "$as_me: failed program was:" >&5
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
3386{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388as_fn_error 77 "C compiler cannot create executables
3389See \`config.log' for more details" "$LINENO" 5; }
3390else
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392$as_echo "yes" >&6; }
3393fi
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3395$as_echo_n "checking for C compiler default output file name... " >&6; }
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3397$as_echo "$ac_file" >&6; }
3398ac_exeext=$ac_cv_exeext
3399
3400rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3401ac_clean_files=$ac_clean_files_save
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3403$as_echo_n "checking for suffix of executables... " >&6; }
3404if { { ac_try="$ac_link"
3405case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_link") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; then :
3415  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3417# work properly (i.e., refer to `conftest.exe'), while it won't with
3418# `rm'.
3419for ac_file in conftest.exe conftest conftest.*; do
3420  test -f "$ac_file" || continue
3421  case $ac_file in
3422    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424	  break;;
3425    * ) break;;
3426  esac
3427done
3428else
3429  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3432See \`config.log' for more details" "$LINENO" 5; }
3433fi
3434rm -f conftest conftest$ac_cv_exeext
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436$as_echo "$ac_cv_exeext" >&6; }
3437
3438rm -f conftest.$ac_ext
3439EXEEXT=$ac_cv_exeext
3440ac_exeext=$EXEEXT
3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h.  */
3443#include <stdio.h>
3444int
3445main ()
3446{
3447FILE *f = fopen ("conftest.out", "w");
3448 return ferror (f) || fclose (f) != 0;
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454ac_clean_files="$ac_clean_files conftest.out"
3455# Check that the compiler produces executables we can run.  If not, either
3456# the compiler is broken, or we cross compile.
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3458$as_echo_n "checking whether we are cross compiling... " >&6; }
3459if test "$cross_compiling" != yes; then
3460  { { ac_try="$ac_link"
3461case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467  (eval "$ac_link") 2>&5
3468  ac_status=$?
3469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470  test $ac_status = 0; }
3471  if { ac_try='./conftest$ac_cv_exeext'
3472  { { case "(($ac_try" in
3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474  *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478  (eval "$ac_try") 2>&5
3479  ac_status=$?
3480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481  test $ac_status = 0; }; }; then
3482    cross_compiling=no
3483  else
3484    if test "$cross_compiling" = maybe; then
3485	cross_compiling=yes
3486    else
3487	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error $? "cannot run C compiled programs.
3490If you meant to cross compile, use \`--host'.
3491See \`config.log' for more details" "$LINENO" 5; }
3492    fi
3493  fi
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3496$as_echo "$cross_compiling" >&6; }
3497
3498rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3499ac_clean_files=$ac_clean_files_save
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501$as_echo_n "checking for suffix of object files... " >&6; }
3502if ${ac_cv_objext+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507
3508int
3509main ()
3510{
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516rm -f conftest.o conftest.obj
3517if { { ac_try="$ac_compile"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523$as_echo "$ac_try_echo"; } >&5
3524  (eval "$ac_compile") 2>&5
3525  ac_status=$?
3526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }; then :
3528  for ac_file in conftest.o conftest.obj conftest.*; do
3529  test -f "$ac_file" || continue;
3530  case $ac_file in
3531    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3532    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3533       break;;
3534  esac
3535done
3536else
3537  $as_echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542as_fn_error $? "cannot compute suffix of object files: cannot compile
3543See \`config.log' for more details" "$LINENO" 5; }
3544fi
3545rm -f conftest.$ac_cv_objext conftest.$ac_ext
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3548$as_echo "$ac_cv_objext" >&6; }
3549OBJEXT=$ac_cv_objext
3550ac_objext=$OBJEXT
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3552$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3553if ${ac_cv_c_compiler_gnu+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562#ifndef __GNUC__
3563       choke me
3564#endif
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_compiler_gnu=yes
3572else
3573  ac_compiler_gnu=no
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3580$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3581if test $ac_compiler_gnu = yes; then
3582  GCC=yes
3583else
3584  GCC=
3585fi
3586ac_test_CFLAGS=${CFLAGS+set}
3587ac_save_CFLAGS=$CFLAGS
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3589$as_echo_n "checking whether $CC accepts -g... " >&6; }
3590if ${ac_cv_prog_cc_g+:} false; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  ac_save_c_werror_flag=$ac_c_werror_flag
3594   ac_c_werror_flag=yes
3595   ac_cv_prog_cc_g=no
3596   CFLAGS="-g"
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599
3600int
3601main ()
3602{
3603
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608if ac_fn_c_try_compile "$LINENO"; then :
3609  ac_cv_prog_cc_g=yes
3610else
3611  CFLAGS=""
3612      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624
3625else
3626  ac_c_werror_flag=$ac_save_c_werror_flag
3627	 CFLAGS="-g"
3628	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630
3631int
3632main ()
3633{
3634
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640  ac_cv_prog_cc_g=yes
3641fi
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643fi
3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645fi
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647   ac_c_werror_flag=$ac_save_c_werror_flag
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3650$as_echo "$ac_cv_prog_cc_g" >&6; }
3651if test "$ac_test_CFLAGS" = set; then
3652  CFLAGS=$ac_save_CFLAGS
3653elif test $ac_cv_prog_cc_g = yes; then
3654  if test "$GCC" = yes; then
3655    CFLAGS="-g -O2"
3656  else
3657    CFLAGS="-g"
3658  fi
3659else
3660  if test "$GCC" = yes; then
3661    CFLAGS="-O2"
3662  else
3663    CFLAGS=
3664  fi
3665fi
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3667$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3668if ${ac_cv_prog_cc_c89+:} false; then :
3669  $as_echo_n "(cached) " >&6
3670else
3671  ac_cv_prog_cc_c89=no
3672ac_save_CC=$CC
3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675#include <stdarg.h>
3676#include <stdio.h>
3677struct stat;
3678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3679struct buf { int x; };
3680FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681static char *e (p, i)
3682     char **p;
3683     int i;
3684{
3685  return p[i];
3686}
3687static char *f (char * (*g) (char **, int), char **p, ...)
3688{
3689  char *s;
3690  va_list v;
3691  va_start (v,p);
3692  s = g (p, va_arg (v,int));
3693  va_end (v);
3694  return s;
3695}
3696
3697/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3698   function prototypes and stuff, but not '\xHH' hex character constants.
3699   These don't provoke an error unfortunately, instead are silently treated
3700   as 'x'.  The following induces an error, until -std is added to get
3701   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3702   array size at least.  It's necessary to write '\x00'==0 to get something
3703   that's true only with -std.  */
3704int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705
3706/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707   inside strings and character constants.  */
3708#define FOO(x) 'x'
3709int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710
3711int test (int i, double x);
3712struct s1 {int (*f) (int a);};
3713struct s2 {int (*f) (double a);};
3714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715int argc;
3716char **argv;
3717int
3718main ()
3719{
3720return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727do
3728  CC="$ac_save_CC $ac_arg"
3729  if ac_fn_c_try_compile "$LINENO"; then :
3730  ac_cv_prog_cc_c89=$ac_arg
3731fi
3732rm -f core conftest.err conftest.$ac_objext
3733  test "x$ac_cv_prog_cc_c89" != "xno" && break
3734done
3735rm -f conftest.$ac_ext
3736CC=$ac_save_CC
3737
3738fi
3739# AC_CACHE_VAL
3740case "x$ac_cv_prog_cc_c89" in
3741  x)
3742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743$as_echo "none needed" >&6; } ;;
3744  xno)
3745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746$as_echo "unsupported" >&6; } ;;
3747  *)
3748    CC="$CC $ac_cv_prog_cc_c89"
3749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751esac
3752if test "x$ac_cv_prog_cc_c89" != xno; then :
3753
3754fi
3755
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3769$as_echo_n "checking how to run the C preprocessor... " >&6; }
3770# On Suns, sometimes $CPP names a directory.
3771if test -n "$CPP" && test -d "$CPP"; then
3772  CPP=
3773fi
3774if test -z "$CPP"; then
3775  if ${ac_cv_prog_CPP+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778      # Double quotes because CPP needs to be expanded
3779    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780    do
3781      ac_preproc_ok=false
3782for ac_c_preproc_warn_flag in '' yes
3783do
3784  # Use a header file that comes with gcc, so configuring glibc
3785  # with a fresh cross-compiler works.
3786  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787  # <limits.h> exists even on freestanding compilers.
3788  # On the NeXT, cc -E runs the code through the compiler's parser,
3789  # not just through cpp. "Syntax error" is here to catch this case.
3790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792#ifdef __STDC__
3793# include <limits.h>
3794#else
3795# include <assert.h>
3796#endif
3797		     Syntax error
3798_ACEOF
3799if ac_fn_c_try_cpp "$LINENO"; then :
3800
3801else
3802  # Broken: fails on valid input.
3803continue
3804fi
3805rm -f conftest.err conftest.i conftest.$ac_ext
3806
3807  # OK, works on sane cases.  Now check whether nonexistent headers
3808  # can be detected and how.
3809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811#include <ac_nonexistent.h>
3812_ACEOF
3813if ac_fn_c_try_cpp "$LINENO"; then :
3814  # Broken: success on invalid input.
3815continue
3816else
3817  # Passes both tests.
3818ac_preproc_ok=:
3819break
3820fi
3821rm -f conftest.err conftest.i conftest.$ac_ext
3822
3823done
3824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3825rm -f conftest.i conftest.err conftest.$ac_ext
3826if $ac_preproc_ok; then :
3827  break
3828fi
3829
3830    done
3831    ac_cv_prog_CPP=$CPP
3832
3833fi
3834  CPP=$ac_cv_prog_CPP
3835else
3836  ac_cv_prog_CPP=$CPP
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3839$as_echo "$CPP" >&6; }
3840ac_preproc_ok=false
3841for ac_c_preproc_warn_flag in '' yes
3842do
3843  # Use a header file that comes with gcc, so configuring glibc
3844  # with a fresh cross-compiler works.
3845  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846  # <limits.h> exists even on freestanding compilers.
3847  # On the NeXT, cc -E runs the code through the compiler's parser,
3848  # not just through cpp. "Syntax error" is here to catch this case.
3849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851#ifdef __STDC__
3852# include <limits.h>
3853#else
3854# include <assert.h>
3855#endif
3856		     Syntax error
3857_ACEOF
3858if ac_fn_c_try_cpp "$LINENO"; then :
3859
3860else
3861  # Broken: fails on valid input.
3862continue
3863fi
3864rm -f conftest.err conftest.i conftest.$ac_ext
3865
3866  # OK, works on sane cases.  Now check whether nonexistent headers
3867  # can be detected and how.
3868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h.  */
3870#include <ac_nonexistent.h>
3871_ACEOF
3872if ac_fn_c_try_cpp "$LINENO"; then :
3873  # Broken: success on invalid input.
3874continue
3875else
3876  # Passes both tests.
3877ac_preproc_ok=:
3878break
3879fi
3880rm -f conftest.err conftest.i conftest.$ac_ext
3881
3882done
3883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884rm -f conftest.i conftest.err conftest.$ac_ext
3885if $ac_preproc_ok; then :
3886
3887else
3888  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3891See \`config.log' for more details" "$LINENO" 5; }
3892fi
3893
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
3900
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3902$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3903if ${ac_cv_path_GREP+:} false; then :
3904  $as_echo_n "(cached) " >&6
3905else
3906  if test -z "$GREP"; then
3907  ac_path_GREP_found=false
3908  # Loop through the user's path and test for each of PROGNAME-LIST
3909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911do
3912  IFS=$as_save_IFS
3913  test -z "$as_dir" && as_dir=.
3914    for ac_prog in grep ggrep; do
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3917      as_fn_executable_p "$ac_path_GREP" || continue
3918# Check for GNU ac_path_GREP and select it if it is found.
3919  # Check for GNU $ac_path_GREP
3920case `"$ac_path_GREP" --version 2>&1` in
3921*GNU*)
3922  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3923*)
3924  ac_count=0
3925  $as_echo_n 0123456789 >"conftest.in"
3926  while :
3927  do
3928    cat "conftest.in" "conftest.in" >"conftest.tmp"
3929    mv "conftest.tmp" "conftest.in"
3930    cp "conftest.in" "conftest.nl"
3931    $as_echo 'GREP' >> "conftest.nl"
3932    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934    as_fn_arith $ac_count + 1 && ac_count=$as_val
3935    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3936      # Best one so far, save it but keep looking for a better one
3937      ac_cv_path_GREP="$ac_path_GREP"
3938      ac_path_GREP_max=$ac_count
3939    fi
3940    # 10*(2^10) chars as input seems more than enough
3941    test $ac_count -gt 10 && break
3942  done
3943  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944esac
3945
3946      $ac_path_GREP_found && break 3
3947    done
3948  done
3949  done
3950IFS=$as_save_IFS
3951  if test -z "$ac_cv_path_GREP"; then
3952    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3953  fi
3954else
3955  ac_cv_path_GREP=$GREP
3956fi
3957
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3960$as_echo "$ac_cv_path_GREP" >&6; }
3961 GREP="$ac_cv_path_GREP"
3962
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3965$as_echo_n "checking for egrep... " >&6; }
3966if ${ac_cv_path_EGREP+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3970   then ac_cv_path_EGREP="$GREP -E"
3971   else
3972     if test -z "$EGREP"; then
3973  ac_path_EGREP_found=false
3974  # Loop through the user's path and test for each of PROGNAME-LIST
3975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980    for ac_prog in egrep; do
3981    for ac_exec_ext in '' $ac_executable_extensions; do
3982      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983      as_fn_executable_p "$ac_path_EGREP" || continue
3984# Check for GNU ac_path_EGREP and select it if it is found.
3985  # Check for GNU $ac_path_EGREP
3986case `"$ac_path_EGREP" --version 2>&1` in
3987*GNU*)
3988  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989*)
3990  ac_count=0
3991  $as_echo_n 0123456789 >"conftest.in"
3992  while :
3993  do
3994    cat "conftest.in" "conftest.in" >"conftest.tmp"
3995    mv "conftest.tmp" "conftest.in"
3996    cp "conftest.in" "conftest.nl"
3997    $as_echo 'EGREP' >> "conftest.nl"
3998    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000    as_fn_arith $ac_count + 1 && ac_count=$as_val
4001    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002      # Best one so far, save it but keep looking for a better one
4003      ac_cv_path_EGREP="$ac_path_EGREP"
4004      ac_path_EGREP_max=$ac_count
4005    fi
4006    # 10*(2^10) chars as input seems more than enough
4007    test $ac_count -gt 10 && break
4008  done
4009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
4012      $ac_path_EGREP_found && break 3
4013    done
4014  done
4015  done
4016IFS=$as_save_IFS
4017  if test -z "$ac_cv_path_EGREP"; then
4018    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019  fi
4020else
4021  ac_cv_path_EGREP=$EGREP
4022fi
4023
4024   fi
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4027$as_echo "$ac_cv_path_EGREP" >&6; }
4028 EGREP="$ac_cv_path_EGREP"
4029
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4032$as_echo_n "checking for ANSI C header files... " >&6; }
4033if ${ac_cv_header_stdc+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038#include <stdlib.h>
4039#include <stdarg.h>
4040#include <string.h>
4041#include <float.h>
4042
4043int
4044main ()
4045{
4046
4047  ;
4048  return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"; then :
4052  ac_cv_header_stdc=yes
4053else
4054  ac_cv_header_stdc=no
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057
4058if test $ac_cv_header_stdc = yes; then
4059  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062#include <string.h>
4063
4064_ACEOF
4065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066  $EGREP "memchr" >/dev/null 2>&1; then :
4067
4068else
4069  ac_cv_header_stdc=no
4070fi
4071rm -f conftest*
4072
4073fi
4074
4075if test $ac_cv_header_stdc = yes; then
4076  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079#include <stdlib.h>
4080
4081_ACEOF
4082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083  $EGREP "free" >/dev/null 2>&1; then :
4084
4085else
4086  ac_cv_header_stdc=no
4087fi
4088rm -f conftest*
4089
4090fi
4091
4092if test $ac_cv_header_stdc = yes; then
4093  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4094  if test "$cross_compiling" = yes; then :
4095  :
4096else
4097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099#include <ctype.h>
4100#include <stdlib.h>
4101#if ((' ' & 0x0FF) == 0x020)
4102# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4103# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4104#else
4105# define ISLOWER(c) \
4106		   (('a' <= (c) && (c) <= 'i') \
4107		     || ('j' <= (c) && (c) <= 'r') \
4108		     || ('s' <= (c) && (c) <= 'z'))
4109# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4110#endif
4111
4112#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4113int
4114main ()
4115{
4116  int i;
4117  for (i = 0; i < 256; i++)
4118    if (XOR (islower (i), ISLOWER (i))
4119	|| toupper (i) != TOUPPER (i))
4120      return 2;
4121  return 0;
4122}
4123_ACEOF
4124if ac_fn_c_try_run "$LINENO"; then :
4125
4126else
4127  ac_cv_header_stdc=no
4128fi
4129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4130  conftest.$ac_objext conftest.beam conftest.$ac_ext
4131fi
4132
4133fi
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4136$as_echo "$ac_cv_header_stdc" >&6; }
4137if test $ac_cv_header_stdc = yes; then
4138
4139$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4140
4141fi
4142
4143# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4145		  inttypes.h stdint.h unistd.h
4146do :
4147  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4149"
4150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4151  cat >>confdefs.h <<_ACEOF
4152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4153_ACEOF
4154
4155fi
4156
4157done
4158
4159
4160
4161  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4162if test "x$ac_cv_header_minix_config_h" = xyes; then :
4163  MINIX=yes
4164else
4165  MINIX=
4166fi
4167
4168
4169  if test "$MINIX" = yes; then
4170
4171$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4172
4173
4174$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4175
4176
4177$as_echo "#define _MINIX 1" >>confdefs.h
4178
4179  fi
4180
4181
4182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4183$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4184if ${ac_cv_safe_to_define___extensions__+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190#         define __EXTENSIONS__ 1
4191          $ac_includes_default
4192int
4193main ()
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200if ac_fn_c_try_compile "$LINENO"; then :
4201  ac_cv_safe_to_define___extensions__=yes
4202else
4203  ac_cv_safe_to_define___extensions__=no
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4208$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4209  test $ac_cv_safe_to_define___extensions__ = yes &&
4210    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4211
4212  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4213
4214  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4215
4216  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4217
4218  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4219
4220
4221if test "$ac_cv_header_minix_config_h" = "yes"; then
4222
4223$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4224
4225fi
4226
4227case "$prefix" in
4228        NONE)
4229		prefix="/usr/local"
4230        ;;
4231esac
4232case "$exec_prefix" in
4233        NONE)
4234		exec_prefix="$prefix"
4235        ;;
4236esac
4237
4238# are we on MinGW?
4239if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4240else
4241	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4242	else on_mingw="no"; fi
4243fi
4244
4245#
4246# Determine configuration file
4247# the eval is to evaluate shell expansion twice
4248UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4249
4250UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4251
4252UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4253
4254if test $on_mingw = "no"; then
4255  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4256else
4257  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4258fi
4259
4260# Check whether --with-conf_file was given.
4261if test "${with_conf_file+set}" = set; then :
4262  withval=$with_conf_file; ub_conf_file="$withval"
4263fi
4264
4265
4266hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4267
4268
4269cat >>confdefs.h <<_ACEOF
4270#define CONFIGFILE "$hdr_config"
4271_ACEOF
4272
4273ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4274$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4275	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4276	 X"$ub_conf_file" : 'X\(//\)$' \| \
4277	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4278$as_echo X"$ub_conf_file" |
4279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4280	    s//\1/
4281	    q
4282	  }
4283	  /^X\(\/\/\)[^/].*/{
4284	    s//\1/
4285	    q
4286	  }
4287	  /^X\(\/\/\)$/{
4288	    s//\1/
4289	    q
4290	  }
4291	  /^X\(\/\).*/{
4292	    s//\1/
4293	    q
4294	  }
4295	  s/.*/./; q'`
4296
4297
4298# Determine run, chroot directory and pidfile locations
4299
4300# Check whether --with-run-dir was given.
4301if test "${with_run_dir+set}" = set; then :
4302  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4303else
4304  if test $on_mingw = no; then
4305    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4306else
4307    UNBOUND_RUN_DIR=""
4308fi
4309
4310fi
4311
4312
4313hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4314
4315
4316cat >>confdefs.h <<_ACEOF
4317#define RUN_DIR "$hdr_run"
4318_ACEOF
4319
4320
4321
4322# Check whether --with-chroot-dir was given.
4323if test "${with_chroot_dir+set}" = set; then :
4324  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4325else
4326  if test $on_mingw = no; then
4327    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4328else
4329    UNBOUND_CHROOT_DIR=""
4330fi
4331
4332fi
4333
4334
4335hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4336
4337
4338cat >>confdefs.h <<_ACEOF
4339#define CHROOT_DIR "$hdr_chroot"
4340_ACEOF
4341
4342
4343
4344# Check whether --with-share-dir was given.
4345if test "${with_share_dir+set}" = set; then :
4346  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4347else
4348  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4349fi
4350
4351
4352
4353cat >>confdefs.h <<_ACEOF
4354#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4355_ACEOF
4356
4357
4358
4359# Check whether --with-pidfile was given.
4360if test "${with_pidfile+set}" = set; then :
4361  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4362else
4363  if test $on_mingw = no; then
4364    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4365else
4366    UNBOUND_PIDFILE=""
4367fi
4368
4369fi
4370
4371
4372hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4373
4374
4375cat >>confdefs.h <<_ACEOF
4376#define PIDFILE "$hdr_pid"
4377_ACEOF
4378
4379
4380
4381# Check whether --with-rootkey-file was given.
4382if test "${with_rootkey_file+set}" = set; then :
4383  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4384else
4385  if test $on_mingw = no; then
4386    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4387else
4388    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4389fi
4390
4391fi
4392
4393
4394hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4395
4396
4397cat >>confdefs.h <<_ACEOF
4398#define ROOT_ANCHOR_FILE "$hdr_rkey"
4399_ACEOF
4400
4401
4402
4403# Check whether --with-rootcert-file was given.
4404if test "${with_rootcert_file+set}" = set; then :
4405  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4406else
4407  if test $on_mingw = no; then
4408    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4409else
4410    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4411fi
4412
4413fi
4414
4415
4416hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4417
4418
4419cat >>confdefs.h <<_ACEOF
4420#define ROOT_CERT_FILE "$hdr_rpem"
4421_ACEOF
4422
4423
4424
4425# Check whether --with-username was given.
4426if test "${with_username+set}" = set; then :
4427  withval=$with_username; UNBOUND_USERNAME="$withval"
4428else
4429  UNBOUND_USERNAME="unbound"
4430fi
4431
4432
4433
4434cat >>confdefs.h <<_ACEOF
4435#define UB_USERNAME "$UNBOUND_USERNAME"
4436_ACEOF
4437
4438
4439
4440$as_echo "#define WINVER 0x0502" >>confdefs.h
4441
4442wnvs=`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/' `
4443
4444
4445cat >>confdefs.h <<_ACEOF
4446#define RSRC_PACKAGE_VERSION $wnvs
4447_ACEOF
4448
4449
4450# Checks for typedefs, structures, and compiler characteristics.
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4452$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4453if ${ac_cv_c_const+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458
4459int
4460main ()
4461{
4462
4463#ifndef __cplusplus
4464  /* Ultrix mips cc rejects this sort of thing.  */
4465  typedef int charset[2];
4466  const charset cs = { 0, 0 };
4467  /* SunOS 4.1.1 cc rejects this.  */
4468  char const *const *pcpcc;
4469  char **ppc;
4470  /* NEC SVR4.0.2 mips cc rejects this.  */
4471  struct point {int x, y;};
4472  static struct point const zero = {0,0};
4473  /* AIX XL C 1.02.0.0 rejects this.
4474     It does not let you subtract one const X* pointer from another in
4475     an arm of an if-expression whose if-part is not a constant
4476     expression */
4477  const char *g = "string";
4478  pcpcc = &g + (g ? g-g : 0);
4479  /* HPUX 7.0 cc rejects these. */
4480  ++pcpcc;
4481  ppc = (char**) pcpcc;
4482  pcpcc = (char const *const *) ppc;
4483  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4484    char tx;
4485    char *t = &tx;
4486    char const *s = 0 ? (char *) 0 : (char const *) 0;
4487
4488    *t++ = 0;
4489    if (s) return 0;
4490  }
4491  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4492    int x[] = {25, 17};
4493    const int *foo = &x[0];
4494    ++foo;
4495  }
4496  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4497    typedef const int *iptr;
4498    iptr p = 0;
4499    ++p;
4500  }
4501  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4502       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4503    struct s { int j; const int *ap[3]; } bx;
4504    struct s *b = &bx; b->j = 5;
4505  }
4506  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4507    const int foo = 10;
4508    if (!foo) return 0;
4509  }
4510  return !cs[0] && !zero.x;
4511#endif
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517if ac_fn_c_try_compile "$LINENO"; then :
4518  ac_cv_c_const=yes
4519else
4520  ac_cv_c_const=no
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4525$as_echo "$ac_cv_c_const" >&6; }
4526if test $ac_cv_c_const = no; then
4527
4528$as_echo "#define const /**/" >>confdefs.h
4529
4530fi
4531
4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538# allow user to override the -g -O2 flags.
4539default_cflags=no
4540if test "x$CFLAGS" = "x" ; then
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4544$as_echo_n "checking whether $CC supports -g... " >&6; }
4545cache=`echo g | sed 'y%.=/+-%___p_%'`
4546if eval \${cv_prog_cc_flag_$cache+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549
4550echo 'void f(void){}' >conftest.c
4551if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4552eval "cv_prog_cc_flag_$cache=yes"
4553else
4554eval "cv_prog_cc_flag_$cache=no"
4555fi
4556rm -f conftest conftest.o conftest.c
4557
4558fi
4559
4560if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562$as_echo "yes" >&6; }
4563:
4564CFLAGS="$CFLAGS -g"
4565else
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568:
4569
4570fi
4571
4572
4573
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4575$as_echo_n "checking whether $CC supports -O2... " >&6; }
4576cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4577if eval \${cv_prog_cc_flag_$cache+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580
4581echo 'void f(void){}' >conftest.c
4582if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4583eval "cv_prog_cc_flag_$cache=yes"
4584else
4585eval "cv_prog_cc_flag_$cache=no"
4586fi
4587rm -f conftest conftest.o conftest.c
4588
4589fi
4590
4591if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593$as_echo "yes" >&6; }
4594:
4595CFLAGS="$CFLAGS -O2"
4596else
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
4599:
4600
4601fi
4602
4603default_cflags=yes
4604fi
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610if test -n "$ac_tool_prefix"; then
4611  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}gcc; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if ${ac_cv_prog_CC+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if test -n "$CC"; then
4619  ac_cv_prog_CC="$CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_exec_ext in '' $ac_executable_extensions; do
4627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630    break 2
4631  fi
4632done
4633  done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638CC=$ac_cv_prog_CC
4639if test -n "$CC"; then
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641$as_echo "$CC" >&6; }
4642else
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648fi
4649if test -z "$ac_cv_prog_CC"; then
4650  ac_ct_CC=$CC
4651  # Extract the first word of "gcc", so it can be a program name with args.
4652set dummy gcc; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if ${ac_cv_prog_ac_ct_CC+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -n "$ac_ct_CC"; then
4659  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666    for ac_exec_ext in '' $ac_executable_extensions; do
4667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_prog_ac_ct_CC="gcc"
4669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673  done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679if test -n "$ac_ct_CC"; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4681$as_echo "$ac_ct_CC" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687  if test "x$ac_ct_CC" = x; then
4688    CC=""
4689  else
4690    case $cross_compiling:$ac_tool_warned in
4691yes:)
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694ac_tool_warned=yes ;;
4695esac
4696    CC=$ac_ct_CC
4697  fi
4698else
4699  CC="$ac_cv_prog_CC"
4700fi
4701
4702if test -z "$CC"; then
4703          if test -n "$ac_tool_prefix"; then
4704    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4705set dummy ${ac_tool_prefix}cc; ac_word=$2
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
4708if ${ac_cv_prog_CC+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if test -n "$CC"; then
4712  ac_cv_prog_CC="$CC" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717  IFS=$as_save_IFS
4718  test -z "$as_dir" && as_dir=.
4719    for ac_exec_ext in '' $ac_executable_extensions; do
4720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721    ac_cv_prog_CC="${ac_tool_prefix}cc"
4722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731CC=$ac_cv_prog_CC
4732if test -n "$CC"; then
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4734$as_echo "$CC" >&6; }
4735else
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738fi
4739
4740
4741  fi
4742fi
4743if test -z "$CC"; then
4744  # Extract the first word of "cc", so it can be a program name with args.
4745set dummy cc; ac_word=$2
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747$as_echo_n "checking for $ac_word... " >&6; }
4748if ${ac_cv_prog_CC+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  if test -n "$CC"; then
4752  ac_cv_prog_CC="$CC" # Let the user override the test.
4753else
4754  ac_prog_rejected=no
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758  IFS=$as_save_IFS
4759  test -z "$as_dir" && as_dir=.
4760    for ac_exec_ext in '' $ac_executable_extensions; do
4761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4763       ac_prog_rejected=yes
4764       continue
4765     fi
4766    ac_cv_prog_CC="cc"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774if test $ac_prog_rejected = yes; then
4775  # We found a bogon in the path, so make sure we never use it.
4776  set dummy $ac_cv_prog_CC
4777  shift
4778  if test $# != 0; then
4779    # We chose a different compiler from the bogus one.
4780    # However, it has the same basename, so the bogon will be chosen
4781    # first if we set CC to just the basename; use the full file name.
4782    shift
4783    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4784  fi
4785fi
4786fi
4787fi
4788CC=$ac_cv_prog_CC
4789if test -n "$CC"; then
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791$as_echo "$CC" >&6; }
4792else
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796
4797
4798fi
4799if test -z "$CC"; then
4800  if test -n "$ac_tool_prefix"; then
4801  for ac_prog in cl.exe
4802  do
4803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if ${ac_cv_prog_CC+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  if test -n "$CC"; then
4811  ac_cv_prog_CC="$CC" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818    for ac_exec_ext in '' $ac_executable_extensions; do
4819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825  done
4826IFS=$as_save_IFS
4827
4828fi
4829fi
4830CC=$ac_cv_prog_CC
4831if test -n "$CC"; then
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4833$as_echo "$CC" >&6; }
4834else
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837fi
4838
4839
4840    test -n "$CC" && break
4841  done
4842fi
4843if test -z "$CC"; then
4844  ac_ct_CC=$CC
4845  for ac_prog in cl.exe
4846do
4847  # Extract the first word of "$ac_prog", so it can be a program name with args.
4848set dummy $ac_prog; ac_word=$2
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if ${ac_cv_prog_ac_ct_CC+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -n "$ac_ct_CC"; then
4855  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_exec_ext in '' $ac_executable_extensions; do
4863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864    ac_cv_prog_ac_ct_CC="$ac_prog"
4865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866    break 2
4867  fi
4868done
4869  done
4870IFS=$as_save_IFS
4871
4872fi
4873fi
4874ac_ct_CC=$ac_cv_prog_ac_ct_CC
4875if test -n "$ac_ct_CC"; then
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4877$as_echo "$ac_ct_CC" >&6; }
4878else
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
4881fi
4882
4883
4884  test -n "$ac_ct_CC" && break
4885done
4886
4887  if test "x$ac_ct_CC" = x; then
4888    CC=""
4889  else
4890    case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896    CC=$ac_ct_CC
4897  fi
4898fi
4899
4900fi
4901
4902
4903test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4905as_fn_error $? "no acceptable C compiler found in \$PATH
4906See \`config.log' for more details" "$LINENO" 5; }
4907
4908# Provide some information about the compiler.
4909$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4910set X $ac_compile
4911ac_compiler=$2
4912for ac_option in --version -v -V -qversion; do
4913  { { ac_try="$ac_compiler $ac_option >&5"
4914case "(($ac_try" in
4915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916  *) ac_try_echo=$ac_try;;
4917esac
4918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4919$as_echo "$ac_try_echo"; } >&5
4920  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4921  ac_status=$?
4922  if test -s conftest.err; then
4923    sed '10a\
4924... rest of stderr output deleted ...
4925         10q' conftest.err >conftest.er1
4926    cat conftest.er1 >&5
4927  fi
4928  rm -f conftest.er1 conftest.err
4929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930  test $ac_status = 0; }
4931done
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4934$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4935if ${ac_cv_c_compiler_gnu+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941int
4942main ()
4943{
4944#ifndef __GNUC__
4945       choke me
4946#endif
4947
4948  ;
4949  return 0;
4950}
4951_ACEOF
4952if ac_fn_c_try_compile "$LINENO"; then :
4953  ac_compiler_gnu=yes
4954else
4955  ac_compiler_gnu=no
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958ac_cv_c_compiler_gnu=$ac_compiler_gnu
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4962$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4963if test $ac_compiler_gnu = yes; then
4964  GCC=yes
4965else
4966  GCC=
4967fi
4968ac_test_CFLAGS=${CFLAGS+set}
4969ac_save_CFLAGS=$CFLAGS
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4971$as_echo_n "checking whether $CC accepts -g... " >&6; }
4972if ${ac_cv_prog_cc_g+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  ac_save_c_werror_flag=$ac_c_werror_flag
4976   ac_c_werror_flag=yes
4977   ac_cv_prog_cc_g=no
4978   CFLAGS="-g"
4979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981
4982int
4983main ()
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990if ac_fn_c_try_compile "$LINENO"; then :
4991  ac_cv_prog_cc_g=yes
4992else
4993  CFLAGS=""
4994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996
4997int
4998main ()
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006
5007else
5008  ac_c_werror_flag=$ac_save_c_werror_flag
5009	 CFLAGS="-g"
5010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012
5013int
5014main ()
5015{
5016
5017  ;
5018  return 0;
5019}
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022  ac_cv_prog_cc_g=yes
5023fi
5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029   ac_c_werror_flag=$ac_save_c_werror_flag
5030fi
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5032$as_echo "$ac_cv_prog_cc_g" >&6; }
5033if test "$ac_test_CFLAGS" = set; then
5034  CFLAGS=$ac_save_CFLAGS
5035elif test $ac_cv_prog_cc_g = yes; then
5036  if test "$GCC" = yes; then
5037    CFLAGS="-g -O2"
5038  else
5039    CFLAGS="-g"
5040  fi
5041else
5042  if test "$GCC" = yes; then
5043    CFLAGS="-O2"
5044  else
5045    CFLAGS=
5046  fi
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5049$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5050if ${ac_cv_prog_cc_c89+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  ac_cv_prog_cc_c89=no
5054ac_save_CC=$CC
5055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057#include <stdarg.h>
5058#include <stdio.h>
5059struct stat;
5060/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5061struct buf { int x; };
5062FILE * (*rcsopen) (struct buf *, struct stat *, int);
5063static char *e (p, i)
5064     char **p;
5065     int i;
5066{
5067  return p[i];
5068}
5069static char *f (char * (*g) (char **, int), char **p, ...)
5070{
5071  char *s;
5072  va_list v;
5073  va_start (v,p);
5074  s = g (p, va_arg (v,int));
5075  va_end (v);
5076  return s;
5077}
5078
5079/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5080   function prototypes and stuff, but not '\xHH' hex character constants.
5081   These don't provoke an error unfortunately, instead are silently treated
5082   as 'x'.  The following induces an error, until -std is added to get
5083   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5084   array size at least.  It's necessary to write '\x00'==0 to get something
5085   that's true only with -std.  */
5086int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5087
5088/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5089   inside strings and character constants.  */
5090#define FOO(x) 'x'
5091int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5092
5093int test (int i, double x);
5094struct s1 {int (*f) (int a);};
5095struct s2 {int (*f) (double a);};
5096int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5097int argc;
5098char **argv;
5099int
5100main ()
5101{
5102return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5108	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5109do
5110  CC="$ac_save_CC $ac_arg"
5111  if ac_fn_c_try_compile "$LINENO"; then :
5112  ac_cv_prog_cc_c89=$ac_arg
5113fi
5114rm -f core conftest.err conftest.$ac_objext
5115  test "x$ac_cv_prog_cc_c89" != "xno" && break
5116done
5117rm -f conftest.$ac_ext
5118CC=$ac_save_CC
5119
5120fi
5121# AC_CACHE_VAL
5122case "x$ac_cv_prog_cc_c89" in
5123  x)
5124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125$as_echo "none needed" >&6; } ;;
5126  xno)
5127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128$as_echo "unsupported" >&6; } ;;
5129  *)
5130    CC="$CC $ac_cv_prog_cc_c89"
5131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5132$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5133esac
5134if test "x$ac_cv_prog_cc_c89" != xno; then :
5135
5136fi
5137
5138ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5146$as_echo_n "checking $CC dependency flag... " >&6; }
5147echo 'void f(){}' >conftest.c
5148if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5149	DEPFLAG="-MM"
5150else
5151  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5152	DEPFLAG="-xM1"
5153  else
5154	DEPFLAG="-MM"  # dunno do something
5155  fi
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5158$as_echo "$DEPFLAG" >&6; }
5159rm -f conftest.c
5160
5161
5162
5163
5164
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5166$as_echo_n "checking whether $CC supports -Werror... " >&6; }
5167cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5168if eval \${cv_prog_cc_flag_$cache+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171
5172echo 'void f(void){}' >conftest.c
5173if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5174eval "cv_prog_cc_flag_$cache=yes"
5175else
5176eval "cv_prog_cc_flag_$cache=no"
5177fi
5178rm -f conftest conftest.o conftest.c
5179
5180fi
5181
5182if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184$as_echo "yes" >&6; }
5185:
5186ERRFLAG="-Werror"
5187else
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190:
5191ERRFLAG="-errwarn"
5192fi
5193
5194
5195
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5197$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5198cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5199if eval \${cv_prog_cc_flag_$cache+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202
5203echo 'void f(void){}' >conftest.c
5204if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5205eval "cv_prog_cc_flag_$cache=yes"
5206else
5207eval "cv_prog_cc_flag_$cache=no"
5208fi
5209rm -f conftest conftest.o conftest.c
5210
5211fi
5212
5213if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215$as_echo "yes" >&6; }
5216:
5217ERRFLAG="$ERRFLAG -Wall"
5218else
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221:
5222ERRFLAG="$ERRFLAG -errfmt"
5223fi
5224
5225
5226
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5230$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5231cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5232if eval \${cv_prog_cc_flag_$cache+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235
5236echo 'void f(void){}' >conftest.c
5237if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5238eval "cv_prog_cc_flag_$cache=yes"
5239else
5240eval "cv_prog_cc_flag_$cache=no"
5241fi
5242rm -f conftest conftest.o conftest.c
5243
5244fi
5245
5246if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248$as_echo "yes" >&6; }
5249:
5250C99FLAG="-std=c99"
5251else
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253$as_echo "no" >&6; }
5254:
5255
5256fi
5257
5258
5259
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5261$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5262cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5263if eval \${cv_prog_cc_flag_$cache+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266
5267echo 'void f(void){}' >conftest.c
5268if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5269eval "cv_prog_cc_flag_$cache=yes"
5270else
5271eval "cv_prog_cc_flag_$cache=no"
5272fi
5273rm -f conftest conftest.o conftest.c
5274
5275fi
5276
5277if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279$as_echo "yes" >&6; }
5280:
5281C99FLAG="-xc99"
5282else
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285:
5286
5287fi
5288
5289
5290for ac_header in getopt.h time.h
5291do :
5292  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5294"
5295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5296  cat >>confdefs.h <<_ACEOF
5297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5298_ACEOF
5299
5300fi
5301
5302done
5303
5304
5305
5306
5307
5308{ $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
5309$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; }
5310cache=`$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`
5311if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314
5315echo '
5316#include "confdefs.h"
5317#include <stdlib.h>
5318#include <ctype.h>
5319#include <sys/time.h>
5320#ifdef HAVE_TIME_H
5321#include <time.h>
5322#endif
5323#include <unistd.h>
5324#include <netdb.h>
5325#ifdef HAVE_GETOPT_H
5326#include <getopt.h>
5327#endif
5328
5329int test() {
5330	int a;
5331	char **opts = NULL;
5332	struct timeval tv;
5333	char *t;
5334	time_t time = 0;
5335	char *buf = NULL;
5336	const char* str = NULL;
5337	struct msghdr msg;
5338	msg.msg_control = 0;
5339	t = ctime_r(&time, buf);
5340	tv.tv_usec = 10;
5341	srandom(32);
5342	a = getopt(2, opts, "a");
5343	a = isascii(32);
5344	str = gai_strerror(0);
5345	if(str && t && tv.tv_usec && msg.msg_control)
5346		a = 0;
5347	return a;
5348}
5349' > conftest.c
5350echo 'void f(){}' >>conftest.c
5351if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5352eval "cv_prog_cc_flag_needed_$cache=no"
5353else
5354
5355if 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
5356eval "cv_prog_cc_flag_needed_$cache=yes"
5357else
5358eval "cv_prog_cc_flag_needed_$cache=fail"
5359#echo 'Test with flag fails too!'
5360#cat conftest.c
5361#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"
5362#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`
5363#exit 1
5364fi
5365
5366fi
5367rm -f conftest conftest.c conftest.o
5368
5369fi
5370
5371if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373$as_echo "yes" >&6; }
5374:
5375CFLAGS="$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"
5376else
5377if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380#echo 'Test with flag is no!'
5381#cat conftest.c
5382#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"
5383#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`
5384#exit 1
5385:
5386
5387else
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5389$as_echo "failed" >&6; }
5390:
5391
5392fi
5393fi
5394
5395
5396
5397
5398
5399{ $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
5400$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; }
5401cache=`$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`
5402if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405
5406echo '
5407#include "confdefs.h"
5408#include <stdlib.h>
5409#include <ctype.h>
5410#include <sys/time.h>
5411#ifdef HAVE_TIME_H
5412#include <time.h>
5413#endif
5414#include <unistd.h>
5415#include <netdb.h>
5416#ifdef HAVE_GETOPT_H
5417#include <getopt.h>
5418#endif
5419
5420int test() {
5421	int a;
5422	char **opts = NULL;
5423	struct timeval tv;
5424	char *t;
5425	time_t time = 0;
5426	char *buf = NULL;
5427	const char* str = NULL;
5428	struct msghdr msg;
5429	msg.msg_control = 0;
5430	t = ctime_r(&time, buf);
5431	tv.tv_usec = 10;
5432	srandom(32);
5433	a = getopt(2, opts, "a");
5434	a = isascii(32);
5435	str = gai_strerror(0);
5436	if(str && t && tv.tv_usec && msg.msg_control)
5437		a = 0;
5438	return a;
5439}
5440' > conftest.c
5441echo 'void f(){}' >>conftest.c
5442if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5443eval "cv_prog_cc_flag_needed_$cache=no"
5444else
5445
5446if 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
5447eval "cv_prog_cc_flag_needed_$cache=yes"
5448else
5449eval "cv_prog_cc_flag_needed_$cache=fail"
5450#echo 'Test with flag fails too!'
5451#cat conftest.c
5452#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"
5453#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`
5454#exit 1
5455fi
5456
5457fi
5458rm -f conftest conftest.c conftest.o
5459
5460fi
5461
5462if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464$as_echo "yes" >&6; }
5465:
5466CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5467else
5468if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471#echo 'Test with flag is no!'
5472#cat conftest.c
5473#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"
5474#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`
5475#exit 1
5476:
5477
5478else
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5480$as_echo "failed" >&6; }
5481:
5482
5483fi
5484fi
5485
5486
5487
5488
5489
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5491$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5492cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5493if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496
5497echo '
5498#include <stdbool.h>
5499#include <ctype.h>
5500int test() {
5501        int a = 0;
5502        return a;
5503}
5504' > conftest.c
5505echo 'void f(){}' >>conftest.c
5506if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5507eval "cv_prog_cc_flag_needed_$cache=no"
5508else
5509
5510if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5511eval "cv_prog_cc_flag_needed_$cache=yes"
5512else
5513eval "cv_prog_cc_flag_needed_$cache=fail"
5514#echo 'Test with flag fails too!'
5515#cat conftest.c
5516#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5517#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5518#exit 1
5519fi
5520
5521fi
5522rm -f conftest conftest.c conftest.o
5523
5524fi
5525
5526if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528$as_echo "yes" >&6; }
5529:
5530CFLAGS="$CFLAGS $C99FLAG"
5531else
5532if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535#echo 'Test with flag is no!'
5536#cat conftest.c
5537#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5538#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5539#exit 1
5540:
5541
5542else
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5544$as_echo "failed" >&6; }
5545:
5546
5547fi
5548fi
5549
5550
5551
5552
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5555$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5556cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5557if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560
5561echo '
5562#include <ctype.h>
5563
5564int test() {
5565        int a;
5566        a = isascii(32);
5567        return a;
5568}
5569' > conftest.c
5570echo 'void f(){}' >>conftest.c
5571if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5572eval "cv_prog_cc_flag_needed_$cache=no"
5573else
5574
5575if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5576eval "cv_prog_cc_flag_needed_$cache=yes"
5577else
5578eval "cv_prog_cc_flag_needed_$cache=fail"
5579#echo 'Test with flag fails too!'
5580#cat conftest.c
5581#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5582#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5583#exit 1
5584fi
5585
5586fi
5587rm -f conftest conftest.c conftest.o
5588
5589fi
5590
5591if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593$as_echo "yes" >&6; }
5594:
5595CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5596else
5597if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600#echo 'Test with flag is no!'
5601#cat conftest.c
5602#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5603#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5604#exit 1
5605:
5606
5607else
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5609$as_echo "failed" >&6; }
5610:
5611
5612fi
5613fi
5614
5615
5616
5617
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5620$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5621cache=_D_GNU_SOURCE
5622if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5623  $as_echo_n "(cached) " >&6
5624else
5625
5626echo '
5627#include <netinet/in.h>
5628
5629int test() {
5630        struct in6_pktinfo inf;
5631	int a = (int)sizeof(inf);
5632        return a;
5633}
5634' > conftest.c
5635echo 'void f(){}' >>conftest.c
5636if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5637eval "cv_prog_cc_flag_needed_$cache=no"
5638else
5639
5640if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5641eval "cv_prog_cc_flag_needed_$cache=yes"
5642else
5643eval "cv_prog_cc_flag_needed_$cache=fail"
5644#echo 'Test with flag fails too!'
5645#cat conftest.c
5646#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5647#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5648#exit 1
5649fi
5650
5651fi
5652rm -f conftest conftest.c conftest.o
5653
5654fi
5655
5656if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658$as_echo "yes" >&6; }
5659:
5660CFLAGS="$CFLAGS -D_GNU_SOURCE"
5661else
5662if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665#echo 'Test with flag is no!'
5666#cat conftest.c
5667#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5668#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5669#exit 1
5670:
5671
5672else
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5674$as_echo "failed" >&6; }
5675:
5676
5677fi
5678fi
5679
5680
5681# check again for GNU_SOURCE for setresgid. May fail if setresgid
5682# is not available at all. -D_FRSRESGID is to make this check unique.
5683# otherwise we would get the previous cached result.
5684
5685
5686
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5688$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5689cache=_D_GNU_SOURCE__D_FRSRESGID
5690if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693
5694echo '
5695#include <unistd.h>
5696
5697int test() {
5698	int a = setresgid(0,0,0);
5699	a = setresuid(0,0,0);
5700        return a;
5701}
5702' > conftest.c
5703echo 'void f(){}' >>conftest.c
5704if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5705eval "cv_prog_cc_flag_needed_$cache=no"
5706else
5707
5708if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5709eval "cv_prog_cc_flag_needed_$cache=yes"
5710else
5711eval "cv_prog_cc_flag_needed_$cache=fail"
5712#echo 'Test with flag fails too!'
5713#cat conftest.c
5714#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5715#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5716#exit 1
5717fi
5718
5719fi
5720rm -f conftest conftest.c conftest.o
5721
5722fi
5723
5724if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726$as_echo "yes" >&6; }
5727:
5728CFLAGS="$CFLAGS -D_GNU_SOURCE"
5729else
5730if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733#echo 'Test with flag is no!'
5734#cat conftest.c
5735#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5736#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5737#exit 1
5738:
5739
5740else
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5742$as_echo "failed" >&6; }
5743:
5744
5745fi
5746fi
5747
5748
5749
5750
5751
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5753$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5754cache=_D_POSIX_C_SOURCE_200112
5755if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758
5759echo '
5760#include "confdefs.h"
5761#ifdef HAVE_TIME_H
5762#include <time.h>
5763#endif
5764#include <netdb.h>
5765
5766int test() {
5767        int a = 0;
5768        char *t;
5769        time_t time = 0;
5770        char *buf = NULL;
5771	const char* str = NULL;
5772        t = ctime_r(&time, buf);
5773	str = gai_strerror(0);
5774	if(t && str)
5775		a = 0;
5776        return a;
5777}
5778' > conftest.c
5779echo 'void f(){}' >>conftest.c
5780if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5781eval "cv_prog_cc_flag_needed_$cache=no"
5782else
5783
5784if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5785eval "cv_prog_cc_flag_needed_$cache=yes"
5786else
5787eval "cv_prog_cc_flag_needed_$cache=fail"
5788#echo 'Test with flag fails too!'
5789#cat conftest.c
5790#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5791#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5792#exit 1
5793fi
5794
5795fi
5796rm -f conftest conftest.c conftest.o
5797
5798fi
5799
5800if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802$as_echo "yes" >&6; }
5803:
5804CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5805else
5806if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809#echo 'Test with flag is no!'
5810#cat conftest.c
5811#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5812#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5813#exit 1
5814:
5815
5816else
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5818$as_echo "failed" >&6; }
5819:
5820
5821fi
5822fi
5823
5824
5825
5826
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5829$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5830cache=_D__EXTENSIONS__
5831if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834
5835echo '
5836#include "confdefs.h"
5837#include <stdlib.h>
5838#include <ctype.h>
5839#include <sys/time.h>
5840#ifdef HAVE_TIME_H
5841#include <time.h>
5842#endif
5843#include <unistd.h>
5844#ifdef HAVE_GETOPT_H
5845#include <getopt.h>
5846#endif
5847
5848int test() {
5849        int a;
5850        char **opts = NULL;
5851        struct timeval tv;
5852        tv.tv_usec = 10;
5853        srandom(32);
5854        a = getopt(2, opts, "a");
5855        a = isascii(32);
5856	if(tv.tv_usec)
5857		a = 0;
5858        return a;
5859}
5860' > conftest.c
5861echo 'void f(){}' >>conftest.c
5862if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5863eval "cv_prog_cc_flag_needed_$cache=no"
5864else
5865
5866if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5867eval "cv_prog_cc_flag_needed_$cache=yes"
5868else
5869eval "cv_prog_cc_flag_needed_$cache=fail"
5870#echo 'Test with flag fails too!'
5871#cat conftest.c
5872#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5873#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5874#exit 1
5875fi
5876
5877fi
5878rm -f conftest conftest.c conftest.o
5879
5880fi
5881
5882if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5884$as_echo "yes" >&6; }
5885:
5886CFLAGS="$CFLAGS -D__EXTENSIONS__"
5887else
5888if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891#echo 'Test with flag is no!'
5892#cat conftest.c
5893#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5894#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5895#exit 1
5896:
5897
5898else
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5900$as_echo "failed" >&6; }
5901:
5902
5903fi
5904fi
5905
5906
5907
5908
5909# debug mode flags warnings
5910# Check whether --enable-checking was given.
5911if test "${enable_checking+set}" = set; then :
5912  enableval=$enable_checking;
5913fi
5914
5915# Check whether --enable-debug was given.
5916if test "${enable_debug+set}" = set; then :
5917  enableval=$enable_debug;
5918fi
5919
5920if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5921else debug_enabled="$enable_checking"; fi
5922
5923case "$debug_enabled" in
5924        yes)
5925
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5928$as_echo_n "checking whether $CC supports -W... " >&6; }
5929cache=`echo W | sed 'y%.=/+-%___p_%'`
5930if eval \${cv_prog_cc_flag_$cache+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933
5934echo 'void f(void){}' >conftest.c
5935if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5936eval "cv_prog_cc_flag_$cache=yes"
5937else
5938eval "cv_prog_cc_flag_$cache=no"
5939fi
5940rm -f conftest conftest.o conftest.c
5941
5942fi
5943
5944if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946$as_echo "yes" >&6; }
5947:
5948CFLAGS="$CFLAGS -W"
5949else
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952:
5953
5954fi
5955
5956
5957
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5959$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5960cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5961if eval \${cv_prog_cc_flag_$cache+:} false; then :
5962  $as_echo_n "(cached) " >&6
5963else
5964
5965echo 'void f(void){}' >conftest.c
5966if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5967eval "cv_prog_cc_flag_$cache=yes"
5968else
5969eval "cv_prog_cc_flag_$cache=no"
5970fi
5971rm -f conftest conftest.o conftest.c
5972
5973fi
5974
5975if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977$as_echo "yes" >&6; }
5978:
5979CFLAGS="$CFLAGS -Wall"
5980else
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983:
5984
5985fi
5986
5987
5988
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5990$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5991cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5992if eval \${cv_prog_cc_flag_$cache+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995
5996echo 'void f(void){}' >conftest.c
5997if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5998eval "cv_prog_cc_flag_$cache=yes"
5999else
6000eval "cv_prog_cc_flag_$cache=no"
6001fi
6002rm -f conftest conftest.o conftest.c
6003
6004fi
6005
6006if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6008$as_echo "yes" >&6; }
6009:
6010CFLAGS="$CFLAGS -Wextra"
6011else
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014:
6015
6016fi
6017
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6021$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6022cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6023if eval \${cv_prog_cc_flag_$cache+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026
6027echo 'void f(void){}' >conftest.c
6028if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6029eval "cv_prog_cc_flag_$cache=yes"
6030else
6031eval "cv_prog_cc_flag_$cache=no"
6032fi
6033rm -f conftest conftest.o conftest.c
6034
6035fi
6036
6037if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6039$as_echo "yes" >&6; }
6040:
6041CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6042else
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045:
6046
6047fi
6048
6049
6050$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6051
6052		;;
6053	no|*)
6054		# nothing to do.
6055		;;
6056esac
6057if test "$default_cflags" = "yes"; then
6058	# only when CFLAGS was "" at the start, if the users wants to
6059	# override we shouldn't add default cflags, because they wouldn't
6060	# be able to turn off these options and set the CFLAGS wanted.
6061
6062    # Check whether --enable-flto was given.
6063if test "${enable_flto+set}" = set; then :
6064  enableval=$enable_flto;
6065fi
6066
6067    if test "x$enable_flto" != "xno"; then :
6068
6069        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6070$as_echo_n "checking if $CC supports -flto... " >&6; }
6071        BAKCFLAGS="$CFLAGS"
6072        CFLAGS="$CFLAGS -flto"
6073        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075
6076int
6077main ()
6078{
6079
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_link "$LINENO"; then :
6085
6086            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6087                CFLAGS="$BAKCFLAGS"
6088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090            else
6091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6092$as_echo "yes" >&6; }
6093            fi
6094            rm -f conftest conftest.c conftest.o
6095
6096else
6097  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100rm -f core conftest.err conftest.$ac_objext \
6101    conftest$ac_exeext conftest.$ac_ext
6102
6103fi
6104
6105
6106    # Check whether --enable-pie was given.
6107if test "${enable_pie+set}" = set; then :
6108  enableval=$enable_pie;
6109fi
6110
6111    if test "x$enable_pie" = "xyes"; then :
6112
6113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6114$as_echo_n "checking if $CC supports PIE... " >&6; }
6115	BAKLDFLAGS="$LDFLAGS"
6116	BAKCFLAGS="$CFLAGS"
6117	LDFLAGS="$LDFLAGS -pie"
6118	CFLAGS="$CFLAGS -fPIE"
6119	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121
6122int
6123main ()
6124{
6125
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_link "$LINENO"; then :
6131
6132	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6133		LDFLAGS="$BAKLDFLAGS"
6134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136	    else
6137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138$as_echo "yes" >&6; }
6139	    fi
6140	    rm -f conftest conftest.c conftest.o
6141
6142else
6143  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146rm -f core conftest.err conftest.$ac_objext \
6147    conftest$ac_exeext conftest.$ac_ext
6148
6149fi
6150
6151
6152    # Check whether --enable-relro_now was given.
6153if test "${enable_relro_now+set}" = set; then :
6154  enableval=$enable_relro_now;
6155fi
6156
6157    if test "x$enable_relro_now" = "xyes"; then :
6158
6159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6160$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6161	BAKLDFLAGS="$LDFLAGS"
6162	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6163	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165
6166int
6167main ()
6168{
6169
6170  ;
6171  return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_link "$LINENO"; then :
6175
6176	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6177		LDFLAGS="$BAKLDFLAGS"
6178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180	    else
6181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6182$as_echo "yes" >&6; }
6183	    fi
6184	    rm -f conftest conftest.c conftest.o
6185
6186else
6187  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190rm -f core conftest.err conftest.$ac_objext \
6191    conftest$ac_exeext conftest.$ac_ext
6192
6193fi
6194
6195fi
6196
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6198$as_echo_n "checking for inline... " >&6; }
6199if ${ac_cv_c_inline+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  ac_cv_c_inline=no
6203for ac_kw in inline __inline__ __inline; do
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206#ifndef __cplusplus
6207typedef int foo_t;
6208static $ac_kw foo_t static_foo () {return 0; }
6209$ac_kw foo_t foo () {return 0; }
6210#endif
6211
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214  ac_cv_c_inline=$ac_kw
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217  test "$ac_cv_c_inline" != no && break
6218done
6219
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6222$as_echo "$ac_cv_c_inline" >&6; }
6223
6224case $ac_cv_c_inline in
6225  inline | yes) ;;
6226  *)
6227    case $ac_cv_c_inline in
6228      no) ac_val=;;
6229      *) ac_val=$ac_cv_c_inline;;
6230    esac
6231    cat >>confdefs.h <<_ACEOF
6232#ifndef __cplusplus
6233#define inline $ac_val
6234#endif
6235_ACEOF
6236    ;;
6237esac
6238
6239
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6241$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6242if ${ac_cv_c_format_attribute+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  ac_cv_c_format_attribute=no
6246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h.  */
6248#include <stdio.h>
6249void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6250void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6251
6252int
6253main ()
6254{
6255
6256   f ("%s", "str");
6257
6258  ;
6259  return 0;
6260}
6261_ACEOF
6262if ac_fn_c_try_compile "$LINENO"; then :
6263  ac_cv_c_format_attribute="yes"
6264else
6265  ac_cv_c_format_attribute="no"
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268
6269fi
6270
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6273$as_echo "$ac_cv_c_format_attribute" >&6; }
6274if test $ac_cv_c_format_attribute = yes; then
6275
6276$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6277
6278fi
6279
6280
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6282$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6283if ${ac_cv_c_unused_attribute+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  ac_cv_c_unused_attribute=no
6287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h.  */
6289#include <stdio.h>
6290void f (char *u __attribute__((unused)));
6291
6292int
6293main ()
6294{
6295
6296   f ("x");
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_compile "$LINENO"; then :
6303  ac_cv_c_unused_attribute="yes"
6304else
6305  ac_cv_c_unused_attribute="no"
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309fi
6310
6311
6312
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6315$as_echo "$ac_cv_c_unused_attribute" >&6; }
6316if test $ac_cv_c_unused_attribute = yes; then
6317
6318$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6319
6320fi
6321
6322
6323
6324
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6326$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6327if ${ac_cv_c_weak_attribute+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  ac_cv_c_weak_attribute=no
6331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h.  */
6333 #include <stdio.h>
6334__attribute__((weak)) void f(int x) { printf("%d", x); }
6335
6336int
6337main ()
6338{
6339
6340   f(1);
6341
6342  ;
6343  return 0;
6344}
6345_ACEOF
6346if ac_fn_c_try_compile "$LINENO"; then :
6347  ac_cv_c_weak_attribute="yes"
6348else
6349  ac_cv_c_weak_attribute="no"
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352
6353fi
6354
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6357$as_echo "$ac_cv_c_weak_attribute" >&6; }
6358if test $ac_cv_c_weak_attribute = yes; then
6359
6360$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6361
6362
6363$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6364
6365fi
6366
6367
6368
6369
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6371$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6372if ${ac_cv_c_noreturn_attribute+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  ac_cv_c_noreturn_attribute=no
6376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378 #include <stdio.h>
6379__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6380
6381int
6382main ()
6383{
6384
6385   f(1);
6386
6387  ;
6388  return 0;
6389}
6390_ACEOF
6391if ac_fn_c_try_compile "$LINENO"; then :
6392  ac_cv_c_noreturn_attribute="yes"
6393else
6394  ac_cv_c_noreturn_attribute="no"
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397
6398fi
6399
6400
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6402$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6403if test $ac_cv_c_noreturn_attribute = yes; then
6404
6405$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6406
6407
6408$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6409
6410fi
6411
6412
6413if test "$srcdir" != "."; then
6414	CPPFLAGS="$CPPFLAGS -I$srcdir"
6415fi
6416
6417
6418
6419
6420
6421for ac_prog in flex lex
6422do
6423  # Extract the first word of "$ac_prog", so it can be a program name with args.
6424set dummy $ac_prog; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_LEX+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$LEX"; then
6431  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_LEX="$ac_prog"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450LEX=$ac_cv_prog_LEX
6451if test -n "$LEX"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6453$as_echo "$LEX" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460  test -n "$LEX" && break
6461done
6462test -n "$LEX" || LEX=":"
6463
6464if test "x$LEX" != "x:"; then
6465  cat >conftest.l <<_ACEOF
6466%%
6467a { ECHO; }
6468b { REJECT; }
6469c { yymore (); }
6470d { yyless (1); }
6471e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6472    yyless ((input () != 0)); }
6473f { unput (yytext[0]); }
6474. { BEGIN INITIAL; }
6475%%
6476#ifdef YYTEXT_POINTER
6477extern char *yytext;
6478#endif
6479int
6480main (void)
6481{
6482  return ! yylex () + ! yywrap ();
6483}
6484_ACEOF
6485{ { ac_try="$LEX conftest.l"
6486case "(($ac_try" in
6487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488  *) ac_try_echo=$ac_try;;
6489esac
6490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6491$as_echo "$ac_try_echo"; } >&5
6492  (eval "$LEX conftest.l") 2>&5
6493  ac_status=$?
6494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495  test $ac_status = 0; }
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6497$as_echo_n "checking lex output file root... " >&6; }
6498if ${ac_cv_prog_lex_root+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501
6502if test -f lex.yy.c; then
6503  ac_cv_prog_lex_root=lex.yy
6504elif test -f lexyy.c; then
6505  ac_cv_prog_lex_root=lexyy
6506else
6507  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6508fi
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6511$as_echo "$ac_cv_prog_lex_root" >&6; }
6512LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6513
6514if test -z "${LEXLIB+set}"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6516$as_echo_n "checking lex library... " >&6; }
6517if ${ac_cv_lib_lex+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520
6521    ac_save_LIBS=$LIBS
6522    ac_cv_lib_lex='none needed'
6523    for ac_lib in '' -lfl -ll; do
6524      LIBS="$ac_lib $ac_save_LIBS"
6525      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h.  */
6527`cat $LEX_OUTPUT_ROOT.c`
6528_ACEOF
6529if ac_fn_c_try_link "$LINENO"; then :
6530  ac_cv_lib_lex=$ac_lib
6531fi
6532rm -f core conftest.err conftest.$ac_objext \
6533    conftest$ac_exeext conftest.$ac_ext
6534      test "$ac_cv_lib_lex" != 'none needed' && break
6535    done
6536    LIBS=$ac_save_LIBS
6537
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6540$as_echo "$ac_cv_lib_lex" >&6; }
6541  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6542fi
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6546$as_echo_n "checking whether yytext is a pointer... " >&6; }
6547if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  # POSIX says lex can declare yytext either as a pointer or an array; the
6551# default is implementation-dependent.  Figure out which it is, since
6552# not all implementations provide the %pointer and %array declarations.
6553ac_cv_prog_lex_yytext_pointer=no
6554ac_save_LIBS=$LIBS
6555LIBS="$LEXLIB $ac_save_LIBS"
6556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558
6559  #define YYTEXT_POINTER 1
6560`cat $LEX_OUTPUT_ROOT.c`
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  ac_cv_prog_lex_yytext_pointer=yes
6564fi
6565rm -f core conftest.err conftest.$ac_objext \
6566    conftest$ac_exeext conftest.$ac_ext
6567LIBS=$ac_save_LIBS
6568
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6571$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6572if test $ac_cv_prog_lex_yytext_pointer = yes; then
6573
6574$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6575
6576fi
6577rm -f conftest.l $LEX_OUTPUT_ROOT.c
6578
6579fi
6580if test "$LEX" != "" -a "$LEX" != ":"; then
6581
6582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6583$as_echo_n "checking for yylex_destroy... " >&6; }
6584	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6585
6586$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6587
6588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6589$as_echo "yes" >&6; }
6590	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591$as_echo "no" >&6; };
6592		LEX=":"
6593	fi
6594
6595fi
6596if test "$LEX" != "" -a "$LEX" != ":"; then
6597
6598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6599$as_echo_n "checking for lex %option... " >&6; }
6600	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6601%option nounput
6602%%
6603EOF
6604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605$as_echo "yes" >&6; }
6606	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; };
6608		LEX=":"
6609	fi
6610
6611fi
6612for ac_prog in 'bison -y' byacc
6613do
6614  # Extract the first word of "$ac_prog", so it can be a program name with args.
6615set dummy $ac_prog; ac_word=$2
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
6618if ${ac_cv_prog_YACC+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  if test -n "$YACC"; then
6622  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627  IFS=$as_save_IFS
6628  test -z "$as_dir" && as_dir=.
6629    for ac_exec_ext in '' $ac_executable_extensions; do
6630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631    ac_cv_prog_YACC="$ac_prog"
6632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633    break 2
6634  fi
6635done
6636  done
6637IFS=$as_save_IFS
6638
6639fi
6640fi
6641YACC=$ac_cv_prog_YACC
6642if test -n "$YACC"; then
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6644$as_echo "$YACC" >&6; }
6645else
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650
6651  test -n "$YACC" && break
6652done
6653test -n "$YACC" || YACC="yacc"
6654
6655# Extract the first word of "doxygen", so it can be a program name with args.
6656set dummy doxygen; ac_word=$2
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if ${ac_cv_prog_doxygen+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  if test -n "$doxygen"; then
6663  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668  IFS=$as_save_IFS
6669  test -z "$as_dir" && as_dir=.
6670    for ac_exec_ext in '' $ac_executable_extensions; do
6671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672    ac_cv_prog_doxygen="doxygen"
6673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674    break 2
6675  fi
6676done
6677  done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682doxygen=$ac_cv_prog_doxygen
6683if test -n "$doxygen"; then
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6685$as_echo "$doxygen" >&6; }
6686else
6687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692if test -n "$ac_tool_prefix"; then
6693  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6694set dummy ${ac_tool_prefix}strip; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_STRIP+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  if test -n "$STRIP"; then
6701  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706  IFS=$as_save_IFS
6707  test -z "$as_dir" && as_dir=.
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715  done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720STRIP=$ac_cv_prog_STRIP
6721if test -n "$STRIP"; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6723$as_echo "$STRIP" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729
6730fi
6731if test -z "$ac_cv_prog_STRIP"; then
6732  ac_ct_STRIP=$STRIP
6733  # Extract the first word of "strip", so it can be a program name with args.
6734set dummy strip; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  if test -n "$ac_ct_STRIP"; then
6741  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746  IFS=$as_save_IFS
6747  test -z "$as_dir" && as_dir=.
6748    for ac_exec_ext in '' $ac_executable_extensions; do
6749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750    ac_cv_prog_ac_ct_STRIP="strip"
6751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752    break 2
6753  fi
6754done
6755  done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
6760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6761if test -n "$ac_ct_STRIP"; then
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6763$as_echo "$ac_ct_STRIP" >&6; }
6764else
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769  if test "x$ac_ct_STRIP" = x; then
6770    STRIP=""
6771  else
6772    case $cross_compiling:$ac_tool_warned in
6773yes:)
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776ac_tool_warned=yes ;;
6777esac
6778    STRIP=$ac_ct_STRIP
6779  fi
6780else
6781  STRIP="$ac_cv_prog_STRIP"
6782fi
6783
6784ac_aux_dir=
6785for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6786  if test -f "$ac_dir/install-sh"; then
6787    ac_aux_dir=$ac_dir
6788    ac_install_sh="$ac_aux_dir/install-sh -c"
6789    break
6790  elif test -f "$ac_dir/install.sh"; then
6791    ac_aux_dir=$ac_dir
6792    ac_install_sh="$ac_aux_dir/install.sh -c"
6793    break
6794  elif test -f "$ac_dir/shtool"; then
6795    ac_aux_dir=$ac_dir
6796    ac_install_sh="$ac_aux_dir/shtool install -c"
6797    break
6798  fi
6799done
6800if test -z "$ac_aux_dir"; then
6801  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6802fi
6803
6804# These three variables are undocumented and unsupported,
6805# and are intended to be withdrawn in a future Autoconf release.
6806# They can cause serious problems if a builder's source tree is in a directory
6807# whose full name contains unusual characters.
6808ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6809ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6810ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6811
6812
6813# Make sure we can run config.sub.
6814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6815  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6816
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6818$as_echo_n "checking build system type... " >&6; }
6819if ${ac_cv_build+:} false; then :
6820  $as_echo_n "(cached) " >&6
6821else
6822  ac_build_alias=$build_alias
6823test "x$ac_build_alias" = x &&
6824  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6825test "x$ac_build_alias" = x &&
6826  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6828  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6829
6830fi
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6832$as_echo "$ac_cv_build" >&6; }
6833case $ac_cv_build in
6834*-*-*) ;;
6835*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6836esac
6837build=$ac_cv_build
6838ac_save_IFS=$IFS; IFS='-'
6839set x $ac_cv_build
6840shift
6841build_cpu=$1
6842build_vendor=$2
6843shift; shift
6844# Remember, the first character of IFS is used to create $*,
6845# except with old shells:
6846build_os=$*
6847IFS=$ac_save_IFS
6848case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6849
6850
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6852$as_echo_n "checking host system type... " >&6; }
6853if ${ac_cv_host+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  if test "x$host_alias" = x; then
6857  ac_cv_host=$ac_cv_build
6858else
6859  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6860    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6861fi
6862
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6865$as_echo "$ac_cv_host" >&6; }
6866case $ac_cv_host in
6867*-*-*) ;;
6868*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6869esac
6870host=$ac_cv_host
6871ac_save_IFS=$IFS; IFS='-'
6872set x $ac_cv_host
6873shift
6874host_cpu=$1
6875host_vendor=$2
6876shift; shift
6877# Remember, the first character of IFS is used to create $*,
6878# except with old shells:
6879host_os=$*
6880IFS=$ac_save_IFS
6881case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6882
6883
6884
6885# skip these tests, we do not need them.
6886
6887
6888
6889
6890
6891
6892
6893
6894# always use ./libtool unless override from commandline (libtool=mylibtool)
6895if test -z "$libtool"; then
6896	libtool="./libtool"
6897fi
6898
6899# avoid libtool max commandline length test on systems that fork slowly.
6900
6901if echo "$host_os" | grep "sunos4" >/dev/null; then
6902	lt_cv_sys_max_cmd_len=32750;
6903fi
6904if test -n "$ac_tool_prefix"; then
6905  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6906set dummy ${ac_tool_prefix}ar; ac_word=$2
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908$as_echo_n "checking for $ac_word... " >&6; }
6909if ${ac_cv_path_AR+:} false; then :
6910  $as_echo_n "(cached) " >&6
6911else
6912  case $AR in
6913  [\\/]* | ?:[\\/]*)
6914  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6915  ;;
6916  *)
6917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920  IFS=$as_save_IFS
6921  test -z "$as_dir" && as_dir=.
6922    for ac_exec_ext in '' $ac_executable_extensions; do
6923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926    break 2
6927  fi
6928done
6929  done
6930IFS=$as_save_IFS
6931
6932  ;;
6933esac
6934fi
6935AR=$ac_cv_path_AR
6936if test -n "$AR"; then
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6938$as_echo "$AR" >&6; }
6939else
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_path_AR"; then
6947  ac_pt_AR=$AR
6948  # Extract the first word of "ar", so it can be a program name with args.
6949set dummy ar; ac_word=$2
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
6952if ${ac_cv_path_ac_pt_AR+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  case $ac_pt_AR in
6956  [\\/]* | ?:[\\/]*)
6957  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6958  ;;
6959  *)
6960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975  ;;
6976esac
6977fi
6978ac_pt_AR=$ac_cv_path_ac_pt_AR
6979if test -n "$ac_pt_AR"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6981$as_echo "$ac_pt_AR" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987  if test "x$ac_pt_AR" = x; then
6988    AR="false"
6989  else
6990    case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996    AR=$ac_pt_AR
6997  fi
6998else
6999  AR="$ac_cv_path_AR"
7000fi
7001
7002if test $AR = false; then
7003	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7004fi
7005
7006case `pwd` in
7007  *\ * | *\	*)
7008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7009$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7010esac
7011
7012
7013
7014macro_version='2.4.6'
7015macro_revision='2.4.6'
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029ltmain=$ac_aux_dir/ltmain.sh
7030
7031# Backslashify metacharacters that are still active within
7032# double-quoted strings.
7033sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7034
7035# Same as above, but do not quote variable references.
7036double_quote_subst='s/\(["`\\]\)/\\\1/g'
7037
7038# Sed substitution to delay expansion of an escaped shell variable in a
7039# double_quote_subst'ed string.
7040delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7041
7042# Sed substitution to delay expansion of an escaped single quote.
7043delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7044
7045# Sed substitution to avoid accidental globbing in evaled expressions
7046no_glob_subst='s/\*/\\\*/g'
7047
7048ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7049ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7050ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7051
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7053$as_echo_n "checking how to print strings... " >&6; }
7054# Test print first, because it will be a builtin if present.
7055if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7056   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7057  ECHO='print -r --'
7058elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7059  ECHO='printf %s\n'
7060else
7061  # Use this function as a fallback that always works.
7062  func_fallback_echo ()
7063  {
7064    eval 'cat <<_LTECHO_EOF
7065$1
7066_LTECHO_EOF'
7067  }
7068  ECHO='func_fallback_echo'
7069fi
7070
7071# func_echo_all arg...
7072# Invoke $ECHO with all args, space-separated.
7073func_echo_all ()
7074{
7075    $ECHO ""
7076}
7077
7078case $ECHO in
7079  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7080$as_echo "printf" >&6; } ;;
7081  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7082$as_echo "print -r" >&6; } ;;
7083  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7084$as_echo "cat" >&6; } ;;
7085esac
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7101$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7102if ${ac_cv_path_SED+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7106     for ac_i in 1 2 3 4 5 6 7; do
7107       ac_script="$ac_script$as_nl$ac_script"
7108     done
7109     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7110     { ac_script=; unset ac_script;}
7111     if test -z "$SED"; then
7112  ac_path_SED_found=false
7113  # Loop through the user's path and test for each of PROGNAME-LIST
7114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_prog in sed gsed; do
7120    for ac_exec_ext in '' $ac_executable_extensions; do
7121      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7122      as_fn_executable_p "$ac_path_SED" || continue
7123# Check for GNU ac_path_SED and select it if it is found.
7124  # Check for GNU $ac_path_SED
7125case `"$ac_path_SED" --version 2>&1` in
7126*GNU*)
7127  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7128*)
7129  ac_count=0
7130  $as_echo_n 0123456789 >"conftest.in"
7131  while :
7132  do
7133    cat "conftest.in" "conftest.in" >"conftest.tmp"
7134    mv "conftest.tmp" "conftest.in"
7135    cp "conftest.in" "conftest.nl"
7136    $as_echo '' >> "conftest.nl"
7137    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139    as_fn_arith $ac_count + 1 && ac_count=$as_val
7140    if test $ac_count -gt ${ac_path_SED_max-0}; then
7141      # Best one so far, save it but keep looking for a better one
7142      ac_cv_path_SED="$ac_path_SED"
7143      ac_path_SED_max=$ac_count
7144    fi
7145    # 10*(2^10) chars as input seems more than enough
7146    test $ac_count -gt 10 && break
7147  done
7148  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7149esac
7150
7151      $ac_path_SED_found && break 3
7152    done
7153  done
7154  done
7155IFS=$as_save_IFS
7156  if test -z "$ac_cv_path_SED"; then
7157    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7158  fi
7159else
7160  ac_cv_path_SED=$SED
7161fi
7162
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7165$as_echo "$ac_cv_path_SED" >&6; }
7166 SED="$ac_cv_path_SED"
7167  rm -f conftest.sed
7168
7169test -z "$SED" && SED=sed
7170Xsed="$SED -e 1s/^X//"
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7183$as_echo_n "checking for fgrep... " >&6; }
7184if ${ac_cv_path_FGREP+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7188   then ac_cv_path_FGREP="$GREP -F"
7189   else
7190     if test -z "$FGREP"; then
7191  ac_path_FGREP_found=false
7192  # Loop through the user's path and test for each of PROGNAME-LIST
7193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_prog in fgrep; do
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7201      as_fn_executable_p "$ac_path_FGREP" || continue
7202# Check for GNU ac_path_FGREP and select it if it is found.
7203  # Check for GNU $ac_path_FGREP
7204case `"$ac_path_FGREP" --version 2>&1` in
7205*GNU*)
7206  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7207*)
7208  ac_count=0
7209  $as_echo_n 0123456789 >"conftest.in"
7210  while :
7211  do
7212    cat "conftest.in" "conftest.in" >"conftest.tmp"
7213    mv "conftest.tmp" "conftest.in"
7214    cp "conftest.in" "conftest.nl"
7215    $as_echo 'FGREP' >> "conftest.nl"
7216    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7217    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7218    as_fn_arith $ac_count + 1 && ac_count=$as_val
7219    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7220      # Best one so far, save it but keep looking for a better one
7221      ac_cv_path_FGREP="$ac_path_FGREP"
7222      ac_path_FGREP_max=$ac_count
7223    fi
7224    # 10*(2^10) chars as input seems more than enough
7225    test $ac_count -gt 10 && break
7226  done
7227  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7228esac
7229
7230      $ac_path_FGREP_found && break 3
7231    done
7232  done
7233  done
7234IFS=$as_save_IFS
7235  if test -z "$ac_cv_path_FGREP"; then
7236    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7237  fi
7238else
7239  ac_cv_path_FGREP=$FGREP
7240fi
7241
7242   fi
7243fi
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7245$as_echo "$ac_cv_path_FGREP" >&6; }
7246 FGREP="$ac_cv_path_FGREP"
7247
7248
7249test -z "$GREP" && GREP=grep
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269# Check whether --with-gnu-ld was given.
7270if test "${with_gnu_ld+set}" = set; then :
7271  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7272else
7273  with_gnu_ld=no
7274fi
7275
7276ac_prog=ld
7277if test yes = "$GCC"; then
7278  # Check if gcc -print-prog-name=ld gives a path.
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7280$as_echo_n "checking for ld used by $CC... " >&6; }
7281  case $host in
7282  *-*-mingw*)
7283    # gcc leaves a trailing carriage return, which upsets mingw
7284    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7285  *)
7286    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7287  esac
7288  case $ac_prog in
7289    # Accept absolute paths.
7290    [\\/]* | ?:[\\/]*)
7291      re_direlt='/[^/][^/]*/\.\./'
7292      # Canonicalize the pathname of ld
7293      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7294      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7295	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7296      done
7297      test -z "$LD" && LD=$ac_prog
7298      ;;
7299  "")
7300    # If it fails, then pretend we aren't using GCC.
7301    ac_prog=ld
7302    ;;
7303  *)
7304    # If it is relative, then search for the first ld in PATH.
7305    with_gnu_ld=unknown
7306    ;;
7307  esac
7308elif test yes = "$with_gnu_ld"; then
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7310$as_echo_n "checking for GNU ld... " >&6; }
7311else
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7313$as_echo_n "checking for non-GNU ld... " >&6; }
7314fi
7315if ${lt_cv_path_LD+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test -z "$LD"; then
7319  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7320  for ac_dir in $PATH; do
7321    IFS=$lt_save_ifs
7322    test -z "$ac_dir" && ac_dir=.
7323    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7324      lt_cv_path_LD=$ac_dir/$ac_prog
7325      # Check to see if the program is GNU ld.  I'd rather use --version,
7326      # but apparently some variants of GNU ld only accept -v.
7327      # Break only if it was the GNU/non-GNU ld that we prefer.
7328      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7329      *GNU* | *'with BFD'*)
7330	test no != "$with_gnu_ld" && break
7331	;;
7332      *)
7333	test yes != "$with_gnu_ld" && break
7334	;;
7335      esac
7336    fi
7337  done
7338  IFS=$lt_save_ifs
7339else
7340  lt_cv_path_LD=$LD # Let the user override the test with a path.
7341fi
7342fi
7343
7344LD=$lt_cv_path_LD
7345if test -n "$LD"; then
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7347$as_echo "$LD" >&6; }
7348else
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7354$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7355if ${lt_cv_prog_gnu_ld+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7359case `$LD -v 2>&1 </dev/null` in
7360*GNU* | *'with BFD'*)
7361  lt_cv_prog_gnu_ld=yes
7362  ;;
7363*)
7364  lt_cv_prog_gnu_ld=no
7365  ;;
7366esac
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7369$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7370with_gnu_ld=$lt_cv_prog_gnu_ld
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7381$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7382if ${lt_cv_path_NM+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$NM"; then
7386  # Let the user override the test.
7387  lt_cv_path_NM=$NM
7388else
7389  lt_nm_to_check=${ac_tool_prefix}nm
7390  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7391    lt_nm_to_check="$lt_nm_to_check nm"
7392  fi
7393  for lt_tmp_nm in $lt_nm_to_check; do
7394    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7395    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7396      IFS=$lt_save_ifs
7397      test -z "$ac_dir" && ac_dir=.
7398      tmp_nm=$ac_dir/$lt_tmp_nm
7399      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7400	# Check to see if the nm accepts a BSD-compat flag.
7401	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7402	#   nm: unknown option "B" ignored
7403	# Tru64's nm complains that /dev/null is an invalid object file
7404	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7405	case $build_os in
7406	mingw*) lt_bad_file=conftest.nm/nofile ;;
7407	*) lt_bad_file=/dev/null ;;
7408	esac
7409	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7410	*$lt_bad_file* | *'Invalid file or object type'*)
7411	  lt_cv_path_NM="$tmp_nm -B"
7412	  break 2
7413	  ;;
7414	*)
7415	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7416	  */dev/null*)
7417	    lt_cv_path_NM="$tmp_nm -p"
7418	    break 2
7419	    ;;
7420	  *)
7421	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7422	    continue # so that we can try to find one that supports BSD flags
7423	    ;;
7424	  esac
7425	  ;;
7426	esac
7427      fi
7428    done
7429    IFS=$lt_save_ifs
7430  done
7431  : ${lt_cv_path_NM=no}
7432fi
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7435$as_echo "$lt_cv_path_NM" >&6; }
7436if test no != "$lt_cv_path_NM"; then
7437  NM=$lt_cv_path_NM
7438else
7439  # Didn't find any BSD compatible name lister, look for dumpbin.
7440  if test -n "$DUMPBIN"; then :
7441    # Let the user override the test.
7442  else
7443    if test -n "$ac_tool_prefix"; then
7444  for ac_prog in dumpbin "link -dump"
7445  do
7446    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if ${ac_cv_prog_DUMPBIN+:} false; then :
7451  $as_echo_n "(cached) " >&6
7452else
7453  if test -n "$DUMPBIN"; then
7454  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459  IFS=$as_save_IFS
7460  test -z "$as_dir" && as_dir=.
7461    for ac_exec_ext in '' $ac_executable_extensions; do
7462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465    break 2
7466  fi
7467done
7468  done
7469IFS=$as_save_IFS
7470
7471fi
7472fi
7473DUMPBIN=$ac_cv_prog_DUMPBIN
7474if test -n "$DUMPBIN"; then
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7476$as_echo "$DUMPBIN" >&6; }
7477else
7478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482
7483    test -n "$DUMPBIN" && break
7484  done
7485fi
7486if test -z "$DUMPBIN"; then
7487  ac_ct_DUMPBIN=$DUMPBIN
7488  for ac_prog in dumpbin "link -dump"
7489do
7490  # Extract the first word of "$ac_prog", so it can be a program name with args.
7491set dummy $ac_prog; ac_word=$2
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493$as_echo_n "checking for $ac_word... " >&6; }
7494if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7495  $as_echo_n "(cached) " >&6
7496else
7497  if test -n "$ac_ct_DUMPBIN"; then
7498  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7499else
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503  IFS=$as_save_IFS
7504  test -z "$as_dir" && as_dir=.
7505    for ac_exec_ext in '' $ac_executable_extensions; do
7506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509    break 2
7510  fi
7511done
7512  done
7513IFS=$as_save_IFS
7514
7515fi
7516fi
7517ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7518if test -n "$ac_ct_DUMPBIN"; then
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7520$as_echo "$ac_ct_DUMPBIN" >&6; }
7521else
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
7524fi
7525
7526
7527  test -n "$ac_ct_DUMPBIN" && break
7528done
7529
7530  if test "x$ac_ct_DUMPBIN" = x; then
7531    DUMPBIN=":"
7532  else
7533    case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539    DUMPBIN=$ac_ct_DUMPBIN
7540  fi
7541fi
7542
7543    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7544    *COFF*)
7545      DUMPBIN="$DUMPBIN -symbols -headers"
7546      ;;
7547    *)
7548      DUMPBIN=:
7549      ;;
7550    esac
7551  fi
7552
7553  if test : != "$DUMPBIN"; then
7554    NM=$DUMPBIN
7555  fi
7556fi
7557test -z "$NM" && NM=nm
7558
7559
7560
7561
7562
7563
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7565$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7566if ${lt_cv_nm_interface+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  lt_cv_nm_interface="BSD nm"
7570  echo "int some_variable = 0;" > conftest.$ac_ext
7571  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7572  (eval "$ac_compile" 2>conftest.err)
7573  cat conftest.err >&5
7574  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7575  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7576  cat conftest.err >&5
7577  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7578  cat conftest.out >&5
7579  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7580    lt_cv_nm_interface="MS dumpbin"
7581  fi
7582  rm -f conftest*
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7585$as_echo "$lt_cv_nm_interface" >&6; }
7586
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7588$as_echo_n "checking whether ln -s works... " >&6; }
7589LN_S=$as_ln_s
7590if test "$LN_S" = "ln -s"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592$as_echo "yes" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7595$as_echo "no, using $LN_S" >&6; }
7596fi
7597
7598# find the maximum length of command line arguments
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7600$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7601if ${lt_cv_sys_max_cmd_len+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604    i=0
7605  teststring=ABCD
7606
7607  case $build_os in
7608  msdosdjgpp*)
7609    # On DJGPP, this test can blow up pretty badly due to problems in libc
7610    # (any single argument exceeding 2000 bytes causes a buffer overrun
7611    # during glob expansion).  Even if it were fixed, the result of this
7612    # check would be larger than it should be.
7613    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7614    ;;
7615
7616  gnu*)
7617    # Under GNU Hurd, this test is not required because there is
7618    # no limit to the length of command line arguments.
7619    # Libtool will interpret -1 as no limit whatsoever
7620    lt_cv_sys_max_cmd_len=-1;
7621    ;;
7622
7623  cygwin* | mingw* | cegcc*)
7624    # On Win9x/ME, this test blows up -- it succeeds, but takes
7625    # about 5 minutes as the teststring grows exponentially.
7626    # Worse, since 9x/ME are not pre-emptively multitasking,
7627    # you end up with a "frozen" computer, even though with patience
7628    # the test eventually succeeds (with a max line length of 256k).
7629    # Instead, let's just punt: use the minimum linelength reported by
7630    # all of the supported platforms: 8192 (on NT/2K/XP).
7631    lt_cv_sys_max_cmd_len=8192;
7632    ;;
7633
7634  mint*)
7635    # On MiNT this can take a long time and run out of memory.
7636    lt_cv_sys_max_cmd_len=8192;
7637    ;;
7638
7639  amigaos*)
7640    # On AmigaOS with pdksh, this test takes hours, literally.
7641    # So we just punt and use a minimum line length of 8192.
7642    lt_cv_sys_max_cmd_len=8192;
7643    ;;
7644
7645  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7646    # This has been around since 386BSD, at least.  Likely further.
7647    if test -x /sbin/sysctl; then
7648      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7649    elif test -x /usr/sbin/sysctl; then
7650      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7651    else
7652      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7653    fi
7654    # And add a safety zone
7655    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7656    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7657    ;;
7658
7659  interix*)
7660    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7661    lt_cv_sys_max_cmd_len=196608
7662    ;;
7663
7664  os2*)
7665    # The test takes a long time on OS/2.
7666    lt_cv_sys_max_cmd_len=8192
7667    ;;
7668
7669  osf*)
7670    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7671    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7672    # nice to cause kernel panics so lets avoid the loop below.
7673    # First set a reasonable default.
7674    lt_cv_sys_max_cmd_len=16384
7675    #
7676    if test -x /sbin/sysconfig; then
7677      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7678        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7679      esac
7680    fi
7681    ;;
7682  sco3.2v5*)
7683    lt_cv_sys_max_cmd_len=102400
7684    ;;
7685  sysv5* | sco5v6* | sysv4.2uw2*)
7686    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7687    if test -n "$kargmax"; then
7688      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7689    else
7690      lt_cv_sys_max_cmd_len=32768
7691    fi
7692    ;;
7693  *)
7694    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7695    if test -n "$lt_cv_sys_max_cmd_len" && \
7696       test undefined != "$lt_cv_sys_max_cmd_len"; then
7697      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7698      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7699    else
7700      # Make teststring a little bigger before we do anything with it.
7701      # a 1K string should be a reasonable start.
7702      for i in 1 2 3 4 5 6 7 8; do
7703        teststring=$teststring$teststring
7704      done
7705      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7706      # If test is not a shell built-in, we'll probably end up computing a
7707      # maximum length that is only half of the actual maximum length, but
7708      # we can't tell.
7709      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7710	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7711	      test 17 != "$i" # 1/2 MB should be enough
7712      do
7713        i=`expr $i + 1`
7714        teststring=$teststring$teststring
7715      done
7716      # Only check the string length outside the loop.
7717      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7718      teststring=
7719      # Add a significant safety factor because C++ compilers can tack on
7720      # massive amounts of additional arguments before passing them to the
7721      # linker.  It appears as though 1/2 is a usable value.
7722      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7723    fi
7724    ;;
7725  esac
7726
7727fi
7728
7729if test -n "$lt_cv_sys_max_cmd_len"; then
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7731$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7732else
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7734$as_echo "none" >&6; }
7735fi
7736max_cmd_len=$lt_cv_sys_max_cmd_len
7737
7738
7739
7740
7741
7742
7743: ${CP="cp -f"}
7744: ${MV="mv -f"}
7745: ${RM="rm -f"}
7746
7747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7748  lt_unset=unset
7749else
7750  lt_unset=false
7751fi
7752
7753
7754
7755
7756
7757# test EBCDIC or ASCII
7758case `echo X|tr X '\101'` in
7759 A) # ASCII based system
7760    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7761  lt_SP2NL='tr \040 \012'
7762  lt_NL2SP='tr \015\012 \040\040'
7763  ;;
7764 *) # EBCDIC based system
7765  lt_SP2NL='tr \100 \n'
7766  lt_NL2SP='tr \r\n \100\100'
7767  ;;
7768esac
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7779$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7780if ${lt_cv_to_host_file_cmd+:} false; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  case $host in
7784  *-*-mingw* )
7785    case $build in
7786      *-*-mingw* ) # actually msys
7787        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7788        ;;
7789      *-*-cygwin* )
7790        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7791        ;;
7792      * ) # otherwise, assume *nix
7793        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7794        ;;
7795    esac
7796    ;;
7797  *-*-cygwin* )
7798    case $build in
7799      *-*-mingw* ) # actually msys
7800        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7801        ;;
7802      *-*-cygwin* )
7803        lt_cv_to_host_file_cmd=func_convert_file_noop
7804        ;;
7805      * ) # otherwise, assume *nix
7806        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7807        ;;
7808    esac
7809    ;;
7810  * ) # unhandled hosts (and "normal" native builds)
7811    lt_cv_to_host_file_cmd=func_convert_file_noop
7812    ;;
7813esac
7814
7815fi
7816
7817to_host_file_cmd=$lt_cv_to_host_file_cmd
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7819$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7820
7821
7822
7823
7824
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7826$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7827if ${lt_cv_to_tool_file_cmd+:} false; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  #assume ordinary cross tools, or native build.
7831lt_cv_to_tool_file_cmd=func_convert_file_noop
7832case $host in
7833  *-*-mingw* )
7834    case $build in
7835      *-*-mingw* ) # actually msys
7836        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7837        ;;
7838    esac
7839    ;;
7840esac
7841
7842fi
7843
7844to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7846$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7847
7848
7849
7850
7851
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7853$as_echo_n "checking for $LD option to reload object files... " >&6; }
7854if ${lt_cv_ld_reload_flag+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  lt_cv_ld_reload_flag='-r'
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7860$as_echo "$lt_cv_ld_reload_flag" >&6; }
7861reload_flag=$lt_cv_ld_reload_flag
7862case $reload_flag in
7863"" | " "*) ;;
7864*) reload_flag=" $reload_flag" ;;
7865esac
7866reload_cmds='$LD$reload_flag -o $output$reload_objs'
7867case $host_os in
7868  cygwin* | mingw* | pw32* | cegcc*)
7869    if test yes != "$GCC"; then
7870      reload_cmds=false
7871    fi
7872    ;;
7873  darwin*)
7874    if test yes = "$GCC"; then
7875      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7876    else
7877      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7878    fi
7879    ;;
7880esac
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890if test -n "$ac_tool_prefix"; then
7891  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7892set dummy ${ac_tool_prefix}objdump; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if ${ac_cv_prog_OBJDUMP+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  if test -n "$OBJDUMP"; then
7899  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904  IFS=$as_save_IFS
7905  test -z "$as_dir" && as_dir=.
7906    for ac_exec_ext in '' $ac_executable_extensions; do
7907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910    break 2
7911  fi
7912done
7913  done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918OBJDUMP=$ac_cv_prog_OBJDUMP
7919if test -n "$OBJDUMP"; then
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7921$as_echo "$OBJDUMP" >&6; }
7922else
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927
7928fi
7929if test -z "$ac_cv_prog_OBJDUMP"; then
7930  ac_ct_OBJDUMP=$OBJDUMP
7931  # Extract the first word of "objdump", so it can be a program name with args.
7932set dummy objdump; ac_word=$2
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  if test -n "$ac_ct_OBJDUMP"; then
7939  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944  IFS=$as_save_IFS
7945  test -z "$as_dir" && as_dir=.
7946    for ac_exec_ext in '' $ac_executable_extensions; do
7947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953  done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7959if test -n "$ac_ct_OBJDUMP"; then
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7961$as_echo "$ac_ct_OBJDUMP" >&6; }
7962else
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965fi
7966
7967  if test "x$ac_ct_OBJDUMP" = x; then
7968    OBJDUMP="false"
7969  else
7970    case $cross_compiling:$ac_tool_warned in
7971yes:)
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974ac_tool_warned=yes ;;
7975esac
7976    OBJDUMP=$ac_ct_OBJDUMP
7977  fi
7978else
7979  OBJDUMP="$ac_cv_prog_OBJDUMP"
7980fi
7981
7982test -z "$OBJDUMP" && OBJDUMP=objdump
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7993$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7994if ${lt_cv_deplibs_check_method+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  lt_cv_file_magic_cmd='$MAGIC_CMD'
7998lt_cv_file_magic_test_file=
7999lt_cv_deplibs_check_method='unknown'
8000# Need to set the preceding variable on all platforms that support
8001# interlibrary dependencies.
8002# 'none' -- dependencies not supported.
8003# 'unknown' -- same as none, but documents that we really don't know.
8004# 'pass_all' -- all dependencies passed with no checks.
8005# 'test_compile' -- check by making test program.
8006# 'file_magic [[regex]]' -- check by looking for files in library path
8007# that responds to the $file_magic_cmd with a given extended regex.
8008# If you have 'file' or equivalent on your system and you're not sure
8009# whether 'pass_all' will *always* work, you probably want this one.
8010
8011case $host_os in
8012aix[4-9]*)
8013  lt_cv_deplibs_check_method=pass_all
8014  ;;
8015
8016beos*)
8017  lt_cv_deplibs_check_method=pass_all
8018  ;;
8019
8020bsdi[45]*)
8021  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8022  lt_cv_file_magic_cmd='/usr/bin/file -L'
8023  lt_cv_file_magic_test_file=/shlib/libc.so
8024  ;;
8025
8026cygwin*)
8027  # func_win32_libid is a shell function defined in ltmain.sh
8028  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8029  lt_cv_file_magic_cmd='func_win32_libid'
8030  ;;
8031
8032mingw* | pw32*)
8033  # Base MSYS/MinGW do not provide the 'file' command needed by
8034  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8035  # unless we find 'file', for example because we are cross-compiling.
8036  if ( file / ) >/dev/null 2>&1; then
8037    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8038    lt_cv_file_magic_cmd='func_win32_libid'
8039  else
8040    # Keep this pattern in sync with the one in func_win32_libid.
8041    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8042    lt_cv_file_magic_cmd='$OBJDUMP -f'
8043  fi
8044  ;;
8045
8046cegcc*)
8047  # use the weaker test based on 'objdump'. See mingw*.
8048  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8049  lt_cv_file_magic_cmd='$OBJDUMP -f'
8050  ;;
8051
8052darwin* | rhapsody*)
8053  lt_cv_deplibs_check_method=pass_all
8054  ;;
8055
8056freebsd* | dragonfly*)
8057  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8058    case $host_cpu in
8059    i*86 )
8060      # Not sure whether the presence of OpenBSD here was a mistake.
8061      # Let's accept both of them until this is cleared up.
8062      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8063      lt_cv_file_magic_cmd=/usr/bin/file
8064      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8065      ;;
8066    esac
8067  else
8068    lt_cv_deplibs_check_method=pass_all
8069  fi
8070  ;;
8071
8072haiku*)
8073  lt_cv_deplibs_check_method=pass_all
8074  ;;
8075
8076hpux10.20* | hpux11*)
8077  lt_cv_file_magic_cmd=/usr/bin/file
8078  case $host_cpu in
8079  ia64*)
8080    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8081    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8082    ;;
8083  hppa*64*)
8084    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]'
8085    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8086    ;;
8087  *)
8088    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8089    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8090    ;;
8091  esac
8092  ;;
8093
8094interix[3-9]*)
8095  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8096  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8097  ;;
8098
8099irix5* | irix6* | nonstopux*)
8100  case $LD in
8101  *-32|*"-32 ") libmagic=32-bit;;
8102  *-n32|*"-n32 ") libmagic=N32;;
8103  *-64|*"-64 ") libmagic=64-bit;;
8104  *) libmagic=never-match;;
8105  esac
8106  lt_cv_deplibs_check_method=pass_all
8107  ;;
8108
8109# This must be glibc/ELF.
8110linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8111  lt_cv_deplibs_check_method=pass_all
8112  ;;
8113
8114netbsd*)
8115  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8116    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8117  else
8118    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8119  fi
8120  ;;
8121
8122newos6*)
8123  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8124  lt_cv_file_magic_cmd=/usr/bin/file
8125  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8126  ;;
8127
8128*nto* | *qnx*)
8129  lt_cv_deplibs_check_method=pass_all
8130  ;;
8131
8132openbsd* | bitrig*)
8133  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8134    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8135  else
8136    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8137  fi
8138  ;;
8139
8140osf3* | osf4* | osf5*)
8141  lt_cv_deplibs_check_method=pass_all
8142  ;;
8143
8144rdos*)
8145  lt_cv_deplibs_check_method=pass_all
8146  ;;
8147
8148solaris*)
8149  lt_cv_deplibs_check_method=pass_all
8150  ;;
8151
8152sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8153  lt_cv_deplibs_check_method=pass_all
8154  ;;
8155
8156sysv4 | sysv4.3*)
8157  case $host_vendor in
8158  motorola)
8159    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]'
8160    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8161    ;;
8162  ncr)
8163    lt_cv_deplibs_check_method=pass_all
8164    ;;
8165  sequent)
8166    lt_cv_file_magic_cmd='/bin/file'
8167    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8168    ;;
8169  sni)
8170    lt_cv_file_magic_cmd='/bin/file'
8171    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8172    lt_cv_file_magic_test_file=/lib/libc.so
8173    ;;
8174  siemens)
8175    lt_cv_deplibs_check_method=pass_all
8176    ;;
8177  pc)
8178    lt_cv_deplibs_check_method=pass_all
8179    ;;
8180  esac
8181  ;;
8182
8183tpf*)
8184  lt_cv_deplibs_check_method=pass_all
8185  ;;
8186os2*)
8187  lt_cv_deplibs_check_method=pass_all
8188  ;;
8189esac
8190
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8193$as_echo "$lt_cv_deplibs_check_method" >&6; }
8194
8195file_magic_glob=
8196want_nocaseglob=no
8197if test "$build" = "$host"; then
8198  case $host_os in
8199  mingw* | pw32*)
8200    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8201      want_nocaseglob=yes
8202    else
8203      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8204    fi
8205    ;;
8206  esac
8207fi
8208
8209file_magic_cmd=$lt_cv_file_magic_cmd
8210deplibs_check_method=$lt_cv_deplibs_check_method
8211test -z "$deplibs_check_method" && deplibs_check_method=unknown
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234if test -n "$ac_tool_prefix"; then
8235  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8236set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238$as_echo_n "checking for $ac_word... " >&6; }
8239if ${ac_cv_prog_DLLTOOL+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  if test -n "$DLLTOOL"; then
8243  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8244else
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248  IFS=$as_save_IFS
8249  test -z "$as_dir" && as_dir=.
8250    for ac_exec_ext in '' $ac_executable_extensions; do
8251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254    break 2
8255  fi
8256done
8257  done
8258IFS=$as_save_IFS
8259
8260fi
8261fi
8262DLLTOOL=$ac_cv_prog_DLLTOOL
8263if test -n "$DLLTOOL"; then
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8265$as_echo "$DLLTOOL" >&6; }
8266else
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
8269fi
8270
8271
8272fi
8273if test -z "$ac_cv_prog_DLLTOOL"; then
8274  ac_ct_DLLTOOL=$DLLTOOL
8275  # Extract the first word of "dlltool", so it can be a program name with args.
8276set dummy dlltool; ac_word=$2
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278$as_echo_n "checking for $ac_word... " >&6; }
8279if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  if test -n "$ac_ct_DLLTOOL"; then
8283  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8284else
8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288  IFS=$as_save_IFS
8289  test -z "$as_dir" && as_dir=.
8290    for ac_exec_ext in '' $ac_executable_extensions; do
8291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294    break 2
8295  fi
8296done
8297  done
8298IFS=$as_save_IFS
8299
8300fi
8301fi
8302ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8303if test -n "$ac_ct_DLLTOOL"; then
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8305$as_echo "$ac_ct_DLLTOOL" >&6; }
8306else
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
8309fi
8310
8311  if test "x$ac_ct_DLLTOOL" = x; then
8312    DLLTOOL="false"
8313  else
8314    case $cross_compiling:$ac_tool_warned in
8315yes:)
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318ac_tool_warned=yes ;;
8319esac
8320    DLLTOOL=$ac_ct_DLLTOOL
8321  fi
8322else
8323  DLLTOOL="$ac_cv_prog_DLLTOOL"
8324fi
8325
8326test -z "$DLLTOOL" && DLLTOOL=dlltool
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8338$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8339if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  lt_cv_sharedlib_from_linklib_cmd='unknown'
8343
8344case $host_os in
8345cygwin* | mingw* | pw32* | cegcc*)
8346  # two different shell functions defined in ltmain.sh;
8347  # decide which one to use based on capabilities of $DLLTOOL
8348  case `$DLLTOOL --help 2>&1` in
8349  *--identify-strict*)
8350    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8351    ;;
8352  *)
8353    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8354    ;;
8355  esac
8356  ;;
8357*)
8358  # fallback: assume linklib IS sharedlib
8359  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8360  ;;
8361esac
8362
8363fi
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8365$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8366sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8367test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8368
8369
8370
8371
8372
8373
8374
8375if test -n "$ac_tool_prefix"; then
8376  for ac_prog in ar
8377  do
8378    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381$as_echo_n "checking for $ac_word... " >&6; }
8382if ${ac_cv_prog_AR+:} false; then :
8383  $as_echo_n "(cached) " >&6
8384else
8385  if test -n "$AR"; then
8386  ac_cv_prog_AR="$AR" # Let the user override the test.
8387else
8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391  IFS=$as_save_IFS
8392  test -z "$as_dir" && as_dir=.
8393    for ac_exec_ext in '' $ac_executable_extensions; do
8394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397    break 2
8398  fi
8399done
8400  done
8401IFS=$as_save_IFS
8402
8403fi
8404fi
8405AR=$ac_cv_prog_AR
8406if test -n "$AR"; then
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8408$as_echo "$AR" >&6; }
8409else
8410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411$as_echo "no" >&6; }
8412fi
8413
8414
8415    test -n "$AR" && break
8416  done
8417fi
8418if test -z "$AR"; then
8419  ac_ct_AR=$AR
8420  for ac_prog in ar
8421do
8422  # Extract the first word of "$ac_prog", so it can be a program name with args.
8423set dummy $ac_prog; ac_word=$2
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if ${ac_cv_prog_ac_ct_AR+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  if test -n "$ac_ct_AR"; then
8430  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435  IFS=$as_save_IFS
8436  test -z "$as_dir" && as_dir=.
8437    for ac_exec_ext in '' $ac_executable_extensions; do
8438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439    ac_cv_prog_ac_ct_AR="$ac_prog"
8440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441    break 2
8442  fi
8443done
8444  done
8445IFS=$as_save_IFS
8446
8447fi
8448fi
8449ac_ct_AR=$ac_cv_prog_ac_ct_AR
8450if test -n "$ac_ct_AR"; then
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8452$as_echo "$ac_ct_AR" >&6; }
8453else
8454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456fi
8457
8458
8459  test -n "$ac_ct_AR" && break
8460done
8461
8462  if test "x$ac_ct_AR" = x; then
8463    AR="false"
8464  else
8465    case $cross_compiling:$ac_tool_warned in
8466yes:)
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469ac_tool_warned=yes ;;
8470esac
8471    AR=$ac_ct_AR
8472  fi
8473fi
8474
8475: ${AR=ar}
8476: ${AR_FLAGS=cru}
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8489$as_echo_n "checking for archiver @FILE support... " >&6; }
8490if ${lt_cv_ar_at_file+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  lt_cv_ar_at_file=no
8494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496
8497int
8498main ()
8499{
8500
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"; then :
8506  echo conftest.$ac_objext > conftest.lst
8507      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8508      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8509  (eval $lt_ar_try) 2>&5
8510  ac_status=$?
8511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512  test $ac_status = 0; }
8513      if test 0 -eq "$ac_status"; then
8514	# Ensure the archiver fails upon bogus file names.
8515	rm -f conftest.$ac_objext libconftest.a
8516	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8517  (eval $lt_ar_try) 2>&5
8518  ac_status=$?
8519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520  test $ac_status = 0; }
8521	if test 0 -ne "$ac_status"; then
8522          lt_cv_ar_at_file=@
8523        fi
8524      fi
8525      rm -f conftest.* libconftest.a
8526
8527fi
8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8532$as_echo "$lt_cv_ar_at_file" >&6; }
8533
8534if test no = "$lt_cv_ar_at_file"; then
8535  archiver_list_spec=
8536else
8537  archiver_list_spec=$lt_cv_ar_at_file
8538fi
8539
8540
8541
8542
8543
8544
8545
8546if test -n "$ac_tool_prefix"; then
8547  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8548set dummy ${ac_tool_prefix}strip; ac_word=$2
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if ${ac_cv_prog_STRIP+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  if test -n "$STRIP"; then
8555  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560  IFS=$as_save_IFS
8561  test -z "$as_dir" && as_dir=.
8562    for ac_exec_ext in '' $ac_executable_extensions; do
8563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566    break 2
8567  fi
8568done
8569  done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574STRIP=$ac_cv_prog_STRIP
8575if test -n "$STRIP"; then
8576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8577$as_echo "$STRIP" >&6; }
8578else
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
8582
8583
8584fi
8585if test -z "$ac_cv_prog_STRIP"; then
8586  ac_ct_STRIP=$STRIP
8587  # Extract the first word of "strip", so it can be a program name with args.
8588set dummy strip; ac_word=$2
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590$as_echo_n "checking for $ac_word... " >&6; }
8591if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  if test -n "$ac_ct_STRIP"; then
8595  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8596else
8597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600  IFS=$as_save_IFS
8601  test -z "$as_dir" && as_dir=.
8602    for ac_exec_ext in '' $ac_executable_extensions; do
8603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604    ac_cv_prog_ac_ct_STRIP="strip"
8605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606    break 2
8607  fi
8608done
8609  done
8610IFS=$as_save_IFS
8611
8612fi
8613fi
8614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8615if test -n "$ac_ct_STRIP"; then
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8617$as_echo "$ac_ct_STRIP" >&6; }
8618else
8619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620$as_echo "no" >&6; }
8621fi
8622
8623  if test "x$ac_ct_STRIP" = x; then
8624    STRIP=":"
8625  else
8626    case $cross_compiling:$ac_tool_warned in
8627yes:)
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8630ac_tool_warned=yes ;;
8631esac
8632    STRIP=$ac_ct_STRIP
8633  fi
8634else
8635  STRIP="$ac_cv_prog_STRIP"
8636fi
8637
8638test -z "$STRIP" && STRIP=:
8639
8640
8641
8642
8643
8644
8645if test -n "$ac_tool_prefix"; then
8646  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8647set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649$as_echo_n "checking for $ac_word... " >&6; }
8650if ${ac_cv_prog_RANLIB+:} false; then :
8651  $as_echo_n "(cached) " >&6
8652else
8653  if test -n "$RANLIB"; then
8654  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8655else
8656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657for as_dir in $PATH
8658do
8659  IFS=$as_save_IFS
8660  test -z "$as_dir" && as_dir=.
8661    for ac_exec_ext in '' $ac_executable_extensions; do
8662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665    break 2
8666  fi
8667done
8668  done
8669IFS=$as_save_IFS
8670
8671fi
8672fi
8673RANLIB=$ac_cv_prog_RANLIB
8674if test -n "$RANLIB"; then
8675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8676$as_echo "$RANLIB" >&6; }
8677else
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679$as_echo "no" >&6; }
8680fi
8681
8682
8683fi
8684if test -z "$ac_cv_prog_RANLIB"; then
8685  ac_ct_RANLIB=$RANLIB
8686  # Extract the first word of "ranlib", so it can be a program name with args.
8687set dummy ranlib; ac_word=$2
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689$as_echo_n "checking for $ac_word... " >&6; }
8690if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  if test -n "$ac_ct_RANLIB"; then
8694  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8695else
8696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699  IFS=$as_save_IFS
8700  test -z "$as_dir" && as_dir=.
8701    for ac_exec_ext in '' $ac_executable_extensions; do
8702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703    ac_cv_prog_ac_ct_RANLIB="ranlib"
8704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705    break 2
8706  fi
8707done
8708  done
8709IFS=$as_save_IFS
8710
8711fi
8712fi
8713ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8714if test -n "$ac_ct_RANLIB"; then
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8716$as_echo "$ac_ct_RANLIB" >&6; }
8717else
8718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719$as_echo "no" >&6; }
8720fi
8721
8722  if test "x$ac_ct_RANLIB" = x; then
8723    RANLIB=":"
8724  else
8725    case $cross_compiling:$ac_tool_warned in
8726yes:)
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8729ac_tool_warned=yes ;;
8730esac
8731    RANLIB=$ac_ct_RANLIB
8732  fi
8733else
8734  RANLIB="$ac_cv_prog_RANLIB"
8735fi
8736
8737test -z "$RANLIB" && RANLIB=:
8738
8739
8740
8741
8742
8743
8744# Determine commands to create old-style static archives.
8745old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8746old_postinstall_cmds='chmod 644 $oldlib'
8747old_postuninstall_cmds=
8748
8749if test -n "$RANLIB"; then
8750  case $host_os in
8751  bitrig* | openbsd*)
8752    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8753    ;;
8754  *)
8755    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8756    ;;
8757  esac
8758  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8759fi
8760
8761case $host_os in
8762  darwin*)
8763    lock_old_archive_extraction=yes ;;
8764  *)
8765    lock_old_archive_extraction=no ;;
8766esac
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788for ac_prog in gawk mawk nawk awk
8789do
8790  # Extract the first word of "$ac_prog", so it can be a program name with args.
8791set dummy $ac_prog; ac_word=$2
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
8794if ${ac_cv_prog_AWK+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  if test -n "$AWK"; then
8798  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803  IFS=$as_save_IFS
8804  test -z "$as_dir" && as_dir=.
8805    for ac_exec_ext in '' $ac_executable_extensions; do
8806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807    ac_cv_prog_AWK="$ac_prog"
8808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809    break 2
8810  fi
8811done
8812  done
8813IFS=$as_save_IFS
8814
8815fi
8816fi
8817AWK=$ac_cv_prog_AWK
8818if test -n "$AWK"; then
8819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8820$as_echo "$AWK" >&6; }
8821else
8822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
8824fi
8825
8826
8827  test -n "$AWK" && break
8828done
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848# If no C compiler was specified, use CC.
8849LTCC=${LTCC-"$CC"}
8850
8851# If no C compiler flags were specified, use CFLAGS.
8852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8853
8854# Allow CC to be a program name with arguments.
8855compiler=$CC
8856
8857
8858# Check for command to grab the raw symbol name followed by C symbol from nm.
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8860$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8861if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864
8865# These are sane defaults that work on at least a few old systems.
8866# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8867
8868# Character class describing NM global symbol codes.
8869symcode='[BCDEGRST]'
8870
8871# Regexp to match symbols that can be accessed directly from C.
8872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8873
8874# Define system-specific variables.
8875case $host_os in
8876aix*)
8877  symcode='[BCDT]'
8878  ;;
8879cygwin* | mingw* | pw32* | cegcc*)
8880  symcode='[ABCDGISTW]'
8881  ;;
8882hpux*)
8883  if test ia64 = "$host_cpu"; then
8884    symcode='[ABCDEGRST]'
8885  fi
8886  ;;
8887irix* | nonstopux*)
8888  symcode='[BCDEGRST]'
8889  ;;
8890osf*)
8891  symcode='[BCDEGQRST]'
8892  ;;
8893solaris*)
8894  symcode='[BDRT]'
8895  ;;
8896sco3.2v5*)
8897  symcode='[DT]'
8898  ;;
8899sysv4.2uw2*)
8900  symcode='[DT]'
8901  ;;
8902sysv5* | sco5v6* | unixware* | OpenUNIX*)
8903  symcode='[ABDT]'
8904  ;;
8905sysv4)
8906  symcode='[DFNSTU]'
8907  ;;
8908esac
8909
8910# If we're using GNU nm, then use its standard symbol codes.
8911case `$NM -V 2>&1` in
8912*GNU* | *'with BFD'*)
8913  symcode='[ABCDGIRSTW]' ;;
8914esac
8915
8916if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8917  # Gets list of data symbols to import.
8918  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8919  # Adjust the below global symbol transforms to fixup imported variables.
8920  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8921  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8922  lt_c_name_lib_hook="\
8923  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8924  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8925else
8926  # Disable hooks by default.
8927  lt_cv_sys_global_symbol_to_import=
8928  lt_cdecl_hook=
8929  lt_c_name_hook=
8930  lt_c_name_lib_hook=
8931fi
8932
8933# Transform an extracted symbol line into a proper C declaration.
8934# Some systems (esp. on ia64) link data and code symbols differently,
8935# so use this general approach.
8936lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8937$lt_cdecl_hook\
8938" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8939" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8940
8941# Transform an extracted symbol line into symbol name and symbol address
8942lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8943$lt_c_name_hook\
8944" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8945" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8946
8947# Transform an extracted symbol line into symbol name with lib prefix and
8948# symbol address.
8949lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8950$lt_c_name_lib_hook\
8951" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8952" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8953" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8954
8955# Handle CRLF in mingw tool chain
8956opt_cr=
8957case $build_os in
8958mingw*)
8959  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8960  ;;
8961esac
8962
8963# Try without a prefix underscore, then with it.
8964for ac_symprfx in "" "_"; do
8965
8966  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8967  symxfrm="\\1 $ac_symprfx\\2 \\2"
8968
8969  # Write the raw and C identifiers.
8970  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8971    # Fake it for dumpbin and say T for any non-static function,
8972    # D for any global variable and I for any imported variable.
8973    # Also find C++ and __fastcall symbols from MSVC++,
8974    # which start with @ or ?.
8975    lt_cv_sys_global_symbol_pipe="$AWK '"\
8976"     {last_section=section; section=\$ 3};"\
8977"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8978"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8979"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8980"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8981"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8982"     \$ 0!~/External *\|/{next};"\
8983"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8984"     {if(hide[section]) next};"\
8985"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8986"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8987"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8988"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8989"     ' prfx=^$ac_symprfx"
8990  else
8991    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8992  fi
8993  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8994
8995  # Check to see that the pipe works correctly.
8996  pipe_works=no
8997
8998  rm -f conftest*
8999  cat > conftest.$ac_ext <<_LT_EOF
9000#ifdef __cplusplus
9001extern "C" {
9002#endif
9003char nm_test_var;
9004void nm_test_func(void);
9005void nm_test_func(void){}
9006#ifdef __cplusplus
9007}
9008#endif
9009int main(){nm_test_var='a';nm_test_func();return(0);}
9010_LT_EOF
9011
9012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9013  (eval $ac_compile) 2>&5
9014  ac_status=$?
9015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9016  test $ac_status = 0; }; then
9017    # Now try to grab the symbols.
9018    nlist=conftest.nm
9019    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9020  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9021  ac_status=$?
9022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023  test $ac_status = 0; } && test -s "$nlist"; then
9024      # Try sorting and uniquifying the output.
9025      if sort "$nlist" | uniq > "$nlist"T; then
9026	mv -f "$nlist"T "$nlist"
9027      else
9028	rm -f "$nlist"T
9029      fi
9030
9031      # Make sure that we snagged all the symbols we need.
9032      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9033	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9034	  cat <<_LT_EOF > conftest.$ac_ext
9035/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9036#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9037/* DATA imports from DLLs on WIN32 can't be const, because runtime
9038   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9039# define LT_DLSYM_CONST
9040#elif defined __osf__
9041/* This system does not cope well with relocations in const data.  */
9042# define LT_DLSYM_CONST
9043#else
9044# define LT_DLSYM_CONST const
9045#endif
9046
9047#ifdef __cplusplus
9048extern "C" {
9049#endif
9050
9051_LT_EOF
9052	  # Now generate the symbol file.
9053	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9054
9055	  cat <<_LT_EOF >> conftest.$ac_ext
9056
9057/* The mapping between symbol names and symbols.  */
9058LT_DLSYM_CONST struct {
9059  const char *name;
9060  void       *address;
9061}
9062lt__PROGRAM__LTX_preloaded_symbols[] =
9063{
9064  { "@PROGRAM@", (void *) 0 },
9065_LT_EOF
9066	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9067	  cat <<\_LT_EOF >> conftest.$ac_ext
9068  {0, (void *) 0}
9069};
9070
9071/* This works around a problem in FreeBSD linker */
9072#ifdef FREEBSD_WORKAROUND
9073static const void *lt_preloaded_setup() {
9074  return lt__PROGRAM__LTX_preloaded_symbols;
9075}
9076#endif
9077
9078#ifdef __cplusplus
9079}
9080#endif
9081_LT_EOF
9082	  # Now try linking the two files.
9083	  mv conftest.$ac_objext conftstm.$ac_objext
9084	  lt_globsym_save_LIBS=$LIBS
9085	  lt_globsym_save_CFLAGS=$CFLAGS
9086	  LIBS=conftstm.$ac_objext
9087	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9088	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9089  (eval $ac_link) 2>&5
9090  ac_status=$?
9091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9092  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9093	    pipe_works=yes
9094	  fi
9095	  LIBS=$lt_globsym_save_LIBS
9096	  CFLAGS=$lt_globsym_save_CFLAGS
9097	else
9098	  echo "cannot find nm_test_func in $nlist" >&5
9099	fi
9100      else
9101	echo "cannot find nm_test_var in $nlist" >&5
9102      fi
9103    else
9104      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9105    fi
9106  else
9107    echo "$progname: failed program was:" >&5
9108    cat conftest.$ac_ext >&5
9109  fi
9110  rm -rf conftest* conftst*
9111
9112  # Do not use the global_symbol_pipe unless it works.
9113  if test yes = "$pipe_works"; then
9114    break
9115  else
9116    lt_cv_sys_global_symbol_pipe=
9117  fi
9118done
9119
9120fi
9121
9122if test -z "$lt_cv_sys_global_symbol_pipe"; then
9123  lt_cv_sys_global_symbol_to_cdecl=
9124fi
9125if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9127$as_echo "failed" >&6; }
9128else
9129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9130$as_echo "ok" >&6; }
9131fi
9132
9133# Response file support.
9134if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9135  nm_file_list_spec='@'
9136elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9137  nm_file_list_spec='@'
9138fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9177$as_echo_n "checking for sysroot... " >&6; }
9178
9179# Check whether --with-sysroot was given.
9180if test "${with_sysroot+set}" = set; then :
9181  withval=$with_sysroot;
9182else
9183  with_sysroot=no
9184fi
9185
9186
9187lt_sysroot=
9188case $with_sysroot in #(
9189 yes)
9190   if test yes = "$GCC"; then
9191     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9192   fi
9193   ;; #(
9194 /*)
9195   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9196   ;; #(
9197 no|'')
9198   ;; #(
9199 *)
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9201$as_echo "$with_sysroot" >&6; }
9202   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9203   ;;
9204esac
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9207$as_echo "${lt_sysroot:-no}" >&6; }
9208
9209
9210
9211
9212
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9214$as_echo_n "checking for a working dd... " >&6; }
9215if ${ac_cv_path_lt_DD+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  printf 0123456789abcdef0123456789abcdef >conftest.i
9219cat conftest.i conftest.i >conftest2.i
9220: ${lt_DD:=$DD}
9221if test -z "$lt_DD"; then
9222  ac_path_lt_DD_found=false
9223  # Loop through the user's path and test for each of PROGNAME-LIST
9224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227  IFS=$as_save_IFS
9228  test -z "$as_dir" && as_dir=.
9229    for ac_prog in dd; do
9230    for ac_exec_ext in '' $ac_executable_extensions; do
9231      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9232      as_fn_executable_p "$ac_path_lt_DD" || continue
9233if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9234  cmp -s conftest.i conftest.out \
9235  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9236fi
9237      $ac_path_lt_DD_found && break 3
9238    done
9239  done
9240  done
9241IFS=$as_save_IFS
9242  if test -z "$ac_cv_path_lt_DD"; then
9243    :
9244  fi
9245else
9246  ac_cv_path_lt_DD=$lt_DD
9247fi
9248
9249rm -f conftest.i conftest2.i conftest.out
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9252$as_echo "$ac_cv_path_lt_DD" >&6; }
9253
9254
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9256$as_echo_n "checking how to truncate binary pipes... " >&6; }
9257if ${lt_cv_truncate_bin+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  printf 0123456789abcdef0123456789abcdef >conftest.i
9261cat conftest.i conftest.i >conftest2.i
9262lt_cv_truncate_bin=
9263if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9264  cmp -s conftest.i conftest.out \
9265  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9266fi
9267rm -f conftest.i conftest2.i conftest.out
9268test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9269fi
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9271$as_echo "$lt_cv_truncate_bin" >&6; }
9272
9273
9274
9275
9276
9277
9278
9279# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9280func_cc_basename ()
9281{
9282    for cc_temp in $*""; do
9283      case $cc_temp in
9284        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9285        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9286        \-*) ;;
9287        *) break;;
9288      esac
9289    done
9290    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9291}
9292
9293# Check whether --enable-libtool-lock was given.
9294if test "${enable_libtool_lock+set}" = set; then :
9295  enableval=$enable_libtool_lock;
9296fi
9297
9298test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9299
9300# Some flags need to be propagated to the compiler or linker for good
9301# libtool support.
9302case $host in
9303ia64-*-hpux*)
9304  # Find out what ABI is being produced by ac_compile, and set mode
9305  # options accordingly.
9306  echo 'int i;' > conftest.$ac_ext
9307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9308  (eval $ac_compile) 2>&5
9309  ac_status=$?
9310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9311  test $ac_status = 0; }; then
9312    case `/usr/bin/file conftest.$ac_objext` in
9313      *ELF-32*)
9314	HPUX_IA64_MODE=32
9315	;;
9316      *ELF-64*)
9317	HPUX_IA64_MODE=64
9318	;;
9319    esac
9320  fi
9321  rm -rf conftest*
9322  ;;
9323*-*-irix6*)
9324  # Find out what ABI is being produced by ac_compile, and set linker
9325  # options accordingly.
9326  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9327  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9328  (eval $ac_compile) 2>&5
9329  ac_status=$?
9330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9331  test $ac_status = 0; }; then
9332    if test yes = "$lt_cv_prog_gnu_ld"; then
9333      case `/usr/bin/file conftest.$ac_objext` in
9334	*32-bit*)
9335	  LD="${LD-ld} -melf32bsmip"
9336	  ;;
9337	*N32*)
9338	  LD="${LD-ld} -melf32bmipn32"
9339	  ;;
9340	*64-bit*)
9341	  LD="${LD-ld} -melf64bmip"
9342	;;
9343      esac
9344    else
9345      case `/usr/bin/file conftest.$ac_objext` in
9346	*32-bit*)
9347	  LD="${LD-ld} -32"
9348	  ;;
9349	*N32*)
9350	  LD="${LD-ld} -n32"
9351	  ;;
9352	*64-bit*)
9353	  LD="${LD-ld} -64"
9354	  ;;
9355      esac
9356    fi
9357  fi
9358  rm -rf conftest*
9359  ;;
9360
9361mips64*-*linux*)
9362  # Find out what ABI is being produced by ac_compile, and set linker
9363  # options accordingly.
9364  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9366  (eval $ac_compile) 2>&5
9367  ac_status=$?
9368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369  test $ac_status = 0; }; then
9370    emul=elf
9371    case `/usr/bin/file conftest.$ac_objext` in
9372      *32-bit*)
9373	emul="${emul}32"
9374	;;
9375      *64-bit*)
9376	emul="${emul}64"
9377	;;
9378    esac
9379    case `/usr/bin/file conftest.$ac_objext` in
9380      *MSB*)
9381	emul="${emul}btsmip"
9382	;;
9383      *LSB*)
9384	emul="${emul}ltsmip"
9385	;;
9386    esac
9387    case `/usr/bin/file conftest.$ac_objext` in
9388      *N32*)
9389	emul="${emul}n32"
9390	;;
9391    esac
9392    LD="${LD-ld} -m $emul"
9393  fi
9394  rm -rf conftest*
9395  ;;
9396
9397x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9398s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9399  # Find out what ABI is being produced by ac_compile, and set linker
9400  # options accordingly.  Note that the listed cases only cover the
9401  # situations where additional linker options are needed (such as when
9402  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9403  # vice versa); the common cases where no linker options are needed do
9404  # not appear in the list.
9405  echo 'int i;' > conftest.$ac_ext
9406  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9407  (eval $ac_compile) 2>&5
9408  ac_status=$?
9409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9410  test $ac_status = 0; }; then
9411    case `/usr/bin/file conftest.o` in
9412      *32-bit*)
9413	case $host in
9414	  x86_64-*kfreebsd*-gnu)
9415	    LD="${LD-ld} -m elf_i386_fbsd"
9416	    ;;
9417	  x86_64-*linux*)
9418	    case `/usr/bin/file conftest.o` in
9419	      *x86-64*)
9420		LD="${LD-ld} -m elf32_x86_64"
9421		;;
9422	      *)
9423		LD="${LD-ld} -m elf_i386"
9424		;;
9425	    esac
9426	    ;;
9427	  powerpc64le-*linux*)
9428	    LD="${LD-ld} -m elf32lppclinux"
9429	    ;;
9430	  powerpc64-*linux*)
9431	    LD="${LD-ld} -m elf32ppclinux"
9432	    ;;
9433	  s390x-*linux*)
9434	    LD="${LD-ld} -m elf_s390"
9435	    ;;
9436	  sparc64-*linux*)
9437	    LD="${LD-ld} -m elf32_sparc"
9438	    ;;
9439	esac
9440	;;
9441      *64-bit*)
9442	case $host in
9443	  x86_64-*kfreebsd*-gnu)
9444	    LD="${LD-ld} -m elf_x86_64_fbsd"
9445	    ;;
9446	  x86_64-*linux*)
9447	    LD="${LD-ld} -m elf_x86_64"
9448	    ;;
9449	  powerpcle-*linux*)
9450	    LD="${LD-ld} -m elf64lppc"
9451	    ;;
9452	  powerpc-*linux*)
9453	    LD="${LD-ld} -m elf64ppc"
9454	    ;;
9455	  s390*-*linux*|s390*-*tpf*)
9456	    LD="${LD-ld} -m elf64_s390"
9457	    ;;
9458	  sparc*-*linux*)
9459	    LD="${LD-ld} -m elf64_sparc"
9460	    ;;
9461	esac
9462	;;
9463    esac
9464  fi
9465  rm -rf conftest*
9466  ;;
9467
9468*-*-sco3.2v5*)
9469  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9470  SAVE_CFLAGS=$CFLAGS
9471  CFLAGS="$CFLAGS -belf"
9472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9473$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9474if ${lt_cv_cc_needs_belf+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  ac_ext=c
9478ac_cpp='$CPP $CPPFLAGS'
9479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482
9483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485
9486int
9487main ()
9488{
9489
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495  lt_cv_cc_needs_belf=yes
9496else
9497  lt_cv_cc_needs_belf=no
9498fi
9499rm -f core conftest.err conftest.$ac_objext \
9500    conftest$ac_exeext conftest.$ac_ext
9501     ac_ext=c
9502ac_cpp='$CPP $CPPFLAGS'
9503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505ac_compiler_gnu=$ac_cv_c_compiler_gnu
9506
9507fi
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9509$as_echo "$lt_cv_cc_needs_belf" >&6; }
9510  if test yes != "$lt_cv_cc_needs_belf"; then
9511    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9512    CFLAGS=$SAVE_CFLAGS
9513  fi
9514  ;;
9515*-*solaris*)
9516  # Find out what ABI is being produced by ac_compile, and set linker
9517  # options accordingly.
9518  echo 'int i;' > conftest.$ac_ext
9519  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520  (eval $ac_compile) 2>&5
9521  ac_status=$?
9522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523  test $ac_status = 0; }; then
9524    case `/usr/bin/file conftest.o` in
9525    *64-bit*)
9526      case $lt_cv_prog_gnu_ld in
9527      yes*)
9528        case $host in
9529        i?86-*-solaris*|x86_64-*-solaris*)
9530          LD="${LD-ld} -m elf_x86_64"
9531          ;;
9532        sparc*-*-solaris*)
9533          LD="${LD-ld} -m elf64_sparc"
9534          ;;
9535        esac
9536        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9537        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9538          LD=${LD-ld}_sol2
9539        fi
9540        ;;
9541      *)
9542	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9543	  LD="${LD-ld} -64"
9544	fi
9545	;;
9546      esac
9547      ;;
9548    esac
9549  fi
9550  rm -rf conftest*
9551  ;;
9552esac
9553
9554need_locks=$enable_libtool_lock
9555
9556if test -n "$ac_tool_prefix"; then
9557  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9558set dummy ${ac_tool_prefix}mt; ac_word=$2
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9562  $as_echo_n "(cached) " >&6
9563else
9564  if test -n "$MANIFEST_TOOL"; then
9565  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570  IFS=$as_save_IFS
9571  test -z "$as_dir" && as_dir=.
9572    for ac_exec_ext in '' $ac_executable_extensions; do
9573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576    break 2
9577  fi
9578done
9579  done
9580IFS=$as_save_IFS
9581
9582fi
9583fi
9584MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9585if test -n "$MANIFEST_TOOL"; then
9586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9587$as_echo "$MANIFEST_TOOL" >&6; }
9588else
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
9591fi
9592
9593
9594fi
9595if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9596  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9597  # Extract the first word of "mt", so it can be a program name with args.
9598set dummy mt; ac_word=$2
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600$as_echo_n "checking for $ac_word... " >&6; }
9601if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  if test -n "$ac_ct_MANIFEST_TOOL"; then
9605  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9606else
9607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608for as_dir in $PATH
9609do
9610  IFS=$as_save_IFS
9611  test -z "$as_dir" && as_dir=.
9612    for ac_exec_ext in '' $ac_executable_extensions; do
9613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616    break 2
9617  fi
9618done
9619  done
9620IFS=$as_save_IFS
9621
9622fi
9623fi
9624ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9625if test -n "$ac_ct_MANIFEST_TOOL"; then
9626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9627$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9628else
9629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630$as_echo "no" >&6; }
9631fi
9632
9633  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9634    MANIFEST_TOOL=":"
9635  else
9636    case $cross_compiling:$ac_tool_warned in
9637yes:)
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9640ac_tool_warned=yes ;;
9641esac
9642    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9643  fi
9644else
9645  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9646fi
9647
9648test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9650$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9651if ${lt_cv_path_mainfest_tool+:} false; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  lt_cv_path_mainfest_tool=no
9655  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9656  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9657  cat conftest.err >&5
9658  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9659    lt_cv_path_mainfest_tool=yes
9660  fi
9661  rm -f conftest*
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9664$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9665if test yes != "$lt_cv_path_mainfest_tool"; then
9666  MANIFEST_TOOL=:
9667fi
9668
9669
9670
9671
9672
9673
9674  case $host_os in
9675    rhapsody* | darwin*)
9676    if test -n "$ac_tool_prefix"; then
9677  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9678set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680$as_echo_n "checking for $ac_word... " >&6; }
9681if ${ac_cv_prog_DSYMUTIL+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  if test -n "$DSYMUTIL"; then
9685  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9686else
9687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690  IFS=$as_save_IFS
9691  test -z "$as_dir" && as_dir=.
9692    for ac_exec_ext in '' $ac_executable_extensions; do
9693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696    break 2
9697  fi
9698done
9699  done
9700IFS=$as_save_IFS
9701
9702fi
9703fi
9704DSYMUTIL=$ac_cv_prog_DSYMUTIL
9705if test -n "$DSYMUTIL"; then
9706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9707$as_echo "$DSYMUTIL" >&6; }
9708else
9709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710$as_echo "no" >&6; }
9711fi
9712
9713
9714fi
9715if test -z "$ac_cv_prog_DSYMUTIL"; then
9716  ac_ct_DSYMUTIL=$DSYMUTIL
9717  # Extract the first word of "dsymutil", so it can be a program name with args.
9718set dummy dsymutil; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
9721if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  if test -n "$ac_ct_DSYMUTIL"; then
9725  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730  IFS=$as_save_IFS
9731  test -z "$as_dir" && as_dir=.
9732    for ac_exec_ext in '' $ac_executable_extensions; do
9733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9734    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736    break 2
9737  fi
9738done
9739  done
9740IFS=$as_save_IFS
9741
9742fi
9743fi
9744ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9745if test -n "$ac_ct_DSYMUTIL"; then
9746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9747$as_echo "$ac_ct_DSYMUTIL" >&6; }
9748else
9749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753  if test "x$ac_ct_DSYMUTIL" = x; then
9754    DSYMUTIL=":"
9755  else
9756    case $cross_compiling:$ac_tool_warned in
9757yes:)
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9760ac_tool_warned=yes ;;
9761esac
9762    DSYMUTIL=$ac_ct_DSYMUTIL
9763  fi
9764else
9765  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9766fi
9767
9768    if test -n "$ac_tool_prefix"; then
9769  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9770set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772$as_echo_n "checking for $ac_word... " >&6; }
9773if ${ac_cv_prog_NMEDIT+:} false; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  if test -n "$NMEDIT"; then
9777  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9778else
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782  IFS=$as_save_IFS
9783  test -z "$as_dir" && as_dir=.
9784    for ac_exec_ext in '' $ac_executable_extensions; do
9785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788    break 2
9789  fi
9790done
9791  done
9792IFS=$as_save_IFS
9793
9794fi
9795fi
9796NMEDIT=$ac_cv_prog_NMEDIT
9797if test -n "$NMEDIT"; then
9798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9799$as_echo "$NMEDIT" >&6; }
9800else
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804
9805
9806fi
9807if test -z "$ac_cv_prog_NMEDIT"; then
9808  ac_ct_NMEDIT=$NMEDIT
9809  # Extract the first word of "nmedit", so it can be a program name with args.
9810set dummy nmedit; ac_word=$2
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812$as_echo_n "checking for $ac_word... " >&6; }
9813if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9814  $as_echo_n "(cached) " >&6
9815else
9816  if test -n "$ac_ct_NMEDIT"; then
9817  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9818else
9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820for as_dir in $PATH
9821do
9822  IFS=$as_save_IFS
9823  test -z "$as_dir" && as_dir=.
9824    for ac_exec_ext in '' $ac_executable_extensions; do
9825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9826    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828    break 2
9829  fi
9830done
9831  done
9832IFS=$as_save_IFS
9833
9834fi
9835fi
9836ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9837if test -n "$ac_ct_NMEDIT"; then
9838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9839$as_echo "$ac_ct_NMEDIT" >&6; }
9840else
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844
9845  if test "x$ac_ct_NMEDIT" = x; then
9846    NMEDIT=":"
9847  else
9848    case $cross_compiling:$ac_tool_warned in
9849yes:)
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9852ac_tool_warned=yes ;;
9853esac
9854    NMEDIT=$ac_ct_NMEDIT
9855  fi
9856else
9857  NMEDIT="$ac_cv_prog_NMEDIT"
9858fi
9859
9860    if test -n "$ac_tool_prefix"; then
9861  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9862set dummy ${ac_tool_prefix}lipo; ac_word=$2
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if ${ac_cv_prog_LIPO+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  if test -n "$LIPO"; then
9869  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874  IFS=$as_save_IFS
9875  test -z "$as_dir" && as_dir=.
9876    for ac_exec_ext in '' $ac_executable_extensions; do
9877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880    break 2
9881  fi
9882done
9883  done
9884IFS=$as_save_IFS
9885
9886fi
9887fi
9888LIPO=$ac_cv_prog_LIPO
9889if test -n "$LIPO"; then
9890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9891$as_echo "$LIPO" >&6; }
9892else
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
9895fi
9896
9897
9898fi
9899if test -z "$ac_cv_prog_LIPO"; then
9900  ac_ct_LIPO=$LIPO
9901  # Extract the first word of "lipo", so it can be a program name with args.
9902set dummy lipo; ac_word=$2
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904$as_echo_n "checking for $ac_word... " >&6; }
9905if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  if test -n "$ac_ct_LIPO"; then
9909  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9910else
9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914  IFS=$as_save_IFS
9915  test -z "$as_dir" && as_dir=.
9916    for ac_exec_ext in '' $ac_executable_extensions; do
9917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918    ac_cv_prog_ac_ct_LIPO="lipo"
9919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920    break 2
9921  fi
9922done
9923  done
9924IFS=$as_save_IFS
9925
9926fi
9927fi
9928ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9929if test -n "$ac_ct_LIPO"; then
9930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9931$as_echo "$ac_ct_LIPO" >&6; }
9932else
9933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934$as_echo "no" >&6; }
9935fi
9936
9937  if test "x$ac_ct_LIPO" = x; then
9938    LIPO=":"
9939  else
9940    case $cross_compiling:$ac_tool_warned in
9941yes:)
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9944ac_tool_warned=yes ;;
9945esac
9946    LIPO=$ac_ct_LIPO
9947  fi
9948else
9949  LIPO="$ac_cv_prog_LIPO"
9950fi
9951
9952    if test -n "$ac_tool_prefix"; then
9953  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9954set dummy ${ac_tool_prefix}otool; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if ${ac_cv_prog_OTOOL+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  if test -n "$OTOOL"; then
9961  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966  IFS=$as_save_IFS
9967  test -z "$as_dir" && as_dir=.
9968    for ac_exec_ext in '' $ac_executable_extensions; do
9969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972    break 2
9973  fi
9974done
9975  done
9976IFS=$as_save_IFS
9977
9978fi
9979fi
9980OTOOL=$ac_cv_prog_OTOOL
9981if test -n "$OTOOL"; then
9982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9983$as_echo "$OTOOL" >&6; }
9984else
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986$as_echo "no" >&6; }
9987fi
9988
9989
9990fi
9991if test -z "$ac_cv_prog_OTOOL"; then
9992  ac_ct_OTOOL=$OTOOL
9993  # Extract the first word of "otool", so it can be a program name with args.
9994set dummy otool; ac_word=$2
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996$as_echo_n "checking for $ac_word... " >&6; }
9997if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9998  $as_echo_n "(cached) " >&6
9999else
10000  if test -n "$ac_ct_OTOOL"; then
10001  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10002else
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006  IFS=$as_save_IFS
10007  test -z "$as_dir" && as_dir=.
10008    for ac_exec_ext in '' $ac_executable_extensions; do
10009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010    ac_cv_prog_ac_ct_OTOOL="otool"
10011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012    break 2
10013  fi
10014done
10015  done
10016IFS=$as_save_IFS
10017
10018fi
10019fi
10020ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10021if test -n "$ac_ct_OTOOL"; then
10022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10023$as_echo "$ac_ct_OTOOL" >&6; }
10024else
10025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
10027fi
10028
10029  if test "x$ac_ct_OTOOL" = x; then
10030    OTOOL=":"
10031  else
10032    case $cross_compiling:$ac_tool_warned in
10033yes:)
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036ac_tool_warned=yes ;;
10037esac
10038    OTOOL=$ac_ct_OTOOL
10039  fi
10040else
10041  OTOOL="$ac_cv_prog_OTOOL"
10042fi
10043
10044    if test -n "$ac_tool_prefix"; then
10045  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10046set dummy ${ac_tool_prefix}otool64; ac_word=$2
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048$as_echo_n "checking for $ac_word... " >&6; }
10049if ${ac_cv_prog_OTOOL64+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  if test -n "$OTOOL64"; then
10053  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10054else
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058  IFS=$as_save_IFS
10059  test -z "$as_dir" && as_dir=.
10060    for ac_exec_ext in '' $ac_executable_extensions; do
10061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064    break 2
10065  fi
10066done
10067  done
10068IFS=$as_save_IFS
10069
10070fi
10071fi
10072OTOOL64=$ac_cv_prog_OTOOL64
10073if test -n "$OTOOL64"; then
10074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10075$as_echo "$OTOOL64" >&6; }
10076else
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
10079fi
10080
10081
10082fi
10083if test -z "$ac_cv_prog_OTOOL64"; then
10084  ac_ct_OTOOL64=$OTOOL64
10085  # Extract the first word of "otool64", so it can be a program name with args.
10086set dummy otool64; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
10089if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10090  $as_echo_n "(cached) " >&6
10091else
10092  if test -n "$ac_ct_OTOOL64"; then
10093  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098  IFS=$as_save_IFS
10099  test -z "$as_dir" && as_dir=.
10100    for ac_exec_ext in '' $ac_executable_extensions; do
10101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102    ac_cv_prog_ac_ct_OTOOL64="otool64"
10103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104    break 2
10105  fi
10106done
10107  done
10108IFS=$as_save_IFS
10109
10110fi
10111fi
10112ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10113if test -n "$ac_ct_OTOOL64"; then
10114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10115$as_echo "$ac_ct_OTOOL64" >&6; }
10116else
10117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
10120
10121  if test "x$ac_ct_OTOOL64" = x; then
10122    OTOOL64=":"
10123  else
10124    case $cross_compiling:$ac_tool_warned in
10125yes:)
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10128ac_tool_warned=yes ;;
10129esac
10130    OTOOL64=$ac_ct_OTOOL64
10131  fi
10132else
10133  OTOOL64="$ac_cv_prog_OTOOL64"
10134fi
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10163$as_echo_n "checking for -single_module linker flag... " >&6; }
10164if ${lt_cv_apple_cc_single_mod+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  lt_cv_apple_cc_single_mod=no
10168      if test -z "$LT_MULTI_MODULE"; then
10169	# By default we will add the -single_module flag. You can override
10170	# by either setting the environment variable LT_MULTI_MODULE
10171	# non-empty at configure time, or by adding -multi_module to the
10172	# link flags.
10173	rm -rf libconftest.dylib*
10174	echo "int foo(void){return 1;}" > conftest.c
10175	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10176-dynamiclib -Wl,-single_module conftest.c" >&5
10177	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10178	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10179        _lt_result=$?
10180	# If there is a non-empty error log, and "single_module"
10181	# appears in it, assume the flag caused a linker warning
10182        if test -s conftest.err && $GREP single_module conftest.err; then
10183	  cat conftest.err >&5
10184	# Otherwise, if the output was created with a 0 exit code from
10185	# the compiler, it worked.
10186	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10187	  lt_cv_apple_cc_single_mod=yes
10188	else
10189	  cat conftest.err >&5
10190	fi
10191	rm -rf libconftest.dylib*
10192	rm -f conftest.*
10193      fi
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10196$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10197
10198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10199$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10200if ${lt_cv_ld_exported_symbols_list+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  lt_cv_ld_exported_symbols_list=no
10204      save_LDFLAGS=$LDFLAGS
10205      echo "_main" > conftest.sym
10206      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209
10210int
10211main ()
10212{
10213
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219  lt_cv_ld_exported_symbols_list=yes
10220else
10221  lt_cv_ld_exported_symbols_list=no
10222fi
10223rm -f core conftest.err conftest.$ac_objext \
10224    conftest$ac_exeext conftest.$ac_ext
10225	LDFLAGS=$save_LDFLAGS
10226
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10229$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10230
10231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10232$as_echo_n "checking for -force_load linker flag... " >&6; }
10233if ${lt_cv_ld_force_load+:} false; then :
10234  $as_echo_n "(cached) " >&6
10235else
10236  lt_cv_ld_force_load=no
10237      cat > conftest.c << _LT_EOF
10238int forced_loaded() { return 2;}
10239_LT_EOF
10240      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10241      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10242      echo "$AR cru libconftest.a conftest.o" >&5
10243      $AR cru libconftest.a conftest.o 2>&5
10244      echo "$RANLIB libconftest.a" >&5
10245      $RANLIB libconftest.a 2>&5
10246      cat > conftest.c << _LT_EOF
10247int main() { return 0;}
10248_LT_EOF
10249      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10250      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10251      _lt_result=$?
10252      if test -s conftest.err && $GREP force_load conftest.err; then
10253	cat conftest.err >&5
10254      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10255	lt_cv_ld_force_load=yes
10256      else
10257	cat conftest.err >&5
10258      fi
10259        rm -f conftest.err libconftest.a conftest conftest.c
10260        rm -rf conftest.dSYM
10261
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10264$as_echo "$lt_cv_ld_force_load" >&6; }
10265    case $host_os in
10266    rhapsody* | darwin1.[012])
10267      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10268    darwin1.*)
10269      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10270    darwin*) # darwin 5.x on
10271      # if running on 10.5 or later, the deployment target defaults
10272      # to the OS version, if on x86, and 10.4, the deployment
10273      # target defaults to 10.4. Don't you love it?
10274      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10275	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10276	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10277	10.[012][,.]*)
10278	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10279	10.*)
10280	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10281      esac
10282    ;;
10283  esac
10284    if test yes = "$lt_cv_apple_cc_single_mod"; then
10285      _lt_dar_single_mod='$single_module'
10286    fi
10287    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10288      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10289    else
10290      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10291    fi
10292    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10293      _lt_dsymutil='~$DSYMUTIL $lib || :'
10294    else
10295      _lt_dsymutil=
10296    fi
10297    ;;
10298  esac
10299
10300# func_munge_path_list VARIABLE PATH
10301# -----------------------------------
10302# VARIABLE is name of variable containing _space_ separated list of
10303# directories to be munged by the contents of PATH, which is string
10304# having a format:
10305# "DIR[:DIR]:"
10306#       string "DIR[ DIR]" will be prepended to VARIABLE
10307# ":DIR[:DIR]"
10308#       string "DIR[ DIR]" will be appended to VARIABLE
10309# "DIRP[:DIRP]::[DIRA:]DIRA"
10310#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10311#       "DIRA[ DIRA]" will be appended to VARIABLE
10312# "DIR[:DIR]"
10313#       VARIABLE will be replaced by "DIR[ DIR]"
10314func_munge_path_list ()
10315{
10316    case x$2 in
10317    x)
10318        ;;
10319    *:)
10320        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10321        ;;
10322    x:*)
10323        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10324        ;;
10325    *::*)
10326        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10327        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10328        ;;
10329    *)
10330        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10331        ;;
10332    esac
10333}
10334
10335for ac_header in dlfcn.h
10336do :
10337  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10338"
10339if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10340  cat >>confdefs.h <<_ACEOF
10341#define HAVE_DLFCN_H 1
10342_ACEOF
10343
10344fi
10345
10346done
10347
10348
10349
10350
10351
10352
10353
10354# Set options
10355
10356
10357
10358        enable_dlopen=no
10359
10360
10361  enable_win32_dll=no
10362
10363
10364            # Check whether --enable-shared was given.
10365if test "${enable_shared+set}" = set; then :
10366  enableval=$enable_shared; p=${PACKAGE-default}
10367    case $enableval in
10368    yes) enable_shared=yes ;;
10369    no) enable_shared=no ;;
10370    *)
10371      enable_shared=no
10372      # Look at the argument we got.  We use all the common list separators.
10373      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10374      for pkg in $enableval; do
10375	IFS=$lt_save_ifs
10376	if test "X$pkg" = "X$p"; then
10377	  enable_shared=yes
10378	fi
10379      done
10380      IFS=$lt_save_ifs
10381      ;;
10382    esac
10383else
10384  enable_shared=yes
10385fi
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395  # Check whether --enable-static was given.
10396if test "${enable_static+set}" = set; then :
10397  enableval=$enable_static; p=${PACKAGE-default}
10398    case $enableval in
10399    yes) enable_static=yes ;;
10400    no) enable_static=no ;;
10401    *)
10402     enable_static=no
10403      # Look at the argument we got.  We use all the common list separators.
10404      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10405      for pkg in $enableval; do
10406	IFS=$lt_save_ifs
10407	if test "X$pkg" = "X$p"; then
10408	  enable_static=yes
10409	fi
10410      done
10411      IFS=$lt_save_ifs
10412      ;;
10413    esac
10414else
10415  enable_static=yes
10416fi
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427# Check whether --with-pic was given.
10428if test "${with_pic+set}" = set; then :
10429  withval=$with_pic; lt_p=${PACKAGE-default}
10430    case $withval in
10431    yes|no) pic_mode=$withval ;;
10432    *)
10433      pic_mode=default
10434      # Look at the argument we got.  We use all the common list separators.
10435      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10436      for lt_pkg in $withval; do
10437	IFS=$lt_save_ifs
10438	if test "X$lt_pkg" = "X$lt_p"; then
10439	  pic_mode=yes
10440	fi
10441      done
10442      IFS=$lt_save_ifs
10443      ;;
10444    esac
10445else
10446  pic_mode=default
10447fi
10448
10449
10450
10451
10452
10453
10454
10455
10456  # Check whether --enable-fast-install was given.
10457if test "${enable_fast_install+set}" = set; then :
10458  enableval=$enable_fast_install; p=${PACKAGE-default}
10459    case $enableval in
10460    yes) enable_fast_install=yes ;;
10461    no) enable_fast_install=no ;;
10462    *)
10463      enable_fast_install=no
10464      # Look at the argument we got.  We use all the common list separators.
10465      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10466      for pkg in $enableval; do
10467	IFS=$lt_save_ifs
10468	if test "X$pkg" = "X$p"; then
10469	  enable_fast_install=yes
10470	fi
10471      done
10472      IFS=$lt_save_ifs
10473      ;;
10474    esac
10475else
10476  enable_fast_install=yes
10477fi
10478
10479
10480
10481
10482
10483
10484
10485
10486  shared_archive_member_spec=
10487case $host,$enable_shared in
10488power*-*-aix[5-9]*,yes)
10489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10490$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10491
10492# Check whether --with-aix-soname was given.
10493if test "${with_aix_soname+set}" = set; then :
10494  withval=$with_aix_soname; case $withval in
10495    aix|svr4|both)
10496      ;;
10497    *)
10498      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10499      ;;
10500    esac
10501    lt_cv_with_aix_soname=$with_aix_soname
10502else
10503  if ${lt_cv_with_aix_soname+:} false; then :
10504  $as_echo_n "(cached) " >&6
10505else
10506  lt_cv_with_aix_soname=aix
10507fi
10508
10509    with_aix_soname=$lt_cv_with_aix_soname
10510fi
10511
10512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10513$as_echo "$with_aix_soname" >&6; }
10514  if test aix != "$with_aix_soname"; then
10515    # For the AIX way of multilib, we name the shared archive member
10516    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10517    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10518    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10519    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10520    if test 64 = "${OBJECT_MODE-32}"; then
10521      shared_archive_member_spec=shr_64
10522    else
10523      shared_archive_member_spec=shr
10524    fi
10525  fi
10526  ;;
10527*)
10528  with_aix_soname=aix
10529  ;;
10530esac
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541# This can be used to rebuild libtool when needed
10542LIBTOOL_DEPS=$ltmain
10543
10544# Always use our own libtool.
10545LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576test -z "$LN_S" && LN_S="ln -s"
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591if test -n "${ZSH_VERSION+set}"; then
10592   setopt NO_GLOB_SUBST
10593fi
10594
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10596$as_echo_n "checking for objdir... " >&6; }
10597if ${lt_cv_objdir+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  rm -f .libs 2>/dev/null
10601mkdir .libs 2>/dev/null
10602if test -d .libs; then
10603  lt_cv_objdir=.libs
10604else
10605  # MS-DOS does not allow filenames that begin with a dot.
10606  lt_cv_objdir=_libs
10607fi
10608rmdir .libs 2>/dev/null
10609fi
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10611$as_echo "$lt_cv_objdir" >&6; }
10612objdir=$lt_cv_objdir
10613
10614
10615
10616
10617
10618cat >>confdefs.h <<_ACEOF
10619#define LT_OBJDIR "$lt_cv_objdir/"
10620_ACEOF
10621
10622
10623
10624
10625case $host_os in
10626aix3*)
10627  # AIX sometimes has problems with the GCC collect2 program.  For some
10628  # reason, if we set the COLLECT_NAMES environment variable, the problems
10629  # vanish in a puff of smoke.
10630  if test set != "${COLLECT_NAMES+set}"; then
10631    COLLECT_NAMES=
10632    export COLLECT_NAMES
10633  fi
10634  ;;
10635esac
10636
10637# Global variables:
10638ofile=libtool
10639can_build_shared=yes
10640
10641# All known linkers require a '.a' archive for static linking (except MSVC,
10642# which needs '.lib').
10643libext=a
10644
10645with_gnu_ld=$lt_cv_prog_gnu_ld
10646
10647old_CC=$CC
10648old_CFLAGS=$CFLAGS
10649
10650# Set sane defaults for various variables
10651test -z "$CC" && CC=cc
10652test -z "$LTCC" && LTCC=$CC
10653test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10654test -z "$LD" && LD=ld
10655test -z "$ac_objext" && ac_objext=o
10656
10657func_cc_basename $compiler
10658cc_basename=$func_cc_basename_result
10659
10660
10661# Only perform the check for file, if the check method requires it
10662test -z "$MAGIC_CMD" && MAGIC_CMD=file
10663case $deplibs_check_method in
10664file_magic*)
10665  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10667$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10668if ${lt_cv_path_MAGIC_CMD+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671  case $MAGIC_CMD in
10672[\\/*] |  ?:[\\/]*)
10673  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10674  ;;
10675*)
10676  lt_save_MAGIC_CMD=$MAGIC_CMD
10677  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10678  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10679  for ac_dir in $ac_dummy; do
10680    IFS=$lt_save_ifs
10681    test -z "$ac_dir" && ac_dir=.
10682    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10683      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10684      if test -n "$file_magic_test_file"; then
10685	case $deplibs_check_method in
10686	"file_magic "*)
10687	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10688	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10689	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10690	    $EGREP "$file_magic_regex" > /dev/null; then
10691	    :
10692	  else
10693	    cat <<_LT_EOF 1>&2
10694
10695*** Warning: the command libtool uses to detect shared libraries,
10696*** $file_magic_cmd, produces output that libtool cannot recognize.
10697*** The result is that libtool may fail to recognize shared libraries
10698*** as such.  This will affect the creation of libtool libraries that
10699*** depend on shared libraries, but programs linked with such libtool
10700*** libraries will work regardless of this problem.  Nevertheless, you
10701*** may want to report the problem to your system manager and/or to
10702*** bug-libtool@gnu.org
10703
10704_LT_EOF
10705	  fi ;;
10706	esac
10707      fi
10708      break
10709    fi
10710  done
10711  IFS=$lt_save_ifs
10712  MAGIC_CMD=$lt_save_MAGIC_CMD
10713  ;;
10714esac
10715fi
10716
10717MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10718if test -n "$MAGIC_CMD"; then
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10720$as_echo "$MAGIC_CMD" >&6; }
10721else
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727
10728
10729
10730if test -z "$lt_cv_path_MAGIC_CMD"; then
10731  if test -n "$ac_tool_prefix"; then
10732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10733$as_echo_n "checking for file... " >&6; }
10734if ${lt_cv_path_MAGIC_CMD+:} false; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  case $MAGIC_CMD in
10738[\\/*] |  ?:[\\/]*)
10739  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10740  ;;
10741*)
10742  lt_save_MAGIC_CMD=$MAGIC_CMD
10743  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10744  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10745  for ac_dir in $ac_dummy; do
10746    IFS=$lt_save_ifs
10747    test -z "$ac_dir" && ac_dir=.
10748    if test -f "$ac_dir/file"; then
10749      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10750      if test -n "$file_magic_test_file"; then
10751	case $deplibs_check_method in
10752	"file_magic "*)
10753	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10754	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10755	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10756	    $EGREP "$file_magic_regex" > /dev/null; then
10757	    :
10758	  else
10759	    cat <<_LT_EOF 1>&2
10760
10761*** Warning: the command libtool uses to detect shared libraries,
10762*** $file_magic_cmd, produces output that libtool cannot recognize.
10763*** The result is that libtool may fail to recognize shared libraries
10764*** as such.  This will affect the creation of libtool libraries that
10765*** depend on shared libraries, but programs linked with such libtool
10766*** libraries will work regardless of this problem.  Nevertheless, you
10767*** may want to report the problem to your system manager and/or to
10768*** bug-libtool@gnu.org
10769
10770_LT_EOF
10771	  fi ;;
10772	esac
10773      fi
10774      break
10775    fi
10776  done
10777  IFS=$lt_save_ifs
10778  MAGIC_CMD=$lt_save_MAGIC_CMD
10779  ;;
10780esac
10781fi
10782
10783MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10784if test -n "$MAGIC_CMD"; then
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10786$as_echo "$MAGIC_CMD" >&6; }
10787else
10788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
10790fi
10791
10792
10793  else
10794    MAGIC_CMD=:
10795  fi
10796fi
10797
10798  fi
10799  ;;
10800esac
10801
10802# Use C for the default configuration in the libtool script
10803
10804lt_save_CC=$CC
10805ac_ext=c
10806ac_cpp='$CPP $CPPFLAGS'
10807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809ac_compiler_gnu=$ac_cv_c_compiler_gnu
10810
10811
10812# Source file extension for C test sources.
10813ac_ext=c
10814
10815# Object file extension for compiled C test sources.
10816objext=o
10817objext=$objext
10818
10819# Code to be used in simple compile tests
10820lt_simple_compile_test_code="int some_variable = 0;"
10821
10822# Code to be used in simple link tests
10823lt_simple_link_test_code='int main(){return(0);}'
10824
10825
10826
10827
10828
10829
10830
10831# If no C compiler was specified, use CC.
10832LTCC=${LTCC-"$CC"}
10833
10834# If no C compiler flags were specified, use CFLAGS.
10835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10836
10837# Allow CC to be a program name with arguments.
10838compiler=$CC
10839
10840# Save the default compiler, since it gets overwritten when the other
10841# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10842compiler_DEFAULT=$CC
10843
10844# save warnings/boilerplate of simple test code
10845ac_outfile=conftest.$ac_objext
10846echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10847eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10848_lt_compiler_boilerplate=`cat conftest.err`
10849$RM conftest*
10850
10851ac_outfile=conftest.$ac_objext
10852echo "$lt_simple_link_test_code" >conftest.$ac_ext
10853eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10854_lt_linker_boilerplate=`cat conftest.err`
10855$RM -r conftest*
10856
10857
10858if test -n "$compiler"; then
10859
10860lt_prog_compiler_no_builtin_flag=
10861
10862if test yes = "$GCC"; then
10863  case $cc_basename in
10864  nvcc*)
10865    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10866  *)
10867    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10868  esac
10869
10870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10871$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10872if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  lt_cv_prog_compiler_rtti_exceptions=no
10876   ac_outfile=conftest.$ac_objext
10877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10878   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10879   # Insert the option either (1) after the last *FLAGS variable, or
10880   # (2) before a word containing "conftest.", or (3) at the end.
10881   # Note that $ac_compile itself does not contain backslashes and begins
10882   # with a dollar sign (not a hyphen), so the echo should work correctly.
10883   # The option is referenced via a variable to avoid confusing sed.
10884   lt_compile=`echo "$ac_compile" | $SED \
10885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10887   -e 's:$: $lt_compiler_flag:'`
10888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10889   (eval "$lt_compile" 2>conftest.err)
10890   ac_status=$?
10891   cat conftest.err >&5
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   if (exit $ac_status) && test -s "$ac_outfile"; then
10894     # The compiler can only warn and ignore the option if not recognized
10895     # So say no if there are warnings other than the usual output.
10896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10899       lt_cv_prog_compiler_rtti_exceptions=yes
10900     fi
10901   fi
10902   $RM conftest*
10903
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10906$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10907
10908if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10909    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10910else
10911    :
10912fi
10913
10914fi
10915
10916
10917
10918
10919
10920
10921  lt_prog_compiler_wl=
10922lt_prog_compiler_pic=
10923lt_prog_compiler_static=
10924
10925
10926  if test yes = "$GCC"; then
10927    lt_prog_compiler_wl='-Wl,'
10928    lt_prog_compiler_static='-static'
10929
10930    case $host_os in
10931      aix*)
10932      # All AIX code is PIC.
10933      if test ia64 = "$host_cpu"; then
10934	# AIX 5 now supports IA64 processor
10935	lt_prog_compiler_static='-Bstatic'
10936      fi
10937      lt_prog_compiler_pic='-fPIC'
10938      ;;
10939
10940    amigaos*)
10941      case $host_cpu in
10942      powerpc)
10943            # see comment about AmigaOS4 .so support
10944            lt_prog_compiler_pic='-fPIC'
10945        ;;
10946      m68k)
10947            # FIXME: we need at least 68020 code to build shared libraries, but
10948            # adding the '-m68020' flag to GCC prevents building anything better,
10949            # like '-m68040'.
10950            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10951        ;;
10952      esac
10953      ;;
10954
10955    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10956      # PIC is the default for these OSes.
10957      ;;
10958
10959    mingw* | cygwin* | pw32* | os2* | cegcc*)
10960      # This hack is so that the source file can tell whether it is being
10961      # built for inclusion in a dll (and should export symbols for example).
10962      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10963      # (--disable-auto-import) libraries
10964      lt_prog_compiler_pic='-DDLL_EXPORT'
10965      case $host_os in
10966      os2*)
10967	lt_prog_compiler_static='$wl-static'
10968	;;
10969      esac
10970      ;;
10971
10972    darwin* | rhapsody*)
10973      # PIC is the default on this platform
10974      # Common symbols not allowed in MH_DYLIB files
10975      lt_prog_compiler_pic='-fno-common'
10976      ;;
10977
10978    haiku*)
10979      # PIC is the default for Haiku.
10980      # The "-static" flag exists, but is broken.
10981      lt_prog_compiler_static=
10982      ;;
10983
10984    hpux*)
10985      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10986      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10987      # sets the default TLS model and affects inlining.
10988      case $host_cpu in
10989      hppa*64*)
10990	# +Z the default
10991	;;
10992      *)
10993	lt_prog_compiler_pic='-fPIC'
10994	;;
10995      esac
10996      ;;
10997
10998    interix[3-9]*)
10999      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11000      # Instead, we relocate shared libraries at runtime.
11001      ;;
11002
11003    msdosdjgpp*)
11004      # Just because we use GCC doesn't mean we suddenly get shared libraries
11005      # on systems that don't support them.
11006      lt_prog_compiler_can_build_shared=no
11007      enable_shared=no
11008      ;;
11009
11010    *nto* | *qnx*)
11011      # QNX uses GNU C++, but need to define -shared option too, otherwise
11012      # it will coredump.
11013      lt_prog_compiler_pic='-fPIC -shared'
11014      ;;
11015
11016    sysv4*MP*)
11017      if test -d /usr/nec; then
11018	lt_prog_compiler_pic=-Kconform_pic
11019      fi
11020      ;;
11021
11022    *)
11023      lt_prog_compiler_pic='-fPIC'
11024      ;;
11025    esac
11026
11027    case $cc_basename in
11028    nvcc*) # Cuda Compiler Driver 2.2
11029      lt_prog_compiler_wl='-Xlinker '
11030      if test -n "$lt_prog_compiler_pic"; then
11031        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11032      fi
11033      ;;
11034    esac
11035  else
11036    # PORTME Check for flag to pass linker flags through the system compiler.
11037    case $host_os in
11038    aix*)
11039      lt_prog_compiler_wl='-Wl,'
11040      if test ia64 = "$host_cpu"; then
11041	# AIX 5 now supports IA64 processor
11042	lt_prog_compiler_static='-Bstatic'
11043      else
11044	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11045      fi
11046      ;;
11047
11048    darwin* | rhapsody*)
11049      # PIC is the default on this platform
11050      # Common symbols not allowed in MH_DYLIB files
11051      lt_prog_compiler_pic='-fno-common'
11052      case $cc_basename in
11053      nagfor*)
11054        # NAG Fortran compiler
11055        lt_prog_compiler_wl='-Wl,-Wl,,'
11056        lt_prog_compiler_pic='-PIC'
11057        lt_prog_compiler_static='-Bstatic'
11058        ;;
11059      esac
11060      ;;
11061
11062    mingw* | cygwin* | pw32* | os2* | cegcc*)
11063      # This hack is so that the source file can tell whether it is being
11064      # built for inclusion in a dll (and should export symbols for example).
11065      lt_prog_compiler_pic='-DDLL_EXPORT'
11066      case $host_os in
11067      os2*)
11068	lt_prog_compiler_static='$wl-static'
11069	;;
11070      esac
11071      ;;
11072
11073    hpux9* | hpux10* | hpux11*)
11074      lt_prog_compiler_wl='-Wl,'
11075      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11076      # not for PA HP-UX.
11077      case $host_cpu in
11078      hppa*64*|ia64*)
11079	# +Z the default
11080	;;
11081      *)
11082	lt_prog_compiler_pic='+Z'
11083	;;
11084      esac
11085      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11086      lt_prog_compiler_static='$wl-a ${wl}archive'
11087      ;;
11088
11089    irix5* | irix6* | nonstopux*)
11090      lt_prog_compiler_wl='-Wl,'
11091      # PIC (with -KPIC) is the default.
11092      lt_prog_compiler_static='-non_shared'
11093      ;;
11094
11095    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11096      case $cc_basename in
11097      # old Intel for x86_64, which still supported -KPIC.
11098      ecc*)
11099	lt_prog_compiler_wl='-Wl,'
11100	lt_prog_compiler_pic='-KPIC'
11101	lt_prog_compiler_static='-static'
11102        ;;
11103      # icc used to be incompatible with GCC.
11104      # ICC 10 doesn't accept -KPIC any more.
11105      icc* | ifort*)
11106	lt_prog_compiler_wl='-Wl,'
11107	lt_prog_compiler_pic='-fPIC'
11108	lt_prog_compiler_static='-static'
11109        ;;
11110      # Lahey Fortran 8.1.
11111      lf95*)
11112	lt_prog_compiler_wl='-Wl,'
11113	lt_prog_compiler_pic='--shared'
11114	lt_prog_compiler_static='--static'
11115	;;
11116      nagfor*)
11117	# NAG Fortran compiler
11118	lt_prog_compiler_wl='-Wl,-Wl,,'
11119	lt_prog_compiler_pic='-PIC'
11120	lt_prog_compiler_static='-Bstatic'
11121	;;
11122      tcc*)
11123	# Fabrice Bellard et al's Tiny C Compiler
11124	lt_prog_compiler_wl='-Wl,'
11125	lt_prog_compiler_pic='-fPIC'
11126	lt_prog_compiler_static='-static'
11127	;;
11128      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11129        # Portland Group compilers (*not* the Pentium gcc compiler,
11130	# which looks to be a dead project)
11131	lt_prog_compiler_wl='-Wl,'
11132	lt_prog_compiler_pic='-fpic'
11133	lt_prog_compiler_static='-Bstatic'
11134        ;;
11135      ccc*)
11136        lt_prog_compiler_wl='-Wl,'
11137        # All Alpha code is PIC.
11138        lt_prog_compiler_static='-non_shared'
11139        ;;
11140      xl* | bgxl* | bgf* | mpixl*)
11141	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11142	lt_prog_compiler_wl='-Wl,'
11143	lt_prog_compiler_pic='-qpic'
11144	lt_prog_compiler_static='-qstaticlink'
11145	;;
11146      *)
11147	case `$CC -V 2>&1 | sed 5q` in
11148	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11149	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11150	  lt_prog_compiler_pic='-KPIC'
11151	  lt_prog_compiler_static='-Bstatic'
11152	  lt_prog_compiler_wl=''
11153	  ;;
11154	*Sun\ F* | *Sun*Fortran*)
11155	  lt_prog_compiler_pic='-KPIC'
11156	  lt_prog_compiler_static='-Bstatic'
11157	  lt_prog_compiler_wl='-Qoption ld '
11158	  ;;
11159	*Sun\ C*)
11160	  # Sun C 5.9
11161	  lt_prog_compiler_pic='-KPIC'
11162	  lt_prog_compiler_static='-Bstatic'
11163	  lt_prog_compiler_wl='-Wl,'
11164	  ;;
11165        *Intel*\ [CF]*Compiler*)
11166	  lt_prog_compiler_wl='-Wl,'
11167	  lt_prog_compiler_pic='-fPIC'
11168	  lt_prog_compiler_static='-static'
11169	  ;;
11170	*Portland\ Group*)
11171	  lt_prog_compiler_wl='-Wl,'
11172	  lt_prog_compiler_pic='-fpic'
11173	  lt_prog_compiler_static='-Bstatic'
11174	  ;;
11175	esac
11176	;;
11177      esac
11178      ;;
11179
11180    newsos6)
11181      lt_prog_compiler_pic='-KPIC'
11182      lt_prog_compiler_static='-Bstatic'
11183      ;;
11184
11185    *nto* | *qnx*)
11186      # QNX uses GNU C++, but need to define -shared option too, otherwise
11187      # it will coredump.
11188      lt_prog_compiler_pic='-fPIC -shared'
11189      ;;
11190
11191    osf3* | osf4* | osf5*)
11192      lt_prog_compiler_wl='-Wl,'
11193      # All OSF/1 code is PIC.
11194      lt_prog_compiler_static='-non_shared'
11195      ;;
11196
11197    rdos*)
11198      lt_prog_compiler_static='-non_shared'
11199      ;;
11200
11201    solaris*)
11202      lt_prog_compiler_pic='-KPIC'
11203      lt_prog_compiler_static='-Bstatic'
11204      case $cc_basename in
11205      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11206	lt_prog_compiler_wl='-Qoption ld ';;
11207      *)
11208	lt_prog_compiler_wl='-Wl,';;
11209      esac
11210      ;;
11211
11212    sunos4*)
11213      lt_prog_compiler_wl='-Qoption ld '
11214      lt_prog_compiler_pic='-PIC'
11215      lt_prog_compiler_static='-Bstatic'
11216      ;;
11217
11218    sysv4 | sysv4.2uw2* | sysv4.3*)
11219      lt_prog_compiler_wl='-Wl,'
11220      lt_prog_compiler_pic='-KPIC'
11221      lt_prog_compiler_static='-Bstatic'
11222      ;;
11223
11224    sysv4*MP*)
11225      if test -d /usr/nec; then
11226	lt_prog_compiler_pic='-Kconform_pic'
11227	lt_prog_compiler_static='-Bstatic'
11228      fi
11229      ;;
11230
11231    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11232      lt_prog_compiler_wl='-Wl,'
11233      lt_prog_compiler_pic='-KPIC'
11234      lt_prog_compiler_static='-Bstatic'
11235      ;;
11236
11237    unicos*)
11238      lt_prog_compiler_wl='-Wl,'
11239      lt_prog_compiler_can_build_shared=no
11240      ;;
11241
11242    uts4*)
11243      lt_prog_compiler_pic='-pic'
11244      lt_prog_compiler_static='-Bstatic'
11245      ;;
11246
11247    *)
11248      lt_prog_compiler_can_build_shared=no
11249      ;;
11250    esac
11251  fi
11252
11253case $host_os in
11254  # For platforms that do not support PIC, -DPIC is meaningless:
11255  *djgpp*)
11256    lt_prog_compiler_pic=
11257    ;;
11258  *)
11259    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11260    ;;
11261esac
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11264$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11265if ${lt_cv_prog_compiler_pic+:} false; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11269fi
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11271$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11272lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11273
11274#
11275# Check to make sure the PIC flag actually works.
11276#
11277if test -n "$lt_prog_compiler_pic"; then
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11279$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11280if ${lt_cv_prog_compiler_pic_works+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  lt_cv_prog_compiler_pic_works=no
11284   ac_outfile=conftest.$ac_objext
11285   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11286   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11287   # Insert the option either (1) after the last *FLAGS variable, or
11288   # (2) before a word containing "conftest.", or (3) at the end.
11289   # Note that $ac_compile itself does not contain backslashes and begins
11290   # with a dollar sign (not a hyphen), so the echo should work correctly.
11291   # The option is referenced via a variable to avoid confusing sed.
11292   lt_compile=`echo "$ac_compile" | $SED \
11293   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11294   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11295   -e 's:$: $lt_compiler_flag:'`
11296   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11297   (eval "$lt_compile" 2>conftest.err)
11298   ac_status=$?
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   if (exit $ac_status) && test -s "$ac_outfile"; then
11302     # The compiler can only warn and ignore the option if not recognized
11303     # So say no if there are warnings other than the usual output.
11304     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11305     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11306     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11307       lt_cv_prog_compiler_pic_works=yes
11308     fi
11309   fi
11310   $RM conftest*
11311
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11314$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11315
11316if test yes = "$lt_cv_prog_compiler_pic_works"; then
11317    case $lt_prog_compiler_pic in
11318     "" | " "*) ;;
11319     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11320     esac
11321else
11322    lt_prog_compiler_pic=
11323     lt_prog_compiler_can_build_shared=no
11324fi
11325
11326fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338#
11339# Check to make sure the static flag actually works.
11340#
11341wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11343$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11344if ${lt_cv_prog_compiler_static_works+:} false; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347  lt_cv_prog_compiler_static_works=no
11348   save_LDFLAGS=$LDFLAGS
11349   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11350   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11351   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11352     # The linker can only warn and ignore the option if not recognized
11353     # So say no if there are warnings
11354     if test -s conftest.err; then
11355       # Append any errors to the config.log.
11356       cat conftest.err 1>&5
11357       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11358       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11359       if diff conftest.exp conftest.er2 >/dev/null; then
11360         lt_cv_prog_compiler_static_works=yes
11361       fi
11362     else
11363       lt_cv_prog_compiler_static_works=yes
11364     fi
11365   fi
11366   $RM -r conftest*
11367   LDFLAGS=$save_LDFLAGS
11368
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11371$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11372
11373if test yes = "$lt_cv_prog_compiler_static_works"; then
11374    :
11375else
11376    lt_prog_compiler_static=
11377fi
11378
11379
11380
11381
11382
11383
11384
11385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11386$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11387if ${lt_cv_prog_compiler_c_o+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  lt_cv_prog_compiler_c_o=no
11391   $RM -r conftest 2>/dev/null
11392   mkdir conftest
11393   cd conftest
11394   mkdir out
11395   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11396
11397   lt_compiler_flag="-o out/conftest2.$ac_objext"
11398   # Insert the option either (1) after the last *FLAGS variable, or
11399   # (2) before a word containing "conftest.", or (3) at the end.
11400   # Note that $ac_compile itself does not contain backslashes and begins
11401   # with a dollar sign (not a hyphen), so the echo should work correctly.
11402   lt_compile=`echo "$ac_compile" | $SED \
11403   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11404   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11405   -e 's:$: $lt_compiler_flag:'`
11406   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11407   (eval "$lt_compile" 2>out/conftest.err)
11408   ac_status=$?
11409   cat out/conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11412   then
11413     # The compiler can only warn and ignore the option if not recognized
11414     # So say no if there are warnings
11415     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11416     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11417     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11418       lt_cv_prog_compiler_c_o=yes
11419     fi
11420   fi
11421   chmod u+w . 2>&5
11422   $RM conftest*
11423   # SGI C++ compiler will create directory out/ii_files/ for
11424   # template instantiation
11425   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11426   $RM out/* && rmdir out
11427   cd ..
11428   $RM -r conftest
11429   $RM conftest*
11430
11431fi
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11433$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11434
11435
11436
11437
11438
11439
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11442if ${lt_cv_prog_compiler_c_o+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  lt_cv_prog_compiler_c_o=no
11446   $RM -r conftest 2>/dev/null
11447   mkdir conftest
11448   cd conftest
11449   mkdir out
11450   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11451
11452   lt_compiler_flag="-o out/conftest2.$ac_objext"
11453   # Insert the option either (1) after the last *FLAGS variable, or
11454   # (2) before a word containing "conftest.", or (3) at the end.
11455   # Note that $ac_compile itself does not contain backslashes and begins
11456   # with a dollar sign (not a hyphen), so the echo should work correctly.
11457   lt_compile=`echo "$ac_compile" | $SED \
11458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11460   -e 's:$: $lt_compiler_flag:'`
11461   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11462   (eval "$lt_compile" 2>out/conftest.err)
11463   ac_status=$?
11464   cat out/conftest.err >&5
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11467   then
11468     # The compiler can only warn and ignore the option if not recognized
11469     # So say no if there are warnings
11470     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11471     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11472     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11473       lt_cv_prog_compiler_c_o=yes
11474     fi
11475   fi
11476   chmod u+w . 2>&5
11477   $RM conftest*
11478   # SGI C++ compiler will create directory out/ii_files/ for
11479   # template instantiation
11480   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11481   $RM out/* && rmdir out
11482   cd ..
11483   $RM -r conftest
11484   $RM conftest*
11485
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11488$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11489
11490
11491
11492
11493hard_links=nottested
11494if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11495  # do not overwrite the value of need_locks provided by the user
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11497$as_echo_n "checking if we can lock with hard links... " >&6; }
11498  hard_links=yes
11499  $RM conftest*
11500  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11501  touch conftest.a
11502  ln conftest.a conftest.b 2>&5 || hard_links=no
11503  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11505$as_echo "$hard_links" >&6; }
11506  if test no = "$hard_links"; then
11507    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11508$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11509    need_locks=warn
11510  fi
11511else
11512  need_locks=no
11513fi
11514
11515
11516
11517
11518
11519
11520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11521$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11522
11523  runpath_var=
11524  allow_undefined_flag=
11525  always_export_symbols=no
11526  archive_cmds=
11527  archive_expsym_cmds=
11528  compiler_needs_object=no
11529  enable_shared_with_static_runtimes=no
11530  export_dynamic_flag_spec=
11531  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11532  hardcode_automatic=no
11533  hardcode_direct=no
11534  hardcode_direct_absolute=no
11535  hardcode_libdir_flag_spec=
11536  hardcode_libdir_separator=
11537  hardcode_minus_L=no
11538  hardcode_shlibpath_var=unsupported
11539  inherit_rpath=no
11540  link_all_deplibs=unknown
11541  module_cmds=
11542  module_expsym_cmds=
11543  old_archive_from_new_cmds=
11544  old_archive_from_expsyms_cmds=
11545  thread_safe_flag_spec=
11546  whole_archive_flag_spec=
11547  # include_expsyms should be a list of space-separated symbols to be *always*
11548  # included in the symbol list
11549  include_expsyms=
11550  # exclude_expsyms can be an extended regexp of symbols to exclude
11551  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11552  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11553  # as well as any symbol that contains 'd'.
11554  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11555  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11556  # platforms (ab)use it in PIC code, but their linkers get confused if
11557  # the symbol is explicitly referenced.  Since portable code cannot
11558  # rely on this symbol name, it's probably fine to never include it in
11559  # preloaded symbol tables.
11560  # Exclude shared library initialization/finalization symbols.
11561  extract_expsyms_cmds=
11562
11563  case $host_os in
11564  cygwin* | mingw* | pw32* | cegcc*)
11565    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11566    # When not using gcc, we currently assume that we are using
11567    # Microsoft Visual C++.
11568    if test yes != "$GCC"; then
11569      with_gnu_ld=no
11570    fi
11571    ;;
11572  interix*)
11573    # we just hope/assume this is gcc and not c89 (= MSVC++)
11574    with_gnu_ld=yes
11575    ;;
11576  openbsd* | bitrig*)
11577    with_gnu_ld=no
11578    ;;
11579  esac
11580
11581  ld_shlibs=yes
11582
11583  # On some targets, GNU ld is compatible enough with the native linker
11584  # that we're better off using the native interface for both.
11585  lt_use_gnu_ld_interface=no
11586  if test yes = "$with_gnu_ld"; then
11587    case $host_os in
11588      aix*)
11589	# The AIX port of GNU ld has always aspired to compatibility
11590	# with the native linker.  However, as the warning in the GNU ld
11591	# block says, versions before 2.19.5* couldn't really create working
11592	# shared libraries, regardless of the interface used.
11593	case `$LD -v 2>&1` in
11594	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11595	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11596	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11597	  *)
11598	    lt_use_gnu_ld_interface=yes
11599	    ;;
11600	esac
11601	;;
11602      *)
11603	lt_use_gnu_ld_interface=yes
11604	;;
11605    esac
11606  fi
11607
11608  if test yes = "$lt_use_gnu_ld_interface"; then
11609    # If archive_cmds runs LD, not CC, wlarc should be empty
11610    wlarc='$wl'
11611
11612    # Set some defaults for GNU ld with shared library support. These
11613    # are reset later if shared libraries are not supported. Putting them
11614    # here allows them to be overridden if necessary.
11615    runpath_var=LD_RUN_PATH
11616    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11617    export_dynamic_flag_spec='$wl--export-dynamic'
11618    # ancient GNU ld didn't support --whole-archive et. al.
11619    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11620      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11621    else
11622      whole_archive_flag_spec=
11623    fi
11624    supports_anon_versioning=no
11625    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11626      *GNU\ gold*) supports_anon_versioning=yes ;;
11627      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11628      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11629      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11630      *\ 2.11.*) ;; # other 2.11 versions
11631      *) supports_anon_versioning=yes ;;
11632    esac
11633
11634    # See if GNU ld supports shared libraries.
11635    case $host_os in
11636    aix[3-9]*)
11637      # On AIX/PPC, the GNU linker is very broken
11638      if test ia64 != "$host_cpu"; then
11639	ld_shlibs=no
11640	cat <<_LT_EOF 1>&2
11641
11642*** Warning: the GNU linker, at least up to release 2.19, is reported
11643*** to be unable to reliably create shared libraries on AIX.
11644*** Therefore, libtool is disabling shared libraries support.  If you
11645*** really care for shared libraries, you may want to install binutils
11646*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11647*** You will then need to restart the configuration process.
11648
11649_LT_EOF
11650      fi
11651      ;;
11652
11653    amigaos*)
11654      case $host_cpu in
11655      powerpc)
11656            # see comment about AmigaOS4 .so support
11657            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11658            archive_expsym_cmds=''
11659        ;;
11660      m68k)
11661            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)'
11662            hardcode_libdir_flag_spec='-L$libdir'
11663            hardcode_minus_L=yes
11664        ;;
11665      esac
11666      ;;
11667
11668    beos*)
11669      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670	allow_undefined_flag=unsupported
11671	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11672	# support --undefined.  This deserves some investigation.  FIXME
11673	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11674      else
11675	ld_shlibs=no
11676      fi
11677      ;;
11678
11679    cygwin* | mingw* | pw32* | cegcc*)
11680      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11681      # as there is no search path for DLLs.
11682      hardcode_libdir_flag_spec='-L$libdir'
11683      export_dynamic_flag_spec='$wl--export-all-symbols'
11684      allow_undefined_flag=unsupported
11685      always_export_symbols=no
11686      enable_shared_with_static_runtimes=yes
11687      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'
11688      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11689
11690      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11691        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11692	# If the export-symbols file already is a .def file, use it as
11693	# is; otherwise, prepend EXPORTS...
11694	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11695          cp $export_symbols $output_objdir/$soname.def;
11696        else
11697          echo EXPORTS > $output_objdir/$soname.def;
11698          cat $export_symbols >> $output_objdir/$soname.def;
11699        fi~
11700        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11701      else
11702	ld_shlibs=no
11703      fi
11704      ;;
11705
11706    haiku*)
11707      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11708      link_all_deplibs=yes
11709      ;;
11710
11711    os2*)
11712      hardcode_libdir_flag_spec='-L$libdir'
11713      hardcode_minus_L=yes
11714      allow_undefined_flag=unsupported
11715      shrext_cmds=.dll
11716      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11717	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11718	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11719	$ECHO EXPORTS >> $output_objdir/$libname.def~
11720	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11721	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11722	emximp -o $lib $output_objdir/$libname.def'
11723      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11724	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11725	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11726	$ECHO EXPORTS >> $output_objdir/$libname.def~
11727	prefix_cmds="$SED"~
11728	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11729	  prefix_cmds="$prefix_cmds -e 1d";
11730	fi~
11731	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11732	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11733	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11734	emximp -o $lib $output_objdir/$libname.def'
11735      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11736      enable_shared_with_static_runtimes=yes
11737      ;;
11738
11739    interix[3-9]*)
11740      hardcode_direct=no
11741      hardcode_shlibpath_var=no
11742      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11743      export_dynamic_flag_spec='$wl-E'
11744      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11745      # Instead, shared libraries are loaded at an image base (0x10000000 by
11746      # default) and relocated if they conflict, which is a slow very memory
11747      # consuming and fragmenting process.  To avoid this, we pick a random,
11748      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11749      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11750      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11751      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'
11752      ;;
11753
11754    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11755      tmp_diet=no
11756      if test linux-dietlibc = "$host_os"; then
11757	case $cc_basename in
11758	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11759	esac
11760      fi
11761      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11762	 && test no = "$tmp_diet"
11763      then
11764	tmp_addflag=' $pic_flag'
11765	tmp_sharedflag='-shared'
11766	case $cc_basename,$host_cpu in
11767        pgcc*)				# Portland Group C compiler
11768	  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'
11769	  tmp_addflag=' $pic_flag'
11770	  ;;
11771	pgf77* | pgf90* | pgf95* | pgfortran*)
11772					# Portland Group f77 and f90 compilers
11773	  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'
11774	  tmp_addflag=' $pic_flag -Mnomain' ;;
11775	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11776	  tmp_addflag=' -i_dynamic' ;;
11777	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11778	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11779	ifc* | ifort*)			# Intel Fortran compiler
11780	  tmp_addflag=' -nofor_main' ;;
11781	lf95*)				# Lahey Fortran 8.1
11782	  whole_archive_flag_spec=
11783	  tmp_sharedflag='--shared' ;;
11784        nagfor*)                        # NAGFOR 5.3
11785          tmp_sharedflag='-Wl,-shared' ;;
11786	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11787	  tmp_sharedflag='-qmkshrobj'
11788	  tmp_addflag= ;;
11789	nvcc*)	# Cuda Compiler Driver 2.2
11790	  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'
11791	  compiler_needs_object=yes
11792	  ;;
11793	esac
11794	case `$CC -V 2>&1 | sed 5q` in
11795	*Sun\ C*)			# Sun C 5.9
11796	  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'
11797	  compiler_needs_object=yes
11798	  tmp_sharedflag='-G' ;;
11799	*Sun\ F*)			# Sun Fortran 8.3
11800	  tmp_sharedflag='-G' ;;
11801	esac
11802	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11803
11804        if test yes = "$supports_anon_versioning"; then
11805          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11806            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11807            echo "local: *; };" >> $output_objdir/$libname.ver~
11808            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11809        fi
11810
11811	case $cc_basename in
11812	tcc*)
11813	  export_dynamic_flag_spec='-rdynamic'
11814	  ;;
11815	xlf* | bgf* | bgxlf* | mpixlf*)
11816	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11817	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11818	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11819	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11820	  if test yes = "$supports_anon_versioning"; then
11821	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11822              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11823              echo "local: *; };" >> $output_objdir/$libname.ver~
11824              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11825	  fi
11826	  ;;
11827	esac
11828      else
11829        ld_shlibs=no
11830      fi
11831      ;;
11832
11833    netbsd*)
11834      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11835	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11836	wlarc=
11837      else
11838	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11839	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11840      fi
11841      ;;
11842
11843    solaris*)
11844      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11845	ld_shlibs=no
11846	cat <<_LT_EOF 1>&2
11847
11848*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11849*** create shared libraries on Solaris systems.  Therefore, libtool
11850*** is disabling shared libraries support.  We urge you to upgrade GNU
11851*** binutils to release 2.9.1 or newer.  Another option is to modify
11852*** your PATH or compiler configuration so that the native linker is
11853*** used, and then restart.
11854
11855_LT_EOF
11856      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11857	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11858	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11859      else
11860	ld_shlibs=no
11861      fi
11862      ;;
11863
11864    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11865      case `$LD -v 2>&1` in
11866        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11867	ld_shlibs=no
11868	cat <<_LT_EOF 1>&2
11869
11870*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11871*** reliably create shared libraries on SCO systems.  Therefore, libtool
11872*** is disabling shared libraries support.  We urge you to upgrade GNU
11873*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11874*** your PATH or compiler configuration so that the native linker is
11875*** used, and then restart.
11876
11877_LT_EOF
11878	;;
11879	*)
11880	  # For security reasons, it is highly recommended that you always
11881	  # use absolute paths for naming shared libraries, and exclude the
11882	  # DT_RUNPATH tag from executables and libraries.  But doing so
11883	  # requires that you compile everything twice, which is a pain.
11884	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11885	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11886	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11887	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11888	  else
11889	    ld_shlibs=no
11890	  fi
11891	;;
11892      esac
11893      ;;
11894
11895    sunos4*)
11896      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11897      wlarc=
11898      hardcode_direct=yes
11899      hardcode_shlibpath_var=no
11900      ;;
11901
11902    *)
11903      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11904	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11905	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11906      else
11907	ld_shlibs=no
11908      fi
11909      ;;
11910    esac
11911
11912    if test no = "$ld_shlibs"; then
11913      runpath_var=
11914      hardcode_libdir_flag_spec=
11915      export_dynamic_flag_spec=
11916      whole_archive_flag_spec=
11917    fi
11918  else
11919    # PORTME fill in a description of your system's linker (not GNU ld)
11920    case $host_os in
11921    aix3*)
11922      allow_undefined_flag=unsupported
11923      always_export_symbols=yes
11924      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'
11925      # Note: this linker hardcodes the directories in LIBPATH if there
11926      # are no directories specified by -L.
11927      hardcode_minus_L=yes
11928      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11929	# Neither direct hardcoding nor static linking is supported with a
11930	# broken collect2.
11931	hardcode_direct=unsupported
11932      fi
11933      ;;
11934
11935    aix[4-9]*)
11936      if test ia64 = "$host_cpu"; then
11937	# On IA64, the linker does run time linking by default, so we don't
11938	# have to do anything special.
11939	aix_use_runtimelinking=no
11940	exp_sym_flag='-Bexport'
11941	no_entry_flag=
11942      else
11943	# If we're using GNU nm, then we don't want the "-C" option.
11944	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11945	# Without the "-l" option, or with the "-B" option, AIX nm treats
11946	# weak defined symbols like other global defined symbols, whereas
11947	# GNU nm marks them as "W".
11948	# While the 'weak' keyword is ignored in the Export File, we need
11949	# it in the Import File for the 'aix-soname' feature, so we have
11950	# to replace the "-B" option with "-P" for AIX nm.
11951	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11952	  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'
11953	else
11954	  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'
11955	fi
11956	aix_use_runtimelinking=no
11957
11958	# Test if we are trying to use run time linking or normal
11959	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11960	# have runtime linking enabled, and use it for executables.
11961	# For shared libraries, we enable/disable runtime linking
11962	# depending on the kind of the shared library created -
11963	# when "with_aix_soname,aix_use_runtimelinking" is:
11964	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11965	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11966	#            lib.a           static archive
11967	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11968	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11969	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11970	#            lib.a(lib.so.V) shared, rtl:no
11971	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11972	#            lib.a           static archive
11973	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11974	  for ld_flag in $LDFLAGS; do
11975	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11976	    aix_use_runtimelinking=yes
11977	    break
11978	  fi
11979	  done
11980	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11981	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11982	    # so we don't have lib.a shared libs to link our executables.
11983	    # We have to force runtime linking in this case.
11984	    aix_use_runtimelinking=yes
11985	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11986	  fi
11987	  ;;
11988	esac
11989
11990	exp_sym_flag='-bexport'
11991	no_entry_flag='-bnoentry'
11992      fi
11993
11994      # When large executables or shared objects are built, AIX ld can
11995      # have problems creating the table of contents.  If linking a library
11996      # or program results in "error TOC overflow" add -mminimal-toc to
11997      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11998      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11999
12000      archive_cmds=''
12001      hardcode_direct=yes
12002      hardcode_direct_absolute=yes
12003      hardcode_libdir_separator=':'
12004      link_all_deplibs=yes
12005      file_list_spec='$wl-f,'
12006      case $with_aix_soname,$aix_use_runtimelinking in
12007      aix,*) ;; # traditional, no import file
12008      svr4,* | *,yes) # use import file
12009	# The Import File defines what to hardcode.
12010	hardcode_direct=no
12011	hardcode_direct_absolute=no
12012	;;
12013      esac
12014
12015      if test yes = "$GCC"; then
12016	case $host_os in aix4.[012]|aix4.[012].*)
12017	# We only want to do this on AIX 4.2 and lower, the check
12018	# below for broken collect2 doesn't work under 4.3+
12019	  collect2name=`$CC -print-prog-name=collect2`
12020	  if test -f "$collect2name" &&
12021	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12022	  then
12023	  # We have reworked collect2
12024	  :
12025	  else
12026	  # We have old collect2
12027	  hardcode_direct=unsupported
12028	  # It fails to find uninstalled libraries when the uninstalled
12029	  # path is not listed in the libpath.  Setting hardcode_minus_L
12030	  # to unsupported forces relinking
12031	  hardcode_minus_L=yes
12032	  hardcode_libdir_flag_spec='-L$libdir'
12033	  hardcode_libdir_separator=
12034	  fi
12035	  ;;
12036	esac
12037	shared_flag='-shared'
12038	if test yes = "$aix_use_runtimelinking"; then
12039	  shared_flag="$shared_flag "'$wl-G'
12040	fi
12041	# Need to ensure runtime linking is disabled for the traditional
12042	# shared library, or the linker may eventually find shared libraries
12043	# /with/ Import File - we do not want to mix them.
12044	shared_flag_aix='-shared'
12045	shared_flag_svr4='-shared $wl-G'
12046      else
12047	# not using gcc
12048	if test ia64 = "$host_cpu"; then
12049	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12050	# chokes on -Wl,-G. The following line is correct:
12051	  shared_flag='-G'
12052	else
12053	  if test yes = "$aix_use_runtimelinking"; then
12054	    shared_flag='$wl-G'
12055	  else
12056	    shared_flag='$wl-bM:SRE'
12057	  fi
12058	  shared_flag_aix='$wl-bM:SRE'
12059	  shared_flag_svr4='$wl-G'
12060	fi
12061      fi
12062
12063      export_dynamic_flag_spec='$wl-bexpall'
12064      # It seems that -bexpall does not export symbols beginning with
12065      # underscore (_), so it is better to generate a list of symbols to export.
12066      always_export_symbols=yes
12067      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12068	# Warning - without using the other runtime loading flags (-brtl),
12069	# -berok will link without error, but may produce a broken library.
12070	allow_undefined_flag='-berok'
12071        # Determine the default libpath from the value encoded in an
12072        # empty executable.
12073        if test set = "${lt_cv_aix_libpath+set}"; then
12074  aix_libpath=$lt_cv_aix_libpath
12075else
12076  if ${lt_cv_aix_libpath_+:} false; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h.  */
12081
12082int
12083main ()
12084{
12085
12086  ;
12087  return 0;
12088}
12089_ACEOF
12090if ac_fn_c_try_link "$LINENO"; then :
12091
12092  lt_aix_libpath_sed='
12093      /Import File Strings/,/^$/ {
12094	  /^0/ {
12095	      s/^0  *\([^ ]*\) *$/\1/
12096	      p
12097	  }
12098      }'
12099  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12100  # Check for a 64-bit object if we didn't find anything.
12101  if test -z "$lt_cv_aix_libpath_"; then
12102    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12103  fi
12104fi
12105rm -f core conftest.err conftest.$ac_objext \
12106    conftest$ac_exeext conftest.$ac_ext
12107  if test -z "$lt_cv_aix_libpath_"; then
12108    lt_cv_aix_libpath_=/usr/lib:/lib
12109  fi
12110
12111fi
12112
12113  aix_libpath=$lt_cv_aix_libpath_
12114fi
12115
12116        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12117        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
12118      else
12119	if test ia64 = "$host_cpu"; then
12120	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12121	  allow_undefined_flag="-z nodefs"
12122	  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"
12123	else
12124	 # Determine the default libpath from the value encoded in an
12125	 # empty executable.
12126	 if test set = "${lt_cv_aix_libpath+set}"; then
12127  aix_libpath=$lt_cv_aix_libpath
12128else
12129  if ${lt_cv_aix_libpath_+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h.  */
12134
12135int
12136main ()
12137{
12138
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143if ac_fn_c_try_link "$LINENO"; then :
12144
12145  lt_aix_libpath_sed='
12146      /Import File Strings/,/^$/ {
12147	  /^0/ {
12148	      s/^0  *\([^ ]*\) *$/\1/
12149	      p
12150	  }
12151      }'
12152  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12153  # Check for a 64-bit object if we didn't find anything.
12154  if test -z "$lt_cv_aix_libpath_"; then
12155    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12156  fi
12157fi
12158rm -f core conftest.err conftest.$ac_objext \
12159    conftest$ac_exeext conftest.$ac_ext
12160  if test -z "$lt_cv_aix_libpath_"; then
12161    lt_cv_aix_libpath_=/usr/lib:/lib
12162  fi
12163
12164fi
12165
12166  aix_libpath=$lt_cv_aix_libpath_
12167fi
12168
12169	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12170	  # Warning - without using the other run time loading flags,
12171	  # -berok will link without error, but may produce a broken library.
12172	  no_undefined_flag=' $wl-bernotok'
12173	  allow_undefined_flag=' $wl-berok'
12174	  if test yes = "$with_gnu_ld"; then
12175	    # We only use this code for GNU lds that support --whole-archive.
12176	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12177	  else
12178	    # Exported symbols can be pulled into shared objects from archives
12179	    whole_archive_flag_spec='$convenience'
12180	  fi
12181	  archive_cmds_need_lc=yes
12182	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12183	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12184	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12185	  if test svr4 != "$with_aix_soname"; then
12186	    # This is similar to how AIX traditionally builds its shared libraries.
12187	    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'
12188	  fi
12189	  if test aix != "$with_aix_soname"; then
12190	    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'
12191	  else
12192	    # used by -dlpreopen to get the symbols
12193	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12194	  fi
12195	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12196	fi
12197      fi
12198      ;;
12199
12200    amigaos*)
12201      case $host_cpu in
12202      powerpc)
12203            # see comment about AmigaOS4 .so support
12204            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12205            archive_expsym_cmds=''
12206        ;;
12207      m68k)
12208            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)'
12209            hardcode_libdir_flag_spec='-L$libdir'
12210            hardcode_minus_L=yes
12211        ;;
12212      esac
12213      ;;
12214
12215    bsdi[45]*)
12216      export_dynamic_flag_spec=-rdynamic
12217      ;;
12218
12219    cygwin* | mingw* | pw32* | cegcc*)
12220      # When not using gcc, we currently assume that we are using
12221      # Microsoft Visual C++.
12222      # hardcode_libdir_flag_spec is actually meaningless, as there is
12223      # no search path for DLLs.
12224      case $cc_basename in
12225      cl*)
12226	# Native MSVC
12227	hardcode_libdir_flag_spec=' '
12228	allow_undefined_flag=unsupported
12229	always_export_symbols=yes
12230	file_list_spec='@'
12231	# Tell ltmain to make .lib files, not .a files.
12232	libext=lib
12233	# Tell ltmain to make .dll files, not .so files.
12234	shrext_cmds=.dll
12235	# FIXME: Setting linknames here is a bad hack.
12236	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12237	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12238            cp "$export_symbols" "$output_objdir/$soname.def";
12239            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12240          else
12241            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12242          fi~
12243          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12244          linknames='
12245	# The linker will not automatically build a static lib if we build a DLL.
12246	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12247	enable_shared_with_static_runtimes=yes
12248	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12249	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12250	# Don't use ranlib
12251	old_postinstall_cmds='chmod 644 $oldlib'
12252	postlink_cmds='lt_outputfile="@OUTPUT@"~
12253          lt_tool_outputfile="@TOOL_OUTPUT@"~
12254          case $lt_outputfile in
12255            *.exe|*.EXE) ;;
12256            *)
12257              lt_outputfile=$lt_outputfile.exe
12258              lt_tool_outputfile=$lt_tool_outputfile.exe
12259              ;;
12260          esac~
12261          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12262            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12263            $RM "$lt_outputfile.manifest";
12264          fi'
12265	;;
12266      *)
12267	# Assume MSVC wrapper
12268	hardcode_libdir_flag_spec=' '
12269	allow_undefined_flag=unsupported
12270	# Tell ltmain to make .lib files, not .a files.
12271	libext=lib
12272	# Tell ltmain to make .dll files, not .so files.
12273	shrext_cmds=.dll
12274	# FIXME: Setting linknames here is a bad hack.
12275	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12276	# The linker will automatically build a .lib file if we build a DLL.
12277	old_archive_from_new_cmds='true'
12278	# FIXME: Should let the user specify the lib program.
12279	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12280	enable_shared_with_static_runtimes=yes
12281	;;
12282      esac
12283      ;;
12284
12285    darwin* | rhapsody*)
12286
12287
12288  archive_cmds_need_lc=no
12289  hardcode_direct=no
12290  hardcode_automatic=yes
12291  hardcode_shlibpath_var=unsupported
12292  if test yes = "$lt_cv_ld_force_load"; then
12293    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\"`'
12294
12295  else
12296    whole_archive_flag_spec=''
12297  fi
12298  link_all_deplibs=yes
12299  allow_undefined_flag=$_lt_dar_allow_undefined
12300  case $cc_basename in
12301     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12302     *) _lt_dar_can_shared=$GCC ;;
12303  esac
12304  if test yes = "$_lt_dar_can_shared"; then
12305    output_verbose_link_cmd=func_echo_all
12306    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12307    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12308    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"
12309    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"
12310
12311  else
12312  ld_shlibs=no
12313  fi
12314
12315      ;;
12316
12317    dgux*)
12318      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12319      hardcode_libdir_flag_spec='-L$libdir'
12320      hardcode_shlibpath_var=no
12321      ;;
12322
12323    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12324    # support.  Future versions do this automatically, but an explicit c++rt0.o
12325    # does not break anything, and helps significantly (at the cost of a little
12326    # extra space).
12327    freebsd2.2*)
12328      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12329      hardcode_libdir_flag_spec='-R$libdir'
12330      hardcode_direct=yes
12331      hardcode_shlibpath_var=no
12332      ;;
12333
12334    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12335    freebsd2.*)
12336      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12337      hardcode_direct=yes
12338      hardcode_minus_L=yes
12339      hardcode_shlibpath_var=no
12340      ;;
12341
12342    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12343    freebsd* | dragonfly*)
12344      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12345      hardcode_libdir_flag_spec='-R$libdir'
12346      hardcode_direct=yes
12347      hardcode_shlibpath_var=no
12348      ;;
12349
12350    hpux9*)
12351      if test yes = "$GCC"; then
12352	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'
12353      else
12354	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'
12355      fi
12356      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12357      hardcode_libdir_separator=:
12358      hardcode_direct=yes
12359
12360      # hardcode_minus_L: Not really in the search PATH,
12361      # but as the default location of the library.
12362      hardcode_minus_L=yes
12363      export_dynamic_flag_spec='$wl-E'
12364      ;;
12365
12366    hpux10*)
12367      if test yes,no = "$GCC,$with_gnu_ld"; then
12368	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12369      else
12370	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12371      fi
12372      if test no = "$with_gnu_ld"; then
12373	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12374	hardcode_libdir_separator=:
12375	hardcode_direct=yes
12376	hardcode_direct_absolute=yes
12377	export_dynamic_flag_spec='$wl-E'
12378	# hardcode_minus_L: Not really in the search PATH,
12379	# but as the default location of the library.
12380	hardcode_minus_L=yes
12381      fi
12382      ;;
12383
12384    hpux11*)
12385      if test yes,no = "$GCC,$with_gnu_ld"; then
12386	case $host_cpu in
12387	hppa*64*)
12388	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12389	  ;;
12390	ia64*)
12391	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12392	  ;;
12393	*)
12394	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12395	  ;;
12396	esac
12397      else
12398	case $host_cpu in
12399	hppa*64*)
12400	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12401	  ;;
12402	ia64*)
12403	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12404	  ;;
12405	*)
12406
12407	  # Older versions of the 11.00 compiler do not understand -b yet
12408	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12409	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12410$as_echo_n "checking if $CC understands -b... " >&6; }
12411if ${lt_cv_prog_compiler__b+:} false; then :
12412  $as_echo_n "(cached) " >&6
12413else
12414  lt_cv_prog_compiler__b=no
12415   save_LDFLAGS=$LDFLAGS
12416   LDFLAGS="$LDFLAGS -b"
12417   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12418   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12419     # The linker can only warn and ignore the option if not recognized
12420     # So say no if there are warnings
12421     if test -s conftest.err; then
12422       # Append any errors to the config.log.
12423       cat conftest.err 1>&5
12424       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12425       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12426       if diff conftest.exp conftest.er2 >/dev/null; then
12427         lt_cv_prog_compiler__b=yes
12428       fi
12429     else
12430       lt_cv_prog_compiler__b=yes
12431     fi
12432   fi
12433   $RM -r conftest*
12434   LDFLAGS=$save_LDFLAGS
12435
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12438$as_echo "$lt_cv_prog_compiler__b" >&6; }
12439
12440if test yes = "$lt_cv_prog_compiler__b"; then
12441    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12442else
12443    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12444fi
12445
12446	  ;;
12447	esac
12448      fi
12449      if test no = "$with_gnu_ld"; then
12450	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12451	hardcode_libdir_separator=:
12452
12453	case $host_cpu in
12454	hppa*64*|ia64*)
12455	  hardcode_direct=no
12456	  hardcode_shlibpath_var=no
12457	  ;;
12458	*)
12459	  hardcode_direct=yes
12460	  hardcode_direct_absolute=yes
12461	  export_dynamic_flag_spec='$wl-E'
12462
12463	  # hardcode_minus_L: Not really in the search PATH,
12464	  # but as the default location of the library.
12465	  hardcode_minus_L=yes
12466	  ;;
12467	esac
12468      fi
12469      ;;
12470
12471    irix5* | irix6* | nonstopux*)
12472      if test yes = "$GCC"; then
12473	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'
12474	# Try to use the -exported_symbol ld option, if it does not
12475	# work, assume that -exports_file does not work either and
12476	# implicitly export all symbols.
12477	# This should be the same for all languages, so no per-tag cache variable.
12478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12479$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12480if ${lt_cv_irix_exported_symbol+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  save_LDFLAGS=$LDFLAGS
12484	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12485	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487int foo (void) { return 0; }
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490  lt_cv_irix_exported_symbol=yes
12491else
12492  lt_cv_irix_exported_symbol=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495    conftest$ac_exeext conftest.$ac_ext
12496           LDFLAGS=$save_LDFLAGS
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12499$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12500	if test yes = "$lt_cv_irix_exported_symbol"; then
12501          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'
12502	fi
12503      else
12504	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'
12505	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'
12506      fi
12507      archive_cmds_need_lc='no'
12508      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12509      hardcode_libdir_separator=:
12510      inherit_rpath=yes
12511      link_all_deplibs=yes
12512      ;;
12513
12514    linux*)
12515      case $cc_basename in
12516      tcc*)
12517	# Fabrice Bellard et al's Tiny C Compiler
12518	ld_shlibs=yes
12519	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12520	;;
12521      esac
12522      ;;
12523
12524    netbsd*)
12525      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12526	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12527      else
12528	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12529      fi
12530      hardcode_libdir_flag_spec='-R$libdir'
12531      hardcode_direct=yes
12532      hardcode_shlibpath_var=no
12533      ;;
12534
12535    newsos6)
12536      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12537      hardcode_direct=yes
12538      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12539      hardcode_libdir_separator=:
12540      hardcode_shlibpath_var=no
12541      ;;
12542
12543    *nto* | *qnx*)
12544      ;;
12545
12546    openbsd* | bitrig*)
12547      if test -f /usr/libexec/ld.so; then
12548	hardcode_direct=yes
12549	hardcode_shlibpath_var=no
12550	hardcode_direct_absolute=yes
12551	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12552	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12554	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12555	  export_dynamic_flag_spec='$wl-E'
12556	else
12557	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12558	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12559	fi
12560      else
12561	ld_shlibs=no
12562      fi
12563      ;;
12564
12565    os2*)
12566      hardcode_libdir_flag_spec='-L$libdir'
12567      hardcode_minus_L=yes
12568      allow_undefined_flag=unsupported
12569      shrext_cmds=.dll
12570      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12571	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12572	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12573	$ECHO EXPORTS >> $output_objdir/$libname.def~
12574	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12575	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12576	emximp -o $lib $output_objdir/$libname.def'
12577      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12578	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12579	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12580	$ECHO EXPORTS >> $output_objdir/$libname.def~
12581	prefix_cmds="$SED"~
12582	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12583	  prefix_cmds="$prefix_cmds -e 1d";
12584	fi~
12585	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12586	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12587	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12588	emximp -o $lib $output_objdir/$libname.def'
12589      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12590      enable_shared_with_static_runtimes=yes
12591      ;;
12592
12593    osf3*)
12594      if test yes = "$GCC"; then
12595	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12596	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'
12597      else
12598	allow_undefined_flag=' -expect_unresolved \*'
12599	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'
12600      fi
12601      archive_cmds_need_lc='no'
12602      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12603      hardcode_libdir_separator=:
12604      ;;
12605
12606    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12607      if test yes = "$GCC"; then
12608	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12609	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'
12610	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12611      else
12612	allow_undefined_flag=' -expect_unresolved \*'
12613	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'
12614	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~
12615          $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'
12616
12617	# Both c and cxx compiler support -rpath directly
12618	hardcode_libdir_flag_spec='-rpath $libdir'
12619      fi
12620      archive_cmds_need_lc='no'
12621      hardcode_libdir_separator=:
12622      ;;
12623
12624    solaris*)
12625      no_undefined_flag=' -z defs'
12626      if test yes = "$GCC"; then
12627	wlarc='$wl'
12628	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12629	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12630          $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'
12631      else
12632	case `$CC -V 2>&1` in
12633	*"Compilers 5.0"*)
12634	  wlarc=''
12635	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12636	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12637            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12638	  ;;
12639	*)
12640	  wlarc='$wl'
12641	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12642	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12643            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12644	  ;;
12645	esac
12646      fi
12647      hardcode_libdir_flag_spec='-R$libdir'
12648      hardcode_shlibpath_var=no
12649      case $host_os in
12650      solaris2.[0-5] | solaris2.[0-5].*) ;;
12651      *)
12652	# The compiler driver will combine and reorder linker options,
12653	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12654	# but is careful enough not to reorder.
12655	# Supported since Solaris 2.6 (maybe 2.5.1?)
12656	if test yes = "$GCC"; then
12657	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12658	else
12659	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12660	fi
12661	;;
12662      esac
12663      link_all_deplibs=yes
12664      ;;
12665
12666    sunos4*)
12667      if test sequent = "$host_vendor"; then
12668	# Use $CC to link under sequent, because it throws in some extra .o
12669	# files that make .init and .fini sections work.
12670	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12671      else
12672	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12673      fi
12674      hardcode_libdir_flag_spec='-L$libdir'
12675      hardcode_direct=yes
12676      hardcode_minus_L=yes
12677      hardcode_shlibpath_var=no
12678      ;;
12679
12680    sysv4)
12681      case $host_vendor in
12682	sni)
12683	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12684	  hardcode_direct=yes # is this really true???
12685	;;
12686	siemens)
12687	  ## LD is ld it makes a PLAMLIB
12688	  ## CC just makes a GrossModule.
12689	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12690	  reload_cmds='$CC -r -o $output$reload_objs'
12691	  hardcode_direct=no
12692        ;;
12693	motorola)
12694	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12695	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12696	;;
12697      esac
12698      runpath_var='LD_RUN_PATH'
12699      hardcode_shlibpath_var=no
12700      ;;
12701
12702    sysv4.3*)
12703      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12704      hardcode_shlibpath_var=no
12705      export_dynamic_flag_spec='-Bexport'
12706      ;;
12707
12708    sysv4*MP*)
12709      if test -d /usr/nec; then
12710	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711	hardcode_shlibpath_var=no
12712	runpath_var=LD_RUN_PATH
12713	hardcode_runpath_var=yes
12714	ld_shlibs=yes
12715      fi
12716      ;;
12717
12718    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12719      no_undefined_flag='$wl-z,text'
12720      archive_cmds_need_lc=no
12721      hardcode_shlibpath_var=no
12722      runpath_var='LD_RUN_PATH'
12723
12724      if test yes = "$GCC"; then
12725	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12726	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727      else
12728	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730      fi
12731      ;;
12732
12733    sysv5* | sco3.2v5* | sco5v6*)
12734      # Note: We CANNOT use -z defs as we might desire, because we do not
12735      # link with -lc, and that would cause any symbols used from libc to
12736      # always be unresolved, which means just about no library would
12737      # ever link correctly.  If we're not using GNU ld we use -z text
12738      # though, which does catch some bad symbols but isn't as heavy-handed
12739      # as -z defs.
12740      no_undefined_flag='$wl-z,text'
12741      allow_undefined_flag='$wl-z,nodefs'
12742      archive_cmds_need_lc=no
12743      hardcode_shlibpath_var=no
12744      hardcode_libdir_flag_spec='$wl-R,$libdir'
12745      hardcode_libdir_separator=':'
12746      link_all_deplibs=yes
12747      export_dynamic_flag_spec='$wl-Bexport'
12748      runpath_var='LD_RUN_PATH'
12749
12750      if test yes = "$GCC"; then
12751	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12752	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753      else
12754	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756      fi
12757      ;;
12758
12759    uts4*)
12760      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12761      hardcode_libdir_flag_spec='-L$libdir'
12762      hardcode_shlibpath_var=no
12763      ;;
12764
12765    *)
12766      ld_shlibs=no
12767      ;;
12768    esac
12769
12770    if test sni = "$host_vendor"; then
12771      case $host in
12772      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12773	export_dynamic_flag_spec='$wl-Blargedynsym'
12774	;;
12775      esac
12776    fi
12777  fi
12778
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12780$as_echo "$ld_shlibs" >&6; }
12781test no = "$ld_shlibs" && can_build_shared=no
12782
12783with_gnu_ld=$with_gnu_ld
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799#
12800# Do we need to explicitly link libc?
12801#
12802case "x$archive_cmds_need_lc" in
12803x|xyes)
12804  # Assume -lc should be added
12805  archive_cmds_need_lc=yes
12806
12807  if test yes,yes = "$GCC,$enable_shared"; then
12808    case $archive_cmds in
12809    *'~'*)
12810      # FIXME: we may have to deal with multi-command sequences.
12811      ;;
12812    '$CC '*)
12813      # Test whether the compiler implicitly links with -lc since on some
12814      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12815      # to ld, don't add -lc before -lgcc.
12816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12817$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12818if ${lt_cv_archive_cmds_need_lc+:} false; then :
12819  $as_echo_n "(cached) " >&6
12820else
12821  $RM conftest*
12822	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12823
12824	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825  (eval $ac_compile) 2>&5
12826  ac_status=$?
12827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828  test $ac_status = 0; } 2>conftest.err; then
12829	  soname=conftest
12830	  lib=conftest
12831	  libobjs=conftest.$ac_objext
12832	  deplibs=
12833	  wl=$lt_prog_compiler_wl
12834	  pic_flag=$lt_prog_compiler_pic
12835	  compiler_flags=-v
12836	  linker_flags=-v
12837	  verstring=
12838	  output_objdir=.
12839	  libname=conftest
12840	  lt_save_allow_undefined_flag=$allow_undefined_flag
12841	  allow_undefined_flag=
12842	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12843  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12844  ac_status=$?
12845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846  test $ac_status = 0; }
12847	  then
12848	    lt_cv_archive_cmds_need_lc=no
12849	  else
12850	    lt_cv_archive_cmds_need_lc=yes
12851	  fi
12852	  allow_undefined_flag=$lt_save_allow_undefined_flag
12853	else
12854	  cat conftest.err 1>&5
12855	fi
12856	$RM conftest*
12857
12858fi
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12860$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12861      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12862      ;;
12863    esac
12864  fi
12865  ;;
12866esac
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
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13020$as_echo_n "checking dynamic linker characteristics... " >&6; }
13021
13022if test yes = "$GCC"; then
13023  case $host_os in
13024    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13025    *) lt_awk_arg='/^libraries:/' ;;
13026  esac
13027  case $host_os in
13028    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13029    *) lt_sed_strip_eq='s|=/|/|g' ;;
13030  esac
13031  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13032  case $lt_search_path_spec in
13033  *\;*)
13034    # if the path contains ";" then we assume it to be the separator
13035    # otherwise default to the standard path separator (i.e. ":") - it is
13036    # assumed that no part of a normal pathname contains ";" but that should
13037    # okay in the real world where ";" in dirpaths is itself problematic.
13038    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13039    ;;
13040  *)
13041    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13042    ;;
13043  esac
13044  # Ok, now we have the path, separated by spaces, we can step through it
13045  # and add multilib dir if necessary...
13046  lt_tmp_lt_search_path_spec=
13047  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13048  # ...but if some path component already ends with the multilib dir we assume
13049  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13050  case "$lt_multi_os_dir; $lt_search_path_spec " in
13051  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13052    lt_multi_os_dir=
13053    ;;
13054  esac
13055  for lt_sys_path in $lt_search_path_spec; do
13056    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13057      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13058    elif test -n "$lt_multi_os_dir"; then
13059      test -d "$lt_sys_path" && \
13060	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13061    fi
13062  done
13063  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13064BEGIN {RS = " "; FS = "/|\n";} {
13065  lt_foo = "";
13066  lt_count = 0;
13067  for (lt_i = NF; lt_i > 0; lt_i--) {
13068    if ($lt_i != "" && $lt_i != ".") {
13069      if ($lt_i == "..") {
13070        lt_count++;
13071      } else {
13072        if (lt_count == 0) {
13073          lt_foo = "/" $lt_i lt_foo;
13074        } else {
13075          lt_count--;
13076        }
13077      }
13078    }
13079  }
13080  if (lt_foo != "") { lt_freq[lt_foo]++; }
13081  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13082}'`
13083  # AWK program above erroneously prepends '/' to C:/dos/paths
13084  # for these hosts.
13085  case $host_os in
13086    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13087      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13088  esac
13089  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13090else
13091  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13092fi
13093library_names_spec=
13094libname_spec='lib$name'
13095soname_spec=
13096shrext_cmds=.so
13097postinstall_cmds=
13098postuninstall_cmds=
13099finish_cmds=
13100finish_eval=
13101shlibpath_var=
13102shlibpath_overrides_runpath=unknown
13103version_type=none
13104dynamic_linker="$host_os ld.so"
13105sys_lib_dlsearch_path_spec="/lib /usr/lib"
13106need_lib_prefix=unknown
13107hardcode_into_libs=no
13108
13109# when you set need_version to no, make sure it does not cause -set_version
13110# flags to be left without arguments
13111need_version=unknown
13112
13113
13114
13115case $host_os in
13116aix3*)
13117  version_type=linux # correct to gnu/linux during the next big refactor
13118  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13119  shlibpath_var=LIBPATH
13120
13121  # AIX 3 has no versioning support, so we append a major version to the name.
13122  soname_spec='$libname$release$shared_ext$major'
13123  ;;
13124
13125aix[4-9]*)
13126  version_type=linux # correct to gnu/linux during the next big refactor
13127  need_lib_prefix=no
13128  need_version=no
13129  hardcode_into_libs=yes
13130  if test ia64 = "$host_cpu"; then
13131    # AIX 5 supports IA64
13132    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13133    shlibpath_var=LD_LIBRARY_PATH
13134  else
13135    # With GCC up to 2.95.x, collect2 would create an import file
13136    # for dependence libraries.  The import file would start with
13137    # the line '#! .'.  This would cause the generated library to
13138    # depend on '.', always an invalid library.  This was fixed in
13139    # development snapshots of GCC prior to 3.0.
13140    case $host_os in
13141      aix4 | aix4.[01] | aix4.[01].*)
13142      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13143	   echo ' yes '
13144	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13145	:
13146      else
13147	can_build_shared=no
13148      fi
13149      ;;
13150    esac
13151    # Using Import Files as archive members, it is possible to support
13152    # filename-based versioning of shared library archives on AIX. While
13153    # this would work for both with and without runtime linking, it will
13154    # prevent static linking of such archives. So we do filename-based
13155    # shared library versioning with .so extension only, which is used
13156    # when both runtime linking and shared linking is enabled.
13157    # Unfortunately, runtime linking may impact performance, so we do
13158    # not want this to be the default eventually. Also, we use the
13159    # versioned .so libs for executables only if there is the -brtl
13160    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13161    # To allow for filename-based versioning support, we need to create
13162    # libNAME.so.V as an archive file, containing:
13163    # *) an Import File, referring to the versioned filename of the
13164    #    archive as well as the shared archive member, telling the
13165    #    bitwidth (32 or 64) of that shared object, and providing the
13166    #    list of exported symbols of that shared object, eventually
13167    #    decorated with the 'weak' keyword
13168    # *) the shared object with the F_LOADONLY flag set, to really avoid
13169    #    it being seen by the linker.
13170    # At run time we better use the real file rather than another symlink,
13171    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13172
13173    case $with_aix_soname,$aix_use_runtimelinking in
13174    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13175    # soname into executable. Probably we can add versioning support to
13176    # collect2, so additional links can be useful in future.
13177    aix,yes) # traditional libtool
13178      dynamic_linker='AIX unversionable lib.so'
13179      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13180      # instead of lib<name>.a to let people know that these are not
13181      # typical AIX shared libraries.
13182      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13183      ;;
13184    aix,no) # traditional AIX only
13185      dynamic_linker='AIX lib.a(lib.so.V)'
13186      # We preserve .a as extension for shared libraries through AIX4.2
13187      # and later when we are not doing run time linking.
13188      library_names_spec='$libname$release.a $libname.a'
13189      soname_spec='$libname$release$shared_ext$major'
13190      ;;
13191    svr4,*) # full svr4 only
13192      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13193      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13194      # We do not specify a path in Import Files, so LIBPATH fires.
13195      shlibpath_overrides_runpath=yes
13196      ;;
13197    *,yes) # both, prefer svr4
13198      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13199      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13200      # unpreferred sharedlib libNAME.a needs extra handling
13201      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"'
13202      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"'
13203      # We do not specify a path in Import Files, so LIBPATH fires.
13204      shlibpath_overrides_runpath=yes
13205      ;;
13206    *,no) # both, prefer aix
13207      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13208      library_names_spec='$libname$release.a $libname.a'
13209      soname_spec='$libname$release$shared_ext$major'
13210      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13211      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)'
13212      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"'
13213      ;;
13214    esac
13215    shlibpath_var=LIBPATH
13216  fi
13217  ;;
13218
13219amigaos*)
13220  case $host_cpu in
13221  powerpc)
13222    # Since July 2007 AmigaOS4 officially supports .so libraries.
13223    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13224    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13225    ;;
13226  m68k)
13227    library_names_spec='$libname.ixlibrary $libname.a'
13228    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13229    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'
13230    ;;
13231  esac
13232  ;;
13233
13234beos*)
13235  library_names_spec='$libname$shared_ext'
13236  dynamic_linker="$host_os ld.so"
13237  shlibpath_var=LIBRARY_PATH
13238  ;;
13239
13240bsdi[45]*)
13241  version_type=linux # correct to gnu/linux during the next big refactor
13242  need_version=no
13243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13244  soname_spec='$libname$release$shared_ext$major'
13245  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13246  shlibpath_var=LD_LIBRARY_PATH
13247  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13248  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13249  # the default ld.so.conf also contains /usr/contrib/lib and
13250  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13251  # libtool to hard-code these into programs
13252  ;;
13253
13254cygwin* | mingw* | pw32* | cegcc*)
13255  version_type=windows
13256  shrext_cmds=.dll
13257  need_version=no
13258  need_lib_prefix=no
13259
13260  case $GCC,$cc_basename in
13261  yes,*)
13262    # gcc
13263    library_names_spec='$libname.dll.a'
13264    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13265    postinstall_cmds='base_file=`basename \$file`~
13266      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13267      dldir=$destdir/`dirname \$dlpath`~
13268      test -d \$dldir || mkdir -p \$dldir~
13269      $install_prog $dir/$dlname \$dldir/$dlname~
13270      chmod a+x \$dldir/$dlname~
13271      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13272        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13273      fi'
13274    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13275      dlpath=$dir/\$dldll~
13276       $RM \$dlpath'
13277    shlibpath_overrides_runpath=yes
13278
13279    case $host_os in
13280    cygwin*)
13281      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13282      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13283
13284      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13285      ;;
13286    mingw* | cegcc*)
13287      # MinGW DLLs use traditional 'lib' prefix
13288      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13289      ;;
13290    pw32*)
13291      # pw32 DLLs use 'pw' prefix rather than 'lib'
13292      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13293      ;;
13294    esac
13295    dynamic_linker='Win32 ld.exe'
13296    ;;
13297
13298  *,cl*)
13299    # Native MSVC
13300    libname_spec='$name'
13301    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13302    library_names_spec='$libname.dll.lib'
13303
13304    case $build_os in
13305    mingw*)
13306      sys_lib_search_path_spec=
13307      lt_save_ifs=$IFS
13308      IFS=';'
13309      for lt_path in $LIB
13310      do
13311        IFS=$lt_save_ifs
13312        # Let DOS variable expansion print the short 8.3 style file name.
13313        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13314        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13315      done
13316      IFS=$lt_save_ifs
13317      # Convert to MSYS style.
13318      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13319      ;;
13320    cygwin*)
13321      # Convert to unix form, then to dos form, then back to unix form
13322      # but this time dos style (no spaces!) so that the unix form looks
13323      # like /cygdrive/c/PROGRA~1:/cygdr...
13324      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13325      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13326      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13327      ;;
13328    *)
13329      sys_lib_search_path_spec=$LIB
13330      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13331        # It is most probably a Windows format PATH.
13332        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13333      else
13334        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13335      fi
13336      # FIXME: find the short name or the path components, as spaces are
13337      # common. (e.g. "Program Files" -> "PROGRA~1")
13338      ;;
13339    esac
13340
13341    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13342    postinstall_cmds='base_file=`basename \$file`~
13343      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13344      dldir=$destdir/`dirname \$dlpath`~
13345      test -d \$dldir || mkdir -p \$dldir~
13346      $install_prog $dir/$dlname \$dldir/$dlname'
13347    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13348      dlpath=$dir/\$dldll~
13349       $RM \$dlpath'
13350    shlibpath_overrides_runpath=yes
13351    dynamic_linker='Win32 link.exe'
13352    ;;
13353
13354  *)
13355    # Assume MSVC wrapper
13356    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13357    dynamic_linker='Win32 ld.exe'
13358    ;;
13359  esac
13360  # FIXME: first we should search . and the directory the executable is in
13361  shlibpath_var=PATH
13362  ;;
13363
13364darwin* | rhapsody*)
13365  dynamic_linker="$host_os dyld"
13366  version_type=darwin
13367  need_lib_prefix=no
13368  need_version=no
13369  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13370  soname_spec='$libname$release$major$shared_ext'
13371  shlibpath_overrides_runpath=yes
13372  shlibpath_var=DYLD_LIBRARY_PATH
13373  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13374
13375  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13376  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13377  ;;
13378
13379dgux*)
13380  version_type=linux # correct to gnu/linux during the next big refactor
13381  need_lib_prefix=no
13382  need_version=no
13383  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384  soname_spec='$libname$release$shared_ext$major'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  ;;
13387
13388freebsd* | dragonfly*)
13389  # DragonFly does not have aout.  When/if they implement a new
13390  # versioning mechanism, adjust this.
13391  if test -x /usr/bin/objformat; then
13392    objformat=`/usr/bin/objformat`
13393  else
13394    case $host_os in
13395    freebsd[23].*) objformat=aout ;;
13396    *) objformat=elf ;;
13397    esac
13398  fi
13399  version_type=freebsd-$objformat
13400  case $version_type in
13401    freebsd-elf*)
13402      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403      soname_spec='$libname$release$shared_ext$major'
13404      need_version=no
13405      need_lib_prefix=no
13406      ;;
13407    freebsd-*)
13408      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13409      need_version=yes
13410      ;;
13411  esac
13412  shlibpath_var=LD_LIBRARY_PATH
13413  case $host_os in
13414  freebsd2.*)
13415    shlibpath_overrides_runpath=yes
13416    ;;
13417  freebsd3.[01]* | freebsdelf3.[01]*)
13418    shlibpath_overrides_runpath=yes
13419    hardcode_into_libs=yes
13420    ;;
13421  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13422  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13423    shlibpath_overrides_runpath=no
13424    hardcode_into_libs=yes
13425    ;;
13426  *) # from 4.6 on, and DragonFly
13427    shlibpath_overrides_runpath=yes
13428    hardcode_into_libs=yes
13429    ;;
13430  esac
13431  ;;
13432
13433haiku*)
13434  version_type=linux # correct to gnu/linux during the next big refactor
13435  need_lib_prefix=no
13436  need_version=no
13437  dynamic_linker="$host_os runtime_loader"
13438  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13439  soname_spec='$libname$release$shared_ext$major'
13440  shlibpath_var=LIBRARY_PATH
13441  shlibpath_overrides_runpath=no
13442  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13443  hardcode_into_libs=yes
13444  ;;
13445
13446hpux9* | hpux10* | hpux11*)
13447  # Give a soname corresponding to the major version so that dld.sl refuses to
13448  # link against other versions.
13449  version_type=sunos
13450  need_lib_prefix=no
13451  need_version=no
13452  case $host_cpu in
13453  ia64*)
13454    shrext_cmds='.so'
13455    hardcode_into_libs=yes
13456    dynamic_linker="$host_os dld.so"
13457    shlibpath_var=LD_LIBRARY_PATH
13458    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13459    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460    soname_spec='$libname$release$shared_ext$major'
13461    if test 32 = "$HPUX_IA64_MODE"; then
13462      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13463      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13464    else
13465      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13466      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13467    fi
13468    ;;
13469  hppa*64*)
13470    shrext_cmds='.sl'
13471    hardcode_into_libs=yes
13472    dynamic_linker="$host_os dld.sl"
13473    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13474    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13475    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13476    soname_spec='$libname$release$shared_ext$major'
13477    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13478    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13479    ;;
13480  *)
13481    shrext_cmds='.sl'
13482    dynamic_linker="$host_os dld.sl"
13483    shlibpath_var=SHLIB_PATH
13484    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13485    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13486    soname_spec='$libname$release$shared_ext$major'
13487    ;;
13488  esac
13489  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13490  postinstall_cmds='chmod 555 $lib'
13491  # or fails outright, so override atomically:
13492  install_override_mode=555
13493  ;;
13494
13495interix[3-9]*)
13496  version_type=linux # correct to gnu/linux during the next big refactor
13497  need_lib_prefix=no
13498  need_version=no
13499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500  soname_spec='$libname$release$shared_ext$major'
13501  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13502  shlibpath_var=LD_LIBRARY_PATH
13503  shlibpath_overrides_runpath=no
13504  hardcode_into_libs=yes
13505  ;;
13506
13507irix5* | irix6* | nonstopux*)
13508  case $host_os in
13509    nonstopux*) version_type=nonstopux ;;
13510    *)
13511	if test yes = "$lt_cv_prog_gnu_ld"; then
13512		version_type=linux # correct to gnu/linux during the next big refactor
13513	else
13514		version_type=irix
13515	fi ;;
13516  esac
13517  need_lib_prefix=no
13518  need_version=no
13519  soname_spec='$libname$release$shared_ext$major'
13520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13521  case $host_os in
13522  irix5* | nonstopux*)
13523    libsuff= shlibsuff=
13524    ;;
13525  *)
13526    case $LD in # libtool.m4 will add one of these switches to LD
13527    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13528      libsuff= shlibsuff= libmagic=32-bit;;
13529    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13530      libsuff=32 shlibsuff=N32 libmagic=N32;;
13531    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13532      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13533    *) libsuff= shlibsuff= libmagic=never-match;;
13534    esac
13535    ;;
13536  esac
13537  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13538  shlibpath_overrides_runpath=no
13539  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13540  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13541  hardcode_into_libs=yes
13542  ;;
13543
13544# No shared lib support for Linux oldld, aout, or coff.
13545linux*oldld* | linux*aout* | linux*coff*)
13546  dynamic_linker=no
13547  ;;
13548
13549linux*android*)
13550  version_type=none # Android doesn't support versioned libraries.
13551  need_lib_prefix=no
13552  need_version=no
13553  library_names_spec='$libname$release$shared_ext'
13554  soname_spec='$libname$release$shared_ext'
13555  finish_cmds=
13556  shlibpath_var=LD_LIBRARY_PATH
13557  shlibpath_overrides_runpath=yes
13558
13559  # This implies no fast_install, which is unacceptable.
13560  # Some rework will be needed to allow for fast_install
13561  # before this can be enabled.
13562  hardcode_into_libs=yes
13563
13564  dynamic_linker='Android linker'
13565  # Don't embed -rpath directories since the linker doesn't support them.
13566  hardcode_libdir_flag_spec='-L$libdir'
13567  ;;
13568
13569# This must be glibc/ELF.
13570linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13571  version_type=linux # correct to gnu/linux during the next big refactor
13572  need_lib_prefix=no
13573  need_version=no
13574  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13575  soname_spec='$libname$release$shared_ext$major'
13576  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13577  shlibpath_var=LD_LIBRARY_PATH
13578  shlibpath_overrides_runpath=no
13579
13580  # Some binutils ld are patched to set DT_RUNPATH
13581  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13582  $as_echo_n "(cached) " >&6
13583else
13584  lt_cv_shlibpath_overrides_runpath=no
13585    save_LDFLAGS=$LDFLAGS
13586    save_libdir=$libdir
13587    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13588	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13589    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591
13592int
13593main ()
13594{
13595
13596  ;
13597  return 0;
13598}
13599_ACEOF
13600if ac_fn_c_try_link "$LINENO"; then :
13601  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13602  lt_cv_shlibpath_overrides_runpath=yes
13603fi
13604fi
13605rm -f core conftest.err conftest.$ac_objext \
13606    conftest$ac_exeext conftest.$ac_ext
13607    LDFLAGS=$save_LDFLAGS
13608    libdir=$save_libdir
13609
13610fi
13611
13612  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13613
13614  # This implies no fast_install, which is unacceptable.
13615  # Some rework will be needed to allow for fast_install
13616  # before this can be enabled.
13617  hardcode_into_libs=yes
13618
13619  # Add ABI-specific directories to the system library path.
13620  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13621
13622  # Ideally, we could use ldconfig to report *all* directores which are
13623  # searched for libraries, however this is still not possible.  Aside from not
13624  # being certain /sbin/ldconfig is available, command
13625  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13626  # even though it is searched at run-time.  Try to do the best guess by
13627  # appending ld.so.conf contents (and includes) to the search path.
13628  if test -f /etc/ld.so.conf; then
13629    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' ' '`
13630    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13631  fi
13632
13633  # We used to test for /lib/ld.so.1 and disable shared libraries on
13634  # powerpc, because MkLinux only supported shared libraries with the
13635  # GNU dynamic linker.  Since this was broken with cross compilers,
13636  # most powerpc-linux boxes support dynamic linking these days and
13637  # people can always --disable-shared, the test was removed, and we
13638  # assume the GNU/Linux dynamic linker is in use.
13639  dynamic_linker='GNU/Linux ld.so'
13640  ;;
13641
13642netbsd*)
13643  version_type=sunos
13644  need_lib_prefix=no
13645  need_version=no
13646  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13647    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13649    dynamic_linker='NetBSD (a.out) ld.so'
13650  else
13651    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13652    soname_spec='$libname$release$shared_ext$major'
13653    dynamic_linker='NetBSD ld.elf_so'
13654  fi
13655  shlibpath_var=LD_LIBRARY_PATH
13656  shlibpath_overrides_runpath=yes
13657  hardcode_into_libs=yes
13658  ;;
13659
13660newsos6)
13661  version_type=linux # correct to gnu/linux during the next big refactor
13662  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13663  shlibpath_var=LD_LIBRARY_PATH
13664  shlibpath_overrides_runpath=yes
13665  ;;
13666
13667*nto* | *qnx*)
13668  version_type=qnx
13669  need_lib_prefix=no
13670  need_version=no
13671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13672  soname_spec='$libname$release$shared_ext$major'
13673  shlibpath_var=LD_LIBRARY_PATH
13674  shlibpath_overrides_runpath=no
13675  hardcode_into_libs=yes
13676  dynamic_linker='ldqnx.so'
13677  ;;
13678
13679openbsd* | bitrig*)
13680  version_type=sunos
13681  sys_lib_dlsearch_path_spec=/usr/lib
13682  need_lib_prefix=no
13683  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13684    need_version=no
13685  else
13686    need_version=yes
13687  fi
13688  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13689  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13690  shlibpath_var=LD_LIBRARY_PATH
13691  shlibpath_overrides_runpath=yes
13692  ;;
13693
13694os2*)
13695  libname_spec='$name'
13696  version_type=windows
13697  shrext_cmds=.dll
13698  need_version=no
13699  need_lib_prefix=no
13700  # OS/2 can only load a DLL with a base name of 8 characters or less.
13701  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13702    v=$($ECHO $release$versuffix | tr -d .-);
13703    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13704    $ECHO $n$v`$shared_ext'
13705  library_names_spec='${libname}_dll.$libext'
13706  dynamic_linker='OS/2 ld.exe'
13707  shlibpath_var=BEGINLIBPATH
13708  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13709  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13710  postinstall_cmds='base_file=`basename \$file`~
13711    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13712    dldir=$destdir/`dirname \$dlpath`~
13713    test -d \$dldir || mkdir -p \$dldir~
13714    $install_prog $dir/$dlname \$dldir/$dlname~
13715    chmod a+x \$dldir/$dlname~
13716    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13717      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13718    fi'
13719  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13720    dlpath=$dir/\$dldll~
13721    $RM \$dlpath'
13722  ;;
13723
13724osf3* | osf4* | osf5*)
13725  version_type=osf
13726  need_lib_prefix=no
13727  need_version=no
13728  soname_spec='$libname$release$shared_ext$major'
13729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13730  shlibpath_var=LD_LIBRARY_PATH
13731  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13732  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13733  ;;
13734
13735rdos*)
13736  dynamic_linker=no
13737  ;;
13738
13739solaris*)
13740  version_type=linux # correct to gnu/linux during the next big refactor
13741  need_lib_prefix=no
13742  need_version=no
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  shlibpath_overrides_runpath=yes
13747  hardcode_into_libs=yes
13748  # ldd complains unless libraries are executable
13749  postinstall_cmds='chmod +x $lib'
13750  ;;
13751
13752sunos4*)
13753  version_type=sunos
13754  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13755  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13756  shlibpath_var=LD_LIBRARY_PATH
13757  shlibpath_overrides_runpath=yes
13758  if test yes = "$with_gnu_ld"; then
13759    need_lib_prefix=no
13760  fi
13761  need_version=yes
13762  ;;
13763
13764sysv4 | sysv4.3*)
13765  version_type=linux # correct to gnu/linux during the next big refactor
13766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13767  soname_spec='$libname$release$shared_ext$major'
13768  shlibpath_var=LD_LIBRARY_PATH
13769  case $host_vendor in
13770    sni)
13771      shlibpath_overrides_runpath=no
13772      need_lib_prefix=no
13773      runpath_var=LD_RUN_PATH
13774      ;;
13775    siemens)
13776      need_lib_prefix=no
13777      ;;
13778    motorola)
13779      need_lib_prefix=no
13780      need_version=no
13781      shlibpath_overrides_runpath=no
13782      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13783      ;;
13784  esac
13785  ;;
13786
13787sysv4*MP*)
13788  if test -d /usr/nec; then
13789    version_type=linux # correct to gnu/linux during the next big refactor
13790    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13791    soname_spec='$libname$shared_ext.$major'
13792    shlibpath_var=LD_LIBRARY_PATH
13793  fi
13794  ;;
13795
13796sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13797  version_type=sco
13798  need_lib_prefix=no
13799  need_version=no
13800  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13801  soname_spec='$libname$release$shared_ext$major'
13802  shlibpath_var=LD_LIBRARY_PATH
13803  shlibpath_overrides_runpath=yes
13804  hardcode_into_libs=yes
13805  if test yes = "$with_gnu_ld"; then
13806    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13807  else
13808    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13809    case $host_os in
13810      sco3.2v5*)
13811        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13812	;;
13813    esac
13814  fi
13815  sys_lib_dlsearch_path_spec='/usr/lib'
13816  ;;
13817
13818tpf*)
13819  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13820  version_type=linux # correct to gnu/linux during the next big refactor
13821  need_lib_prefix=no
13822  need_version=no
13823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13824  shlibpath_var=LD_LIBRARY_PATH
13825  shlibpath_overrides_runpath=no
13826  hardcode_into_libs=yes
13827  ;;
13828
13829uts4*)
13830  version_type=linux # correct to gnu/linux during the next big refactor
13831  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13832  soname_spec='$libname$release$shared_ext$major'
13833  shlibpath_var=LD_LIBRARY_PATH
13834  ;;
13835
13836*)
13837  dynamic_linker=no
13838  ;;
13839esac
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13841$as_echo "$dynamic_linker" >&6; }
13842test no = "$dynamic_linker" && can_build_shared=no
13843
13844variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13845if test yes = "$GCC"; then
13846  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13847fi
13848
13849if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13850  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13851fi
13852
13853if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13854  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13855fi
13856
13857# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13858configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13859
13860# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13861func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13862
13863# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13864configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13963$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13964hardcode_action=
13965if test -n "$hardcode_libdir_flag_spec" ||
13966   test -n "$runpath_var" ||
13967   test yes = "$hardcode_automatic"; then
13968
13969  # We can hardcode non-existent directories.
13970  if test no != "$hardcode_direct" &&
13971     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13972     # have to relink, otherwise we might link with an installed library
13973     # when we should be linking with a yet-to-be-installed one
13974     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13975     test no != "$hardcode_minus_L"; then
13976    # Linking always hardcodes the temporary library directory.
13977    hardcode_action=relink
13978  else
13979    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13980    hardcode_action=immediate
13981  fi
13982else
13983  # We cannot hardcode anything, or else we can only hardcode existing
13984  # directories.
13985  hardcode_action=unsupported
13986fi
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13988$as_echo "$hardcode_action" >&6; }
13989
13990if test relink = "$hardcode_action" ||
13991   test yes = "$inherit_rpath"; then
13992  # Fast installation is not supported
13993  enable_fast_install=no
13994elif test yes = "$shlibpath_overrides_runpath" ||
13995     test no = "$enable_shared"; then
13996  # Fast installation is not necessary
13997  enable_fast_install=needless
13998fi
13999
14000
14001
14002
14003
14004
14005  if test yes != "$enable_dlopen"; then
14006  enable_dlopen=unknown
14007  enable_dlopen_self=unknown
14008  enable_dlopen_self_static=unknown
14009else
14010  lt_cv_dlopen=no
14011  lt_cv_dlopen_libs=
14012
14013  case $host_os in
14014  beos*)
14015    lt_cv_dlopen=load_add_on
14016    lt_cv_dlopen_libs=
14017    lt_cv_dlopen_self=yes
14018    ;;
14019
14020  mingw* | pw32* | cegcc*)
14021    lt_cv_dlopen=LoadLibrary
14022    lt_cv_dlopen_libs=
14023    ;;
14024
14025  cygwin*)
14026    lt_cv_dlopen=dlopen
14027    lt_cv_dlopen_libs=
14028    ;;
14029
14030  darwin*)
14031    # if libdl is installed we need to link against it
14032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14033$as_echo_n "checking for dlopen in -ldl... " >&6; }
14034if ${ac_cv_lib_dl_dlopen+:} false; then :
14035  $as_echo_n "(cached) " >&6
14036else
14037  ac_check_lib_save_LIBS=$LIBS
14038LIBS="-ldl  $LIBS"
14039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041
14042/* Override any GCC internal prototype to avoid an error.
14043   Use char because int might match the return type of a GCC
14044   builtin and then its argument prototype would still apply.  */
14045#ifdef __cplusplus
14046extern "C"
14047#endif
14048char dlopen ();
14049int
14050main ()
14051{
14052return dlopen ();
14053  ;
14054  return 0;
14055}
14056_ACEOF
14057if ac_fn_c_try_link "$LINENO"; then :
14058  ac_cv_lib_dl_dlopen=yes
14059else
14060  ac_cv_lib_dl_dlopen=no
14061fi
14062rm -f core conftest.err conftest.$ac_objext \
14063    conftest$ac_exeext conftest.$ac_ext
14064LIBS=$ac_check_lib_save_LIBS
14065fi
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14068if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14069  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14070else
14071
14072    lt_cv_dlopen=dyld
14073    lt_cv_dlopen_libs=
14074    lt_cv_dlopen_self=yes
14075
14076fi
14077
14078    ;;
14079
14080  tpf*)
14081    # Don't try to run any link tests for TPF.  We know it's impossible
14082    # because TPF is a cross-compiler, and we know how we open DSOs.
14083    lt_cv_dlopen=dlopen
14084    lt_cv_dlopen_libs=
14085    lt_cv_dlopen_self=no
14086    ;;
14087
14088  *)
14089    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14090if test "x$ac_cv_func_shl_load" = xyes; then :
14091  lt_cv_dlopen=shl_load
14092else
14093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14094$as_echo_n "checking for shl_load in -ldld... " >&6; }
14095if ${ac_cv_lib_dld_shl_load+:} false; then :
14096  $as_echo_n "(cached) " >&6
14097else
14098  ac_check_lib_save_LIBS=$LIBS
14099LIBS="-ldld  $LIBS"
14100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h.  */
14102
14103/* Override any GCC internal prototype to avoid an error.
14104   Use char because int might match the return type of a GCC
14105   builtin and then its argument prototype would still apply.  */
14106#ifdef __cplusplus
14107extern "C"
14108#endif
14109char shl_load ();
14110int
14111main ()
14112{
14113return shl_load ();
14114  ;
14115  return 0;
14116}
14117_ACEOF
14118if ac_fn_c_try_link "$LINENO"; then :
14119  ac_cv_lib_dld_shl_load=yes
14120else
14121  ac_cv_lib_dld_shl_load=no
14122fi
14123rm -f core conftest.err conftest.$ac_objext \
14124    conftest$ac_exeext conftest.$ac_ext
14125LIBS=$ac_check_lib_save_LIBS
14126fi
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14128$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14129if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14130  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14131else
14132  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14133if test "x$ac_cv_func_dlopen" = xyes; then :
14134  lt_cv_dlopen=dlopen
14135else
14136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14137$as_echo_n "checking for dlopen in -ldl... " >&6; }
14138if ${ac_cv_lib_dl_dlopen+:} false; then :
14139  $as_echo_n "(cached) " >&6
14140else
14141  ac_check_lib_save_LIBS=$LIBS
14142LIBS="-ldl  $LIBS"
14143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h.  */
14145
14146/* Override any GCC internal prototype to avoid an error.
14147   Use char because int might match the return type of a GCC
14148   builtin and then its argument prototype would still apply.  */
14149#ifdef __cplusplus
14150extern "C"
14151#endif
14152char dlopen ();
14153int
14154main ()
14155{
14156return dlopen ();
14157  ;
14158  return 0;
14159}
14160_ACEOF
14161if ac_fn_c_try_link "$LINENO"; then :
14162  ac_cv_lib_dl_dlopen=yes
14163else
14164  ac_cv_lib_dl_dlopen=no
14165fi
14166rm -f core conftest.err conftest.$ac_objext \
14167    conftest$ac_exeext conftest.$ac_ext
14168LIBS=$ac_check_lib_save_LIBS
14169fi
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14171$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14172if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14173  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14174else
14175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14176$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14177if ${ac_cv_lib_svld_dlopen+:} false; then :
14178  $as_echo_n "(cached) " >&6
14179else
14180  ac_check_lib_save_LIBS=$LIBS
14181LIBS="-lsvld  $LIBS"
14182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184
14185/* Override any GCC internal prototype to avoid an error.
14186   Use char because int might match the return type of a GCC
14187   builtin and then its argument prototype would still apply.  */
14188#ifdef __cplusplus
14189extern "C"
14190#endif
14191char dlopen ();
14192int
14193main ()
14194{
14195return dlopen ();
14196  ;
14197  return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_link "$LINENO"; then :
14201  ac_cv_lib_svld_dlopen=yes
14202else
14203  ac_cv_lib_svld_dlopen=no
14204fi
14205rm -f core conftest.err conftest.$ac_objext \
14206    conftest$ac_exeext conftest.$ac_ext
14207LIBS=$ac_check_lib_save_LIBS
14208fi
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14210$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14211if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14212  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14213else
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14215$as_echo_n "checking for dld_link in -ldld... " >&6; }
14216if ${ac_cv_lib_dld_dld_link+:} false; then :
14217  $as_echo_n "(cached) " >&6
14218else
14219  ac_check_lib_save_LIBS=$LIBS
14220LIBS="-ldld  $LIBS"
14221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223
14224/* Override any GCC internal prototype to avoid an error.
14225   Use char because int might match the return type of a GCC
14226   builtin and then its argument prototype would still apply.  */
14227#ifdef __cplusplus
14228extern "C"
14229#endif
14230char dld_link ();
14231int
14232main ()
14233{
14234return dld_link ();
14235  ;
14236  return 0;
14237}
14238_ACEOF
14239if ac_fn_c_try_link "$LINENO"; then :
14240  ac_cv_lib_dld_dld_link=yes
14241else
14242  ac_cv_lib_dld_dld_link=no
14243fi
14244rm -f core conftest.err conftest.$ac_objext \
14245    conftest$ac_exeext conftest.$ac_ext
14246LIBS=$ac_check_lib_save_LIBS
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14249$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14250if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14251  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14252fi
14253
14254
14255fi
14256
14257
14258fi
14259
14260
14261fi
14262
14263
14264fi
14265
14266
14267fi
14268
14269    ;;
14270  esac
14271
14272  if test no = "$lt_cv_dlopen"; then
14273    enable_dlopen=no
14274  else
14275    enable_dlopen=yes
14276  fi
14277
14278  case $lt_cv_dlopen in
14279  dlopen)
14280    save_CPPFLAGS=$CPPFLAGS
14281    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14282
14283    save_LDFLAGS=$LDFLAGS
14284    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14285
14286    save_LIBS=$LIBS
14287    LIBS="$lt_cv_dlopen_libs $LIBS"
14288
14289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14290$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14291if ${lt_cv_dlopen_self+:} false; then :
14292  $as_echo_n "(cached) " >&6
14293else
14294  	  if test yes = "$cross_compiling"; then :
14295  lt_cv_dlopen_self=cross
14296else
14297  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14298  lt_status=$lt_dlunknown
14299  cat > conftest.$ac_ext <<_LT_EOF
14300#line $LINENO "configure"
14301#include "confdefs.h"
14302
14303#if HAVE_DLFCN_H
14304#include <dlfcn.h>
14305#endif
14306
14307#include <stdio.h>
14308
14309#ifdef RTLD_GLOBAL
14310#  define LT_DLGLOBAL		RTLD_GLOBAL
14311#else
14312#  ifdef DL_GLOBAL
14313#    define LT_DLGLOBAL		DL_GLOBAL
14314#  else
14315#    define LT_DLGLOBAL		0
14316#  endif
14317#endif
14318
14319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14320   find out it does not work in some platform. */
14321#ifndef LT_DLLAZY_OR_NOW
14322#  ifdef RTLD_LAZY
14323#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14324#  else
14325#    ifdef DL_LAZY
14326#      define LT_DLLAZY_OR_NOW		DL_LAZY
14327#    else
14328#      ifdef RTLD_NOW
14329#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14330#      else
14331#        ifdef DL_NOW
14332#          define LT_DLLAZY_OR_NOW	DL_NOW
14333#        else
14334#          define LT_DLLAZY_OR_NOW	0
14335#        endif
14336#      endif
14337#    endif
14338#  endif
14339#endif
14340
14341/* When -fvisibility=hidden is used, assume the code has been annotated
14342   correspondingly for the symbols needed.  */
14343#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14344int fnord () __attribute__((visibility("default")));
14345#endif
14346
14347int fnord () { return 42; }
14348int main ()
14349{
14350  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14351  int status = $lt_dlunknown;
14352
14353  if (self)
14354    {
14355      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14356      else
14357        {
14358	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14359          else puts (dlerror ());
14360	}
14361      /* dlclose (self); */
14362    }
14363  else
14364    puts (dlerror ());
14365
14366  return status;
14367}
14368_LT_EOF
14369  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14370  (eval $ac_link) 2>&5
14371  ac_status=$?
14372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14373  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14374    (./conftest; exit; ) >&5 2>/dev/null
14375    lt_status=$?
14376    case x$lt_status in
14377      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14378      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14379      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14380    esac
14381  else :
14382    # compilation failed
14383    lt_cv_dlopen_self=no
14384  fi
14385fi
14386rm -fr conftest*
14387
14388
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14391$as_echo "$lt_cv_dlopen_self" >&6; }
14392
14393    if test yes = "$lt_cv_dlopen_self"; then
14394      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14395      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14396$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14397if ${lt_cv_dlopen_self_static+:} false; then :
14398  $as_echo_n "(cached) " >&6
14399else
14400  	  if test yes = "$cross_compiling"; then :
14401  lt_cv_dlopen_self_static=cross
14402else
14403  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14404  lt_status=$lt_dlunknown
14405  cat > conftest.$ac_ext <<_LT_EOF
14406#line $LINENO "configure"
14407#include "confdefs.h"
14408
14409#if HAVE_DLFCN_H
14410#include <dlfcn.h>
14411#endif
14412
14413#include <stdio.h>
14414
14415#ifdef RTLD_GLOBAL
14416#  define LT_DLGLOBAL		RTLD_GLOBAL
14417#else
14418#  ifdef DL_GLOBAL
14419#    define LT_DLGLOBAL		DL_GLOBAL
14420#  else
14421#    define LT_DLGLOBAL		0
14422#  endif
14423#endif
14424
14425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14426   find out it does not work in some platform. */
14427#ifndef LT_DLLAZY_OR_NOW
14428#  ifdef RTLD_LAZY
14429#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14430#  else
14431#    ifdef DL_LAZY
14432#      define LT_DLLAZY_OR_NOW		DL_LAZY
14433#    else
14434#      ifdef RTLD_NOW
14435#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14436#      else
14437#        ifdef DL_NOW
14438#          define LT_DLLAZY_OR_NOW	DL_NOW
14439#        else
14440#          define LT_DLLAZY_OR_NOW	0
14441#        endif
14442#      endif
14443#    endif
14444#  endif
14445#endif
14446
14447/* When -fvisibility=hidden is used, assume the code has been annotated
14448   correspondingly for the symbols needed.  */
14449#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14450int fnord () __attribute__((visibility("default")));
14451#endif
14452
14453int fnord () { return 42; }
14454int main ()
14455{
14456  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14457  int status = $lt_dlunknown;
14458
14459  if (self)
14460    {
14461      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14462      else
14463        {
14464	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14465          else puts (dlerror ());
14466	}
14467      /* dlclose (self); */
14468    }
14469  else
14470    puts (dlerror ());
14471
14472  return status;
14473}
14474_LT_EOF
14475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14476  (eval $ac_link) 2>&5
14477  ac_status=$?
14478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14479  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14480    (./conftest; exit; ) >&5 2>/dev/null
14481    lt_status=$?
14482    case x$lt_status in
14483      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14484      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14485      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14486    esac
14487  else :
14488    # compilation failed
14489    lt_cv_dlopen_self_static=no
14490  fi
14491fi
14492rm -fr conftest*
14493
14494
14495fi
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14497$as_echo "$lt_cv_dlopen_self_static" >&6; }
14498    fi
14499
14500    CPPFLAGS=$save_CPPFLAGS
14501    LDFLAGS=$save_LDFLAGS
14502    LIBS=$save_LIBS
14503    ;;
14504  esac
14505
14506  case $lt_cv_dlopen_self in
14507  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14508  *) enable_dlopen_self=unknown ;;
14509  esac
14510
14511  case $lt_cv_dlopen_self_static in
14512  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14513  *) enable_dlopen_self_static=unknown ;;
14514  esac
14515fi
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533striplib=
14534old_striplib=
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14536$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14537if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14538  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14539  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14541$as_echo "yes" >&6; }
14542else
14543# FIXME - insert some real tests, host_os isn't really good enough
14544  case $host_os in
14545  darwin*)
14546    if test -n "$STRIP"; then
14547      striplib="$STRIP -x"
14548      old_striplib="$STRIP -S"
14549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550$as_echo "yes" >&6; }
14551    else
14552      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553$as_echo "no" >&6; }
14554    fi
14555    ;;
14556  *)
14557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558$as_echo "no" >&6; }
14559    ;;
14560  esac
14561fi
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574  # Report what library types will actually be built
14575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14576$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14578$as_echo "$can_build_shared" >&6; }
14579
14580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14581$as_echo_n "checking whether to build shared libraries... " >&6; }
14582  test no = "$can_build_shared" && enable_shared=no
14583
14584  # On AIX, shared libraries and static libraries use the same namespace, and
14585  # are all built from PIC.
14586  case $host_os in
14587  aix3*)
14588    test yes = "$enable_shared" && enable_static=no
14589    if test -n "$RANLIB"; then
14590      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14591      postinstall_cmds='$RANLIB $lib'
14592    fi
14593    ;;
14594
14595  aix[4-9]*)
14596    if test ia64 != "$host_cpu"; then
14597      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14598      yes,aix,yes) ;;			# shared object as lib.so file only
14599      yes,svr4,*) ;;			# shared object as lib.so archive member only
14600      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14601      esac
14602    fi
14603    ;;
14604  esac
14605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14606$as_echo "$enable_shared" >&6; }
14607
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14609$as_echo_n "checking whether to build static libraries... " >&6; }
14610  # Make sure either enable_shared or enable_static is yes.
14611  test yes = "$enable_shared" || enable_static=yes
14612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14613$as_echo "$enable_static" >&6; }
14614
14615
14616
14617
14618fi
14619ac_ext=c
14620ac_cpp='$CPP $CPPFLAGS'
14621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14623ac_compiler_gnu=$ac_cv_c_compiler_gnu
14624
14625CC=$lt_save_CC
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641        ac_config_commands="$ac_config_commands libtool"
14642
14643
14644
14645
14646# Only expand once:
14647
14648
14649
14650
14651# pkg-config is only needed for these options, do not require it otherwise
14652if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14653
14654
14655
14656
14657
14658
14659
14660if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14661	if test -n "$ac_tool_prefix"; then
14662  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14663set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14665$as_echo_n "checking for $ac_word... " >&6; }
14666if ${ac_cv_path_PKG_CONFIG+:} false; then :
14667  $as_echo_n "(cached) " >&6
14668else
14669  case $PKG_CONFIG in
14670  [\\/]* | ?:[\\/]*)
14671  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14672  ;;
14673  *)
14674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675for as_dir in $PATH
14676do
14677  IFS=$as_save_IFS
14678  test -z "$as_dir" && as_dir=.
14679    for ac_exec_ext in '' $ac_executable_extensions; do
14680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683    break 2
14684  fi
14685done
14686  done
14687IFS=$as_save_IFS
14688
14689  ;;
14690esac
14691fi
14692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14693if test -n "$PKG_CONFIG"; then
14694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14695$as_echo "$PKG_CONFIG" >&6; }
14696else
14697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698$as_echo "no" >&6; }
14699fi
14700
14701
14702fi
14703if test -z "$ac_cv_path_PKG_CONFIG"; then
14704  ac_pt_PKG_CONFIG=$PKG_CONFIG
14705  # Extract the first word of "pkg-config", so it can be a program name with args.
14706set dummy pkg-config; ac_word=$2
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14708$as_echo_n "checking for $ac_word... " >&6; }
14709if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14710  $as_echo_n "(cached) " >&6
14711else
14712  case $ac_pt_PKG_CONFIG in
14713  [\\/]* | ?:[\\/]*)
14714  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14715  ;;
14716  *)
14717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718for as_dir in $PATH
14719do
14720  IFS=$as_save_IFS
14721  test -z "$as_dir" && as_dir=.
14722    for ac_exec_ext in '' $ac_executable_extensions; do
14723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726    break 2
14727  fi
14728done
14729  done
14730IFS=$as_save_IFS
14731
14732  ;;
14733esac
14734fi
14735ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14736if test -n "$ac_pt_PKG_CONFIG"; then
14737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14738$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14739else
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742fi
14743
14744  if test "x$ac_pt_PKG_CONFIG" = x; then
14745    PKG_CONFIG=""
14746  else
14747    case $cross_compiling:$ac_tool_warned in
14748yes:)
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14751ac_tool_warned=yes ;;
14752esac
14753    PKG_CONFIG=$ac_pt_PKG_CONFIG
14754  fi
14755else
14756  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14757fi
14758
14759fi
14760if test -n "$PKG_CONFIG"; then
14761	_pkg_min_version=0.9.0
14762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14763$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14764	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766$as_echo "yes" >&6; }
14767	else
14768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769$as_echo "no" >&6; }
14770		PKG_CONFIG=""
14771	fi
14772fi
14773fi
14774
14775# Checks for header files.
14776for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.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 ifaddrs.h poll.h
14777do :
14778  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14779ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14780"
14781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14782  cat >>confdefs.h <<_ACEOF
14783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14784_ACEOF
14785
14786fi
14787
14788done
14789
14790# net/if.h portability for Darwin see:
14791# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14792for ac_header in net/if.h
14793do :
14794  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14795#include <stdio.h>
14796#ifdef STDC_HEADERS
14797# include <stdlib.h>
14798# include <stddef.h>
14799#else
14800# ifdef HAVE_STDLIB_H
14801#  include <stdlib.h>
14802# endif
14803#endif
14804#ifdef HAVE_SYS_SOCKET_H
14805# include <sys/socket.h>
14806#endif
14807
14808"
14809if test "x$ac_cv_header_net_if_h" = xyes; then :
14810  cat >>confdefs.h <<_ACEOF
14811#define HAVE_NET_IF_H 1
14812_ACEOF
14813
14814fi
14815
14816done
14817
14818
14819# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14820for ac_header in TargetConditionals.h
14821do :
14822  ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14823"
14824if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14825  cat >>confdefs.h <<_ACEOF
14826#define HAVE_TARGETCONDITIONALS_H 1
14827_ACEOF
14828
14829fi
14830
14831done
14832
14833for ac_header in netioapi.h
14834do :
14835  ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14836#if HAVE_SYS_PARAM_H
14837#include <sys/param.h>
14838#endif
14839
14840#ifdef HAVE_SYS_SOCKET_H
14841#include <sys/socket.h>
14842#endif
14843
14844#ifdef HAVE_SYS_UIO_H
14845#include <sys/uio.h>
14846#endif
14847
14848#ifdef HAVE_NETINET_IN_H
14849#include <netinet/in.h>
14850#endif
14851
14852#ifdef HAVE_NETINET_TCP_H
14853#include <netinet/tcp.h>
14854#endif
14855
14856#ifdef HAVE_ARPA_INET_H
14857#include <arpa/inet.h>
14858#endif
14859
14860#ifdef HAVE_WINSOCK2_H
14861#include <winsock2.h>
14862#endif
14863
14864#ifdef HAVE_WS2TCPIP_H
14865#include <ws2tcpip.h>
14866#endif
14867
14868"
14869if test "x$ac_cv_header_netioapi_h" = xyes; then :
14870  cat >>confdefs.h <<_ACEOF
14871#define HAVE_NETIOAPI_H 1
14872_ACEOF
14873
14874fi
14875
14876done
14877
14878
14879# check for types.
14880# Using own tests for int64* because autoconf builtin only give 32bit.
14881ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14882if test "x$ac_cv_type_int8_t" = xyes; then :
14883
14884else
14885
14886cat >>confdefs.h <<_ACEOF
14887#define int8_t signed char
14888_ACEOF
14889
14890fi
14891
14892ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14893if test "x$ac_cv_type_int16_t" = xyes; then :
14894
14895else
14896
14897cat >>confdefs.h <<_ACEOF
14898#define int16_t short
14899_ACEOF
14900
14901fi
14902
14903ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14904if test "x$ac_cv_type_int32_t" = xyes; then :
14905
14906else
14907
14908cat >>confdefs.h <<_ACEOF
14909#define int32_t int
14910_ACEOF
14911
14912fi
14913
14914ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14915if test "x$ac_cv_type_int64_t" = xyes; then :
14916
14917else
14918
14919cat >>confdefs.h <<_ACEOF
14920#define int64_t long long
14921_ACEOF
14922
14923fi
14924
14925ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14926if test "x$ac_cv_type_uint8_t" = xyes; then :
14927
14928else
14929
14930cat >>confdefs.h <<_ACEOF
14931#define uint8_t unsigned char
14932_ACEOF
14933
14934fi
14935
14936ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14937if test "x$ac_cv_type_uint16_t" = xyes; then :
14938
14939else
14940
14941cat >>confdefs.h <<_ACEOF
14942#define uint16_t unsigned short
14943_ACEOF
14944
14945fi
14946
14947ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14948if test "x$ac_cv_type_uint32_t" = xyes; then :
14949
14950else
14951
14952cat >>confdefs.h <<_ACEOF
14953#define uint32_t unsigned int
14954_ACEOF
14955
14956fi
14957
14958ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14959if test "x$ac_cv_type_uint64_t" = xyes; then :
14960
14961else
14962
14963cat >>confdefs.h <<_ACEOF
14964#define uint64_t unsigned long long
14965_ACEOF
14966
14967fi
14968
14969ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14970if test "x$ac_cv_type_size_t" = xyes; then :
14971
14972else
14973
14974cat >>confdefs.h <<_ACEOF
14975#define size_t unsigned int
14976_ACEOF
14977
14978fi
14979
14980ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14981if test "x$ac_cv_type_ssize_t" = xyes; then :
14982
14983else
14984
14985cat >>confdefs.h <<_ACEOF
14986#define ssize_t int
14987_ACEOF
14988
14989fi
14990
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14992$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14993if ${ac_cv_type_uid_t+:} false; then :
14994  $as_echo_n "(cached) " >&6
14995else
14996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h.  */
14998#include <sys/types.h>
14999
15000_ACEOF
15001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15002  $EGREP "uid_t" >/dev/null 2>&1; then :
15003  ac_cv_type_uid_t=yes
15004else
15005  ac_cv_type_uid_t=no
15006fi
15007rm -f conftest*
15008
15009fi
15010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15011$as_echo "$ac_cv_type_uid_t" >&6; }
15012if test $ac_cv_type_uid_t = no; then
15013
15014$as_echo "#define uid_t int" >>confdefs.h
15015
15016
15017$as_echo "#define gid_t int" >>confdefs.h
15018
15019fi
15020
15021ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15022if test "x$ac_cv_type_pid_t" = xyes; then :
15023
15024else
15025
15026cat >>confdefs.h <<_ACEOF
15027#define pid_t int
15028_ACEOF
15029
15030fi
15031
15032ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15033if test "x$ac_cv_type_off_t" = xyes; then :
15034
15035else
15036
15037cat >>confdefs.h <<_ACEOF
15038#define off_t long int
15039_ACEOF
15040
15041fi
15042
15043ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
15044$ac_includes_default
15045#ifdef HAVE_WINSOCK2_H
15046#  include <winsock2.h>
15047#endif
15048
15049"
15050if test "x$ac_cv_type_u_char" = xyes; then :
15051
15052else
15053
15054$as_echo "#define u_char unsigned char" >>confdefs.h
15055
15056fi
15057
15058ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
15059$ac_includes_default
15060#ifdef HAVE_SYS_RESOURCE_H
15061#  include <sys/resource.h>
15062#endif
15063
15064"
15065if test "x$ac_cv_type_rlim_t" = xyes; then :
15066
15067else
15068
15069$as_echo "#define rlim_t unsigned long" >>confdefs.h
15070
15071fi
15072
15073
15074ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15075$ac_includes_default
15076#ifdef HAVE_SYS_SOCKET_H
15077#  include <sys/socket.h>
15078#endif
15079#ifdef HAVE_WS2TCPIP_H
15080#  include <ws2tcpip.h>
15081#endif
15082
15083"
15084if test "x$ac_cv_type_socklen_t" = xyes; then :
15085
15086else
15087
15088$as_echo "#define socklen_t int" >>confdefs.h
15089
15090fi
15091
15092 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15093$ac_includes_default
15094#ifdef HAVE_SYS_TYPES_H
15095# include <sys/types.h>
15096#endif
15097#ifdef HAVE_NETINET_IN_H
15098# include <netinet/in.h>
15099#endif
15100
15101"
15102if test "x$ac_cv_type_in_addr_t" = xyes; then :
15103
15104else
15105
15106$as_echo "#define in_addr_t uint32_t" >>confdefs.h
15107
15108fi
15109
15110 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15111$ac_includes_default
15112#ifdef HAVE_SYS_TYPES_H
15113# include <sys/types.h>
15114#endif
15115#ifdef HAVE_NETINET_IN_H
15116# include <netinet/in.h>
15117#endif
15118
15119"
15120if test "x$ac_cv_type_in_port_t" = xyes; then :
15121
15122else
15123
15124$as_echo "#define in_port_t uint16_t" >>confdefs.h
15125
15126fi
15127
15128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15129$as_echo_n "checking if memcmp compares unsigned... " >&6; }
15130if test "$cross_compiling" = yes; then :
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15132$as_echo "cross-compile no" >&6; }
15133
15134$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15135
15136  case " $LIBOBJS " in
15137  *" memcmp.$ac_objext "* ) ;;
15138  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15139 ;;
15140esac
15141
15142
15143else
15144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h.  */
15146
15147#include <stdio.h>
15148#include <stdlib.h>
15149#include <string.h>
15150int main(void)
15151{
15152	char a = 255, b = 0;
15153	if(memcmp(&a, &b, 1) < 0)
15154		return 1;
15155	return 0;
15156}
15157
15158_ACEOF
15159if ac_fn_c_try_run "$LINENO"; then :
15160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161$as_echo "yes" >&6; }
15162else
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164$as_echo "no" >&6; }
15165
15166$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15167
15168  case " $LIBOBJS " in
15169  *" memcmp.$ac_objext "* ) ;;
15170  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15171 ;;
15172esac
15173
15174
15175fi
15176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15177  conftest.$ac_objext conftest.beam conftest.$ac_ext
15178fi
15179
15180
15181# The cast to long int works around a bug in the HP C Compiler
15182# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184# This bug is HP SR number 8606223364.
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15186$as_echo_n "checking size of time_t... " >&6; }
15187if ${ac_cv_sizeof_time_t+:} false; then :
15188  $as_echo_n "(cached) " >&6
15189else
15190  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15191$ac_includes_default
15192#ifdef TIME_WITH_SYS_TIME
15193# include <sys/time.h>
15194# include <time.h>
15195#else
15196# ifdef HAVE_SYS_TIME_H
15197#  include <sys/time.h>
15198# else
15199#  include <time.h>
15200# endif
15201#endif
15202
15203"; then :
15204
15205else
15206  if test "$ac_cv_type_time_t" = yes; then
15207     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15209as_fn_error 77 "cannot compute sizeof (time_t)
15210See \`config.log' for more details" "$LINENO" 5; }
15211   else
15212     ac_cv_sizeof_time_t=0
15213   fi
15214fi
15215
15216fi
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15218$as_echo "$ac_cv_sizeof_time_t" >&6; }
15219
15220
15221
15222cat >>confdefs.h <<_ACEOF
15223#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15224_ACEOF
15225
15226
15227# The cast to long int works around a bug in the HP C Compiler
15228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15230# This bug is HP SR number 8606223364.
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15232$as_echo_n "checking size of size_t... " >&6; }
15233if ${ac_cv_sizeof_size_t+:} false; then :
15234  $as_echo_n "(cached) " >&6
15235else
15236  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15237
15238else
15239  if test "$ac_cv_type_size_t" = yes; then
15240     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15242as_fn_error 77 "cannot compute sizeof (size_t)
15243See \`config.log' for more details" "$LINENO" 5; }
15244   else
15245     ac_cv_sizeof_size_t=0
15246   fi
15247fi
15248
15249fi
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15251$as_echo "$ac_cv_sizeof_size_t" >&6; }
15252
15253
15254
15255cat >>confdefs.h <<_ACEOF
15256#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15257_ACEOF
15258
15259
15260
15261# add option to disable the evil rpath
15262
15263# Check whether --enable-rpath was given.
15264if test "${enable_rpath+set}" = set; then :
15265  enableval=$enable_rpath; enable_rpath=$enableval
15266else
15267  enable_rpath=yes
15268fi
15269
15270if test "x$enable_rpath" = xno; then
15271		ac_config_commands="$ac_config_commands disable-rpath"
15272
15273fi
15274
15275
15276
15277# check to see if libraries are needed for these functions.
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15279$as_echo_n "checking for library containing inet_pton... " >&6; }
15280if ${ac_cv_search_inet_pton+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  ac_func_search_save_LIBS=$LIBS
15284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286
15287/* Override any GCC internal prototype to avoid an error.
15288   Use char because int might match the return type of a GCC
15289   builtin and then its argument prototype would still apply.  */
15290#ifdef __cplusplus
15291extern "C"
15292#endif
15293char inet_pton ();
15294int
15295main ()
15296{
15297return inet_pton ();
15298  ;
15299  return 0;
15300}
15301_ACEOF
15302for ac_lib in '' nsl; do
15303  if test -z "$ac_lib"; then
15304    ac_res="none required"
15305  else
15306    ac_res=-l$ac_lib
15307    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15308  fi
15309  if ac_fn_c_try_link "$LINENO"; then :
15310  ac_cv_search_inet_pton=$ac_res
15311fi
15312rm -f core conftest.err conftest.$ac_objext \
15313    conftest$ac_exeext
15314  if ${ac_cv_search_inet_pton+:} false; then :
15315  break
15316fi
15317done
15318if ${ac_cv_search_inet_pton+:} false; then :
15319
15320else
15321  ac_cv_search_inet_pton=no
15322fi
15323rm conftest.$ac_ext
15324LIBS=$ac_func_search_save_LIBS
15325fi
15326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15327$as_echo "$ac_cv_search_inet_pton" >&6; }
15328ac_res=$ac_cv_search_inet_pton
15329if test "$ac_res" != no; then :
15330  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15331
15332fi
15333
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15335$as_echo_n "checking for library containing socket... " >&6; }
15336if ${ac_cv_search_socket+:} false; then :
15337  $as_echo_n "(cached) " >&6
15338else
15339  ac_func_search_save_LIBS=$LIBS
15340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h.  */
15342
15343/* Override any GCC internal prototype to avoid an error.
15344   Use char because int might match the return type of a GCC
15345   builtin and then its argument prototype would still apply.  */
15346#ifdef __cplusplus
15347extern "C"
15348#endif
15349char socket ();
15350int
15351main ()
15352{
15353return socket ();
15354  ;
15355  return 0;
15356}
15357_ACEOF
15358for ac_lib in '' socket; do
15359  if test -z "$ac_lib"; then
15360    ac_res="none required"
15361  else
15362    ac_res=-l$ac_lib
15363    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15364  fi
15365  if ac_fn_c_try_link "$LINENO"; then :
15366  ac_cv_search_socket=$ac_res
15367fi
15368rm -f core conftest.err conftest.$ac_objext \
15369    conftest$ac_exeext
15370  if ${ac_cv_search_socket+:} false; then :
15371  break
15372fi
15373done
15374if ${ac_cv_search_socket+:} false; then :
15375
15376else
15377  ac_cv_search_socket=no
15378fi
15379rm conftest.$ac_ext
15380LIBS=$ac_func_search_save_LIBS
15381fi
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15383$as_echo "$ac_cv_search_socket" >&6; }
15384ac_res=$ac_cv_search_socket
15385if test "$ac_res" != no; then :
15386  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15387
15388fi
15389
15390
15391# check whether strptime also works
15392
15393# check some functions of the OS before linking libs (while still runnable).
15394for ac_header in unistd.h
15395do :
15396  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15397if test "x$ac_cv_header_unistd_h" = xyes; then :
15398  cat >>confdefs.h <<_ACEOF
15399#define HAVE_UNISTD_H 1
15400_ACEOF
15401
15402fi
15403
15404done
15405
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15407$as_echo_n "checking for working chown... " >&6; }
15408if ${ac_cv_func_chown_works+:} false; then :
15409  $as_echo_n "(cached) " >&6
15410else
15411  if test "$cross_compiling" = yes; then :
15412  ac_cv_func_chown_works=no
15413else
15414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416$ac_includes_default
15417#include <fcntl.h>
15418
15419int
15420main ()
15421{
15422  char *f = "conftest.chown";
15423  struct stat before, after;
15424
15425  if (creat (f, 0600) < 0)
15426    return 1;
15427  if (stat (f, &before) < 0)
15428    return 1;
15429  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15430    return 1;
15431  if (stat (f, &after) < 0)
15432    return 1;
15433  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15434
15435  ;
15436  return 0;
15437}
15438_ACEOF
15439if ac_fn_c_try_run "$LINENO"; then :
15440  ac_cv_func_chown_works=yes
15441else
15442  ac_cv_func_chown_works=no
15443fi
15444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15445  conftest.$ac_objext conftest.beam conftest.$ac_ext
15446fi
15447
15448rm -f conftest.chown
15449
15450fi
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15452$as_echo "$ac_cv_func_chown_works" >&6; }
15453if test $ac_cv_func_chown_works = yes; then
15454
15455$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15456
15457fi
15458
15459for ac_header in vfork.h
15460do :
15461  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15462if test "x$ac_cv_header_vfork_h" = xyes; then :
15463  cat >>confdefs.h <<_ACEOF
15464#define HAVE_VFORK_H 1
15465_ACEOF
15466
15467fi
15468
15469done
15470
15471for ac_func in fork vfork
15472do :
15473  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15475if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15476  cat >>confdefs.h <<_ACEOF
15477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478_ACEOF
15479
15480fi
15481done
15482
15483if test "x$ac_cv_func_fork" = xyes; then
15484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15485$as_echo_n "checking for working fork... " >&6; }
15486if ${ac_cv_func_fork_works+:} false; then :
15487  $as_echo_n "(cached) " >&6
15488else
15489  if test "$cross_compiling" = yes; then :
15490  ac_cv_func_fork_works=cross
15491else
15492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493/* end confdefs.h.  */
15494$ac_includes_default
15495int
15496main ()
15497{
15498
15499	  /* By Ruediger Kuhlmann. */
15500	  return fork () < 0;
15501
15502  ;
15503  return 0;
15504}
15505_ACEOF
15506if ac_fn_c_try_run "$LINENO"; then :
15507  ac_cv_func_fork_works=yes
15508else
15509  ac_cv_func_fork_works=no
15510fi
15511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15512  conftest.$ac_objext conftest.beam conftest.$ac_ext
15513fi
15514
15515fi
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15517$as_echo "$ac_cv_func_fork_works" >&6; }
15518
15519else
15520  ac_cv_func_fork_works=$ac_cv_func_fork
15521fi
15522if test "x$ac_cv_func_fork_works" = xcross; then
15523  case $host in
15524    *-*-amigaos* | *-*-msdosdjgpp*)
15525      # Override, as these systems have only a dummy fork() stub
15526      ac_cv_func_fork_works=no
15527      ;;
15528    *)
15529      ac_cv_func_fork_works=yes
15530      ;;
15531  esac
15532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15533$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15534fi
15535ac_cv_func_vfork_works=$ac_cv_func_vfork
15536if test "x$ac_cv_func_vfork" = xyes; then
15537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15538$as_echo_n "checking for working vfork... " >&6; }
15539if ${ac_cv_func_vfork_works+:} false; then :
15540  $as_echo_n "(cached) " >&6
15541else
15542  if test "$cross_compiling" = yes; then :
15543  ac_cv_func_vfork_works=cross
15544else
15545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h.  */
15547/* Thanks to Paul Eggert for this test.  */
15548$ac_includes_default
15549#include <sys/wait.h>
15550#ifdef HAVE_VFORK_H
15551# include <vfork.h>
15552#endif
15553/* On some sparc systems, changes by the child to local and incoming
15554   argument registers are propagated back to the parent.  The compiler
15555   is told about this with #include <vfork.h>, but some compilers
15556   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15557   static variable whose address is put into a register that is
15558   clobbered by the vfork.  */
15559static void
15560#ifdef __cplusplus
15561sparc_address_test (int arg)
15562# else
15563sparc_address_test (arg) int arg;
15564#endif
15565{
15566  static pid_t child;
15567  if (!child) {
15568    child = vfork ();
15569    if (child < 0) {
15570      perror ("vfork");
15571      _exit(2);
15572    }
15573    if (!child) {
15574      arg = getpid();
15575      write(-1, "", 0);
15576      _exit (arg);
15577    }
15578  }
15579}
15580
15581int
15582main ()
15583{
15584  pid_t parent = getpid ();
15585  pid_t child;
15586
15587  sparc_address_test (0);
15588
15589  child = vfork ();
15590
15591  if (child == 0) {
15592    /* Here is another test for sparc vfork register problems.  This
15593       test uses lots of local variables, at least as many local
15594       variables as main has allocated so far including compiler
15595       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15596       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15597       reuse the register of parent for one of the local variables,
15598       since it will think that parent can't possibly be used any more
15599       in this routine.  Assigning to the local variable will thus
15600       munge parent in the parent process.  */
15601    pid_t
15602      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15603      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15604    /* Convince the compiler that p..p7 are live; otherwise, it might
15605       use the same hardware register for all 8 local variables.  */
15606    if (p != p1 || p != p2 || p != p3 || p != p4
15607	|| p != p5 || p != p6 || p != p7)
15608      _exit(1);
15609
15610    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15611       from child file descriptors.  If the child closes a descriptor
15612       before it execs or exits, this munges the parent's descriptor
15613       as well.  Test for this by closing stdout in the child.  */
15614    _exit(close(fileno(stdout)) != 0);
15615  } else {
15616    int status;
15617    struct stat st;
15618
15619    while (wait(&status) != child)
15620      ;
15621    return (
15622	 /* Was there some problem with vforking?  */
15623	 child < 0
15624
15625	 /* Did the child fail?  (This shouldn't happen.)  */
15626	 || status
15627
15628	 /* Did the vfork/compiler bug occur?  */
15629	 || parent != getpid()
15630
15631	 /* Did the file descriptor bug occur?  */
15632	 || fstat(fileno(stdout), &st) != 0
15633	 );
15634  }
15635}
15636_ACEOF
15637if ac_fn_c_try_run "$LINENO"; then :
15638  ac_cv_func_vfork_works=yes
15639else
15640  ac_cv_func_vfork_works=no
15641fi
15642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15643  conftest.$ac_objext conftest.beam conftest.$ac_ext
15644fi
15645
15646fi
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15648$as_echo "$ac_cv_func_vfork_works" >&6; }
15649
15650fi;
15651if test "x$ac_cv_func_fork_works" = xcross; then
15652  ac_cv_func_vfork_works=$ac_cv_func_vfork
15653  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15654$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15655fi
15656
15657if test "x$ac_cv_func_vfork_works" = xyes; then
15658
15659$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15660
15661else
15662
15663$as_echo "#define vfork fork" >>confdefs.h
15664
15665fi
15666if test "x$ac_cv_func_fork_works" = xyes; then
15667
15668$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15669
15670fi
15671
15672
15673$as_echo "#define RETSIGTYPE void" >>confdefs.h
15674
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15676$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15677if ${ac_cv_sys_largefile_source+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  while :; do
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683#include <sys/types.h> /* for off_t */
15684     #include <stdio.h>
15685int
15686main ()
15687{
15688int (*fp) (FILE *, off_t, int) = fseeko;
15689     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15690  ;
15691  return 0;
15692}
15693_ACEOF
15694if ac_fn_c_try_link "$LINENO"; then :
15695  ac_cv_sys_largefile_source=no; break
15696fi
15697rm -f core conftest.err conftest.$ac_objext \
15698    conftest$ac_exeext conftest.$ac_ext
15699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700/* end confdefs.h.  */
15701#define _LARGEFILE_SOURCE 1
15702#include <sys/types.h> /* for off_t */
15703     #include <stdio.h>
15704int
15705main ()
15706{
15707int (*fp) (FILE *, off_t, int) = fseeko;
15708     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15709  ;
15710  return 0;
15711}
15712_ACEOF
15713if ac_fn_c_try_link "$LINENO"; then :
15714  ac_cv_sys_largefile_source=1; break
15715fi
15716rm -f core conftest.err conftest.$ac_objext \
15717    conftest$ac_exeext conftest.$ac_ext
15718  ac_cv_sys_largefile_source=unknown
15719  break
15720done
15721fi
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15723$as_echo "$ac_cv_sys_largefile_source" >&6; }
15724case $ac_cv_sys_largefile_source in #(
15725  no | unknown) ;;
15726  *)
15727cat >>confdefs.h <<_ACEOF
15728#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15729_ACEOF
15730;;
15731esac
15732rm -rf conftest*
15733
15734# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15735# in glibc 2.1.3, but that breaks too many other things.
15736# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15737if test $ac_cv_sys_largefile_source != unknown; then
15738
15739$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15740
15741fi
15742
15743
15744# Check whether --enable-largefile was given.
15745if test "${enable_largefile+set}" = set; then :
15746  enableval=$enable_largefile;
15747fi
15748
15749if test "$enable_largefile" != no; then
15750
15751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15752$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15753if ${ac_cv_sys_largefile_CC+:} false; then :
15754  $as_echo_n "(cached) " >&6
15755else
15756  ac_cv_sys_largefile_CC=no
15757     if test "$GCC" != yes; then
15758       ac_save_CC=$CC
15759       while :; do
15760	 # IRIX 6.2 and later do not support large files by default,
15761	 # so use the C compiler's -n32 option if that helps.
15762	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h.  */
15764#include <sys/types.h>
15765 /* Check that off_t can represent 2**63 - 1 correctly.
15766    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15767    since some C++ compilers masquerading as C compilers
15768    incorrectly reject 9223372036854775807.  */
15769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15770  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15771		       && LARGE_OFF_T % 2147483647 == 1)
15772		      ? 1 : -1];
15773int
15774main ()
15775{
15776
15777  ;
15778  return 0;
15779}
15780_ACEOF
15781	 if ac_fn_c_try_compile "$LINENO"; then :
15782  break
15783fi
15784rm -f core conftest.err conftest.$ac_objext
15785	 CC="$CC -n32"
15786	 if ac_fn_c_try_compile "$LINENO"; then :
15787  ac_cv_sys_largefile_CC=' -n32'; break
15788fi
15789rm -f core conftest.err conftest.$ac_objext
15790	 break
15791       done
15792       CC=$ac_save_CC
15793       rm -f conftest.$ac_ext
15794    fi
15795fi
15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15797$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15798  if test "$ac_cv_sys_largefile_CC" != no; then
15799    CC=$CC$ac_cv_sys_largefile_CC
15800  fi
15801
15802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15803$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15804if ${ac_cv_sys_file_offset_bits+:} false; then :
15805  $as_echo_n "(cached) " >&6
15806else
15807  while :; do
15808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h.  */
15810#include <sys/types.h>
15811 /* Check that off_t can represent 2**63 - 1 correctly.
15812    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15813    since some C++ compilers masquerading as C compilers
15814    incorrectly reject 9223372036854775807.  */
15815#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15816  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15817		       && LARGE_OFF_T % 2147483647 == 1)
15818		      ? 1 : -1];
15819int
15820main ()
15821{
15822
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827if ac_fn_c_try_compile "$LINENO"; then :
15828  ac_cv_sys_file_offset_bits=no; break
15829fi
15830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* end confdefs.h.  */
15833#define _FILE_OFFSET_BITS 64
15834#include <sys/types.h>
15835 /* Check that off_t can represent 2**63 - 1 correctly.
15836    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15837    since some C++ compilers masquerading as C compilers
15838    incorrectly reject 9223372036854775807.  */
15839#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15840  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15841		       && LARGE_OFF_T % 2147483647 == 1)
15842		      ? 1 : -1];
15843int
15844main ()
15845{
15846
15847  ;
15848  return 0;
15849}
15850_ACEOF
15851if ac_fn_c_try_compile "$LINENO"; then :
15852  ac_cv_sys_file_offset_bits=64; break
15853fi
15854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855  ac_cv_sys_file_offset_bits=unknown
15856  break
15857done
15858fi
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15860$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15861case $ac_cv_sys_file_offset_bits in #(
15862  no | unknown) ;;
15863  *)
15864cat >>confdefs.h <<_ACEOF
15865#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15866_ACEOF
15867;;
15868esac
15869rm -rf conftest*
15870  if test $ac_cv_sys_file_offset_bits = unknown; then
15871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15872$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15873if ${ac_cv_sys_large_files+:} false; then :
15874  $as_echo_n "(cached) " >&6
15875else
15876  while :; do
15877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879#include <sys/types.h>
15880 /* Check that off_t can represent 2**63 - 1 correctly.
15881    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15882    since some C++ compilers masquerading as C compilers
15883    incorrectly reject 9223372036854775807.  */
15884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15885  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15886		       && LARGE_OFF_T % 2147483647 == 1)
15887		      ? 1 : -1];
15888int
15889main ()
15890{
15891
15892  ;
15893  return 0;
15894}
15895_ACEOF
15896if ac_fn_c_try_compile "$LINENO"; then :
15897  ac_cv_sys_large_files=no; break
15898fi
15899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h.  */
15902#define _LARGE_FILES 1
15903#include <sys/types.h>
15904 /* Check that off_t can represent 2**63 - 1 correctly.
15905    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15906    since some C++ compilers masquerading as C compilers
15907    incorrectly reject 9223372036854775807.  */
15908#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15909  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15910		       && LARGE_OFF_T % 2147483647 == 1)
15911		      ? 1 : -1];
15912int
15913main ()
15914{
15915
15916  ;
15917  return 0;
15918}
15919_ACEOF
15920if ac_fn_c_try_compile "$LINENO"; then :
15921  ac_cv_sys_large_files=1; break
15922fi
15923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924  ac_cv_sys_large_files=unknown
15925  break
15926done
15927fi
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15929$as_echo "$ac_cv_sys_large_files" >&6; }
15930case $ac_cv_sys_large_files in #(
15931  no | unknown) ;;
15932  *)
15933cat >>confdefs.h <<_ACEOF
15934#define _LARGE_FILES $ac_cv_sys_large_files
15935_ACEOF
15936;;
15937esac
15938rm -rf conftest*
15939  fi
15940
15941
15942fi
15943
15944
15945
15946
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15948$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15949cache=_D_LARGEFILE_SOURCE_1
15950if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15951  $as_echo_n "(cached) " >&6
15952else
15953
15954echo '
15955#include <stdio.h>
15956int test() {
15957        int a = fseeko(stdin, 0, 0);
15958        return a;
15959}
15960' > conftest.c
15961echo 'void f(){}' >>conftest.c
15962if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15963eval "cv_prog_cc_flag_needed_$cache=no"
15964else
15965
15966if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15967eval "cv_prog_cc_flag_needed_$cache=yes"
15968else
15969eval "cv_prog_cc_flag_needed_$cache=fail"
15970#echo 'Test with flag fails too!'
15971#cat conftest.c
15972#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15973#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15974#exit 1
15975fi
15976
15977fi
15978rm -f conftest conftest.c conftest.o
15979
15980fi
15981
15982if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15984$as_echo "yes" >&6; }
15985:
15986CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15987else
15988if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990$as_echo "no" >&6; }
15991#echo 'Test with flag is no!'
15992#cat conftest.c
15993#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15994#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15995#exit 1
15996:
15997
15998else
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16000$as_echo "failed" >&6; }
16001:
16002
16003fi
16004fi
16005
16006
16007
16008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
16009$as_echo_n "checking if nonblocking sockets work... " >&6; }
16010if echo $host | grep mingw >/dev/null; then
16011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
16012$as_echo "no (windows)" >&6; }
16013
16014$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16015
16016else
16017if test "$cross_compiling" = yes; then :
16018
16019	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
16020$as_echo "crosscompile(yes)" >&6; }
16021
16022else
16023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025
16026
16027#include <stdio.h>
16028#include <string.h>
16029#include <stdlib.h>
16030#include <fcntl.h>
16031#include <errno.h>
16032#ifdef HAVE_SYS_TYPES_H
16033#include <sys/types.h>
16034#endif
16035#ifdef HAVE_SYS_SELECT_H
16036#include <sys/select.h>
16037#endif
16038#ifdef HAVE_SYS_SOCKET_H
16039#include <sys/socket.h>
16040#endif
16041#ifdef HAVE_NETINET_IN_H
16042#include <netinet/in.h>
16043#endif
16044#ifdef HAVE_ARPA_INET_H
16045#include <arpa/inet.h>
16046#endif
16047#ifdef HAVE_UNISTD_H
16048#include <unistd.h>
16049#endif
16050#ifdef HAVE_TIME_H
16051#include <time.h>
16052#endif
16053
16054int main(void)
16055{
16056	int port;
16057	int sfd, cfd;
16058	int num = 10;
16059	int i, p;
16060	struct sockaddr_in a;
16061	/* test if select and nonblocking reads work well together */
16062	/* open port.
16063	   fork child to send 10 messages.
16064	   select to read.
16065	   then try to nonblocking read the 10 messages
16066	   then, nonblocking read must give EAGAIN
16067	*/
16068
16069	port = 12345 + (time(0)%32);
16070	sfd = socket(PF_INET, SOCK_DGRAM, 0);
16071	if(sfd == -1) {
16072		perror("socket");
16073		return 1;
16074	}
16075	memset(&a, 0, sizeof(a));
16076	a.sin_family = AF_INET;
16077	a.sin_port = htons(port);
16078	a.sin_addr.s_addr = inet_addr("127.0.0.1");
16079	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16080		perror("bind");
16081		return 1;
16082	}
16083	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
16084		perror("fcntl");
16085		return 1;
16086	}
16087
16088	cfd = socket(PF_INET, SOCK_DGRAM, 0);
16089	if(cfd == -1) {
16090		perror("client socket");
16091		return 1;
16092	}
16093	a.sin_port = 0;
16094	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16095		perror("client bind");
16096		return 1;
16097	}
16098	a.sin_port = htons(port);
16099
16100	/* no handler, causes exit in 10 seconds */
16101	alarm(10);
16102
16103	/* send and receive on the socket */
16104	if((p=fork()) == 0) {
16105		for(i=0; i<num; i++) {
16106			if(sendto(cfd, &i, sizeof(i), 0,
16107				(struct sockaddr*)&a, sizeof(a)) < 0) {
16108				perror("sendto");
16109				return 1;
16110			}
16111		}
16112	} else {
16113		/* parent */
16114		fd_set rset;
16115		int x;
16116		if(p == -1) {
16117			perror("fork");
16118			return 1;
16119		}
16120		FD_ZERO(&rset);
16121		FD_SET(sfd, &rset);
16122		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16123			perror("select");
16124			return 1;
16125		}
16126		i = 0;
16127		while(i < num) {
16128			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16129				if(errno == EAGAIN)
16130					continue;
16131				perror("recv");
16132				return 1;
16133			}
16134			i++;
16135		}
16136		/* now we want to get EAGAIN: nonblocking goodness */
16137		errno = 0;
16138		recv(sfd, &x, sizeof(x), 0);
16139		if(errno != EAGAIN) {
16140			perror("trying to recv again");
16141			return 1;
16142		}
16143		/* EAGAIN encountered */
16144	}
16145
16146	close(sfd);
16147	close(cfd);
16148	return 0;
16149}
16150
16151_ACEOF
16152if ac_fn_c_try_run "$LINENO"; then :
16153
16154	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155$as_echo "yes" >&6; }
16156
16157else
16158
16159	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160$as_echo "no" >&6; }
16161
16162$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16163
16164
16165fi
16166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16167  conftest.$ac_objext conftest.beam conftest.$ac_ext
16168fi
16169
16170fi
16171
16172
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16174$as_echo_n "checking whether mkdir has one arg... " >&6; }
16175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177
16178#include <stdio.h>
16179#include <unistd.h>
16180#ifdef HAVE_WINSOCK2_H
16181#include <winsock2.h>
16182#endif
16183#ifdef HAVE_SYS_STAT_H
16184#include <sys/stat.h>
16185#endif
16186
16187int
16188main ()
16189{
16190
16191	(void)mkdir("directory");
16192
16193  ;
16194  return 0;
16195}
16196_ACEOF
16197if ac_fn_c_try_compile "$LINENO"; then :
16198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16199$as_echo "yes" >&6; }
16200
16201$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16202
16203
16204else
16205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206$as_echo "no" >&6; }
16207
16208fi
16209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210
16211for ac_func in strptime
16212do :
16213  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16214if test "x$ac_cv_func_strptime" = xyes; then :
16215  cat >>confdefs.h <<_ACEOF
16216#define HAVE_STRPTIME 1
16217_ACEOF
16218
16219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16220$as_echo_n "checking whether strptime works... " >&6; }
16221if test c${cross_compiling} = cno; then
16222if test "$cross_compiling" = yes; then :
16223  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16225as_fn_error $? "cannot run test program while cross compiling
16226See \`config.log' for more details" "$LINENO" 5; }
16227else
16228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h.  */
16230
16231#define _XOPEN_SOURCE 600
16232#include <time.h>
16233int main(void) { struct tm tm; char *res;
16234res = 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);
16235if (!res) return 2;
16236res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16237if (!res) return 1; return 0; }
16238
16239_ACEOF
16240if ac_fn_c_try_run "$LINENO"; then :
16241  eval "ac_cv_c_strptime_works=yes"
16242else
16243  eval "ac_cv_c_strptime_works=no"
16244fi
16245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16246  conftest.$ac_objext conftest.beam conftest.$ac_ext
16247fi
16248
16249else
16250eval "ac_cv_c_strptime_works=maybe"
16251fi
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16253$as_echo "$ac_cv_c_strptime_works" >&6; }
16254if test $ac_cv_c_strptime_works = no; then
16255case " $LIBOBJS " in
16256  *" strptime.$ac_objext "* ) ;;
16257  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16258 ;;
16259esac
16260
16261else
16262
16263cat >>confdefs.h <<_ACEOF
16264#define STRPTIME_WORKS 1
16265_ACEOF
16266
16267fi
16268
16269else
16270  case " $LIBOBJS " in
16271  *" strptime.$ac_objext "* ) ;;
16272  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16273 ;;
16274esac
16275
16276fi
16277done
16278
16279
16280# check if we can use SO_REUSEPORT
16281reuseport_default=0
16282if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16283if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16284if test "$reuseport_default" = 1; then
16285
16286$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16287
16288else
16289
16290$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16291
16292fi
16293
16294# Include systemd.m4 - begin
16295#   macros for configuring systemd
16296#   Copyright 2015, Sami Kerola, CloudFlare.
16297#   BSD licensed.
16298# Check whether --enable-systemd was given.
16299if test "${enable_systemd+set}" = set; then :
16300  enableval=$enable_systemd;
16301else
16302  enable_systemd=no
16303fi
16304
16305have_systemd=no
16306if test "x$enable_systemd" != xno; then :
16307
16308
16309
16310pkg_failed=no
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16312$as_echo_n "checking for SYSTEMD... " >&6; }
16313
16314if test -n "$SYSTEMD_CFLAGS"; then
16315    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16316 elif test -n "$PKG_CONFIG"; then
16317    if test -n "$PKG_CONFIG" && \
16318    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16319  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16320  ac_status=$?
16321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16322  test $ac_status = 0; }; then
16323  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16324		      test "x$?" != "x0" && pkg_failed=yes
16325else
16326  pkg_failed=yes
16327fi
16328 else
16329    pkg_failed=untried
16330fi
16331if test -n "$SYSTEMD_LIBS"; then
16332    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16333 elif test -n "$PKG_CONFIG"; then
16334    if test -n "$PKG_CONFIG" && \
16335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16336  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16337  ac_status=$?
16338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339  test $ac_status = 0; }; then
16340  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16341		      test "x$?" != "x0" && pkg_failed=yes
16342else
16343  pkg_failed=yes
16344fi
16345 else
16346    pkg_failed=untried
16347fi
16348
16349
16350
16351if test $pkg_failed = yes; then
16352   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353$as_echo "no" >&6; }
16354
16355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16356        _pkg_short_errors_supported=yes
16357else
16358        _pkg_short_errors_supported=no
16359fi
16360        if test $_pkg_short_errors_supported = yes; then
16361	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16362        else
16363	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16364        fi
16365	# Put the nasty error message in config.log where it belongs
16366	echo "$SYSTEMD_PKG_ERRORS" >&5
16367
16368	have_systemd=no
16369elif test $pkg_failed = untried; then
16370     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371$as_echo "no" >&6; }
16372	have_systemd=no
16373else
16374	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16375	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16377$as_echo "yes" >&6; }
16378	have_systemd=yes
16379fi
16380		if test "x$have_systemd" != "xyes"; then :
16381
16382
16383pkg_failed=no
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16385$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16386
16387if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16388    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16389 elif test -n "$PKG_CONFIG"; then
16390    if test -n "$PKG_CONFIG" && \
16391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16392  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16393  ac_status=$?
16394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16395  test $ac_status = 0; }; then
16396  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16397		      test "x$?" != "x0" && pkg_failed=yes
16398else
16399  pkg_failed=yes
16400fi
16401 else
16402    pkg_failed=untried
16403fi
16404if test -n "$SYSTEMD_DAEMON_LIBS"; then
16405    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16406 elif test -n "$PKG_CONFIG"; then
16407    if test -n "$PKG_CONFIG" && \
16408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16409  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16410  ac_status=$?
16411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16412  test $ac_status = 0; }; then
16413  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16414		      test "x$?" != "x0" && pkg_failed=yes
16415else
16416  pkg_failed=yes
16417fi
16418 else
16419    pkg_failed=untried
16420fi
16421
16422
16423
16424if test $pkg_failed = yes; then
16425   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426$as_echo "no" >&6; }
16427
16428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16429        _pkg_short_errors_supported=yes
16430else
16431        _pkg_short_errors_supported=no
16432fi
16433        if test $_pkg_short_errors_supported = yes; then
16434	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16435        else
16436	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16437        fi
16438	# Put the nasty error message in config.log where it belongs
16439	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16440
16441	have_systemd_daemon=no
16442elif test $pkg_failed = untried; then
16443     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
16445	have_systemd_daemon=no
16446else
16447	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16448	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450$as_echo "yes" >&6; }
16451	have_systemd_daemon=yes
16452fi
16453		if test "x$have_systemd_daemon" = "xyes"; then :
16454  have_systemd=yes
16455fi
16456
16457fi
16458	case $enable_systemd:$have_systemd in #(
16459  yes:no) :
16460    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16461  *:yes) :
16462
16463$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16464
16465		LIBS="$LIBS $SYSTEMD_LIBS"
16466
16467	 ;; #(
16468  *) :
16469     ;;
16470esac
16471
16472
16473fi
16474 if test "x$have_systemd" = xyes; then
16475  USE_SYSTEMD_TRUE=
16476  USE_SYSTEMD_FALSE='#'
16477else
16478  USE_SYSTEMD_TRUE='#'
16479  USE_SYSTEMD_FALSE=
16480fi
16481
16482
16483# Include systemd.m4 - end
16484
16485# set memory allocation checking if requested
16486# Check whether --enable-alloc-checks was given.
16487if test "${enable_alloc_checks+set}" = set; then :
16488  enableval=$enable_alloc_checks;
16489fi
16490
16491# Check whether --enable-alloc-lite was given.
16492if test "${enable_alloc_lite+set}" = set; then :
16493  enableval=$enable_alloc_lite;
16494fi
16495
16496# Check whether --enable-alloc-nonregional was given.
16497if test "${enable_alloc_nonregional+set}" = set; then :
16498  enableval=$enable_alloc_nonregional;
16499fi
16500
16501if test x_$enable_alloc_nonregional = x_yes; then
16502
16503$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16504
16505fi
16506if test x_$enable_alloc_checks = x_yes; then
16507
16508$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16509
16510	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16511
16512	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16513
16514else
16515	if test x_$enable_alloc_lite = x_yes; then
16516
16517$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16518
16519	else
16520
16521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16522$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16523	if test "$cross_compiling" = yes; then :
16524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16525$as_echo "no (crosscompile)" >&6; }
16526	case " $LIBOBJS " in
16527  *" malloc.$ac_objext "* ) ;;
16528  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16529 ;;
16530esac
16531
16532
16533cat >>confdefs.h <<_ACEOF
16534#define malloc rpl_malloc_unbound
16535_ACEOF
16536
16537else
16538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539/* end confdefs.h.  */
16540#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16541#include <stdlib.h>
16542#else
16543char *malloc ();
16544#endif
16545
16546int
16547main ()
16548{
16549 if(malloc(0) != 0) return 1;
16550  ;
16551  return 0;
16552}
16553
16554_ACEOF
16555if ac_fn_c_try_run "$LINENO"; then :
16556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557$as_echo "no" >&6; }
16558	case " $LIBOBJS " in
16559  *" malloc.$ac_objext "* ) ;;
16560  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16561 ;;
16562esac
16563
16564
16565cat >>confdefs.h <<_ACEOF
16566#define malloc rpl_malloc_unbound
16567_ACEOF
16568
16569else
16570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571$as_echo "yes" >&6; }
16572
16573$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16574
16575fi
16576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16577  conftest.$ac_objext conftest.beam conftest.$ac_ext
16578fi
16579
16580
16581	fi
16582fi
16583
16584# check windows threads (we use them, not pthreads, on windows).
16585if test "$on_mingw" = "yes"; then
16586# check windows threads
16587	for ac_header in windows.h
16588do :
16589  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16590"
16591if test "x$ac_cv_header_windows_h" = xyes; then :
16592  cat >>confdefs.h <<_ACEOF
16593#define HAVE_WINDOWS_H 1
16594_ACEOF
16595
16596fi
16597
16598done
16599
16600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16601$as_echo_n "checking for CreateThread... " >&6; }
16602	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h.  */
16604
16605#ifdef HAVE_WINDOWS_H
16606#include <windows.h>
16607#endif
16608
16609int
16610main ()
16611{
16612
16613	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16614
16615  ;
16616  return 0;
16617}
16618_ACEOF
16619if ac_fn_c_try_compile "$LINENO"; then :
16620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16621$as_echo "yes" >&6; }
16622
16623$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16624
16625
16626else
16627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628$as_echo "no" >&6; }
16629
16630fi
16631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632
16633else
16634# not on mingw, check thread libraries.
16635
16636# check for thread library.
16637# check this first, so that the pthread lib does not get linked in via
16638# libssl or libpython, and thus distorts the tests, and we end up using
16639# the non-threadsafe C libraries.
16640
16641# Check whether --with-pthreads was given.
16642if test "${with_pthreads+set}" = set; then :
16643  withval=$with_pthreads;
16644else
16645   withval="yes"
16646fi
16647
16648ub_have_pthreads=no
16649if test x_$withval != x_no; then
16650
16651
16652ac_ext=c
16653ac_cpp='$CPP $CPPFLAGS'
16654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656ac_compiler_gnu=$ac_cv_c_compiler_gnu
16657
16658ax_pthread_ok=no
16659
16660# We used to check for pthread.h first, but this fails if pthread.h
16661# requires special compiler flags (e.g. on True64 or Sequent).
16662# It gets checked for in the link test anyway.
16663
16664# First of all, check if the user has set any of the PTHREAD_LIBS,
16665# etcetera environment variables, and if threads linking works using
16666# them:
16667if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16668        save_CFLAGS="$CFLAGS"
16669        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16670        save_LIBS="$LIBS"
16671        LIBS="$PTHREAD_LIBS $LIBS"
16672        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16673$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16674        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675/* end confdefs.h.  */
16676
16677/* Override any GCC internal prototype to avoid an error.
16678   Use char because int might match the return type of a GCC
16679   builtin and then its argument prototype would still apply.  */
16680#ifdef __cplusplus
16681extern "C"
16682#endif
16683char pthread_join ();
16684int
16685main ()
16686{
16687return pthread_join ();
16688  ;
16689  return 0;
16690}
16691_ACEOF
16692if ac_fn_c_try_link "$LINENO"; then :
16693  ax_pthread_ok=yes
16694fi
16695rm -f core conftest.err conftest.$ac_objext \
16696    conftest$ac_exeext conftest.$ac_ext
16697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16698$as_echo "$ax_pthread_ok" >&6; }
16699        if test x"$ax_pthread_ok" = xno; then
16700                PTHREAD_LIBS=""
16701                PTHREAD_CFLAGS=""
16702        fi
16703        LIBS="$save_LIBS"
16704        CFLAGS="$save_CFLAGS"
16705fi
16706
16707# We must check for the threads library under a number of different
16708# names; the ordering is very important because some systems
16709# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16710# libraries is broken (non-POSIX).
16711
16712# Create a list of thread flags to try.  Items starting with a "-" are
16713# C compiler flags, and other items are library names, except for "none"
16714# which indicates that we try without any flags at all, and "pthread-config"
16715# which is a program returning the flags for the Pth emulation library.
16716
16717ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16718
16719# The ordering *is* (sometimes) important.  Some notes on the
16720# individual items follow:
16721
16722# pthreads: AIX (must check this before -lpthread)
16723# none: in case threads are in libc; should be tried before -Kthread and
16724#       other compiler flags to prevent continual compiler warnings
16725# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16726# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16727# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16728# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16729# -pthreads: Solaris/gcc
16730# -mthreads: Mingw32/gcc, Lynx/gcc
16731# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16732#      doesn't hurt to check since this sometimes defines pthreads too;
16733#      also defines -D_REENTRANT)
16734#      ... -mt is also the pthreads flag for HP/aCC
16735# pthread: Linux, etcetera
16736# --thread-safe: KAI C++
16737# pthread-config: use pthread-config program (for GNU Pth library)
16738
16739case ${host_os} in
16740        solaris*)
16741
16742        # On Solaris (at least, for some versions), libc contains stubbed
16743        # (non-functional) versions of the pthreads routines, so link-based
16744        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16745        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16746        # a function called by this macro, so we could check for that, but
16747        # who knows whether they'll stub that too in a future libc.)  So,
16748        # we'll just look for -pthreads and -lpthread first:
16749
16750        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16751        ;;
16752
16753        darwin*)
16754        ax_pthread_flags="-pthread $ax_pthread_flags"
16755        ;;
16756esac
16757
16758# Clang doesn't consider unrecognized options an error unless we specify
16759# -Werror. We throw in some extra Clang-specific options to ensure that
16760# this doesn't happen for GCC, which also accepts -Werror.
16761
16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16763$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16764save_CFLAGS="$CFLAGS"
16765ax_pthread_extra_flags="-Werror"
16766CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768/* end confdefs.h.  */
16769int foo(void);
16770int
16771main ()
16772{
16773foo()
16774  ;
16775  return 0;
16776}
16777_ACEOF
16778if ac_fn_c_try_compile "$LINENO"; then :
16779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16780$as_echo "yes" >&6; }
16781else
16782  ax_pthread_extra_flags=
16783                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784$as_echo "no" >&6; }
16785fi
16786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787CFLAGS="$save_CFLAGS"
16788
16789if test x"$ax_pthread_ok" = xno; then
16790for flag in $ax_pthread_flags; do
16791
16792        case $flag in
16793                none)
16794                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16795$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16796                ;;
16797
16798                -*)
16799                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16800$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16801                PTHREAD_CFLAGS="$flag"
16802                ;;
16803
16804                pthread-config)
16805                # Extract the first word of "pthread-config", so it can be a program name with args.
16806set dummy pthread-config; ac_word=$2
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16808$as_echo_n "checking for $ac_word... " >&6; }
16809if ${ac_cv_prog_ax_pthread_config+:} false; then :
16810  $as_echo_n "(cached) " >&6
16811else
16812  if test -n "$ax_pthread_config"; then
16813  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16814else
16815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816for as_dir in $PATH
16817do
16818  IFS=$as_save_IFS
16819  test -z "$as_dir" && as_dir=.
16820    for ac_exec_ext in '' $ac_executable_extensions; do
16821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16822    ac_cv_prog_ax_pthread_config="yes"
16823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16824    break 2
16825  fi
16826done
16827  done
16828IFS=$as_save_IFS
16829
16830  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16831fi
16832fi
16833ax_pthread_config=$ac_cv_prog_ax_pthread_config
16834if test -n "$ax_pthread_config"; then
16835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16836$as_echo "$ax_pthread_config" >&6; }
16837else
16838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839$as_echo "no" >&6; }
16840fi
16841
16842
16843                if test x"$ax_pthread_config" = xno; then continue; fi
16844                PTHREAD_CFLAGS="`pthread-config --cflags`"
16845                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16846                ;;
16847
16848                *)
16849                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16850$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16851                PTHREAD_LIBS="-l$flag"
16852                ;;
16853        esac
16854
16855        save_LIBS="$LIBS"
16856        save_CFLAGS="$CFLAGS"
16857        LIBS="$PTHREAD_LIBS $LIBS"
16858        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16859
16860        # Check for various functions.  We must include pthread.h,
16861        # since some functions may be macros.  (On the Sequent, we
16862        # need a special flag -Kthread to make this header compile.)
16863        # We check for pthread_join because it is in -lpthread on IRIX
16864        # while pthread_create is in libc.  We check for pthread_attr_init
16865        # due to DEC craziness with -lpthreads.  We check for
16866        # pthread_cleanup_push because it is one of the few pthread
16867        # functions on Solaris that doesn't have a non-functional libc stub.
16868        # We try pthread_create on general principles.
16869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870/* end confdefs.h.  */
16871#include <pthread.h>
16872                        static void routine(void *a) { *((int*)a) = 0; }
16873                        static void *start_routine(void *a) { return a; }
16874int
16875main ()
16876{
16877pthread_t th; pthread_attr_t attr;
16878                        pthread_create(&th, 0, start_routine, 0);
16879                        pthread_join(th, 0);
16880                        pthread_attr_init(&attr);
16881                        pthread_cleanup_push(routine, 0);
16882                        pthread_cleanup_pop(0) /* ; */
16883  ;
16884  return 0;
16885}
16886_ACEOF
16887if ac_fn_c_try_link "$LINENO"; then :
16888  ax_pthread_ok=yes
16889fi
16890rm -f core conftest.err conftest.$ac_objext \
16891    conftest$ac_exeext conftest.$ac_ext
16892
16893        LIBS="$save_LIBS"
16894        CFLAGS="$save_CFLAGS"
16895
16896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16897$as_echo "$ax_pthread_ok" >&6; }
16898        if test "x$ax_pthread_ok" = xyes; then
16899                break;
16900        fi
16901
16902        PTHREAD_LIBS=""
16903        PTHREAD_CFLAGS=""
16904done
16905fi
16906
16907# Various other checks:
16908if test "x$ax_pthread_ok" = xyes; then
16909        save_LIBS="$LIBS"
16910        LIBS="$PTHREAD_LIBS $LIBS"
16911        save_CFLAGS="$CFLAGS"
16912        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16913
16914        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16915        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16916$as_echo_n "checking for joinable pthread attribute... " >&6; }
16917        attr_name=unknown
16918        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16919            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920/* end confdefs.h.  */
16921#include <pthread.h>
16922int
16923main ()
16924{
16925int attr = $attr; return attr /* ; */
16926  ;
16927  return 0;
16928}
16929_ACEOF
16930if ac_fn_c_try_link "$LINENO"; then :
16931  attr_name=$attr; break
16932fi
16933rm -f core conftest.err conftest.$ac_objext \
16934    conftest$ac_exeext conftest.$ac_ext
16935        done
16936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16937$as_echo "$attr_name" >&6; }
16938        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16939
16940cat >>confdefs.h <<_ACEOF
16941#define PTHREAD_CREATE_JOINABLE $attr_name
16942_ACEOF
16943
16944        fi
16945
16946        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16947$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16948        flag=no
16949        case ${host_os} in
16950            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16951            osf* | hpux*) flag="-D_REENTRANT";;
16952            solaris*)
16953            if test "$GCC" = "yes"; then
16954                flag="-D_REENTRANT"
16955            else
16956                # TODO: What about Clang on Solaris?
16957                flag="-mt -D_REENTRANT"
16958            fi
16959            ;;
16960        esac
16961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16962$as_echo "$flag" >&6; }
16963        if test "x$flag" != xno; then
16964            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16965        fi
16966
16967        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16968$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16969if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16970  $as_echo_n "(cached) " >&6
16971else
16972
16973                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975#include <pthread.h>
16976int
16977main ()
16978{
16979int i = PTHREAD_PRIO_INHERIT;
16980  ;
16981  return 0;
16982}
16983_ACEOF
16984if ac_fn_c_try_link "$LINENO"; then :
16985  ax_cv_PTHREAD_PRIO_INHERIT=yes
16986else
16987  ax_cv_PTHREAD_PRIO_INHERIT=no
16988fi
16989rm -f core conftest.err conftest.$ac_objext \
16990    conftest$ac_exeext conftest.$ac_ext
16991
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16994$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16995        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16996
16997$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16998
16999fi
17000
17001        LIBS="$save_LIBS"
17002        CFLAGS="$save_CFLAGS"
17003
17004        # More AIX lossage: compile with *_r variant
17005        if test "x$GCC" != xyes; then
17006            case $host_os in
17007                aix*)
17008                case "x/$CC" in #(
17009  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17010    #handle absolute path differently from PATH based program lookup
17011                   case "x$CC" in #(
17012  x/*) :
17013    if as_fn_executable_p ${CC}_r; then :
17014  PTHREAD_CC="${CC}_r"
17015fi ;; #(
17016  *) :
17017    for ac_prog in ${CC}_r
17018do
17019  # Extract the first word of "$ac_prog", so it can be a program name with args.
17020set dummy $ac_prog; ac_word=$2
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022$as_echo_n "checking for $ac_word... " >&6; }
17023if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17024  $as_echo_n "(cached) " >&6
17025else
17026  if test -n "$PTHREAD_CC"; then
17027  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17028else
17029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030for as_dir in $PATH
17031do
17032  IFS=$as_save_IFS
17033  test -z "$as_dir" && as_dir=.
17034    for ac_exec_ext in '' $ac_executable_extensions; do
17035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17036    ac_cv_prog_PTHREAD_CC="$ac_prog"
17037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17038    break 2
17039  fi
17040done
17041  done
17042IFS=$as_save_IFS
17043
17044fi
17045fi
17046PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17047if test -n "$PTHREAD_CC"; then
17048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17049$as_echo "$PTHREAD_CC" >&6; }
17050else
17051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052$as_echo "no" >&6; }
17053fi
17054
17055
17056  test -n "$PTHREAD_CC" && break
17057done
17058test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17059 ;;
17060esac ;; #(
17061  *) :
17062     ;;
17063esac
17064                ;;
17065            esac
17066        fi
17067fi
17068
17069test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17070
17071
17072
17073
17074
17075# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17076if test x"$ax_pthread_ok" = xyes; then
17077
17078
17079$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17080
17081		if test -n "$PTHREAD_LIBS"; then
17082		  LIBS="$PTHREAD_LIBS $LIBS"
17083		fi
17084		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17085		CC="$PTHREAD_CC"
17086		ub_have_pthreads=yes
17087		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
17088"
17089if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
17090
17091cat >>confdefs.h <<_ACEOF
17092#define HAVE_PTHREAD_SPINLOCK_T 1
17093_ACEOF
17094
17095
17096fi
17097ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17098"
17099if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17100
17101cat >>confdefs.h <<_ACEOF
17102#define HAVE_PTHREAD_RWLOCK_T 1
17103_ACEOF
17104
17105
17106fi
17107
17108		# The cast to long int works around a bug in the HP C Compiler
17109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17111# This bug is HP SR number 8606223364.
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17113$as_echo_n "checking size of unsigned long... " >&6; }
17114if ${ac_cv_sizeof_unsigned_long+:} false; then :
17115  $as_echo_n "(cached) " >&6
17116else
17117  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
17118
17119else
17120  if test "$ac_cv_type_unsigned_long" = yes; then
17121     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17123as_fn_error 77 "cannot compute sizeof (unsigned long)
17124See \`config.log' for more details" "$LINENO" 5; }
17125   else
17126     ac_cv_sizeof_unsigned_long=0
17127   fi
17128fi
17129
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17132$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17133
17134
17135
17136cat >>confdefs.h <<_ACEOF
17137#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17138_ACEOF
17139
17140
17141		# The cast to long int works around a bug in the HP C Compiler
17142# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17143# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17144# This bug is HP SR number 8606223364.
17145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
17146$as_echo_n "checking size of pthread_t... " >&6; }
17147if ${ac_cv_sizeof_pthread_t+:} false; then :
17148  $as_echo_n "(cached) " >&6
17149else
17150  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"; then :
17151
17152else
17153  if test "$ac_cv_type_pthread_t" = yes; then
17154     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17156as_fn_error 77 "cannot compute sizeof (pthread_t)
17157See \`config.log' for more details" "$LINENO" 5; }
17158   else
17159     ac_cv_sizeof_pthread_t=0
17160   fi
17161fi
17162
17163fi
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
17165$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
17166
17167
17168
17169cat >>confdefs.h <<_ACEOF
17170#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
17171_ACEOF
17172
17173
17174
17175		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17177$as_echo_n "checking if -pthread unused during linking... " >&6; }
17178		# catch clang warning 'argument unused during compilation'
17179		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180/* end confdefs.h.  */
17181$ac_includes_default
17182
17183int main(void) {return 0;}
17184
17185_ACEOF
17186		pthread_unused="yes"
17187		# first compile
17188		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17189		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17190		if test $? = 0; then
17191			# then link
17192			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17193			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17194			if test $? -ne 0; then
17195				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17196$as_echo "yes" >&6; }
17197				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17198				PTHREAD_CFLAGS_ONLY="-pthread"
17199
17200			else
17201				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202$as_echo "no" >&6; }
17203			fi
17204		else
17205			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206$as_echo "no" >&6; }
17207		fi # endif cc successful
17208		rm -f conftest conftest.c conftest.o
17209		fi # endif -pthread in CFLAGS
17210
17211
17212        :
17213else
17214        ax_pthread_ok=no
17215
17216fi
17217ac_ext=c
17218ac_cpp='$CPP $CPPFLAGS'
17219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222
17223
17224fi
17225
17226# check solaris thread library
17227
17228# Check whether --with-solaris-threads was given.
17229if test "${with_solaris_threads+set}" = set; then :
17230  withval=$with_solaris_threads;
17231else
17232   withval="no"
17233fi
17234
17235ub_have_sol_threads=no
17236if test x_$withval != x_no; then
17237	if test x_$ub_have_pthreads != x_no; then
17238	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17239$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17240	else
17241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17242$as_echo_n "checking for library containing thr_create... " >&6; }
17243if ${ac_cv_search_thr_create+:} false; then :
17244  $as_echo_n "(cached) " >&6
17245else
17246  ac_func_search_save_LIBS=$LIBS
17247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248/* end confdefs.h.  */
17249
17250/* Override any GCC internal prototype to avoid an error.
17251   Use char because int might match the return type of a GCC
17252   builtin and then its argument prototype would still apply.  */
17253#ifdef __cplusplus
17254extern "C"
17255#endif
17256char thr_create ();
17257int
17258main ()
17259{
17260return thr_create ();
17261  ;
17262  return 0;
17263}
17264_ACEOF
17265for ac_lib in '' thread; do
17266  if test -z "$ac_lib"; then
17267    ac_res="none required"
17268  else
17269    ac_res=-l$ac_lib
17270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17271  fi
17272  if ac_fn_c_try_link "$LINENO"; then :
17273  ac_cv_search_thr_create=$ac_res
17274fi
17275rm -f core conftest.err conftest.$ac_objext \
17276    conftest$ac_exeext
17277  if ${ac_cv_search_thr_create+:} false; then :
17278  break
17279fi
17280done
17281if ${ac_cv_search_thr_create+:} false; then :
17282
17283else
17284  ac_cv_search_thr_create=no
17285fi
17286rm conftest.$ac_ext
17287LIBS=$ac_func_search_save_LIBS
17288fi
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17290$as_echo "$ac_cv_search_thr_create" >&6; }
17291ac_res=$ac_cv_search_thr_create
17292if test "$ac_res" != no; then :
17293  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17294
17295
17296$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17297
17298
17299
17300
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17302$as_echo_n "checking whether $CC supports -mt... " >&6; }
17303cache=`echo mt | sed 'y%.=/+-%___p_%'`
17304if eval \${cv_prog_cc_flag_$cache+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307
17308echo 'void f(void){}' >conftest.c
17309if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17310eval "cv_prog_cc_flag_$cache=yes"
17311else
17312eval "cv_prog_cc_flag_$cache=no"
17313fi
17314rm -f conftest conftest.o conftest.c
17315
17316fi
17317
17318if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320$as_echo "yes" >&6; }
17321:
17322CFLAGS="$CFLAGS -mt"
17323else
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325$as_echo "no" >&6; }
17326:
17327CFLAGS="$CFLAGS -D_REENTRANT"
17328fi
17329
17330		ub_have_sol_threads=yes
17331
17332else
17333
17334		as_fn_error $? "no solaris threads found." "$LINENO" 5
17335
17336fi
17337
17338	fi
17339fi
17340
17341fi # end of non-mingw check of thread libraries
17342
17343# Check for SYSLOG_FACILITY
17344
17345# Check whether --with-syslog-facility was given.
17346if test "${with_syslog_facility+set}" = set; then :
17347  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
17348fi
17349
17350case "${UNBOUND_SYSLOG_FACILITY}" in
17351
17352  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17353
17354           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17355
17356esac
17357
17358cat >>confdefs.h <<_ACEOF
17359#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17360_ACEOF
17361
17362
17363# Check for dynamic library module
17364
17365# Check whether --with-dynlibmodule was given.
17366if test "${with_dynlibmodule+set}" = set; then :
17367  withval=$with_dynlibmodule;
17368else
17369   withval="no"
17370fi
17371
17372
17373if test x_$withval != x_no; then
17374
17375$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17376
17377  WITH_DYNLIBMODULE=yes
17378
17379  DYNLIBMOD_OBJ="dynlibmod.lo"
17380
17381  DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17382
17383  if test $on_mingw = "no"; then
17384    # link with -ldl if not already there, for all executables because
17385    # dlopen call is in the dynlib module.  For unbound executable, also
17386    # export symbols.
17387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17388$as_echo_n "checking for library containing dlopen... " >&6; }
17389if ${ac_cv_search_dlopen+:} false; then :
17390  $as_echo_n "(cached) " >&6
17391else
17392  ac_func_search_save_LIBS=$LIBS
17393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394/* end confdefs.h.  */
17395
17396/* Override any GCC internal prototype to avoid an error.
17397   Use char because int might match the return type of a GCC
17398   builtin and then its argument prototype would still apply.  */
17399#ifdef __cplusplus
17400extern "C"
17401#endif
17402char dlopen ();
17403int
17404main ()
17405{
17406return dlopen ();
17407  ;
17408  return 0;
17409}
17410_ACEOF
17411for ac_lib in '' dl; do
17412  if test -z "$ac_lib"; then
17413    ac_res="none required"
17414  else
17415    ac_res=-l$ac_lib
17416    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17417  fi
17418  if ac_fn_c_try_link "$LINENO"; then :
17419  ac_cv_search_dlopen=$ac_res
17420fi
17421rm -f core conftest.err conftest.$ac_objext \
17422    conftest$ac_exeext
17423  if ${ac_cv_search_dlopen+:} false; then :
17424  break
17425fi
17426done
17427if ${ac_cv_search_dlopen+:} false; then :
17428
17429else
17430  ac_cv_search_dlopen=no
17431fi
17432rm conftest.$ac_ext
17433LIBS=$ac_func_search_save_LIBS
17434fi
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17436$as_echo "$ac_cv_search_dlopen" >&6; }
17437ac_res=$ac_cv_search_dlopen
17438if test "$ac_res" != no; then :
17439  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17440
17441fi
17442
17443    DYNLIBMOD_EXTRALIBS="-export-dynamic"
17444  else
17445    DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17446  fi
17447
17448fi
17449
17450# Check for PyUnbound
17451
17452# Check whether --with-pyunbound was given.
17453if test "${with_pyunbound+set}" = set; then :
17454  withval=$with_pyunbound;
17455else
17456   withval="no"
17457fi
17458
17459
17460ub_test_python=no
17461ub_with_pyunbound=no
17462if test x_$withval != x_no; then
17463   ub_with_pyunbound=yes
17464   ub_test_python=yes
17465fi
17466
17467# Check for Python module
17468
17469# Check whether --with-pythonmodule was given.
17470if test "${with_pythonmodule+set}" = set; then :
17471  withval=$with_pythonmodule;
17472else
17473   withval="no"
17474fi
17475
17476
17477ub_with_pythonmod=no
17478if test x_$withval != x_no; then
17479   ub_with_pythonmod=yes
17480   ub_test_python=yes
17481fi
17482
17483# Check for Python & SWIG only on PyUnbound or PyModule
17484if test x_$ub_test_python != x_no; then
17485
17486   # Check for Python
17487   ub_have_python=no
17488   ac_save_LIBS="$LIBS"
17489        #
17490        # Allow the use of a (user set) custom python version
17491        #
17492
17493
17494        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17495set dummy python$PYTHON_VERSION; ac_word=$2
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17497$as_echo_n "checking for $ac_word... " >&6; }
17498if ${ac_cv_path_PYTHON+:} false; then :
17499  $as_echo_n "(cached) " >&6
17500else
17501  case $PYTHON in
17502  [\\/]* | ?:[\\/]*)
17503  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17504  ;;
17505  *)
17506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507for as_dir in $PATH
17508do
17509  IFS=$as_save_IFS
17510  test -z "$as_dir" && as_dir=.
17511    for ac_exec_ext in '' $ac_executable_extensions; do
17512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17513    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17515    break 2
17516  fi
17517done
17518  done
17519IFS=$as_save_IFS
17520
17521  ;;
17522esac
17523fi
17524PYTHON=$ac_cv_path_PYTHON
17525if test -n "$PYTHON"; then
17526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17527$as_echo "$PYTHON" >&6; }
17528else
17529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17530$as_echo "no" >&6; }
17531fi
17532
17533
17534        if test -z "$PYTHON"; then
17535           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17536           PYTHON_VERSION=""
17537        fi
17538
17539        if test -z "$PYTHON_VERSION"; then
17540		PYTHON_VERSION=`$PYTHON -c "import sys; \
17541			print(sys.version.split()[0])"`
17542	fi
17543
17544	# Check if you have sysconfig
17545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python module" >&5
17546$as_echo_n "checking for the sysconfig Python module... " >&6; }
17547        if ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`; then
17548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17549$as_echo "yes" >&6; }
17550		sysconfig_module="sysconfig"
17551		# if yes, use sysconfig, because distutils is deprecated.
17552	else
17553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554$as_echo "no" >&6; }
17555		# if no, try to use distutils
17556
17557		#
17558		# Check if you have distutils, else fail
17559		#
17560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17561$as_echo_n "checking for the distutils Python package... " >&6; }
17562		if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17563			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17564$as_echo "yes" >&6; }
17565		else
17566			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567$as_echo "no" >&6; }
17568			as_fn_error $? "cannot import Python module \"distutils\".
17569	Please check your Python installation. The error was:
17570	$ac_distutils_result" "$LINENO" 5
17571			PYTHON_VERSION=""
17572		fi
17573
17574		sysconfig_module="distutils.sysconfig"
17575	fi
17576
17577        #
17578        # Check for Python include path
17579        #
17580        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17581$as_echo_n "checking for Python include path... " >&6; }
17582        if test -z "$PYTHON_CPPFLAGS"; then
17583		if test "$sysconfig_module" = "sysconfig"; then
17584			python_path=`$PYTHON -c 'import sysconfig; \
17585				print(sysconfig.get_path("include"));'`
17586		else
17587			python_path=`$PYTHON -c "import distutils.sysconfig; \
17588				print(distutils.sysconfig.get_python_inc());"`
17589		fi
17590                if test -n "${python_path}"; then
17591                        python_path="-I$python_path"
17592                fi
17593                PYTHON_CPPFLAGS=$python_path
17594        fi
17595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17596$as_echo "$PYTHON_CPPFLAGS" >&6; }
17597
17598
17599        #
17600        # Check for Python library path
17601        #
17602        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17603$as_echo_n "checking for Python library path... " >&6; }
17604        if test -z "$PYTHON_LDFLAGS"; then
17605                PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17606                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17607        fi
17608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17609$as_echo "$PYTHON_LDFLAGS" >&6; }
17610
17611
17612        if test -z "$PYTHON_LIBDIR"; then
17613                PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17614                        print(get_config_var('LIBDIR'));"`
17615        fi
17616
17617        #
17618        # Check for site packages
17619        #
17620        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17621$as_echo_n "checking for Python site-packages path... " >&6; }
17622        if test -z "$PYTHON_SITE_PKG"; then
17623		if test "$sysconfig_module" = "sysconfig"; then
17624			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17625				print(sysconfig.get_path("platlib"));'`
17626		else
17627			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17628				print(distutils.sysconfig.get_python_lib(1,0));"`
17629		fi
17630        fi
17631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17632$as_echo "$PYTHON_SITE_PKG" >&6; }
17633
17634
17635        #
17636        # final check to see if everything compiles alright
17637        #
17638        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17639$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17640        ac_ext=c
17641ac_cpp='$CPP $CPPFLAGS'
17642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645
17646        # save current global flags
17647        ac_save_LIBS="$LIBS"
17648        ac_save_CPPFLAGS="$CPPFLAGS"
17649
17650        LIBS="$LIBS $PYTHON_LDFLAGS"
17651        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17652        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654
17655                #include <Python.h>
17656
17657int
17658main ()
17659{
17660
17661                Py_Initialize();
17662
17663  ;
17664  return 0;
17665}
17666_ACEOF
17667if ac_fn_c_try_link "$LINENO"; then :
17668  pythonexists=yes
17669else
17670  pythonexists=no
17671fi
17672rm -f core conftest.err conftest.$ac_objext \
17673    conftest$ac_exeext conftest.$ac_ext
17674
17675        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17676$as_echo "$pythonexists" >&6; }
17677
17678        if test ! "$pythonexists" = "yes"; then
17679           as_fn_error $? "
17680  Could not link test program to Python. Maybe the main Python library has been
17681  installed in some non-standard library path. If so, pass it to configure,
17682  via the LDFLAGS environment variable.
17683  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17684  ============================================================================
17685   ERROR!
17686   You probably have to install the development version of the Python package
17687   for your distribution.  The exact name of this package varies among them.
17688  ============================================================================
17689           " "$LINENO" 5
17690          PYTHON_VERSION=""
17691        fi
17692        ac_ext=c
17693ac_cpp='$CPP $CPPFLAGS'
17694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697
17698        # turn back to default flags
17699        CPPFLAGS="$ac_save_CPPFLAGS"
17700        LIBS="$ac_save_LIBS"
17701
17702        #
17703        # all done!
17704        #
17705
17706   if test ! -z "$PYTHON_VERSION"; then
17707	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17708		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17709	fi
17710
17711      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17712
17713      # Have Python
17714
17715$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17716
17717      if test x_$ub_with_pythonmod != x_no; then
17718        if test -n "$LIBS"; then
17719          LIBS="$PYTHON_LDFLAGS $LIBS"
17720        else
17721          LIBS="$PYTHON_LDFLAGS"
17722        fi
17723      fi
17724      PYTHON_LIBS="$PYTHON_LDFLAGS"
17725
17726      if test -n "$CPPFLAGS"; then
17727        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17728      else
17729        CPPFLAGS="$PYTHON_CPPFLAGS"
17730      fi
17731      if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17732
17733	if test "x$enable_rpath" = xyes; then
17734		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17735			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17736		fi
17737	fi
17738
17739      fi
17740      ub_have_python=yes
17741      if test -n "$PKG_CONFIG" && \
17742    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17743  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17744  ac_status=$?
17745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746  test $ac_status = 0; }; then
17747  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17748else
17749  PC_PY_DEPENDENCY="python"
17750fi
17751
17752
17753      # Check for SWIG
17754      ub_have_swig=no
17755      # Check whether --enable-swig-version-check was given.
17756if test "${enable_swig_version_check+set}" = set; then :
17757  enableval=$enable_swig_version_check;
17758fi
17759
17760      if test "$enable_swig_version_check" = "yes"; then
17761
17762        # Extract the first word of "swig", so it can be a program name with args.
17763set dummy swig; ac_word=$2
17764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17765$as_echo_n "checking for $ac_word... " >&6; }
17766if ${ac_cv_path_SWIG+:} false; then :
17767  $as_echo_n "(cached) " >&6
17768else
17769  case $SWIG in
17770  [\\/]* | ?:[\\/]*)
17771  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17772  ;;
17773  *)
17774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17775for as_dir in $PATH
17776do
17777  IFS=$as_save_IFS
17778  test -z "$as_dir" && as_dir=.
17779    for ac_exec_ext in '' $ac_executable_extensions; do
17780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17781    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17783    break 2
17784  fi
17785done
17786  done
17787IFS=$as_save_IFS
17788
17789  ;;
17790esac
17791fi
17792SWIG=$ac_cv_path_SWIG
17793if test -n "$SWIG"; then
17794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17795$as_echo "$SWIG" >&6; }
17796else
17797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17798$as_echo "no" >&6; }
17799fi
17800
17801
17802        if test -z "$SWIG" ; then
17803                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17804$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17805                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17806        elif test -n "2.0.1" ; then
17807                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17808$as_echo_n "checking for SWIG version... " >&6; }
17809                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'`
17810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17811$as_echo "$swig_version" >&6; }
17812                if test -n "$swig_version" ; then
17813                        # Calculate the required version number components
17814                        required=2.0.1
17815                        required_major=`echo $required | sed 's/[^0-9].*//'`
17816                        if test -z "$required_major" ; then
17817                                required_major=0
17818                        fi
17819                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17820                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17821                        if test -z "$required_minor" ; then
17822                                required_minor=0
17823                        fi
17824                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17825                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17826                        if test -z "$required_patch" ; then
17827                                required_patch=0
17828                        fi
17829                        # Calculate the available version number components
17830                        available=$swig_version
17831                        available_major=`echo $available | sed 's/[^0-9].*//'`
17832                        if test -z "$available_major" ; then
17833                                available_major=0
17834                        fi
17835                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17836                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17837                        if test -z "$available_minor" ; then
17838                                available_minor=0
17839                        fi
17840                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17841                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17842                        if test -z "$available_patch" ; then
17843                                available_patch=0
17844                        fi
17845			badversion=0
17846			if test $available_major -lt $required_major ; then
17847				badversion=1
17848			fi
17849                        if test $available_major -eq $required_major \
17850                                -a $available_minor -lt $required_minor ; then
17851				badversion=1
17852			fi
17853                        if test $available_major -eq $required_major \
17854                                -a $available_minor -eq $required_minor \
17855                                -a $available_patch -lt $required_patch ; then
17856				badversion=1
17857			fi
17858			if test $badversion -eq 1 ; then
17859                                { $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
17860$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;}
17861                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17862                        else
17863                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17864$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17865                                SWIG_LIB=`$SWIG -swiglib`
17866                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17867$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17868                        fi
17869                else
17870                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17871$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17872                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17873                fi
17874        fi
17875
17876
17877      else
17878
17879        # Extract the first word of "swig", so it can be a program name with args.
17880set dummy swig; ac_word=$2
17881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882$as_echo_n "checking for $ac_word... " >&6; }
17883if ${ac_cv_path_SWIG+:} false; then :
17884  $as_echo_n "(cached) " >&6
17885else
17886  case $SWIG in
17887  [\\/]* | ?:[\\/]*)
17888  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17889  ;;
17890  *)
17891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892for as_dir in $PATH
17893do
17894  IFS=$as_save_IFS
17895  test -z "$as_dir" && as_dir=.
17896    for ac_exec_ext in '' $ac_executable_extensions; do
17897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17898    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17900    break 2
17901  fi
17902done
17903  done
17904IFS=$as_save_IFS
17905
17906  ;;
17907esac
17908fi
17909SWIG=$ac_cv_path_SWIG
17910if test -n "$SWIG"; then
17911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17912$as_echo "$SWIG" >&6; }
17913else
17914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915$as_echo "no" >&6; }
17916fi
17917
17918
17919        if test -z "$SWIG" ; then
17920                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17921$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17922                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17923        elif test -n "" ; then
17924                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17925$as_echo_n "checking for SWIG version... " >&6; }
17926                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'`
17927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17928$as_echo "$swig_version" >&6; }
17929                if test -n "$swig_version" ; then
17930                        # Calculate the required version number components
17931                        required=
17932                        required_major=`echo $required | sed 's/[^0-9].*//'`
17933                        if test -z "$required_major" ; then
17934                                required_major=0
17935                        fi
17936                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17937                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17938                        if test -z "$required_minor" ; then
17939                                required_minor=0
17940                        fi
17941                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17942                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17943                        if test -z "$required_patch" ; then
17944                                required_patch=0
17945                        fi
17946                        # Calculate the available version number components
17947                        available=$swig_version
17948                        available_major=`echo $available | sed 's/[^0-9].*//'`
17949                        if test -z "$available_major" ; then
17950                                available_major=0
17951                        fi
17952                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17953                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17954                        if test -z "$available_minor" ; then
17955                                available_minor=0
17956                        fi
17957                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17958                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17959                        if test -z "$available_patch" ; then
17960                                available_patch=0
17961                        fi
17962			badversion=0
17963			if test $available_major -lt $required_major ; then
17964				badversion=1
17965			fi
17966                        if test $available_major -eq $required_major \
17967                                -a $available_minor -lt $required_minor ; then
17968				badversion=1
17969			fi
17970                        if test $available_major -eq $required_major \
17971                                -a $available_minor -eq $required_minor \
17972                                -a $available_patch -lt $required_patch ; then
17973				badversion=1
17974			fi
17975			if test $badversion -eq 1 ; then
17976                                { $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
17977$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17978                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17979                        else
17980                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17981$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17982                                SWIG_LIB=`$SWIG -swiglib`
17983                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17984$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17985                        fi
17986                else
17987                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17988$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17989                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17990                fi
17991        fi
17992
17993
17994      fi
17995      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17996$as_echo_n "checking SWIG... " >&6; }
17997      if test ! -x "$SWIG"; then
17998         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17999      else
18000
18001$as_echo "#define HAVE_SWIG 1" >>confdefs.h
18002
18003         swig="$SWIG"
18004
18005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
18006$as_echo "present" >&6; }
18007
18008         # If have Python & SWIG
18009         # Declare PythonMod
18010         if test x_$ub_with_pythonmod != x_no; then
18011
18012$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
18013
18014            WITH_PYTHONMODULE=yes
18015
18016	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
18017
18018	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
18019
18020	    PYTHONMOD_INSTALL=pythonmod-install
18021
18022	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
18023
18024         fi
18025
18026         # Declare PyUnbound
18027         if test x_$ub_with_pyunbound != x_no; then
18028
18029$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
18030
18031            WITH_PYUNBOUND=yes
18032
18033	    PYUNBOUND_OBJ="libunbound_wrap.lo"
18034
18035	    PYUNBOUND_TARGET="_unbound.la"
18036
18037	    PYUNBOUND_INSTALL=pyunbound-install
18038
18039	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
18040
18041         fi
18042      fi
18043   else
18044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
18045$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
18046      ub_with_pyunbound=no
18047      ub_with_pythonmod=no
18048   fi
18049fi
18050
18051if test "`uname`" = "NetBSD"; then
18052	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
18053
18054fi
18055
18056if test "`uname`" = "Linux"; then
18057	# splint cannot parse modern c99 header files
18058	GCC_DOCKER_LINTFLAGS='-syntax'
18059
18060fi
18061CONFIG_DATE=`date +%Y%m%d`
18062
18063
18064# Checks for libraries.
18065
18066# libnss
18067USE_NSS="no"
18068
18069# Check whether --with-nss was given.
18070if test "${with_nss+set}" = set; then :
18071  withval=$with_nss;
18072	USE_NSS="yes"
18073
18074$as_echo "#define HAVE_NSS 1" >>confdefs.h
18075
18076	if test "$withval" != "" -a "$withval" != "yes"; then
18077		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
18078		LDFLAGS="$LDFLAGS -L$withval/lib"
18079
18080	if test "x$enable_rpath" = xyes; then
18081		if echo "$withval/lib" | grep "^/" >/dev/null; then
18082			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18083		fi
18084	fi
18085
18086		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
18087	else
18088		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
18089		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
18090	fi
18091        LIBS="$LIBS -lnss3 -lnspr4"
18092	SSLLIB=""
18093	PC_CRYPTO_DEPENDENCY="nss nspr"
18094
18095
18096
18097fi
18098
18099
18100# libnettle
18101USE_NETTLE="no"
18102
18103# Check whether --with-nettle was given.
18104if test "${with_nettle+set}" = set; then :
18105  withval=$with_nettle;
18106	USE_NETTLE="yes"
18107
18108$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
18109
18110	for ac_header in nettle/dsa-compat.h
18111do :
18112  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
18113"
18114if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
18115  cat >>confdefs.h <<_ACEOF
18116#define HAVE_NETTLE_DSA_COMPAT_H 1
18117_ACEOF
18118
18119fi
18120
18121done
18122
18123	if test "$withval" != "" -a "$withval" != "yes"; then
18124		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
18125		LDFLAGS="$LDFLAGS -L$withval/lib"
18126
18127	if test "x$enable_rpath" = xyes; then
18128		if echo "$withval/lib" | grep "^/" >/dev/null; then
18129			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18130		fi
18131	fi
18132
18133	else
18134		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
18135	fi
18136        LIBS="$LIBS -lhogweed -lnettle -lgmp"
18137	SSLLIB=""
18138	PC_CRYPTO_DEPENDENCY="hogweed nettle"
18139
18140
18141
18142fi
18143
18144
18145# openssl
18146if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18147
18148
18149# Check whether --with-ssl was given.
18150if test "${with_ssl+set}" = set; then :
18151  withval=$with_ssl;
18152
18153else
18154
18155            withval="yes"
18156
18157fi
18158
18159    if test x_$withval = x_no; then
18160	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
18161    fi
18162
18163    withval=$withval
18164    if test x_$withval != x_no; then
18165        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18166$as_echo_n "checking for SSL... " >&6; }
18167	if test -n "$withval"; then
18168										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
18169			ssldir="$withval"
18170			found_ssl="yes"
18171			withval=""
18172			ssldir_include="$ssldir"
18173						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
18174			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18175				: # found here
18176			else
18177				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
18178				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18179					: # found here
18180				else
18181					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18182				fi
18183			fi
18184		fi
18185	fi
18186        if test x_$withval = x_ -o x_$withval = x_yes; then
18187            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18188        fi
18189        for dir in $withval; do
18190            ssldir="$dir"
18191            if test -f "$dir/include/openssl/ssl.h"; then
18192                found_ssl="yes"
18193		ssldir_include="$ssldir/include"
18194		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18195			ssldir_lib="$ssldir/lib64"
18196		else
18197			ssldir_lib="$ssldir/lib"
18198		fi
18199                break;
18200            fi
18201        done
18202        if test x_$found_ssl != x_yes; then
18203            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18204        else
18205            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18206$as_echo "found in $ssldir" >&6; }
18207
18208cat >>confdefs.h <<_ACEOF
18209#define HAVE_SSL /**/
18210_ACEOF
18211
18212            HAVE_SSL=yes
18213	                if test "$ssldir" != "/usr"; then
18214		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18215		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18216		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
18217		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18218
18219	if test "x$enable_rpath" = xyes; then
18220		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18221			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18222		fi
18223	fi
18224
18225	    fi
18226
18227            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18228$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18229            LIBS="$LIBS -lcrypto"
18230            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18231            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233
18234int
18235main ()
18236{
18237
18238                int EVP_sha256(void);
18239                (void)EVP_sha256();
18240
18241  ;
18242  return 0;
18243}
18244_ACEOF
18245if ac_fn_c_try_link "$LINENO"; then :
18246
18247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18248$as_echo "yes" >&6; }
18249
18250$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18251
18252
18253else
18254
18255                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256$as_echo "no" >&6; }
18257                # check if -lwsock32 or -lgdi32 are needed.
18258                BAKLIBS="$LIBS"
18259                BAKSSLLIBS="$LIBSSL_LIBS"
18260		LIBS="$LIBS -lgdi32 -lws2_32"
18261		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18262                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18263$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18264                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265/* end confdefs.h.  */
18266
18267int
18268main ()
18269{
18270
18271                    int EVP_sha256(void);
18272                    (void)EVP_sha256();
18273
18274  ;
18275  return 0;
18276}
18277_ACEOF
18278if ac_fn_c_try_link "$LINENO"; then :
18279
18280
18281$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18282
18283                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18284$as_echo "yes" >&6; }
18285
18286else
18287
18288                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289$as_echo "no" >&6; }
18290                    LIBS="$BAKLIBS"
18291                    LIBSSL_LIBS="$BAKSSLLIBS"
18292                    LIBS="$LIBS -ldl"
18293                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18294                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18295$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18296                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297/* end confdefs.h.  */
18298
18299int
18300main ()
18301{
18302
18303                        int EVP_sha256(void);
18304                        (void)EVP_sha256();
18305
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310if ac_fn_c_try_link "$LINENO"; then :
18311
18312
18313$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18314
18315                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316$as_echo "yes" >&6; }
18317
18318else
18319
18320                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321$as_echo "no" >&6; }
18322                        LIBS="$BAKLIBS"
18323                        LIBSSL_LIBS="$BAKSSLLIBS"
18324                        LIBS="$LIBS -ldl -pthread"
18325                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18326                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18327$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18328                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329/* end confdefs.h.  */
18330
18331int
18332main ()
18333{
18334
18335                            int EVP_sha256(void);
18336                            (void)EVP_sha256();
18337
18338  ;
18339  return 0;
18340}
18341_ACEOF
18342if ac_fn_c_try_link "$LINENO"; then :
18343
18344
18345$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18346
18347                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18348$as_echo "yes" >&6; }
18349
18350else
18351
18352                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353$as_echo "no" >&6; }
18354                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18355
18356fi
18357rm -f core conftest.err conftest.$ac_objext \
18358    conftest$ac_exeext conftest.$ac_ext
18359
18360fi
18361rm -f core conftest.err conftest.$ac_objext \
18362    conftest$ac_exeext conftest.$ac_ext
18363
18364fi
18365rm -f core conftest.err conftest.$ac_objext \
18366    conftest$ac_exeext conftest.$ac_ext
18367
18368fi
18369rm -f core conftest.err conftest.$ac_objext \
18370    conftest$ac_exeext conftest.$ac_ext
18371        fi
18372
18373
18374    fi
18375for ac_header in openssl/ssl.h
18376do :
18377  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18378"
18379if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18380  cat >>confdefs.h <<_ACEOF
18381#define HAVE_OPENSSL_SSL_H 1
18382_ACEOF
18383
18384fi
18385
18386done
18387
18388for ac_header in openssl/err.h
18389do :
18390  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18391"
18392if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18393  cat >>confdefs.h <<_ACEOF
18394#define HAVE_OPENSSL_ERR_H 1
18395_ACEOF
18396
18397fi
18398
18399done
18400
18401for ac_header in openssl/rand.h
18402do :
18403  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18404"
18405if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18406  cat >>confdefs.h <<_ACEOF
18407#define HAVE_OPENSSL_RAND_H 1
18408_ACEOF
18409
18410fi
18411
18412done
18413
18414
18415
18416
18417# check if libssl needs libdl
18418BAKLIBS="$LIBS"
18419LIBS="-lssl $LIBS"
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18421$as_echo_n "checking if libssl needs libdl... " >&6; }
18422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423/* end confdefs.h.  */
18424
18425/* Override any GCC internal prototype to avoid an error.
18426   Use char because int might match the return type of a GCC
18427   builtin and then its argument prototype would still apply.  */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char SSL_CTX_new ();
18432int
18433main ()
18434{
18435return SSL_CTX_new ();
18436  ;
18437  return 0;
18438}
18439_ACEOF
18440if ac_fn_c_try_link "$LINENO"; then :
18441
18442	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443$as_echo "no" >&6; }
18444	LIBS="$BAKLIBS"
18445
18446else
18447
18448	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18449$as_echo "yes" >&6; }
18450	LIBS="$BAKLIBS"
18451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18452$as_echo_n "checking for library containing dlopen... " >&6; }
18453if ${ac_cv_search_dlopen+:} false; then :
18454  $as_echo_n "(cached) " >&6
18455else
18456  ac_func_search_save_LIBS=$LIBS
18457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459
18460/* Override any GCC internal prototype to avoid an error.
18461   Use char because int might match the return type of a GCC
18462   builtin and then its argument prototype would still apply.  */
18463#ifdef __cplusplus
18464extern "C"
18465#endif
18466char dlopen ();
18467int
18468main ()
18469{
18470return dlopen ();
18471  ;
18472  return 0;
18473}
18474_ACEOF
18475for ac_lib in '' dl; do
18476  if test -z "$ac_lib"; then
18477    ac_res="none required"
18478  else
18479    ac_res=-l$ac_lib
18480    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18481  fi
18482  if ac_fn_c_try_link "$LINENO"; then :
18483  ac_cv_search_dlopen=$ac_res
18484fi
18485rm -f core conftest.err conftest.$ac_objext \
18486    conftest$ac_exeext
18487  if ${ac_cv_search_dlopen+:} false; then :
18488  break
18489fi
18490done
18491if ${ac_cv_search_dlopen+:} false; then :
18492
18493else
18494  ac_cv_search_dlopen=no
18495fi
18496rm conftest.$ac_ext
18497LIBS=$ac_func_search_save_LIBS
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18500$as_echo "$ac_cv_search_dlopen" >&6; }
18501ac_res=$ac_cv_search_dlopen
18502if test "$ac_res" != no; then :
18503  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18504
18505fi
18506
18507
18508fi
18509rm -f core conftest.err conftest.$ac_objext \
18510    conftest$ac_exeext conftest.$ac_ext
18511SSLLIB="-lssl"
18512
18513PC_CRYPTO_DEPENDENCY=""
18514
18515
18516# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18517BAKLIBS="$LIBS"
18518LIBS="-lssl $LIBS"
18519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18520$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522/* end confdefs.h.  */
18523
18524int
18525main ()
18526{
18527
18528	int EVP_sha256(void);
18529	(void)EVP_sha256();
18530
18531  ;
18532  return 0;
18533}
18534_ACEOF
18535if ac_fn_c_try_link "$LINENO"; then :
18536
18537	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538$as_echo "no" >&6; }
18539	LIBS="$BAKLIBS"
18540
18541else
18542
18543	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18544$as_echo "yes" >&6; }
18545	LIBS="$BAKLIBS"
18546	LIBS="$LIBS -lcrypt32"
18547
18548fi
18549rm -f core conftest.err conftest.$ac_objext \
18550    conftest$ac_exeext conftest.$ac_ext
18551
18552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18553$as_echo_n "checking for LibreSSL... " >&6; }
18554if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18555	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18556$as_echo "yes" >&6; }
18557
18558$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18559
18560	# libressl provides these compat functions, but they may also be
18561	# declared by the OS in libc.  See if they have been declared.
18562	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18563if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18564  ac_have_decl=1
18565else
18566  ac_have_decl=0
18567fi
18568
18569cat >>confdefs.h <<_ACEOF
18570#define HAVE_DECL_STRLCPY $ac_have_decl
18571_ACEOF
18572ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18573if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18574  ac_have_decl=1
18575else
18576  ac_have_decl=0
18577fi
18578
18579cat >>confdefs.h <<_ACEOF
18580#define HAVE_DECL_STRLCAT $ac_have_decl
18581_ACEOF
18582ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18583if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18584  ac_have_decl=1
18585else
18586  ac_have_decl=0
18587fi
18588
18589cat >>confdefs.h <<_ACEOF
18590#define HAVE_DECL_ARC4RANDOM $ac_have_decl
18591_ACEOF
18592ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18593if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18594  ac_have_decl=1
18595else
18596  ac_have_decl=0
18597fi
18598
18599cat >>confdefs.h <<_ACEOF
18600#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18601_ACEOF
18602
18603else
18604	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605$as_echo "no" >&6; }
18606fi
18607for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h
18608do :
18609  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18611"
18612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18613  cat >>confdefs.h <<_ACEOF
18614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18615_ACEOF
18616
18617fi
18618
18619done
18620
18621for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_default_properties_is_fips_enabled EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new BIO_set_callback_ex
18622do :
18623  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18624ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18625if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18626  cat >>confdefs.h <<_ACEOF
18627#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18628_ACEOF
18629
18630fi
18631done
18632
18633
18634# these check_funcs need -lssl
18635BAKLIBS="$LIBS"
18636LIBS="-lssl $LIBS"
18637for 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 SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate
18638do :
18639  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18642  cat >>confdefs.h <<_ACEOF
18643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18644_ACEOF
18645
18646fi
18647done
18648
18649LIBS="$BAKLIBS"
18650
18651ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18652$ac_includes_default
18653#ifdef HAVE_OPENSSL_ERR_H
18654#include <openssl/err.h>
18655#endif
18656
18657#ifdef HAVE_OPENSSL_RAND_H
18658#include <openssl/rand.h>
18659#endif
18660
18661#ifdef HAVE_OPENSSL_CONF_H
18662#include <openssl/conf.h>
18663#endif
18664
18665#ifdef HAVE_OPENSSL_ENGINE_H
18666#include <openssl/engine.h>
18667#endif
18668#include <openssl/ssl.h>
18669#include <openssl/evp.h>
18670
18671"
18672if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18673  ac_have_decl=1
18674else
18675  ac_have_decl=0
18676fi
18677
18678cat >>confdefs.h <<_ACEOF
18679#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18680_ACEOF
18681ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18682$ac_includes_default
18683#ifdef HAVE_OPENSSL_ERR_H
18684#include <openssl/err.h>
18685#endif
18686
18687#ifdef HAVE_OPENSSL_RAND_H
18688#include <openssl/rand.h>
18689#endif
18690
18691#ifdef HAVE_OPENSSL_CONF_H
18692#include <openssl/conf.h>
18693#endif
18694
18695#ifdef HAVE_OPENSSL_ENGINE_H
18696#include <openssl/engine.h>
18697#endif
18698#include <openssl/ssl.h>
18699#include <openssl/evp.h>
18700
18701"
18702if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18703  ac_have_decl=1
18704else
18705  ac_have_decl=0
18706fi
18707
18708cat >>confdefs.h <<_ACEOF
18709#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18710_ACEOF
18711ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18712$ac_includes_default
18713#ifdef HAVE_OPENSSL_ERR_H
18714#include <openssl/err.h>
18715#endif
18716
18717#ifdef HAVE_OPENSSL_RAND_H
18718#include <openssl/rand.h>
18719#endif
18720
18721#ifdef HAVE_OPENSSL_CONF_H
18722#include <openssl/conf.h>
18723#endif
18724
18725#ifdef HAVE_OPENSSL_ENGINE_H
18726#include <openssl/engine.h>
18727#endif
18728#include <openssl/ssl.h>
18729#include <openssl/evp.h>
18730
18731"
18732if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18733  ac_have_decl=1
18734else
18735  ac_have_decl=0
18736fi
18737
18738cat >>confdefs.h <<_ACEOF
18739#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18740_ACEOF
18741
18742
18743if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18744# check function return type.
18745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18746$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748/* end confdefs.h.  */
18749
18750#ifdef HAVE_OPENSSL_ERR_H
18751#include <openssl/err.h>
18752#endif
18753
18754#ifdef HAVE_OPENSSL_RAND_H
18755#include <openssl/rand.h>
18756#endif
18757
18758#ifdef HAVE_OPENSSL_CONF_H
18759#include <openssl/conf.h>
18760#endif
18761
18762#ifdef HAVE_OPENSSL_ENGINE_H
18763#include <openssl/engine.h>
18764#endif
18765#include <openssl/ssl.h>
18766#include <openssl/evp.h>
18767
18768int
18769main ()
18770{
18771
18772	HMAC_CTX* hmac_ctx = NULL;
18773	void* hmac_key = NULL;
18774	const EVP_MD* digest = NULL;
18775	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18776	(void)x;
18777
18778  ;
18779  return 0;
18780}
18781_ACEOF
18782if ac_fn_c_try_compile "$LINENO"; then :
18783
18784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18785$as_echo "int" >&6; }
18786
18787else
18788
18789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18790$as_echo "void" >&6; }
18791
18792$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18793
18794
18795fi
18796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797fi
18798
18799fi
18800
18801
18802# libbsd
18803
18804# Check whether --with-libbsd was given.
18805if test "${with_libbsd+set}" = set; then :
18806  withval=$with_libbsd;
18807	for ac_header in bsd/string.h bsd/stdlib.h
18808do :
18809  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18810ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18811"
18812if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18813  cat >>confdefs.h <<_ACEOF
18814#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18815_ACEOF
18816
18817fi
18818
18819done
18820
18821	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18822		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18823			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18825$as_echo_n "checking for library containing $func... " >&6; }
18826if eval \${$as_ac_Search+:} false; then :
18827  $as_echo_n "(cached) " >&6
18828else
18829  ac_func_search_save_LIBS=$LIBS
18830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831/* end confdefs.h.  */
18832
18833/* Override any GCC internal prototype to avoid an error.
18834   Use char because int might match the return type of a GCC
18835   builtin and then its argument prototype would still apply.  */
18836#ifdef __cplusplus
18837extern "C"
18838#endif
18839char $func ();
18840int
18841main ()
18842{
18843return $func ();
18844  ;
18845  return 0;
18846}
18847_ACEOF
18848for ac_lib in '' bsd; do
18849  if test -z "$ac_lib"; then
18850    ac_res="none required"
18851  else
18852    ac_res=-l$ac_lib
18853    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18854  fi
18855  if ac_fn_c_try_link "$LINENO"; then :
18856  eval "$as_ac_Search=\$ac_res"
18857fi
18858rm -f core conftest.err conftest.$ac_objext \
18859    conftest$ac_exeext
18860  if eval \${$as_ac_Search+:} false; then :
18861  break
18862fi
18863done
18864if eval \${$as_ac_Search+:} false; then :
18865
18866else
18867  eval "$as_ac_Search=no"
18868fi
18869rm conftest.$ac_ext
18870LIBS=$ac_func_search_save_LIBS
18871fi
18872eval ac_res=\$$as_ac_Search
18873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18874$as_echo "$ac_res" >&6; }
18875eval ac_res=\$$as_ac_Search
18876if test "$ac_res" != no; then :
18877  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18878
18879
18880$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18881
18882				PC_LIBBSD_DEPENDENCY=libbsd
18883
18884
18885fi
18886
18887		done
18888	fi
18889
18890fi
18891
18892
18893# Check whether --enable-sha1 was given.
18894if test "${enable_sha1+set}" = set; then :
18895  enableval=$enable_sha1;
18896fi
18897
18898case "$enable_sha1" in
18899	no)
18900	;;
18901	yes|*)
18902
18903$as_echo "#define USE_SHA1 1" >>confdefs.h
18904
18905	;;
18906esac
18907
18908
18909# Check whether --enable-sha2 was given.
18910if test "${enable_sha2+set}" = set; then :
18911  enableval=$enable_sha2;
18912fi
18913
18914case "$enable_sha2" in
18915	no)
18916	;;
18917	yes|*)
18918
18919$as_echo "#define USE_SHA2 1" >>confdefs.h
18920
18921	;;
18922esac
18923
18924# Check whether --enable-subnet was given.
18925if test "${enable_subnet+set}" = set; then :
18926  enableval=$enable_subnet;
18927fi
18928
18929case "$enable_subnet" in
18930	yes)
18931
18932$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18933
18934	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18935
18936	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18937
18938	;;
18939	no|*)
18940	;;
18941esac
18942
18943# check whether gost also works
18944
18945# Check whether --enable-gost was given.
18946if test "${enable_gost+set}" = set; then :
18947  enableval=$enable_gost;
18948fi
18949
18950use_gost="no"
18951if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18952case "$enable_gost" in
18953	no)
18954	;;
18955	*)
18956	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18957if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18958  :
18959else
18960  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18961fi
18962
18963	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18964if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18965
18966else
18967  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18968fi
18969
18970
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18972$as_echo_n "checking if GOST works... " >&6; }
18973if test c${cross_compiling} = cno; then
18974BAKCFLAGS="$CFLAGS"
18975if test -n "$ssldir"; then
18976	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18977fi
18978if test "$cross_compiling" = yes; then :
18979  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18981as_fn_error $? "cannot run test program while cross compiling
18982See \`config.log' for more details" "$LINENO" 5; }
18983else
18984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* end confdefs.h.  */
18986
18987#include <string.h>
18988#include <openssl/ssl.h>
18989#include <openssl/evp.h>
18990#include <openssl/engine.h>
18991#include <openssl/conf.h>
18992/* routine to load gost (from sldns) */
18993int load_gost_id(void)
18994{
18995	static int gost_id = 0;
18996	const EVP_PKEY_ASN1_METHOD* meth;
18997	ENGINE* e;
18998
18999	if(gost_id) return gost_id;
19000
19001	/* see if configuration loaded gost implementation from other engine*/
19002	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
19003	if(meth) {
19004		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19005		return gost_id;
19006	}
19007
19008	/* see if engine can be loaded already */
19009	e = ENGINE_by_id("gost");
19010	if(!e) {
19011		/* load it ourself, in case statically linked */
19012		ENGINE_load_builtin_engines();
19013		ENGINE_load_dynamic();
19014		e = ENGINE_by_id("gost");
19015	}
19016	if(!e) {
19017		/* no gost engine in openssl */
19018		return 0;
19019	}
19020	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
19021		ENGINE_finish(e);
19022		ENGINE_free(e);
19023		return 0;
19024	}
19025
19026	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
19027	if(!meth) {
19028		/* algo not found */
19029		ENGINE_finish(e);
19030		ENGINE_free(e);
19031		return 0;
19032	}
19033	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19034	return gost_id;
19035}
19036int main(void) {
19037	EVP_MD_CTX* ctx;
19038	const EVP_MD* md;
19039	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
19040	const char* str = "Hello world";
19041	const unsigned char check[] = {
19042		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
19043		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
19044		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
19045		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
19046	};
19047	OPENSSL_config(NULL);
19048	(void)load_gost_id();
19049	md = EVP_get_digestbyname("md_gost94");
19050	if(!md) return 1;
19051	memset(digest, 0, sizeof(digest));
19052	ctx = EVP_MD_CTX_create();
19053	if(!ctx) return 2;
19054	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
19055	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
19056	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
19057	/* uncomment to see the hash calculated.
19058		{int i;
19059		for(i=0; i<32; i++)
19060			printf(" %2.2x", (int)digest[i]);
19061		printf("\n");}
19062	*/
19063	if(memcmp(digest, check, sizeof(check)) != 0)
19064		return 6;
19065	return 0;
19066}
19067
19068_ACEOF
19069if ac_fn_c_try_run "$LINENO"; then :
19070  eval "ac_cv_c_gost_works=yes"
19071else
19072  eval "ac_cv_c_gost_works=no"
19073fi
19074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19075  conftest.$ac_objext conftest.beam conftest.$ac_ext
19076fi
19077
19078CFLAGS="$BAKCFLAGS"
19079else
19080eval "ac_cv_c_gost_works=maybe"
19081fi
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
19083$as_echo "$ac_cv_c_gost_works" >&6; }
19084
19085	if test "$ac_cv_c_gost_works" != no; then
19086		use_gost="yes"
19087
19088$as_echo "#define USE_GOST 1" >>confdefs.h
19089
19090	fi
19091	;;
19092esac
19093fi
19094# Check whether --enable-ecdsa was given.
19095if test "${enable_ecdsa+set}" = set; then :
19096  enableval=$enable_ecdsa;
19097fi
19098
19099use_ecdsa="no"
19100case "$enable_ecdsa" in
19101    no)
19102      ;;
19103    *)
19104      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19105	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
19106if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
19107
19108else
19109  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19110fi
19111
19112	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
19113if test "x$ac_cv_func_SHA384_Init" = xyes; then :
19114
19115else
19116  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19117fi
19118
19119	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
19120#include <openssl/evp.h>
19121
19122"
19123if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
19124  ac_have_decl=1
19125else
19126  ac_have_decl=0
19127fi
19128
19129cat >>confdefs.h <<_ACEOF
19130#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
19131_ACEOF
19132if test $ac_have_decl = 1; then :
19133
19134else
19135  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19136fi
19137ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
19138#include <openssl/evp.h>
19139
19140"
19141if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
19142  ac_have_decl=1
19143else
19144  ac_have_decl=0
19145fi
19146
19147cat >>confdefs.h <<_ACEOF
19148#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
19149_ACEOF
19150if test $ac_have_decl = 1; then :
19151
19152else
19153  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19154fi
19155
19156	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
19157	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
19158$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
19159	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
19160		if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
19161		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162$as_echo "no" >&6; }
19163
19164cat >>confdefs.h <<_ACEOF
19165#define USE_ECDSA_EVP_WORKAROUND 1
19166_ACEOF
19167
19168		else
19169		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19170$as_echo "yes" >&6; }
19171		fi
19172	      else
19173		# not OpenSSL, thus likely LibreSSL, which supports it
19174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19175$as_echo "yes" >&6; }
19176	      fi
19177      fi
19178      # we now know we have ECDSA and the required curves.
19179
19180cat >>confdefs.h <<_ACEOF
19181#define USE_ECDSA 1
19182_ACEOF
19183
19184      use_ecdsa="yes"
19185      ;;
19186esac
19187
19188# Check whether --enable-dsa was given.
19189if test "${enable_dsa+set}" = set; then :
19190  enableval=$enable_dsa;
19191fi
19192
19193use_dsa="no"
19194case "$enable_dsa" in
19195    yes)
19196      # detect if DSA is supported, and turn it off if not.
19197      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19198      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19199if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19200
19201      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19202ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19203$ac_includes_default
19204#ifdef HAVE_OPENSSL_ERR_H
19205#include <openssl/err.h>
19206#endif
19207
19208#ifdef HAVE_OPENSSL_RAND_H
19209#include <openssl/rand.h>
19210#endif
19211
19212#ifdef HAVE_OPENSSL_CONF_H
19213#include <openssl/conf.h>
19214#endif
19215
19216#ifdef HAVE_OPENSSL_ENGINE_H
19217#include <openssl/engine.h>
19218#endif
19219
19220"
19221if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19222
19223
19224cat >>confdefs.h <<_ACEOF
19225#define USE_DSA 1
19226_ACEOF
19227
19228
19229else
19230  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19231               fi
19232fi
19233
19234
19235else
19236  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19237               fi
19238fi
19239
19240      else
19241
19242cat >>confdefs.h <<_ACEOF
19243#define USE_DSA 1
19244_ACEOF
19245
19246      fi
19247      ;;
19248    *)
19249      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19250      # support DSA for DNSSEC Validation.
19251      ;;
19252esac
19253
19254
19255# Check whether --with-deprecate-rsa-1024 was given.
19256if test "${with_deprecate_rsa_1024+set}" = set; then :
19257  withval=$with_deprecate_rsa_1024;
19258fi
19259
19260if test "$with_deprecate_rsa_1024" = "yes"; then
19261
19262$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19263
19264fi
19265
19266# Check whether --enable-ed25519 was given.
19267if test "${enable_ed25519+set}" = set; then :
19268  enableval=$enable_ed25519;
19269fi
19270
19271use_ed25519="no"
19272case "$enable_ed25519" in
19273    no)
19274      ;;
19275    *)
19276      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19277	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19278#include <openssl/evp.h>
19279
19280"
19281if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19282  ac_have_decl=1
19283else
19284  ac_have_decl=0
19285fi
19286
19287cat >>confdefs.h <<_ACEOF
19288#define HAVE_DECL_NID_ED25519 $ac_have_decl
19289_ACEOF
19290if test $ac_have_decl = 1; then :
19291
19292      		use_ed25519="yes"
19293
19294else
19295   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19296	      	fi
19297fi
19298
19299      fi
19300      if test $USE_NETTLE = "yes"; then
19301		for ac_header in nettle/eddsa.h
19302do :
19303  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19304"
19305if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19306  cat >>confdefs.h <<_ACEOF
19307#define HAVE_NETTLE_EDDSA_H 1
19308_ACEOF
19309 use_ed25519="yes"
19310fi
19311
19312done
19313
19314      fi
19315      if test $use_ed25519 = "yes"; then
19316
19317cat >>confdefs.h <<_ACEOF
19318#define USE_ED25519 1
19319_ACEOF
19320
19321      fi
19322      ;;
19323esac
19324
19325# Check whether --enable-ed448 was given.
19326if test "${enable_ed448+set}" = set; then :
19327  enableval=$enable_ed448;
19328fi
19329
19330use_ed448="no"
19331case "$enable_ed448" in
19332    no)
19333      ;;
19334    *)
19335      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19336	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19337#include <openssl/evp.h>
19338
19339"
19340if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19341  ac_have_decl=1
19342else
19343  ac_have_decl=0
19344fi
19345
19346cat >>confdefs.h <<_ACEOF
19347#define HAVE_DECL_NID_ED448 $ac_have_decl
19348_ACEOF
19349if test $ac_have_decl = 1; then :
19350
19351      		use_ed448="yes"
19352
19353else
19354   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19355	      	fi
19356fi
19357
19358      fi
19359      if test $use_ed448 = "yes"; then
19360
19361cat >>confdefs.h <<_ACEOF
19362#define USE_ED448 1
19363_ACEOF
19364
19365      fi
19366      ;;
19367esac
19368
19369# Check whether --enable-event-api was given.
19370if test "${enable_event_api+set}" = set; then :
19371  enableval=$enable_event_api;
19372fi
19373
19374case "$enable_event_api" in
19375    yes)
19376      UNBOUND_EVENT_INSTALL=unbound-event-install
19377
19378      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19379
19380      ;;
19381    *)
19382      ;;
19383esac
19384
19385# Check whether --enable-tfo-client was given.
19386if test "${enable_tfo_client+set}" = set; then :
19387  enableval=$enable_tfo_client;
19388fi
19389
19390case "$enable_tfo_client" in
19391	yes)
19392		case "$host_os" in
19393			linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19394#include <netinet/tcp.h>
19395
19396"
19397if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19398  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19399$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19400else
19401  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19402fi
19403
19404
19405cat >>confdefs.h <<_ACEOF
19406#define USE_MSG_FASTOPEN 1
19407_ACEOF
19408
19409				;;
19410			darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19411#include <sys/socket.h>
19412
19413"
19414if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19415  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19416$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19417else
19418  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19419fi
19420
19421
19422cat >>confdefs.h <<_ACEOF
19423#define USE_OSX_MSG_FASTOPEN 1
19424_ACEOF
19425
19426				;;
19427		esac
19428		;;
19429	no|*)
19430		;;
19431esac
19432
19433# Check whether --enable-tfo-server was given.
19434if test "${enable_tfo_server+set}" = set; then :
19435  enableval=$enable_tfo_server;
19436fi
19437
19438case "$enable_tfo_server" in
19439	yes)
19440	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19441#include <netinet/tcp.h>
19442
19443"
19444if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19446$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19447else
19448  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19449fi
19450
19451
19452cat >>confdefs.h <<_ACEOF
19453#define USE_TCP_FASTOPEN 1
19454_ACEOF
19455
19456		;;
19457	no|*)
19458		;;
19459esac
19460
19461# check for libevent
19462
19463# Check whether --with-libevent was given.
19464if test "${with_libevent+set}" = set; then :
19465  withval=$with_libevent;
19466else
19467   with_libevent="no"
19468fi
19469
19470if test "x_$with_libevent" != x_no; then
19471
19472$as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19473
19474        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19475$as_echo_n "checking for libevent... " >&6; }
19476        if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19477            with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19478        fi
19479        for dir in $with_libevent; do
19480            thedir="$dir"
19481            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19482                found_libevent="yes"
19483								if test "$thedir" != "/usr"; then
19484				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
19485				fi
19486				break;
19487		    fi
19488        done
19489        if test x_$found_libevent != x_yes; then
19490		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19491			# libevent source directory
19492			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19493$as_echo "found in $thedir" >&6; }
19494			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19495			BAK_LDFLAGS_SET="1"
19496			BAK_LDFLAGS="$LDFLAGS"
19497			# remove evdns from linking
19498			mkdir build >/dev/null 2>&1
19499			mkdir build/libevent >/dev/null 2>&1
19500			mkdir build/libevent/.libs >/dev/null 2>&1
19501			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19502			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19503			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19504			cp $ev_files_o build/libevent
19505			cp $ev_files_lo build/libevent
19506			cp $ev_files_libso build/libevent/.libs
19507			LATE_LDFLAGS="build/libevent/*.lo -lm"
19508			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19509		else
19510            as_fn_error $? "Cannot find the libevent library in $with_libevent
19511You can restart ./configure --with-libevent=no to use a builtin alternative.
19512Please note that this alternative is not as capable as libevent when using
19513large outgoing port ranges.  " "$LINENO" 5
19514		fi
19515        else
19516            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19517$as_echo "found in $thedir" >&6; }
19518	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19519		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19520
19521	if test "x$enable_rpath" = xyes; then
19522		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19523			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19524		fi
19525	fi
19526
19527	    else
19528		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
19529			LDFLAGS="$LDFLAGS -L$thedir/lib"
19530
19531	if test "x$enable_rpath" = xyes; then
19532		if echo "$thedir/lib" | grep "^/" >/dev/null; then
19533			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19534		fi
19535	fi
19536
19537		    fi
19538	    fi
19539        fi
19540	# check for library used by libevent after 1.3c
19541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19542$as_echo_n "checking for library containing clock_gettime... " >&6; }
19543if ${ac_cv_search_clock_gettime+:} false; then :
19544  $as_echo_n "(cached) " >&6
19545else
19546  ac_func_search_save_LIBS=$LIBS
19547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548/* end confdefs.h.  */
19549
19550/* Override any GCC internal prototype to avoid an error.
19551   Use char because int might match the return type of a GCC
19552   builtin and then its argument prototype would still apply.  */
19553#ifdef __cplusplus
19554extern "C"
19555#endif
19556char clock_gettime ();
19557int
19558main ()
19559{
19560return clock_gettime ();
19561  ;
19562  return 0;
19563}
19564_ACEOF
19565for ac_lib in '' rt; do
19566  if test -z "$ac_lib"; then
19567    ac_res="none required"
19568  else
19569    ac_res=-l$ac_lib
19570    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19571  fi
19572  if ac_fn_c_try_link "$LINENO"; then :
19573  ac_cv_search_clock_gettime=$ac_res
19574fi
19575rm -f core conftest.err conftest.$ac_objext \
19576    conftest$ac_exeext
19577  if ${ac_cv_search_clock_gettime+:} false; then :
19578  break
19579fi
19580done
19581if ${ac_cv_search_clock_gettime+:} false; then :
19582
19583else
19584  ac_cv_search_clock_gettime=no
19585fi
19586rm conftest.$ac_ext
19587LIBS=$ac_func_search_save_LIBS
19588fi
19589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19590$as_echo "$ac_cv_search_clock_gettime" >&6; }
19591ac_res=$ac_cv_search_clock_gettime
19592if test "$ac_res" != no; then :
19593  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19594
19595fi
19596
19597
19598	# is the event.h header libev or libevent?
19599	for ac_header in event.h
19600do :
19601  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19602"
19603if test "x$ac_cv_header_event_h" = xyes; then :
19604  cat >>confdefs.h <<_ACEOF
19605#define HAVE_EVENT_H 1
19606_ACEOF
19607
19608fi
19609
19610done
19611
19612	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19613#include <event.h>
19614
19615"
19616if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19617
19618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19619$as_echo_n "checking for library containing event_set... " >&6; }
19620if ${ac_cv_search_event_set+:} false; then :
19621  $as_echo_n "(cached) " >&6
19622else
19623  ac_func_search_save_LIBS=$LIBS
19624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625/* end confdefs.h.  */
19626
19627/* Override any GCC internal prototype to avoid an error.
19628   Use char because int might match the return type of a GCC
19629   builtin and then its argument prototype would still apply.  */
19630#ifdef __cplusplus
19631extern "C"
19632#endif
19633char event_set ();
19634int
19635main ()
19636{
19637return event_set ();
19638  ;
19639  return 0;
19640}
19641_ACEOF
19642for ac_lib in '' ev; do
19643  if test -z "$ac_lib"; then
19644    ac_res="none required"
19645  else
19646    ac_res=-l$ac_lib
19647    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19648  fi
19649  if ac_fn_c_try_link "$LINENO"; then :
19650  ac_cv_search_event_set=$ac_res
19651fi
19652rm -f core conftest.err conftest.$ac_objext \
19653    conftest$ac_exeext
19654  if ${ac_cv_search_event_set+:} false; then :
19655  break
19656fi
19657done
19658if ${ac_cv_search_event_set+:} false; then :
19659
19660else
19661  ac_cv_search_event_set=no
19662fi
19663rm conftest.$ac_ext
19664LIBS=$ac_func_search_save_LIBS
19665fi
19666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19667$as_echo "$ac_cv_search_event_set" >&6; }
19668ac_res=$ac_cv_search_event_set
19669if test "$ac_res" != no; then :
19670  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19671
19672fi
19673
19674
19675else
19676
19677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19678$as_echo_n "checking for library containing event_set... " >&6; }
19679if ${ac_cv_search_event_set+:} false; then :
19680  $as_echo_n "(cached) " >&6
19681else
19682  ac_func_search_save_LIBS=$LIBS
19683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684/* end confdefs.h.  */
19685
19686/* Override any GCC internal prototype to avoid an error.
19687   Use char because int might match the return type of a GCC
19688   builtin and then its argument prototype would still apply.  */
19689#ifdef __cplusplus
19690extern "C"
19691#endif
19692char event_set ();
19693int
19694main ()
19695{
19696return event_set ();
19697  ;
19698  return 0;
19699}
19700_ACEOF
19701for ac_lib in '' event; do
19702  if test -z "$ac_lib"; then
19703    ac_res="none required"
19704  else
19705    ac_res=-l$ac_lib
19706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19707  fi
19708  if ac_fn_c_try_link "$LINENO"; then :
19709  ac_cv_search_event_set=$ac_res
19710fi
19711rm -f core conftest.err conftest.$ac_objext \
19712    conftest$ac_exeext
19713  if ${ac_cv_search_event_set+:} false; then :
19714  break
19715fi
19716done
19717if ${ac_cv_search_event_set+:} false; then :
19718
19719else
19720  ac_cv_search_event_set=no
19721fi
19722rm conftest.$ac_ext
19723LIBS=$ac_func_search_save_LIBS
19724fi
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19726$as_echo "$ac_cv_search_event_set" >&6; }
19727ac_res=$ac_cv_search_event_set
19728if test "$ac_res" != no; then :
19729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19730
19731fi
19732
19733
19734fi
19735
19736	for ac_func in event_base_free
19737do :
19738  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19739if test "x$ac_cv_func_event_base_free" = xyes; then :
19740  cat >>confdefs.h <<_ACEOF
19741#define HAVE_EVENT_BASE_FREE 1
19742_ACEOF
19743
19744fi
19745done
19746 # only in libevent 1.2 and later
19747	for ac_func in event_base_once
19748do :
19749  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19750if test "x$ac_cv_func_event_base_once" = xyes; then :
19751  cat >>confdefs.h <<_ACEOF
19752#define HAVE_EVENT_BASE_ONCE 1
19753_ACEOF
19754
19755fi
19756done
19757 # only in libevent 1.4.1 and later
19758	for ac_func in event_base_new
19759do :
19760  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19761if test "x$ac_cv_func_event_base_new" = xyes; then :
19762  cat >>confdefs.h <<_ACEOF
19763#define HAVE_EVENT_BASE_NEW 1
19764_ACEOF
19765
19766fi
19767done
19768 # only in libevent 1.4.1 and later
19769	for ac_func in event_base_get_method
19770do :
19771  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19772if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19773  cat >>confdefs.h <<_ACEOF
19774#define HAVE_EVENT_BASE_GET_METHOD 1
19775_ACEOF
19776
19777fi
19778done
19779 # only in libevent 1.4.3 and later
19780	for ac_func in ev_loop
19781do :
19782  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19783if test "x$ac_cv_func_ev_loop" = xyes; then :
19784  cat >>confdefs.h <<_ACEOF
19785#define HAVE_EV_LOOP 1
19786_ACEOF
19787
19788fi
19789done
19790 # only in libev. (tested on 3.51)
19791	for ac_func in ev_default_loop
19792do :
19793  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19794if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19795  cat >>confdefs.h <<_ACEOF
19796#define HAVE_EV_DEFAULT_LOOP 1
19797_ACEOF
19798
19799fi
19800done
19801 # only in libev. (tested on 4.00)
19802	for ac_func in event_assign
19803do :
19804  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19805if test "x$ac_cv_func_event_assign" = xyes; then :
19806  cat >>confdefs.h <<_ACEOF
19807#define HAVE_EVENT_ASSIGN 1
19808_ACEOF
19809
19810fi
19811done
19812 # in libevent, for thread-safety
19813	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19814#ifdef HAVE_EVENT_H
19815#  include <event.h>
19816#else
19817#  include \"event2/event.h\"
19818#endif
19819
19820"
19821if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19822  ac_have_decl=1
19823else
19824  ac_have_decl=0
19825fi
19826
19827cat >>confdefs.h <<_ACEOF
19828#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19829_ACEOF
19830
19831        PC_LIBEVENT_DEPENDENCY="libevent"
19832
19833	if test -n "$BAK_LDFLAGS_SET"; then
19834		LDFLAGS="$BAK_LDFLAGS"
19835	fi
19836else
19837
19838$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19839
19840fi
19841
19842# check for libexpat
19843
19844# Check whether --with-libexpat was given.
19845if test "${with_libexpat+set}" = set; then :
19846  withval=$with_libexpat;
19847else
19848   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19849fi
19850
19851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19852$as_echo_n "checking for libexpat... " >&6; }
19853found_libexpat="no"
19854for dir in $withval ; do
19855            if test -f "$dir/include/expat.h"; then
19856		found_libexpat="yes"
19857				if test "$dir" != "/usr"; then
19858                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19859		    LDFLAGS="$LDFLAGS -L$dir/lib"
19860		fi
19861            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19862$as_echo "found in $dir" >&6; }
19863                break;
19864            fi
19865done
19866if test x_$found_libexpat != x_yes; then
19867	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19868fi
19869for ac_header in expat.h
19870do :
19871  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19872"
19873if test "x$ac_cv_header_expat_h" = xyes; then :
19874  cat >>confdefs.h <<_ACEOF
19875#define HAVE_EXPAT_H 1
19876_ACEOF
19877
19878fi
19879
19880done
19881
19882ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19883#include <expat.h>
19884
19885"
19886if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19887  ac_have_decl=1
19888else
19889  ac_have_decl=0
19890fi
19891
19892cat >>confdefs.h <<_ACEOF
19893#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19894_ACEOF
19895
19896
19897# hiredis (redis C client for cachedb)
19898
19899# Check whether --with-libhiredis was given.
19900if test "${with_libhiredis+set}" = set; then :
19901  withval=$with_libhiredis;
19902else
19903   withval="no"
19904fi
19905
19906found_libhiredis="no"
19907if test x_$withval = x_yes -o x_$withval != x_no; then
19908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19909$as_echo_n "checking for libhiredis... " >&6; }
19910   if test x_$withval = x_ -o x_$withval = x_yes; then
19911            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19912   fi
19913   for dir in $withval ; do
19914            if test -f "$dir/include/hiredis/hiredis.h"; then
19915		found_libhiredis="yes"
19916				if test "$dir" != "/usr"; then
19917                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19918		    LDFLAGS="$LDFLAGS -L$dir/lib"
19919		fi
19920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19921$as_echo "found in $dir" >&6; }
19922
19923$as_echo "#define USE_REDIS 1" >>confdefs.h
19924
19925		LIBS="$LIBS -lhiredis"
19926                break;
19927            fi
19928    done
19929    if test x_$found_libhiredis != x_yes; then
19930	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19931    fi
19932    for ac_header in hiredis/hiredis.h
19933do :
19934  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19935"
19936if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19937  cat >>confdefs.h <<_ACEOF
19938#define HAVE_HIREDIS_HIREDIS_H 1
19939_ACEOF
19940
19941fi
19942
19943done
19944
19945    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19946    #include <hiredis/hiredis.h>
19947
19948"
19949if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19950  ac_have_decl=1
19951else
19952  ac_have_decl=0
19953fi
19954
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_DECL_REDISCONNECT $ac_have_decl
19957_ACEOF
19958
19959fi
19960
19961# nghttp2
19962
19963# Check whether --with-libnghttp2 was given.
19964if test "${with_libnghttp2+set}" = set; then :
19965  withval=$with_libnghttp2;
19966else
19967   withval="no"
19968fi
19969
19970found_libnghttp2="no"
19971if test x_$withval = x_yes -o x_$withval != x_no; then
19972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19973$as_echo_n "checking for libnghttp2... " >&6; }
19974   if test x_$withval = x_ -o x_$withval = x_yes; then
19975            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19976   fi
19977   for dir in $withval ; do
19978            if test -f "$dir/include/nghttp2/nghttp2.h"; then
19979		found_libnghttp2="yes"
19980				if test "$dir" != "/usr"; then
19981                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19982		    LDFLAGS="$LDFLAGS -L$dir/lib"
19983		fi
19984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19985$as_echo "found in $dir" >&6; }
19986
19987$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19988
19989		LIBS="$LIBS -lnghttp2"
19990                break;
19991            fi
19992    done
19993    if test x_$found_libnghttp2 != x_yes; then
19994	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19995    fi
19996    for ac_header in nghttp2/nghttp2.h
19997do :
19998  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19999"
20000if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
20001  cat >>confdefs.h <<_ACEOF
20002#define HAVE_NGHTTP2_NGHTTP2_H 1
20003_ACEOF
20004
20005fi
20006
20007done
20008
20009    ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
20010    #include <nghttp2/nghttp2.h>
20011
20012"
20013if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
20014  ac_have_decl=1
20015else
20016  ac_have_decl=0
20017fi
20018
20019cat >>confdefs.h <<_ACEOF
20020#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
20021_ACEOF
20022
20023fi
20024
20025# set static linking for uninstalled libraries if requested
20026
20027staticexe=""
20028# Check whether --enable-static-exe was given.
20029if test "${enable_static_exe+set}" = set; then :
20030  enableval=$enable_static_exe;
20031fi
20032
20033if test x_$enable_static_exe = x_yes; then
20034	staticexe="-static"
20035	if test "$on_mingw" = yes; then
20036		staticexe="-all-static"
20037		# for static compile, include gdi32 and zlib here.
20038		if echo $LIBS | grep 'lgdi32' >/dev/null; then
20039			:
20040		else
20041			LIBS="$LIBS -lgdi32"
20042		fi
20043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20044$as_echo_n "checking for compress in -lz... " >&6; }
20045if ${ac_cv_lib_z_compress+:} false; then :
20046  $as_echo_n "(cached) " >&6
20047else
20048  ac_check_lib_save_LIBS=$LIBS
20049LIBS="-lz  $LIBS"
20050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051/* end confdefs.h.  */
20052
20053/* Override any GCC internal prototype to avoid an error.
20054   Use char because int might match the return type of a GCC
20055   builtin and then its argument prototype would still apply.  */
20056#ifdef __cplusplus
20057extern "C"
20058#endif
20059char compress ();
20060int
20061main ()
20062{
20063return compress ();
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068if ac_fn_c_try_link "$LINENO"; then :
20069  ac_cv_lib_z_compress=yes
20070else
20071  ac_cv_lib_z_compress=no
20072fi
20073rm -f core conftest.err conftest.$ac_objext \
20074    conftest$ac_exeext conftest.$ac_ext
20075LIBS=$ac_check_lib_save_LIBS
20076fi
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20078$as_echo "$ac_cv_lib_z_compress" >&6; }
20079if test "x$ac_cv_lib_z_compress" = xyes; then :
20080   LIBS="$LIBS -lz"
20081fi
20082
20083		LIBS="$LIBS -l:libssp.a"
20084	fi
20085fi
20086
20087# set full static linking if requested
20088# Check whether --enable-fully-static was given.
20089if test "${enable_fully_static+set}" = set; then :
20090  enableval=$enable_fully_static;
20091fi
20092
20093if test x_$enable_fully_static = x_yes; then
20094	staticexe="-all-static"
20095	if test "$on_mingw" = yes; then
20096		# for static compile, include gdi32 and zlib here.
20097		if echo $LIBS | grep 'lgdi32' >/dev/null; then
20098			:
20099		else
20100			LIBS="$LIBS -lgdi32"
20101		fi
20102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20103$as_echo_n "checking for compress in -lz... " >&6; }
20104if ${ac_cv_lib_z_compress+:} false; then :
20105  $as_echo_n "(cached) " >&6
20106else
20107  ac_check_lib_save_LIBS=$LIBS
20108LIBS="-lz  $LIBS"
20109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110/* end confdefs.h.  */
20111
20112/* Override any GCC internal prototype to avoid an error.
20113   Use char because int might match the return type of a GCC
20114   builtin and then its argument prototype would still apply.  */
20115#ifdef __cplusplus
20116extern "C"
20117#endif
20118char compress ();
20119int
20120main ()
20121{
20122return compress ();
20123  ;
20124  return 0;
20125}
20126_ACEOF
20127if ac_fn_c_try_link "$LINENO"; then :
20128  ac_cv_lib_z_compress=yes
20129else
20130  ac_cv_lib_z_compress=no
20131fi
20132rm -f core conftest.err conftest.$ac_objext \
20133    conftest$ac_exeext conftest.$ac_ext
20134LIBS=$ac_check_lib_save_LIBS
20135fi
20136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20137$as_echo "$ac_cv_lib_z_compress" >&6; }
20138if test "x$ac_cv_lib_z_compress" = xyes; then :
20139   LIBS="$LIBS -lz"
20140fi
20141
20142		LIBS="$LIBS -l:libssp.a"
20143	fi
20144fi
20145
20146# set lock checking if requested
20147# Check whether --enable-lock_checks was given.
20148if test "${enable_lock_checks+set}" = set; then :
20149  enableval=$enable_lock_checks;
20150fi
20151
20152if test x_$enable_lock_checks = x_yes; then
20153
20154$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
20155
20156	CHECKLOCK_OBJ="checklocks.lo"
20157
20158fi
20159
20160
20161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
20162$as_echo_n "checking for getaddrinfo... " >&6; }
20163ac_cv_func_getaddrinfo=no
20164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165/* end confdefs.h.  */
20166
20167#ifdef __cplusplus
20168extern "C"
20169{
20170#endif
20171char* getaddrinfo();
20172char* (*f) () = getaddrinfo;
20173#ifdef __cplusplus
20174}
20175#endif
20176int main() {
20177        ;
20178        return 0;
20179}
20180
20181_ACEOF
20182if ac_fn_c_try_link "$LINENO"; then :
20183  ac_cv_func_getaddrinfo="yes"
20184if test "$ac_cv_header_windows_h" = "yes"; then
20185
20186$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20187
20188	USE_WINSOCK="1"
20189	if echo $LIBS | grep 'lws2_32' >/dev/null; then
20190		:
20191	else
20192		LIBS="$LIBS -lws2_32"
20193	fi
20194fi
20195
20196else
20197  ORIGLIBS="$LIBS"
20198LIBS="$LIBS -lws2_32"
20199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200/* end confdefs.h.  */
20201
20202#ifdef HAVE_WS2TCPIP_H
20203#include <ws2tcpip.h>
20204#endif
20205
20206int
20207main ()
20208{
20209
20210        (void)getaddrinfo(NULL, NULL, NULL, NULL);
20211
20212
20213  ;
20214  return 0;
20215}
20216_ACEOF
20217if ac_fn_c_try_link "$LINENO"; then :
20218
20219ac_cv_func_getaddrinfo="yes"
20220
20221$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20222
20223USE_WINSOCK="1"
20224
20225else
20226
20227ac_cv_func_getaddrinfo="no"
20228LIBS="$ORIGLIBS"
20229
20230fi
20231rm -f core conftest.err conftest.$ac_objext \
20232    conftest$ac_exeext conftest.$ac_ext
20233
20234fi
20235rm -f core conftest.err conftest.$ac_objext \
20236    conftest$ac_exeext conftest.$ac_ext
20237
20238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20239$as_echo "$ac_cv_func_getaddrinfo" >&6; }
20240if test $ac_cv_func_getaddrinfo = yes; then
20241
20242$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20243
20244fi
20245
20246if test "$USE_WINSOCK" = 1; then
20247
20248$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20249
20250	for ac_header in iphlpapi.h
20251do :
20252  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20253#include <windows.h>
20254
20255"
20256if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20257  cat >>confdefs.h <<_ACEOF
20258#define HAVE_IPHLPAPI_H 1
20259_ACEOF
20260
20261fi
20262
20263done
20264
20265	if test -n "$ac_tool_prefix"; then
20266  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20267set dummy ${ac_tool_prefix}windres; ac_word=$2
20268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20269$as_echo_n "checking for $ac_word... " >&6; }
20270if ${ac_cv_prog_WINDRES+:} false; then :
20271  $as_echo_n "(cached) " >&6
20272else
20273  if test -n "$WINDRES"; then
20274  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20275else
20276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20277for as_dir in $PATH
20278do
20279  IFS=$as_save_IFS
20280  test -z "$as_dir" && as_dir=.
20281    for ac_exec_ext in '' $ac_executable_extensions; do
20282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20283    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20285    break 2
20286  fi
20287done
20288  done
20289IFS=$as_save_IFS
20290
20291fi
20292fi
20293WINDRES=$ac_cv_prog_WINDRES
20294if test -n "$WINDRES"; then
20295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20296$as_echo "$WINDRES" >&6; }
20297else
20298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20299$as_echo "no" >&6; }
20300fi
20301
20302
20303fi
20304if test -z "$ac_cv_prog_WINDRES"; then
20305  ac_ct_WINDRES=$WINDRES
20306  # Extract the first word of "windres", so it can be a program name with args.
20307set dummy windres; ac_word=$2
20308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20309$as_echo_n "checking for $ac_word... " >&6; }
20310if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20311  $as_echo_n "(cached) " >&6
20312else
20313  if test -n "$ac_ct_WINDRES"; then
20314  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20315else
20316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20317for as_dir in $PATH
20318do
20319  IFS=$as_save_IFS
20320  test -z "$as_dir" && as_dir=.
20321    for ac_exec_ext in '' $ac_executable_extensions; do
20322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20323    ac_cv_prog_ac_ct_WINDRES="windres"
20324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20325    break 2
20326  fi
20327done
20328  done
20329IFS=$as_save_IFS
20330
20331fi
20332fi
20333ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20334if test -n "$ac_ct_WINDRES"; then
20335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20336$as_echo "$ac_ct_WINDRES" >&6; }
20337else
20338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20339$as_echo "no" >&6; }
20340fi
20341
20342  if test "x$ac_ct_WINDRES" = x; then
20343    WINDRES=""
20344  else
20345    case $cross_compiling:$ac_tool_warned in
20346yes:)
20347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20349ac_tool_warned=yes ;;
20350esac
20351    WINDRES=$ac_ct_WINDRES
20352  fi
20353else
20354  WINDRES="$ac_cv_prog_WINDRES"
20355fi
20356
20357	LIBS="$LIBS -liphlpapi -lcrypt32"
20358	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20359
20360	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20361
20362	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20363
20364	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20365
20366	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20367
20368	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20369
20370	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20371
20372	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20373
20374
20375$as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20376
20377fi
20378if test $ac_cv_func_getaddrinfo = no; then
20379	case " $LIBOBJS " in
20380  *" fake-rfc2553.$ac_objext "* ) ;;
20381  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20382 ;;
20383esac
20384
20385fi
20386# check after getaddrinfo for its libraries
20387
20388# check ioctlsocket
20389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20390$as_echo_n "checking for ioctlsocket... " >&6; }
20391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392/* end confdefs.h.  */
20393
20394#ifdef HAVE_WINSOCK2_H
20395#include <winsock2.h>
20396#endif
20397
20398int
20399main ()
20400{
20401
20402	(void)ioctlsocket(0, 0, NULL);
20403
20404  ;
20405  return 0;
20406}
20407_ACEOF
20408if ac_fn_c_try_link "$LINENO"; then :
20409
20410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20411$as_echo "yes" >&6; }
20412
20413$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20414
20415
20416else
20417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20418$as_echo "no" >&6; }
20419fi
20420rm -f core conftest.err conftest.$ac_objext \
20421    conftest$ac_exeext conftest.$ac_ext
20422
20423
20424# see if daemon(3) exists, and if it is deprecated.
20425for ac_func in daemon
20426do :
20427  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20428if test "x$ac_cv_func_daemon" = xyes; then :
20429  cat >>confdefs.h <<_ACEOF
20430#define HAVE_DAEMON 1
20431_ACEOF
20432
20433fi
20434done
20435
20436if test $ac_cv_func_daemon = yes; then
20437
20438
20439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20440$as_echo_n "checking if daemon is deprecated... " >&6; }
20441cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20442if eval \${cv_cc_deprecated_$cache+:} false; then :
20443  $as_echo_n "(cached) " >&6
20444else
20445
20446echo '
20447#include <stdlib.h>
20448#include <unistd.h>
20449' >conftest.c
20450echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20451if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20452eval "cv_cc_deprecated_$cache=no"
20453else
20454eval "cv_cc_deprecated_$cache=yes"
20455fi
20456rm -f conftest conftest.o conftest.c
20457
20458fi
20459
20460if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20462$as_echo "yes" >&6; }
20463
20464cat >>confdefs.h <<_ACEOF
20465#define DEPRECATED_DAEMON 1
20466_ACEOF
20467
20468:
20469
20470else
20471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472$as_echo "no" >&6; }
20473:
20474
20475fi
20476
20477fi
20478
20479ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20480$ac_includes_default
20481#ifdef HAVE_SYS_UN_H
20482#include <sys/un.h>
20483#endif
20484
20485"
20486if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20487
20488cat >>confdefs.h <<_ACEOF
20489#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20490_ACEOF
20491
20492
20493fi
20494
20495ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20496$ac_includes_default
20497#if HAVE_SYS_PARAM_H
20498#include <sys/param.h>
20499#endif
20500
20501#ifdef HAVE_SYS_SOCKET_H
20502#include <sys/socket.h>
20503#endif
20504
20505#ifdef HAVE_SYS_UIO_H
20506#include <sys/uio.h>
20507#endif
20508
20509#ifdef HAVE_NETINET_IN_H
20510#include <netinet/in.h>
20511#endif
20512
20513#ifdef HAVE_NETINET_TCP_H
20514#include <netinet/tcp.h>
20515#endif
20516
20517#ifdef HAVE_ARPA_INET_H
20518#include <arpa/inet.h>
20519#endif
20520
20521#ifdef HAVE_WINSOCK2_H
20522#include <winsock2.h>
20523#endif
20524
20525#ifdef HAVE_WS2TCPIP_H
20526#include <ws2tcpip.h>
20527#endif
20528
20529"
20530if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20531
20532cat >>confdefs.h <<_ACEOF
20533#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20534_ACEOF
20535
20536
20537fi
20538
20539
20540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20541$as_echo_n "checking for htobe64... " >&6; }
20542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543/* end confdefs.h.  */
20544
20545#include <stdio.h>
20546#ifdef HAVE_ENDIAN_H
20547#  include <endian.h>
20548#endif
20549#ifdef HAVE_SYS_ENDIAN_H
20550#  include <sys/endian.h>
20551#endif
20552
20553int
20554main ()
20555{
20556unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20557  ;
20558  return 0;
20559}
20560_ACEOF
20561if ac_fn_c_try_link "$LINENO"; then :
20562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20563$as_echo "yes" >&6; }
20564
20565$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20566
20567else
20568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20569$as_echo "no" >&6; }
20570fi
20571rm -f core conftest.err conftest.$ac_objext \
20572    conftest$ac_exeext conftest.$ac_ext
20573
20574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20575$as_echo_n "checking for be64toh... " >&6; }
20576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577/* end confdefs.h.  */
20578
20579#include <stdio.h>
20580#ifdef HAVE_ENDIAN_H
20581#  include <endian.h>
20582#endif
20583#ifdef HAVE_SYS_ENDIAN_H
20584#  include <sys/endian.h>
20585#endif
20586
20587int
20588main ()
20589{
20590unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20591  ;
20592  return 0;
20593}
20594_ACEOF
20595if ac_fn_c_try_link "$LINENO"; then :
20596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20597$as_echo "yes" >&6; }
20598
20599$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20600
20601else
20602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603$as_echo "no" >&6; }
20604fi
20605rm -f core conftest.err conftest.$ac_objext \
20606    conftest$ac_exeext conftest.$ac_ext
20607
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20609$as_echo_n "checking for library containing setusercontext... " >&6; }
20610if ${ac_cv_search_setusercontext+:} false; then :
20611  $as_echo_n "(cached) " >&6
20612else
20613  ac_func_search_save_LIBS=$LIBS
20614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615/* end confdefs.h.  */
20616
20617/* Override any GCC internal prototype to avoid an error.
20618   Use char because int might match the return type of a GCC
20619   builtin and then its argument prototype would still apply.  */
20620#ifdef __cplusplus
20621extern "C"
20622#endif
20623char setusercontext ();
20624int
20625main ()
20626{
20627return setusercontext ();
20628  ;
20629  return 0;
20630}
20631_ACEOF
20632for ac_lib in '' util; do
20633  if test -z "$ac_lib"; then
20634    ac_res="none required"
20635  else
20636    ac_res=-l$ac_lib
20637    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20638  fi
20639  if ac_fn_c_try_link "$LINENO"; then :
20640  ac_cv_search_setusercontext=$ac_res
20641fi
20642rm -f core conftest.err conftest.$ac_objext \
20643    conftest$ac_exeext
20644  if ${ac_cv_search_setusercontext+:} false; then :
20645  break
20646fi
20647done
20648if ${ac_cv_search_setusercontext+:} false; then :
20649
20650else
20651  ac_cv_search_setusercontext=no
20652fi
20653rm conftest.$ac_ext
20654LIBS=$ac_func_search_save_LIBS
20655fi
20656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20657$as_echo "$ac_cv_search_setusercontext" >&6; }
20658ac_res=$ac_cv_search_setusercontext
20659if test "$ac_res" != no; then :
20660  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20661
20662fi
20663
20664for 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 getifaddrs if_nametoindex poll gettid
20665do :
20666  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20669  cat >>confdefs.h <<_ACEOF
20670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20671_ACEOF
20672
20673fi
20674done
20675
20676for ac_func in setresuid
20677do :
20678  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20679if test "x$ac_cv_func_setresuid" = xyes; then :
20680  cat >>confdefs.h <<_ACEOF
20681#define HAVE_SETRESUID 1
20682_ACEOF
20683
20684else
20685  for ac_func in setreuid
20686do :
20687  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20688if test "x$ac_cv_func_setreuid" = xyes; then :
20689  cat >>confdefs.h <<_ACEOF
20690#define HAVE_SETREUID 1
20691_ACEOF
20692
20693fi
20694done
20695
20696fi
20697done
20698
20699for ac_func in setresgid
20700do :
20701  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20702if test "x$ac_cv_func_setresgid" = xyes; then :
20703  cat >>confdefs.h <<_ACEOF
20704#define HAVE_SETRESGID 1
20705_ACEOF
20706
20707else
20708  for ac_func in setregid
20709do :
20710  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20711if test "x$ac_cv_func_setregid" = xyes; then :
20712  cat >>confdefs.h <<_ACEOF
20713#define HAVE_SETREGID 1
20714_ACEOF
20715
20716fi
20717done
20718
20719fi
20720done
20721
20722
20723# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20724if echo $host_os | grep darwin8 > /dev/null; then
20725
20726$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20727
20728fi
20729ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20730$ac_includes_default
20731#ifdef HAVE_NETINET_IN_H
20732#include <netinet/in.h>
20733#endif
20734
20735#ifdef HAVE_NETINET_TCP_H
20736#include <netinet/tcp.h>
20737#endif
20738
20739#ifdef HAVE_ARPA_INET_H
20740#include <arpa/inet.h>
20741#endif
20742
20743#ifdef HAVE_WINSOCK2_H
20744#include <winsock2.h>
20745#endif
20746
20747#ifdef HAVE_WS2TCPIP_H
20748#include <ws2tcpip.h>
20749#endif
20750
20751"
20752if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20753  ac_have_decl=1
20754else
20755  ac_have_decl=0
20756fi
20757
20758cat >>confdefs.h <<_ACEOF
20759#define HAVE_DECL_INET_PTON $ac_have_decl
20760_ACEOF
20761ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20762$ac_includes_default
20763#ifdef HAVE_NETINET_IN_H
20764#include <netinet/in.h>
20765#endif
20766
20767#ifdef HAVE_NETINET_TCP_H
20768#include <netinet/tcp.h>
20769#endif
20770
20771#ifdef HAVE_ARPA_INET_H
20772#include <arpa/inet.h>
20773#endif
20774
20775#ifdef HAVE_WINSOCK2_H
20776#include <winsock2.h>
20777#endif
20778
20779#ifdef HAVE_WS2TCPIP_H
20780#include <ws2tcpip.h>
20781#endif
20782
20783"
20784if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20785  ac_have_decl=1
20786else
20787  ac_have_decl=0
20788fi
20789
20790cat >>confdefs.h <<_ACEOF
20791#define HAVE_DECL_INET_NTOP $ac_have_decl
20792_ACEOF
20793
20794ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20795if test "x$ac_cv_func_inet_aton" = xyes; then :
20796  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20797
20798else
20799  case " $LIBOBJS " in
20800  *" inet_aton.$ac_objext "* ) ;;
20801  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20802 ;;
20803esac
20804
20805fi
20806
20807
20808ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20809if test "x$ac_cv_func_inet_pton" = xyes; then :
20810  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20811
20812else
20813  case " $LIBOBJS " in
20814  *" inet_pton.$ac_objext "* ) ;;
20815  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20816 ;;
20817esac
20818
20819fi
20820
20821
20822ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20823if test "x$ac_cv_func_inet_ntop" = xyes; then :
20824  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20825
20826else
20827  case " $LIBOBJS " in
20828  *" inet_ntop.$ac_objext "* ) ;;
20829  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20830 ;;
20831esac
20832
20833fi
20834
20835
20836ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20837if test "x$ac_cv_func_snprintf" = xyes; then :
20838  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20839
20840else
20841  case " $LIBOBJS " in
20842  *" snprintf.$ac_objext "* ) ;;
20843  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20844 ;;
20845esac
20846
20847fi
20848
20849
20850# test if snprintf return the proper length
20851if test "x$ac_cv_func_snprintf" = xyes; then
20852    if test c${cross_compiling} = cno; then
20853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20854$as_echo_n "checking for correct snprintf return value... " >&6; }
20855	if test "$cross_compiling" = yes; then :
20856  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20858as_fn_error $? "cannot run test program while cross compiling
20859See \`config.log' for more details" "$LINENO" 5; }
20860else
20861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862/* end confdefs.h.  */
20863$ac_includes_default
20864
20865int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20866
20867_ACEOF
20868if ac_fn_c_try_run "$LINENO"; then :
20869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870$as_echo "yes" >&6; }
20871else
20872
20873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874$as_echo "no" >&6; }
20875
20876$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20877
20878		case " $LIBOBJS " in
20879  *" snprintf.$ac_objext "* ) ;;
20880  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20881 ;;
20882esac
20883
20884
20885fi
20886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20887  conftest.$ac_objext conftest.beam conftest.$ac_ext
20888fi
20889
20890    fi
20891fi
20892ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20893if test "x$ac_cv_func_strlcat" = xyes; then :
20894  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20895
20896else
20897  case " $LIBOBJS " in
20898  *" strlcat.$ac_objext "* ) ;;
20899  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20900 ;;
20901esac
20902
20903fi
20904
20905
20906ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20907if test "x$ac_cv_func_strlcpy" = xyes; then :
20908  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20909
20910else
20911  case " $LIBOBJS " in
20912  *" strlcpy.$ac_objext "* ) ;;
20913  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20914 ;;
20915esac
20916
20917fi
20918
20919
20920ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20921if test "x$ac_cv_func_memmove" = xyes; then :
20922  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20923
20924else
20925  case " $LIBOBJS " in
20926  *" memmove.$ac_objext "* ) ;;
20927  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20928 ;;
20929esac
20930
20931fi
20932
20933
20934ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20935if test "x$ac_cv_func_gmtime_r" = xyes; then :
20936  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20937
20938else
20939  case " $LIBOBJS " in
20940  *" gmtime_r.$ac_objext "* ) ;;
20941  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20942 ;;
20943esac
20944
20945fi
20946
20947
20948ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20949if test "x$ac_cv_func_isblank" = xyes; then :
20950  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20951
20952else
20953  case " $LIBOBJS " in
20954  *" isblank.$ac_objext "* ) ;;
20955  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20956 ;;
20957esac
20958
20959fi
20960
20961
20962ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20963if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20964  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20965
20966else
20967  case " $LIBOBJS " in
20968  *" explicit_bzero.$ac_objext "* ) ;;
20969  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20970 ;;
20971esac
20972
20973fi
20974
20975
20976LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20977
20978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20979$as_echo_n "checking for reallocarray... " >&6; }
20980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981/* end confdefs.h.  */
20982$ac_includes_default
20983
20984#ifndef _OPENBSD_SOURCE
20985#define _OPENBSD_SOURCE 1
20986#endif
20987#include <stdlib.h>
20988int main(void) {
20989	void* p = reallocarray(NULL, 10, 100);
20990	free(p);
20991	return 0;
20992}
20993
20994_ACEOF
20995if ac_fn_c_try_link "$LINENO"; then :
20996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20997$as_echo "yes" >&6; }
20998
20999$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21000
21001
21002else
21003
21004	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005$as_echo "no" >&6; }
21006	case " $LIBOBJS " in
21007  *" reallocarray.$ac_objext "* ) ;;
21008  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21009 ;;
21010esac
21011
21012
21013fi
21014rm -f core conftest.err conftest.$ac_objext \
21015    conftest$ac_exeext conftest.$ac_ext
21016ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
21017if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
21018  ac_have_decl=1
21019else
21020  ac_have_decl=0
21021fi
21022
21023cat >>confdefs.h <<_ACEOF
21024#define HAVE_DECL_REALLOCARRAY $ac_have_decl
21025_ACEOF
21026
21027if test "$USE_NSS" = "no"; then
21028	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21029if test "x$ac_cv_func_arc4random" = xyes; then :
21030  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21031
21032else
21033  case " $LIBOBJS " in
21034  *" arc4random.$ac_objext "* ) ;;
21035  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
21036 ;;
21037esac
21038
21039fi
21040
21041
21042	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
21043if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
21044  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
21045
21046else
21047  case " $LIBOBJS " in
21048  *" arc4random_uniform.$ac_objext "* ) ;;
21049  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
21050 ;;
21051esac
21052
21053fi
21054
21055
21056	if test "$ac_cv_func_arc4random" = "no"; then
21057		case " $LIBOBJS " in
21058  *" arc4_lock.$ac_objext "* ) ;;
21059  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
21060 ;;
21061esac
21062
21063		for ac_func in getentropy
21064do :
21065  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21066if test "x$ac_cv_func_getentropy" = xyes; then :
21067  cat >>confdefs.h <<_ACEOF
21068#define HAVE_GETENTROPY 1
21069_ACEOF
21070
21071else
21072
21073		    if test "$USE_WINSOCK" = 1; then
21074			case " $LIBOBJS " in
21075  *" getentropy_win.$ac_objext "* ) ;;
21076  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
21077 ;;
21078esac
21079
21080		    else
21081			case "$host" in
21082			Darwin|*darwin*)
21083				case " $LIBOBJS " in
21084  *" getentropy_osx.$ac_objext "* ) ;;
21085  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
21086 ;;
21087esac
21088
21089			;;
21090			*solaris*|*sunos*|SunOS)
21091				case " $LIBOBJS " in
21092  *" getentropy_solaris.$ac_objext "* ) ;;
21093  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
21094 ;;
21095esac
21096
21097				for ac_header in sys/sha2.h
21098do :
21099  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
21100"
21101if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
21102  cat >>confdefs.h <<_ACEOF
21103#define HAVE_SYS_SHA2_H 1
21104_ACEOF
21105
21106else
21107
21108					for ac_func in SHA512_Update
21109do :
21110  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21111if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21112  cat >>confdefs.h <<_ACEOF
21113#define HAVE_SHA512_UPDATE 1
21114_ACEOF
21115
21116else
21117
21118						case " $LIBOBJS " in
21119  *" sha512.$ac_objext "* ) ;;
21120  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21121 ;;
21122esac
21123
21124
21125fi
21126done
21127
21128
21129fi
21130
21131done
21132
21133				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
21134					# this lib needed for sha2 on solaris
21135					LIBS="$LIBS -lmd"
21136				fi
21137				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21138$as_echo_n "checking for library containing clock_gettime... " >&6; }
21139if ${ac_cv_search_clock_gettime+:} false; then :
21140  $as_echo_n "(cached) " >&6
21141else
21142  ac_func_search_save_LIBS=$LIBS
21143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144/* end confdefs.h.  */
21145
21146/* Override any GCC internal prototype to avoid an error.
21147   Use char because int might match the return type of a GCC
21148   builtin and then its argument prototype would still apply.  */
21149#ifdef __cplusplus
21150extern "C"
21151#endif
21152char clock_gettime ();
21153int
21154main ()
21155{
21156return clock_gettime ();
21157  ;
21158  return 0;
21159}
21160_ACEOF
21161for ac_lib in '' rt; do
21162  if test -z "$ac_lib"; then
21163    ac_res="none required"
21164  else
21165    ac_res=-l$ac_lib
21166    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21167  fi
21168  if ac_fn_c_try_link "$LINENO"; then :
21169  ac_cv_search_clock_gettime=$ac_res
21170fi
21171rm -f core conftest.err conftest.$ac_objext \
21172    conftest$ac_exeext
21173  if ${ac_cv_search_clock_gettime+:} false; then :
21174  break
21175fi
21176done
21177if ${ac_cv_search_clock_gettime+:} false; then :
21178
21179else
21180  ac_cv_search_clock_gettime=no
21181fi
21182rm conftest.$ac_ext
21183LIBS=$ac_func_search_save_LIBS
21184fi
21185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21186$as_echo "$ac_cv_search_clock_gettime" >&6; }
21187ac_res=$ac_cv_search_clock_gettime
21188if test "$ac_res" != no; then :
21189  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21190
21191fi
21192
21193			;;
21194			*freebsd*|*FreeBSD)
21195				case " $LIBOBJS " in
21196  *" getentropy_freebsd.$ac_objext "* ) ;;
21197  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21198 ;;
21199esac
21200
21201			;;
21202			*linux*|Linux|*)
21203				case " $LIBOBJS " in
21204  *" getentropy_linux.$ac_objext "* ) ;;
21205  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21206 ;;
21207esac
21208
21209				for ac_func in SHA512_Update
21210do :
21211  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21212if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21213  cat >>confdefs.h <<_ACEOF
21214#define HAVE_SHA512_UPDATE 1
21215_ACEOF
21216
21217else
21218
21219
21220$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21221
21222					case " $LIBOBJS " in
21223  *" sha512.$ac_objext "* ) ;;
21224  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21225 ;;
21226esac
21227
21228
21229fi
21230done
21231
21232				for ac_header in sys/sysctl.h
21233do :
21234  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21235"
21236if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21237  cat >>confdefs.h <<_ACEOF
21238#define HAVE_SYS_SYSCTL_H 1
21239_ACEOF
21240
21241fi
21242
21243done
21244
21245				for ac_func in getauxval
21246do :
21247  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21248if test "x$ac_cv_func_getauxval" = xyes; then :
21249  cat >>confdefs.h <<_ACEOF
21250#define HAVE_GETAUXVAL 1
21251_ACEOF
21252
21253fi
21254done
21255
21256				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21257$as_echo_n "checking for library containing clock_gettime... " >&6; }
21258if ${ac_cv_search_clock_gettime+:} false; then :
21259  $as_echo_n "(cached) " >&6
21260else
21261  ac_func_search_save_LIBS=$LIBS
21262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263/* end confdefs.h.  */
21264
21265/* Override any GCC internal prototype to avoid an error.
21266   Use char because int might match the return type of a GCC
21267   builtin and then its argument prototype would still apply.  */
21268#ifdef __cplusplus
21269extern "C"
21270#endif
21271char clock_gettime ();
21272int
21273main ()
21274{
21275return clock_gettime ();
21276  ;
21277  return 0;
21278}
21279_ACEOF
21280for ac_lib in '' rt; do
21281  if test -z "$ac_lib"; then
21282    ac_res="none required"
21283  else
21284    ac_res=-l$ac_lib
21285    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21286  fi
21287  if ac_fn_c_try_link "$LINENO"; then :
21288  ac_cv_search_clock_gettime=$ac_res
21289fi
21290rm -f core conftest.err conftest.$ac_objext \
21291    conftest$ac_exeext
21292  if ${ac_cv_search_clock_gettime+:} false; then :
21293  break
21294fi
21295done
21296if ${ac_cv_search_clock_gettime+:} false; then :
21297
21298else
21299  ac_cv_search_clock_gettime=no
21300fi
21301rm conftest.$ac_ext
21302LIBS=$ac_func_search_save_LIBS
21303fi
21304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21305$as_echo "$ac_cv_search_clock_gettime" >&6; }
21306ac_res=$ac_cv_search_clock_gettime
21307if test "$ac_res" != no; then :
21308  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21309
21310fi
21311
21312			;;
21313			esac
21314		    fi
21315
21316fi
21317done
21318
21319	fi
21320fi
21321LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21322
21323ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21324if test "x$ac_cv_func_ctime_r" = xyes; then :
21325  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21326
21327else
21328  case " $LIBOBJS " in
21329  *" ctime_r.$ac_objext "* ) ;;
21330  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21331 ;;
21332esac
21333
21334fi
21335
21336
21337ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21338if test "x$ac_cv_func_strsep" = xyes; then :
21339  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21340
21341else
21342  case " $LIBOBJS " in
21343  *" strsep.$ac_objext "* ) ;;
21344  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21345 ;;
21346esac
21347
21348fi
21349
21350
21351
21352# Check whether --enable-allsymbols was given.
21353if test "${enable_allsymbols+set}" = set; then :
21354  enableval=$enable_allsymbols;
21355fi
21356
21357case "$enable_allsymbols" in
21358	yes)
21359	COMMON_OBJ_ALL_SYMBOLS=""
21360	UBSYMS=""
21361	EXTRALINK="libunbound.la"
21362
21363$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21364
21365	;;
21366	no|*)
21367	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21368	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21369	EXTRALINK=""
21370	;;
21371esac
21372
21373
21374
21375if test x_$enable_lock_checks = x_yes; then
21376	UBSYMS="-export-symbols clubsyms.def"
21377	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21378	echo lock_protect >> clubsyms.def
21379	echo lock_unprotect >> clubsyms.def
21380	echo lock_get_mem >> clubsyms.def
21381	echo checklock_start >> clubsyms.def
21382	echo checklock_stop >> clubsyms.def
21383	echo checklock_lock >> clubsyms.def
21384	echo checklock_unlock >> clubsyms.def
21385	echo checklock_init >> clubsyms.def
21386	echo checklock_thrcreate >> clubsyms.def
21387	echo checklock_thrjoin >> clubsyms.def
21388fi
21389
21390# check for dnstap if requested
21391
21392  # Check whether --enable-dnstap was given.
21393if test "${enable_dnstap+set}" = set; then :
21394  enableval=$enable_dnstap; opt_dnstap=$enableval
21395else
21396  opt_dnstap=no
21397fi
21398
21399
21400
21401# Check whether --with-dnstap-socket-path was given.
21402if test "${with_dnstap_socket_path+set}" = set; then :
21403  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21404else
21405  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21406fi
21407
21408
21409  if test "x$opt_dnstap" != "xno"; then
21410    # Extract the first word of "protoc-c", so it can be a program name with args.
21411set dummy protoc-c; ac_word=$2
21412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21413$as_echo_n "checking for $ac_word... " >&6; }
21414if ${ac_cv_path_PROTOC_C+:} false; then :
21415  $as_echo_n "(cached) " >&6
21416else
21417  case $PROTOC_C in
21418  [\\/]* | ?:[\\/]*)
21419  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21420  ;;
21421  *)
21422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21423for as_dir in $PATH
21424do
21425  IFS=$as_save_IFS
21426  test -z "$as_dir" && as_dir=.
21427    for ac_exec_ext in '' $ac_executable_extensions; do
21428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21429    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21431    break 2
21432  fi
21433done
21434  done
21435IFS=$as_save_IFS
21436
21437  ;;
21438esac
21439fi
21440PROTOC_C=$ac_cv_path_PROTOC_C
21441if test -n "$PROTOC_C"; then
21442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21443$as_echo "$PROTOC_C" >&6; }
21444else
21445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21446$as_echo "no" >&6; }
21447fi
21448
21449
21450    if test -z "$PROTOC_C"; then
21451      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21452    fi
21453
21454# Check whether --with-protobuf-c was given.
21455if test "${with_protobuf_c+set}" = set; then :
21456  withval=$with_protobuf_c;
21457	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21458	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21459	    CFLAGS="$CFLAGS -I$withval/include/google"
21460	  else
21461	    CFLAGS="$CFLAGS -I$withval/include"
21462	  fi
21463	  LDFLAGS="$LDFLAGS -L$withval/lib"
21464
21465else
21466
21467	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21468	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21469	    CFLAGS="$CFLAGS -I/usr/include/google"
21470	  else
21471	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21472	      CFLAGS="$CFLAGS -I/usr/local/include/google"
21473	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
21474	    fi
21475	  fi
21476
21477fi
21478
21479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21480$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21481if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21482  $as_echo_n "(cached) " >&6
21483else
21484  ac_func_search_save_LIBS=$LIBS
21485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486/* end confdefs.h.  */
21487
21488/* Override any GCC internal prototype to avoid an error.
21489   Use char because int might match the return type of a GCC
21490   builtin and then its argument prototype would still apply.  */
21491#ifdef __cplusplus
21492extern "C"
21493#endif
21494char protobuf_c_message_pack ();
21495int
21496main ()
21497{
21498return protobuf_c_message_pack ();
21499  ;
21500  return 0;
21501}
21502_ACEOF
21503for ac_lib in '' protobuf-c; do
21504  if test -z "$ac_lib"; then
21505    ac_res="none required"
21506  else
21507    ac_res=-l$ac_lib
21508    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21509  fi
21510  if ac_fn_c_try_link "$LINENO"; then :
21511  ac_cv_search_protobuf_c_message_pack=$ac_res
21512fi
21513rm -f core conftest.err conftest.$ac_objext \
21514    conftest$ac_exeext
21515  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21516  break
21517fi
21518done
21519if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21520
21521else
21522  ac_cv_search_protobuf_c_message_pack=no
21523fi
21524rm conftest.$ac_ext
21525LIBS=$ac_func_search_save_LIBS
21526fi
21527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21528$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21529ac_res=$ac_cv_search_protobuf_c_message_pack
21530if test "$ac_res" != no; then :
21531  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21532
21533else
21534  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21535fi
21536
21537
21538
21539$as_echo "#define USE_DNSTAP 1" >>confdefs.h
21540
21541        ENABLE_DNSTAP=1
21542
21543
21544
21545        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21546
21547
21548cat >>confdefs.h <<_ACEOF
21549#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21550_ACEOF
21551
21552	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21553
21554	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21555
21556        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21557
21558        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21559
21560
21561  else
21562
21563        ENABLE_DNSTAP=0
21564
21565
21566
21567  fi
21568
21569
21570# check for dnscrypt if requested
21571
21572  # Check whether --enable-dnscrypt was given.
21573if test "${enable_dnscrypt+set}" = set; then :
21574  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21575else
21576  opt_dnscrypt=no
21577fi
21578
21579
21580  if test "x$opt_dnscrypt" != "xno"; then
21581
21582# Check whether --with-libsodium was given.
21583if test "${with_libsodium+set}" = set; then :
21584  withval=$with_libsodium;
21585	CFLAGS="$CFLAGS -I$withval/include"
21586	LDFLAGS="$LDFLAGS -L$withval/lib"
21587
21588fi
21589
21590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21591$as_echo_n "checking for library containing sodium_init... " >&6; }
21592if ${ac_cv_search_sodium_init+:} false; then :
21593  $as_echo_n "(cached) " >&6
21594else
21595  ac_func_search_save_LIBS=$LIBS
21596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21597/* end confdefs.h.  */
21598
21599/* Override any GCC internal prototype to avoid an error.
21600   Use char because int might match the return type of a GCC
21601   builtin and then its argument prototype would still apply.  */
21602#ifdef __cplusplus
21603extern "C"
21604#endif
21605char sodium_init ();
21606int
21607main ()
21608{
21609return sodium_init ();
21610  ;
21611  return 0;
21612}
21613_ACEOF
21614for ac_lib in '' sodium; do
21615  if test -z "$ac_lib"; then
21616    ac_res="none required"
21617  else
21618    ac_res=-l$ac_lib
21619    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21620  fi
21621  if ac_fn_c_try_link "$LINENO"; then :
21622  ac_cv_search_sodium_init=$ac_res
21623fi
21624rm -f core conftest.err conftest.$ac_objext \
21625    conftest$ac_exeext
21626  if ${ac_cv_search_sodium_init+:} false; then :
21627  break
21628fi
21629done
21630if ${ac_cv_search_sodium_init+:} false; then :
21631
21632else
21633  ac_cv_search_sodium_init=no
21634fi
21635rm conftest.$ac_ext
21636LIBS=$ac_func_search_save_LIBS
21637fi
21638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21639$as_echo "$ac_cv_search_sodium_init" >&6; }
21640ac_res=$ac_cv_search_sodium_init
21641if test "$ac_res" != no; then :
21642  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21643
21644else
21645  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21646fi
21647
21648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21649$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21650if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21651  $as_echo_n "(cached) " >&6
21652else
21653  ac_func_search_save_LIBS=$LIBS
21654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21655/* end confdefs.h.  */
21656
21657/* Override any GCC internal prototype to avoid an error.
21658   Use char because int might match the return type of a GCC
21659   builtin and then its argument prototype would still apply.  */
21660#ifdef __cplusplus
21661extern "C"
21662#endif
21663char crypto_box_curve25519xchacha20poly1305_beforenm ();
21664int
21665main ()
21666{
21667return crypto_box_curve25519xchacha20poly1305_beforenm ();
21668  ;
21669  return 0;
21670}
21671_ACEOF
21672for ac_lib in '' sodium; do
21673  if test -z "$ac_lib"; then
21674    ac_res="none required"
21675  else
21676    ac_res=-l$ac_lib
21677    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21678  fi
21679  if ac_fn_c_try_link "$LINENO"; then :
21680  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21681fi
21682rm -f core conftest.err conftest.$ac_objext \
21683    conftest$ac_exeext
21684  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21685  break
21686fi
21687done
21688if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21689
21690else
21691  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21692fi
21693rm conftest.$ac_ext
21694LIBS=$ac_func_search_save_LIBS
21695fi
21696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21697$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21698ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21699if test "$ac_res" != no; then :
21700  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21701
21702            ENABLE_DNSCRYPT_XCHACHA20=1
21703
21704
21705$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21706
21707
21708else
21709
21710            ENABLE_DNSCRYPT_XCHACHA20=0
21711
21712
21713fi
21714
21715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21716$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21717if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21718  $as_echo_n "(cached) " >&6
21719else
21720  ac_func_search_save_LIBS=$LIBS
21721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722/* end confdefs.h.  */
21723
21724/* Override any GCC internal prototype to avoid an error.
21725   Use char because int might match the return type of a GCC
21726   builtin and then its argument prototype would still apply.  */
21727#ifdef __cplusplus
21728extern "C"
21729#endif
21730char sodium_set_misuse_handler ();
21731int
21732main ()
21733{
21734return sodium_set_misuse_handler ();
21735  ;
21736  return 0;
21737}
21738_ACEOF
21739for ac_lib in '' sodium; do
21740  if test -z "$ac_lib"; then
21741    ac_res="none required"
21742  else
21743    ac_res=-l$ac_lib
21744    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21745  fi
21746  if ac_fn_c_try_link "$LINENO"; then :
21747  ac_cv_search_sodium_set_misuse_handler=$ac_res
21748fi
21749rm -f core conftest.err conftest.$ac_objext \
21750    conftest$ac_exeext
21751  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21752  break
21753fi
21754done
21755if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21756
21757else
21758  ac_cv_search_sodium_set_misuse_handler=no
21759fi
21760rm conftest.$ac_ext
21761LIBS=$ac_func_search_save_LIBS
21762fi
21763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21764$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21765ac_res=$ac_cv_search_sodium_set_misuse_handler
21766if test "$ac_res" != no; then :
21767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21768
21769
21770$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21771
21772
21773fi
21774
21775
21776
21777$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21778
21779        ENABLE_DNSCRYPT=1
21780
21781
21782        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21783
21784        DNSCRYPT_OBJ="dnscrypt.lo"
21785
21786
21787  else
21788    ENABLE_DNSCRYPT_XCHACHA20=0
21789
21790
21791        ENABLE_DNSCRYPT=0
21792
21793
21794
21795  fi
21796
21797
21798# check for cachedb if requested
21799# Check whether --enable-cachedb was given.
21800if test "${enable_cachedb+set}" = set; then :
21801  enableval=$enable_cachedb;
21802fi
21803
21804# turn on cachedb when hiredis support is enabled.
21805if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21806case "$enable_cachedb" in
21807    yes)
21808
21809$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21810
21811	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21812
21813	CACHEDB_OBJ="cachedb.lo redis.lo"
21814
21815    	;;
21816    no|*)
21817    	# nothing
21818    	;;
21819esac
21820
21821# check for ipsecmod if requested
21822# Check whether --enable-ipsecmod was given.
21823if test "${enable_ipsecmod+set}" = set; then :
21824  enableval=$enable_ipsecmod;
21825fi
21826
21827case "$enable_ipsecmod" in
21828	yes)
21829
21830$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21831
21832		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21833
21834		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21835
21836		;;
21837	no|*)
21838		# nothing
21839		;;
21840esac
21841
21842# check for ipset if requested
21843# Check whether --enable-ipset was given.
21844if test "${enable_ipset+set}" = set; then :
21845  enableval=$enable_ipset;
21846fi
21847
21848case "$enable_ipset" in
21849    yes)
21850
21851$as_echo "#define USE_IPSET 1" >>confdefs.h
21852
21853		IPSET_SRC="ipset/ipset.c"
21854
21855		IPSET_OBJ="ipset.lo"
21856
21857
21858		# mnl
21859
21860# Check whether --with-libmnl was given.
21861if test "${with_libmnl+set}" = set; then :
21862  withval=$with_libmnl;
21863else
21864   withval="yes"
21865fi
21866
21867		found_libmnl="no"
21868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21869$as_echo_n "checking for libmnl... " >&6; }
21870		if test x_$withval = x_ -o x_$withval = x_yes; then
21871			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21872		fi
21873		for dir in $withval ; do
21874			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21875				found_libmnl="yes"
21876								extralibmnl=""
21877				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21878					extralibmnl="/libmnl"
21879				fi
21880				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21881					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21882				fi
21883				if test "$dir" != "/usr"; then
21884					LDFLAGS="$LDFLAGS -L$dir/lib"
21885				fi
21886				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21887$as_echo "found in $dir" >&6; }
21888				LIBS="$LIBS -lmnl"
21889				break;
21890			fi
21891		done
21892		if test x_$found_libmnl != x_yes; then
21893			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21894		fi
21895		;;
21896    no|*)
21897    	# nothing
21898		;;
21899esac
21900# Check whether --enable-explicit-port-randomisation was given.
21901if test "${enable_explicit_port_randomisation+set}" = set; then :
21902  enableval=$enable_explicit_port_randomisation;
21903fi
21904
21905case "$enable_explicit_port_randomisation" in
21906	no)
21907
21908$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21909
21910		;;
21911	yes|*)
21912		;;
21913esac
21914
21915if echo "$host" | $GREP -i -e linux >/dev/null; then
21916	# Check whether --enable-linux-ip-local-port-range was given.
21917if test "${enable_linux_ip_local_port_range+set}" = set; then :
21918  enableval=$enable_linux_ip_local_port_range;
21919fi
21920
21921	case "$enable_linux_ip_local_port_range" in
21922		yes)
21923
21924$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21925
21926			;;
21927		no|*)
21928			;;
21929	esac
21930fi
21931
21932
21933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21934$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21935# on openBSD, the implicit rule make $< work.
21936# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21937# gmake works.
21938cat >conftest.make <<EOF
21939all:	conftest.lo
21940
21941conftest.lo foo.lo bla.lo:
21942	if test -f "\$<"; then touch \$@; fi
21943
21944.SUFFIXES: .lo
21945.c.lo:
21946	if test -f "\$<"; then touch \$@; fi
21947
21948conftest.lo:        conftest.dir/conftest.c
21949EOF
21950mkdir conftest.dir
21951touch conftest.dir/conftest.c
21952rm -f conftest.lo conftest.c
21953${MAKE:-make} -f conftest.make >/dev/null
21954rm -f conftest.make conftest.c conftest.dir/conftest.c
21955rm -rf conftest.dir
21956if test ! -f conftest.lo; then
21957	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21958$as_echo "no" >&6; }
21959	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21960	SOURCEFILE='`cat .source`'
21961else
21962	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21963$as_echo "yes" >&6; }
21964	SOURCEDETERMINE=':'
21965	SOURCEFILE='$<'
21966fi
21967rm -f conftest.lo
21968
21969
21970
21971# see if we want to build the library or everything
21972ALLTARGET="alltargets"
21973INSTALLTARGET="install-all"
21974
21975# Check whether --with-libunbound-only was given.
21976if test "${with_libunbound_only+set}" = set; then :
21977  withval=$with_libunbound_only;
21978	if test "$withval" = "yes"; then
21979		ALLTARGET="lib"
21980		INSTALLTARGET="install-lib"
21981	fi
21982
21983fi
21984
21985if test $ALLTARGET = "alltargets"; then
21986	if test $USE_NSS = "yes"; then
21987		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21988	fi
21989	if test $USE_NETTLE = "yes"; then
21990		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21991	fi
21992fi
21993
21994
21995
21996
21997
21998  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21999$as_echo "$as_me: Stripping extension flags..." >&6;}
22000
22001  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
22002    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
22003
22004$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
22005
22006  fi
22007
22008
22009  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
22010    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
22011
22012$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
22013
22014  fi
22015
22016
22017  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
22018    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
22019
22020$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
22021
22022  fi
22023
22024
22025  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
22026    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
22027
22028$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
22029
22030  fi
22031
22032
22033  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
22034    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
22035
22036$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
22037
22038  fi
22039
22040
22041  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
22042    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
22043
22044$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
22045
22046  fi
22047
22048
22049  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
22050    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
22051
22052$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
22053
22054  fi
22055
22056
22057  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
22058    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
22059
22060$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
22061
22062  fi
22063
22064
22065  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
22066    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
22067
22068$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
22069
22070  fi
22071
22072
22073if test -n "$LATE_LDFLAGS"; then
22074  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
22075fi
22076# remove start spaces
22077LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
22078LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
22079
22080
22081cat >>confdefs.h <<_ACEOF
22082#define MAXSYSLOGMSGLEN 10240
22083_ACEOF
22084
22085
22086
22087
22088version=1.17.0
22089
22090date=`date +'%b %e, %Y'`
22091
22092
22093ac_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 contrib/unbound_portable.service"
22094
22095ac_config_headers="$ac_config_headers config.h"
22096
22097cat >confcache <<\_ACEOF
22098# This file is a shell script that caches the results of configure
22099# tests run on this system so they can be shared between configure
22100# scripts and configure runs, see configure's option --config-cache.
22101# It is not useful on other systems.  If it contains results you don't
22102# want to keep, you may remove or edit it.
22103#
22104# config.status only pays attention to the cache file if you give it
22105# the --recheck option to rerun configure.
22106#
22107# `ac_cv_env_foo' variables (set or unset) will be overridden when
22108# loading this file, other *unset* `ac_cv_foo' will be assigned the
22109# following values.
22110
22111_ACEOF
22112
22113# The following way of writing the cache mishandles newlines in values,
22114# but we know of no workaround that is simple, portable, and efficient.
22115# So, we kill variables containing newlines.
22116# Ultrix sh set writes to stderr and can't be redirected directly,
22117# and sets the high bit in the cache file unless we assign to the vars.
22118(
22119  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22120    eval ac_val=\$$ac_var
22121    case $ac_val in #(
22122    *${as_nl}*)
22123      case $ac_var in #(
22124      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22126      esac
22127      case $ac_var in #(
22128      _ | IFS | as_nl) ;; #(
22129      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22130      *) { eval $ac_var=; unset $ac_var;} ;;
22131      esac ;;
22132    esac
22133  done
22134
22135  (set) 2>&1 |
22136    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22137    *${as_nl}ac_space=\ *)
22138      # `set' does not quote correctly, so add quotes: double-quote
22139      # substitution turns \\\\ into \\, and sed turns \\ into \.
22140      sed -n \
22141	"s/'/'\\\\''/g;
22142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22143      ;; #(
22144    *)
22145      # `set' quotes correctly as required by POSIX, so do not add quotes.
22146      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22147      ;;
22148    esac |
22149    sort
22150) |
22151  sed '
22152     /^ac_cv_env_/b end
22153     t clear
22154     :clear
22155     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22156     t end
22157     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22158     :end' >>confcache
22159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22160  if test -w "$cache_file"; then
22161    if test "x$cache_file" != "x/dev/null"; then
22162      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22163$as_echo "$as_me: updating cache $cache_file" >&6;}
22164      if test ! -f "$cache_file" || test -h "$cache_file"; then
22165	cat confcache >"$cache_file"
22166      else
22167        case $cache_file in #(
22168        */* | ?:*)
22169	  mv -f confcache "$cache_file"$$ &&
22170	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22171        *)
22172	  mv -f confcache "$cache_file" ;;
22173	esac
22174      fi
22175    fi
22176  else
22177    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22178$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22179  fi
22180fi
22181rm -f confcache
22182
22183test "x$prefix" = xNONE && prefix=$ac_default_prefix
22184# Let make expand exec_prefix.
22185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22186
22187DEFS=-DHAVE_CONFIG_H
22188
22189ac_libobjs=
22190ac_ltlibobjs=
22191U=
22192for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22193  # 1. Remove the extension, and $U if already installed.
22194  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22195  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22196  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22197  #    will be set to the directory where LIBOBJS objects are built.
22198  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22199  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22200done
22201LIBOBJS=$ac_libobjs
22202
22203LTLIBOBJS=$ac_ltlibobjs
22204
22205
22206if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22207  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22208Usually this means the macro was only invoked conditionally." "$LINENO" 5
22209fi
22210
22211: "${CONFIG_STATUS=./config.status}"
22212ac_write_fail=0
22213ac_clean_files_save=$ac_clean_files
22214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22215{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22216$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22217as_write_fail=0
22218cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22219#! $SHELL
22220# Generated by $as_me.
22221# Run this file to recreate the current configuration.
22222# Compiler output produced by configure, useful for debugging
22223# configure, is in config.log if it exists.
22224
22225debug=false
22226ac_cs_recheck=false
22227ac_cs_silent=false
22228
22229SHELL=\${CONFIG_SHELL-$SHELL}
22230export SHELL
22231_ASEOF
22232cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22233## -------------------- ##
22234## M4sh Initialization. ##
22235## -------------------- ##
22236
22237# Be more Bourne compatible
22238DUALCASE=1; export DUALCASE # for MKS sh
22239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22240  emulate sh
22241  NULLCMD=:
22242  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22243  # is contrary to our usage.  Disable this feature.
22244  alias -g '${1+"$@"}'='"$@"'
22245  setopt NO_GLOB_SUBST
22246else
22247  case `(set -o) 2>/dev/null` in #(
22248  *posix*) :
22249    set -o posix ;; #(
22250  *) :
22251     ;;
22252esac
22253fi
22254
22255
22256as_nl='
22257'
22258export as_nl
22259# Printing a long string crashes Solaris 7 /usr/bin/printf.
22260as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22263# Prefer a ksh shell builtin over an external printf program on Solaris,
22264# but without wasting forks for bash or zsh.
22265if test -z "$BASH_VERSION$ZSH_VERSION" \
22266    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22267  as_echo='print -r --'
22268  as_echo_n='print -rn --'
22269elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22270  as_echo='printf %s\n'
22271  as_echo_n='printf %s'
22272else
22273  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22274    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22275    as_echo_n='/usr/ucb/echo -n'
22276  else
22277    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22278    as_echo_n_body='eval
22279      arg=$1;
22280      case $arg in #(
22281      *"$as_nl"*)
22282	expr "X$arg" : "X\\(.*\\)$as_nl";
22283	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22284      esac;
22285      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22286    '
22287    export as_echo_n_body
22288    as_echo_n='sh -c $as_echo_n_body as_echo'
22289  fi
22290  export as_echo_body
22291  as_echo='sh -c $as_echo_body as_echo'
22292fi
22293
22294# The user is always right.
22295if test "${PATH_SEPARATOR+set}" != set; then
22296  PATH_SEPARATOR=:
22297  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22298    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22299      PATH_SEPARATOR=';'
22300  }
22301fi
22302
22303
22304# IFS
22305# We need space, tab and new line, in precisely that order.  Quoting is
22306# there to prevent editors from complaining about space-tab.
22307# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22308# splitting by setting IFS to empty value.)
22309IFS=" ""	$as_nl"
22310
22311# Find who we are.  Look in the path if we contain no directory separator.
22312as_myself=
22313case $0 in #((
22314  *[\\/]* ) as_myself=$0 ;;
22315  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316for as_dir in $PATH
22317do
22318  IFS=$as_save_IFS
22319  test -z "$as_dir" && as_dir=.
22320    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22321  done
22322IFS=$as_save_IFS
22323
22324     ;;
22325esac
22326# We did not find ourselves, most probably we were run as `sh COMMAND'
22327# in which case we are not to be found in the path.
22328if test "x$as_myself" = x; then
22329  as_myself=$0
22330fi
22331if test ! -f "$as_myself"; then
22332  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22333  exit 1
22334fi
22335
22336# Unset variables that we do not need and which cause bugs (e.g. in
22337# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22338# suppresses any "Segmentation fault" message there.  '((' could
22339# trigger a bug in pdksh 5.2.14.
22340for as_var in BASH_ENV ENV MAIL MAILPATH
22341do eval test x\${$as_var+set} = xset \
22342  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22343done
22344PS1='$ '
22345PS2='> '
22346PS4='+ '
22347
22348# NLS nuisances.
22349LC_ALL=C
22350export LC_ALL
22351LANGUAGE=C
22352export LANGUAGE
22353
22354# CDPATH.
22355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22356
22357
22358# as_fn_error STATUS ERROR [LINENO LOG_FD]
22359# ----------------------------------------
22360# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22361# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22362# script with STATUS, using 1 if that was 0.
22363as_fn_error ()
22364{
22365  as_status=$1; test $as_status -eq 0 && as_status=1
22366  if test "$4"; then
22367    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22368    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22369  fi
22370  $as_echo "$as_me: error: $2" >&2
22371  as_fn_exit $as_status
22372} # as_fn_error
22373
22374
22375# as_fn_set_status STATUS
22376# -----------------------
22377# Set $? to STATUS, without forking.
22378as_fn_set_status ()
22379{
22380  return $1
22381} # as_fn_set_status
22382
22383# as_fn_exit STATUS
22384# -----------------
22385# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22386as_fn_exit ()
22387{
22388  set +e
22389  as_fn_set_status $1
22390  exit $1
22391} # as_fn_exit
22392
22393# as_fn_unset VAR
22394# ---------------
22395# Portably unset VAR.
22396as_fn_unset ()
22397{
22398  { eval $1=; unset $1;}
22399}
22400as_unset=as_fn_unset
22401# as_fn_append VAR VALUE
22402# ----------------------
22403# Append the text in VALUE to the end of the definition contained in VAR. Take
22404# advantage of any shell optimizations that allow amortized linear growth over
22405# repeated appends, instead of the typical quadratic growth present in naive
22406# implementations.
22407if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22408  eval 'as_fn_append ()
22409  {
22410    eval $1+=\$2
22411  }'
22412else
22413  as_fn_append ()
22414  {
22415    eval $1=\$$1\$2
22416  }
22417fi # as_fn_append
22418
22419# as_fn_arith ARG...
22420# ------------------
22421# Perform arithmetic evaluation on the ARGs, and store the result in the
22422# global $as_val. Take advantage of shells that can avoid forks. The arguments
22423# must be portable across $(()) and expr.
22424if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22425  eval 'as_fn_arith ()
22426  {
22427    as_val=$(( $* ))
22428  }'
22429else
22430  as_fn_arith ()
22431  {
22432    as_val=`expr "$@" || test $? -eq 1`
22433  }
22434fi # as_fn_arith
22435
22436
22437if expr a : '\(a\)' >/dev/null 2>&1 &&
22438   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22439  as_expr=expr
22440else
22441  as_expr=false
22442fi
22443
22444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22445  as_basename=basename
22446else
22447  as_basename=false
22448fi
22449
22450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22451  as_dirname=dirname
22452else
22453  as_dirname=false
22454fi
22455
22456as_me=`$as_basename -- "$0" ||
22457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22458	 X"$0" : 'X\(//\)$' \| \
22459	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22460$as_echo X/"$0" |
22461    sed '/^.*\/\([^/][^/]*\)\/*$/{
22462	    s//\1/
22463	    q
22464	  }
22465	  /^X\/\(\/\/\)$/{
22466	    s//\1/
22467	    q
22468	  }
22469	  /^X\/\(\/\).*/{
22470	    s//\1/
22471	    q
22472	  }
22473	  s/.*/./; q'`
22474
22475# Avoid depending upon Character Ranges.
22476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22479as_cr_digits='0123456789'
22480as_cr_alnum=$as_cr_Letters$as_cr_digits
22481
22482ECHO_C= ECHO_N= ECHO_T=
22483case `echo -n x` in #(((((
22484-n*)
22485  case `echo 'xy\c'` in
22486  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22487  xy)  ECHO_C='\c';;
22488  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22489       ECHO_T='	';;
22490  esac;;
22491*)
22492  ECHO_N='-n';;
22493esac
22494
22495rm -f conf$$ conf$$.exe conf$$.file
22496if test -d conf$$.dir; then
22497  rm -f conf$$.dir/conf$$.file
22498else
22499  rm -f conf$$.dir
22500  mkdir conf$$.dir 2>/dev/null
22501fi
22502if (echo >conf$$.file) 2>/dev/null; then
22503  if ln -s conf$$.file conf$$ 2>/dev/null; then
22504    as_ln_s='ln -s'
22505    # ... but there are two gotchas:
22506    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22507    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22508    # In both cases, we have to default to `cp -pR'.
22509    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22510      as_ln_s='cp -pR'
22511  elif ln conf$$.file conf$$ 2>/dev/null; then
22512    as_ln_s=ln
22513  else
22514    as_ln_s='cp -pR'
22515  fi
22516else
22517  as_ln_s='cp -pR'
22518fi
22519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22520rmdir conf$$.dir 2>/dev/null
22521
22522
22523# as_fn_mkdir_p
22524# -------------
22525# Create "$as_dir" as a directory, including parents if necessary.
22526as_fn_mkdir_p ()
22527{
22528
22529  case $as_dir in #(
22530  -*) as_dir=./$as_dir;;
22531  esac
22532  test -d "$as_dir" || eval $as_mkdir_p || {
22533    as_dirs=
22534    while :; do
22535      case $as_dir in #(
22536      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22537      *) as_qdir=$as_dir;;
22538      esac
22539      as_dirs="'$as_qdir' $as_dirs"
22540      as_dir=`$as_dirname -- "$as_dir" ||
22541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22542	 X"$as_dir" : 'X\(//\)[^/]' \| \
22543	 X"$as_dir" : 'X\(//\)$' \| \
22544	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22545$as_echo X"$as_dir" |
22546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22547	    s//\1/
22548	    q
22549	  }
22550	  /^X\(\/\/\)[^/].*/{
22551	    s//\1/
22552	    q
22553	  }
22554	  /^X\(\/\/\)$/{
22555	    s//\1/
22556	    q
22557	  }
22558	  /^X\(\/\).*/{
22559	    s//\1/
22560	    q
22561	  }
22562	  s/.*/./; q'`
22563      test -d "$as_dir" && break
22564    done
22565    test -z "$as_dirs" || eval "mkdir $as_dirs"
22566  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22567
22568
22569} # as_fn_mkdir_p
22570if mkdir -p . 2>/dev/null; then
22571  as_mkdir_p='mkdir -p "$as_dir"'
22572else
22573  test -d ./-p && rmdir ./-p
22574  as_mkdir_p=false
22575fi
22576
22577
22578# as_fn_executable_p FILE
22579# -----------------------
22580# Test if FILE is an executable regular file.
22581as_fn_executable_p ()
22582{
22583  test -f "$1" && test -x "$1"
22584} # as_fn_executable_p
22585as_test_x='test -x'
22586as_executable_p=as_fn_executable_p
22587
22588# Sed expression to map a string onto a valid CPP name.
22589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22590
22591# Sed expression to map a string onto a valid variable name.
22592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22593
22594
22595exec 6>&1
22596## ----------------------------------- ##
22597## Main body of $CONFIG_STATUS script. ##
22598## ----------------------------------- ##
22599_ASEOF
22600test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22601
22602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22603# Save the log message, to keep $0 and so on meaningful, and to
22604# report actual input values of CONFIG_FILES etc. instead of their
22605# values after options handling.
22606ac_log="
22607This file was extended by unbound $as_me 1.17.0, which was
22608generated by GNU Autoconf 2.69.  Invocation command line was
22609
22610  CONFIG_FILES    = $CONFIG_FILES
22611  CONFIG_HEADERS  = $CONFIG_HEADERS
22612  CONFIG_LINKS    = $CONFIG_LINKS
22613  CONFIG_COMMANDS = $CONFIG_COMMANDS
22614  $ $0 $@
22615
22616on `(hostname || uname -n) 2>/dev/null | sed 1q`
22617"
22618
22619_ACEOF
22620
22621case $ac_config_files in *"
22622"*) set x $ac_config_files; shift; ac_config_files=$*;;
22623esac
22624
22625case $ac_config_headers in *"
22626"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22627esac
22628
22629
22630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22631# Files that config.status was made for.
22632config_files="$ac_config_files"
22633config_headers="$ac_config_headers"
22634config_commands="$ac_config_commands"
22635
22636_ACEOF
22637
22638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22639ac_cs_usage="\
22640\`$as_me' instantiates files and other configuration actions
22641from templates according to the current configuration.  Unless the files
22642and actions are specified as TAGs, all are instantiated by default.
22643
22644Usage: $0 [OPTION]... [TAG]...
22645
22646  -h, --help       print this help, then exit
22647  -V, --version    print version number and configuration settings, then exit
22648      --config     print configuration, then exit
22649  -q, --quiet, --silent
22650                   do not print progress messages
22651  -d, --debug      don't remove temporary files
22652      --recheck    update $as_me by reconfiguring in the same conditions
22653      --file=FILE[:TEMPLATE]
22654                   instantiate the configuration file FILE
22655      --header=FILE[:TEMPLATE]
22656                   instantiate the configuration header FILE
22657
22658Configuration files:
22659$config_files
22660
22661Configuration headers:
22662$config_headers
22663
22664Configuration commands:
22665$config_commands
22666
22667Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22668
22669_ACEOF
22670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22671ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22672ac_cs_version="\\
22673unbound config.status 1.17.0
22674configured by $0, generated by GNU Autoconf 2.69,
22675  with options \\"\$ac_cs_config\\"
22676
22677Copyright (C) 2012 Free Software Foundation, Inc.
22678This config.status script is free software; the Free Software Foundation
22679gives unlimited permission to copy, distribute and modify it."
22680
22681ac_pwd='$ac_pwd'
22682srcdir='$srcdir'
22683AWK='$AWK'
22684test -n "\$AWK" || AWK=awk
22685_ACEOF
22686
22687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22688# The default lists apply if the user does not specify any file.
22689ac_need_defaults=:
22690while test $# != 0
22691do
22692  case $1 in
22693  --*=?*)
22694    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22695    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22696    ac_shift=:
22697    ;;
22698  --*=)
22699    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22700    ac_optarg=
22701    ac_shift=:
22702    ;;
22703  *)
22704    ac_option=$1
22705    ac_optarg=$2
22706    ac_shift=shift
22707    ;;
22708  esac
22709
22710  case $ac_option in
22711  # Handling of the options.
22712  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22713    ac_cs_recheck=: ;;
22714  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22715    $as_echo "$ac_cs_version"; exit ;;
22716  --config | --confi | --conf | --con | --co | --c )
22717    $as_echo "$ac_cs_config"; exit ;;
22718  --debug | --debu | --deb | --de | --d | -d )
22719    debug=: ;;
22720  --file | --fil | --fi | --f )
22721    $ac_shift
22722    case $ac_optarg in
22723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22724    '') as_fn_error $? "missing file argument" ;;
22725    esac
22726    as_fn_append CONFIG_FILES " '$ac_optarg'"
22727    ac_need_defaults=false;;
22728  --header | --heade | --head | --hea )
22729    $ac_shift
22730    case $ac_optarg in
22731    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22732    esac
22733    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22734    ac_need_defaults=false;;
22735  --he | --h)
22736    # Conflict between --help and --header
22737    as_fn_error $? "ambiguous option: \`$1'
22738Try \`$0 --help' for more information.";;
22739  --help | --hel | -h )
22740    $as_echo "$ac_cs_usage"; exit ;;
22741  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22742  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22743    ac_cs_silent=: ;;
22744
22745  # This is an error.
22746  -*) as_fn_error $? "unrecognized option: \`$1'
22747Try \`$0 --help' for more information." ;;
22748
22749  *) as_fn_append ac_config_targets " $1"
22750     ac_need_defaults=false ;;
22751
22752  esac
22753  shift
22754done
22755
22756ac_configure_extra_args=
22757
22758if $ac_cs_silent; then
22759  exec 6>/dev/null
22760  ac_configure_extra_args="$ac_configure_extra_args --silent"
22761fi
22762
22763_ACEOF
22764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22765if \$ac_cs_recheck; then
22766  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22767  shift
22768  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22769  CONFIG_SHELL='$SHELL'
22770  export CONFIG_SHELL
22771  exec "\$@"
22772fi
22773
22774_ACEOF
22775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22776exec 5>>config.log
22777{
22778  echo
22779  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22780## Running $as_me. ##
22781_ASBOX
22782  $as_echo "$ac_log"
22783} >&5
22784
22785_ACEOF
22786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22787#
22788# INIT-COMMANDS
22789#
22790
22791
22792# The HP-UX ksh and POSIX shell print the target directory to stdout
22793# if CDPATH is set.
22794(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22795
22796sed_quote_subst='$sed_quote_subst'
22797double_quote_subst='$double_quote_subst'
22798delay_variable_subst='$delay_variable_subst'
22799macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22800macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22801enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22802enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22803pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22804enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22805shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22806SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22807ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22808PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22809host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22810host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22811host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22812build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22813build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22814build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22815SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22816Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22817GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22818EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22819FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22820LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22821NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22822LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22823max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22824ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22825exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22826lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22827lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22828lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22829lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22830lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22831reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22832reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22833OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22834deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22835file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22836file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22837want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22838DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22839sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22840AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22841AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22842archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22843STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22844RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22845old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22846old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22847old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22848lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22849CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22850CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22851compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22852GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22853lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22854lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22855lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22856lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22857lt_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"`'
22858lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22859nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22860lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22861lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22862objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22863MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22864lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22865lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22866lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22867lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22868lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22869need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22870MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22871DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22872NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22873LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22874OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22875OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22876libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22877shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22878extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22879archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22880enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22881export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22882whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22883compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22884old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22885old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22886archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22887archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22888module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22889module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22890with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22891allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22892no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22893hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22894hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22895hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22896hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22897hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22898hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22899hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22900inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22901link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22902always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22903export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22904exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22905include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22906prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22907postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22908file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22909variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22910need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22911need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22912version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22913runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22914shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22915shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22916libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22917library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22918soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22919install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22920postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22921postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22922finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22923finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22924hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22925sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22926configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22927configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22928hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22929enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22930enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22931enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22932old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22933striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22934
22935LTCC='$LTCC'
22936LTCFLAGS='$LTCFLAGS'
22937compiler='$compiler_DEFAULT'
22938
22939# A function that is used when there is no print builtin or printf.
22940func_fallback_echo ()
22941{
22942  eval 'cat <<_LTECHO_EOF
22943\$1
22944_LTECHO_EOF'
22945}
22946
22947# Quote evaled strings.
22948for var in SHELL \
22949ECHO \
22950PATH_SEPARATOR \
22951SED \
22952GREP \
22953EGREP \
22954FGREP \
22955LD \
22956NM \
22957LN_S \
22958lt_SP2NL \
22959lt_NL2SP \
22960reload_flag \
22961OBJDUMP \
22962deplibs_check_method \
22963file_magic_cmd \
22964file_magic_glob \
22965want_nocaseglob \
22966DLLTOOL \
22967sharedlib_from_linklib_cmd \
22968AR \
22969AR_FLAGS \
22970archiver_list_spec \
22971STRIP \
22972RANLIB \
22973CC \
22974CFLAGS \
22975compiler \
22976lt_cv_sys_global_symbol_pipe \
22977lt_cv_sys_global_symbol_to_cdecl \
22978lt_cv_sys_global_symbol_to_import \
22979lt_cv_sys_global_symbol_to_c_name_address \
22980lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22981lt_cv_nm_interface \
22982nm_file_list_spec \
22983lt_cv_truncate_bin \
22984lt_prog_compiler_no_builtin_flag \
22985lt_prog_compiler_pic \
22986lt_prog_compiler_wl \
22987lt_prog_compiler_static \
22988lt_cv_prog_compiler_c_o \
22989need_locks \
22990MANIFEST_TOOL \
22991DSYMUTIL \
22992NMEDIT \
22993LIPO \
22994OTOOL \
22995OTOOL64 \
22996shrext_cmds \
22997export_dynamic_flag_spec \
22998whole_archive_flag_spec \
22999compiler_needs_object \
23000with_gnu_ld \
23001allow_undefined_flag \
23002no_undefined_flag \
23003hardcode_libdir_flag_spec \
23004hardcode_libdir_separator \
23005exclude_expsyms \
23006include_expsyms \
23007file_list_spec \
23008variables_saved_for_relink \
23009libname_spec \
23010library_names_spec \
23011soname_spec \
23012install_override_mode \
23013finish_eval \
23014old_striplib \
23015striplib; do
23016    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23017    *[\\\\\\\`\\"\\\$]*)
23018      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23019      ;;
23020    *)
23021      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23022      ;;
23023    esac
23024done
23025
23026# Double-quote double-evaled strings.
23027for var in reload_cmds \
23028old_postinstall_cmds \
23029old_postuninstall_cmds \
23030old_archive_cmds \
23031extract_expsyms_cmds \
23032old_archive_from_new_cmds \
23033old_archive_from_expsyms_cmds \
23034archive_cmds \
23035archive_expsym_cmds \
23036module_cmds \
23037module_expsym_cmds \
23038export_symbols_cmds \
23039prelink_cmds \
23040postlink_cmds \
23041postinstall_cmds \
23042postuninstall_cmds \
23043finish_cmds \
23044sys_lib_search_path_spec \
23045configure_time_dlsearch_path \
23046configure_time_lt_sys_library_path; do
23047    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23048    *[\\\\\\\`\\"\\\$]*)
23049      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23050      ;;
23051    *)
23052      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23053      ;;
23054    esac
23055done
23056
23057ac_aux_dir='$ac_aux_dir'
23058
23059# See if we are running on zsh, and set the options that allow our
23060# commands through without removal of \ escapes INIT.
23061if test -n "\${ZSH_VERSION+set}"; then
23062   setopt NO_GLOB_SUBST
23063fi
23064
23065
23066    PACKAGE='$PACKAGE'
23067    VERSION='$VERSION'
23068    RM='$RM'
23069    ofile='$ofile'
23070
23071
23072
23073
23074_ACEOF
23075
23076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23077
23078# Handling of arguments.
23079for ac_config_target in $ac_config_targets
23080do
23081  case $ac_config_target in
23082    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23083    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
23084    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23085    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
23086    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
23087    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
23088    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
23089    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
23090    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
23091    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
23092    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
23093    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
23094    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
23095    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
23096    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
23097    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
23098    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
23099    "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
23100    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23101
23102  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23103  esac
23104done
23105
23106
23107# If the user did not use the arguments to specify the items to instantiate,
23108# then the envvar interface is used.  Set only those that are not.
23109# We use the long form for the default assignment because of an extremely
23110# bizarre bug on SunOS 4.1.3.
23111if $ac_need_defaults; then
23112  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23113  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23114  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23115fi
23116
23117# Have a temporary directory for convenience.  Make it in the build tree
23118# simply because there is no reason against having it here, and in addition,
23119# creating and moving files from /tmp can sometimes cause problems.
23120# Hook for its removal unless debugging.
23121# Note that there is a small window in which the directory will not be cleaned:
23122# after its creation but before its name has been assigned to `$tmp'.
23123$debug ||
23124{
23125  tmp= ac_tmp=
23126  trap 'exit_status=$?
23127  : "${ac_tmp:=$tmp}"
23128  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23129' 0
23130  trap 'as_fn_exit 1' 1 2 13 15
23131}
23132# Create a (secure) tmp directory for tmp files.
23133
23134{
23135  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23136  test -d "$tmp"
23137}  ||
23138{
23139  tmp=./conf$$-$RANDOM
23140  (umask 077 && mkdir "$tmp")
23141} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23142ac_tmp=$tmp
23143
23144# Set up the scripts for CONFIG_FILES section.
23145# No need to generate them if there are no CONFIG_FILES.
23146# This happens for instance with `./config.status config.h'.
23147if test -n "$CONFIG_FILES"; then
23148
23149
23150ac_cr=`echo X | tr X '\015'`
23151# On cygwin, bash can eat \r inside `` if the user requested igncr.
23152# But we know of no other shell where ac_cr would be empty at this
23153# point, so we can use a bashism as a fallback.
23154if test "x$ac_cr" = x; then
23155  eval ac_cr=\$\'\\r\'
23156fi
23157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23159  ac_cs_awk_cr='\\r'
23160else
23161  ac_cs_awk_cr=$ac_cr
23162fi
23163
23164echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23165_ACEOF
23166
23167
23168{
23169  echo "cat >conf$$subs.awk <<_ACEOF" &&
23170  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23171  echo "_ACEOF"
23172} >conf$$subs.sh ||
23173  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23175ac_delim='%!_!# '
23176for ac_last_try in false false false false false :; do
23177  . ./conf$$subs.sh ||
23178    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23179
23180  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23181  if test $ac_delim_n = $ac_delim_num; then
23182    break
23183  elif $ac_last_try; then
23184    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23185  else
23186    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23187  fi
23188done
23189rm -f conf$$subs.sh
23190
23191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23193_ACEOF
23194sed -n '
23195h
23196s/^/S["/; s/!.*/"]=/
23197p
23198g
23199s/^[^!]*!//
23200:repl
23201t repl
23202s/'"$ac_delim"'$//
23203t delim
23204:nl
23205h
23206s/\(.\{148\}\)..*/\1/
23207t more1
23208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23209p
23210n
23211b repl
23212:more1
23213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23214p
23215g
23216s/.\{148\}//
23217t nl
23218:delim
23219h
23220s/\(.\{148\}\)..*/\1/
23221t more2
23222s/["\\]/\\&/g; s/^/"/; s/$/"/
23223p
23224b
23225:more2
23226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23227p
23228g
23229s/.\{148\}//
23230t delim
23231' <conf$$subs.awk | sed '
23232/^[^""]/{
23233  N
23234  s/\n//
23235}
23236' >>$CONFIG_STATUS || ac_write_fail=1
23237rm -f conf$$subs.awk
23238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23239_ACAWK
23240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23241  for (key in S) S_is_set[key] = 1
23242  FS = ""
23243
23244}
23245{
23246  line = $ 0
23247  nfields = split(line, field, "@")
23248  substed = 0
23249  len = length(field[1])
23250  for (i = 2; i < nfields; i++) {
23251    key = field[i]
23252    keylen = length(key)
23253    if (S_is_set[key]) {
23254      value = S[key]
23255      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23256      len += length(value) + length(field[++i])
23257      substed = 1
23258    } else
23259      len += 1 + keylen
23260  }
23261
23262  print line
23263}
23264
23265_ACAWK
23266_ACEOF
23267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23269  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23270else
23271  cat
23272fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23273  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23274_ACEOF
23275
23276# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23277# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23278# trailing colons and then remove the whole line if VPATH becomes empty
23279# (actually we leave an empty line to preserve line numbers).
23280if test "x$srcdir" = x.; then
23281  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23282h
23283s///
23284s/^/:/
23285s/[	 ]*$/:/
23286s/:\$(srcdir):/:/g
23287s/:\${srcdir}:/:/g
23288s/:@srcdir@:/:/g
23289s/^:*//
23290s/:*$//
23291x
23292s/\(=[	 ]*\).*/\1/
23293G
23294s/\n//
23295s/^[^=]*=[	 ]*$//
23296}'
23297fi
23298
23299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23300fi # test -n "$CONFIG_FILES"
23301
23302# Set up the scripts for CONFIG_HEADERS section.
23303# No need to generate them if there are no CONFIG_HEADERS.
23304# This happens for instance with `./config.status Makefile'.
23305if test -n "$CONFIG_HEADERS"; then
23306cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23307BEGIN {
23308_ACEOF
23309
23310# Transform confdefs.h into an awk script `defines.awk', embedded as
23311# here-document in config.status, that substitutes the proper values into
23312# config.h.in to produce config.h.
23313
23314# Create a delimiter string that does not exist in confdefs.h, to ease
23315# handling of long lines.
23316ac_delim='%!_!# '
23317for ac_last_try in false false :; do
23318  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23319  if test -z "$ac_tt"; then
23320    break
23321  elif $ac_last_try; then
23322    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23323  else
23324    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23325  fi
23326done
23327
23328# For the awk script, D is an array of macro values keyed by name,
23329# likewise P contains macro parameters if any.  Preserve backslash
23330# newline sequences.
23331
23332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23333sed -n '
23334s/.\{148\}/&'"$ac_delim"'/g
23335t rset
23336:rset
23337s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23338t def
23339d
23340:def
23341s/\\$//
23342t bsnl
23343s/["\\]/\\&/g
23344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23345D["\1"]=" \3"/p
23346s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23347d
23348:bsnl
23349s/["\\]/\\&/g
23350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23351D["\1"]=" \3\\\\\\n"\\/p
23352t cont
23353s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23354t cont
23355d
23356:cont
23357n
23358s/.\{148\}/&'"$ac_delim"'/g
23359t clear
23360:clear
23361s/\\$//
23362t bsnlc
23363s/["\\]/\\&/g; s/^/"/; s/$/"/p
23364d
23365:bsnlc
23366s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23367b cont
23368' <confdefs.h | sed '
23369s/'"$ac_delim"'/"\\\
23370"/g' >>$CONFIG_STATUS || ac_write_fail=1
23371
23372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23373  for (key in D) D_is_set[key] = 1
23374  FS = ""
23375}
23376/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23377  line = \$ 0
23378  split(line, arg, " ")
23379  if (arg[1] == "#") {
23380    defundef = arg[2]
23381    mac1 = arg[3]
23382  } else {
23383    defundef = substr(arg[1], 2)
23384    mac1 = arg[2]
23385  }
23386  split(mac1, mac2, "(") #)
23387  macro = mac2[1]
23388  prefix = substr(line, 1, index(line, defundef) - 1)
23389  if (D_is_set[macro]) {
23390    # Preserve the white space surrounding the "#".
23391    print prefix "define", macro P[macro] D[macro]
23392    next
23393  } else {
23394    # Replace #undef with comments.  This is necessary, for example,
23395    # in the case of _POSIX_SOURCE, which is predefined and required
23396    # on some systems where configure will not decide to define it.
23397    if (defundef == "undef") {
23398      print "/*", prefix defundef, macro, "*/"
23399      next
23400    }
23401  }
23402}
23403{ print }
23404_ACAWK
23405_ACEOF
23406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23407  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23408fi # test -n "$CONFIG_HEADERS"
23409
23410
23411eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23412shift
23413for ac_tag
23414do
23415  case $ac_tag in
23416  :[FHLC]) ac_mode=$ac_tag; continue;;
23417  esac
23418  case $ac_mode$ac_tag in
23419  :[FHL]*:*);;
23420  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23421  :[FH]-) ac_tag=-:-;;
23422  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23423  esac
23424  ac_save_IFS=$IFS
23425  IFS=:
23426  set x $ac_tag
23427  IFS=$ac_save_IFS
23428  shift
23429  ac_file=$1
23430  shift
23431
23432  case $ac_mode in
23433  :L) ac_source=$1;;
23434  :[FH])
23435    ac_file_inputs=
23436    for ac_f
23437    do
23438      case $ac_f in
23439      -) ac_f="$ac_tmp/stdin";;
23440      *) # Look for the file first in the build tree, then in the source tree
23441	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23442	 # because $ac_f cannot contain `:'.
23443	 test -f "$ac_f" ||
23444	   case $ac_f in
23445	   [\\/$]*) false;;
23446	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23447	   esac ||
23448	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23449      esac
23450      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23451      as_fn_append ac_file_inputs " '$ac_f'"
23452    done
23453
23454    # Let's still pretend it is `configure' which instantiates (i.e., don't
23455    # use $as_me), people would be surprised to read:
23456    #    /* config.h.  Generated by config.status.  */
23457    configure_input='Generated from '`
23458	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23459	`' by configure.'
23460    if test x"$ac_file" != x-; then
23461      configure_input="$ac_file.  $configure_input"
23462      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23463$as_echo "$as_me: creating $ac_file" >&6;}
23464    fi
23465    # Neutralize special characters interpreted by sed in replacement strings.
23466    case $configure_input in #(
23467    *\&* | *\|* | *\\* )
23468       ac_sed_conf_input=`$as_echo "$configure_input" |
23469       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23470    *) ac_sed_conf_input=$configure_input;;
23471    esac
23472
23473    case $ac_tag in
23474    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23475      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23476    esac
23477    ;;
23478  esac
23479
23480  ac_dir=`$as_dirname -- "$ac_file" ||
23481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23482	 X"$ac_file" : 'X\(//\)[^/]' \| \
23483	 X"$ac_file" : 'X\(//\)$' \| \
23484	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23485$as_echo X"$ac_file" |
23486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23487	    s//\1/
23488	    q
23489	  }
23490	  /^X\(\/\/\)[^/].*/{
23491	    s//\1/
23492	    q
23493	  }
23494	  /^X\(\/\/\)$/{
23495	    s//\1/
23496	    q
23497	  }
23498	  /^X\(\/\).*/{
23499	    s//\1/
23500	    q
23501	  }
23502	  s/.*/./; q'`
23503  as_dir="$ac_dir"; as_fn_mkdir_p
23504  ac_builddir=.
23505
23506case "$ac_dir" in
23507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23508*)
23509  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23510  # A ".." for each directory in $ac_dir_suffix.
23511  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23512  case $ac_top_builddir_sub in
23513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23515  esac ;;
23516esac
23517ac_abs_top_builddir=$ac_pwd
23518ac_abs_builddir=$ac_pwd$ac_dir_suffix
23519# for backward compatibility:
23520ac_top_builddir=$ac_top_build_prefix
23521
23522case $srcdir in
23523  .)  # We are building in place.
23524    ac_srcdir=.
23525    ac_top_srcdir=$ac_top_builddir_sub
23526    ac_abs_top_srcdir=$ac_pwd ;;
23527  [\\/]* | ?:[\\/]* )  # Absolute name.
23528    ac_srcdir=$srcdir$ac_dir_suffix;
23529    ac_top_srcdir=$srcdir
23530    ac_abs_top_srcdir=$srcdir ;;
23531  *) # Relative name.
23532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23533    ac_top_srcdir=$ac_top_build_prefix$srcdir
23534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23535esac
23536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23537
23538
23539  case $ac_mode in
23540  :F)
23541  #
23542  # CONFIG_FILE
23543  #
23544
23545_ACEOF
23546
23547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23548# If the template does not know about datarootdir, expand it.
23549# FIXME: This hack should be removed a few years after 2.60.
23550ac_datarootdir_hack=; ac_datarootdir_seen=
23551ac_sed_dataroot='
23552/datarootdir/ {
23553  p
23554  q
23555}
23556/@datadir@/p
23557/@docdir@/p
23558/@infodir@/p
23559/@localedir@/p
23560/@mandir@/p'
23561case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23562*datarootdir*) ac_datarootdir_seen=yes;;
23563*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23565$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23566_ACEOF
23567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23568  ac_datarootdir_hack='
23569  s&@datadir@&$datadir&g
23570  s&@docdir@&$docdir&g
23571  s&@infodir@&$infodir&g
23572  s&@localedir@&$localedir&g
23573  s&@mandir@&$mandir&g
23574  s&\\\${datarootdir}&$datarootdir&g' ;;
23575esac
23576_ACEOF
23577
23578# Neutralize VPATH when `$srcdir' = `.'.
23579# Shell code in configure.ac might set extrasub.
23580# FIXME: do we really want to maintain this feature?
23581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23582ac_sed_extra="$ac_vpsub
23583$extrasub
23584_ACEOF
23585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23586:t
23587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23588s|@configure_input@|$ac_sed_conf_input|;t t
23589s&@top_builddir@&$ac_top_builddir_sub&;t t
23590s&@top_build_prefix@&$ac_top_build_prefix&;t t
23591s&@srcdir@&$ac_srcdir&;t t
23592s&@abs_srcdir@&$ac_abs_srcdir&;t t
23593s&@top_srcdir@&$ac_top_srcdir&;t t
23594s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23595s&@builddir@&$ac_builddir&;t t
23596s&@abs_builddir@&$ac_abs_builddir&;t t
23597s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23598$ac_datarootdir_hack
23599"
23600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23601  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23602
23603test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23604  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23605  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23606      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23607  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23608which seems to be undefined.  Please make sure it is defined" >&5
23609$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23610which seems to be undefined.  Please make sure it is defined" >&2;}
23611
23612  rm -f "$ac_tmp/stdin"
23613  case $ac_file in
23614  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23615  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23616  esac \
23617  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23618 ;;
23619  :H)
23620  #
23621  # CONFIG_HEADER
23622  #
23623  if test x"$ac_file" != x-; then
23624    {
23625      $as_echo "/* $configure_input  */" \
23626      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23627    } >"$ac_tmp/config.h" \
23628      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23629    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23630      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23631$as_echo "$as_me: $ac_file is unchanged" >&6;}
23632    else
23633      rm -f "$ac_file"
23634      mv "$ac_tmp/config.h" "$ac_file" \
23635	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23636    fi
23637  else
23638    $as_echo "/* $configure_input  */" \
23639      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23640      || as_fn_error $? "could not create -" "$LINENO" 5
23641  fi
23642 ;;
23643
23644  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23645$as_echo "$as_me: executing $ac_file commands" >&6;}
23646 ;;
23647  esac
23648
23649
23650  case $ac_file$ac_mode in
23651    "libtool":C)
23652
23653    # See if we are running on zsh, and set the options that allow our
23654    # commands through without removal of \ escapes.
23655    if test -n "${ZSH_VERSION+set}"; then
23656      setopt NO_GLOB_SUBST
23657    fi
23658
23659    cfgfile=${ofile}T
23660    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23661    $RM "$cfgfile"
23662
23663    cat <<_LT_EOF >> "$cfgfile"
23664#! $SHELL
23665# Generated automatically by $as_me ($PACKAGE) $VERSION
23666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23667# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23668
23669# Provide generalized library-building support services.
23670# Written by Gordon Matzigkeit, 1996
23671
23672# Copyright (C) 2014 Free Software Foundation, Inc.
23673# This is free software; see the source for copying conditions.  There is NO
23674# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23675
23676# GNU Libtool is free software; you can redistribute it and/or modify
23677# it under the terms of the GNU General Public License as published by
23678# the Free Software Foundation; either version 2 of of the License, or
23679# (at your option) any later version.
23680#
23681# As a special exception to the GNU General Public License, if you
23682# distribute this file as part of a program or library that is built
23683# using GNU Libtool, you may include this file under the  same
23684# distribution terms that you use for the rest of that program.
23685#
23686# GNU Libtool is distributed in the hope that it will be useful, but
23687# WITHOUT ANY WARRANTY; without even the implied warranty of
23688# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23689# GNU General Public License for more details.
23690#
23691# You should have received a copy of the GNU General Public License
23692# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23693
23694
23695# The names of the tagged configurations supported by this script.
23696available_tags=''
23697
23698# Configured defaults for sys_lib_dlsearch_path munging.
23699: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23700
23701# ### BEGIN LIBTOOL CONFIG
23702
23703# Which release of libtool.m4 was used?
23704macro_version=$macro_version
23705macro_revision=$macro_revision
23706
23707# Whether or not to build shared libraries.
23708build_libtool_libs=$enable_shared
23709
23710# Whether or not to build static libraries.
23711build_old_libs=$enable_static
23712
23713# What type of objects to build.
23714pic_mode=$pic_mode
23715
23716# Whether or not to optimize for fast installation.
23717fast_install=$enable_fast_install
23718
23719# Shared archive member basename,for filename based shared library versioning on AIX.
23720shared_archive_member_spec=$shared_archive_member_spec
23721
23722# Shell to use when invoking shell scripts.
23723SHELL=$lt_SHELL
23724
23725# An echo program that protects backslashes.
23726ECHO=$lt_ECHO
23727
23728# The PATH separator for the build system.
23729PATH_SEPARATOR=$lt_PATH_SEPARATOR
23730
23731# The host system.
23732host_alias=$host_alias
23733host=$host
23734host_os=$host_os
23735
23736# The build system.
23737build_alias=$build_alias
23738build=$build
23739build_os=$build_os
23740
23741# A sed program that does not truncate output.
23742SED=$lt_SED
23743
23744# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23745Xsed="\$SED -e 1s/^X//"
23746
23747# A grep program that handles long lines.
23748GREP=$lt_GREP
23749
23750# An ERE matcher.
23751EGREP=$lt_EGREP
23752
23753# A literal string matcher.
23754FGREP=$lt_FGREP
23755
23756# A BSD- or MS-compatible name lister.
23757NM=$lt_NM
23758
23759# Whether we need soft or hard links.
23760LN_S=$lt_LN_S
23761
23762# What is the maximum length of a command?
23763max_cmd_len=$max_cmd_len
23764
23765# Object file suffix (normally "o").
23766objext=$ac_objext
23767
23768# Executable file suffix (normally "").
23769exeext=$exeext
23770
23771# whether the shell understands "unset".
23772lt_unset=$lt_unset
23773
23774# turn spaces into newlines.
23775SP2NL=$lt_lt_SP2NL
23776
23777# turn newlines into spaces.
23778NL2SP=$lt_lt_NL2SP
23779
23780# convert \$build file names to \$host format.
23781to_host_file_cmd=$lt_cv_to_host_file_cmd
23782
23783# convert \$build files to toolchain format.
23784to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23785
23786# An object symbol dumper.
23787OBJDUMP=$lt_OBJDUMP
23788
23789# Method to check whether dependent libraries are shared objects.
23790deplibs_check_method=$lt_deplibs_check_method
23791
23792# Command to use when deplibs_check_method = "file_magic".
23793file_magic_cmd=$lt_file_magic_cmd
23794
23795# How to find potential files when deplibs_check_method = "file_magic".
23796file_magic_glob=$lt_file_magic_glob
23797
23798# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23799want_nocaseglob=$lt_want_nocaseglob
23800
23801# DLL creation program.
23802DLLTOOL=$lt_DLLTOOL
23803
23804# Command to associate shared and link libraries.
23805sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23806
23807# The archiver.
23808AR=$lt_AR
23809
23810# Flags to create an archive.
23811AR_FLAGS=$lt_AR_FLAGS
23812
23813# How to feed a file listing to the archiver.
23814archiver_list_spec=$lt_archiver_list_spec
23815
23816# A symbol stripping program.
23817STRIP=$lt_STRIP
23818
23819# Commands used to install an old-style archive.
23820RANLIB=$lt_RANLIB
23821old_postinstall_cmds=$lt_old_postinstall_cmds
23822old_postuninstall_cmds=$lt_old_postuninstall_cmds
23823
23824# Whether to use a lock for old archive extraction.
23825lock_old_archive_extraction=$lock_old_archive_extraction
23826
23827# A C compiler.
23828LTCC=$lt_CC
23829
23830# LTCC compiler flags.
23831LTCFLAGS=$lt_CFLAGS
23832
23833# Take the output of nm and produce a listing of raw symbols and C names.
23834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23835
23836# Transform the output of nm in a proper C declaration.
23837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23838
23839# Transform the output of nm into a list of symbols to manually relocate.
23840global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23841
23842# Transform the output of nm in a C name address pair.
23843global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23844
23845# Transform the output of nm in a C name address pair when lib prefix is needed.
23846global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23847
23848# The name lister interface.
23849nm_interface=$lt_lt_cv_nm_interface
23850
23851# Specify filename containing input files for \$NM.
23852nm_file_list_spec=$lt_nm_file_list_spec
23853
23854# The root where to search for dependent libraries,and where our libraries should be installed.
23855lt_sysroot=$lt_sysroot
23856
23857# Command to truncate a binary pipe.
23858lt_truncate_bin=$lt_lt_cv_truncate_bin
23859
23860# The name of the directory that contains temporary libtool files.
23861objdir=$objdir
23862
23863# Used to examine libraries when file_magic_cmd begins with "file".
23864MAGIC_CMD=$MAGIC_CMD
23865
23866# Must we lock files when doing compilation?
23867need_locks=$lt_need_locks
23868
23869# Manifest tool.
23870MANIFEST_TOOL=$lt_MANIFEST_TOOL
23871
23872# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23873DSYMUTIL=$lt_DSYMUTIL
23874
23875# Tool to change global to local symbols on Mac OS X.
23876NMEDIT=$lt_NMEDIT
23877
23878# Tool to manipulate fat objects and archives on Mac OS X.
23879LIPO=$lt_LIPO
23880
23881# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23882OTOOL=$lt_OTOOL
23883
23884# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23885OTOOL64=$lt_OTOOL64
23886
23887# Old archive suffix (normally "a").
23888libext=$libext
23889
23890# Shared library suffix (normally ".so").
23891shrext_cmds=$lt_shrext_cmds
23892
23893# The commands to extract the exported symbol list from a shared archive.
23894extract_expsyms_cmds=$lt_extract_expsyms_cmds
23895
23896# Variables whose values should be saved in libtool wrapper scripts and
23897# restored at link time.
23898variables_saved_for_relink=$lt_variables_saved_for_relink
23899
23900# Do we need the "lib" prefix for modules?
23901need_lib_prefix=$need_lib_prefix
23902
23903# Do we need a version for libraries?
23904need_version=$need_version
23905
23906# Library versioning type.
23907version_type=$version_type
23908
23909# Shared library runtime path variable.
23910runpath_var=$runpath_var
23911
23912# Shared library path variable.
23913shlibpath_var=$shlibpath_var
23914
23915# Is shlibpath searched before the hard-coded library search path?
23916shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23917
23918# Format of library name prefix.
23919libname_spec=$lt_libname_spec
23920
23921# List of archive names.  First name is the real one, the rest are links.
23922# The last name is the one that the linker finds with -lNAME
23923library_names_spec=$lt_library_names_spec
23924
23925# The coded name of the library, if different from the real name.
23926soname_spec=$lt_soname_spec
23927
23928# Permission mode override for installation of shared libraries.
23929install_override_mode=$lt_install_override_mode
23930
23931# Command to use after installation of a shared archive.
23932postinstall_cmds=$lt_postinstall_cmds
23933
23934# Command to use after uninstallation of a shared archive.
23935postuninstall_cmds=$lt_postuninstall_cmds
23936
23937# Commands used to finish a libtool library installation in a directory.
23938finish_cmds=$lt_finish_cmds
23939
23940# As "finish_cmds", except a single script fragment to be evaled but
23941# not shown.
23942finish_eval=$lt_finish_eval
23943
23944# Whether we should hardcode library paths into libraries.
23945hardcode_into_libs=$hardcode_into_libs
23946
23947# Compile-time system search path for libraries.
23948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23949
23950# Detected run-time system search path for libraries.
23951sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23952
23953# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23954configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23955
23956# Whether dlopen is supported.
23957dlopen_support=$enable_dlopen
23958
23959# Whether dlopen of programs is supported.
23960dlopen_self=$enable_dlopen_self
23961
23962# Whether dlopen of statically linked programs is supported.
23963dlopen_self_static=$enable_dlopen_self_static
23964
23965# Commands to strip libraries.
23966old_striplib=$lt_old_striplib
23967striplib=$lt_striplib
23968
23969
23970# The linker used to build libraries.
23971LD=$lt_LD
23972
23973# How to create reloadable object files.
23974reload_flag=$lt_reload_flag
23975reload_cmds=$lt_reload_cmds
23976
23977# Commands used to build an old-style archive.
23978old_archive_cmds=$lt_old_archive_cmds
23979
23980# A language specific compiler.
23981CC=$lt_compiler
23982
23983# Is the compiler the GNU compiler?
23984with_gcc=$GCC
23985
23986# Compiler flag to turn off builtin functions.
23987no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23988
23989# Additional compiler flags for building library objects.
23990pic_flag=$lt_lt_prog_compiler_pic
23991
23992# How to pass a linker flag through the compiler.
23993wl=$lt_lt_prog_compiler_wl
23994
23995# Compiler flag to prevent dynamic linking.
23996link_static_flag=$lt_lt_prog_compiler_static
23997
23998# Does compiler simultaneously support -c and -o options?
23999compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24000
24001# Whether or not to add -lc for building shared libraries.
24002build_libtool_need_lc=$archive_cmds_need_lc
24003
24004# Whether or not to disallow shared libs when runtime libs are static.
24005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24006
24007# Compiler flag to allow reflexive dlopens.
24008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24009
24010# Compiler flag to generate shared objects directly from archives.
24011whole_archive_flag_spec=$lt_whole_archive_flag_spec
24012
24013# Whether the compiler copes with passing no objects directly.
24014compiler_needs_object=$lt_compiler_needs_object
24015
24016# Create an old-style archive from a shared archive.
24017old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24018
24019# Create a temporary old-style archive to link instead of a shared archive.
24020old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24021
24022# Commands used to build a shared archive.
24023archive_cmds=$lt_archive_cmds
24024archive_expsym_cmds=$lt_archive_expsym_cmds
24025
24026# Commands used to build a loadable module if different from building
24027# a shared archive.
24028module_cmds=$lt_module_cmds
24029module_expsym_cmds=$lt_module_expsym_cmds
24030
24031# Whether we are building with GNU ld or not.
24032with_gnu_ld=$lt_with_gnu_ld
24033
24034# Flag that allows shared libraries with undefined symbols to be built.
24035allow_undefined_flag=$lt_allow_undefined_flag
24036
24037# Flag that enforces no undefined symbols.
24038no_undefined_flag=$lt_no_undefined_flag
24039
24040# Flag to hardcode \$libdir into a binary during linking.
24041# This must work even if \$libdir does not exist
24042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24043
24044# Whether we need a single "-rpath" flag with a separated argument.
24045hardcode_libdir_separator=$lt_hardcode_libdir_separator
24046
24047# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24048# DIR into the resulting binary.
24049hardcode_direct=$hardcode_direct
24050
24051# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24052# DIR into the resulting binary and the resulting library dependency is
24053# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24054# library is relocated.
24055hardcode_direct_absolute=$hardcode_direct_absolute
24056
24057# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24058# into the resulting binary.
24059hardcode_minus_L=$hardcode_minus_L
24060
24061# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24062# into the resulting binary.
24063hardcode_shlibpath_var=$hardcode_shlibpath_var
24064
24065# Set to "yes" if building a shared library automatically hardcodes DIR
24066# into the library and all subsequent libraries and executables linked
24067# against it.
24068hardcode_automatic=$hardcode_automatic
24069
24070# Set to yes if linker adds runtime paths of dependent libraries
24071# to runtime path list.
24072inherit_rpath=$inherit_rpath
24073
24074# Whether libtool must link a program against all its dependency libraries.
24075link_all_deplibs=$link_all_deplibs
24076
24077# Set to "yes" if exported symbols are required.
24078always_export_symbols=$always_export_symbols
24079
24080# The commands to list exported symbols.
24081export_symbols_cmds=$lt_export_symbols_cmds
24082
24083# Symbols that should not be listed in the preloaded symbols.
24084exclude_expsyms=$lt_exclude_expsyms
24085
24086# Symbols that must always be exported.
24087include_expsyms=$lt_include_expsyms
24088
24089# Commands necessary for linking programs (against libraries) with templates.
24090prelink_cmds=$lt_prelink_cmds
24091
24092# Commands necessary for finishing linking programs.
24093postlink_cmds=$lt_postlink_cmds
24094
24095# Specify filename containing input files.
24096file_list_spec=$lt_file_list_spec
24097
24098# How to hardcode a shared library path into an executable.
24099hardcode_action=$hardcode_action
24100
24101# ### END LIBTOOL CONFIG
24102
24103_LT_EOF
24104
24105    cat <<'_LT_EOF' >> "$cfgfile"
24106
24107# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24108
24109# func_munge_path_list VARIABLE PATH
24110# -----------------------------------
24111# VARIABLE is name of variable containing _space_ separated list of
24112# directories to be munged by the contents of PATH, which is string
24113# having a format:
24114# "DIR[:DIR]:"
24115#       string "DIR[ DIR]" will be prepended to VARIABLE
24116# ":DIR[:DIR]"
24117#       string "DIR[ DIR]" will be appended to VARIABLE
24118# "DIRP[:DIRP]::[DIRA:]DIRA"
24119#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24120#       "DIRA[ DIRA]" will be appended to VARIABLE
24121# "DIR[:DIR]"
24122#       VARIABLE will be replaced by "DIR[ DIR]"
24123func_munge_path_list ()
24124{
24125    case x$2 in
24126    x)
24127        ;;
24128    *:)
24129        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24130        ;;
24131    x:*)
24132        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24133        ;;
24134    *::*)
24135        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24136        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24137        ;;
24138    *)
24139        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24140        ;;
24141    esac
24142}
24143
24144
24145# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24146func_cc_basename ()
24147{
24148    for cc_temp in $*""; do
24149      case $cc_temp in
24150        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24151        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24152        \-*) ;;
24153        *) break;;
24154      esac
24155    done
24156    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24157}
24158
24159
24160# ### END FUNCTIONS SHARED WITH CONFIGURE
24161
24162_LT_EOF
24163
24164  case $host_os in
24165  aix3*)
24166    cat <<\_LT_EOF >> "$cfgfile"
24167# AIX sometimes has problems with the GCC collect2 program.  For some
24168# reason, if we set the COLLECT_NAMES environment variable, the problems
24169# vanish in a puff of smoke.
24170if test set != "${COLLECT_NAMES+set}"; then
24171  COLLECT_NAMES=
24172  export COLLECT_NAMES
24173fi
24174_LT_EOF
24175    ;;
24176  esac
24177
24178
24179ltmain=$ac_aux_dir/ltmain.sh
24180
24181
24182  # We use sed instead of cat because bash on DJGPP gets confused if
24183  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24184  # text mode, it properly converts lines to CR/LF.  This bash problem
24185  # is reportedly fixed, but why not run on old versions too?
24186  sed '$q' "$ltmain" >> "$cfgfile" \
24187     || (rm -f "$cfgfile"; exit 1)
24188
24189   mv -f "$cfgfile" "$ofile" ||
24190    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24191  chmod +x "$ofile"
24192
24193 ;;
24194    "disable-rpath":C)
24195	sed < libtool > libtool-2 \
24196	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24197	mv libtool-2 libtool
24198	chmod 755 libtool
24199	libtool="./libtool"
24200	 ;;
24201
24202  esac
24203done # for ac_tag
24204
24205
24206as_fn_exit 0
24207_ACEOF
24208ac_clean_files=$ac_clean_files_save
24209
24210test $ac_write_fail = 0 ||
24211  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24212
24213
24214# configure is writing to config.log, and then calls config.status.
24215# config.status does its own redirection, appending to config.log.
24216# Unfortunately, on DOS this fails, as config.log is still kept open
24217# by configure, so config.status won't be able to write to it; its
24218# output is simply discarded.  So we exec the FD to /dev/null,
24219# effectively closing config.log, so it can be properly (re)opened and
24220# appended to by config.status.  When coming back to configure, we
24221# need to make the FD available again.
24222if test "$no_create" != yes; then
24223  ac_cs_success=:
24224  ac_config_status_args=
24225  test "$silent" = yes &&
24226    ac_config_status_args="$ac_config_status_args --quiet"
24227  exec 5>/dev/null
24228  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24229  exec 5>>config.log
24230  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24231  # would make configure fail if this is the last instruction.
24232  $ac_cs_success || as_fn_exit 1
24233fi
24234if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24235  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24236$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24237fi
24238
24239