xref: /freebsd/contrib/unbound/configure (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.19.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.19.0'
595PACKAGE_STRING='unbound 1.19.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.19.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.19.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.19.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.19.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=19
2848
2849UNBOUND_VERSION_MICRO=0
2850
2851
2852LIBUNBOUND_CURRENT=9
2853LIBUNBOUND_REVISION=23
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# 1.17.1 had 9:21:1
2942# 1.18.0 had 9:22:1
2943# 1.19.0 had 9:23:1
2944
2945#   Current  -- the number of the binary API that we're implementing
2946#   Revision -- which iteration of the implementation of the binary
2947#               API are we supplying?
2948#   Age      -- How many previous binary API versions do we also
2949#               support?
2950#
2951# If we release a new version that does not change the binary API,
2952# increment Revision.
2953#
2954# If we release a new version that changes the binary API, but does
2955# not break programs compiled against the old binary API, increment
2956# Current and Age.  Set Revision to 0, since this is the first
2957# implementation of the new API.
2958#
2959# Otherwise, we're changing the binary API and breaking backward
2960# compatibility with old binaries.  Increment Current.  Set Age to 0,
2961# since we're backward compatible with no previous APIs.  Set Revision
2962# to 0 too.
2963
2964
2965
2966
2967
2968cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2969
2970cat >>confdefs.h <<_ACEOF
2971#define CONFCMDLINE "$cmdln"
2972_ACEOF
2973
2974
2975CFLAGS="$CFLAGS"
2976ac_ext=c
2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981if test -n "$ac_tool_prefix"; then
2982  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019fi
3020if test -z "$ac_cv_prog_CC"; then
3021  ac_ct_CC=$CC
3022  # Extract the first word of "gcc", so it can be a program name with args.
3023set dummy gcc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$ac_ct_CC"; then
3030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_ac_ct_CC="gcc"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050if test -n "$ac_ct_CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052$as_echo "$ac_ct_CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058  if test "x$ac_ct_CC" = x; then
3059    CC=""
3060  else
3061    case $cross_compiling:$ac_tool_warned in
3062yes:)
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065ac_tool_warned=yes ;;
3066esac
3067    CC=$ac_ct_CC
3068  fi
3069else
3070  CC="$ac_cv_prog_CC"
3071fi
3072
3073if test -z "$CC"; then
3074          if test -n "$ac_tool_prefix"; then
3075    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076set dummy ${ac_tool_prefix}cc; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_CC+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test -n "$CC"; then
3083  ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    ac_cv_prog_CC="${ac_tool_prefix}cc"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112  fi
3113fi
3114if test -z "$CC"; then
3115  # Extract the first word of "cc", so it can be a program name with args.
3116set dummy cc; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if ${ac_cv_prog_CC+:} false; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  if test -n "$CC"; then
3123  ac_cv_prog_CC="$CC" # Let the user override the test.
3124else
3125  ac_prog_rejected=no
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  test -z "$as_dir" && as_dir=.
3131    for ac_exec_ext in '' $ac_executable_extensions; do
3132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134       ac_prog_rejected=yes
3135       continue
3136     fi
3137    ac_cv_prog_CC="cc"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145if test $ac_prog_rejected = yes; then
3146  # We found a bogon in the path, so make sure we never use it.
3147  set dummy $ac_cv_prog_CC
3148  shift
3149  if test $# != 0; then
3150    # We chose a different compiler from the bogus one.
3151    # However, it has the same basename, so the bogon will be chosen
3152    # first if we set CC to just the basename; use the full file name.
3153    shift
3154    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155  fi
3156fi
3157fi
3158fi
3159CC=$ac_cv_prog_CC
3160if test -n "$CC"; then
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162$as_echo "$CC" >&6; }
3163else
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166fi
3167
3168
3169fi
3170if test -z "$CC"; then
3171  if test -n "$ac_tool_prefix"; then
3172  for ac_prog in cl.exe
3173  do
3174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187  IFS=$as_save_IFS
3188  test -z "$as_dir" && as_dir=.
3189    for ac_exec_ext in '' $ac_executable_extensions; do
3190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211    test -n "$CC" && break
3212  done
3213fi
3214if test -z "$CC"; then
3215  ac_ct_CC=$CC
3216  for ac_prog in cl.exe
3217do
3218  # Extract the first word of "$ac_prog", so it can be a program name with args.
3219set dummy $ac_prog; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if ${ac_cv_prog_ac_ct_CC+:} false; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  if test -n "$ac_ct_CC"; then
3226  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  test -z "$as_dir" && as_dir=.
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235    ac_cv_prog_ac_ct_CC="$ac_prog"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246if test -n "$ac_ct_CC"; then
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248$as_echo "$ac_ct_CC" >&6; }
3249else
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255  test -n "$ac_ct_CC" && break
3256done
3257
3258  if test "x$ac_ct_CC" = x; then
3259    CC=""
3260  else
3261    case $cross_compiling:$ac_tool_warned in
3262yes:)
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265ac_tool_warned=yes ;;
3266esac
3267    CC=$ac_ct_CC
3268  fi
3269fi
3270
3271fi
3272
3273
3274test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "no acceptable C compiler found in \$PATH
3277See \`config.log' for more details" "$LINENO" 5; }
3278
3279# Provide some information about the compiler.
3280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281set X $ac_compile
3282ac_compiler=$2
3283for ac_option in --version -v -V -qversion; do
3284  { { ac_try="$ac_compiler $ac_option >&5"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292  ac_status=$?
3293  if test -s conftest.err; then
3294    sed '10a\
3295... rest of stderr output deleted ...
3296         10q' conftest.err >conftest.er1
3297    cat conftest.er1 >&5
3298  fi
3299  rm -f conftest.er1 conftest.err
3300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301  test $ac_status = 0; }
3302done
3303
3304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310
3311  ;
3312  return 0;
3313}
3314_ACEOF
3315ac_clean_files_save=$ac_clean_files
3316ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3317# Try to create an executable without -o first, disregard a.out.
3318# It will help us diagnose broken compilers, and finding out an intuition
3319# of exeext.
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3321$as_echo_n "checking whether the C compiler works... " >&6; }
3322ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323
3324# The possible output files:
3325ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326
3327ac_rmfiles=
3328for ac_file in $ac_files
3329do
3330  case $ac_file in
3331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3333  esac
3334done
3335rm -f $ac_rmfiles
3336
3337if { { ac_try="$ac_link_default"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo"; } >&5
3344  (eval "$ac_link_default") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }; then :
3348  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3349# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3350# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3351# so that the user can short-circuit this test for compilers unknown to
3352# Autoconf.
3353for ac_file in $ac_files ''
3354do
3355  test -f "$ac_file" || continue
3356  case $ac_file in
3357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3358	;;
3359    [ab].out )
3360	# We found the default executable, but exeext='' is most
3361	# certainly right.
3362	break;;
3363    *.* )
3364	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3365	then :; else
3366	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367	fi
3368	# We set ac_cv_exeext here because the later test for it is not
3369	# safe: cross compilers may not add the suffix if given an `-o'
3370	# argument, so we may need to know it at that point already.
3371	# Even if this section looks crufty: it has the advantage of
3372	# actually working.
3373	break;;
3374    * )
3375	break;;
3376  esac
3377done
3378test "$ac_cv_exeext" = no && ac_cv_exeext=
3379
3380else
3381  ac_file=''
3382fi
3383if test -z "$ac_file"; then :
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386$as_echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error 77 "C compiler cannot create executables
3392See \`config.log' for more details" "$LINENO" 5; }
3393else
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395$as_echo "yes" >&6; }
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3398$as_echo_n "checking for C compiler default output file name... " >&6; }
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3400$as_echo "$ac_file" >&6; }
3401ac_exeext=$ac_cv_exeext
3402
3403rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3404ac_clean_files=$ac_clean_files_save
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406$as_echo_n "checking for suffix of executables... " >&6; }
3407if { { ac_try="$ac_link"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_link") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3420# work properly (i.e., refer to `conftest.exe'), while it won't with
3421# `rm'.
3422for ac_file in conftest.exe conftest conftest.*; do
3423  test -f "$ac_file" || continue
3424  case $ac_file in
3425    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427	  break;;
3428    * ) break;;
3429  esac
3430done
3431else
3432  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3435See \`config.log' for more details" "$LINENO" 5; }
3436fi
3437rm -f conftest conftest$ac_cv_exeext
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439$as_echo "$ac_cv_exeext" >&6; }
3440
3441rm -f conftest.$ac_ext
3442EXEEXT=$ac_cv_exeext
3443ac_exeext=$EXEEXT
3444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446#include <stdio.h>
3447int
3448main ()
3449{
3450FILE *f = fopen ("conftest.out", "w");
3451 return ferror (f) || fclose (f) != 0;
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457ac_clean_files="$ac_clean_files conftest.out"
3458# Check that the compiler produces executables we can run.  If not, either
3459# the compiler is broken, or we cross compile.
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3461$as_echo_n "checking whether we are cross compiling... " >&6; }
3462if test "$cross_compiling" != yes; then
3463  { { ac_try="$ac_link"
3464case "(($ac_try" in
3465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466  *) ac_try_echo=$ac_try;;
3467esac
3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469$as_echo "$ac_try_echo"; } >&5
3470  (eval "$ac_link") 2>&5
3471  ac_status=$?
3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473  test $ac_status = 0; }
3474  if { ac_try='./conftest$ac_cv_exeext'
3475  { { case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_try") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }; }; then
3485    cross_compiling=no
3486  else
3487    if test "$cross_compiling" = maybe; then
3488	cross_compiling=yes
3489    else
3490	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492as_fn_error $? "cannot run C compiled programs.
3493If you meant to cross compile, use \`--host'.
3494See \`config.log' for more details" "$LINENO" 5; }
3495    fi
3496  fi
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3499$as_echo "$cross_compiling" >&6; }
3500
3501rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3504$as_echo_n "checking for suffix of object files... " >&6; }
3505if ${ac_cv_objext+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h.  */
3510
3511int
3512main ()
3513{
3514
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519rm -f conftest.o conftest.obj
3520if { { ac_try="$ac_compile"
3521case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_compile") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; then :
3531  for ac_file in conftest.o conftest.obj conftest.*; do
3532  test -f "$ac_file" || continue;
3533  case $ac_file in
3534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3535    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536       break;;
3537  esac
3538done
3539else
3540  $as_echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545as_fn_error $? "cannot compute suffix of object files: cannot compile
3546See \`config.log' for more details" "$LINENO" 5; }
3547fi
3548rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3551$as_echo "$ac_cv_objext" >&6; }
3552OBJEXT=$ac_cv_objext
3553ac_objext=$OBJEXT
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3555$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3556if ${ac_cv_c_compiler_gnu+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565#ifndef __GNUC__
3566       choke me
3567#endif
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_compile "$LINENO"; then :
3574  ac_compiler_gnu=yes
3575else
3576  ac_compiler_gnu=no
3577fi
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3584if test $ac_compiler_gnu = yes; then
3585  GCC=yes
3586else
3587  GCC=
3588fi
3589ac_test_CFLAGS=${CFLAGS+set}
3590ac_save_CFLAGS=$CFLAGS
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3592$as_echo_n "checking whether $CC accepts -g... " >&6; }
3593if ${ac_cv_prog_cc_g+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  ac_save_c_werror_flag=$ac_c_werror_flag
3597   ac_c_werror_flag=yes
3598   ac_cv_prog_cc_g=no
3599   CFLAGS="-g"
3600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main ()
3605{
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612  ac_cv_prog_cc_g=yes
3613else
3614  CFLAGS=""
3615      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617
3618int
3619main ()
3620{
3621
3622  ;
3623  return 0;
3624}
3625_ACEOF
3626if ac_fn_c_try_compile "$LINENO"; then :
3627
3628else
3629  ac_c_werror_flag=$ac_save_c_werror_flag
3630	 CFLAGS="-g"
3631	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_g=yes
3644fi
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646fi
3647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650   ac_c_werror_flag=$ac_save_c_werror_flag
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3653$as_echo "$ac_cv_prog_cc_g" >&6; }
3654if test "$ac_test_CFLAGS" = set; then
3655  CFLAGS=$ac_save_CFLAGS
3656elif test $ac_cv_prog_cc_g = yes; then
3657  if test "$GCC" = yes; then
3658    CFLAGS="-g -O2"
3659  else
3660    CFLAGS="-g"
3661  fi
3662else
3663  if test "$GCC" = yes; then
3664    CFLAGS="-O2"
3665  else
3666    CFLAGS=
3667  fi
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3670$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3671if ${ac_cv_prog_cc_c89+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  ac_cv_prog_cc_c89=no
3675ac_save_CC=$CC
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678#include <stdarg.h>
3679#include <stdio.h>
3680struct stat;
3681/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3682struct buf { int x; };
3683FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684static char *e (p, i)
3685     char **p;
3686     int i;
3687{
3688  return p[i];
3689}
3690static char *f (char * (*g) (char **, int), char **p, ...)
3691{
3692  char *s;
3693  va_list v;
3694  va_start (v,p);
3695  s = g (p, va_arg (v,int));
3696  va_end (v);
3697  return s;
3698}
3699
3700/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3701   function prototypes and stuff, but not '\xHH' hex character constants.
3702   These don't provoke an error unfortunately, instead are silently treated
3703   as 'x'.  The following induces an error, until -std is added to get
3704   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3705   array size at least.  It's necessary to write '\x00'==0 to get something
3706   that's true only with -std.  */
3707int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
3709/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710   inside strings and character constants.  */
3711#define FOO(x) 'x'
3712int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713
3714int test (int i, double x);
3715struct s1 {int (*f) (int a);};
3716struct s2 {int (*f) (double a);};
3717int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718int argc;
3719char **argv;
3720int
3721main ()
3722{
3723return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3724  ;
3725  return 0;
3726}
3727_ACEOF
3728for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730do
3731  CC="$ac_save_CC $ac_arg"
3732  if ac_fn_c_try_compile "$LINENO"; then :
3733  ac_cv_prog_cc_c89=$ac_arg
3734fi
3735rm -f core conftest.err conftest.$ac_objext
3736  test "x$ac_cv_prog_cc_c89" != "xno" && break
3737done
3738rm -f conftest.$ac_ext
3739CC=$ac_save_CC
3740
3741fi
3742# AC_CACHE_VAL
3743case "x$ac_cv_prog_cc_c89" in
3744  x)
3745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746$as_echo "none needed" >&6; } ;;
3747  xno)
3748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3749$as_echo "unsupported" >&6; } ;;
3750  *)
3751    CC="$CC $ac_cv_prog_cc_c89"
3752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3753$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3754esac
3755if test "x$ac_cv_prog_cc_c89" != xno; then :
3756
3757fi
3758
3759ac_ext=c
3760ac_cpp='$CPP $CPPFLAGS'
3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3772$as_echo_n "checking how to run the C preprocessor... " >&6; }
3773# On Suns, sometimes $CPP names a directory.
3774if test -n "$CPP" && test -d "$CPP"; then
3775  CPP=
3776fi
3777if test -z "$CPP"; then
3778  if ${ac_cv_prog_CPP+:} false; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781      # Double quotes because CPP needs to be expanded
3782    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783    do
3784      ac_preproc_ok=false
3785for ac_c_preproc_warn_flag in '' yes
3786do
3787  # Use a header file that comes with gcc, so configuring glibc
3788  # with a fresh cross-compiler works.
3789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790  # <limits.h> exists even on freestanding compilers.
3791  # On the NeXT, cc -E runs the code through the compiler's parser,
3792  # not just through cpp. "Syntax error" is here to catch this case.
3793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795#ifdef __STDC__
3796# include <limits.h>
3797#else
3798# include <assert.h>
3799#endif
3800		     Syntax error
3801_ACEOF
3802if ac_fn_c_try_cpp "$LINENO"; then :
3803
3804else
3805  # Broken: fails on valid input.
3806continue
3807fi
3808rm -f conftest.err conftest.i conftest.$ac_ext
3809
3810  # OK, works on sane cases.  Now check whether nonexistent headers
3811  # can be detected and how.
3812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <ac_nonexistent.h>
3815_ACEOF
3816if ac_fn_c_try_cpp "$LINENO"; then :
3817  # Broken: success on invalid input.
3818continue
3819else
3820  # Passes both tests.
3821ac_preproc_ok=:
3822break
3823fi
3824rm -f conftest.err conftest.i conftest.$ac_ext
3825
3826done
3827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828rm -f conftest.i conftest.err conftest.$ac_ext
3829if $ac_preproc_ok; then :
3830  break
3831fi
3832
3833    done
3834    ac_cv_prog_CPP=$CPP
3835
3836fi
3837  CPP=$ac_cv_prog_CPP
3838else
3839  ac_cv_prog_CPP=$CPP
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3842$as_echo "$CPP" >&6; }
3843ac_preproc_ok=false
3844for ac_c_preproc_warn_flag in '' yes
3845do
3846  # Use a header file that comes with gcc, so configuring glibc
3847  # with a fresh cross-compiler works.
3848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849  # <limits.h> exists even on freestanding compilers.
3850  # On the NeXT, cc -E runs the code through the compiler's parser,
3851  # not just through cpp. "Syntax error" is here to catch this case.
3852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854#ifdef __STDC__
3855# include <limits.h>
3856#else
3857# include <assert.h>
3858#endif
3859		     Syntax error
3860_ACEOF
3861if ac_fn_c_try_cpp "$LINENO"; then :
3862
3863else
3864  # Broken: fails on valid input.
3865continue
3866fi
3867rm -f conftest.err conftest.i conftest.$ac_ext
3868
3869  # OK, works on sane cases.  Now check whether nonexistent headers
3870  # can be detected and how.
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873#include <ac_nonexistent.h>
3874_ACEOF
3875if ac_fn_c_try_cpp "$LINENO"; then :
3876  # Broken: success on invalid input.
3877continue
3878else
3879  # Passes both tests.
3880ac_preproc_ok=:
3881break
3882fi
3883rm -f conftest.err conftest.i conftest.$ac_ext
3884
3885done
3886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887rm -f conftest.i conftest.err conftest.$ac_ext
3888if $ac_preproc_ok; then :
3889
3890else
3891  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3894See \`config.log' for more details" "$LINENO" 5; }
3895fi
3896
3897ac_ext=c
3898ac_cpp='$CPP $CPPFLAGS'
3899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3905$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3906if ${ac_cv_path_GREP+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  if test -z "$GREP"; then
3910  ac_path_GREP_found=false
3911  # Loop through the user's path and test for each of PROGNAME-LIST
3912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917    for ac_prog in grep ggrep; do
3918    for ac_exec_ext in '' $ac_executable_extensions; do
3919      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920      as_fn_executable_p "$ac_path_GREP" || continue
3921# Check for GNU ac_path_GREP and select it if it is found.
3922  # Check for GNU $ac_path_GREP
3923case `"$ac_path_GREP" --version 2>&1` in
3924*GNU*)
3925  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926*)
3927  ac_count=0
3928  $as_echo_n 0123456789 >"conftest.in"
3929  while :
3930  do
3931    cat "conftest.in" "conftest.in" >"conftest.tmp"
3932    mv "conftest.tmp" "conftest.in"
3933    cp "conftest.in" "conftest.nl"
3934    $as_echo 'GREP' >> "conftest.nl"
3935    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937    as_fn_arith $ac_count + 1 && ac_count=$as_val
3938    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939      # Best one so far, save it but keep looking for a better one
3940      ac_cv_path_GREP="$ac_path_GREP"
3941      ac_path_GREP_max=$ac_count
3942    fi
3943    # 10*(2^10) chars as input seems more than enough
3944    test $ac_count -gt 10 && break
3945  done
3946  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947esac
3948
3949      $ac_path_GREP_found && break 3
3950    done
3951  done
3952  done
3953IFS=$as_save_IFS
3954  if test -z "$ac_cv_path_GREP"; then
3955    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3956  fi
3957else
3958  ac_cv_path_GREP=$GREP
3959fi
3960
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3963$as_echo "$ac_cv_path_GREP" >&6; }
3964 GREP="$ac_cv_path_GREP"
3965
3966
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3968$as_echo_n "checking for egrep... " >&6; }
3969if ${ac_cv_path_EGREP+:} false; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3973   then ac_cv_path_EGREP="$GREP -E"
3974   else
3975     if test -z "$EGREP"; then
3976  ac_path_EGREP_found=false
3977  # Loop through the user's path and test for each of PROGNAME-LIST
3978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_prog in egrep; do
3984    for ac_exec_ext in '' $ac_executable_extensions; do
3985      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986      as_fn_executable_p "$ac_path_EGREP" || continue
3987# Check for GNU ac_path_EGREP and select it if it is found.
3988  # Check for GNU $ac_path_EGREP
3989case `"$ac_path_EGREP" --version 2>&1` in
3990*GNU*)
3991  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992*)
3993  ac_count=0
3994  $as_echo_n 0123456789 >"conftest.in"
3995  while :
3996  do
3997    cat "conftest.in" "conftest.in" >"conftest.tmp"
3998    mv "conftest.tmp" "conftest.in"
3999    cp "conftest.in" "conftest.nl"
4000    $as_echo 'EGREP' >> "conftest.nl"
4001    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003    as_fn_arith $ac_count + 1 && ac_count=$as_val
4004    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005      # Best one so far, save it but keep looking for a better one
4006      ac_cv_path_EGREP="$ac_path_EGREP"
4007      ac_path_EGREP_max=$ac_count
4008    fi
4009    # 10*(2^10) chars as input seems more than enough
4010    test $ac_count -gt 10 && break
4011  done
4012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013esac
4014
4015      $ac_path_EGREP_found && break 3
4016    done
4017  done
4018  done
4019IFS=$as_save_IFS
4020  if test -z "$ac_cv_path_EGREP"; then
4021    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022  fi
4023else
4024  ac_cv_path_EGREP=$EGREP
4025fi
4026
4027   fi
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4030$as_echo "$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4032
4033
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4035$as_echo_n "checking for ANSI C header files... " >&6; }
4036if ${ac_cv_header_stdc+:} false; then :
4037  $as_echo_n "(cached) " >&6
4038else
4039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041#include <stdlib.h>
4042#include <stdarg.h>
4043#include <string.h>
4044#include <float.h>
4045
4046int
4047main ()
4048{
4049
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"; then :
4055  ac_cv_header_stdc=yes
4056else
4057  ac_cv_header_stdc=no
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061if test $ac_cv_header_stdc = yes; then
4062  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <string.h>
4066
4067_ACEOF
4068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069  $EGREP "memchr" >/dev/null 2>&1; then :
4070
4071else
4072  ac_cv_header_stdc=no
4073fi
4074rm -f conftest*
4075
4076fi
4077
4078if test $ac_cv_header_stdc = yes; then
4079  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <stdlib.h>
4083
4084_ACEOF
4085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086  $EGREP "free" >/dev/null 2>&1; then :
4087
4088else
4089  ac_cv_header_stdc=no
4090fi
4091rm -f conftest*
4092
4093fi
4094
4095if test $ac_cv_header_stdc = yes; then
4096  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4097  if test "$cross_compiling" = yes; then :
4098  :
4099else
4100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102#include <ctype.h>
4103#include <stdlib.h>
4104#if ((' ' & 0x0FF) == 0x020)
4105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4107#else
4108# define ISLOWER(c) \
4109		   (('a' <= (c) && (c) <= 'i') \
4110		     || ('j' <= (c) && (c) <= 'r') \
4111		     || ('s' <= (c) && (c) <= 'z'))
4112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4113#endif
4114
4115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4116int
4117main ()
4118{
4119  int i;
4120  for (i = 0; i < 256; i++)
4121    if (XOR (islower (i), ISLOWER (i))
4122	|| toupper (i) != TOUPPER (i))
4123      return 2;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_run "$LINENO"; then :
4128
4129else
4130  ac_cv_header_stdc=no
4131fi
4132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4133  conftest.$ac_objext conftest.beam conftest.$ac_ext
4134fi
4135
4136fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4139$as_echo "$ac_cv_header_stdc" >&6; }
4140if test $ac_cv_header_stdc = yes; then
4141
4142$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4143
4144fi
4145
4146# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4147for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148		  inttypes.h stdint.h unistd.h
4149do :
4150  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4152"
4153if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4154  cat >>confdefs.h <<_ACEOF
4155#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4156_ACEOF
4157
4158fi
4159
4160done
4161
4162
4163
4164  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4165if test "x$ac_cv_header_minix_config_h" = xyes; then :
4166  MINIX=yes
4167else
4168  MINIX=
4169fi
4170
4171
4172  if test "$MINIX" = yes; then
4173
4174$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4175
4176
4177$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4178
4179
4180$as_echo "#define _MINIX 1" >>confdefs.h
4181
4182  fi
4183
4184
4185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4186$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4187if ${ac_cv_safe_to_define___extensions__+:} false; then :
4188  $as_echo_n "(cached) " >&6
4189else
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192
4193#         define __EXTENSIONS__ 1
4194          $ac_includes_default
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"; then :
4204  ac_cv_safe_to_define___extensions__=yes
4205else
4206  ac_cv_safe_to_define___extensions__=no
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4211$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4212  test $ac_cv_safe_to_define___extensions__ = yes &&
4213    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4214
4215  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4216
4217  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4218
4219  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4220
4221  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4222
4223
4224if test "$ac_cv_header_minix_config_h" = "yes"; then
4225
4226$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4227
4228fi
4229
4230case "$prefix" in
4231        NONE)
4232		prefix="/usr/local"
4233        ;;
4234esac
4235case "$exec_prefix" in
4236        NONE)
4237		exec_prefix="$prefix"
4238        ;;
4239esac
4240
4241# are we on MinGW?
4242if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4243else
4244	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4245	else on_mingw="no"; fi
4246fi
4247
4248#
4249# Determine configuration file
4250# the eval is to evaluate shell expansion twice
4251UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4252
4253UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4254
4255UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4256
4257if test $on_mingw = "no"; then
4258  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4259else
4260  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4261fi
4262
4263# Check whether --with-conf_file was given.
4264if test "${with_conf_file+set}" = set; then :
4265  withval=$with_conf_file; ub_conf_file="$withval"
4266fi
4267
4268
4269hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4270
4271
4272cat >>confdefs.h <<_ACEOF
4273#define CONFIGFILE "$hdr_config"
4274_ACEOF
4275
4276ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4277$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4278	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4279	 X"$ub_conf_file" : 'X\(//\)$' \| \
4280	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4281$as_echo X"$ub_conf_file" |
4282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4283	    s//\1/
4284	    q
4285	  }
4286	  /^X\(\/\/\)[^/].*/{
4287	    s//\1/
4288	    q
4289	  }
4290	  /^X\(\/\/\)$/{
4291	    s//\1/
4292	    q
4293	  }
4294	  /^X\(\/\).*/{
4295	    s//\1/
4296	    q
4297	  }
4298	  s/.*/./; q'`
4299
4300
4301# Determine run, chroot directory and pidfile locations
4302
4303# Check whether --with-run-dir was given.
4304if test "${with_run_dir+set}" = set; then :
4305  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4306else
4307  if test $on_mingw = no; then
4308    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4309else
4310    UNBOUND_RUN_DIR=""
4311fi
4312
4313fi
4314
4315
4316hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define RUN_DIR "$hdr_run"
4321_ACEOF
4322
4323
4324
4325# Check whether --with-chroot-dir was given.
4326if test "${with_chroot_dir+set}" = set; then :
4327  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4328else
4329  if test $on_mingw = no; then
4330    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4331else
4332    UNBOUND_CHROOT_DIR=""
4333fi
4334
4335fi
4336
4337
4338hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4339
4340
4341cat >>confdefs.h <<_ACEOF
4342#define CHROOT_DIR "$hdr_chroot"
4343_ACEOF
4344
4345
4346
4347# Check whether --with-share-dir was given.
4348if test "${with_share_dir+set}" = set; then :
4349  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4350else
4351  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4352fi
4353
4354
4355
4356cat >>confdefs.h <<_ACEOF
4357#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4358_ACEOF
4359
4360
4361
4362# Check whether --with-pidfile was given.
4363if test "${with_pidfile+set}" = set; then :
4364  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4365else
4366  if test $on_mingw = no; then
4367    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4368else
4369    UNBOUND_PIDFILE=""
4370fi
4371
4372fi
4373
4374
4375hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4376
4377
4378cat >>confdefs.h <<_ACEOF
4379#define PIDFILE "$hdr_pid"
4380_ACEOF
4381
4382
4383
4384# Check whether --with-rootkey-file was given.
4385if test "${with_rootkey_file+set}" = set; then :
4386  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4387else
4388  if test $on_mingw = no; then
4389    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4390else
4391    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4392fi
4393
4394fi
4395
4396
4397hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4398
4399
4400cat >>confdefs.h <<_ACEOF
4401#define ROOT_ANCHOR_FILE "$hdr_rkey"
4402_ACEOF
4403
4404
4405
4406# Check whether --with-rootcert-file was given.
4407if test "${with_rootcert_file+set}" = set; then :
4408  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4409else
4410  if test $on_mingw = no; then
4411    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4412else
4413    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4414fi
4415
4416fi
4417
4418
4419hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4420
4421
4422cat >>confdefs.h <<_ACEOF
4423#define ROOT_CERT_FILE "$hdr_rpem"
4424_ACEOF
4425
4426
4427
4428# Check whether --with-username was given.
4429if test "${with_username+set}" = set; then :
4430  withval=$with_username; UNBOUND_USERNAME="$withval"
4431else
4432  UNBOUND_USERNAME="unbound"
4433fi
4434
4435
4436
4437cat >>confdefs.h <<_ACEOF
4438#define UB_USERNAME "$UNBOUND_USERNAME"
4439_ACEOF
4440
4441
4442
4443$as_echo "#define WINVER 0x0502" >>confdefs.h
4444
4445wnvs=`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/' `
4446
4447
4448cat >>confdefs.h <<_ACEOF
4449#define RSRC_PACKAGE_VERSION $wnvs
4450_ACEOF
4451
4452
4453# Checks for typedefs, structures, and compiler characteristics.
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4455$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4456if ${ac_cv_c_const+:} false; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h.  */
4461
4462int
4463main ()
4464{
4465
4466#ifndef __cplusplus
4467  /* Ultrix mips cc rejects this sort of thing.  */
4468  typedef int charset[2];
4469  const charset cs = { 0, 0 };
4470  /* SunOS 4.1.1 cc rejects this.  */
4471  char const *const *pcpcc;
4472  char **ppc;
4473  /* NEC SVR4.0.2 mips cc rejects this.  */
4474  struct point {int x, y;};
4475  static struct point const zero = {0,0};
4476  /* AIX XL C 1.02.0.0 rejects this.
4477     It does not let you subtract one const X* pointer from another in
4478     an arm of an if-expression whose if-part is not a constant
4479     expression */
4480  const char *g = "string";
4481  pcpcc = &g + (g ? g-g : 0);
4482  /* HPUX 7.0 cc rejects these. */
4483  ++pcpcc;
4484  ppc = (char**) pcpcc;
4485  pcpcc = (char const *const *) ppc;
4486  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4487    char tx;
4488    char *t = &tx;
4489    char const *s = 0 ? (char *) 0 : (char const *) 0;
4490
4491    *t++ = 0;
4492    if (s) return 0;
4493  }
4494  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4495    int x[] = {25, 17};
4496    const int *foo = &x[0];
4497    ++foo;
4498  }
4499  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4500    typedef const int *iptr;
4501    iptr p = 0;
4502    ++p;
4503  }
4504  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4505       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4506    struct s { int j; const int *ap[3]; } bx;
4507    struct s *b = &bx; b->j = 5;
4508  }
4509  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4510    const int foo = 10;
4511    if (!foo) return 0;
4512  }
4513  return !cs[0] && !zero.x;
4514#endif
4515
4516  ;
4517  return 0;
4518}
4519_ACEOF
4520if ac_fn_c_try_compile "$LINENO"; then :
4521  ac_cv_c_const=yes
4522else
4523  ac_cv_c_const=no
4524fi
4525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4528$as_echo "$ac_cv_c_const" >&6; }
4529if test $ac_cv_c_const = no; then
4530
4531$as_echo "#define const /**/" >>confdefs.h
4532
4533fi
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541# allow user to override the -g -O2 flags.
4542default_cflags=no
4543if test "x$CFLAGS" = "x" ; then
4544
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4547$as_echo_n "checking whether $CC supports -g... " >&6; }
4548cache=`echo g | sed 'y%.=/+-%___p_%'`
4549if eval \${cv_prog_cc_flag_$cache+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552
4553echo 'void f(void){}' >conftest.c
4554if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4555eval "cv_prog_cc_flag_$cache=yes"
4556else
4557eval "cv_prog_cc_flag_$cache=no"
4558fi
4559rm -f conftest conftest.o conftest.c
4560
4561fi
4562
4563if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
4566:
4567CFLAGS="$CFLAGS -g"
4568else
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571:
4572
4573fi
4574
4575
4576
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4578$as_echo_n "checking whether $CC supports -O2... " >&6; }
4579cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4580if eval \${cv_prog_cc_flag_$cache+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583
4584echo 'void f(void){}' >conftest.c
4585if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4586eval "cv_prog_cc_flag_$cache=yes"
4587else
4588eval "cv_prog_cc_flag_$cache=no"
4589fi
4590rm -f conftest conftest.o conftest.c
4591
4592fi
4593
4594if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4596$as_echo "yes" >&6; }
4597:
4598CFLAGS="$CFLAGS -O2"
4599else
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602:
4603
4604fi
4605
4606default_cflags=yes
4607fi
4608   case $ac_cv_prog_cc_stdc in #(
4609  no) :
4610    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4611  *) :
4612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4613$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4614if ${ac_cv_prog_cc_c99+:} false; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  ac_cv_prog_cc_c99=no
4618ac_save_CC=$CC
4619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621#include <stdarg.h>
4622#include <stdbool.h>
4623#include <stdlib.h>
4624#include <wchar.h>
4625#include <stdio.h>
4626
4627// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4628#define debug(...) fprintf (stderr, __VA_ARGS__)
4629#define showlist(...) puts (#__VA_ARGS__)
4630#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4631static void
4632test_varargs_macros (void)
4633{
4634  int x = 1234;
4635  int y = 5678;
4636  debug ("Flag");
4637  debug ("X = %d\n", x);
4638  showlist (The first, second, and third items.);
4639  report (x>y, "x is %d but y is %d", x, y);
4640}
4641
4642// Check long long types.
4643#define BIG64 18446744073709551615ull
4644#define BIG32 4294967295ul
4645#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4646#if !BIG_OK
4647  your preprocessor is broken;
4648#endif
4649#if BIG_OK
4650#else
4651  your preprocessor is broken;
4652#endif
4653static long long int bignum = -9223372036854775807LL;
4654static unsigned long long int ubignum = BIG64;
4655
4656struct incomplete_array
4657{
4658  int datasize;
4659  double data[];
4660};
4661
4662struct named_init {
4663  int number;
4664  const wchar_t *name;
4665  double average;
4666};
4667
4668typedef const char *ccp;
4669
4670static inline int
4671test_restrict (ccp restrict text)
4672{
4673  // See if C++-style comments work.
4674  // Iterate through items via the restricted pointer.
4675  // Also check for declarations in for loops.
4676  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4677    continue;
4678  return 0;
4679}
4680
4681// Check varargs and va_copy.
4682static void
4683test_varargs (const char *format, ...)
4684{
4685  va_list args;
4686  va_start (args, format);
4687  va_list args_copy;
4688  va_copy (args_copy, args);
4689
4690  const char *str;
4691  int number;
4692  float fnumber;
4693
4694  while (*format)
4695    {
4696      switch (*format++)
4697	{
4698	case 's': // string
4699	  str = va_arg (args_copy, const char *);
4700	  break;
4701	case 'd': // int
4702	  number = va_arg (args_copy, int);
4703	  break;
4704	case 'f': // float
4705	  fnumber = va_arg (args_copy, double);
4706	  break;
4707	default:
4708	  break;
4709	}
4710    }
4711  va_end (args_copy);
4712  va_end (args);
4713}
4714
4715int
4716main ()
4717{
4718
4719  // Check bool.
4720  _Bool success = false;
4721
4722  // Check restrict.
4723  if (test_restrict ("String literal") == 0)
4724    success = true;
4725  char *restrict newvar = "Another string";
4726
4727  // Check varargs.
4728  test_varargs ("s, d' f .", "string", 65, 34.234);
4729  test_varargs_macros ();
4730
4731  // Check flexible array members.
4732  struct incomplete_array *ia =
4733    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4734  ia->datasize = 10;
4735  for (int i = 0; i < ia->datasize; ++i)
4736    ia->data[i] = i * 1.234;
4737
4738  // Check named initializers.
4739  struct named_init ni = {
4740    .number = 34,
4741    .name = L"Test wide string",
4742    .average = 543.34343,
4743  };
4744
4745  ni.number = 58;
4746
4747  int dynamic_array[ni.number];
4748  dynamic_array[ni.number - 1] = 543;
4749
4750  // work around unused variable warnings
4751  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4752	  || dynamic_array[ni.number - 1] != 543);
4753
4754  ;
4755  return 0;
4756}
4757_ACEOF
4758for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4759do
4760  CC="$ac_save_CC $ac_arg"
4761  if ac_fn_c_try_compile "$LINENO"; then :
4762  ac_cv_prog_cc_c99=$ac_arg
4763fi
4764rm -f core conftest.err conftest.$ac_objext
4765  test "x$ac_cv_prog_cc_c99" != "xno" && break
4766done
4767rm -f conftest.$ac_ext
4768CC=$ac_save_CC
4769
4770fi
4771# AC_CACHE_VAL
4772case "x$ac_cv_prog_cc_c99" in
4773  x)
4774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775$as_echo "none needed" >&6; } ;;
4776  xno)
4777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778$as_echo "unsupported" >&6; } ;;
4779  *)
4780    CC="$CC $ac_cv_prog_cc_c99"
4781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4782$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4783esac
4784if test "x$ac_cv_prog_cc_c99" != xno; then :
4785  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4786else
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4788$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4789if ${ac_cv_prog_cc_c89+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  ac_cv_prog_cc_c89=no
4793ac_save_CC=$CC
4794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h.  */
4796#include <stdarg.h>
4797#include <stdio.h>
4798struct stat;
4799/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4800struct buf { int x; };
4801FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802static char *e (p, i)
4803     char **p;
4804     int i;
4805{
4806  return p[i];
4807}
4808static char *f (char * (*g) (char **, int), char **p, ...)
4809{
4810  char *s;
4811  va_list v;
4812  va_start (v,p);
4813  s = g (p, va_arg (v,int));
4814  va_end (v);
4815  return s;
4816}
4817
4818/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4819   function prototypes and stuff, but not '\xHH' hex character constants.
4820   These don't provoke an error unfortunately, instead are silently treated
4821   as 'x'.  The following induces an error, until -std is added to get
4822   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4823   array size at least.  It's necessary to write '\x00'==0 to get something
4824   that's true only with -std.  */
4825int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4826
4827/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828   inside strings and character constants.  */
4829#define FOO(x) 'x'
4830int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4831
4832int test (int i, double x);
4833struct s1 {int (*f) (int a);};
4834struct s2 {int (*f) (double a);};
4835int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4836int argc;
4837char **argv;
4838int
4839main ()
4840{
4841return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4842  ;
4843  return 0;
4844}
4845_ACEOF
4846for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4848do
4849  CC="$ac_save_CC $ac_arg"
4850  if ac_fn_c_try_compile "$LINENO"; then :
4851  ac_cv_prog_cc_c89=$ac_arg
4852fi
4853rm -f core conftest.err conftest.$ac_objext
4854  test "x$ac_cv_prog_cc_c89" != "xno" && break
4855done
4856rm -f conftest.$ac_ext
4857CC=$ac_save_CC
4858
4859fi
4860# AC_CACHE_VAL
4861case "x$ac_cv_prog_cc_c89" in
4862  x)
4863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864$as_echo "none needed" >&6; } ;;
4865  xno)
4866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867$as_echo "unsupported" >&6; } ;;
4868  *)
4869    CC="$CC $ac_cv_prog_cc_c89"
4870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4872esac
4873if test "x$ac_cv_prog_cc_c89" != xno; then :
4874  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4875else
4876  ac_cv_prog_cc_stdc=no
4877fi
4878
4879fi
4880 ;;
4881esac
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4883$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4884  if ${ac_cv_prog_cc_stdc+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886fi
4887
4888  case $ac_cv_prog_cc_stdc in #(
4889  no) :
4890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4891$as_echo "unsupported" >&6; } ;; #(
4892  '') :
4893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894$as_echo "none needed" >&6; } ;; #(
4895  *) :
4896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4897$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4898esac
4899
4900
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4902$as_echo_n "checking $CC dependency flag... " >&6; }
4903echo 'void f(void){}' >conftest.c
4904if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4905	DEPFLAG="-MM"
4906else
4907  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4908	DEPFLAG="-xM1"
4909  else
4910	DEPFLAG="-MM"  # dunno do something
4911  fi
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4914$as_echo "$DEPFLAG" >&6; }
4915rm -f conftest.c
4916
4917
4918
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4922$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4923cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4924if eval \${cv_prog_cc_flag_$cache+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927
4928echo 'void f(void){}' >conftest.c
4929if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4930eval "cv_prog_cc_flag_$cache=yes"
4931else
4932eval "cv_prog_cc_flag_$cache=no"
4933fi
4934rm -f conftest conftest.o conftest.c
4935
4936fi
4937
4938if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4940$as_echo "yes" >&6; }
4941:
4942ERRFLAG="-Werror"
4943else
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946:
4947ERRFLAG="-errwarn"
4948fi
4949
4950
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4953$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4954cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4955if eval \${cv_prog_cc_flag_$cache+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958
4959echo 'void f(void){}' >conftest.c
4960if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4961eval "cv_prog_cc_flag_$cache=yes"
4962else
4963eval "cv_prog_cc_flag_$cache=no"
4964fi
4965rm -f conftest conftest.o conftest.c
4966
4967fi
4968
4969if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971$as_echo "yes" >&6; }
4972:
4973ERRFLAG="$ERRFLAG -Wall"
4974else
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977:
4978ERRFLAG="$ERRFLAG -errfmt"
4979fi
4980
4981
4982
4983
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4986$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4987cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4988if eval \${cv_prog_cc_flag_$cache+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991
4992echo 'void f(void){}' >conftest.c
4993if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4994eval "cv_prog_cc_flag_$cache=yes"
4995else
4996eval "cv_prog_cc_flag_$cache=no"
4997fi
4998rm -f conftest conftest.o conftest.c
4999
5000fi
5001
5002if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004$as_echo "yes" >&6; }
5005:
5006C99FLAG="-std=c99"
5007else
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010:
5011
5012fi
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5017$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5018cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5019if eval \${cv_prog_cc_flag_$cache+:} false; then :
5020  $as_echo_n "(cached) " >&6
5021else
5022
5023echo 'void f(void){}' >conftest.c
5024if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5025eval "cv_prog_cc_flag_$cache=yes"
5026else
5027eval "cv_prog_cc_flag_$cache=no"
5028fi
5029rm -f conftest conftest.o conftest.c
5030
5031fi
5032
5033if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035$as_echo "yes" >&6; }
5036:
5037C99FLAG="-xc99"
5038else
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041:
5042
5043fi
5044
5045
5046for ac_header in getopt.h time.h
5047do :
5048  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5050"
5051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5052  cat >>confdefs.h <<_ACEOF
5053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5054_ACEOF
5055
5056fi
5057
5058done
5059
5060
5061
5062
5063
5064{ $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
5065$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; }
5066cache=`$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`
5067if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070
5071echo '
5072#include "confdefs.h"
5073#include <stdlib.h>
5074#include <ctype.h>
5075#include <sys/time.h>
5076#ifdef HAVE_TIME_H
5077#include <time.h>
5078#endif
5079#include <unistd.h>
5080#include <netdb.h>
5081#ifdef HAVE_GETOPT_H
5082#include <getopt.h>
5083#endif
5084
5085int test(void) {
5086	int a;
5087	char **opts = NULL;
5088	struct timeval tv;
5089	char *t;
5090	time_t time = 0;
5091	char *buf = NULL;
5092	const char* str = NULL;
5093	struct msghdr msg;
5094	msg.msg_control = 0;
5095	t = ctime_r(&time, buf);
5096	tv.tv_usec = 10;
5097	srandom(32);
5098	a = getopt(2, opts, "a");
5099	a = isascii(32);
5100	str = gai_strerror(0);
5101	if(str && t && tv.tv_usec && msg.msg_control)
5102		a = 0;
5103	return a;
5104}
5105' > conftest.c
5106echo 'void f(void){}' >>conftest.c
5107if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5108eval "cv_prog_cc_flag_needed_$cache=no"
5109else
5110
5111if 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
5112eval "cv_prog_cc_flag_needed_$cache=yes"
5113else
5114eval "cv_prog_cc_flag_needed_$cache=fail"
5115#echo 'Test with flag fails too!'
5116#cat conftest.c
5117#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"
5118#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`
5119#exit 1
5120fi
5121
5122fi
5123rm -f conftest conftest.c conftest.o
5124
5125fi
5126
5127if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5129$as_echo "yes" >&6; }
5130:
5131CFLAGS="$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"
5132else
5133if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
5136#echo 'Test with flag is no!'
5137#cat conftest.c
5138#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"
5139#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`
5140#exit 1
5141:
5142
5143else
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5145$as_echo "failed" >&6; }
5146:
5147
5148fi
5149fi
5150
5151
5152
5153
5154
5155{ $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
5156$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; }
5157cache=`$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`
5158if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161
5162echo '
5163#include "confdefs.h"
5164#include <stdlib.h>
5165#include <ctype.h>
5166#include <sys/time.h>
5167#ifdef HAVE_TIME_H
5168#include <time.h>
5169#endif
5170#include <unistd.h>
5171#include <netdb.h>
5172#ifdef HAVE_GETOPT_H
5173#include <getopt.h>
5174#endif
5175
5176int test(void) {
5177	int a;
5178	char **opts = NULL;
5179	struct timeval tv;
5180	char *t;
5181	time_t time = 0;
5182	char *buf = NULL;
5183	const char* str = NULL;
5184	struct msghdr msg;
5185	msg.msg_control = 0;
5186	t = ctime_r(&time, buf);
5187	tv.tv_usec = 10;
5188	srandom(32);
5189	a = getopt(2, opts, "a");
5190	a = isascii(32);
5191	str = gai_strerror(0);
5192	if(str && t && tv.tv_usec && msg.msg_control)
5193		a = 0;
5194	return a;
5195}
5196' > conftest.c
5197echo 'void f(void){}' >>conftest.c
5198if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5199eval "cv_prog_cc_flag_needed_$cache=no"
5200else
5201
5202if 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
5203eval "cv_prog_cc_flag_needed_$cache=yes"
5204else
5205eval "cv_prog_cc_flag_needed_$cache=fail"
5206#echo 'Test with flag fails too!'
5207#cat conftest.c
5208#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"
5209#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`
5210#exit 1
5211fi
5212
5213fi
5214rm -f conftest conftest.c conftest.o
5215
5216fi
5217
5218if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220$as_echo "yes" >&6; }
5221:
5222CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5223else
5224if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227#echo 'Test with flag is no!'
5228#cat conftest.c
5229#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"
5230#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`
5231#exit 1
5232:
5233
5234else
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5236$as_echo "failed" >&6; }
5237:
5238
5239fi
5240fi
5241
5242
5243
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5247$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5248cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5249if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5250  $as_echo_n "(cached) " >&6
5251else
5252
5253echo '
5254#include <stdbool.h>
5255#include <ctype.h>
5256int test(void) {
5257        int a = 0;
5258        return a;
5259}
5260' > conftest.c
5261echo 'void f(void){}' >>conftest.c
5262if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5263eval "cv_prog_cc_flag_needed_$cache=no"
5264else
5265
5266if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5267eval "cv_prog_cc_flag_needed_$cache=yes"
5268else
5269eval "cv_prog_cc_flag_needed_$cache=fail"
5270#echo 'Test with flag fails too!'
5271#cat conftest.c
5272#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5273#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5274#exit 1
5275fi
5276
5277fi
5278rm -f conftest conftest.c conftest.o
5279
5280fi
5281
5282if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284$as_echo "yes" >&6; }
5285:
5286CFLAGS="$CFLAGS $C99FLAG"
5287else
5288if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291#echo 'Test with flag is no!'
5292#cat conftest.c
5293#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5294#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5295#exit 1
5296:
5297
5298else
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5300$as_echo "failed" >&6; }
5301:
5302
5303fi
5304fi
5305
5306
5307
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5311$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5312cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5313if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316
5317echo '
5318#include <ctype.h>
5319
5320int test(void) {
5321        int a;
5322        a = isascii(32);
5323        return a;
5324}
5325' > conftest.c
5326echo 'void f(void){}' >>conftest.c
5327if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5328eval "cv_prog_cc_flag_needed_$cache=no"
5329else
5330
5331if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5332eval "cv_prog_cc_flag_needed_$cache=yes"
5333else
5334eval "cv_prog_cc_flag_needed_$cache=fail"
5335#echo 'Test with flag fails too!'
5336#cat conftest.c
5337#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5338#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5339#exit 1
5340fi
5341
5342fi
5343rm -f conftest conftest.c conftest.o
5344
5345fi
5346
5347if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349$as_echo "yes" >&6; }
5350:
5351CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5352else
5353if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356#echo 'Test with flag is no!'
5357#cat conftest.c
5358#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5359#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5360#exit 1
5361:
5362
5363else
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5365$as_echo "failed" >&6; }
5366:
5367
5368fi
5369fi
5370
5371
5372
5373
5374
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5376$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5377cache=_D_GNU_SOURCE
5378if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381
5382echo '
5383#include <netinet/in.h>
5384
5385int test(void) {
5386        struct in6_pktinfo inf;
5387	int a = (int)sizeof(inf);
5388        return a;
5389}
5390' > conftest.c
5391echo 'void f(void){}' >>conftest.c
5392if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5393eval "cv_prog_cc_flag_needed_$cache=no"
5394else
5395
5396if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5397eval "cv_prog_cc_flag_needed_$cache=yes"
5398else
5399eval "cv_prog_cc_flag_needed_$cache=fail"
5400#echo 'Test with flag fails too!'
5401#cat conftest.c
5402#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5403#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5404#exit 1
5405fi
5406
5407fi
5408rm -f conftest conftest.c conftest.o
5409
5410fi
5411
5412if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414$as_echo "yes" >&6; }
5415:
5416CFLAGS="$CFLAGS -D_GNU_SOURCE"
5417else
5418if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421#echo 'Test with flag is no!'
5422#cat conftest.c
5423#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5424#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5425#exit 1
5426:
5427
5428else
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5430$as_echo "failed" >&6; }
5431:
5432
5433fi
5434fi
5435
5436
5437# check again for GNU_SOURCE for setresgid. May fail if setresgid
5438# is not available at all. -D_FRSRESGID is to make this check unique.
5439# otherwise we would get the previous cached result.
5440
5441
5442
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5444$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5445cache=_D_GNU_SOURCE__D_FRSRESGID
5446if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449
5450echo '
5451#include <unistd.h>
5452
5453int test(void) {
5454	int a = setresgid(0,0,0);
5455	a = setresuid(0,0,0);
5456        return a;
5457}
5458' > conftest.c
5459echo 'void f(void){}' >>conftest.c
5460if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5461eval "cv_prog_cc_flag_needed_$cache=no"
5462else
5463
5464if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5465eval "cv_prog_cc_flag_needed_$cache=yes"
5466else
5467eval "cv_prog_cc_flag_needed_$cache=fail"
5468#echo 'Test with flag fails too!'
5469#cat conftest.c
5470#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5471#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5472#exit 1
5473fi
5474
5475fi
5476rm -f conftest conftest.c conftest.o
5477
5478fi
5479
5480if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482$as_echo "yes" >&6; }
5483:
5484CFLAGS="$CFLAGS -D_GNU_SOURCE"
5485else
5486if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489#echo 'Test with flag is no!'
5490#cat conftest.c
5491#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5492#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5493#exit 1
5494:
5495
5496else
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5498$as_echo "failed" >&6; }
5499:
5500
5501fi
5502fi
5503
5504
5505
5506
5507
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5509$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5510cache=_D_POSIX_C_SOURCE_200112
5511if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514
5515echo '
5516#include "confdefs.h"
5517#ifdef HAVE_TIME_H
5518#include <time.h>
5519#endif
5520#include <netdb.h>
5521
5522int test(void) {
5523        int a = 0;
5524        char *t;
5525        time_t time = 0;
5526        char *buf = NULL;
5527	const char* str = NULL;
5528        t = ctime_r(&time, buf);
5529	str = gai_strerror(0);
5530	if(t && str)
5531		a = 0;
5532        return a;
5533}
5534' > conftest.c
5535echo 'void f(void){}' >>conftest.c
5536if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5537eval "cv_prog_cc_flag_needed_$cache=no"
5538else
5539
5540if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5541eval "cv_prog_cc_flag_needed_$cache=yes"
5542else
5543eval "cv_prog_cc_flag_needed_$cache=fail"
5544#echo 'Test with flag fails too!'
5545#cat conftest.c
5546#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5547#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5548#exit 1
5549fi
5550
5551fi
5552rm -f conftest conftest.c conftest.o
5553
5554fi
5555
5556if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558$as_echo "yes" >&6; }
5559:
5560CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5561else
5562if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565#echo 'Test with flag is no!'
5566#cat conftest.c
5567#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5568#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5569#exit 1
5570:
5571
5572else
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5574$as_echo "failed" >&6; }
5575:
5576
5577fi
5578fi
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5585$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5586cache=_D__EXTENSIONS__
5587if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590
5591echo '
5592#include "confdefs.h"
5593#include <stdlib.h>
5594#include <ctype.h>
5595#include <sys/time.h>
5596#ifdef HAVE_TIME_H
5597#include <time.h>
5598#endif
5599#include <unistd.h>
5600#ifdef HAVE_GETOPT_H
5601#include <getopt.h>
5602#endif
5603
5604int test(void) {
5605        int a;
5606        char **opts = NULL;
5607        struct timeval tv;
5608        tv.tv_usec = 10;
5609        srandom(32);
5610        a = getopt(2, opts, "a");
5611        a = isascii(32);
5612	if(tv.tv_usec)
5613		a = 0;
5614        return a;
5615}
5616' > conftest.c
5617echo 'void f(void){}' >>conftest.c
5618if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5619eval "cv_prog_cc_flag_needed_$cache=no"
5620else
5621
5622if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5623eval "cv_prog_cc_flag_needed_$cache=yes"
5624else
5625eval "cv_prog_cc_flag_needed_$cache=fail"
5626#echo 'Test with flag fails too!'
5627#cat conftest.c
5628#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5629#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5630#exit 1
5631fi
5632
5633fi
5634rm -f conftest conftest.c conftest.o
5635
5636fi
5637
5638if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640$as_echo "yes" >&6; }
5641:
5642CFLAGS="$CFLAGS -D__EXTENSIONS__"
5643else
5644if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647#echo 'Test with flag is no!'
5648#cat conftest.c
5649#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5650#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5651#exit 1
5652:
5653
5654else
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5656$as_echo "failed" >&6; }
5657:
5658
5659fi
5660fi
5661
5662
5663
5664
5665# debug mode flags warnings
5666# Check whether --enable-checking was given.
5667if test "${enable_checking+set}" = set; then :
5668  enableval=$enable_checking;
5669fi
5670
5671# Check whether --enable-debug was given.
5672if test "${enable_debug+set}" = set; then :
5673  enableval=$enable_debug;
5674fi
5675
5676if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5677else debug_enabled="$enable_checking"; fi
5678
5679case "$debug_enabled" in
5680        yes)
5681
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5684$as_echo_n "checking whether $CC supports -W... " >&6; }
5685cache=`echo W | sed 'y%.=/+-%___p_%'`
5686if eval \${cv_prog_cc_flag_$cache+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689
5690echo 'void f(void){}' >conftest.c
5691if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5692eval "cv_prog_cc_flag_$cache=yes"
5693else
5694eval "cv_prog_cc_flag_$cache=no"
5695fi
5696rm -f conftest conftest.o conftest.c
5697
5698fi
5699
5700if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702$as_echo "yes" >&6; }
5703:
5704CFLAGS="$CFLAGS -W"
5705else
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708:
5709
5710fi
5711
5712
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5715$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5716cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5717if eval \${cv_prog_cc_flag_$cache+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720
5721echo 'void f(void){}' >conftest.c
5722if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5723eval "cv_prog_cc_flag_$cache=yes"
5724else
5725eval "cv_prog_cc_flag_$cache=no"
5726fi
5727rm -f conftest conftest.o conftest.c
5728
5729fi
5730
5731if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
5734:
5735CFLAGS="$CFLAGS -Wall"
5736else
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739:
5740
5741fi
5742
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5746$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5747cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5748if eval \${cv_prog_cc_flag_$cache+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751
5752echo 'void f(void){}' >conftest.c
5753if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5754eval "cv_prog_cc_flag_$cache=yes"
5755else
5756eval "cv_prog_cc_flag_$cache=no"
5757fi
5758rm -f conftest conftest.o conftest.c
5759
5760fi
5761
5762if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764$as_echo "yes" >&6; }
5765:
5766CFLAGS="$CFLAGS -Wextra"
5767else
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770:
5771
5772fi
5773
5774
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5777$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5778cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5779if eval \${cv_prog_cc_flag_$cache+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782
5783echo 'void f(void){}' >conftest.c
5784if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5785eval "cv_prog_cc_flag_$cache=yes"
5786else
5787eval "cv_prog_cc_flag_$cache=no"
5788fi
5789rm -f conftest conftest.o conftest.c
5790
5791fi
5792
5793if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795$as_echo "yes" >&6; }
5796:
5797CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5798else
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801:
5802
5803fi
5804
5805
5806$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5807
5808		;;
5809	no|*)
5810		# nothing to do.
5811		;;
5812esac
5813if test "$default_cflags" = "yes"; then
5814	# only when CFLAGS was "" at the start, if the users wants to
5815	# override we shouldn't add default cflags, because they wouldn't
5816	# be able to turn off these options and set the CFLAGS wanted.
5817
5818    # Check whether --enable-flto was given.
5819if test "${enable_flto+set}" = set; then :
5820  enableval=$enable_flto;
5821fi
5822
5823    if test "x$enable_flto" != "xno"; then :
5824
5825        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5826$as_echo_n "checking if $CC supports -flto... " >&6; }
5827        BAKCFLAGS="$CFLAGS"
5828        CFLAGS="$CFLAGS -flto"
5829        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_link "$LINENO"; then :
5841
5842            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5843                CFLAGS="$BAKCFLAGS"
5844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846            else
5847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5848$as_echo "yes" >&6; }
5849            fi
5850            rm -f conftest conftest.c conftest.o
5851
5852else
5853  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856rm -f core conftest.err conftest.$ac_objext \
5857    conftest$ac_exeext conftest.$ac_ext
5858
5859fi
5860
5861
5862    # Check whether --enable-pie was given.
5863if test "${enable_pie+set}" = set; then :
5864  enableval=$enable_pie;
5865fi
5866
5867    if test "x$enable_pie" = "xyes"; then :
5868
5869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5870$as_echo_n "checking if $CC supports PIE... " >&6; }
5871	BAKLDFLAGS="$LDFLAGS"
5872	BAKCFLAGS="$CFLAGS"
5873	LDFLAGS="$LDFLAGS -pie"
5874	CFLAGS="$CFLAGS -fPIE"
5875	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h.  */
5877
5878int
5879main ()
5880{
5881
5882  ;
5883  return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_link "$LINENO"; then :
5887
5888	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5889		LDFLAGS="$BAKLDFLAGS"
5890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891$as_echo "no" >&6; }
5892	    else
5893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894$as_echo "yes" >&6; }
5895	    fi
5896	    rm -f conftest conftest.c conftest.o
5897
5898else
5899  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900$as_echo "no" >&6; }
5901fi
5902rm -f core conftest.err conftest.$ac_objext \
5903    conftest$ac_exeext conftest.$ac_ext
5904
5905fi
5906
5907
5908    # Check whether --enable-relro_now was given.
5909if test "${enable_relro_now+set}" = set; then :
5910  enableval=$enable_relro_now;
5911fi
5912
5913    if test "x$enable_relro_now" = "xyes"; then :
5914
5915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5916$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5917	BAKLDFLAGS="$LDFLAGS"
5918	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5919	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921
5922int
5923main ()
5924{
5925
5926  ;
5927  return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
5931
5932	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5933		LDFLAGS="$BAKLDFLAGS"
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
5936	    else
5937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938$as_echo "yes" >&6; }
5939	    fi
5940	    rm -f conftest conftest.c conftest.o
5941
5942else
5943  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946rm -f core conftest.err conftest.$ac_objext \
5947    conftest$ac_exeext conftest.$ac_ext
5948
5949fi
5950
5951fi
5952
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5954$as_echo_n "checking for inline... " >&6; }
5955if ${ac_cv_c_inline+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  ac_cv_c_inline=no
5959for ac_kw in inline __inline__ __inline; do
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962#ifndef __cplusplus
5963typedef int foo_t;
5964static $ac_kw foo_t static_foo () {return 0; }
5965$ac_kw foo_t foo () {return 0; }
5966#endif
5967
5968_ACEOF
5969if ac_fn_c_try_compile "$LINENO"; then :
5970  ac_cv_c_inline=$ac_kw
5971fi
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973  test "$ac_cv_c_inline" != no && break
5974done
5975
5976fi
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5978$as_echo "$ac_cv_c_inline" >&6; }
5979
5980case $ac_cv_c_inline in
5981  inline | yes) ;;
5982  *)
5983    case $ac_cv_c_inline in
5984      no) ac_val=;;
5985      *) ac_val=$ac_cv_c_inline;;
5986    esac
5987    cat >>confdefs.h <<_ACEOF
5988#ifndef __cplusplus
5989#define inline $ac_val
5990#endif
5991_ACEOF
5992    ;;
5993esac
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5997$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5998if ${ac_cv_c_format_attribute+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  ac_cv_c_format_attribute=no
6002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h.  */
6004#include <stdio.h>
6005void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6006void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6007
6008int
6009main ()
6010{
6011
6012   f ("%s", "str");
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019  ac_cv_c_format_attribute="yes"
6020else
6021  ac_cv_c_format_attribute="no"
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024
6025fi
6026
6027
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6029$as_echo "$ac_cv_c_format_attribute" >&6; }
6030if test $ac_cv_c_format_attribute = yes; then
6031
6032$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6033
6034fi
6035
6036
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6038$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6039if ${ac_cv_c_unused_attribute+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  ac_cv_c_unused_attribute=no
6043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045#include <stdio.h>
6046void f (char *u __attribute__((unused)));
6047
6048int
6049main ()
6050{
6051
6052   f ("x");
6053
6054  ;
6055  return 0;
6056}
6057_ACEOF
6058if ac_fn_c_try_compile "$LINENO"; then :
6059  ac_cv_c_unused_attribute="yes"
6060else
6061  ac_cv_c_unused_attribute="no"
6062fi
6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064
6065fi
6066
6067
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6071$as_echo "$ac_cv_c_unused_attribute" >&6; }
6072if test $ac_cv_c_unused_attribute = yes; then
6073
6074$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6075
6076fi
6077
6078
6079
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6082$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6083if ${ac_cv_c_weak_attribute+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  ac_cv_c_weak_attribute=no
6087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089 #include <stdio.h>
6090__attribute__((weak)) void f(int x) { printf("%d", x); }
6091
6092int
6093main ()
6094{
6095
6096   f(1);
6097
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102if ac_fn_c_try_compile "$LINENO"; then :
6103  ac_cv_c_weak_attribute="yes"
6104else
6105  ac_cv_c_weak_attribute="no"
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108
6109fi
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6113$as_echo "$ac_cv_c_weak_attribute" >&6; }
6114if test $ac_cv_c_weak_attribute = yes; then
6115
6116$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6117
6118
6119$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6120
6121fi
6122
6123
6124
6125
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6127$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6128if ${ac_cv_c_noreturn_attribute+:} false; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  ac_cv_c_noreturn_attribute=no
6132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134 #include <stdio.h>
6135__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6136
6137int
6138main ()
6139{
6140
6141   f(1);
6142
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147if ac_fn_c_try_compile "$LINENO"; then :
6148  ac_cv_c_noreturn_attribute="yes"
6149else
6150  ac_cv_c_noreturn_attribute="no"
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153
6154fi
6155
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6158$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6159if test $ac_cv_c_noreturn_attribute = yes; then
6160
6161$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6162
6163
6164$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6165
6166fi
6167
6168
6169if test "$srcdir" != "."; then
6170	CPPFLAGS="$CPPFLAGS -I$srcdir"
6171fi
6172
6173
6174
6175
6176
6177for ac_prog in flex lex
6178do
6179  # Extract the first word of "$ac_prog", so it can be a program name with args.
6180set dummy $ac_prog; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if ${ac_cv_prog_LEX+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$LEX"; then
6187  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196    ac_cv_prog_LEX="$ac_prog"
6197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201  done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206LEX=$ac_cv_prog_LEX
6207if test -n "$LEX"; then
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6209$as_echo "$LEX" >&6; }
6210else
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216  test -n "$LEX" && break
6217done
6218test -n "$LEX" || LEX=":"
6219
6220if test "x$LEX" != "x:"; then
6221  cat >conftest.l <<_ACEOF
6222%%
6223a { ECHO; }
6224b { REJECT; }
6225c { yymore (); }
6226d { yyless (1); }
6227e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6228    yyless ((input () != 0)); }
6229f { unput (yytext[0]); }
6230. { BEGIN INITIAL; }
6231%%
6232#ifdef YYTEXT_POINTER
6233extern char *yytext;
6234#endif
6235int
6236main (void)
6237{
6238  return ! yylex () + ! yywrap ();
6239}
6240_ACEOF
6241{ { ac_try="$LEX conftest.l"
6242case "(($ac_try" in
6243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244  *) ac_try_echo=$ac_try;;
6245esac
6246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6247$as_echo "$ac_try_echo"; } >&5
6248  (eval "$LEX conftest.l") 2>&5
6249  ac_status=$?
6250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251  test $ac_status = 0; }
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6253$as_echo_n "checking lex output file root... " >&6; }
6254if ${ac_cv_prog_lex_root+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257
6258if test -f lex.yy.c; then
6259  ac_cv_prog_lex_root=lex.yy
6260elif test -f lexyy.c; then
6261  ac_cv_prog_lex_root=lexyy
6262else
6263  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6264fi
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6267$as_echo "$ac_cv_prog_lex_root" >&6; }
6268LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6269
6270if test -z "${LEXLIB+set}"; then
6271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6272$as_echo_n "checking lex library... " >&6; }
6273if ${ac_cv_lib_lex+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276
6277    ac_save_LIBS=$LIBS
6278    ac_cv_lib_lex='none needed'
6279    for ac_lib in '' -lfl -ll; do
6280      LIBS="$ac_lib $ac_save_LIBS"
6281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283`cat $LEX_OUTPUT_ROOT.c`
6284_ACEOF
6285if ac_fn_c_try_link "$LINENO"; then :
6286  ac_cv_lib_lex=$ac_lib
6287fi
6288rm -f core conftest.err conftest.$ac_objext \
6289    conftest$ac_exeext conftest.$ac_ext
6290      test "$ac_cv_lib_lex" != 'none needed' && break
6291    done
6292    LIBS=$ac_save_LIBS
6293
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6296$as_echo "$ac_cv_lib_lex" >&6; }
6297  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6298fi
6299
6300
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6302$as_echo_n "checking whether yytext is a pointer... " >&6; }
6303if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  # POSIX says lex can declare yytext either as a pointer or an array; the
6307# default is implementation-dependent.  Figure out which it is, since
6308# not all implementations provide the %pointer and %array declarations.
6309ac_cv_prog_lex_yytext_pointer=no
6310ac_save_LIBS=$LIBS
6311LIBS="$LEXLIB $ac_save_LIBS"
6312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314
6315  #define YYTEXT_POINTER 1
6316`cat $LEX_OUTPUT_ROOT.c`
6317_ACEOF
6318if ac_fn_c_try_link "$LINENO"; then :
6319  ac_cv_prog_lex_yytext_pointer=yes
6320fi
6321rm -f core conftest.err conftest.$ac_objext \
6322    conftest$ac_exeext conftest.$ac_ext
6323LIBS=$ac_save_LIBS
6324
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6327$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6328if test $ac_cv_prog_lex_yytext_pointer = yes; then
6329
6330$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6331
6332fi
6333rm -f conftest.l $LEX_OUTPUT_ROOT.c
6334
6335fi
6336if test "$LEX" != "" -a "$LEX" != ":"; then
6337
6338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6339$as_echo_n "checking for yylex_destroy... " >&6; }
6340	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6341
6342$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6343
6344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345$as_echo "yes" >&6; }
6346	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; };
6348		LEX=":"
6349	fi
6350
6351fi
6352if test "$LEX" != "" -a "$LEX" != ":"; then
6353
6354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6355$as_echo_n "checking for lex %option... " >&6; }
6356	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6357%option nounput
6358%%
6359EOF
6360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6361$as_echo "yes" >&6; }
6362	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; };
6364		LEX=":"
6365	fi
6366
6367fi
6368if test "$LEX" = "" -o "$LEX" = ":"; then
6369	if test ! -f util/configlexer.c; then
6370		as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5
6371	fi
6372fi
6373for ac_prog in 'bison -y' byacc
6374do
6375  # Extract the first word of "$ac_prog", so it can be a program name with args.
6376set dummy $ac_prog; ac_word=$2
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378$as_echo_n "checking for $ac_word... " >&6; }
6379if ${ac_cv_prog_YACC+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  if test -n "$YACC"; then
6383  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  test -z "$as_dir" && as_dir=.
6390    for ac_exec_ext in '' $ac_executable_extensions; do
6391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392    ac_cv_prog_YACC="$ac_prog"
6393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394    break 2
6395  fi
6396done
6397  done
6398IFS=$as_save_IFS
6399
6400fi
6401fi
6402YACC=$ac_cv_prog_YACC
6403if test -n "$YACC"; then
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6405$as_echo "$YACC" >&6; }
6406else
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411
6412  test -n "$YACC" && break
6413done
6414test -n "$YACC" || YACC="yacc"
6415
6416if test "$YACC" = "" -o "$YACC" = ":"; then
6417	if test ! -f util/configparser.c; then
6418		as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5
6419	fi
6420fi
6421# Extract the first word of "doxygen", so it can be a program name with args.
6422set dummy doxygen; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_doxygen+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$doxygen"; then
6429  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_doxygen="doxygen"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448doxygen=$ac_cv_prog_doxygen
6449if test -n "$doxygen"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6451$as_echo "$doxygen" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458if test -n "$ac_tool_prefix"; then
6459  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6460set dummy ${ac_tool_prefix}strip; ac_word=$2
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462$as_echo_n "checking for $ac_word... " >&6; }
6463if ${ac_cv_prog_STRIP+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  if test -n "$STRIP"; then
6467  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  test -z "$as_dir" && as_dir=.
6474    for ac_exec_ext in '' $ac_executable_extensions; do
6475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478    break 2
6479  fi
6480done
6481  done
6482IFS=$as_save_IFS
6483
6484fi
6485fi
6486STRIP=$ac_cv_prog_STRIP
6487if test -n "$STRIP"; then
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6489$as_echo "$STRIP" >&6; }
6490else
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493fi
6494
6495
6496fi
6497if test -z "$ac_cv_prog_STRIP"; then
6498  ac_ct_STRIP=$STRIP
6499  # Extract the first word of "strip", so it can be a program name with args.
6500set dummy strip; ac_word=$2
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
6503if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  if test -n "$ac_ct_STRIP"; then
6507  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512  IFS=$as_save_IFS
6513  test -z "$as_dir" && as_dir=.
6514    for ac_exec_ext in '' $ac_executable_extensions; do
6515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516    ac_cv_prog_ac_ct_STRIP="strip"
6517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518    break 2
6519  fi
6520done
6521  done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6527if test -n "$ac_ct_STRIP"; then
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6529$as_echo "$ac_ct_STRIP" >&6; }
6530else
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535  if test "x$ac_ct_STRIP" = x; then
6536    STRIP=""
6537  else
6538    case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544    STRIP=$ac_ct_STRIP
6545  fi
6546else
6547  STRIP="$ac_cv_prog_STRIP"
6548fi
6549
6550ac_aux_dir=
6551for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6552  if test -f "$ac_dir/install-sh"; then
6553    ac_aux_dir=$ac_dir
6554    ac_install_sh="$ac_aux_dir/install-sh -c"
6555    break
6556  elif test -f "$ac_dir/install.sh"; then
6557    ac_aux_dir=$ac_dir
6558    ac_install_sh="$ac_aux_dir/install.sh -c"
6559    break
6560  elif test -f "$ac_dir/shtool"; then
6561    ac_aux_dir=$ac_dir
6562    ac_install_sh="$ac_aux_dir/shtool install -c"
6563    break
6564  fi
6565done
6566if test -z "$ac_aux_dir"; then
6567  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6568fi
6569
6570# These three variables are undocumented and unsupported,
6571# and are intended to be withdrawn in a future Autoconf release.
6572# They can cause serious problems if a builder's source tree is in a directory
6573# whose full name contains unusual characters.
6574ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6575ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6576ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6577
6578
6579# Make sure we can run config.sub.
6580$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6581  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6584$as_echo_n "checking build system type... " >&6; }
6585if ${ac_cv_build+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  ac_build_alias=$build_alias
6589test "x$ac_build_alias" = x &&
6590  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6591test "x$ac_build_alias" = x &&
6592  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6593ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6594  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6598$as_echo "$ac_cv_build" >&6; }
6599case $ac_cv_build in
6600*-*-*) ;;
6601*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6602esac
6603build=$ac_cv_build
6604ac_save_IFS=$IFS; IFS='-'
6605set x $ac_cv_build
6606shift
6607build_cpu=$1
6608build_vendor=$2
6609shift; shift
6610# Remember, the first character of IFS is used to create $*,
6611# except with old shells:
6612build_os=$*
6613IFS=$ac_save_IFS
6614case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6615
6616
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6618$as_echo_n "checking host system type... " >&6; }
6619if ${ac_cv_host+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if test "x$host_alias" = x; then
6623  ac_cv_host=$ac_cv_build
6624else
6625  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6626    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6627fi
6628
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6631$as_echo "$ac_cv_host" >&6; }
6632case $ac_cv_host in
6633*-*-*) ;;
6634*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6635esac
6636host=$ac_cv_host
6637ac_save_IFS=$IFS; IFS='-'
6638set x $ac_cv_host
6639shift
6640host_cpu=$1
6641host_vendor=$2
6642shift; shift
6643# Remember, the first character of IFS is used to create $*,
6644# except with old shells:
6645host_os=$*
6646IFS=$ac_save_IFS
6647case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6648
6649
6650
6651# skip these tests, we do not need them.
6652
6653
6654
6655
6656
6657
6658
6659
6660# always use ./libtool unless override from commandline (libtool=mylibtool)
6661if test -z "$libtool"; then
6662	libtool="./libtool"
6663fi
6664
6665# avoid libtool max commandline length test on systems that fork slowly.
6666
6667if echo "$host_os" | grep "sunos4" >/dev/null; then
6668	lt_cv_sys_max_cmd_len=32750;
6669fi
6670if test -n "$ac_tool_prefix"; then
6671  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6672set dummy ${ac_tool_prefix}ar; ac_word=$2
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674$as_echo_n "checking for $ac_word... " >&6; }
6675if ${ac_cv_path_AR+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  case $AR in
6679  [\\/]* | ?:[\\/]*)
6680  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6681  ;;
6682  *)
6683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695  done
6696IFS=$as_save_IFS
6697
6698  ;;
6699esac
6700fi
6701AR=$ac_cv_path_AR
6702if test -n "$AR"; then
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6704$as_echo "$AR" >&6; }
6705else
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
6708fi
6709
6710
6711fi
6712if test -z "$ac_cv_path_AR"; then
6713  ac_pt_AR=$AR
6714  # Extract the first word of "ar", so it can be a program name with args.
6715set dummy ar; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if ${ac_cv_path_ac_pt_AR+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  case $ac_pt_AR in
6722  [\\/]* | ?:[\\/]*)
6723  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6724  ;;
6725  *)
6726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741  ;;
6742esac
6743fi
6744ac_pt_AR=$ac_cv_path_ac_pt_AR
6745if test -n "$ac_pt_AR"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6747$as_echo "$ac_pt_AR" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753  if test "x$ac_pt_AR" = x; then
6754    AR="false"
6755  else
6756    case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760ac_tool_warned=yes ;;
6761esac
6762    AR=$ac_pt_AR
6763  fi
6764else
6765  AR="$ac_cv_path_AR"
6766fi
6767
6768if test $AR = false; then
6769	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6770fi
6771
6772case `pwd` in
6773  *\ * | *\	*)
6774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6775$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6776esac
6777
6778
6779
6780macro_version='2.4.6'
6781macro_revision='2.4.6'
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795ltmain=$ac_aux_dir/ltmain.sh
6796
6797# Backslashify metacharacters that are still active within
6798# double-quoted strings.
6799sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6800
6801# Same as above, but do not quote variable references.
6802double_quote_subst='s/\(["`\\]\)/\\\1/g'
6803
6804# Sed substitution to delay expansion of an escaped shell variable in a
6805# double_quote_subst'ed string.
6806delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6807
6808# Sed substitution to delay expansion of an escaped single quote.
6809delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6810
6811# Sed substitution to avoid accidental globbing in evaled expressions
6812no_glob_subst='s/\*/\\\*/g'
6813
6814ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6815ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6816ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6819$as_echo_n "checking how to print strings... " >&6; }
6820# Test print first, because it will be a builtin if present.
6821if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6822   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6823  ECHO='print -r --'
6824elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6825  ECHO='printf %s\n'
6826else
6827  # Use this function as a fallback that always works.
6828  func_fallback_echo ()
6829  {
6830    eval 'cat <<_LTECHO_EOF
6831$1
6832_LTECHO_EOF'
6833  }
6834  ECHO='func_fallback_echo'
6835fi
6836
6837# func_echo_all arg...
6838# Invoke $ECHO with all args, space-separated.
6839func_echo_all ()
6840{
6841    $ECHO ""
6842}
6843
6844case $ECHO in
6845  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6846$as_echo "printf" >&6; } ;;
6847  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6848$as_echo "print -r" >&6; } ;;
6849  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6850$as_echo "cat" >&6; } ;;
6851esac
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6867$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6868if ${ac_cv_path_SED+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6872     for ac_i in 1 2 3 4 5 6 7; do
6873       ac_script="$ac_script$as_nl$ac_script"
6874     done
6875     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6876     { ac_script=; unset ac_script;}
6877     if test -z "$SED"; then
6878  ac_path_SED_found=false
6879  # Loop through the user's path and test for each of PROGNAME-LIST
6880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885    for ac_prog in sed gsed; do
6886    for ac_exec_ext in '' $ac_executable_extensions; do
6887      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6888      as_fn_executable_p "$ac_path_SED" || continue
6889# Check for GNU ac_path_SED and select it if it is found.
6890  # Check for GNU $ac_path_SED
6891case `"$ac_path_SED" --version 2>&1` in
6892*GNU*)
6893  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6894*)
6895  ac_count=0
6896  $as_echo_n 0123456789 >"conftest.in"
6897  while :
6898  do
6899    cat "conftest.in" "conftest.in" >"conftest.tmp"
6900    mv "conftest.tmp" "conftest.in"
6901    cp "conftest.in" "conftest.nl"
6902    $as_echo '' >> "conftest.nl"
6903    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6905    as_fn_arith $ac_count + 1 && ac_count=$as_val
6906    if test $ac_count -gt ${ac_path_SED_max-0}; then
6907      # Best one so far, save it but keep looking for a better one
6908      ac_cv_path_SED="$ac_path_SED"
6909      ac_path_SED_max=$ac_count
6910    fi
6911    # 10*(2^10) chars as input seems more than enough
6912    test $ac_count -gt 10 && break
6913  done
6914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6915esac
6916
6917      $ac_path_SED_found && break 3
6918    done
6919  done
6920  done
6921IFS=$as_save_IFS
6922  if test -z "$ac_cv_path_SED"; then
6923    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6924  fi
6925else
6926  ac_cv_path_SED=$SED
6927fi
6928
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6931$as_echo "$ac_cv_path_SED" >&6; }
6932 SED="$ac_cv_path_SED"
6933  rm -f conftest.sed
6934
6935test -z "$SED" && SED=sed
6936Xsed="$SED -e 1s/^X//"
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6949$as_echo_n "checking for fgrep... " >&6; }
6950if ${ac_cv_path_FGREP+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6954   then ac_cv_path_FGREP="$GREP -F"
6955   else
6956     if test -z "$FGREP"; then
6957  ac_path_FGREP_found=false
6958  # Loop through the user's path and test for each of PROGNAME-LIST
6959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964    for ac_prog in fgrep; do
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6967      as_fn_executable_p "$ac_path_FGREP" || continue
6968# Check for GNU ac_path_FGREP and select it if it is found.
6969  # Check for GNU $ac_path_FGREP
6970case `"$ac_path_FGREP" --version 2>&1` in
6971*GNU*)
6972  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6973*)
6974  ac_count=0
6975  $as_echo_n 0123456789 >"conftest.in"
6976  while :
6977  do
6978    cat "conftest.in" "conftest.in" >"conftest.tmp"
6979    mv "conftest.tmp" "conftest.in"
6980    cp "conftest.in" "conftest.nl"
6981    $as_echo 'FGREP' >> "conftest.nl"
6982    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6984    as_fn_arith $ac_count + 1 && ac_count=$as_val
6985    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6986      # Best one so far, save it but keep looking for a better one
6987      ac_cv_path_FGREP="$ac_path_FGREP"
6988      ac_path_FGREP_max=$ac_count
6989    fi
6990    # 10*(2^10) chars as input seems more than enough
6991    test $ac_count -gt 10 && break
6992  done
6993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6994esac
6995
6996      $ac_path_FGREP_found && break 3
6997    done
6998  done
6999  done
7000IFS=$as_save_IFS
7001  if test -z "$ac_cv_path_FGREP"; then
7002    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7003  fi
7004else
7005  ac_cv_path_FGREP=$FGREP
7006fi
7007
7008   fi
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7011$as_echo "$ac_cv_path_FGREP" >&6; }
7012 FGREP="$ac_cv_path_FGREP"
7013
7014
7015test -z "$GREP" && GREP=grep
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035# Check whether --with-gnu-ld was given.
7036if test "${with_gnu_ld+set}" = set; then :
7037  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7038else
7039  with_gnu_ld=no
7040fi
7041
7042ac_prog=ld
7043if test yes = "$GCC"; then
7044  # Check if gcc -print-prog-name=ld gives a path.
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7046$as_echo_n "checking for ld used by $CC... " >&6; }
7047  case $host in
7048  *-*-mingw*)
7049    # gcc leaves a trailing carriage return, which upsets mingw
7050    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7051  *)
7052    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7053  esac
7054  case $ac_prog in
7055    # Accept absolute paths.
7056    [\\/]* | ?:[\\/]*)
7057      re_direlt='/[^/][^/]*/\.\./'
7058      # Canonicalize the pathname of ld
7059      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7060      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7061	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7062      done
7063      test -z "$LD" && LD=$ac_prog
7064      ;;
7065  "")
7066    # If it fails, then pretend we aren't using GCC.
7067    ac_prog=ld
7068    ;;
7069  *)
7070    # If it is relative, then search for the first ld in PATH.
7071    with_gnu_ld=unknown
7072    ;;
7073  esac
7074elif test yes = "$with_gnu_ld"; then
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7076$as_echo_n "checking for GNU ld... " >&6; }
7077else
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7079$as_echo_n "checking for non-GNU ld... " >&6; }
7080fi
7081if ${lt_cv_path_LD+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -z "$LD"; then
7085  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7086  for ac_dir in $PATH; do
7087    IFS=$lt_save_ifs
7088    test -z "$ac_dir" && ac_dir=.
7089    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7090      lt_cv_path_LD=$ac_dir/$ac_prog
7091      # Check to see if the program is GNU ld.  I'd rather use --version,
7092      # but apparently some variants of GNU ld only accept -v.
7093      # Break only if it was the GNU/non-GNU ld that we prefer.
7094      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7095      *GNU* | *'with BFD'*)
7096	test no != "$with_gnu_ld" && break
7097	;;
7098      *)
7099	test yes != "$with_gnu_ld" && break
7100	;;
7101      esac
7102    fi
7103  done
7104  IFS=$lt_save_ifs
7105else
7106  lt_cv_path_LD=$LD # Let the user override the test with a path.
7107fi
7108fi
7109
7110LD=$lt_cv_path_LD
7111if test -n "$LD"; then
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7113$as_echo "$LD" >&6; }
7114else
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
7118test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7120$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7121if ${lt_cv_prog_gnu_ld+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7125case `$LD -v 2>&1 </dev/null` in
7126*GNU* | *'with BFD'*)
7127  lt_cv_prog_gnu_ld=yes
7128  ;;
7129*)
7130  lt_cv_prog_gnu_ld=no
7131  ;;
7132esac
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7135$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7136with_gnu_ld=$lt_cv_prog_gnu_ld
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7147$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7148if ${lt_cv_path_NM+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  if test -n "$NM"; then
7152  # Let the user override the test.
7153  lt_cv_path_NM=$NM
7154else
7155  lt_nm_to_check=${ac_tool_prefix}nm
7156  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7157    lt_nm_to_check="$lt_nm_to_check nm"
7158  fi
7159  for lt_tmp_nm in $lt_nm_to_check; do
7160    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7161    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7162      IFS=$lt_save_ifs
7163      test -z "$ac_dir" && ac_dir=.
7164      tmp_nm=$ac_dir/$lt_tmp_nm
7165      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7166	# Check to see if the nm accepts a BSD-compat flag.
7167	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7168	#   nm: unknown option "B" ignored
7169	# Tru64's nm complains that /dev/null is an invalid object file
7170	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7171	case $build_os in
7172	mingw*) lt_bad_file=conftest.nm/nofile ;;
7173	*) lt_bad_file=/dev/null ;;
7174	esac
7175	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7176	*$lt_bad_file* | *'Invalid file or object type'*)
7177	  lt_cv_path_NM="$tmp_nm -B"
7178	  break 2
7179	  ;;
7180	*)
7181	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7182	  */dev/null*)
7183	    lt_cv_path_NM="$tmp_nm -p"
7184	    break 2
7185	    ;;
7186	  *)
7187	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7188	    continue # so that we can try to find one that supports BSD flags
7189	    ;;
7190	  esac
7191	  ;;
7192	esac
7193      fi
7194    done
7195    IFS=$lt_save_ifs
7196  done
7197  : ${lt_cv_path_NM=no}
7198fi
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7201$as_echo "$lt_cv_path_NM" >&6; }
7202if test no != "$lt_cv_path_NM"; then
7203  NM=$lt_cv_path_NM
7204else
7205  # Didn't find any BSD compatible name lister, look for dumpbin.
7206  if test -n "$DUMPBIN"; then :
7207    # Let the user override the test.
7208  else
7209    if test -n "$ac_tool_prefix"; then
7210  for ac_prog in dumpbin "link -dump"
7211  do
7212    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7213set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
7216if ${ac_cv_prog_DUMPBIN+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  if test -n "$DUMPBIN"; then
7220  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227    for ac_exec_ext in '' $ac_executable_extensions; do
7228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237fi
7238fi
7239DUMPBIN=$ac_cv_prog_DUMPBIN
7240if test -n "$DUMPBIN"; then
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7242$as_echo "$DUMPBIN" >&6; }
7243else
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248
7249    test -n "$DUMPBIN" && break
7250  done
7251fi
7252if test -z "$DUMPBIN"; then
7253  ac_ct_DUMPBIN=$DUMPBIN
7254  for ac_prog in dumpbin "link -dump"
7255do
7256  # Extract the first word of "$ac_prog", so it can be a program name with args.
7257set dummy $ac_prog; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$ac_ct_DUMPBIN"; then
7264  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7284if test -n "$ac_ct_DUMPBIN"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7286$as_echo "$ac_ct_DUMPBIN" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293  test -n "$ac_ct_DUMPBIN" && break
7294done
7295
7296  if test "x$ac_ct_DUMPBIN" = x; then
7297    DUMPBIN=":"
7298  else
7299    case $cross_compiling:$ac_tool_warned in
7300yes:)
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303ac_tool_warned=yes ;;
7304esac
7305    DUMPBIN=$ac_ct_DUMPBIN
7306  fi
7307fi
7308
7309    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7310    *COFF*)
7311      DUMPBIN="$DUMPBIN -symbols -headers"
7312      ;;
7313    *)
7314      DUMPBIN=:
7315      ;;
7316    esac
7317  fi
7318
7319  if test : != "$DUMPBIN"; then
7320    NM=$DUMPBIN
7321  fi
7322fi
7323test -z "$NM" && NM=nm
7324
7325
7326
7327
7328
7329
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7331$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7332if ${lt_cv_nm_interface+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  lt_cv_nm_interface="BSD nm"
7336  echo "int some_variable = 0;" > conftest.$ac_ext
7337  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7338  (eval "$ac_compile" 2>conftest.err)
7339  cat conftest.err >&5
7340  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7341  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7342  cat conftest.err >&5
7343  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7344  cat conftest.out >&5
7345  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7346    lt_cv_nm_interface="MS dumpbin"
7347  fi
7348  rm -f conftest*
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7351$as_echo "$lt_cv_nm_interface" >&6; }
7352
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7354$as_echo_n "checking whether ln -s works... " >&6; }
7355LN_S=$as_ln_s
7356if test "$LN_S" = "ln -s"; then
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358$as_echo "yes" >&6; }
7359else
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7361$as_echo "no, using $LN_S" >&6; }
7362fi
7363
7364# find the maximum length of command line arguments
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7366$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7367if ${lt_cv_sys_max_cmd_len+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370    i=0
7371  teststring=ABCD
7372
7373  case $build_os in
7374  msdosdjgpp*)
7375    # On DJGPP, this test can blow up pretty badly due to problems in libc
7376    # (any single argument exceeding 2000 bytes causes a buffer overrun
7377    # during glob expansion).  Even if it were fixed, the result of this
7378    # check would be larger than it should be.
7379    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7380    ;;
7381
7382  gnu*)
7383    # Under GNU Hurd, this test is not required because there is
7384    # no limit to the length of command line arguments.
7385    # Libtool will interpret -1 as no limit whatsoever
7386    lt_cv_sys_max_cmd_len=-1;
7387    ;;
7388
7389  cygwin* | mingw* | cegcc*)
7390    # On Win9x/ME, this test blows up -- it succeeds, but takes
7391    # about 5 minutes as the teststring grows exponentially.
7392    # Worse, since 9x/ME are not pre-emptively multitasking,
7393    # you end up with a "frozen" computer, even though with patience
7394    # the test eventually succeeds (with a max line length of 256k).
7395    # Instead, let's just punt: use the minimum linelength reported by
7396    # all of the supported platforms: 8192 (on NT/2K/XP).
7397    lt_cv_sys_max_cmd_len=8192;
7398    ;;
7399
7400  mint*)
7401    # On MiNT this can take a long time and run out of memory.
7402    lt_cv_sys_max_cmd_len=8192;
7403    ;;
7404
7405  amigaos*)
7406    # On AmigaOS with pdksh, this test takes hours, literally.
7407    # So we just punt and use a minimum line length of 8192.
7408    lt_cv_sys_max_cmd_len=8192;
7409    ;;
7410
7411  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7412    # This has been around since 386BSD, at least.  Likely further.
7413    if test -x /sbin/sysctl; then
7414      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7415    elif test -x /usr/sbin/sysctl; then
7416      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7417    else
7418      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7419    fi
7420    # And add a safety zone
7421    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7422    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7423    ;;
7424
7425  interix*)
7426    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7427    lt_cv_sys_max_cmd_len=196608
7428    ;;
7429
7430  os2*)
7431    # The test takes a long time on OS/2.
7432    lt_cv_sys_max_cmd_len=8192
7433    ;;
7434
7435  osf*)
7436    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7437    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7438    # nice to cause kernel panics so lets avoid the loop below.
7439    # First set a reasonable default.
7440    lt_cv_sys_max_cmd_len=16384
7441    #
7442    if test -x /sbin/sysconfig; then
7443      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7444        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7445      esac
7446    fi
7447    ;;
7448  sco3.2v5*)
7449    lt_cv_sys_max_cmd_len=102400
7450    ;;
7451  sysv5* | sco5v6* | sysv4.2uw2*)
7452    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7453    if test -n "$kargmax"; then
7454      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7455    else
7456      lt_cv_sys_max_cmd_len=32768
7457    fi
7458    ;;
7459  *)
7460    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7461    if test -n "$lt_cv_sys_max_cmd_len" && \
7462       test undefined != "$lt_cv_sys_max_cmd_len"; then
7463      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7464      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7465    else
7466      # Make teststring a little bigger before we do anything with it.
7467      # a 1K string should be a reasonable start.
7468      for i in 1 2 3 4 5 6 7 8; do
7469        teststring=$teststring$teststring
7470      done
7471      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7472      # If test is not a shell built-in, we'll probably end up computing a
7473      # maximum length that is only half of the actual maximum length, but
7474      # we can't tell.
7475      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7476	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7477	      test 17 != "$i" # 1/2 MB should be enough
7478      do
7479        i=`expr $i + 1`
7480        teststring=$teststring$teststring
7481      done
7482      # Only check the string length outside the loop.
7483      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7484      teststring=
7485      # Add a significant safety factor because C++ compilers can tack on
7486      # massive amounts of additional arguments before passing them to the
7487      # linker.  It appears as though 1/2 is a usable value.
7488      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7489    fi
7490    ;;
7491  esac
7492
7493fi
7494
7495if test -n "$lt_cv_sys_max_cmd_len"; then
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7497$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7498else
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7500$as_echo "none" >&6; }
7501fi
7502max_cmd_len=$lt_cv_sys_max_cmd_len
7503
7504
7505
7506
7507
7508
7509: ${CP="cp -f"}
7510: ${MV="mv -f"}
7511: ${RM="rm -f"}
7512
7513if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7514  lt_unset=unset
7515else
7516  lt_unset=false
7517fi
7518
7519
7520
7521
7522
7523# test EBCDIC or ASCII
7524case `echo X|tr X '\101'` in
7525 A) # ASCII based system
7526    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7527  lt_SP2NL='tr \040 \012'
7528  lt_NL2SP='tr \015\012 \040\040'
7529  ;;
7530 *) # EBCDIC based system
7531  lt_SP2NL='tr \100 \n'
7532  lt_NL2SP='tr \r\n \100\100'
7533  ;;
7534esac
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7545$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7546if ${lt_cv_to_host_file_cmd+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  case $host in
7550  *-*-mingw* )
7551    case $build in
7552      *-*-mingw* ) # actually msys
7553        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7554        ;;
7555      *-*-cygwin* )
7556        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7557        ;;
7558      * ) # otherwise, assume *nix
7559        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7560        ;;
7561    esac
7562    ;;
7563  *-*-cygwin* )
7564    case $build in
7565      *-*-mingw* ) # actually msys
7566        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7567        ;;
7568      *-*-cygwin* )
7569        lt_cv_to_host_file_cmd=func_convert_file_noop
7570        ;;
7571      * ) # otherwise, assume *nix
7572        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7573        ;;
7574    esac
7575    ;;
7576  * ) # unhandled hosts (and "normal" native builds)
7577    lt_cv_to_host_file_cmd=func_convert_file_noop
7578    ;;
7579esac
7580
7581fi
7582
7583to_host_file_cmd=$lt_cv_to_host_file_cmd
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7585$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7586
7587
7588
7589
7590
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7592$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7593if ${lt_cv_to_tool_file_cmd+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  #assume ordinary cross tools, or native build.
7597lt_cv_to_tool_file_cmd=func_convert_file_noop
7598case $host in
7599  *-*-mingw* )
7600    case $build in
7601      *-*-mingw* ) # actually msys
7602        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7603        ;;
7604    esac
7605    ;;
7606esac
7607
7608fi
7609
7610to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7612$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7613
7614
7615
7616
7617
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7619$as_echo_n "checking for $LD option to reload object files... " >&6; }
7620if ${lt_cv_ld_reload_flag+:} false; then :
7621  $as_echo_n "(cached) " >&6
7622else
7623  lt_cv_ld_reload_flag='-r'
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7626$as_echo "$lt_cv_ld_reload_flag" >&6; }
7627reload_flag=$lt_cv_ld_reload_flag
7628case $reload_flag in
7629"" | " "*) ;;
7630*) reload_flag=" $reload_flag" ;;
7631esac
7632reload_cmds='$LD$reload_flag -o $output$reload_objs'
7633case $host_os in
7634  cygwin* | mingw* | pw32* | cegcc*)
7635    if test yes != "$GCC"; then
7636      reload_cmds=false
7637    fi
7638    ;;
7639  darwin*)
7640    if test yes = "$GCC"; then
7641      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7642    else
7643      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7644    fi
7645    ;;
7646esac
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656if test -n "$ac_tool_prefix"; then
7657  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7658set dummy ${ac_tool_prefix}objdump; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if ${ac_cv_prog_OBJDUMP+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  if test -n "$OBJDUMP"; then
7665  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684OBJDUMP=$ac_cv_prog_OBJDUMP
7685if test -n "$OBJDUMP"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7687$as_echo "$OBJDUMP" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693
7694fi
7695if test -z "$ac_cv_prog_OBJDUMP"; then
7696  ac_ct_OBJDUMP=$OBJDUMP
7697  # Extract the first word of "objdump", so it can be a program name with args.
7698set dummy objdump; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  if test -n "$ac_ct_OBJDUMP"; then
7705  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7725if test -n "$ac_ct_OBJDUMP"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7727$as_echo "$ac_ct_OBJDUMP" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733  if test "x$ac_ct_OBJDUMP" = x; then
7734    OBJDUMP="false"
7735  else
7736    case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740ac_tool_warned=yes ;;
7741esac
7742    OBJDUMP=$ac_ct_OBJDUMP
7743  fi
7744else
7745  OBJDUMP="$ac_cv_prog_OBJDUMP"
7746fi
7747
7748test -z "$OBJDUMP" && OBJDUMP=objdump
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7759$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7760if ${lt_cv_deplibs_check_method+:} false; then :
7761  $as_echo_n "(cached) " >&6
7762else
7763  lt_cv_file_magic_cmd='$MAGIC_CMD'
7764lt_cv_file_magic_test_file=
7765lt_cv_deplibs_check_method='unknown'
7766# Need to set the preceding variable on all platforms that support
7767# interlibrary dependencies.
7768# 'none' -- dependencies not supported.
7769# 'unknown' -- same as none, but documents that we really don't know.
7770# 'pass_all' -- all dependencies passed with no checks.
7771# 'test_compile' -- check by making test program.
7772# 'file_magic [[regex]]' -- check by looking for files in library path
7773# that responds to the $file_magic_cmd with a given extended regex.
7774# If you have 'file' or equivalent on your system and you're not sure
7775# whether 'pass_all' will *always* work, you probably want this one.
7776
7777case $host_os in
7778aix[4-9]*)
7779  lt_cv_deplibs_check_method=pass_all
7780  ;;
7781
7782beos*)
7783  lt_cv_deplibs_check_method=pass_all
7784  ;;
7785
7786bsdi[45]*)
7787  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7788  lt_cv_file_magic_cmd='/usr/bin/file -L'
7789  lt_cv_file_magic_test_file=/shlib/libc.so
7790  ;;
7791
7792cygwin*)
7793  # func_win32_libid is a shell function defined in ltmain.sh
7794  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7795  lt_cv_file_magic_cmd='func_win32_libid'
7796  ;;
7797
7798mingw* | pw32*)
7799  # Base MSYS/MinGW do not provide the 'file' command needed by
7800  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7801  # unless we find 'file', for example because we are cross-compiling.
7802  if ( file / ) >/dev/null 2>&1; then
7803    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7804    lt_cv_file_magic_cmd='func_win32_libid'
7805  else
7806    # Keep this pattern in sync with the one in func_win32_libid.
7807    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7808    lt_cv_file_magic_cmd='$OBJDUMP -f'
7809  fi
7810  ;;
7811
7812cegcc*)
7813  # use the weaker test based on 'objdump'. See mingw*.
7814  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7815  lt_cv_file_magic_cmd='$OBJDUMP -f'
7816  ;;
7817
7818darwin* | rhapsody*)
7819  lt_cv_deplibs_check_method=pass_all
7820  ;;
7821
7822freebsd* | dragonfly*)
7823  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7824    case $host_cpu in
7825    i*86 )
7826      # Not sure whether the presence of OpenBSD here was a mistake.
7827      # Let's accept both of them until this is cleared up.
7828      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7829      lt_cv_file_magic_cmd=/usr/bin/file
7830      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7831      ;;
7832    esac
7833  else
7834    lt_cv_deplibs_check_method=pass_all
7835  fi
7836  ;;
7837
7838haiku*)
7839  lt_cv_deplibs_check_method=pass_all
7840  ;;
7841
7842hpux10.20* | hpux11*)
7843  lt_cv_file_magic_cmd=/usr/bin/file
7844  case $host_cpu in
7845  ia64*)
7846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7847    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7848    ;;
7849  hppa*64*)
7850    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]'
7851    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7852    ;;
7853  *)
7854    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7855    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7856    ;;
7857  esac
7858  ;;
7859
7860interix[3-9]*)
7861  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7862  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7863  ;;
7864
7865irix5* | irix6* | nonstopux*)
7866  case $LD in
7867  *-32|*"-32 ") libmagic=32-bit;;
7868  *-n32|*"-n32 ") libmagic=N32;;
7869  *-64|*"-64 ") libmagic=64-bit;;
7870  *) libmagic=never-match;;
7871  esac
7872  lt_cv_deplibs_check_method=pass_all
7873  ;;
7874
7875# This must be glibc/ELF.
7876linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7877  lt_cv_deplibs_check_method=pass_all
7878  ;;
7879
7880netbsd*)
7881  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7883  else
7884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7885  fi
7886  ;;
7887
7888newos6*)
7889  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7890  lt_cv_file_magic_cmd=/usr/bin/file
7891  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7892  ;;
7893
7894*nto* | *qnx*)
7895  lt_cv_deplibs_check_method=pass_all
7896  ;;
7897
7898openbsd* | bitrig*)
7899  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7901  else
7902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7903  fi
7904  ;;
7905
7906osf3* | osf4* | osf5*)
7907  lt_cv_deplibs_check_method=pass_all
7908  ;;
7909
7910rdos*)
7911  lt_cv_deplibs_check_method=pass_all
7912  ;;
7913
7914solaris*)
7915  lt_cv_deplibs_check_method=pass_all
7916  ;;
7917
7918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7919  lt_cv_deplibs_check_method=pass_all
7920  ;;
7921
7922sysv4 | sysv4.3*)
7923  case $host_vendor in
7924  motorola)
7925    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]'
7926    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7927    ;;
7928  ncr)
7929    lt_cv_deplibs_check_method=pass_all
7930    ;;
7931  sequent)
7932    lt_cv_file_magic_cmd='/bin/file'
7933    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7934    ;;
7935  sni)
7936    lt_cv_file_magic_cmd='/bin/file'
7937    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7938    lt_cv_file_magic_test_file=/lib/libc.so
7939    ;;
7940  siemens)
7941    lt_cv_deplibs_check_method=pass_all
7942    ;;
7943  pc)
7944    lt_cv_deplibs_check_method=pass_all
7945    ;;
7946  esac
7947  ;;
7948
7949tpf*)
7950  lt_cv_deplibs_check_method=pass_all
7951  ;;
7952os2*)
7953  lt_cv_deplibs_check_method=pass_all
7954  ;;
7955esac
7956
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7959$as_echo "$lt_cv_deplibs_check_method" >&6; }
7960
7961file_magic_glob=
7962want_nocaseglob=no
7963if test "$build" = "$host"; then
7964  case $host_os in
7965  mingw* | pw32*)
7966    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7967      want_nocaseglob=yes
7968    else
7969      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7970    fi
7971    ;;
7972  esac
7973fi
7974
7975file_magic_cmd=$lt_cv_file_magic_cmd
7976deplibs_check_method=$lt_cv_deplibs_check_method
7977test -z "$deplibs_check_method" && deplibs_check_method=unknown
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000if test -n "$ac_tool_prefix"; then
8001  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8002set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004$as_echo_n "checking for $ac_word... " >&6; }
8005if ${ac_cv_prog_DLLTOOL+:} false; then :
8006  $as_echo_n "(cached) " >&6
8007else
8008  if test -n "$DLLTOOL"; then
8009  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8010else
8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014  IFS=$as_save_IFS
8015  test -z "$as_dir" && as_dir=.
8016    for ac_exec_ext in '' $ac_executable_extensions; do
8017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020    break 2
8021  fi
8022done
8023  done
8024IFS=$as_save_IFS
8025
8026fi
8027fi
8028DLLTOOL=$ac_cv_prog_DLLTOOL
8029if test -n "$DLLTOOL"; then
8030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8031$as_echo "$DLLTOOL" >&6; }
8032else
8033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
8035fi
8036
8037
8038fi
8039if test -z "$ac_cv_prog_DLLTOOL"; then
8040  ac_ct_DLLTOOL=$DLLTOOL
8041  # Extract the first word of "dlltool", so it can be a program name with args.
8042set dummy dlltool; ac_word=$2
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  if test -n "$ac_ct_DLLTOOL"; then
8049  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054  IFS=$as_save_IFS
8055  test -z "$as_dir" && as_dir=.
8056    for ac_exec_ext in '' $ac_executable_extensions; do
8057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060    break 2
8061  fi
8062done
8063  done
8064IFS=$as_save_IFS
8065
8066fi
8067fi
8068ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8069if test -n "$ac_ct_DLLTOOL"; then
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8071$as_echo "$ac_ct_DLLTOOL" >&6; }
8072else
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
8075fi
8076
8077  if test "x$ac_ct_DLLTOOL" = x; then
8078    DLLTOOL="false"
8079  else
8080    case $cross_compiling:$ac_tool_warned in
8081yes:)
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084ac_tool_warned=yes ;;
8085esac
8086    DLLTOOL=$ac_ct_DLLTOOL
8087  fi
8088else
8089  DLLTOOL="$ac_cv_prog_DLLTOOL"
8090fi
8091
8092test -z "$DLLTOOL" && DLLTOOL=dlltool
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8104$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8105if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  lt_cv_sharedlib_from_linklib_cmd='unknown'
8109
8110case $host_os in
8111cygwin* | mingw* | pw32* | cegcc*)
8112  # two different shell functions defined in ltmain.sh;
8113  # decide which one to use based on capabilities of $DLLTOOL
8114  case `$DLLTOOL --help 2>&1` in
8115  *--identify-strict*)
8116    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8117    ;;
8118  *)
8119    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8120    ;;
8121  esac
8122  ;;
8123*)
8124  # fallback: assume linklib IS sharedlib
8125  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8126  ;;
8127esac
8128
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8131$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8132sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8133test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8134
8135
8136
8137
8138
8139
8140
8141if test -n "$ac_tool_prefix"; then
8142  for ac_prog in ar
8143  do
8144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147$as_echo_n "checking for $ac_word... " >&6; }
8148if ${ac_cv_prog_AR+:} false; then :
8149  $as_echo_n "(cached) " >&6
8150else
8151  if test -n "$AR"; then
8152  ac_cv_prog_AR="$AR" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157  IFS=$as_save_IFS
8158  test -z "$as_dir" && as_dir=.
8159    for ac_exec_ext in '' $ac_executable_extensions; do
8160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163    break 2
8164  fi
8165done
8166  done
8167IFS=$as_save_IFS
8168
8169fi
8170fi
8171AR=$ac_cv_prog_AR
8172if test -n "$AR"; then
8173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8174$as_echo "$AR" >&6; }
8175else
8176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177$as_echo "no" >&6; }
8178fi
8179
8180
8181    test -n "$AR" && break
8182  done
8183fi
8184if test -z "$AR"; then
8185  ac_ct_AR=$AR
8186  for ac_prog in ar
8187do
8188  # Extract the first word of "$ac_prog", so it can be a program name with args.
8189set dummy $ac_prog; ac_word=$2
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
8192if ${ac_cv_prog_ac_ct_AR+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  if test -n "$ac_ct_AR"; then
8196  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201  IFS=$as_save_IFS
8202  test -z "$as_dir" && as_dir=.
8203    for ac_exec_ext in '' $ac_executable_extensions; do
8204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205    ac_cv_prog_ac_ct_AR="$ac_prog"
8206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207    break 2
8208  fi
8209done
8210  done
8211IFS=$as_save_IFS
8212
8213fi
8214fi
8215ac_ct_AR=$ac_cv_prog_ac_ct_AR
8216if test -n "$ac_ct_AR"; then
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8218$as_echo "$ac_ct_AR" >&6; }
8219else
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224
8225  test -n "$ac_ct_AR" && break
8226done
8227
8228  if test "x$ac_ct_AR" = x; then
8229    AR="false"
8230  else
8231    case $cross_compiling:$ac_tool_warned in
8232yes:)
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8235ac_tool_warned=yes ;;
8236esac
8237    AR=$ac_ct_AR
8238  fi
8239fi
8240
8241: ${AR=ar}
8242: ${AR_FLAGS=cru}
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8255$as_echo_n "checking for archiver @FILE support... " >&6; }
8256if ${lt_cv_ar_at_file+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  lt_cv_ar_at_file=no
8260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261/* end confdefs.h.  */
8262
8263int
8264main ()
8265{
8266
8267  ;
8268  return 0;
8269}
8270_ACEOF
8271if ac_fn_c_try_compile "$LINENO"; then :
8272  echo conftest.$ac_objext > conftest.lst
8273      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8274      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8275  (eval $lt_ar_try) 2>&5
8276  ac_status=$?
8277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278  test $ac_status = 0; }
8279      if test 0 -eq "$ac_status"; then
8280	# Ensure the archiver fails upon bogus file names.
8281	rm -f conftest.$ac_objext libconftest.a
8282	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8283  (eval $lt_ar_try) 2>&5
8284  ac_status=$?
8285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8286  test $ac_status = 0; }
8287	if test 0 -ne "$ac_status"; then
8288          lt_cv_ar_at_file=@
8289        fi
8290      fi
8291      rm -f conftest.* libconftest.a
8292
8293fi
8294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8298$as_echo "$lt_cv_ar_at_file" >&6; }
8299
8300if test no = "$lt_cv_ar_at_file"; then
8301  archiver_list_spec=
8302else
8303  archiver_list_spec=$lt_cv_ar_at_file
8304fi
8305
8306
8307
8308
8309
8310
8311
8312if test -n "$ac_tool_prefix"; then
8313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314set dummy ${ac_tool_prefix}strip; ac_word=$2
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if ${ac_cv_prog_STRIP+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  if test -n "$STRIP"; then
8321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8322else
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326  IFS=$as_save_IFS
8327  test -z "$as_dir" && as_dir=.
8328    for ac_exec_ext in '' $ac_executable_extensions; do
8329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332    break 2
8333  fi
8334done
8335  done
8336IFS=$as_save_IFS
8337
8338fi
8339fi
8340STRIP=$ac_cv_prog_STRIP
8341if test -n "$STRIP"; then
8342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8343$as_echo "$STRIP" >&6; }
8344else
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
8347fi
8348
8349
8350fi
8351if test -z "$ac_cv_prog_STRIP"; then
8352  ac_ct_STRIP=$STRIP
8353  # Extract the first word of "strip", so it can be a program name with args.
8354set dummy strip; ac_word=$2
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
8357if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  if test -n "$ac_ct_STRIP"; then
8361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366  IFS=$as_save_IFS
8367  test -z "$as_dir" && as_dir=.
8368    for ac_exec_ext in '' $ac_executable_extensions; do
8369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370    ac_cv_prog_ac_ct_STRIP="strip"
8371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372    break 2
8373  fi
8374done
8375  done
8376IFS=$as_save_IFS
8377
8378fi
8379fi
8380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381if test -n "$ac_ct_STRIP"; then
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8383$as_echo "$ac_ct_STRIP" >&6; }
8384else
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387fi
8388
8389  if test "x$ac_ct_STRIP" = x; then
8390    STRIP=":"
8391  else
8392    case $cross_compiling:$ac_tool_warned in
8393yes:)
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396ac_tool_warned=yes ;;
8397esac
8398    STRIP=$ac_ct_STRIP
8399  fi
8400else
8401  STRIP="$ac_cv_prog_STRIP"
8402fi
8403
8404test -z "$STRIP" && STRIP=:
8405
8406
8407
8408
8409
8410
8411if test -n "$ac_tool_prefix"; then
8412  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8413set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if ${ac_cv_prog_RANLIB+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  if test -n "$RANLIB"; then
8420  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425  IFS=$as_save_IFS
8426  test -z "$as_dir" && as_dir=.
8427    for ac_exec_ext in '' $ac_executable_extensions; do
8428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431    break 2
8432  fi
8433done
8434  done
8435IFS=$as_save_IFS
8436
8437fi
8438fi
8439RANLIB=$ac_cv_prog_RANLIB
8440if test -n "$RANLIB"; then
8441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8442$as_echo "$RANLIB" >&6; }
8443else
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448
8449fi
8450if test -z "$ac_cv_prog_RANLIB"; then
8451  ac_ct_RANLIB=$RANLIB
8452  # Extract the first word of "ranlib", so it can be a program name with args.
8453set dummy ranlib; ac_word=$2
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455$as_echo_n "checking for $ac_word... " >&6; }
8456if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  if test -n "$ac_ct_RANLIB"; then
8460  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8461else
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465  IFS=$as_save_IFS
8466  test -z "$as_dir" && as_dir=.
8467    for ac_exec_ext in '' $ac_executable_extensions; do
8468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469    ac_cv_prog_ac_ct_RANLIB="ranlib"
8470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471    break 2
8472  fi
8473done
8474  done
8475IFS=$as_save_IFS
8476
8477fi
8478fi
8479ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8480if test -n "$ac_ct_RANLIB"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8482$as_echo "$ac_ct_RANLIB" >&6; }
8483else
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488  if test "x$ac_ct_RANLIB" = x; then
8489    RANLIB=":"
8490  else
8491    case $cross_compiling:$ac_tool_warned in
8492yes:)
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8495ac_tool_warned=yes ;;
8496esac
8497    RANLIB=$ac_ct_RANLIB
8498  fi
8499else
8500  RANLIB="$ac_cv_prog_RANLIB"
8501fi
8502
8503test -z "$RANLIB" && RANLIB=:
8504
8505
8506
8507
8508
8509
8510# Determine commands to create old-style static archives.
8511old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8512old_postinstall_cmds='chmod 644 $oldlib'
8513old_postuninstall_cmds=
8514
8515if test -n "$RANLIB"; then
8516  case $host_os in
8517  bitrig* | openbsd*)
8518    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8519    ;;
8520  *)
8521    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8522    ;;
8523  esac
8524  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8525fi
8526
8527case $host_os in
8528  darwin*)
8529    lock_old_archive_extraction=yes ;;
8530  *)
8531    lock_old_archive_extraction=no ;;
8532esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554for ac_prog in gawk mawk nawk awk
8555do
8556  # Extract the first word of "$ac_prog", so it can be a program name with args.
8557set dummy $ac_prog; ac_word=$2
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if ${ac_cv_prog_AWK+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  if test -n "$AWK"; then
8564  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8565else
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569  IFS=$as_save_IFS
8570  test -z "$as_dir" && as_dir=.
8571    for ac_exec_ext in '' $ac_executable_extensions; do
8572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573    ac_cv_prog_AWK="$ac_prog"
8574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575    break 2
8576  fi
8577done
8578  done
8579IFS=$as_save_IFS
8580
8581fi
8582fi
8583AWK=$ac_cv_prog_AWK
8584if test -n "$AWK"; then
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8586$as_echo "$AWK" >&6; }
8587else
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593  test -n "$AWK" && break
8594done
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614# If no C compiler was specified, use CC.
8615LTCC=${LTCC-"$CC"}
8616
8617# If no C compiler flags were specified, use CFLAGS.
8618LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8619
8620# Allow CC to be a program name with arguments.
8621compiler=$CC
8622
8623
8624# Check for command to grab the raw symbol name followed by C symbol from nm.
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8626$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8627if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630
8631# These are sane defaults that work on at least a few old systems.
8632# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8633
8634# Character class describing NM global symbol codes.
8635symcode='[BCDEGRST]'
8636
8637# Regexp to match symbols that can be accessed directly from C.
8638sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8639
8640# Define system-specific variables.
8641case $host_os in
8642aix*)
8643  symcode='[BCDT]'
8644  ;;
8645cygwin* | mingw* | pw32* | cegcc*)
8646  symcode='[ABCDGISTW]'
8647  ;;
8648hpux*)
8649  if test ia64 = "$host_cpu"; then
8650    symcode='[ABCDEGRST]'
8651  fi
8652  ;;
8653irix* | nonstopux*)
8654  symcode='[BCDEGRST]'
8655  ;;
8656osf*)
8657  symcode='[BCDEGQRST]'
8658  ;;
8659solaris*)
8660  symcode='[BDRT]'
8661  ;;
8662sco3.2v5*)
8663  symcode='[DT]'
8664  ;;
8665sysv4.2uw2*)
8666  symcode='[DT]'
8667  ;;
8668sysv5* | sco5v6* | unixware* | OpenUNIX*)
8669  symcode='[ABDT]'
8670  ;;
8671sysv4)
8672  symcode='[DFNSTU]'
8673  ;;
8674esac
8675
8676# If we're using GNU nm, then use its standard symbol codes.
8677case `$NM -V 2>&1` in
8678*GNU* | *'with BFD'*)
8679  symcode='[ABCDGIRSTW]' ;;
8680esac
8681
8682if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8683  # Gets list of data symbols to import.
8684  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8685  # Adjust the below global symbol transforms to fixup imported variables.
8686  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8687  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8688  lt_c_name_lib_hook="\
8689  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8690  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8691else
8692  # Disable hooks by default.
8693  lt_cv_sys_global_symbol_to_import=
8694  lt_cdecl_hook=
8695  lt_c_name_hook=
8696  lt_c_name_lib_hook=
8697fi
8698
8699# Transform an extracted symbol line into a proper C declaration.
8700# Some systems (esp. on ia64) link data and code symbols differently,
8701# so use this general approach.
8702lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8703$lt_cdecl_hook\
8704" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8705" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8706
8707# Transform an extracted symbol line into symbol name and symbol address
8708lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8709$lt_c_name_hook\
8710" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8711" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8712
8713# Transform an extracted symbol line into symbol name with lib prefix and
8714# symbol address.
8715lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8716$lt_c_name_lib_hook\
8717" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8718" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8719" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8720
8721# Handle CRLF in mingw tool chain
8722opt_cr=
8723case $build_os in
8724mingw*)
8725  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8726  ;;
8727esac
8728
8729# Try without a prefix underscore, then with it.
8730for ac_symprfx in "" "_"; do
8731
8732  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8733  symxfrm="\\1 $ac_symprfx\\2 \\2"
8734
8735  # Write the raw and C identifiers.
8736  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8737    # Fake it for dumpbin and say T for any non-static function,
8738    # D for any global variable and I for any imported variable.
8739    # Also find C++ and __fastcall symbols from MSVC++,
8740    # which start with @ or ?.
8741    lt_cv_sys_global_symbol_pipe="$AWK '"\
8742"     {last_section=section; section=\$ 3};"\
8743"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8744"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8745"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8746"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8747"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8748"     \$ 0!~/External *\|/{next};"\
8749"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8750"     {if(hide[section]) next};"\
8751"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8752"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8753"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8754"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8755"     ' prfx=^$ac_symprfx"
8756  else
8757    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8758  fi
8759  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8760
8761  # Check to see that the pipe works correctly.
8762  pipe_works=no
8763
8764  rm -f conftest*
8765  cat > conftest.$ac_ext <<_LT_EOF
8766#ifdef __cplusplus
8767extern "C" {
8768#endif
8769char nm_test_var;
8770void nm_test_func(void);
8771void nm_test_func(void){}
8772#ifdef __cplusplus
8773}
8774#endif
8775int main(){nm_test_var='a';nm_test_func();return(0);}
8776_LT_EOF
8777
8778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8779  (eval $ac_compile) 2>&5
8780  ac_status=$?
8781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8782  test $ac_status = 0; }; then
8783    # Now try to grab the symbols.
8784    nlist=conftest.nm
8785    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8786  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8787  ac_status=$?
8788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8789  test $ac_status = 0; } && test -s "$nlist"; then
8790      # Try sorting and uniquifying the output.
8791      if sort "$nlist" | uniq > "$nlist"T; then
8792	mv -f "$nlist"T "$nlist"
8793      else
8794	rm -f "$nlist"T
8795      fi
8796
8797      # Make sure that we snagged all the symbols we need.
8798      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8799	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8800	  cat <<_LT_EOF > conftest.$ac_ext
8801/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8802#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8803/* DATA imports from DLLs on WIN32 can't be const, because runtime
8804   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8805# define LT_DLSYM_CONST
8806#elif defined __osf__
8807/* This system does not cope well with relocations in const data.  */
8808# define LT_DLSYM_CONST
8809#else
8810# define LT_DLSYM_CONST const
8811#endif
8812
8813#ifdef __cplusplus
8814extern "C" {
8815#endif
8816
8817_LT_EOF
8818	  # Now generate the symbol file.
8819	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8820
8821	  cat <<_LT_EOF >> conftest.$ac_ext
8822
8823/* The mapping between symbol names and symbols.  */
8824LT_DLSYM_CONST struct {
8825  const char *name;
8826  void       *address;
8827}
8828lt__PROGRAM__LTX_preloaded_symbols[] =
8829{
8830  { "@PROGRAM@", (void *) 0 },
8831_LT_EOF
8832	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8833	  cat <<\_LT_EOF >> conftest.$ac_ext
8834  {0, (void *) 0}
8835};
8836
8837/* This works around a problem in FreeBSD linker */
8838#ifdef FREEBSD_WORKAROUND
8839static const void *lt_preloaded_setup() {
8840  return lt__PROGRAM__LTX_preloaded_symbols;
8841}
8842#endif
8843
8844#ifdef __cplusplus
8845}
8846#endif
8847_LT_EOF
8848	  # Now try linking the two files.
8849	  mv conftest.$ac_objext conftstm.$ac_objext
8850	  lt_globsym_save_LIBS=$LIBS
8851	  lt_globsym_save_CFLAGS=$CFLAGS
8852	  LIBS=conftstm.$ac_objext
8853	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8854	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8855  (eval $ac_link) 2>&5
8856  ac_status=$?
8857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8858  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8859	    pipe_works=yes
8860	  fi
8861	  LIBS=$lt_globsym_save_LIBS
8862	  CFLAGS=$lt_globsym_save_CFLAGS
8863	else
8864	  echo "cannot find nm_test_func in $nlist" >&5
8865	fi
8866      else
8867	echo "cannot find nm_test_var in $nlist" >&5
8868      fi
8869    else
8870      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8871    fi
8872  else
8873    echo "$progname: failed program was:" >&5
8874    cat conftest.$ac_ext >&5
8875  fi
8876  rm -rf conftest* conftst*
8877
8878  # Do not use the global_symbol_pipe unless it works.
8879  if test yes = "$pipe_works"; then
8880    break
8881  else
8882    lt_cv_sys_global_symbol_pipe=
8883  fi
8884done
8885
8886fi
8887
8888if test -z "$lt_cv_sys_global_symbol_pipe"; then
8889  lt_cv_sys_global_symbol_to_cdecl=
8890fi
8891if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8893$as_echo "failed" >&6; }
8894else
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8896$as_echo "ok" >&6; }
8897fi
8898
8899# Response file support.
8900if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8901  nm_file_list_spec='@'
8902elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8903  nm_file_list_spec='@'
8904fi
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8943$as_echo_n "checking for sysroot... " >&6; }
8944
8945# Check whether --with-sysroot was given.
8946if test "${with_sysroot+set}" = set; then :
8947  withval=$with_sysroot;
8948else
8949  with_sysroot=no
8950fi
8951
8952
8953lt_sysroot=
8954case $with_sysroot in #(
8955 yes)
8956   if test yes = "$GCC"; then
8957     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8958   fi
8959   ;; #(
8960 /*)
8961   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8962   ;; #(
8963 no|'')
8964   ;; #(
8965 *)
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8967$as_echo "$with_sysroot" >&6; }
8968   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8969   ;;
8970esac
8971
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8973$as_echo "${lt_sysroot:-no}" >&6; }
8974
8975
8976
8977
8978
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8980$as_echo_n "checking for a working dd... " >&6; }
8981if ${ac_cv_path_lt_DD+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  printf 0123456789abcdef0123456789abcdef >conftest.i
8985cat conftest.i conftest.i >conftest2.i
8986: ${lt_DD:=$DD}
8987if test -z "$lt_DD"; then
8988  ac_path_lt_DD_found=false
8989  # Loop through the user's path and test for each of PROGNAME-LIST
8990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993  IFS=$as_save_IFS
8994  test -z "$as_dir" && as_dir=.
8995    for ac_prog in dd; do
8996    for ac_exec_ext in '' $ac_executable_extensions; do
8997      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8998      as_fn_executable_p "$ac_path_lt_DD" || continue
8999if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9000  cmp -s conftest.i conftest.out \
9001  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9002fi
9003      $ac_path_lt_DD_found && break 3
9004    done
9005  done
9006  done
9007IFS=$as_save_IFS
9008  if test -z "$ac_cv_path_lt_DD"; then
9009    :
9010  fi
9011else
9012  ac_cv_path_lt_DD=$lt_DD
9013fi
9014
9015rm -f conftest.i conftest2.i conftest.out
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9018$as_echo "$ac_cv_path_lt_DD" >&6; }
9019
9020
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9022$as_echo_n "checking how to truncate binary pipes... " >&6; }
9023if ${lt_cv_truncate_bin+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  printf 0123456789abcdef0123456789abcdef >conftest.i
9027cat conftest.i conftest.i >conftest2.i
9028lt_cv_truncate_bin=
9029if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9030  cmp -s conftest.i conftest.out \
9031  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9032fi
9033rm -f conftest.i conftest2.i conftest.out
9034test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9037$as_echo "$lt_cv_truncate_bin" >&6; }
9038
9039
9040
9041
9042
9043
9044
9045# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9046func_cc_basename ()
9047{
9048    for cc_temp in $*""; do
9049      case $cc_temp in
9050        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9051        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9052        \-*) ;;
9053        *) break;;
9054      esac
9055    done
9056    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9057}
9058
9059# Check whether --enable-libtool-lock was given.
9060if test "${enable_libtool_lock+set}" = set; then :
9061  enableval=$enable_libtool_lock;
9062fi
9063
9064test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9065
9066# Some flags need to be propagated to the compiler or linker for good
9067# libtool support.
9068case $host in
9069ia64-*-hpux*)
9070  # Find out what ABI is being produced by ac_compile, and set mode
9071  # options accordingly.
9072  echo 'int i;' > conftest.$ac_ext
9073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9074  (eval $ac_compile) 2>&5
9075  ac_status=$?
9076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9077  test $ac_status = 0; }; then
9078    case `/usr/bin/file conftest.$ac_objext` in
9079      *ELF-32*)
9080	HPUX_IA64_MODE=32
9081	;;
9082      *ELF-64*)
9083	HPUX_IA64_MODE=64
9084	;;
9085    esac
9086  fi
9087  rm -rf conftest*
9088  ;;
9089*-*-irix6*)
9090  # Find out what ABI is being produced by ac_compile, and set linker
9091  # options accordingly.
9092  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9094  (eval $ac_compile) 2>&5
9095  ac_status=$?
9096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097  test $ac_status = 0; }; then
9098    if test yes = "$lt_cv_prog_gnu_ld"; then
9099      case `/usr/bin/file conftest.$ac_objext` in
9100	*32-bit*)
9101	  LD="${LD-ld} -melf32bsmip"
9102	  ;;
9103	*N32*)
9104	  LD="${LD-ld} -melf32bmipn32"
9105	  ;;
9106	*64-bit*)
9107	  LD="${LD-ld} -melf64bmip"
9108	;;
9109      esac
9110    else
9111      case `/usr/bin/file conftest.$ac_objext` in
9112	*32-bit*)
9113	  LD="${LD-ld} -32"
9114	  ;;
9115	*N32*)
9116	  LD="${LD-ld} -n32"
9117	  ;;
9118	*64-bit*)
9119	  LD="${LD-ld} -64"
9120	  ;;
9121      esac
9122    fi
9123  fi
9124  rm -rf conftest*
9125  ;;
9126
9127mips64*-*linux*)
9128  # Find out what ABI is being produced by ac_compile, and set linker
9129  # options accordingly.
9130  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9131  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9132  (eval $ac_compile) 2>&5
9133  ac_status=$?
9134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9135  test $ac_status = 0; }; then
9136    emul=elf
9137    case `/usr/bin/file conftest.$ac_objext` in
9138      *32-bit*)
9139	emul="${emul}32"
9140	;;
9141      *64-bit*)
9142	emul="${emul}64"
9143	;;
9144    esac
9145    case `/usr/bin/file conftest.$ac_objext` in
9146      *MSB*)
9147	emul="${emul}btsmip"
9148	;;
9149      *LSB*)
9150	emul="${emul}ltsmip"
9151	;;
9152    esac
9153    case `/usr/bin/file conftest.$ac_objext` in
9154      *N32*)
9155	emul="${emul}n32"
9156	;;
9157    esac
9158    LD="${LD-ld} -m $emul"
9159  fi
9160  rm -rf conftest*
9161  ;;
9162
9163x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9164s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9165  # Find out what ABI is being produced by ac_compile, and set linker
9166  # options accordingly.  Note that the listed cases only cover the
9167  # situations where additional linker options are needed (such as when
9168  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9169  # vice versa); the common cases where no linker options are needed do
9170  # not appear in the list.
9171  echo 'int i;' > conftest.$ac_ext
9172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9173  (eval $ac_compile) 2>&5
9174  ac_status=$?
9175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176  test $ac_status = 0; }; then
9177    case `/usr/bin/file conftest.o` in
9178      *32-bit*)
9179	case $host in
9180	  x86_64-*kfreebsd*-gnu)
9181	    LD="${LD-ld} -m elf_i386_fbsd"
9182	    ;;
9183	  x86_64-*linux*)
9184	    case `/usr/bin/file conftest.o` in
9185	      *x86-64*)
9186		LD="${LD-ld} -m elf32_x86_64"
9187		;;
9188	      *)
9189		LD="${LD-ld} -m elf_i386"
9190		;;
9191	    esac
9192	    ;;
9193	  powerpc64le-*linux*)
9194	    LD="${LD-ld} -m elf32lppclinux"
9195	    ;;
9196	  powerpc64-*linux*)
9197	    LD="${LD-ld} -m elf32ppclinux"
9198	    ;;
9199	  s390x-*linux*)
9200	    LD="${LD-ld} -m elf_s390"
9201	    ;;
9202	  sparc64-*linux*)
9203	    LD="${LD-ld} -m elf32_sparc"
9204	    ;;
9205	esac
9206	;;
9207      *64-bit*)
9208	case $host in
9209	  x86_64-*kfreebsd*-gnu)
9210	    LD="${LD-ld} -m elf_x86_64_fbsd"
9211	    ;;
9212	  x86_64-*linux*)
9213	    LD="${LD-ld} -m elf_x86_64"
9214	    ;;
9215	  powerpcle-*linux*)
9216	    LD="${LD-ld} -m elf64lppc"
9217	    ;;
9218	  powerpc-*linux*)
9219	    LD="${LD-ld} -m elf64ppc"
9220	    ;;
9221	  s390*-*linux*|s390*-*tpf*)
9222	    LD="${LD-ld} -m elf64_s390"
9223	    ;;
9224	  sparc*-*linux*)
9225	    LD="${LD-ld} -m elf64_sparc"
9226	    ;;
9227	esac
9228	;;
9229    esac
9230  fi
9231  rm -rf conftest*
9232  ;;
9233
9234*-*-sco3.2v5*)
9235  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9236  SAVE_CFLAGS=$CFLAGS
9237  CFLAGS="$CFLAGS -belf"
9238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9239$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9240if ${lt_cv_cc_needs_belf+:} false; then :
9241  $as_echo_n "(cached) " >&6
9242else
9243  ac_ext=c
9244ac_cpp='$CPP $CPPFLAGS'
9245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247ac_compiler_gnu=$ac_cv_c_compiler_gnu
9248
9249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251
9252int
9253main ()
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"; then :
9261  lt_cv_cc_needs_belf=yes
9262else
9263  lt_cv_cc_needs_belf=no
9264fi
9265rm -f core conftest.err conftest.$ac_objext \
9266    conftest$ac_exeext conftest.$ac_ext
9267     ac_ext=c
9268ac_cpp='$CPP $CPPFLAGS'
9269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271ac_compiler_gnu=$ac_cv_c_compiler_gnu
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9275$as_echo "$lt_cv_cc_needs_belf" >&6; }
9276  if test yes != "$lt_cv_cc_needs_belf"; then
9277    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9278    CFLAGS=$SAVE_CFLAGS
9279  fi
9280  ;;
9281*-*solaris*)
9282  # Find out what ABI is being produced by ac_compile, and set linker
9283  # options accordingly.
9284  echo 'int i;' > conftest.$ac_ext
9285  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9286  (eval $ac_compile) 2>&5
9287  ac_status=$?
9288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9289  test $ac_status = 0; }; then
9290    case `/usr/bin/file conftest.o` in
9291    *64-bit*)
9292      case $lt_cv_prog_gnu_ld in
9293      yes*)
9294        case $host in
9295        i?86-*-solaris*|x86_64-*-solaris*)
9296          LD="${LD-ld} -m elf_x86_64"
9297          ;;
9298        sparc*-*-solaris*)
9299          LD="${LD-ld} -m elf64_sparc"
9300          ;;
9301        esac
9302        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9303        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9304          LD=${LD-ld}_sol2
9305        fi
9306        ;;
9307      *)
9308	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9309	  LD="${LD-ld} -64"
9310	fi
9311	;;
9312      esac
9313      ;;
9314    esac
9315  fi
9316  rm -rf conftest*
9317  ;;
9318esac
9319
9320need_locks=$enable_libtool_lock
9321
9322if test -n "$ac_tool_prefix"; then
9323  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9324set dummy ${ac_tool_prefix}mt; ac_word=$2
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326$as_echo_n "checking for $ac_word... " >&6; }
9327if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  if test -n "$MANIFEST_TOOL"; then
9331  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9332else
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336  IFS=$as_save_IFS
9337  test -z "$as_dir" && as_dir=.
9338    for ac_exec_ext in '' $ac_executable_extensions; do
9339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342    break 2
9343  fi
9344done
9345  done
9346IFS=$as_save_IFS
9347
9348fi
9349fi
9350MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9351if test -n "$MANIFEST_TOOL"; then
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9353$as_echo "$MANIFEST_TOOL" >&6; }
9354else
9355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
9357fi
9358
9359
9360fi
9361if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9362  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9363  # Extract the first word of "mt", so it can be a program name with args.
9364set dummy mt; ac_word=$2
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366$as_echo_n "checking for $ac_word... " >&6; }
9367if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  if test -n "$ac_ct_MANIFEST_TOOL"; then
9371  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9372else
9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376  IFS=$as_save_IFS
9377  test -z "$as_dir" && as_dir=.
9378    for ac_exec_ext in '' $ac_executable_extensions; do
9379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382    break 2
9383  fi
9384done
9385  done
9386IFS=$as_save_IFS
9387
9388fi
9389fi
9390ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9391if test -n "$ac_ct_MANIFEST_TOOL"; then
9392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9393$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9394else
9395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396$as_echo "no" >&6; }
9397fi
9398
9399  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9400    MANIFEST_TOOL=":"
9401  else
9402    case $cross_compiling:$ac_tool_warned in
9403yes:)
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9406ac_tool_warned=yes ;;
9407esac
9408    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9409  fi
9410else
9411  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9412fi
9413
9414test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9416$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9417if ${lt_cv_path_mainfest_tool+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  lt_cv_path_mainfest_tool=no
9421  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9422  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9423  cat conftest.err >&5
9424  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9425    lt_cv_path_mainfest_tool=yes
9426  fi
9427  rm -f conftest*
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9430$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9431if test yes != "$lt_cv_path_mainfest_tool"; then
9432  MANIFEST_TOOL=:
9433fi
9434
9435
9436
9437
9438
9439
9440  case $host_os in
9441    rhapsody* | darwin*)
9442    if test -n "$ac_tool_prefix"; then
9443  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9444set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446$as_echo_n "checking for $ac_word... " >&6; }
9447if ${ac_cv_prog_DSYMUTIL+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  if test -n "$DSYMUTIL"; then
9451  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9452else
9453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454for as_dir in $PATH
9455do
9456  IFS=$as_save_IFS
9457  test -z "$as_dir" && as_dir=.
9458    for ac_exec_ext in '' $ac_executable_extensions; do
9459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9460    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462    break 2
9463  fi
9464done
9465  done
9466IFS=$as_save_IFS
9467
9468fi
9469fi
9470DSYMUTIL=$ac_cv_prog_DSYMUTIL
9471if test -n "$DSYMUTIL"; then
9472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9473$as_echo "$DSYMUTIL" >&6; }
9474else
9475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476$as_echo "no" >&6; }
9477fi
9478
9479
9480fi
9481if test -z "$ac_cv_prog_DSYMUTIL"; then
9482  ac_ct_DSYMUTIL=$DSYMUTIL
9483  # Extract the first word of "dsymutil", so it can be a program name with args.
9484set dummy dsymutil; ac_word=$2
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486$as_echo_n "checking for $ac_word... " >&6; }
9487if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  if test -n "$ac_ct_DSYMUTIL"; then
9491  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9492else
9493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494for as_dir in $PATH
9495do
9496  IFS=$as_save_IFS
9497  test -z "$as_dir" && as_dir=.
9498    for ac_exec_ext in '' $ac_executable_extensions; do
9499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9500    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502    break 2
9503  fi
9504done
9505  done
9506IFS=$as_save_IFS
9507
9508fi
9509fi
9510ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9511if test -n "$ac_ct_DSYMUTIL"; then
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9513$as_echo "$ac_ct_DSYMUTIL" >&6; }
9514else
9515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516$as_echo "no" >&6; }
9517fi
9518
9519  if test "x$ac_ct_DSYMUTIL" = x; then
9520    DSYMUTIL=":"
9521  else
9522    case $cross_compiling:$ac_tool_warned in
9523yes:)
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9526ac_tool_warned=yes ;;
9527esac
9528    DSYMUTIL=$ac_ct_DSYMUTIL
9529  fi
9530else
9531  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9532fi
9533
9534    if test -n "$ac_tool_prefix"; then
9535  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9536set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538$as_echo_n "checking for $ac_word... " >&6; }
9539if ${ac_cv_prog_NMEDIT+:} false; then :
9540  $as_echo_n "(cached) " >&6
9541else
9542  if test -n "$NMEDIT"; then
9543  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9544else
9545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546for as_dir in $PATH
9547do
9548  IFS=$as_save_IFS
9549  test -z "$as_dir" && as_dir=.
9550    for ac_exec_ext in '' $ac_executable_extensions; do
9551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9552    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9554    break 2
9555  fi
9556done
9557  done
9558IFS=$as_save_IFS
9559
9560fi
9561fi
9562NMEDIT=$ac_cv_prog_NMEDIT
9563if test -n "$NMEDIT"; then
9564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9565$as_echo "$NMEDIT" >&6; }
9566else
9567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568$as_echo "no" >&6; }
9569fi
9570
9571
9572fi
9573if test -z "$ac_cv_prog_NMEDIT"; then
9574  ac_ct_NMEDIT=$NMEDIT
9575  # Extract the first word of "nmedit", so it can be a program name with args.
9576set dummy nmedit; ac_word=$2
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578$as_echo_n "checking for $ac_word... " >&6; }
9579if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  if test -n "$ac_ct_NMEDIT"; then
9583  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9584else
9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586for as_dir in $PATH
9587do
9588  IFS=$as_save_IFS
9589  test -z "$as_dir" && as_dir=.
9590    for ac_exec_ext in '' $ac_executable_extensions; do
9591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594    break 2
9595  fi
9596done
9597  done
9598IFS=$as_save_IFS
9599
9600fi
9601fi
9602ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9603if test -n "$ac_ct_NMEDIT"; then
9604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9605$as_echo "$ac_ct_NMEDIT" >&6; }
9606else
9607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608$as_echo "no" >&6; }
9609fi
9610
9611  if test "x$ac_ct_NMEDIT" = x; then
9612    NMEDIT=":"
9613  else
9614    case $cross_compiling:$ac_tool_warned in
9615yes:)
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9618ac_tool_warned=yes ;;
9619esac
9620    NMEDIT=$ac_ct_NMEDIT
9621  fi
9622else
9623  NMEDIT="$ac_cv_prog_NMEDIT"
9624fi
9625
9626    if test -n "$ac_tool_prefix"; then
9627  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9628set dummy ${ac_tool_prefix}lipo; ac_word=$2
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630$as_echo_n "checking for $ac_word... " >&6; }
9631if ${ac_cv_prog_LIPO+:} false; then :
9632  $as_echo_n "(cached) " >&6
9633else
9634  if test -n "$LIPO"; then
9635  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
9639do
9640  IFS=$as_save_IFS
9641  test -z "$as_dir" && as_dir=.
9642    for ac_exec_ext in '' $ac_executable_extensions; do
9643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646    break 2
9647  fi
9648done
9649  done
9650IFS=$as_save_IFS
9651
9652fi
9653fi
9654LIPO=$ac_cv_prog_LIPO
9655if test -n "$LIPO"; then
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9657$as_echo "$LIPO" >&6; }
9658else
9659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660$as_echo "no" >&6; }
9661fi
9662
9663
9664fi
9665if test -z "$ac_cv_prog_LIPO"; then
9666  ac_ct_LIPO=$LIPO
9667  # Extract the first word of "lipo", so it can be a program name with args.
9668set dummy lipo; ac_word=$2
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670$as_echo_n "checking for $ac_word... " >&6; }
9671if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9672  $as_echo_n "(cached) " >&6
9673else
9674  if test -n "$ac_ct_LIPO"; then
9675  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680  IFS=$as_save_IFS
9681  test -z "$as_dir" && as_dir=.
9682    for ac_exec_ext in '' $ac_executable_extensions; do
9683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684    ac_cv_prog_ac_ct_LIPO="lipo"
9685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686    break 2
9687  fi
9688done
9689  done
9690IFS=$as_save_IFS
9691
9692fi
9693fi
9694ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9695if test -n "$ac_ct_LIPO"; then
9696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9697$as_echo "$ac_ct_LIPO" >&6; }
9698else
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
9701fi
9702
9703  if test "x$ac_ct_LIPO" = x; then
9704    LIPO=":"
9705  else
9706    case $cross_compiling:$ac_tool_warned in
9707yes:)
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9710ac_tool_warned=yes ;;
9711esac
9712    LIPO=$ac_ct_LIPO
9713  fi
9714else
9715  LIPO="$ac_cv_prog_LIPO"
9716fi
9717
9718    if test -n "$ac_tool_prefix"; then
9719  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9720set dummy ${ac_tool_prefix}otool; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if ${ac_cv_prog_OTOOL+:} false; then :
9724  $as_echo_n "(cached) " >&6
9725else
9726  if test -n "$OTOOL"; then
9727  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732  IFS=$as_save_IFS
9733  test -z "$as_dir" && as_dir=.
9734    for ac_exec_ext in '' $ac_executable_extensions; do
9735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738    break 2
9739  fi
9740done
9741  done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746OTOOL=$ac_cv_prog_OTOOL
9747if test -n "$OTOOL"; then
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9749$as_echo "$OTOOL" >&6; }
9750else
9751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756fi
9757if test -z "$ac_cv_prog_OTOOL"; then
9758  ac_ct_OTOOL=$OTOOL
9759  # Extract the first word of "otool", so it can be a program name with args.
9760set dummy otool; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  if test -n "$ac_ct_OTOOL"; then
9767  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772  IFS=$as_save_IFS
9773  test -z "$as_dir" && as_dir=.
9774    for ac_exec_ext in '' $ac_executable_extensions; do
9775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776    ac_cv_prog_ac_ct_OTOOL="otool"
9777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778    break 2
9779  fi
9780done
9781  done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9787if test -n "$ac_ct_OTOOL"; then
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9789$as_echo "$ac_ct_OTOOL" >&6; }
9790else
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795  if test "x$ac_ct_OTOOL" = x; then
9796    OTOOL=":"
9797  else
9798    case $cross_compiling:$ac_tool_warned in
9799yes:)
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9802ac_tool_warned=yes ;;
9803esac
9804    OTOOL=$ac_ct_OTOOL
9805  fi
9806else
9807  OTOOL="$ac_cv_prog_OTOOL"
9808fi
9809
9810    if test -n "$ac_tool_prefix"; then
9811  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9812set dummy ${ac_tool_prefix}otool64; ac_word=$2
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if ${ac_cv_prog_OTOOL64+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  if test -n "$OTOOL64"; then
9819  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9820else
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824  IFS=$as_save_IFS
9825  test -z "$as_dir" && as_dir=.
9826    for ac_exec_ext in '' $ac_executable_extensions; do
9827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830    break 2
9831  fi
9832done
9833  done
9834IFS=$as_save_IFS
9835
9836fi
9837fi
9838OTOOL64=$ac_cv_prog_OTOOL64
9839if test -n "$OTOOL64"; then
9840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9841$as_echo "$OTOOL64" >&6; }
9842else
9843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846
9847
9848fi
9849if test -z "$ac_cv_prog_OTOOL64"; then
9850  ac_ct_OTOOL64=$OTOOL64
9851  # Extract the first word of "otool64", so it can be a program name with args.
9852set dummy otool64; ac_word=$2
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9856  $as_echo_n "(cached) " >&6
9857else
9858  if test -n "$ac_ct_OTOOL64"; then
9859  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864  IFS=$as_save_IFS
9865  test -z "$as_dir" && as_dir=.
9866    for ac_exec_ext in '' $ac_executable_extensions; do
9867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868    ac_cv_prog_ac_ct_OTOOL64="otool64"
9869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870    break 2
9871  fi
9872done
9873  done
9874IFS=$as_save_IFS
9875
9876fi
9877fi
9878ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9879if test -n "$ac_ct_OTOOL64"; then
9880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9881$as_echo "$ac_ct_OTOOL64" >&6; }
9882else
9883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9885fi
9886
9887  if test "x$ac_ct_OTOOL64" = x; then
9888    OTOOL64=":"
9889  else
9890    case $cross_compiling:$ac_tool_warned in
9891yes:)
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894ac_tool_warned=yes ;;
9895esac
9896    OTOOL64=$ac_ct_OTOOL64
9897  fi
9898else
9899  OTOOL64="$ac_cv_prog_OTOOL64"
9900fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9929$as_echo_n "checking for -single_module linker flag... " >&6; }
9930if ${lt_cv_apple_cc_single_mod+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  lt_cv_apple_cc_single_mod=no
9934      if test -z "$LT_MULTI_MODULE"; then
9935	# By default we will add the -single_module flag. You can override
9936	# by either setting the environment variable LT_MULTI_MODULE
9937	# non-empty at configure time, or by adding -multi_module to the
9938	# link flags.
9939	rm -rf libconftest.dylib*
9940	echo "int foo(void){return 1;}" > conftest.c
9941	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9942-dynamiclib -Wl,-single_module conftest.c" >&5
9943	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9944	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9945        _lt_result=$?
9946	# If there is a non-empty error log, and "single_module"
9947	# appears in it, assume the flag caused a linker warning
9948        if test -s conftest.err && $GREP single_module conftest.err; then
9949	  cat conftest.err >&5
9950	# Otherwise, if the output was created with a 0 exit code from
9951	# the compiler, it worked.
9952	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9953	  lt_cv_apple_cc_single_mod=yes
9954	else
9955	  cat conftest.err >&5
9956	fi
9957	rm -rf libconftest.dylib*
9958	rm -f conftest.*
9959      fi
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9962$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9963
9964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9965$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9966if ${lt_cv_ld_exported_symbols_list+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  lt_cv_ld_exported_symbols_list=no
9970      save_LDFLAGS=$LDFLAGS
9971      echo "_main" > conftest.sym
9972      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975
9976int
9977main ()
9978{
9979
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_link "$LINENO"; then :
9985  lt_cv_ld_exported_symbols_list=yes
9986else
9987  lt_cv_ld_exported_symbols_list=no
9988fi
9989rm -f core conftest.err conftest.$ac_objext \
9990    conftest$ac_exeext conftest.$ac_ext
9991	LDFLAGS=$save_LDFLAGS
9992
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9995$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9996
9997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9998$as_echo_n "checking for -force_load linker flag... " >&6; }
9999if ${lt_cv_ld_force_load+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  lt_cv_ld_force_load=no
10003      cat > conftest.c << _LT_EOF
10004int forced_loaded() { return 2;}
10005_LT_EOF
10006      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10007      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10008      echo "$AR cru libconftest.a conftest.o" >&5
10009      $AR cru libconftest.a conftest.o 2>&5
10010      echo "$RANLIB libconftest.a" >&5
10011      $RANLIB libconftest.a 2>&5
10012      cat > conftest.c << _LT_EOF
10013int main() { return 0;}
10014_LT_EOF
10015      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10016      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10017      _lt_result=$?
10018      if test -s conftest.err && $GREP force_load conftest.err; then
10019	cat conftest.err >&5
10020      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10021	lt_cv_ld_force_load=yes
10022      else
10023	cat conftest.err >&5
10024      fi
10025        rm -f conftest.err libconftest.a conftest conftest.c
10026        rm -rf conftest.dSYM
10027
10028fi
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10030$as_echo "$lt_cv_ld_force_load" >&6; }
10031    case $host_os in
10032    rhapsody* | darwin1.[012])
10033      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10034    darwin1.*)
10035      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10036    darwin*) # darwin 5.x on
10037      # if running on 10.5 or later, the deployment target defaults
10038      # to the OS version, if on x86, and 10.4, the deployment
10039      # target defaults to 10.4. Don't you love it?
10040      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10041	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10042	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10043	10.[012][,.]*)
10044	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10045	10.*)
10046	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10047      esac
10048    ;;
10049  esac
10050    if test yes = "$lt_cv_apple_cc_single_mod"; then
10051      _lt_dar_single_mod='$single_module'
10052    fi
10053    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10054      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10055    else
10056      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10057    fi
10058    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10059      _lt_dsymutil='~$DSYMUTIL $lib || :'
10060    else
10061      _lt_dsymutil=
10062    fi
10063    ;;
10064  esac
10065
10066# func_munge_path_list VARIABLE PATH
10067# -----------------------------------
10068# VARIABLE is name of variable containing _space_ separated list of
10069# directories to be munged by the contents of PATH, which is string
10070# having a format:
10071# "DIR[:DIR]:"
10072#       string "DIR[ DIR]" will be prepended to VARIABLE
10073# ":DIR[:DIR]"
10074#       string "DIR[ DIR]" will be appended to VARIABLE
10075# "DIRP[:DIRP]::[DIRA:]DIRA"
10076#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10077#       "DIRA[ DIRA]" will be appended to VARIABLE
10078# "DIR[:DIR]"
10079#       VARIABLE will be replaced by "DIR[ DIR]"
10080func_munge_path_list ()
10081{
10082    case x$2 in
10083    x)
10084        ;;
10085    *:)
10086        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10087        ;;
10088    x:*)
10089        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10090        ;;
10091    *::*)
10092        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10093        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10094        ;;
10095    *)
10096        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10097        ;;
10098    esac
10099}
10100
10101for ac_header in dlfcn.h
10102do :
10103  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10104"
10105if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10106  cat >>confdefs.h <<_ACEOF
10107#define HAVE_DLFCN_H 1
10108_ACEOF
10109
10110fi
10111
10112done
10113
10114
10115
10116
10117
10118
10119
10120# Set options
10121
10122
10123
10124        enable_dlopen=no
10125
10126
10127  enable_win32_dll=no
10128
10129
10130            # Check whether --enable-shared was given.
10131if test "${enable_shared+set}" = set; then :
10132  enableval=$enable_shared; p=${PACKAGE-default}
10133    case $enableval in
10134    yes) enable_shared=yes ;;
10135    no) enable_shared=no ;;
10136    *)
10137      enable_shared=no
10138      # Look at the argument we got.  We use all the common list separators.
10139      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10140      for pkg in $enableval; do
10141	IFS=$lt_save_ifs
10142	if test "X$pkg" = "X$p"; then
10143	  enable_shared=yes
10144	fi
10145      done
10146      IFS=$lt_save_ifs
10147      ;;
10148    esac
10149else
10150  enable_shared=yes
10151fi
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161  # Check whether --enable-static was given.
10162if test "${enable_static+set}" = set; then :
10163  enableval=$enable_static; p=${PACKAGE-default}
10164    case $enableval in
10165    yes) enable_static=yes ;;
10166    no) enable_static=no ;;
10167    *)
10168     enable_static=no
10169      # Look at the argument we got.  We use all the common list separators.
10170      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10171      for pkg in $enableval; do
10172	IFS=$lt_save_ifs
10173	if test "X$pkg" = "X$p"; then
10174	  enable_static=yes
10175	fi
10176      done
10177      IFS=$lt_save_ifs
10178      ;;
10179    esac
10180else
10181  enable_static=yes
10182fi
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193# Check whether --with-pic was given.
10194if test "${with_pic+set}" = set; then :
10195  withval=$with_pic; lt_p=${PACKAGE-default}
10196    case $withval in
10197    yes|no) pic_mode=$withval ;;
10198    *)
10199      pic_mode=default
10200      # Look at the argument we got.  We use all the common list separators.
10201      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10202      for lt_pkg in $withval; do
10203	IFS=$lt_save_ifs
10204	if test "X$lt_pkg" = "X$lt_p"; then
10205	  pic_mode=yes
10206	fi
10207      done
10208      IFS=$lt_save_ifs
10209      ;;
10210    esac
10211else
10212  pic_mode=default
10213fi
10214
10215
10216
10217
10218
10219
10220
10221
10222  # Check whether --enable-fast-install was given.
10223if test "${enable_fast_install+set}" = set; then :
10224  enableval=$enable_fast_install; p=${PACKAGE-default}
10225    case $enableval in
10226    yes) enable_fast_install=yes ;;
10227    no) enable_fast_install=no ;;
10228    *)
10229      enable_fast_install=no
10230      # Look at the argument we got.  We use all the common list separators.
10231      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10232      for pkg in $enableval; do
10233	IFS=$lt_save_ifs
10234	if test "X$pkg" = "X$p"; then
10235	  enable_fast_install=yes
10236	fi
10237      done
10238      IFS=$lt_save_ifs
10239      ;;
10240    esac
10241else
10242  enable_fast_install=yes
10243fi
10244
10245
10246
10247
10248
10249
10250
10251
10252  shared_archive_member_spec=
10253case $host,$enable_shared in
10254power*-*-aix[5-9]*,yes)
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10256$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10257
10258# Check whether --with-aix-soname was given.
10259if test "${with_aix_soname+set}" = set; then :
10260  withval=$with_aix_soname; case $withval in
10261    aix|svr4|both)
10262      ;;
10263    *)
10264      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10265      ;;
10266    esac
10267    lt_cv_with_aix_soname=$with_aix_soname
10268else
10269  if ${lt_cv_with_aix_soname+:} false; then :
10270  $as_echo_n "(cached) " >&6
10271else
10272  lt_cv_with_aix_soname=aix
10273fi
10274
10275    with_aix_soname=$lt_cv_with_aix_soname
10276fi
10277
10278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10279$as_echo "$with_aix_soname" >&6; }
10280  if test aix != "$with_aix_soname"; then
10281    # For the AIX way of multilib, we name the shared archive member
10282    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10283    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10284    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10285    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10286    if test 64 = "${OBJECT_MODE-32}"; then
10287      shared_archive_member_spec=shr_64
10288    else
10289      shared_archive_member_spec=shr
10290    fi
10291  fi
10292  ;;
10293*)
10294  with_aix_soname=aix
10295  ;;
10296esac
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307# This can be used to rebuild libtool when needed
10308LIBTOOL_DEPS=$ltmain
10309
10310# Always use our own libtool.
10311LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342test -z "$LN_S" && LN_S="ln -s"
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357if test -n "${ZSH_VERSION+set}"; then
10358   setopt NO_GLOB_SUBST
10359fi
10360
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10362$as_echo_n "checking for objdir... " >&6; }
10363if ${lt_cv_objdir+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  rm -f .libs 2>/dev/null
10367mkdir .libs 2>/dev/null
10368if test -d .libs; then
10369  lt_cv_objdir=.libs
10370else
10371  # MS-DOS does not allow filenames that begin with a dot.
10372  lt_cv_objdir=_libs
10373fi
10374rmdir .libs 2>/dev/null
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10377$as_echo "$lt_cv_objdir" >&6; }
10378objdir=$lt_cv_objdir
10379
10380
10381
10382
10383
10384cat >>confdefs.h <<_ACEOF
10385#define LT_OBJDIR "$lt_cv_objdir/"
10386_ACEOF
10387
10388
10389
10390
10391case $host_os in
10392aix3*)
10393  # AIX sometimes has problems with the GCC collect2 program.  For some
10394  # reason, if we set the COLLECT_NAMES environment variable, the problems
10395  # vanish in a puff of smoke.
10396  if test set != "${COLLECT_NAMES+set}"; then
10397    COLLECT_NAMES=
10398    export COLLECT_NAMES
10399  fi
10400  ;;
10401esac
10402
10403# Global variables:
10404ofile=libtool
10405can_build_shared=yes
10406
10407# All known linkers require a '.a' archive for static linking (except MSVC,
10408# which needs '.lib').
10409libext=a
10410
10411with_gnu_ld=$lt_cv_prog_gnu_ld
10412
10413old_CC=$CC
10414old_CFLAGS=$CFLAGS
10415
10416# Set sane defaults for various variables
10417test -z "$CC" && CC=cc
10418test -z "$LTCC" && LTCC=$CC
10419test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10420test -z "$LD" && LD=ld
10421test -z "$ac_objext" && ac_objext=o
10422
10423func_cc_basename $compiler
10424cc_basename=$func_cc_basename_result
10425
10426
10427# Only perform the check for file, if the check method requires it
10428test -z "$MAGIC_CMD" && MAGIC_CMD=file
10429case $deplibs_check_method in
10430file_magic*)
10431  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10433$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10434if ${lt_cv_path_MAGIC_CMD+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  case $MAGIC_CMD in
10438[\\/*] |  ?:[\\/]*)
10439  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10440  ;;
10441*)
10442  lt_save_MAGIC_CMD=$MAGIC_CMD
10443  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10444  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10445  for ac_dir in $ac_dummy; do
10446    IFS=$lt_save_ifs
10447    test -z "$ac_dir" && ac_dir=.
10448    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10449      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10450      if test -n "$file_magic_test_file"; then
10451	case $deplibs_check_method in
10452	"file_magic "*)
10453	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10454	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10455	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10456	    $EGREP "$file_magic_regex" > /dev/null; then
10457	    :
10458	  else
10459	    cat <<_LT_EOF 1>&2
10460
10461*** Warning: the command libtool uses to detect shared libraries,
10462*** $file_magic_cmd, produces output that libtool cannot recognize.
10463*** The result is that libtool may fail to recognize shared libraries
10464*** as such.  This will affect the creation of libtool libraries that
10465*** depend on shared libraries, but programs linked with such libtool
10466*** libraries will work regardless of this problem.  Nevertheless, you
10467*** may want to report the problem to your system manager and/or to
10468*** bug-libtool@gnu.org
10469
10470_LT_EOF
10471	  fi ;;
10472	esac
10473      fi
10474      break
10475    fi
10476  done
10477  IFS=$lt_save_ifs
10478  MAGIC_CMD=$lt_save_MAGIC_CMD
10479  ;;
10480esac
10481fi
10482
10483MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10484if test -n "$MAGIC_CMD"; then
10485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10486$as_echo "$MAGIC_CMD" >&6; }
10487else
10488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
10490fi
10491
10492
10493
10494
10495
10496if test -z "$lt_cv_path_MAGIC_CMD"; then
10497  if test -n "$ac_tool_prefix"; then
10498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10499$as_echo_n "checking for file... " >&6; }
10500if ${lt_cv_path_MAGIC_CMD+:} false; then :
10501  $as_echo_n "(cached) " >&6
10502else
10503  case $MAGIC_CMD in
10504[\\/*] |  ?:[\\/]*)
10505  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10506  ;;
10507*)
10508  lt_save_MAGIC_CMD=$MAGIC_CMD
10509  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10510  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10511  for ac_dir in $ac_dummy; do
10512    IFS=$lt_save_ifs
10513    test -z "$ac_dir" && ac_dir=.
10514    if test -f "$ac_dir/file"; then
10515      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10516      if test -n "$file_magic_test_file"; then
10517	case $deplibs_check_method in
10518	"file_magic "*)
10519	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10520	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10521	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10522	    $EGREP "$file_magic_regex" > /dev/null; then
10523	    :
10524	  else
10525	    cat <<_LT_EOF 1>&2
10526
10527*** Warning: the command libtool uses to detect shared libraries,
10528*** $file_magic_cmd, produces output that libtool cannot recognize.
10529*** The result is that libtool may fail to recognize shared libraries
10530*** as such.  This will affect the creation of libtool libraries that
10531*** depend on shared libraries, but programs linked with such libtool
10532*** libraries will work regardless of this problem.  Nevertheless, you
10533*** may want to report the problem to your system manager and/or to
10534*** bug-libtool@gnu.org
10535
10536_LT_EOF
10537	  fi ;;
10538	esac
10539      fi
10540      break
10541    fi
10542  done
10543  IFS=$lt_save_ifs
10544  MAGIC_CMD=$lt_save_MAGIC_CMD
10545  ;;
10546esac
10547fi
10548
10549MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10550if test -n "$MAGIC_CMD"; then
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10552$as_echo "$MAGIC_CMD" >&6; }
10553else
10554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556fi
10557
10558
10559  else
10560    MAGIC_CMD=:
10561  fi
10562fi
10563
10564  fi
10565  ;;
10566esac
10567
10568# Use C for the default configuration in the libtool script
10569
10570lt_save_CC=$CC
10571ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
10577
10578# Source file extension for C test sources.
10579ac_ext=c
10580
10581# Object file extension for compiled C test sources.
10582objext=o
10583objext=$objext
10584
10585# Code to be used in simple compile tests
10586lt_simple_compile_test_code="int some_variable = 0;"
10587
10588# Code to be used in simple link tests
10589lt_simple_link_test_code='int main(){return(0);}'
10590
10591
10592
10593
10594
10595
10596
10597# If no C compiler was specified, use CC.
10598LTCC=${LTCC-"$CC"}
10599
10600# If no C compiler flags were specified, use CFLAGS.
10601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10602
10603# Allow CC to be a program name with arguments.
10604compiler=$CC
10605
10606# Save the default compiler, since it gets overwritten when the other
10607# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10608compiler_DEFAULT=$CC
10609
10610# save warnings/boilerplate of simple test code
10611ac_outfile=conftest.$ac_objext
10612echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10614_lt_compiler_boilerplate=`cat conftest.err`
10615$RM conftest*
10616
10617ac_outfile=conftest.$ac_objext
10618echo "$lt_simple_link_test_code" >conftest.$ac_ext
10619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10620_lt_linker_boilerplate=`cat conftest.err`
10621$RM -r conftest*
10622
10623
10624if test -n "$compiler"; then
10625
10626lt_prog_compiler_no_builtin_flag=
10627
10628if test yes = "$GCC"; then
10629  case $cc_basename in
10630  nvcc*)
10631    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10632  *)
10633    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10634  esac
10635
10636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10637$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10638if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10639  $as_echo_n "(cached) " >&6
10640else
10641  lt_cv_prog_compiler_rtti_exceptions=no
10642   ac_outfile=conftest.$ac_objext
10643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10644   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10645   # Insert the option either (1) after the last *FLAGS variable, or
10646   # (2) before a word containing "conftest.", or (3) at the end.
10647   # Note that $ac_compile itself does not contain backslashes and begins
10648   # with a dollar sign (not a hyphen), so the echo should work correctly.
10649   # The option is referenced via a variable to avoid confusing sed.
10650   lt_compile=`echo "$ac_compile" | $SED \
10651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10653   -e 's:$: $lt_compiler_flag:'`
10654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10655   (eval "$lt_compile" 2>conftest.err)
10656   ac_status=$?
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   if (exit $ac_status) && test -s "$ac_outfile"; then
10660     # The compiler can only warn and ignore the option if not recognized
10661     # So say no if there are warnings other than the usual output.
10662     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10665       lt_cv_prog_compiler_rtti_exceptions=yes
10666     fi
10667   fi
10668   $RM conftest*
10669
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10672$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10673
10674if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10675    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10676else
10677    :
10678fi
10679
10680fi
10681
10682
10683
10684
10685
10686
10687  lt_prog_compiler_wl=
10688lt_prog_compiler_pic=
10689lt_prog_compiler_static=
10690
10691
10692  if test yes = "$GCC"; then
10693    lt_prog_compiler_wl='-Wl,'
10694    lt_prog_compiler_static='-static'
10695
10696    case $host_os in
10697      aix*)
10698      # All AIX code is PIC.
10699      if test ia64 = "$host_cpu"; then
10700	# AIX 5 now supports IA64 processor
10701	lt_prog_compiler_static='-Bstatic'
10702      fi
10703      lt_prog_compiler_pic='-fPIC'
10704      ;;
10705
10706    amigaos*)
10707      case $host_cpu in
10708      powerpc)
10709            # see comment about AmigaOS4 .so support
10710            lt_prog_compiler_pic='-fPIC'
10711        ;;
10712      m68k)
10713            # FIXME: we need at least 68020 code to build shared libraries, but
10714            # adding the '-m68020' flag to GCC prevents building anything better,
10715            # like '-m68040'.
10716            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10717        ;;
10718      esac
10719      ;;
10720
10721    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10722      # PIC is the default for these OSes.
10723      ;;
10724
10725    mingw* | cygwin* | pw32* | os2* | cegcc*)
10726      # This hack is so that the source file can tell whether it is being
10727      # built for inclusion in a dll (and should export symbols for example).
10728      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10729      # (--disable-auto-import) libraries
10730      lt_prog_compiler_pic='-DDLL_EXPORT'
10731      case $host_os in
10732      os2*)
10733	lt_prog_compiler_static='$wl-static'
10734	;;
10735      esac
10736      ;;
10737
10738    darwin* | rhapsody*)
10739      # PIC is the default on this platform
10740      # Common symbols not allowed in MH_DYLIB files
10741      lt_prog_compiler_pic='-fno-common'
10742      ;;
10743
10744    haiku*)
10745      # PIC is the default for Haiku.
10746      # The "-static" flag exists, but is broken.
10747      lt_prog_compiler_static=
10748      ;;
10749
10750    hpux*)
10751      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10752      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10753      # sets the default TLS model and affects inlining.
10754      case $host_cpu in
10755      hppa*64*)
10756	# +Z the default
10757	;;
10758      *)
10759	lt_prog_compiler_pic='-fPIC'
10760	;;
10761      esac
10762      ;;
10763
10764    interix[3-9]*)
10765      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10766      # Instead, we relocate shared libraries at runtime.
10767      ;;
10768
10769    msdosdjgpp*)
10770      # Just because we use GCC doesn't mean we suddenly get shared libraries
10771      # on systems that don't support them.
10772      lt_prog_compiler_can_build_shared=no
10773      enable_shared=no
10774      ;;
10775
10776    *nto* | *qnx*)
10777      # QNX uses GNU C++, but need to define -shared option too, otherwise
10778      # it will coredump.
10779      lt_prog_compiler_pic='-fPIC -shared'
10780      ;;
10781
10782    sysv4*MP*)
10783      if test -d /usr/nec; then
10784	lt_prog_compiler_pic=-Kconform_pic
10785      fi
10786      ;;
10787
10788    *)
10789      lt_prog_compiler_pic='-fPIC'
10790      ;;
10791    esac
10792
10793    case $cc_basename in
10794    nvcc*) # Cuda Compiler Driver 2.2
10795      lt_prog_compiler_wl='-Xlinker '
10796      if test -n "$lt_prog_compiler_pic"; then
10797        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10798      fi
10799      ;;
10800    esac
10801  else
10802    # PORTME Check for flag to pass linker flags through the system compiler.
10803    case $host_os in
10804    aix*)
10805      lt_prog_compiler_wl='-Wl,'
10806      if test ia64 = "$host_cpu"; then
10807	# AIX 5 now supports IA64 processor
10808	lt_prog_compiler_static='-Bstatic'
10809      else
10810	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10811      fi
10812      ;;
10813
10814    darwin* | rhapsody*)
10815      # PIC is the default on this platform
10816      # Common symbols not allowed in MH_DYLIB files
10817      lt_prog_compiler_pic='-fno-common'
10818      case $cc_basename in
10819      nagfor*)
10820        # NAG Fortran compiler
10821        lt_prog_compiler_wl='-Wl,-Wl,,'
10822        lt_prog_compiler_pic='-PIC'
10823        lt_prog_compiler_static='-Bstatic'
10824        ;;
10825      esac
10826      ;;
10827
10828    mingw* | cygwin* | pw32* | os2* | cegcc*)
10829      # This hack is so that the source file can tell whether it is being
10830      # built for inclusion in a dll (and should export symbols for example).
10831      lt_prog_compiler_pic='-DDLL_EXPORT'
10832      case $host_os in
10833      os2*)
10834	lt_prog_compiler_static='$wl-static'
10835	;;
10836      esac
10837      ;;
10838
10839    hpux9* | hpux10* | hpux11*)
10840      lt_prog_compiler_wl='-Wl,'
10841      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10842      # not for PA HP-UX.
10843      case $host_cpu in
10844      hppa*64*|ia64*)
10845	# +Z the default
10846	;;
10847      *)
10848	lt_prog_compiler_pic='+Z'
10849	;;
10850      esac
10851      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10852      lt_prog_compiler_static='$wl-a ${wl}archive'
10853      ;;
10854
10855    irix5* | irix6* | nonstopux*)
10856      lt_prog_compiler_wl='-Wl,'
10857      # PIC (with -KPIC) is the default.
10858      lt_prog_compiler_static='-non_shared'
10859      ;;
10860
10861    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10862      case $cc_basename in
10863      # old Intel for x86_64, which still supported -KPIC.
10864      ecc*)
10865	lt_prog_compiler_wl='-Wl,'
10866	lt_prog_compiler_pic='-KPIC'
10867	lt_prog_compiler_static='-static'
10868        ;;
10869      # icc used to be incompatible with GCC.
10870      # ICC 10 doesn't accept -KPIC any more.
10871      icc* | ifort*)
10872	lt_prog_compiler_wl='-Wl,'
10873	lt_prog_compiler_pic='-fPIC'
10874	lt_prog_compiler_static='-static'
10875        ;;
10876      # Lahey Fortran 8.1.
10877      lf95*)
10878	lt_prog_compiler_wl='-Wl,'
10879	lt_prog_compiler_pic='--shared'
10880	lt_prog_compiler_static='--static'
10881	;;
10882      nagfor*)
10883	# NAG Fortran compiler
10884	lt_prog_compiler_wl='-Wl,-Wl,,'
10885	lt_prog_compiler_pic='-PIC'
10886	lt_prog_compiler_static='-Bstatic'
10887	;;
10888      tcc*)
10889	# Fabrice Bellard et al's Tiny C Compiler
10890	lt_prog_compiler_wl='-Wl,'
10891	lt_prog_compiler_pic='-fPIC'
10892	lt_prog_compiler_static='-static'
10893	;;
10894      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10895        # Portland Group compilers (*not* the Pentium gcc compiler,
10896	# which looks to be a dead project)
10897	lt_prog_compiler_wl='-Wl,'
10898	lt_prog_compiler_pic='-fpic'
10899	lt_prog_compiler_static='-Bstatic'
10900        ;;
10901      ccc*)
10902        lt_prog_compiler_wl='-Wl,'
10903        # All Alpha code is PIC.
10904        lt_prog_compiler_static='-non_shared'
10905        ;;
10906      xl* | bgxl* | bgf* | mpixl*)
10907	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10908	lt_prog_compiler_wl='-Wl,'
10909	lt_prog_compiler_pic='-qpic'
10910	lt_prog_compiler_static='-qstaticlink'
10911	;;
10912      *)
10913	case `$CC -V 2>&1 | sed 5q` in
10914	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10915	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10916	  lt_prog_compiler_pic='-KPIC'
10917	  lt_prog_compiler_static='-Bstatic'
10918	  lt_prog_compiler_wl=''
10919	  ;;
10920	*Sun\ F* | *Sun*Fortran*)
10921	  lt_prog_compiler_pic='-KPIC'
10922	  lt_prog_compiler_static='-Bstatic'
10923	  lt_prog_compiler_wl='-Qoption ld '
10924	  ;;
10925	*Sun\ C*)
10926	  # Sun C 5.9
10927	  lt_prog_compiler_pic='-KPIC'
10928	  lt_prog_compiler_static='-Bstatic'
10929	  lt_prog_compiler_wl='-Wl,'
10930	  ;;
10931        *Intel*\ [CF]*Compiler*)
10932	  lt_prog_compiler_wl='-Wl,'
10933	  lt_prog_compiler_pic='-fPIC'
10934	  lt_prog_compiler_static='-static'
10935	  ;;
10936	*Portland\ Group*)
10937	  lt_prog_compiler_wl='-Wl,'
10938	  lt_prog_compiler_pic='-fpic'
10939	  lt_prog_compiler_static='-Bstatic'
10940	  ;;
10941	esac
10942	;;
10943      esac
10944      ;;
10945
10946    newsos6)
10947      lt_prog_compiler_pic='-KPIC'
10948      lt_prog_compiler_static='-Bstatic'
10949      ;;
10950
10951    *nto* | *qnx*)
10952      # QNX uses GNU C++, but need to define -shared option too, otherwise
10953      # it will coredump.
10954      lt_prog_compiler_pic='-fPIC -shared'
10955      ;;
10956
10957    osf3* | osf4* | osf5*)
10958      lt_prog_compiler_wl='-Wl,'
10959      # All OSF/1 code is PIC.
10960      lt_prog_compiler_static='-non_shared'
10961      ;;
10962
10963    rdos*)
10964      lt_prog_compiler_static='-non_shared'
10965      ;;
10966
10967    solaris*)
10968      lt_prog_compiler_pic='-KPIC'
10969      lt_prog_compiler_static='-Bstatic'
10970      case $cc_basename in
10971      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10972	lt_prog_compiler_wl='-Qoption ld ';;
10973      *)
10974	lt_prog_compiler_wl='-Wl,';;
10975      esac
10976      ;;
10977
10978    sunos4*)
10979      lt_prog_compiler_wl='-Qoption ld '
10980      lt_prog_compiler_pic='-PIC'
10981      lt_prog_compiler_static='-Bstatic'
10982      ;;
10983
10984    sysv4 | sysv4.2uw2* | sysv4.3*)
10985      lt_prog_compiler_wl='-Wl,'
10986      lt_prog_compiler_pic='-KPIC'
10987      lt_prog_compiler_static='-Bstatic'
10988      ;;
10989
10990    sysv4*MP*)
10991      if test -d /usr/nec; then
10992	lt_prog_compiler_pic='-Kconform_pic'
10993	lt_prog_compiler_static='-Bstatic'
10994      fi
10995      ;;
10996
10997    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10998      lt_prog_compiler_wl='-Wl,'
10999      lt_prog_compiler_pic='-KPIC'
11000      lt_prog_compiler_static='-Bstatic'
11001      ;;
11002
11003    unicos*)
11004      lt_prog_compiler_wl='-Wl,'
11005      lt_prog_compiler_can_build_shared=no
11006      ;;
11007
11008    uts4*)
11009      lt_prog_compiler_pic='-pic'
11010      lt_prog_compiler_static='-Bstatic'
11011      ;;
11012
11013    *)
11014      lt_prog_compiler_can_build_shared=no
11015      ;;
11016    esac
11017  fi
11018
11019case $host_os in
11020  # For platforms that do not support PIC, -DPIC is meaningless:
11021  *djgpp*)
11022    lt_prog_compiler_pic=
11023    ;;
11024  *)
11025    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11026    ;;
11027esac
11028
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11030$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11031if ${lt_cv_prog_compiler_pic+:} false; then :
11032  $as_echo_n "(cached) " >&6
11033else
11034  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11035fi
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11037$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11038lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11039
11040#
11041# Check to make sure the PIC flag actually works.
11042#
11043if test -n "$lt_prog_compiler_pic"; then
11044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11045$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11046if ${lt_cv_prog_compiler_pic_works+:} false; then :
11047  $as_echo_n "(cached) " >&6
11048else
11049  lt_cv_prog_compiler_pic_works=no
11050   ac_outfile=conftest.$ac_objext
11051   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11052   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11053   # Insert the option either (1) after the last *FLAGS variable, or
11054   # (2) before a word containing "conftest.", or (3) at the end.
11055   # Note that $ac_compile itself does not contain backslashes and begins
11056   # with a dollar sign (not a hyphen), so the echo should work correctly.
11057   # The option is referenced via a variable to avoid confusing sed.
11058   lt_compile=`echo "$ac_compile" | $SED \
11059   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11061   -e 's:$: $lt_compiler_flag:'`
11062   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11063   (eval "$lt_compile" 2>conftest.err)
11064   ac_status=$?
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   if (exit $ac_status) && test -s "$ac_outfile"; then
11068     # The compiler can only warn and ignore the option if not recognized
11069     # So say no if there are warnings other than the usual output.
11070     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11071     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11072     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11073       lt_cv_prog_compiler_pic_works=yes
11074     fi
11075   fi
11076   $RM conftest*
11077
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11080$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11081
11082if test yes = "$lt_cv_prog_compiler_pic_works"; then
11083    case $lt_prog_compiler_pic in
11084     "" | " "*) ;;
11085     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11086     esac
11087else
11088    lt_prog_compiler_pic=
11089     lt_prog_compiler_can_build_shared=no
11090fi
11091
11092fi
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104#
11105# Check to make sure the static flag actually works.
11106#
11107wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11109$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11110if ${lt_cv_prog_compiler_static_works+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  lt_cv_prog_compiler_static_works=no
11114   save_LDFLAGS=$LDFLAGS
11115   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11116   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11117   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11118     # The linker can only warn and ignore the option if not recognized
11119     # So say no if there are warnings
11120     if test -s conftest.err; then
11121       # Append any errors to the config.log.
11122       cat conftest.err 1>&5
11123       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11124       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11125       if diff conftest.exp conftest.er2 >/dev/null; then
11126         lt_cv_prog_compiler_static_works=yes
11127       fi
11128     else
11129       lt_cv_prog_compiler_static_works=yes
11130     fi
11131   fi
11132   $RM -r conftest*
11133   LDFLAGS=$save_LDFLAGS
11134
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11137$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11138
11139if test yes = "$lt_cv_prog_compiler_static_works"; then
11140    :
11141else
11142    lt_prog_compiler_static=
11143fi
11144
11145
11146
11147
11148
11149
11150
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11152$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11153if ${lt_cv_prog_compiler_c_o+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  lt_cv_prog_compiler_c_o=no
11157   $RM -r conftest 2>/dev/null
11158   mkdir conftest
11159   cd conftest
11160   mkdir out
11161   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11162
11163   lt_compiler_flag="-o out/conftest2.$ac_objext"
11164   # Insert the option either (1) after the last *FLAGS variable, or
11165   # (2) before a word containing "conftest.", or (3) at the end.
11166   # Note that $ac_compile itself does not contain backslashes and begins
11167   # with a dollar sign (not a hyphen), so the echo should work correctly.
11168   lt_compile=`echo "$ac_compile" | $SED \
11169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11171   -e 's:$: $lt_compiler_flag:'`
11172   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11173   (eval "$lt_compile" 2>out/conftest.err)
11174   ac_status=$?
11175   cat out/conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11178   then
11179     # The compiler can only warn and ignore the option if not recognized
11180     # So say no if there are warnings
11181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11184       lt_cv_prog_compiler_c_o=yes
11185     fi
11186   fi
11187   chmod u+w . 2>&5
11188   $RM conftest*
11189   # SGI C++ compiler will create directory out/ii_files/ for
11190   # template instantiation
11191   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11192   $RM out/* && rmdir out
11193   cd ..
11194   $RM -r conftest
11195   $RM conftest*
11196
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11199$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11200
11201
11202
11203
11204
11205
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11208if ${lt_cv_prog_compiler_c_o+:} false; then :
11209  $as_echo_n "(cached) " >&6
11210else
11211  lt_cv_prog_compiler_c_o=no
11212   $RM -r conftest 2>/dev/null
11213   mkdir conftest
11214   cd conftest
11215   mkdir out
11216   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11217
11218   lt_compiler_flag="-o out/conftest2.$ac_objext"
11219   # Insert the option either (1) after the last *FLAGS variable, or
11220   # (2) before a word containing "conftest.", or (3) at the end.
11221   # Note that $ac_compile itself does not contain backslashes and begins
11222   # with a dollar sign (not a hyphen), so the echo should work correctly.
11223   lt_compile=`echo "$ac_compile" | $SED \
11224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11226   -e 's:$: $lt_compiler_flag:'`
11227   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11228   (eval "$lt_compile" 2>out/conftest.err)
11229   ac_status=$?
11230   cat out/conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11233   then
11234     # The compiler can only warn and ignore the option if not recognized
11235     # So say no if there are warnings
11236     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11237     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11238     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11239       lt_cv_prog_compiler_c_o=yes
11240     fi
11241   fi
11242   chmod u+w . 2>&5
11243   $RM conftest*
11244   # SGI C++ compiler will create directory out/ii_files/ for
11245   # template instantiation
11246   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11247   $RM out/* && rmdir out
11248   cd ..
11249   $RM -r conftest
11250   $RM conftest*
11251
11252fi
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11254$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11255
11256
11257
11258
11259hard_links=nottested
11260if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11261  # do not overwrite the value of need_locks provided by the user
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11263$as_echo_n "checking if we can lock with hard links... " >&6; }
11264  hard_links=yes
11265  $RM conftest*
11266  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11267  touch conftest.a
11268  ln conftest.a conftest.b 2>&5 || hard_links=no
11269  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11271$as_echo "$hard_links" >&6; }
11272  if test no = "$hard_links"; then
11273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11274$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11275    need_locks=warn
11276  fi
11277else
11278  need_locks=no
11279fi
11280
11281
11282
11283
11284
11285
11286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11287$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11288
11289  runpath_var=
11290  allow_undefined_flag=
11291  always_export_symbols=no
11292  archive_cmds=
11293  archive_expsym_cmds=
11294  compiler_needs_object=no
11295  enable_shared_with_static_runtimes=no
11296  export_dynamic_flag_spec=
11297  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11298  hardcode_automatic=no
11299  hardcode_direct=no
11300  hardcode_direct_absolute=no
11301  hardcode_libdir_flag_spec=
11302  hardcode_libdir_separator=
11303  hardcode_minus_L=no
11304  hardcode_shlibpath_var=unsupported
11305  inherit_rpath=no
11306  link_all_deplibs=unknown
11307  module_cmds=
11308  module_expsym_cmds=
11309  old_archive_from_new_cmds=
11310  old_archive_from_expsyms_cmds=
11311  thread_safe_flag_spec=
11312  whole_archive_flag_spec=
11313  # include_expsyms should be a list of space-separated symbols to be *always*
11314  # included in the symbol list
11315  include_expsyms=
11316  # exclude_expsyms can be an extended regexp of symbols to exclude
11317  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11318  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11319  # as well as any symbol that contains 'd'.
11320  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11321  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11322  # platforms (ab)use it in PIC code, but their linkers get confused if
11323  # the symbol is explicitly referenced.  Since portable code cannot
11324  # rely on this symbol name, it's probably fine to never include it in
11325  # preloaded symbol tables.
11326  # Exclude shared library initialization/finalization symbols.
11327  extract_expsyms_cmds=
11328
11329  case $host_os in
11330  cygwin* | mingw* | pw32* | cegcc*)
11331    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11332    # When not using gcc, we currently assume that we are using
11333    # Microsoft Visual C++.
11334    if test yes != "$GCC"; then
11335      with_gnu_ld=no
11336    fi
11337    ;;
11338  interix*)
11339    # we just hope/assume this is gcc and not c89 (= MSVC++)
11340    with_gnu_ld=yes
11341    ;;
11342  openbsd* | bitrig*)
11343    with_gnu_ld=no
11344    ;;
11345  esac
11346
11347  ld_shlibs=yes
11348
11349  # On some targets, GNU ld is compatible enough with the native linker
11350  # that we're better off using the native interface for both.
11351  lt_use_gnu_ld_interface=no
11352  if test yes = "$with_gnu_ld"; then
11353    case $host_os in
11354      aix*)
11355	# The AIX port of GNU ld has always aspired to compatibility
11356	# with the native linker.  However, as the warning in the GNU ld
11357	# block says, versions before 2.19.5* couldn't really create working
11358	# shared libraries, regardless of the interface used.
11359	case `$LD -v 2>&1` in
11360	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11361	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11362	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11363	  *)
11364	    lt_use_gnu_ld_interface=yes
11365	    ;;
11366	esac
11367	;;
11368      *)
11369	lt_use_gnu_ld_interface=yes
11370	;;
11371    esac
11372  fi
11373
11374  if test yes = "$lt_use_gnu_ld_interface"; then
11375    # If archive_cmds runs LD, not CC, wlarc should be empty
11376    wlarc='$wl'
11377
11378    # Set some defaults for GNU ld with shared library support. These
11379    # are reset later if shared libraries are not supported. Putting them
11380    # here allows them to be overridden if necessary.
11381    runpath_var=LD_RUN_PATH
11382    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11383    export_dynamic_flag_spec='$wl--export-dynamic'
11384    # ancient GNU ld didn't support --whole-archive et. al.
11385    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11386      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11387    else
11388      whole_archive_flag_spec=
11389    fi
11390    supports_anon_versioning=no
11391    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11392      *GNU\ gold*) supports_anon_versioning=yes ;;
11393      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11394      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11395      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11396      *\ 2.11.*) ;; # other 2.11 versions
11397      *) supports_anon_versioning=yes ;;
11398    esac
11399
11400    # See if GNU ld supports shared libraries.
11401    case $host_os in
11402    aix[3-9]*)
11403      # On AIX/PPC, the GNU linker is very broken
11404      if test ia64 != "$host_cpu"; then
11405	ld_shlibs=no
11406	cat <<_LT_EOF 1>&2
11407
11408*** Warning: the GNU linker, at least up to release 2.19, is reported
11409*** to be unable to reliably create shared libraries on AIX.
11410*** Therefore, libtool is disabling shared libraries support.  If you
11411*** really care for shared libraries, you may want to install binutils
11412*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11413*** You will then need to restart the configuration process.
11414
11415_LT_EOF
11416      fi
11417      ;;
11418
11419    amigaos*)
11420      case $host_cpu in
11421      powerpc)
11422            # see comment about AmigaOS4 .so support
11423            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11424            archive_expsym_cmds=''
11425        ;;
11426      m68k)
11427            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)'
11428            hardcode_libdir_flag_spec='-L$libdir'
11429            hardcode_minus_L=yes
11430        ;;
11431      esac
11432      ;;
11433
11434    beos*)
11435      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11436	allow_undefined_flag=unsupported
11437	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11438	# support --undefined.  This deserves some investigation.  FIXME
11439	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11440      else
11441	ld_shlibs=no
11442      fi
11443      ;;
11444
11445    cygwin* | mingw* | pw32* | cegcc*)
11446      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11447      # as there is no search path for DLLs.
11448      hardcode_libdir_flag_spec='-L$libdir'
11449      export_dynamic_flag_spec='$wl--export-all-symbols'
11450      allow_undefined_flag=unsupported
11451      always_export_symbols=no
11452      enable_shared_with_static_runtimes=yes
11453      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'
11454      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11455
11456      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11457        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11458	# If the export-symbols file already is a .def file, use it as
11459	# is; otherwise, prepend EXPORTS...
11460	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11461          cp $export_symbols $output_objdir/$soname.def;
11462        else
11463          echo EXPORTS > $output_objdir/$soname.def;
11464          cat $export_symbols >> $output_objdir/$soname.def;
11465        fi~
11466        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11467      else
11468	ld_shlibs=no
11469      fi
11470      ;;
11471
11472    haiku*)
11473      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11474      link_all_deplibs=yes
11475      ;;
11476
11477    os2*)
11478      hardcode_libdir_flag_spec='-L$libdir'
11479      hardcode_minus_L=yes
11480      allow_undefined_flag=unsupported
11481      shrext_cmds=.dll
11482      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11483	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11484	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11485	$ECHO EXPORTS >> $output_objdir/$libname.def~
11486	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11487	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11488	emximp -o $lib $output_objdir/$libname.def'
11489      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11490	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11491	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11492	$ECHO EXPORTS >> $output_objdir/$libname.def~
11493	prefix_cmds="$SED"~
11494	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11495	  prefix_cmds="$prefix_cmds -e 1d";
11496	fi~
11497	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11498	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11499	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11500	emximp -o $lib $output_objdir/$libname.def'
11501      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11502      enable_shared_with_static_runtimes=yes
11503      ;;
11504
11505    interix[3-9]*)
11506      hardcode_direct=no
11507      hardcode_shlibpath_var=no
11508      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11509      export_dynamic_flag_spec='$wl-E'
11510      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11511      # Instead, shared libraries are loaded at an image base (0x10000000 by
11512      # default) and relocated if they conflict, which is a slow very memory
11513      # consuming and fragmenting process.  To avoid this, we pick a random,
11514      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11515      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11516      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11517      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'
11518      ;;
11519
11520    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11521      tmp_diet=no
11522      if test linux-dietlibc = "$host_os"; then
11523	case $cc_basename in
11524	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11525	esac
11526      fi
11527      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11528	 && test no = "$tmp_diet"
11529      then
11530	tmp_addflag=' $pic_flag'
11531	tmp_sharedflag='-shared'
11532	case $cc_basename,$host_cpu in
11533        pgcc*)				# Portland Group C compiler
11534	  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'
11535	  tmp_addflag=' $pic_flag'
11536	  ;;
11537	pgf77* | pgf90* | pgf95* | pgfortran*)
11538					# Portland Group f77 and f90 compilers
11539	  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'
11540	  tmp_addflag=' $pic_flag -Mnomain' ;;
11541	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11542	  tmp_addflag=' -i_dynamic' ;;
11543	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11544	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11545	ifc* | ifort*)			# Intel Fortran compiler
11546	  tmp_addflag=' -nofor_main' ;;
11547	lf95*)				# Lahey Fortran 8.1
11548	  whole_archive_flag_spec=
11549	  tmp_sharedflag='--shared' ;;
11550        nagfor*)                        # NAGFOR 5.3
11551          tmp_sharedflag='-Wl,-shared' ;;
11552	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11553	  tmp_sharedflag='-qmkshrobj'
11554	  tmp_addflag= ;;
11555	nvcc*)	# Cuda Compiler Driver 2.2
11556	  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'
11557	  compiler_needs_object=yes
11558	  ;;
11559	esac
11560	case `$CC -V 2>&1 | sed 5q` in
11561	*Sun\ C*)			# Sun C 5.9
11562	  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'
11563	  compiler_needs_object=yes
11564	  tmp_sharedflag='-G' ;;
11565	*Sun\ F*)			# Sun Fortran 8.3
11566	  tmp_sharedflag='-G' ;;
11567	esac
11568	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11569
11570        if test yes = "$supports_anon_versioning"; then
11571          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11572            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11573            echo "local: *; };" >> $output_objdir/$libname.ver~
11574            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11575        fi
11576
11577	case $cc_basename in
11578	tcc*)
11579	  export_dynamic_flag_spec='-rdynamic'
11580	  ;;
11581	xlf* | bgf* | bgxlf* | mpixlf*)
11582	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11583	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11584	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11585	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11586	  if test yes = "$supports_anon_versioning"; then
11587	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11588              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11589              echo "local: *; };" >> $output_objdir/$libname.ver~
11590              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11591	  fi
11592	  ;;
11593	esac
11594      else
11595        ld_shlibs=no
11596      fi
11597      ;;
11598
11599    netbsd*)
11600      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11601	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11602	wlarc=
11603      else
11604	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11605	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11606      fi
11607      ;;
11608
11609    solaris*)
11610      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11611	ld_shlibs=no
11612	cat <<_LT_EOF 1>&2
11613
11614*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11615*** create shared libraries on Solaris systems.  Therefore, libtool
11616*** is disabling shared libraries support.  We urge you to upgrade GNU
11617*** binutils to release 2.9.1 or newer.  Another option is to modify
11618*** your PATH or compiler configuration so that the native linker is
11619*** used, and then restart.
11620
11621_LT_EOF
11622      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11623	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11624	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11625      else
11626	ld_shlibs=no
11627      fi
11628      ;;
11629
11630    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11631      case `$LD -v 2>&1` in
11632        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11633	ld_shlibs=no
11634	cat <<_LT_EOF 1>&2
11635
11636*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11637*** reliably create shared libraries on SCO systems.  Therefore, libtool
11638*** is disabling shared libraries support.  We urge you to upgrade GNU
11639*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11640*** your PATH or compiler configuration so that the native linker is
11641*** used, and then restart.
11642
11643_LT_EOF
11644	;;
11645	*)
11646	  # For security reasons, it is highly recommended that you always
11647	  # use absolute paths for naming shared libraries, and exclude the
11648	  # DT_RUNPATH tag from executables and libraries.  But doing so
11649	  # requires that you compile everything twice, which is a pain.
11650	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11651	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11652	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11653	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11654	  else
11655	    ld_shlibs=no
11656	  fi
11657	;;
11658      esac
11659      ;;
11660
11661    sunos4*)
11662      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11663      wlarc=
11664      hardcode_direct=yes
11665      hardcode_shlibpath_var=no
11666      ;;
11667
11668    *)
11669      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11671	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11672      else
11673	ld_shlibs=no
11674      fi
11675      ;;
11676    esac
11677
11678    if test no = "$ld_shlibs"; then
11679      runpath_var=
11680      hardcode_libdir_flag_spec=
11681      export_dynamic_flag_spec=
11682      whole_archive_flag_spec=
11683    fi
11684  else
11685    # PORTME fill in a description of your system's linker (not GNU ld)
11686    case $host_os in
11687    aix3*)
11688      allow_undefined_flag=unsupported
11689      always_export_symbols=yes
11690      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'
11691      # Note: this linker hardcodes the directories in LIBPATH if there
11692      # are no directories specified by -L.
11693      hardcode_minus_L=yes
11694      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11695	# Neither direct hardcoding nor static linking is supported with a
11696	# broken collect2.
11697	hardcode_direct=unsupported
11698      fi
11699      ;;
11700
11701    aix[4-9]*)
11702      if test ia64 = "$host_cpu"; then
11703	# On IA64, the linker does run time linking by default, so we don't
11704	# have to do anything special.
11705	aix_use_runtimelinking=no
11706	exp_sym_flag='-Bexport'
11707	no_entry_flag=
11708      else
11709	# If we're using GNU nm, then we don't want the "-C" option.
11710	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11711	# Without the "-l" option, or with the "-B" option, AIX nm treats
11712	# weak defined symbols like other global defined symbols, whereas
11713	# GNU nm marks them as "W".
11714	# While the 'weak' keyword is ignored in the Export File, we need
11715	# it in the Import File for the 'aix-soname' feature, so we have
11716	# to replace the "-B" option with "-P" for AIX nm.
11717	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11718	  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'
11719	else
11720	  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'
11721	fi
11722	aix_use_runtimelinking=no
11723
11724	# Test if we are trying to use run time linking or normal
11725	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11726	# have runtime linking enabled, and use it for executables.
11727	# For shared libraries, we enable/disable runtime linking
11728	# depending on the kind of the shared library created -
11729	# when "with_aix_soname,aix_use_runtimelinking" is:
11730	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11731	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11732	#            lib.a           static archive
11733	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11734	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11735	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11736	#            lib.a(lib.so.V) shared, rtl:no
11737	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11738	#            lib.a           static archive
11739	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11740	  for ld_flag in $LDFLAGS; do
11741	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11742	    aix_use_runtimelinking=yes
11743	    break
11744	  fi
11745	  done
11746	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11747	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11748	    # so we don't have lib.a shared libs to link our executables.
11749	    # We have to force runtime linking in this case.
11750	    aix_use_runtimelinking=yes
11751	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11752	  fi
11753	  ;;
11754	esac
11755
11756	exp_sym_flag='-bexport'
11757	no_entry_flag='-bnoentry'
11758      fi
11759
11760      # When large executables or shared objects are built, AIX ld can
11761      # have problems creating the table of contents.  If linking a library
11762      # or program results in "error TOC overflow" add -mminimal-toc to
11763      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11764      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11765
11766      archive_cmds=''
11767      hardcode_direct=yes
11768      hardcode_direct_absolute=yes
11769      hardcode_libdir_separator=':'
11770      link_all_deplibs=yes
11771      file_list_spec='$wl-f,'
11772      case $with_aix_soname,$aix_use_runtimelinking in
11773      aix,*) ;; # traditional, no import file
11774      svr4,* | *,yes) # use import file
11775	# The Import File defines what to hardcode.
11776	hardcode_direct=no
11777	hardcode_direct_absolute=no
11778	;;
11779      esac
11780
11781      if test yes = "$GCC"; then
11782	case $host_os in aix4.[012]|aix4.[012].*)
11783	# We only want to do this on AIX 4.2 and lower, the check
11784	# below for broken collect2 doesn't work under 4.3+
11785	  collect2name=`$CC -print-prog-name=collect2`
11786	  if test -f "$collect2name" &&
11787	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11788	  then
11789	  # We have reworked collect2
11790	  :
11791	  else
11792	  # We have old collect2
11793	  hardcode_direct=unsupported
11794	  # It fails to find uninstalled libraries when the uninstalled
11795	  # path is not listed in the libpath.  Setting hardcode_minus_L
11796	  # to unsupported forces relinking
11797	  hardcode_minus_L=yes
11798	  hardcode_libdir_flag_spec='-L$libdir'
11799	  hardcode_libdir_separator=
11800	  fi
11801	  ;;
11802	esac
11803	shared_flag='-shared'
11804	if test yes = "$aix_use_runtimelinking"; then
11805	  shared_flag="$shared_flag "'$wl-G'
11806	fi
11807	# Need to ensure runtime linking is disabled for the traditional
11808	# shared library, or the linker may eventually find shared libraries
11809	# /with/ Import File - we do not want to mix them.
11810	shared_flag_aix='-shared'
11811	shared_flag_svr4='-shared $wl-G'
11812      else
11813	# not using gcc
11814	if test ia64 = "$host_cpu"; then
11815	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11816	# chokes on -Wl,-G. The following line is correct:
11817	  shared_flag='-G'
11818	else
11819	  if test yes = "$aix_use_runtimelinking"; then
11820	    shared_flag='$wl-G'
11821	  else
11822	    shared_flag='$wl-bM:SRE'
11823	  fi
11824	  shared_flag_aix='$wl-bM:SRE'
11825	  shared_flag_svr4='$wl-G'
11826	fi
11827      fi
11828
11829      export_dynamic_flag_spec='$wl-bexpall'
11830      # It seems that -bexpall does not export symbols beginning with
11831      # underscore (_), so it is better to generate a list of symbols to export.
11832      always_export_symbols=yes
11833      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11834	# Warning - without using the other runtime loading flags (-brtl),
11835	# -berok will link without error, but may produce a broken library.
11836	allow_undefined_flag='-berok'
11837        # Determine the default libpath from the value encoded in an
11838        # empty executable.
11839        if test set = "${lt_cv_aix_libpath+set}"; then
11840  aix_libpath=$lt_cv_aix_libpath
11841else
11842  if ${lt_cv_aix_libpath_+:} false; then :
11843  $as_echo_n "(cached) " >&6
11844else
11845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846/* end confdefs.h.  */
11847
11848int
11849main ()
11850{
11851
11852  ;
11853  return 0;
11854}
11855_ACEOF
11856if ac_fn_c_try_link "$LINENO"; then :
11857
11858  lt_aix_libpath_sed='
11859      /Import File Strings/,/^$/ {
11860	  /^0/ {
11861	      s/^0  *\([^ ]*\) *$/\1/
11862	      p
11863	  }
11864      }'
11865  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11866  # Check for a 64-bit object if we didn't find anything.
11867  if test -z "$lt_cv_aix_libpath_"; then
11868    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11869  fi
11870fi
11871rm -f core conftest.err conftest.$ac_objext \
11872    conftest$ac_exeext conftest.$ac_ext
11873  if test -z "$lt_cv_aix_libpath_"; then
11874    lt_cv_aix_libpath_=/usr/lib:/lib
11875  fi
11876
11877fi
11878
11879  aix_libpath=$lt_cv_aix_libpath_
11880fi
11881
11882        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11883        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
11884      else
11885	if test ia64 = "$host_cpu"; then
11886	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11887	  allow_undefined_flag="-z nodefs"
11888	  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"
11889	else
11890	 # Determine the default libpath from the value encoded in an
11891	 # empty executable.
11892	 if test set = "${lt_cv_aix_libpath+set}"; then
11893  aix_libpath=$lt_cv_aix_libpath
11894else
11895  if ${lt_cv_aix_libpath_+:} false; then :
11896  $as_echo_n "(cached) " >&6
11897else
11898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900
11901int
11902main ()
11903{
11904
11905  ;
11906  return 0;
11907}
11908_ACEOF
11909if ac_fn_c_try_link "$LINENO"; then :
11910
11911  lt_aix_libpath_sed='
11912      /Import File Strings/,/^$/ {
11913	  /^0/ {
11914	      s/^0  *\([^ ]*\) *$/\1/
11915	      p
11916	  }
11917      }'
11918  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11919  # Check for a 64-bit object if we didn't find anything.
11920  if test -z "$lt_cv_aix_libpath_"; then
11921    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11922  fi
11923fi
11924rm -f core conftest.err conftest.$ac_objext \
11925    conftest$ac_exeext conftest.$ac_ext
11926  if test -z "$lt_cv_aix_libpath_"; then
11927    lt_cv_aix_libpath_=/usr/lib:/lib
11928  fi
11929
11930fi
11931
11932  aix_libpath=$lt_cv_aix_libpath_
11933fi
11934
11935	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11936	  # Warning - without using the other run time loading flags,
11937	  # -berok will link without error, but may produce a broken library.
11938	  no_undefined_flag=' $wl-bernotok'
11939	  allow_undefined_flag=' $wl-berok'
11940	  if test yes = "$with_gnu_ld"; then
11941	    # We only use this code for GNU lds that support --whole-archive.
11942	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11943	  else
11944	    # Exported symbols can be pulled into shared objects from archives
11945	    whole_archive_flag_spec='$convenience'
11946	  fi
11947	  archive_cmds_need_lc=yes
11948	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11949	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11950	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11951	  if test svr4 != "$with_aix_soname"; then
11952	    # This is similar to how AIX traditionally builds its shared libraries.
11953	    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'
11954	  fi
11955	  if test aix != "$with_aix_soname"; then
11956	    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'
11957	  else
11958	    # used by -dlpreopen to get the symbols
11959	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11960	  fi
11961	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11962	fi
11963      fi
11964      ;;
11965
11966    amigaos*)
11967      case $host_cpu in
11968      powerpc)
11969            # see comment about AmigaOS4 .so support
11970            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11971            archive_expsym_cmds=''
11972        ;;
11973      m68k)
11974            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)'
11975            hardcode_libdir_flag_spec='-L$libdir'
11976            hardcode_minus_L=yes
11977        ;;
11978      esac
11979      ;;
11980
11981    bsdi[45]*)
11982      export_dynamic_flag_spec=-rdynamic
11983      ;;
11984
11985    cygwin* | mingw* | pw32* | cegcc*)
11986      # When not using gcc, we currently assume that we are using
11987      # Microsoft Visual C++.
11988      # hardcode_libdir_flag_spec is actually meaningless, as there is
11989      # no search path for DLLs.
11990      case $cc_basename in
11991      cl*)
11992	# Native MSVC
11993	hardcode_libdir_flag_spec=' '
11994	allow_undefined_flag=unsupported
11995	always_export_symbols=yes
11996	file_list_spec='@'
11997	# Tell ltmain to make .lib files, not .a files.
11998	libext=lib
11999	# Tell ltmain to make .dll files, not .so files.
12000	shrext_cmds=.dll
12001	# FIXME: Setting linknames here is a bad hack.
12002	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12003	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12004            cp "$export_symbols" "$output_objdir/$soname.def";
12005            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12006          else
12007            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12008          fi~
12009          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12010          linknames='
12011	# The linker will not automatically build a static lib if we build a DLL.
12012	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12013	enable_shared_with_static_runtimes=yes
12014	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12015	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12016	# Don't use ranlib
12017	old_postinstall_cmds='chmod 644 $oldlib'
12018	postlink_cmds='lt_outputfile="@OUTPUT@"~
12019          lt_tool_outputfile="@TOOL_OUTPUT@"~
12020          case $lt_outputfile in
12021            *.exe|*.EXE) ;;
12022            *)
12023              lt_outputfile=$lt_outputfile.exe
12024              lt_tool_outputfile=$lt_tool_outputfile.exe
12025              ;;
12026          esac~
12027          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12028            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12029            $RM "$lt_outputfile.manifest";
12030          fi'
12031	;;
12032      *)
12033	# Assume MSVC wrapper
12034	hardcode_libdir_flag_spec=' '
12035	allow_undefined_flag=unsupported
12036	# Tell ltmain to make .lib files, not .a files.
12037	libext=lib
12038	# Tell ltmain to make .dll files, not .so files.
12039	shrext_cmds=.dll
12040	# FIXME: Setting linknames here is a bad hack.
12041	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12042	# The linker will automatically build a .lib file if we build a DLL.
12043	old_archive_from_new_cmds='true'
12044	# FIXME: Should let the user specify the lib program.
12045	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12046	enable_shared_with_static_runtimes=yes
12047	;;
12048      esac
12049      ;;
12050
12051    darwin* | rhapsody*)
12052
12053
12054  archive_cmds_need_lc=no
12055  hardcode_direct=no
12056  hardcode_automatic=yes
12057  hardcode_shlibpath_var=unsupported
12058  if test yes = "$lt_cv_ld_force_load"; then
12059    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\"`'
12060
12061  else
12062    whole_archive_flag_spec=''
12063  fi
12064  link_all_deplibs=yes
12065  allow_undefined_flag=$_lt_dar_allow_undefined
12066  case $cc_basename in
12067     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12068     *) _lt_dar_can_shared=$GCC ;;
12069  esac
12070  if test yes = "$_lt_dar_can_shared"; then
12071    output_verbose_link_cmd=func_echo_all
12072    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12073    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12074    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"
12075    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"
12076
12077  else
12078  ld_shlibs=no
12079  fi
12080
12081      ;;
12082
12083    dgux*)
12084      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12085      hardcode_libdir_flag_spec='-L$libdir'
12086      hardcode_shlibpath_var=no
12087      ;;
12088
12089    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12090    # support.  Future versions do this automatically, but an explicit c++rt0.o
12091    # does not break anything, and helps significantly (at the cost of a little
12092    # extra space).
12093    freebsd2.2*)
12094      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12095      hardcode_libdir_flag_spec='-R$libdir'
12096      hardcode_direct=yes
12097      hardcode_shlibpath_var=no
12098      ;;
12099
12100    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12101    freebsd2.*)
12102      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12103      hardcode_direct=yes
12104      hardcode_minus_L=yes
12105      hardcode_shlibpath_var=no
12106      ;;
12107
12108    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12109    freebsd* | dragonfly*)
12110      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12111      hardcode_libdir_flag_spec='-R$libdir'
12112      hardcode_direct=yes
12113      hardcode_shlibpath_var=no
12114      ;;
12115
12116    hpux9*)
12117      if test yes = "$GCC"; then
12118	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'
12119      else
12120	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'
12121      fi
12122      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12123      hardcode_libdir_separator=:
12124      hardcode_direct=yes
12125
12126      # hardcode_minus_L: Not really in the search PATH,
12127      # but as the default location of the library.
12128      hardcode_minus_L=yes
12129      export_dynamic_flag_spec='$wl-E'
12130      ;;
12131
12132    hpux10*)
12133      if test yes,no = "$GCC,$with_gnu_ld"; then
12134	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12135      else
12136	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12137      fi
12138      if test no = "$with_gnu_ld"; then
12139	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12140	hardcode_libdir_separator=:
12141	hardcode_direct=yes
12142	hardcode_direct_absolute=yes
12143	export_dynamic_flag_spec='$wl-E'
12144	# hardcode_minus_L: Not really in the search PATH,
12145	# but as the default location of the library.
12146	hardcode_minus_L=yes
12147      fi
12148      ;;
12149
12150    hpux11*)
12151      if test yes,no = "$GCC,$with_gnu_ld"; then
12152	case $host_cpu in
12153	hppa*64*)
12154	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12155	  ;;
12156	ia64*)
12157	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12158	  ;;
12159	*)
12160	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12161	  ;;
12162	esac
12163      else
12164	case $host_cpu in
12165	hppa*64*)
12166	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12167	  ;;
12168	ia64*)
12169	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12170	  ;;
12171	*)
12172
12173	  # Older versions of the 11.00 compiler do not understand -b yet
12174	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12175	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12176$as_echo_n "checking if $CC understands -b... " >&6; }
12177if ${lt_cv_prog_compiler__b+:} false; then :
12178  $as_echo_n "(cached) " >&6
12179else
12180  lt_cv_prog_compiler__b=no
12181   save_LDFLAGS=$LDFLAGS
12182   LDFLAGS="$LDFLAGS -b"
12183   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12184   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12185     # The linker can only warn and ignore the option if not recognized
12186     # So say no if there are warnings
12187     if test -s conftest.err; then
12188       # Append any errors to the config.log.
12189       cat conftest.err 1>&5
12190       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12191       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12192       if diff conftest.exp conftest.er2 >/dev/null; then
12193         lt_cv_prog_compiler__b=yes
12194       fi
12195     else
12196       lt_cv_prog_compiler__b=yes
12197     fi
12198   fi
12199   $RM -r conftest*
12200   LDFLAGS=$save_LDFLAGS
12201
12202fi
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12204$as_echo "$lt_cv_prog_compiler__b" >&6; }
12205
12206if test yes = "$lt_cv_prog_compiler__b"; then
12207    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12208else
12209    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12210fi
12211
12212	  ;;
12213	esac
12214      fi
12215      if test no = "$with_gnu_ld"; then
12216	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12217	hardcode_libdir_separator=:
12218
12219	case $host_cpu in
12220	hppa*64*|ia64*)
12221	  hardcode_direct=no
12222	  hardcode_shlibpath_var=no
12223	  ;;
12224	*)
12225	  hardcode_direct=yes
12226	  hardcode_direct_absolute=yes
12227	  export_dynamic_flag_spec='$wl-E'
12228
12229	  # hardcode_minus_L: Not really in the search PATH,
12230	  # but as the default location of the library.
12231	  hardcode_minus_L=yes
12232	  ;;
12233	esac
12234      fi
12235      ;;
12236
12237    irix5* | irix6* | nonstopux*)
12238      if test yes = "$GCC"; then
12239	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'
12240	# Try to use the -exported_symbol ld option, if it does not
12241	# work, assume that -exports_file does not work either and
12242	# implicitly export all symbols.
12243	# This should be the same for all languages, so no per-tag cache variable.
12244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12245$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12246if ${lt_cv_irix_exported_symbol+:} false; then :
12247  $as_echo_n "(cached) " >&6
12248else
12249  save_LDFLAGS=$LDFLAGS
12250	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12251	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252/* end confdefs.h.  */
12253int foo (void) { return 0; }
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256  lt_cv_irix_exported_symbol=yes
12257else
12258  lt_cv_irix_exported_symbol=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262           LDFLAGS=$save_LDFLAGS
12263fi
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12265$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12266	if test yes = "$lt_cv_irix_exported_symbol"; then
12267          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'
12268	fi
12269      else
12270	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'
12271	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'
12272      fi
12273      archive_cmds_need_lc='no'
12274      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12275      hardcode_libdir_separator=:
12276      inherit_rpath=yes
12277      link_all_deplibs=yes
12278      ;;
12279
12280    linux*)
12281      case $cc_basename in
12282      tcc*)
12283	# Fabrice Bellard et al's Tiny C Compiler
12284	ld_shlibs=yes
12285	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12286	;;
12287      esac
12288      ;;
12289
12290    netbsd*)
12291      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12292	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12293      else
12294	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12295      fi
12296      hardcode_libdir_flag_spec='-R$libdir'
12297      hardcode_direct=yes
12298      hardcode_shlibpath_var=no
12299      ;;
12300
12301    newsos6)
12302      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12303      hardcode_direct=yes
12304      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12305      hardcode_libdir_separator=:
12306      hardcode_shlibpath_var=no
12307      ;;
12308
12309    *nto* | *qnx*)
12310      ;;
12311
12312    openbsd* | bitrig*)
12313      if test -f /usr/libexec/ld.so; then
12314	hardcode_direct=yes
12315	hardcode_shlibpath_var=no
12316	hardcode_direct_absolute=yes
12317	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12318	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12319	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12320	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12321	  export_dynamic_flag_spec='$wl-E'
12322	else
12323	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12324	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12325	fi
12326      else
12327	ld_shlibs=no
12328      fi
12329      ;;
12330
12331    os2*)
12332      hardcode_libdir_flag_spec='-L$libdir'
12333      hardcode_minus_L=yes
12334      allow_undefined_flag=unsupported
12335      shrext_cmds=.dll
12336      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12337	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12338	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12339	$ECHO EXPORTS >> $output_objdir/$libname.def~
12340	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12341	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12342	emximp -o $lib $output_objdir/$libname.def'
12343      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12344	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12345	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12346	$ECHO EXPORTS >> $output_objdir/$libname.def~
12347	prefix_cmds="$SED"~
12348	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12349	  prefix_cmds="$prefix_cmds -e 1d";
12350	fi~
12351	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12352	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12353	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12354	emximp -o $lib $output_objdir/$libname.def'
12355      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12356      enable_shared_with_static_runtimes=yes
12357      ;;
12358
12359    osf3*)
12360      if test yes = "$GCC"; then
12361	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12362	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'
12363      else
12364	allow_undefined_flag=' -expect_unresolved \*'
12365	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'
12366      fi
12367      archive_cmds_need_lc='no'
12368      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12369      hardcode_libdir_separator=:
12370      ;;
12371
12372    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12373      if test yes = "$GCC"; then
12374	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12375	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'
12376	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12377      else
12378	allow_undefined_flag=' -expect_unresolved \*'
12379	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'
12380	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~
12381          $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'
12382
12383	# Both c and cxx compiler support -rpath directly
12384	hardcode_libdir_flag_spec='-rpath $libdir'
12385      fi
12386      archive_cmds_need_lc='no'
12387      hardcode_libdir_separator=:
12388      ;;
12389
12390    solaris*)
12391      no_undefined_flag=' -z defs'
12392      if test yes = "$GCC"; then
12393	wlarc='$wl'
12394	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12395	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12396          $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'
12397      else
12398	case `$CC -V 2>&1` in
12399	*"Compilers 5.0"*)
12400	  wlarc=''
12401	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12402	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12403            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12404	  ;;
12405	*)
12406	  wlarc='$wl'
12407	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12408	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12409            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12410	  ;;
12411	esac
12412      fi
12413      hardcode_libdir_flag_spec='-R$libdir'
12414      hardcode_shlibpath_var=no
12415      case $host_os in
12416      solaris2.[0-5] | solaris2.[0-5].*) ;;
12417      *)
12418	# The compiler driver will combine and reorder linker options,
12419	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12420	# but is careful enough not to reorder.
12421	# Supported since Solaris 2.6 (maybe 2.5.1?)
12422	if test yes = "$GCC"; then
12423	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12424	else
12425	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12426	fi
12427	;;
12428      esac
12429      link_all_deplibs=yes
12430      ;;
12431
12432    sunos4*)
12433      if test sequent = "$host_vendor"; then
12434	# Use $CC to link under sequent, because it throws in some extra .o
12435	# files that make .init and .fini sections work.
12436	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12437      else
12438	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12439      fi
12440      hardcode_libdir_flag_spec='-L$libdir'
12441      hardcode_direct=yes
12442      hardcode_minus_L=yes
12443      hardcode_shlibpath_var=no
12444      ;;
12445
12446    sysv4)
12447      case $host_vendor in
12448	sni)
12449	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12450	  hardcode_direct=yes # is this really true???
12451	;;
12452	siemens)
12453	  ## LD is ld it makes a PLAMLIB
12454	  ## CC just makes a GrossModule.
12455	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12456	  reload_cmds='$CC -r -o $output$reload_objs'
12457	  hardcode_direct=no
12458        ;;
12459	motorola)
12460	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12461	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12462	;;
12463      esac
12464      runpath_var='LD_RUN_PATH'
12465      hardcode_shlibpath_var=no
12466      ;;
12467
12468    sysv4.3*)
12469      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12470      hardcode_shlibpath_var=no
12471      export_dynamic_flag_spec='-Bexport'
12472      ;;
12473
12474    sysv4*MP*)
12475      if test -d /usr/nec; then
12476	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12477	hardcode_shlibpath_var=no
12478	runpath_var=LD_RUN_PATH
12479	hardcode_runpath_var=yes
12480	ld_shlibs=yes
12481      fi
12482      ;;
12483
12484    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12485      no_undefined_flag='$wl-z,text'
12486      archive_cmds_need_lc=no
12487      hardcode_shlibpath_var=no
12488      runpath_var='LD_RUN_PATH'
12489
12490      if test yes = "$GCC"; then
12491	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12492	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12493      else
12494	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12495	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12496      fi
12497      ;;
12498
12499    sysv5* | sco3.2v5* | sco5v6*)
12500      # Note: We CANNOT use -z defs as we might desire, because we do not
12501      # link with -lc, and that would cause any symbols used from libc to
12502      # always be unresolved, which means just about no library would
12503      # ever link correctly.  If we're not using GNU ld we use -z text
12504      # though, which does catch some bad symbols but isn't as heavy-handed
12505      # as -z defs.
12506      no_undefined_flag='$wl-z,text'
12507      allow_undefined_flag='$wl-z,nodefs'
12508      archive_cmds_need_lc=no
12509      hardcode_shlibpath_var=no
12510      hardcode_libdir_flag_spec='$wl-R,$libdir'
12511      hardcode_libdir_separator=':'
12512      link_all_deplibs=yes
12513      export_dynamic_flag_spec='$wl-Bexport'
12514      runpath_var='LD_RUN_PATH'
12515
12516      if test yes = "$GCC"; then
12517	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12518	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12519      else
12520	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12521	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12522      fi
12523      ;;
12524
12525    uts4*)
12526      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12527      hardcode_libdir_flag_spec='-L$libdir'
12528      hardcode_shlibpath_var=no
12529      ;;
12530
12531    *)
12532      ld_shlibs=no
12533      ;;
12534    esac
12535
12536    if test sni = "$host_vendor"; then
12537      case $host in
12538      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12539	export_dynamic_flag_spec='$wl-Blargedynsym'
12540	;;
12541      esac
12542    fi
12543  fi
12544
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12546$as_echo "$ld_shlibs" >&6; }
12547test no = "$ld_shlibs" && can_build_shared=no
12548
12549with_gnu_ld=$with_gnu_ld
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565#
12566# Do we need to explicitly link libc?
12567#
12568case "x$archive_cmds_need_lc" in
12569x|xyes)
12570  # Assume -lc should be added
12571  archive_cmds_need_lc=yes
12572
12573  if test yes,yes = "$GCC,$enable_shared"; then
12574    case $archive_cmds in
12575    *'~'*)
12576      # FIXME: we may have to deal with multi-command sequences.
12577      ;;
12578    '$CC '*)
12579      # Test whether the compiler implicitly links with -lc since on some
12580      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12581      # to ld, don't add -lc before -lgcc.
12582      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12583$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12584if ${lt_cv_archive_cmds_need_lc+:} false; then :
12585  $as_echo_n "(cached) " >&6
12586else
12587  $RM conftest*
12588	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12589
12590	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12591  (eval $ac_compile) 2>&5
12592  ac_status=$?
12593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12594  test $ac_status = 0; } 2>conftest.err; then
12595	  soname=conftest
12596	  lib=conftest
12597	  libobjs=conftest.$ac_objext
12598	  deplibs=
12599	  wl=$lt_prog_compiler_wl
12600	  pic_flag=$lt_prog_compiler_pic
12601	  compiler_flags=-v
12602	  linker_flags=-v
12603	  verstring=
12604	  output_objdir=.
12605	  libname=conftest
12606	  lt_save_allow_undefined_flag=$allow_undefined_flag
12607	  allow_undefined_flag=
12608	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12609  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12610  ac_status=$?
12611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612  test $ac_status = 0; }
12613	  then
12614	    lt_cv_archive_cmds_need_lc=no
12615	  else
12616	    lt_cv_archive_cmds_need_lc=yes
12617	  fi
12618	  allow_undefined_flag=$lt_save_allow_undefined_flag
12619	else
12620	  cat conftest.err 1>&5
12621	fi
12622	$RM conftest*
12623
12624fi
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12626$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12627      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12628      ;;
12629    esac
12630  fi
12631  ;;
12632esac
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12786$as_echo_n "checking dynamic linker characteristics... " >&6; }
12787
12788if test yes = "$GCC"; then
12789  case $host_os in
12790    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12791    *) lt_awk_arg='/^libraries:/' ;;
12792  esac
12793  case $host_os in
12794    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12795    *) lt_sed_strip_eq='s|=/|/|g' ;;
12796  esac
12797  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12798  case $lt_search_path_spec in
12799  *\;*)
12800    # if the path contains ";" then we assume it to be the separator
12801    # otherwise default to the standard path separator (i.e. ":") - it is
12802    # assumed that no part of a normal pathname contains ";" but that should
12803    # okay in the real world where ";" in dirpaths is itself problematic.
12804    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12805    ;;
12806  *)
12807    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12808    ;;
12809  esac
12810  # Ok, now we have the path, separated by spaces, we can step through it
12811  # and add multilib dir if necessary...
12812  lt_tmp_lt_search_path_spec=
12813  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12814  # ...but if some path component already ends with the multilib dir we assume
12815  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12816  case "$lt_multi_os_dir; $lt_search_path_spec " in
12817  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12818    lt_multi_os_dir=
12819    ;;
12820  esac
12821  for lt_sys_path in $lt_search_path_spec; do
12822    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12823      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12824    elif test -n "$lt_multi_os_dir"; then
12825      test -d "$lt_sys_path" && \
12826	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12827    fi
12828  done
12829  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12830BEGIN {RS = " "; FS = "/|\n";} {
12831  lt_foo = "";
12832  lt_count = 0;
12833  for (lt_i = NF; lt_i > 0; lt_i--) {
12834    if ($lt_i != "" && $lt_i != ".") {
12835      if ($lt_i == "..") {
12836        lt_count++;
12837      } else {
12838        if (lt_count == 0) {
12839          lt_foo = "/" $lt_i lt_foo;
12840        } else {
12841          lt_count--;
12842        }
12843      }
12844    }
12845  }
12846  if (lt_foo != "") { lt_freq[lt_foo]++; }
12847  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12848}'`
12849  # AWK program above erroneously prepends '/' to C:/dos/paths
12850  # for these hosts.
12851  case $host_os in
12852    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12853      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12854  esac
12855  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12856else
12857  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12858fi
12859library_names_spec=
12860libname_spec='lib$name'
12861soname_spec=
12862shrext_cmds=.so
12863postinstall_cmds=
12864postuninstall_cmds=
12865finish_cmds=
12866finish_eval=
12867shlibpath_var=
12868shlibpath_overrides_runpath=unknown
12869version_type=none
12870dynamic_linker="$host_os ld.so"
12871sys_lib_dlsearch_path_spec="/lib /usr/lib"
12872need_lib_prefix=unknown
12873hardcode_into_libs=no
12874
12875# when you set need_version to no, make sure it does not cause -set_version
12876# flags to be left without arguments
12877need_version=unknown
12878
12879
12880
12881case $host_os in
12882aix3*)
12883  version_type=linux # correct to gnu/linux during the next big refactor
12884  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12885  shlibpath_var=LIBPATH
12886
12887  # AIX 3 has no versioning support, so we append a major version to the name.
12888  soname_spec='$libname$release$shared_ext$major'
12889  ;;
12890
12891aix[4-9]*)
12892  version_type=linux # correct to gnu/linux during the next big refactor
12893  need_lib_prefix=no
12894  need_version=no
12895  hardcode_into_libs=yes
12896  if test ia64 = "$host_cpu"; then
12897    # AIX 5 supports IA64
12898    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12899    shlibpath_var=LD_LIBRARY_PATH
12900  else
12901    # With GCC up to 2.95.x, collect2 would create an import file
12902    # for dependence libraries.  The import file would start with
12903    # the line '#! .'.  This would cause the generated library to
12904    # depend on '.', always an invalid library.  This was fixed in
12905    # development snapshots of GCC prior to 3.0.
12906    case $host_os in
12907      aix4 | aix4.[01] | aix4.[01].*)
12908      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12909	   echo ' yes '
12910	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12911	:
12912      else
12913	can_build_shared=no
12914      fi
12915      ;;
12916    esac
12917    # Using Import Files as archive members, it is possible to support
12918    # filename-based versioning of shared library archives on AIX. While
12919    # this would work for both with and without runtime linking, it will
12920    # prevent static linking of such archives. So we do filename-based
12921    # shared library versioning with .so extension only, which is used
12922    # when both runtime linking and shared linking is enabled.
12923    # Unfortunately, runtime linking may impact performance, so we do
12924    # not want this to be the default eventually. Also, we use the
12925    # versioned .so libs for executables only if there is the -brtl
12926    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12927    # To allow for filename-based versioning support, we need to create
12928    # libNAME.so.V as an archive file, containing:
12929    # *) an Import File, referring to the versioned filename of the
12930    #    archive as well as the shared archive member, telling the
12931    #    bitwidth (32 or 64) of that shared object, and providing the
12932    #    list of exported symbols of that shared object, eventually
12933    #    decorated with the 'weak' keyword
12934    # *) the shared object with the F_LOADONLY flag set, to really avoid
12935    #    it being seen by the linker.
12936    # At run time we better use the real file rather than another symlink,
12937    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12938
12939    case $with_aix_soname,$aix_use_runtimelinking in
12940    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12941    # soname into executable. Probably we can add versioning support to
12942    # collect2, so additional links can be useful in future.
12943    aix,yes) # traditional libtool
12944      dynamic_linker='AIX unversionable lib.so'
12945      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12946      # instead of lib<name>.a to let people know that these are not
12947      # typical AIX shared libraries.
12948      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12949      ;;
12950    aix,no) # traditional AIX only
12951      dynamic_linker='AIX lib.a(lib.so.V)'
12952      # We preserve .a as extension for shared libraries through AIX4.2
12953      # and later when we are not doing run time linking.
12954      library_names_spec='$libname$release.a $libname.a'
12955      soname_spec='$libname$release$shared_ext$major'
12956      ;;
12957    svr4,*) # full svr4 only
12958      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12959      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12960      # We do not specify a path in Import Files, so LIBPATH fires.
12961      shlibpath_overrides_runpath=yes
12962      ;;
12963    *,yes) # both, prefer svr4
12964      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12965      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12966      # unpreferred sharedlib libNAME.a needs extra handling
12967      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"'
12968      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"'
12969      # We do not specify a path in Import Files, so LIBPATH fires.
12970      shlibpath_overrides_runpath=yes
12971      ;;
12972    *,no) # both, prefer aix
12973      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12974      library_names_spec='$libname$release.a $libname.a'
12975      soname_spec='$libname$release$shared_ext$major'
12976      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12977      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)'
12978      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"'
12979      ;;
12980    esac
12981    shlibpath_var=LIBPATH
12982  fi
12983  ;;
12984
12985amigaos*)
12986  case $host_cpu in
12987  powerpc)
12988    # Since July 2007 AmigaOS4 officially supports .so libraries.
12989    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12990    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12991    ;;
12992  m68k)
12993    library_names_spec='$libname.ixlibrary $libname.a'
12994    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12995    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'
12996    ;;
12997  esac
12998  ;;
12999
13000beos*)
13001  library_names_spec='$libname$shared_ext'
13002  dynamic_linker="$host_os ld.so"
13003  shlibpath_var=LIBRARY_PATH
13004  ;;
13005
13006bsdi[45]*)
13007  version_type=linux # correct to gnu/linux during the next big refactor
13008  need_version=no
13009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010  soname_spec='$libname$release$shared_ext$major'
13011  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13012  shlibpath_var=LD_LIBRARY_PATH
13013  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13014  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13015  # the default ld.so.conf also contains /usr/contrib/lib and
13016  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13017  # libtool to hard-code these into programs
13018  ;;
13019
13020cygwin* | mingw* | pw32* | cegcc*)
13021  version_type=windows
13022  shrext_cmds=.dll
13023  need_version=no
13024  need_lib_prefix=no
13025
13026  case $GCC,$cc_basename in
13027  yes,*)
13028    # gcc
13029    library_names_spec='$libname.dll.a'
13030    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13031    postinstall_cmds='base_file=`basename \$file`~
13032      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13033      dldir=$destdir/`dirname \$dlpath`~
13034      test -d \$dldir || mkdir -p \$dldir~
13035      $install_prog $dir/$dlname \$dldir/$dlname~
13036      chmod a+x \$dldir/$dlname~
13037      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13038        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13039      fi'
13040    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13041      dlpath=$dir/\$dldll~
13042       $RM \$dlpath'
13043    shlibpath_overrides_runpath=yes
13044
13045    case $host_os in
13046    cygwin*)
13047      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13048      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13049
13050      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13051      ;;
13052    mingw* | cegcc*)
13053      # MinGW DLLs use traditional 'lib' prefix
13054      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13055      ;;
13056    pw32*)
13057      # pw32 DLLs use 'pw' prefix rather than 'lib'
13058      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13059      ;;
13060    esac
13061    dynamic_linker='Win32 ld.exe'
13062    ;;
13063
13064  *,cl*)
13065    # Native MSVC
13066    libname_spec='$name'
13067    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13068    library_names_spec='$libname.dll.lib'
13069
13070    case $build_os in
13071    mingw*)
13072      sys_lib_search_path_spec=
13073      lt_save_ifs=$IFS
13074      IFS=';'
13075      for lt_path in $LIB
13076      do
13077        IFS=$lt_save_ifs
13078        # Let DOS variable expansion print the short 8.3 style file name.
13079        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13080        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13081      done
13082      IFS=$lt_save_ifs
13083      # Convert to MSYS style.
13084      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13085      ;;
13086    cygwin*)
13087      # Convert to unix form, then to dos form, then back to unix form
13088      # but this time dos style (no spaces!) so that the unix form looks
13089      # like /cygdrive/c/PROGRA~1:/cygdr...
13090      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13091      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13092      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13093      ;;
13094    *)
13095      sys_lib_search_path_spec=$LIB
13096      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13097        # It is most probably a Windows format PATH.
13098        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13099      else
13100        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13101      fi
13102      # FIXME: find the short name or the path components, as spaces are
13103      # common. (e.g. "Program Files" -> "PROGRA~1")
13104      ;;
13105    esac
13106
13107    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13108    postinstall_cmds='base_file=`basename \$file`~
13109      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13110      dldir=$destdir/`dirname \$dlpath`~
13111      test -d \$dldir || mkdir -p \$dldir~
13112      $install_prog $dir/$dlname \$dldir/$dlname'
13113    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13114      dlpath=$dir/\$dldll~
13115       $RM \$dlpath'
13116    shlibpath_overrides_runpath=yes
13117    dynamic_linker='Win32 link.exe'
13118    ;;
13119
13120  *)
13121    # Assume MSVC wrapper
13122    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13123    dynamic_linker='Win32 ld.exe'
13124    ;;
13125  esac
13126  # FIXME: first we should search . and the directory the executable is in
13127  shlibpath_var=PATH
13128  ;;
13129
13130darwin* | rhapsody*)
13131  dynamic_linker="$host_os dyld"
13132  version_type=darwin
13133  need_lib_prefix=no
13134  need_version=no
13135  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13136  soname_spec='$libname$release$major$shared_ext'
13137  shlibpath_overrides_runpath=yes
13138  shlibpath_var=DYLD_LIBRARY_PATH
13139  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13140
13141  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13142  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13143  ;;
13144
13145dgux*)
13146  version_type=linux # correct to gnu/linux during the next big refactor
13147  need_lib_prefix=no
13148  need_version=no
13149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13150  soname_spec='$libname$release$shared_ext$major'
13151  shlibpath_var=LD_LIBRARY_PATH
13152  ;;
13153
13154freebsd* | dragonfly*)
13155  # DragonFly does not have aout.  When/if they implement a new
13156  # versioning mechanism, adjust this.
13157  if test -x /usr/bin/objformat; then
13158    objformat=`/usr/bin/objformat`
13159  else
13160    case $host_os in
13161    freebsd[23].*) objformat=aout ;;
13162    *) objformat=elf ;;
13163    esac
13164  fi
13165  version_type=freebsd-$objformat
13166  case $version_type in
13167    freebsd-elf*)
13168      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13169      soname_spec='$libname$release$shared_ext$major'
13170      need_version=no
13171      need_lib_prefix=no
13172      ;;
13173    freebsd-*)
13174      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13175      need_version=yes
13176      ;;
13177  esac
13178  shlibpath_var=LD_LIBRARY_PATH
13179  case $host_os in
13180  freebsd2.*)
13181    shlibpath_overrides_runpath=yes
13182    ;;
13183  freebsd3.[01]* | freebsdelf3.[01]*)
13184    shlibpath_overrides_runpath=yes
13185    hardcode_into_libs=yes
13186    ;;
13187  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189    shlibpath_overrides_runpath=no
13190    hardcode_into_libs=yes
13191    ;;
13192  *) # from 4.6 on, and DragonFly
13193    shlibpath_overrides_runpath=yes
13194    hardcode_into_libs=yes
13195    ;;
13196  esac
13197  ;;
13198
13199haiku*)
13200  version_type=linux # correct to gnu/linux during the next big refactor
13201  need_lib_prefix=no
13202  need_version=no
13203  dynamic_linker="$host_os runtime_loader"
13204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205  soname_spec='$libname$release$shared_ext$major'
13206  shlibpath_var=LIBRARY_PATH
13207  shlibpath_overrides_runpath=no
13208  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13209  hardcode_into_libs=yes
13210  ;;
13211
13212hpux9* | hpux10* | hpux11*)
13213  # Give a soname corresponding to the major version so that dld.sl refuses to
13214  # link against other versions.
13215  version_type=sunos
13216  need_lib_prefix=no
13217  need_version=no
13218  case $host_cpu in
13219  ia64*)
13220    shrext_cmds='.so'
13221    hardcode_into_libs=yes
13222    dynamic_linker="$host_os dld.so"
13223    shlibpath_var=LD_LIBRARY_PATH
13224    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226    soname_spec='$libname$release$shared_ext$major'
13227    if test 32 = "$HPUX_IA64_MODE"; then
13228      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13229      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13230    else
13231      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13232      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13233    fi
13234    ;;
13235  hppa*64*)
13236    shrext_cmds='.sl'
13237    hardcode_into_libs=yes
13238    dynamic_linker="$host_os dld.sl"
13239    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13241    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13242    soname_spec='$libname$release$shared_ext$major'
13243    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13244    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13245    ;;
13246  *)
13247    shrext_cmds='.sl'
13248    dynamic_linker="$host_os dld.sl"
13249    shlibpath_var=SHLIB_PATH
13250    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13251    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13252    soname_spec='$libname$release$shared_ext$major'
13253    ;;
13254  esac
13255  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13256  postinstall_cmds='chmod 555 $lib'
13257  # or fails outright, so override atomically:
13258  install_override_mode=555
13259  ;;
13260
13261interix[3-9]*)
13262  version_type=linux # correct to gnu/linux during the next big refactor
13263  need_lib_prefix=no
13264  need_version=no
13265  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13266  soname_spec='$libname$release$shared_ext$major'
13267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13268  shlibpath_var=LD_LIBRARY_PATH
13269  shlibpath_overrides_runpath=no
13270  hardcode_into_libs=yes
13271  ;;
13272
13273irix5* | irix6* | nonstopux*)
13274  case $host_os in
13275    nonstopux*) version_type=nonstopux ;;
13276    *)
13277	if test yes = "$lt_cv_prog_gnu_ld"; then
13278		version_type=linux # correct to gnu/linux during the next big refactor
13279	else
13280		version_type=irix
13281	fi ;;
13282  esac
13283  need_lib_prefix=no
13284  need_version=no
13285  soname_spec='$libname$release$shared_ext$major'
13286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13287  case $host_os in
13288  irix5* | nonstopux*)
13289    libsuff= shlibsuff=
13290    ;;
13291  *)
13292    case $LD in # libtool.m4 will add one of these switches to LD
13293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13294      libsuff= shlibsuff= libmagic=32-bit;;
13295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13296      libsuff=32 shlibsuff=N32 libmagic=N32;;
13297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13299    *) libsuff= shlibsuff= libmagic=never-match;;
13300    esac
13301    ;;
13302  esac
13303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13304  shlibpath_overrides_runpath=no
13305  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13306  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13307  hardcode_into_libs=yes
13308  ;;
13309
13310# No shared lib support for Linux oldld, aout, or coff.
13311linux*oldld* | linux*aout* | linux*coff*)
13312  dynamic_linker=no
13313  ;;
13314
13315linux*android*)
13316  version_type=none # Android doesn't support versioned libraries.
13317  need_lib_prefix=no
13318  need_version=no
13319  library_names_spec='$libname$release$shared_ext'
13320  soname_spec='$libname$release$shared_ext'
13321  finish_cmds=
13322  shlibpath_var=LD_LIBRARY_PATH
13323  shlibpath_overrides_runpath=yes
13324
13325  # This implies no fast_install, which is unacceptable.
13326  # Some rework will be needed to allow for fast_install
13327  # before this can be enabled.
13328  hardcode_into_libs=yes
13329
13330  dynamic_linker='Android linker'
13331  # Don't embed -rpath directories since the linker doesn't support them.
13332  hardcode_libdir_flag_spec='-L$libdir'
13333  ;;
13334
13335# This must be glibc/ELF.
13336linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13337  version_type=linux # correct to gnu/linux during the next big refactor
13338  need_lib_prefix=no
13339  need_version=no
13340  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13341  soname_spec='$libname$release$shared_ext$major'
13342  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13343  shlibpath_var=LD_LIBRARY_PATH
13344  shlibpath_overrides_runpath=no
13345
13346  # Some binutils ld are patched to set DT_RUNPATH
13347  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13348  $as_echo_n "(cached) " >&6
13349else
13350  lt_cv_shlibpath_overrides_runpath=no
13351    save_LDFLAGS=$LDFLAGS
13352    save_libdir=$libdir
13353    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13354	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h.  */
13357
13358int
13359main ()
13360{
13361
13362  ;
13363  return 0;
13364}
13365_ACEOF
13366if ac_fn_c_try_link "$LINENO"; then :
13367  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13368  lt_cv_shlibpath_overrides_runpath=yes
13369fi
13370fi
13371rm -f core conftest.err conftest.$ac_objext \
13372    conftest$ac_exeext conftest.$ac_ext
13373    LDFLAGS=$save_LDFLAGS
13374    libdir=$save_libdir
13375
13376fi
13377
13378  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13379
13380  # This implies no fast_install, which is unacceptable.
13381  # Some rework will be needed to allow for fast_install
13382  # before this can be enabled.
13383  hardcode_into_libs=yes
13384
13385  # Add ABI-specific directories to the system library path.
13386  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13387
13388  # Ideally, we could use ldconfig to report *all* directores which are
13389  # searched for libraries, however this is still not possible.  Aside from not
13390  # being certain /sbin/ldconfig is available, command
13391  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13392  # even though it is searched at run-time.  Try to do the best guess by
13393  # appending ld.so.conf contents (and includes) to the search path.
13394  if test -f /etc/ld.so.conf; then
13395    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' ' '`
13396    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13397  fi
13398
13399  # We used to test for /lib/ld.so.1 and disable shared libraries on
13400  # powerpc, because MkLinux only supported shared libraries with the
13401  # GNU dynamic linker.  Since this was broken with cross compilers,
13402  # most powerpc-linux boxes support dynamic linking these days and
13403  # people can always --disable-shared, the test was removed, and we
13404  # assume the GNU/Linux dynamic linker is in use.
13405  dynamic_linker='GNU/Linux ld.so'
13406  ;;
13407
13408netbsd*)
13409  version_type=sunos
13410  need_lib_prefix=no
13411  need_version=no
13412  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13413    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13414    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13415    dynamic_linker='NetBSD (a.out) ld.so'
13416  else
13417    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418    soname_spec='$libname$release$shared_ext$major'
13419    dynamic_linker='NetBSD ld.elf_so'
13420  fi
13421  shlibpath_var=LD_LIBRARY_PATH
13422  shlibpath_overrides_runpath=yes
13423  hardcode_into_libs=yes
13424  ;;
13425
13426newsos6)
13427  version_type=linux # correct to gnu/linux during the next big refactor
13428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429  shlibpath_var=LD_LIBRARY_PATH
13430  shlibpath_overrides_runpath=yes
13431  ;;
13432
13433*nto* | *qnx*)
13434  version_type=qnx
13435  need_lib_prefix=no
13436  need_version=no
13437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13438  soname_spec='$libname$release$shared_ext$major'
13439  shlibpath_var=LD_LIBRARY_PATH
13440  shlibpath_overrides_runpath=no
13441  hardcode_into_libs=yes
13442  dynamic_linker='ldqnx.so'
13443  ;;
13444
13445openbsd* | bitrig*)
13446  version_type=sunos
13447  sys_lib_dlsearch_path_spec=/usr/lib
13448  need_lib_prefix=no
13449  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13450    need_version=no
13451  else
13452    need_version=yes
13453  fi
13454  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13455  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13456  shlibpath_var=LD_LIBRARY_PATH
13457  shlibpath_overrides_runpath=yes
13458  ;;
13459
13460os2*)
13461  libname_spec='$name'
13462  version_type=windows
13463  shrext_cmds=.dll
13464  need_version=no
13465  need_lib_prefix=no
13466  # OS/2 can only load a DLL with a base name of 8 characters or less.
13467  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13468    v=$($ECHO $release$versuffix | tr -d .-);
13469    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13470    $ECHO $n$v`$shared_ext'
13471  library_names_spec='${libname}_dll.$libext'
13472  dynamic_linker='OS/2 ld.exe'
13473  shlibpath_var=BEGINLIBPATH
13474  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13475  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476  postinstall_cmds='base_file=`basename \$file`~
13477    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13478    dldir=$destdir/`dirname \$dlpath`~
13479    test -d \$dldir || mkdir -p \$dldir~
13480    $install_prog $dir/$dlname \$dldir/$dlname~
13481    chmod a+x \$dldir/$dlname~
13482    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13483      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13484    fi'
13485  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13486    dlpath=$dir/\$dldll~
13487    $RM \$dlpath'
13488  ;;
13489
13490osf3* | osf4* | osf5*)
13491  version_type=osf
13492  need_lib_prefix=no
13493  need_version=no
13494  soname_spec='$libname$release$shared_ext$major'
13495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13496  shlibpath_var=LD_LIBRARY_PATH
13497  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13498  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13499  ;;
13500
13501rdos*)
13502  dynamic_linker=no
13503  ;;
13504
13505solaris*)
13506  version_type=linux # correct to gnu/linux during the next big refactor
13507  need_lib_prefix=no
13508  need_version=no
13509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510  soname_spec='$libname$release$shared_ext$major'
13511  shlibpath_var=LD_LIBRARY_PATH
13512  shlibpath_overrides_runpath=yes
13513  hardcode_into_libs=yes
13514  # ldd complains unless libraries are executable
13515  postinstall_cmds='chmod +x $lib'
13516  ;;
13517
13518sunos4*)
13519  version_type=sunos
13520  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13521  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=yes
13524  if test yes = "$with_gnu_ld"; then
13525    need_lib_prefix=no
13526  fi
13527  need_version=yes
13528  ;;
13529
13530sysv4 | sysv4.3*)
13531  version_type=linux # correct to gnu/linux during the next big refactor
13532  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13533  soname_spec='$libname$release$shared_ext$major'
13534  shlibpath_var=LD_LIBRARY_PATH
13535  case $host_vendor in
13536    sni)
13537      shlibpath_overrides_runpath=no
13538      need_lib_prefix=no
13539      runpath_var=LD_RUN_PATH
13540      ;;
13541    siemens)
13542      need_lib_prefix=no
13543      ;;
13544    motorola)
13545      need_lib_prefix=no
13546      need_version=no
13547      shlibpath_overrides_runpath=no
13548      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13549      ;;
13550  esac
13551  ;;
13552
13553sysv4*MP*)
13554  if test -d /usr/nec; then
13555    version_type=linux # correct to gnu/linux during the next big refactor
13556    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13557    soname_spec='$libname$shared_ext.$major'
13558    shlibpath_var=LD_LIBRARY_PATH
13559  fi
13560  ;;
13561
13562sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13563  version_type=sco
13564  need_lib_prefix=no
13565  need_version=no
13566  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13567  soname_spec='$libname$release$shared_ext$major'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  shlibpath_overrides_runpath=yes
13570  hardcode_into_libs=yes
13571  if test yes = "$with_gnu_ld"; then
13572    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13573  else
13574    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13575    case $host_os in
13576      sco3.2v5*)
13577        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13578	;;
13579    esac
13580  fi
13581  sys_lib_dlsearch_path_spec='/usr/lib'
13582  ;;
13583
13584tpf*)
13585  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13586  version_type=linux # correct to gnu/linux during the next big refactor
13587  need_lib_prefix=no
13588  need_version=no
13589  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13590  shlibpath_var=LD_LIBRARY_PATH
13591  shlibpath_overrides_runpath=no
13592  hardcode_into_libs=yes
13593  ;;
13594
13595uts4*)
13596  version_type=linux # correct to gnu/linux during the next big refactor
13597  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13598  soname_spec='$libname$release$shared_ext$major'
13599  shlibpath_var=LD_LIBRARY_PATH
13600  ;;
13601
13602*)
13603  dynamic_linker=no
13604  ;;
13605esac
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13607$as_echo "$dynamic_linker" >&6; }
13608test no = "$dynamic_linker" && can_build_shared=no
13609
13610variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611if test yes = "$GCC"; then
13612  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13613fi
13614
13615if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13616  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13617fi
13618
13619if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13620  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13621fi
13622
13623# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13624configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13625
13626# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13627func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13628
13629# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13630configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13729$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13730hardcode_action=
13731if test -n "$hardcode_libdir_flag_spec" ||
13732   test -n "$runpath_var" ||
13733   test yes = "$hardcode_automatic"; then
13734
13735  # We can hardcode non-existent directories.
13736  if test no != "$hardcode_direct" &&
13737     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13738     # have to relink, otherwise we might link with an installed library
13739     # when we should be linking with a yet-to-be-installed one
13740     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13741     test no != "$hardcode_minus_L"; then
13742    # Linking always hardcodes the temporary library directory.
13743    hardcode_action=relink
13744  else
13745    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13746    hardcode_action=immediate
13747  fi
13748else
13749  # We cannot hardcode anything, or else we can only hardcode existing
13750  # directories.
13751  hardcode_action=unsupported
13752fi
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13754$as_echo "$hardcode_action" >&6; }
13755
13756if test relink = "$hardcode_action" ||
13757   test yes = "$inherit_rpath"; then
13758  # Fast installation is not supported
13759  enable_fast_install=no
13760elif test yes = "$shlibpath_overrides_runpath" ||
13761     test no = "$enable_shared"; then
13762  # Fast installation is not necessary
13763  enable_fast_install=needless
13764fi
13765
13766
13767
13768
13769
13770
13771  if test yes != "$enable_dlopen"; then
13772  enable_dlopen=unknown
13773  enable_dlopen_self=unknown
13774  enable_dlopen_self_static=unknown
13775else
13776  lt_cv_dlopen=no
13777  lt_cv_dlopen_libs=
13778
13779  case $host_os in
13780  beos*)
13781    lt_cv_dlopen=load_add_on
13782    lt_cv_dlopen_libs=
13783    lt_cv_dlopen_self=yes
13784    ;;
13785
13786  mingw* | pw32* | cegcc*)
13787    lt_cv_dlopen=LoadLibrary
13788    lt_cv_dlopen_libs=
13789    ;;
13790
13791  cygwin*)
13792    lt_cv_dlopen=dlopen
13793    lt_cv_dlopen_libs=
13794    ;;
13795
13796  darwin*)
13797    # if libdl is installed we need to link against it
13798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13799$as_echo_n "checking for dlopen in -ldl... " >&6; }
13800if ${ac_cv_lib_dl_dlopen+:} false; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  ac_check_lib_save_LIBS=$LIBS
13804LIBS="-ldl  $LIBS"
13805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806/* end confdefs.h.  */
13807
13808/* Override any GCC internal prototype to avoid an error.
13809   Use char because int might match the return type of a GCC
13810   builtin and then its argument prototype would still apply.  */
13811#ifdef __cplusplus
13812extern "C"
13813#endif
13814char dlopen ();
13815int
13816main ()
13817{
13818return dlopen ();
13819  ;
13820  return 0;
13821}
13822_ACEOF
13823if ac_fn_c_try_link "$LINENO"; then :
13824  ac_cv_lib_dl_dlopen=yes
13825else
13826  ac_cv_lib_dl_dlopen=no
13827fi
13828rm -f core conftest.err conftest.$ac_objext \
13829    conftest$ac_exeext conftest.$ac_ext
13830LIBS=$ac_check_lib_save_LIBS
13831fi
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13833$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13834if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13835  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13836else
13837
13838    lt_cv_dlopen=dyld
13839    lt_cv_dlopen_libs=
13840    lt_cv_dlopen_self=yes
13841
13842fi
13843
13844    ;;
13845
13846  tpf*)
13847    # Don't try to run any link tests for TPF.  We know it's impossible
13848    # because TPF is a cross-compiler, and we know how we open DSOs.
13849    lt_cv_dlopen=dlopen
13850    lt_cv_dlopen_libs=
13851    lt_cv_dlopen_self=no
13852    ;;
13853
13854  *)
13855    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13856if test "x$ac_cv_func_shl_load" = xyes; then :
13857  lt_cv_dlopen=shl_load
13858else
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13860$as_echo_n "checking for shl_load in -ldld... " >&6; }
13861if ${ac_cv_lib_dld_shl_load+:} false; then :
13862  $as_echo_n "(cached) " >&6
13863else
13864  ac_check_lib_save_LIBS=$LIBS
13865LIBS="-ldld  $LIBS"
13866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868
13869/* Override any GCC internal prototype to avoid an error.
13870   Use char because int might match the return type of a GCC
13871   builtin and then its argument prototype would still apply.  */
13872#ifdef __cplusplus
13873extern "C"
13874#endif
13875char shl_load ();
13876int
13877main ()
13878{
13879return shl_load ();
13880  ;
13881  return 0;
13882}
13883_ACEOF
13884if ac_fn_c_try_link "$LINENO"; then :
13885  ac_cv_lib_dld_shl_load=yes
13886else
13887  ac_cv_lib_dld_shl_load=no
13888fi
13889rm -f core conftest.err conftest.$ac_objext \
13890    conftest$ac_exeext conftest.$ac_ext
13891LIBS=$ac_check_lib_save_LIBS
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13894$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13895if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13896  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13897else
13898  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13899if test "x$ac_cv_func_dlopen" = xyes; then :
13900  lt_cv_dlopen=dlopen
13901else
13902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13903$as_echo_n "checking for dlopen in -ldl... " >&6; }
13904if ${ac_cv_lib_dl_dlopen+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907  ac_check_lib_save_LIBS=$LIBS
13908LIBS="-ldl  $LIBS"
13909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911
13912/* Override any GCC internal prototype to avoid an error.
13913   Use char because int might match the return type of a GCC
13914   builtin and then its argument prototype would still apply.  */
13915#ifdef __cplusplus
13916extern "C"
13917#endif
13918char dlopen ();
13919int
13920main ()
13921{
13922return dlopen ();
13923  ;
13924  return 0;
13925}
13926_ACEOF
13927if ac_fn_c_try_link "$LINENO"; then :
13928  ac_cv_lib_dl_dlopen=yes
13929else
13930  ac_cv_lib_dl_dlopen=no
13931fi
13932rm -f core conftest.err conftest.$ac_objext \
13933    conftest$ac_exeext conftest.$ac_ext
13934LIBS=$ac_check_lib_save_LIBS
13935fi
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13938if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13939  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13940else
13941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13942$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13943if ${ac_cv_lib_svld_dlopen+:} false; then :
13944  $as_echo_n "(cached) " >&6
13945else
13946  ac_check_lib_save_LIBS=$LIBS
13947LIBS="-lsvld  $LIBS"
13948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h.  */
13950
13951/* Override any GCC internal prototype to avoid an error.
13952   Use char because int might match the return type of a GCC
13953   builtin and then its argument prototype would still apply.  */
13954#ifdef __cplusplus
13955extern "C"
13956#endif
13957char dlopen ();
13958int
13959main ()
13960{
13961return dlopen ();
13962  ;
13963  return 0;
13964}
13965_ACEOF
13966if ac_fn_c_try_link "$LINENO"; then :
13967  ac_cv_lib_svld_dlopen=yes
13968else
13969  ac_cv_lib_svld_dlopen=no
13970fi
13971rm -f core conftest.err conftest.$ac_objext \
13972    conftest$ac_exeext conftest.$ac_ext
13973LIBS=$ac_check_lib_save_LIBS
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13976$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13977if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13978  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13979else
13980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13981$as_echo_n "checking for dld_link in -ldld... " >&6; }
13982if ${ac_cv_lib_dld_dld_link+:} false; then :
13983  $as_echo_n "(cached) " >&6
13984else
13985  ac_check_lib_save_LIBS=$LIBS
13986LIBS="-ldld  $LIBS"
13987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989
13990/* Override any GCC internal prototype to avoid an error.
13991   Use char because int might match the return type of a GCC
13992   builtin and then its argument prototype would still apply.  */
13993#ifdef __cplusplus
13994extern "C"
13995#endif
13996char dld_link ();
13997int
13998main ()
13999{
14000return dld_link ();
14001  ;
14002  return 0;
14003}
14004_ACEOF
14005if ac_fn_c_try_link "$LINENO"; then :
14006  ac_cv_lib_dld_dld_link=yes
14007else
14008  ac_cv_lib_dld_dld_link=no
14009fi
14010rm -f core conftest.err conftest.$ac_objext \
14011    conftest$ac_exeext conftest.$ac_ext
14012LIBS=$ac_check_lib_save_LIBS
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14015$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14016if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14017  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14018fi
14019
14020
14021fi
14022
14023
14024fi
14025
14026
14027fi
14028
14029
14030fi
14031
14032
14033fi
14034
14035    ;;
14036  esac
14037
14038  if test no = "$lt_cv_dlopen"; then
14039    enable_dlopen=no
14040  else
14041    enable_dlopen=yes
14042  fi
14043
14044  case $lt_cv_dlopen in
14045  dlopen)
14046    save_CPPFLAGS=$CPPFLAGS
14047    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14048
14049    save_LDFLAGS=$LDFLAGS
14050    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14051
14052    save_LIBS=$LIBS
14053    LIBS="$lt_cv_dlopen_libs $LIBS"
14054
14055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14056$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14057if ${lt_cv_dlopen_self+:} false; then :
14058  $as_echo_n "(cached) " >&6
14059else
14060  	  if test yes = "$cross_compiling"; then :
14061  lt_cv_dlopen_self=cross
14062else
14063  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14064  lt_status=$lt_dlunknown
14065  cat > conftest.$ac_ext <<_LT_EOF
14066#line $LINENO "configure"
14067#include "confdefs.h"
14068
14069#if HAVE_DLFCN_H
14070#include <dlfcn.h>
14071#endif
14072
14073#include <stdio.h>
14074
14075#ifdef RTLD_GLOBAL
14076#  define LT_DLGLOBAL		RTLD_GLOBAL
14077#else
14078#  ifdef DL_GLOBAL
14079#    define LT_DLGLOBAL		DL_GLOBAL
14080#  else
14081#    define LT_DLGLOBAL		0
14082#  endif
14083#endif
14084
14085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14086   find out it does not work in some platform. */
14087#ifndef LT_DLLAZY_OR_NOW
14088#  ifdef RTLD_LAZY
14089#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14090#  else
14091#    ifdef DL_LAZY
14092#      define LT_DLLAZY_OR_NOW		DL_LAZY
14093#    else
14094#      ifdef RTLD_NOW
14095#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14096#      else
14097#        ifdef DL_NOW
14098#          define LT_DLLAZY_OR_NOW	DL_NOW
14099#        else
14100#          define LT_DLLAZY_OR_NOW	0
14101#        endif
14102#      endif
14103#    endif
14104#  endif
14105#endif
14106
14107/* When -fvisibility=hidden is used, assume the code has been annotated
14108   correspondingly for the symbols needed.  */
14109#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14110int fnord () __attribute__((visibility("default")));
14111#endif
14112
14113int fnord () { return 42; }
14114int main ()
14115{
14116  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14117  int status = $lt_dlunknown;
14118
14119  if (self)
14120    {
14121      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14122      else
14123        {
14124	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14125          else puts (dlerror ());
14126	}
14127      /* dlclose (self); */
14128    }
14129  else
14130    puts (dlerror ());
14131
14132  return status;
14133}
14134_LT_EOF
14135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14136  (eval $ac_link) 2>&5
14137  ac_status=$?
14138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14140    (./conftest; exit; ) >&5 2>/dev/null
14141    lt_status=$?
14142    case x$lt_status in
14143      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14144      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14145      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14146    esac
14147  else :
14148    # compilation failed
14149    lt_cv_dlopen_self=no
14150  fi
14151fi
14152rm -fr conftest*
14153
14154
14155fi
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14157$as_echo "$lt_cv_dlopen_self" >&6; }
14158
14159    if test yes = "$lt_cv_dlopen_self"; then
14160      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14161      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14162$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14163if ${lt_cv_dlopen_self_static+:} false; then :
14164  $as_echo_n "(cached) " >&6
14165else
14166  	  if test yes = "$cross_compiling"; then :
14167  lt_cv_dlopen_self_static=cross
14168else
14169  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14170  lt_status=$lt_dlunknown
14171  cat > conftest.$ac_ext <<_LT_EOF
14172#line $LINENO "configure"
14173#include "confdefs.h"
14174
14175#if HAVE_DLFCN_H
14176#include <dlfcn.h>
14177#endif
14178
14179#include <stdio.h>
14180
14181#ifdef RTLD_GLOBAL
14182#  define LT_DLGLOBAL		RTLD_GLOBAL
14183#else
14184#  ifdef DL_GLOBAL
14185#    define LT_DLGLOBAL		DL_GLOBAL
14186#  else
14187#    define LT_DLGLOBAL		0
14188#  endif
14189#endif
14190
14191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14192   find out it does not work in some platform. */
14193#ifndef LT_DLLAZY_OR_NOW
14194#  ifdef RTLD_LAZY
14195#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14196#  else
14197#    ifdef DL_LAZY
14198#      define LT_DLLAZY_OR_NOW		DL_LAZY
14199#    else
14200#      ifdef RTLD_NOW
14201#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14202#      else
14203#        ifdef DL_NOW
14204#          define LT_DLLAZY_OR_NOW	DL_NOW
14205#        else
14206#          define LT_DLLAZY_OR_NOW	0
14207#        endif
14208#      endif
14209#    endif
14210#  endif
14211#endif
14212
14213/* When -fvisibility=hidden is used, assume the code has been annotated
14214   correspondingly for the symbols needed.  */
14215#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14216int fnord () __attribute__((visibility("default")));
14217#endif
14218
14219int fnord () { return 42; }
14220int main ()
14221{
14222  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14223  int status = $lt_dlunknown;
14224
14225  if (self)
14226    {
14227      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14228      else
14229        {
14230	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14231          else puts (dlerror ());
14232	}
14233      /* dlclose (self); */
14234    }
14235  else
14236    puts (dlerror ());
14237
14238  return status;
14239}
14240_LT_EOF
14241  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14242  (eval $ac_link) 2>&5
14243  ac_status=$?
14244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14246    (./conftest; exit; ) >&5 2>/dev/null
14247    lt_status=$?
14248    case x$lt_status in
14249      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14250      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14251      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14252    esac
14253  else :
14254    # compilation failed
14255    lt_cv_dlopen_self_static=no
14256  fi
14257fi
14258rm -fr conftest*
14259
14260
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14263$as_echo "$lt_cv_dlopen_self_static" >&6; }
14264    fi
14265
14266    CPPFLAGS=$save_CPPFLAGS
14267    LDFLAGS=$save_LDFLAGS
14268    LIBS=$save_LIBS
14269    ;;
14270  esac
14271
14272  case $lt_cv_dlopen_self in
14273  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14274  *) enable_dlopen_self=unknown ;;
14275  esac
14276
14277  case $lt_cv_dlopen_self_static in
14278  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14279  *) enable_dlopen_self_static=unknown ;;
14280  esac
14281fi
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299striplib=
14300old_striplib=
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14302$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14303if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14304  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14305  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14307$as_echo "yes" >&6; }
14308else
14309# FIXME - insert some real tests, host_os isn't really good enough
14310  case $host_os in
14311  darwin*)
14312    if test -n "$STRIP"; then
14313      striplib="$STRIP -x"
14314      old_striplib="$STRIP -S"
14315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14316$as_echo "yes" >&6; }
14317    else
14318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319$as_echo "no" >&6; }
14320    fi
14321    ;;
14322  *)
14323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14324$as_echo "no" >&6; }
14325    ;;
14326  esac
14327fi
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340  # Report what library types will actually be built
14341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14342$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14344$as_echo "$can_build_shared" >&6; }
14345
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14347$as_echo_n "checking whether to build shared libraries... " >&6; }
14348  test no = "$can_build_shared" && enable_shared=no
14349
14350  # On AIX, shared libraries and static libraries use the same namespace, and
14351  # are all built from PIC.
14352  case $host_os in
14353  aix3*)
14354    test yes = "$enable_shared" && enable_static=no
14355    if test -n "$RANLIB"; then
14356      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14357      postinstall_cmds='$RANLIB $lib'
14358    fi
14359    ;;
14360
14361  aix[4-9]*)
14362    if test ia64 != "$host_cpu"; then
14363      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14364      yes,aix,yes) ;;			# shared object as lib.so file only
14365      yes,svr4,*) ;;			# shared object as lib.so archive member only
14366      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14367      esac
14368    fi
14369    ;;
14370  esac
14371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14372$as_echo "$enable_shared" >&6; }
14373
14374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14375$as_echo_n "checking whether to build static libraries... " >&6; }
14376  # Make sure either enable_shared or enable_static is yes.
14377  test yes = "$enable_shared" || enable_static=yes
14378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14379$as_echo "$enable_static" >&6; }
14380
14381
14382
14383
14384fi
14385ac_ext=c
14386ac_cpp='$CPP $CPPFLAGS'
14387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389ac_compiler_gnu=$ac_cv_c_compiler_gnu
14390
14391CC=$lt_save_CC
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407        ac_config_commands="$ac_config_commands libtool"
14408
14409
14410
14411
14412# Only expand once:
14413
14414
14415
14416
14417# pkg-config is only needed for these options, do not require it otherwise
14418if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14419
14420
14421
14422
14423
14424
14425
14426if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14427	if test -n "$ac_tool_prefix"; then
14428  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14429set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14431$as_echo_n "checking for $ac_word... " >&6; }
14432if ${ac_cv_path_PKG_CONFIG+:} false; then :
14433  $as_echo_n "(cached) " >&6
14434else
14435  case $PKG_CONFIG in
14436  [\\/]* | ?:[\\/]*)
14437  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14438  ;;
14439  *)
14440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443  IFS=$as_save_IFS
14444  test -z "$as_dir" && as_dir=.
14445    for ac_exec_ext in '' $ac_executable_extensions; do
14446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449    break 2
14450  fi
14451done
14452  done
14453IFS=$as_save_IFS
14454
14455  ;;
14456esac
14457fi
14458PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14459if test -n "$PKG_CONFIG"; then
14460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14461$as_echo "$PKG_CONFIG" >&6; }
14462else
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464$as_echo "no" >&6; }
14465fi
14466
14467
14468fi
14469if test -z "$ac_cv_path_PKG_CONFIG"; then
14470  ac_pt_PKG_CONFIG=$PKG_CONFIG
14471  # Extract the first word of "pkg-config", so it can be a program name with args.
14472set dummy pkg-config; ac_word=$2
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474$as_echo_n "checking for $ac_word... " >&6; }
14475if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14476  $as_echo_n "(cached) " >&6
14477else
14478  case $ac_pt_PKG_CONFIG in
14479  [\\/]* | ?:[\\/]*)
14480  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14481  ;;
14482  *)
14483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484for as_dir in $PATH
14485do
14486  IFS=$as_save_IFS
14487  test -z "$as_dir" && as_dir=.
14488    for ac_exec_ext in '' $ac_executable_extensions; do
14489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492    break 2
14493  fi
14494done
14495  done
14496IFS=$as_save_IFS
14497
14498  ;;
14499esac
14500fi
14501ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14502if test -n "$ac_pt_PKG_CONFIG"; then
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14504$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14505else
14506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507$as_echo "no" >&6; }
14508fi
14509
14510  if test "x$ac_pt_PKG_CONFIG" = x; then
14511    PKG_CONFIG=""
14512  else
14513    case $cross_compiling:$ac_tool_warned in
14514yes:)
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517ac_tool_warned=yes ;;
14518esac
14519    PKG_CONFIG=$ac_pt_PKG_CONFIG
14520  fi
14521else
14522  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14523fi
14524
14525fi
14526if test -n "$PKG_CONFIG"; then
14527	_pkg_min_version=0.9.0
14528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14529$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14530	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532$as_echo "yes" >&6; }
14533	else
14534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535$as_echo "no" >&6; }
14536		PKG_CONFIG=""
14537	fi
14538fi
14539fi
14540
14541# Checks for header files.
14542for 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
14543do :
14544  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14546"
14547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14548  cat >>confdefs.h <<_ACEOF
14549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14550_ACEOF
14551
14552fi
14553
14554done
14555
14556# net/if.h portability for Darwin see:
14557# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14558for ac_header in net/if.h
14559do :
14560  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14561#include <stdio.h>
14562#ifdef STDC_HEADERS
14563# include <stdlib.h>
14564# include <stddef.h>
14565#else
14566# ifdef HAVE_STDLIB_H
14567#  include <stdlib.h>
14568# endif
14569#endif
14570#ifdef HAVE_SYS_SOCKET_H
14571# include <sys/socket.h>
14572#endif
14573
14574"
14575if test "x$ac_cv_header_net_if_h" = xyes; then :
14576  cat >>confdefs.h <<_ACEOF
14577#define HAVE_NET_IF_H 1
14578_ACEOF
14579
14580fi
14581
14582done
14583
14584
14585# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14586for ac_header in TargetConditionals.h
14587do :
14588  ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14589"
14590if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14591  cat >>confdefs.h <<_ACEOF
14592#define HAVE_TARGETCONDITIONALS_H 1
14593_ACEOF
14594
14595fi
14596
14597done
14598
14599for ac_header in netioapi.h
14600do :
14601  ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14602#if HAVE_SYS_PARAM_H
14603#include <sys/param.h>
14604#endif
14605
14606#ifdef HAVE_SYS_SOCKET_H
14607#include <sys/socket.h>
14608#endif
14609
14610#ifdef HAVE_SYS_UIO_H
14611#include <sys/uio.h>
14612#endif
14613
14614#ifdef HAVE_NETINET_IN_H
14615#include <netinet/in.h>
14616#endif
14617
14618#ifdef HAVE_NETINET_TCP_H
14619#include <netinet/tcp.h>
14620#endif
14621
14622#ifdef HAVE_ARPA_INET_H
14623#include <arpa/inet.h>
14624#endif
14625
14626#ifdef HAVE_WINSOCK2_H
14627#include <winsock2.h>
14628#endif
14629
14630#ifdef HAVE_WS2TCPIP_H
14631#include <ws2tcpip.h>
14632#endif
14633
14634"
14635if test "x$ac_cv_header_netioapi_h" = xyes; then :
14636  cat >>confdefs.h <<_ACEOF
14637#define HAVE_NETIOAPI_H 1
14638_ACEOF
14639
14640fi
14641
14642done
14643
14644
14645# Check for Linux timestamping headers
14646for ac_header in linux/net_tstamp.h
14647do :
14648  ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default
14649"
14650if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
14651  cat >>confdefs.h <<_ACEOF
14652#define HAVE_LINUX_NET_TSTAMP_H 1
14653_ACEOF
14654
14655fi
14656
14657done
14658
14659
14660# check for types.
14661# Using own tests for int64* because autoconf builtin only give 32bit.
14662ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14663if test "x$ac_cv_type_int8_t" = xyes; then :
14664
14665else
14666
14667cat >>confdefs.h <<_ACEOF
14668#define int8_t signed char
14669_ACEOF
14670
14671fi
14672
14673ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14674if test "x$ac_cv_type_int16_t" = xyes; then :
14675
14676else
14677
14678cat >>confdefs.h <<_ACEOF
14679#define int16_t short
14680_ACEOF
14681
14682fi
14683
14684ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14685if test "x$ac_cv_type_int32_t" = xyes; then :
14686
14687else
14688
14689cat >>confdefs.h <<_ACEOF
14690#define int32_t int
14691_ACEOF
14692
14693fi
14694
14695ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14696if test "x$ac_cv_type_int64_t" = xyes; then :
14697
14698else
14699
14700cat >>confdefs.h <<_ACEOF
14701#define int64_t long long
14702_ACEOF
14703
14704fi
14705
14706ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14707if test "x$ac_cv_type_uint8_t" = xyes; then :
14708
14709else
14710
14711cat >>confdefs.h <<_ACEOF
14712#define uint8_t unsigned char
14713_ACEOF
14714
14715fi
14716
14717ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14718if test "x$ac_cv_type_uint16_t" = xyes; then :
14719
14720else
14721
14722cat >>confdefs.h <<_ACEOF
14723#define uint16_t unsigned short
14724_ACEOF
14725
14726fi
14727
14728ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14729if test "x$ac_cv_type_uint32_t" = xyes; then :
14730
14731else
14732
14733cat >>confdefs.h <<_ACEOF
14734#define uint32_t unsigned int
14735_ACEOF
14736
14737fi
14738
14739ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14740if test "x$ac_cv_type_uint64_t" = xyes; then :
14741
14742else
14743
14744cat >>confdefs.h <<_ACEOF
14745#define uint64_t unsigned long long
14746_ACEOF
14747
14748fi
14749
14750ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14751if test "x$ac_cv_type_size_t" = xyes; then :
14752
14753else
14754
14755cat >>confdefs.h <<_ACEOF
14756#define size_t unsigned int
14757_ACEOF
14758
14759fi
14760
14761ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14762if test "x$ac_cv_type_ssize_t" = xyes; then :
14763
14764else
14765
14766cat >>confdefs.h <<_ACEOF
14767#define ssize_t int
14768_ACEOF
14769
14770fi
14771
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14773$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14774if ${ac_cv_type_uid_t+:} false; then :
14775  $as_echo_n "(cached) " >&6
14776else
14777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778/* end confdefs.h.  */
14779#include <sys/types.h>
14780
14781_ACEOF
14782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14783  $EGREP "uid_t" >/dev/null 2>&1; then :
14784  ac_cv_type_uid_t=yes
14785else
14786  ac_cv_type_uid_t=no
14787fi
14788rm -f conftest*
14789
14790fi
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14792$as_echo "$ac_cv_type_uid_t" >&6; }
14793if test $ac_cv_type_uid_t = no; then
14794
14795$as_echo "#define uid_t int" >>confdefs.h
14796
14797
14798$as_echo "#define gid_t int" >>confdefs.h
14799
14800fi
14801
14802ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14803if test "x$ac_cv_type_pid_t" = xyes; then :
14804
14805else
14806
14807cat >>confdefs.h <<_ACEOF
14808#define pid_t int
14809_ACEOF
14810
14811fi
14812
14813ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14814if test "x$ac_cv_type_off_t" = xyes; then :
14815
14816else
14817
14818cat >>confdefs.h <<_ACEOF
14819#define off_t long int
14820_ACEOF
14821
14822fi
14823
14824ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14825$ac_includes_default
14826#ifdef HAVE_WINSOCK2_H
14827#  include <winsock2.h>
14828#endif
14829
14830"
14831if test "x$ac_cv_type_u_char" = xyes; then :
14832
14833else
14834
14835$as_echo "#define u_char unsigned char" >>confdefs.h
14836
14837fi
14838
14839ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14840$ac_includes_default
14841#ifdef HAVE_SYS_RESOURCE_H
14842#  include <sys/resource.h>
14843#endif
14844
14845"
14846if test "x$ac_cv_type_rlim_t" = xyes; then :
14847
14848else
14849
14850$as_echo "#define rlim_t unsigned long" >>confdefs.h
14851
14852fi
14853
14854
14855ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14856$ac_includes_default
14857#ifdef HAVE_SYS_SOCKET_H
14858#  include <sys/socket.h>
14859#endif
14860#ifdef HAVE_WS2TCPIP_H
14861#  include <ws2tcpip.h>
14862#endif
14863
14864"
14865if test "x$ac_cv_type_socklen_t" = xyes; then :
14866
14867else
14868
14869$as_echo "#define socklen_t int" >>confdefs.h
14870
14871fi
14872
14873 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14874$ac_includes_default
14875#ifdef HAVE_SYS_TYPES_H
14876# include <sys/types.h>
14877#endif
14878#ifdef HAVE_NETINET_IN_H
14879# include <netinet/in.h>
14880#endif
14881
14882"
14883if test "x$ac_cv_type_in_addr_t" = xyes; then :
14884
14885else
14886
14887$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14888
14889fi
14890
14891 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14892$ac_includes_default
14893#ifdef HAVE_SYS_TYPES_H
14894# include <sys/types.h>
14895#endif
14896#ifdef HAVE_NETINET_IN_H
14897# include <netinet/in.h>
14898#endif
14899
14900"
14901if test "x$ac_cv_type_in_port_t" = xyes; then :
14902
14903else
14904
14905$as_echo "#define in_port_t uint16_t" >>confdefs.h
14906
14907fi
14908
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14910$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14911if test "$cross_compiling" = yes; then :
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14913$as_echo "cross-compile no" >&6; }
14914
14915$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14916
14917  case " $LIBOBJS " in
14918  *" memcmp.$ac_objext "* ) ;;
14919  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14920 ;;
14921esac
14922
14923
14924else
14925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h.  */
14927
14928#include <stdio.h>
14929#include <stdlib.h>
14930#include <string.h>
14931int main(void)
14932{
14933	char a = 255, b = 0;
14934	if(memcmp(&a, &b, 1) < 0)
14935		return 1;
14936	return 0;
14937}
14938
14939_ACEOF
14940if ac_fn_c_try_run "$LINENO"; then :
14941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14942$as_echo "yes" >&6; }
14943else
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945$as_echo "no" >&6; }
14946
14947$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14948
14949  case " $LIBOBJS " in
14950  *" memcmp.$ac_objext "* ) ;;
14951  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14952 ;;
14953esac
14954
14955
14956fi
14957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14958  conftest.$ac_objext conftest.beam conftest.$ac_ext
14959fi
14960
14961
14962# The cast to long int works around a bug in the HP C Compiler
14963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14965# This bug is HP SR number 8606223364.
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14967$as_echo_n "checking size of time_t... " >&6; }
14968if ${ac_cv_sizeof_time_t+:} false; then :
14969  $as_echo_n "(cached) " >&6
14970else
14971  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14972$ac_includes_default
14973#ifdef TIME_WITH_SYS_TIME
14974# include <sys/time.h>
14975# include <time.h>
14976#else
14977# ifdef HAVE_SYS_TIME_H
14978#  include <sys/time.h>
14979# else
14980#  include <time.h>
14981# endif
14982#endif
14983
14984"; then :
14985
14986else
14987  if test "$ac_cv_type_time_t" = yes; then
14988     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14990as_fn_error 77 "cannot compute sizeof (time_t)
14991See \`config.log' for more details" "$LINENO" 5; }
14992   else
14993     ac_cv_sizeof_time_t=0
14994   fi
14995fi
14996
14997fi
14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14999$as_echo "$ac_cv_sizeof_time_t" >&6; }
15000
15001
15002
15003cat >>confdefs.h <<_ACEOF
15004#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15005_ACEOF
15006
15007
15008# The cast to long int works around a bug in the HP C Compiler
15009# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15010# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15011# This bug is HP SR number 8606223364.
15012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15013$as_echo_n "checking size of size_t... " >&6; }
15014if ${ac_cv_sizeof_size_t+:} false; then :
15015  $as_echo_n "(cached) " >&6
15016else
15017  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15018
15019else
15020  if test "$ac_cv_type_size_t" = yes; then
15021     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15023as_fn_error 77 "cannot compute sizeof (size_t)
15024See \`config.log' for more details" "$LINENO" 5; }
15025   else
15026     ac_cv_sizeof_size_t=0
15027   fi
15028fi
15029
15030fi
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15032$as_echo "$ac_cv_sizeof_size_t" >&6; }
15033
15034
15035
15036cat >>confdefs.h <<_ACEOF
15037#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15038_ACEOF
15039
15040
15041
15042# add option to disable the evil rpath
15043
15044# Check whether --enable-rpath was given.
15045if test "${enable_rpath+set}" = set; then :
15046  enableval=$enable_rpath; enable_rpath=$enableval
15047else
15048  enable_rpath=yes
15049fi
15050
15051if test "x$enable_rpath" = xno; then
15052		ac_config_commands="$ac_config_commands disable-rpath"
15053
15054fi
15055
15056
15057
15058# check to see if libraries are needed for these functions.
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15060$as_echo_n "checking for library containing inet_pton... " >&6; }
15061if ${ac_cv_search_inet_pton+:} false; then :
15062  $as_echo_n "(cached) " >&6
15063else
15064  ac_func_search_save_LIBS=$LIBS
15065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067
15068/* Override any GCC internal prototype to avoid an error.
15069   Use char because int might match the return type of a GCC
15070   builtin and then its argument prototype would still apply.  */
15071#ifdef __cplusplus
15072extern "C"
15073#endif
15074char inet_pton ();
15075int
15076main ()
15077{
15078return inet_pton ();
15079  ;
15080  return 0;
15081}
15082_ACEOF
15083for ac_lib in '' nsl; do
15084  if test -z "$ac_lib"; then
15085    ac_res="none required"
15086  else
15087    ac_res=-l$ac_lib
15088    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15089  fi
15090  if ac_fn_c_try_link "$LINENO"; then :
15091  ac_cv_search_inet_pton=$ac_res
15092fi
15093rm -f core conftest.err conftest.$ac_objext \
15094    conftest$ac_exeext
15095  if ${ac_cv_search_inet_pton+:} false; then :
15096  break
15097fi
15098done
15099if ${ac_cv_search_inet_pton+:} false; then :
15100
15101else
15102  ac_cv_search_inet_pton=no
15103fi
15104rm conftest.$ac_ext
15105LIBS=$ac_func_search_save_LIBS
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15108$as_echo "$ac_cv_search_inet_pton" >&6; }
15109ac_res=$ac_cv_search_inet_pton
15110if test "$ac_res" != no; then :
15111  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15112
15113fi
15114
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15116$as_echo_n "checking for library containing socket... " >&6; }
15117if ${ac_cv_search_socket+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120  ac_func_search_save_LIBS=$LIBS
15121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122/* end confdefs.h.  */
15123
15124/* Override any GCC internal prototype to avoid an error.
15125   Use char because int might match the return type of a GCC
15126   builtin and then its argument prototype would still apply.  */
15127#ifdef __cplusplus
15128extern "C"
15129#endif
15130char socket ();
15131int
15132main ()
15133{
15134return socket ();
15135  ;
15136  return 0;
15137}
15138_ACEOF
15139for ac_lib in '' socket; do
15140  if test -z "$ac_lib"; then
15141    ac_res="none required"
15142  else
15143    ac_res=-l$ac_lib
15144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15145  fi
15146  if ac_fn_c_try_link "$LINENO"; then :
15147  ac_cv_search_socket=$ac_res
15148fi
15149rm -f core conftest.err conftest.$ac_objext \
15150    conftest$ac_exeext
15151  if ${ac_cv_search_socket+:} false; then :
15152  break
15153fi
15154done
15155if ${ac_cv_search_socket+:} false; then :
15156
15157else
15158  ac_cv_search_socket=no
15159fi
15160rm conftest.$ac_ext
15161LIBS=$ac_func_search_save_LIBS
15162fi
15163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15164$as_echo "$ac_cv_search_socket" >&6; }
15165ac_res=$ac_cv_search_socket
15166if test "$ac_res" != no; then :
15167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15168
15169fi
15170
15171
15172# check whether strptime also works
15173
15174# check some functions of the OS before linking libs (while still runnable).
15175for ac_header in unistd.h
15176do :
15177  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15178if test "x$ac_cv_header_unistd_h" = xyes; then :
15179  cat >>confdefs.h <<_ACEOF
15180#define HAVE_UNISTD_H 1
15181_ACEOF
15182
15183fi
15184
15185done
15186
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15188$as_echo_n "checking for working chown... " >&6; }
15189if ${ac_cv_func_chown_works+:} false; then :
15190  $as_echo_n "(cached) " >&6
15191else
15192  if test "$cross_compiling" = yes; then :
15193  ac_cv_func_chown_works=no
15194else
15195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196/* end confdefs.h.  */
15197$ac_includes_default
15198#include <fcntl.h>
15199
15200int
15201main ()
15202{
15203  char *f = "conftest.chown";
15204  struct stat before, after;
15205
15206  if (creat (f, 0600) < 0)
15207    return 1;
15208  if (stat (f, &before) < 0)
15209    return 1;
15210  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15211    return 1;
15212  if (stat (f, &after) < 0)
15213    return 1;
15214  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15215
15216  ;
15217  return 0;
15218}
15219_ACEOF
15220if ac_fn_c_try_run "$LINENO"; then :
15221  ac_cv_func_chown_works=yes
15222else
15223  ac_cv_func_chown_works=no
15224fi
15225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15226  conftest.$ac_objext conftest.beam conftest.$ac_ext
15227fi
15228
15229rm -f conftest.chown
15230
15231fi
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15233$as_echo "$ac_cv_func_chown_works" >&6; }
15234if test $ac_cv_func_chown_works = yes; then
15235
15236$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15237
15238fi
15239
15240for ac_header in vfork.h
15241do :
15242  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15243if test "x$ac_cv_header_vfork_h" = xyes; then :
15244  cat >>confdefs.h <<_ACEOF
15245#define HAVE_VFORK_H 1
15246_ACEOF
15247
15248fi
15249
15250done
15251
15252for ac_func in fork vfork
15253do :
15254  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15256if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15257  cat >>confdefs.h <<_ACEOF
15258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259_ACEOF
15260
15261fi
15262done
15263
15264if test "x$ac_cv_func_fork" = xyes; then
15265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15266$as_echo_n "checking for working fork... " >&6; }
15267if ${ac_cv_func_fork_works+:} false; then :
15268  $as_echo_n "(cached) " >&6
15269else
15270  if test "$cross_compiling" = yes; then :
15271  ac_cv_func_fork_works=cross
15272else
15273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h.  */
15275$ac_includes_default
15276int
15277main ()
15278{
15279
15280	  /* By Ruediger Kuhlmann. */
15281	  return fork () < 0;
15282
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_run "$LINENO"; then :
15288  ac_cv_func_fork_works=yes
15289else
15290  ac_cv_func_fork_works=no
15291fi
15292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15293  conftest.$ac_objext conftest.beam conftest.$ac_ext
15294fi
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15298$as_echo "$ac_cv_func_fork_works" >&6; }
15299
15300else
15301  ac_cv_func_fork_works=$ac_cv_func_fork
15302fi
15303if test "x$ac_cv_func_fork_works" = xcross; then
15304  case $host in
15305    *-*-amigaos* | *-*-msdosdjgpp*)
15306      # Override, as these systems have only a dummy fork() stub
15307      ac_cv_func_fork_works=no
15308      ;;
15309    *)
15310      ac_cv_func_fork_works=yes
15311      ;;
15312  esac
15313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15314$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15315fi
15316ac_cv_func_vfork_works=$ac_cv_func_vfork
15317if test "x$ac_cv_func_vfork" = xyes; then
15318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15319$as_echo_n "checking for working vfork... " >&6; }
15320if ${ac_cv_func_vfork_works+:} false; then :
15321  $as_echo_n "(cached) " >&6
15322else
15323  if test "$cross_compiling" = yes; then :
15324  ac_cv_func_vfork_works=cross
15325else
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328/* Thanks to Paul Eggert for this test.  */
15329$ac_includes_default
15330#include <sys/wait.h>
15331#ifdef HAVE_VFORK_H
15332# include <vfork.h>
15333#endif
15334/* On some sparc systems, changes by the child to local and incoming
15335   argument registers are propagated back to the parent.  The compiler
15336   is told about this with #include <vfork.h>, but some compilers
15337   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15338   static variable whose address is put into a register that is
15339   clobbered by the vfork.  */
15340static void
15341#ifdef __cplusplus
15342sparc_address_test (int arg)
15343# else
15344sparc_address_test (arg) int arg;
15345#endif
15346{
15347  static pid_t child;
15348  if (!child) {
15349    child = vfork ();
15350    if (child < 0) {
15351      perror ("vfork");
15352      _exit(2);
15353    }
15354    if (!child) {
15355      arg = getpid();
15356      write(-1, "", 0);
15357      _exit (arg);
15358    }
15359  }
15360}
15361
15362int
15363main ()
15364{
15365  pid_t parent = getpid ();
15366  pid_t child;
15367
15368  sparc_address_test (0);
15369
15370  child = vfork ();
15371
15372  if (child == 0) {
15373    /* Here is another test for sparc vfork register problems.  This
15374       test uses lots of local variables, at least as many local
15375       variables as main has allocated so far including compiler
15376       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15377       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15378       reuse the register of parent for one of the local variables,
15379       since it will think that parent can't possibly be used any more
15380       in this routine.  Assigning to the local variable will thus
15381       munge parent in the parent process.  */
15382    pid_t
15383      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15384      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15385    /* Convince the compiler that p..p7 are live; otherwise, it might
15386       use the same hardware register for all 8 local variables.  */
15387    if (p != p1 || p != p2 || p != p3 || p != p4
15388	|| p != p5 || p != p6 || p != p7)
15389      _exit(1);
15390
15391    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15392       from child file descriptors.  If the child closes a descriptor
15393       before it execs or exits, this munges the parent's descriptor
15394       as well.  Test for this by closing stdout in the child.  */
15395    _exit(close(fileno(stdout)) != 0);
15396  } else {
15397    int status;
15398    struct stat st;
15399
15400    while (wait(&status) != child)
15401      ;
15402    return (
15403	 /* Was there some problem with vforking?  */
15404	 child < 0
15405
15406	 /* Did the child fail?  (This shouldn't happen.)  */
15407	 || status
15408
15409	 /* Did the vfork/compiler bug occur?  */
15410	 || parent != getpid()
15411
15412	 /* Did the file descriptor bug occur?  */
15413	 || fstat(fileno(stdout), &st) != 0
15414	 );
15415  }
15416}
15417_ACEOF
15418if ac_fn_c_try_run "$LINENO"; then :
15419  ac_cv_func_vfork_works=yes
15420else
15421  ac_cv_func_vfork_works=no
15422fi
15423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15424  conftest.$ac_objext conftest.beam conftest.$ac_ext
15425fi
15426
15427fi
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15429$as_echo "$ac_cv_func_vfork_works" >&6; }
15430
15431fi;
15432if test "x$ac_cv_func_fork_works" = xcross; then
15433  ac_cv_func_vfork_works=$ac_cv_func_vfork
15434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15435$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15436fi
15437
15438if test "x$ac_cv_func_vfork_works" = xyes; then
15439
15440$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15441
15442else
15443
15444$as_echo "#define vfork fork" >>confdefs.h
15445
15446fi
15447if test "x$ac_cv_func_fork_works" = xyes; then
15448
15449$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15450
15451fi
15452
15453
15454$as_echo "#define RETSIGTYPE void" >>confdefs.h
15455
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15457$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15458if ${ac_cv_sys_largefile_source+:} false; then :
15459  $as_echo_n "(cached) " >&6
15460else
15461  while :; do
15462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463/* end confdefs.h.  */
15464#include <sys/types.h> /* for off_t */
15465     #include <stdio.h>
15466int
15467main ()
15468{
15469int (*fp) (FILE *, off_t, int) = fseeko;
15470     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15471  ;
15472  return 0;
15473}
15474_ACEOF
15475if ac_fn_c_try_link "$LINENO"; then :
15476  ac_cv_sys_largefile_source=no; break
15477fi
15478rm -f core conftest.err conftest.$ac_objext \
15479    conftest$ac_exeext conftest.$ac_ext
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482#define _LARGEFILE_SOURCE 1
15483#include <sys/types.h> /* for off_t */
15484     #include <stdio.h>
15485int
15486main ()
15487{
15488int (*fp) (FILE *, off_t, int) = fseeko;
15489     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15490  ;
15491  return 0;
15492}
15493_ACEOF
15494if ac_fn_c_try_link "$LINENO"; then :
15495  ac_cv_sys_largefile_source=1; break
15496fi
15497rm -f core conftest.err conftest.$ac_objext \
15498    conftest$ac_exeext conftest.$ac_ext
15499  ac_cv_sys_largefile_source=unknown
15500  break
15501done
15502fi
15503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15504$as_echo "$ac_cv_sys_largefile_source" >&6; }
15505case $ac_cv_sys_largefile_source in #(
15506  no | unknown) ;;
15507  *)
15508cat >>confdefs.h <<_ACEOF
15509#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15510_ACEOF
15511;;
15512esac
15513rm -rf conftest*
15514
15515# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15516# in glibc 2.1.3, but that breaks too many other things.
15517# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15518if test $ac_cv_sys_largefile_source != unknown; then
15519
15520$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15521
15522fi
15523
15524
15525# Check whether --enable-largefile was given.
15526if test "${enable_largefile+set}" = set; then :
15527  enableval=$enable_largefile;
15528fi
15529
15530if test "$enable_largefile" != no; then
15531
15532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15533$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15534if ${ac_cv_sys_largefile_CC+:} false; then :
15535  $as_echo_n "(cached) " >&6
15536else
15537  ac_cv_sys_largefile_CC=no
15538     if test "$GCC" != yes; then
15539       ac_save_CC=$CC
15540       while :; do
15541	 # IRIX 6.2 and later do not support large files by default,
15542	 # so use the C compiler's -n32 option if that helps.
15543	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544/* end confdefs.h.  */
15545#include <sys/types.h>
15546 /* Check that off_t can represent 2**63 - 1 correctly.
15547    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15548    since some C++ compilers masquerading as C compilers
15549    incorrectly reject 9223372036854775807.  */
15550#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15551  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15552		       && LARGE_OFF_T % 2147483647 == 1)
15553		      ? 1 : -1];
15554int
15555main ()
15556{
15557
15558  ;
15559  return 0;
15560}
15561_ACEOF
15562	 if ac_fn_c_try_compile "$LINENO"; then :
15563  break
15564fi
15565rm -f core conftest.err conftest.$ac_objext
15566	 CC="$CC -n32"
15567	 if ac_fn_c_try_compile "$LINENO"; then :
15568  ac_cv_sys_largefile_CC=' -n32'; break
15569fi
15570rm -f core conftest.err conftest.$ac_objext
15571	 break
15572       done
15573       CC=$ac_save_CC
15574       rm -f conftest.$ac_ext
15575    fi
15576fi
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15578$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15579  if test "$ac_cv_sys_largefile_CC" != no; then
15580    CC=$CC$ac_cv_sys_largefile_CC
15581  fi
15582
15583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15584$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15585if ${ac_cv_sys_file_offset_bits+:} false; then :
15586  $as_echo_n "(cached) " >&6
15587else
15588  while :; do
15589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590/* end confdefs.h.  */
15591#include <sys/types.h>
15592 /* Check that off_t can represent 2**63 - 1 correctly.
15593    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15594    since some C++ compilers masquerading as C compilers
15595    incorrectly reject 9223372036854775807.  */
15596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15597  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15598		       && LARGE_OFF_T % 2147483647 == 1)
15599		      ? 1 : -1];
15600int
15601main ()
15602{
15603
15604  ;
15605  return 0;
15606}
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"; then :
15609  ac_cv_sys_file_offset_bits=no; break
15610fi
15611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613/* end confdefs.h.  */
15614#define _FILE_OFFSET_BITS 64
15615#include <sys/types.h>
15616 /* Check that off_t can represent 2**63 - 1 correctly.
15617    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15618    since some C++ compilers masquerading as C compilers
15619    incorrectly reject 9223372036854775807.  */
15620#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15621  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15622		       && LARGE_OFF_T % 2147483647 == 1)
15623		      ? 1 : -1];
15624int
15625main ()
15626{
15627
15628  ;
15629  return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_compile "$LINENO"; then :
15633  ac_cv_sys_file_offset_bits=64; break
15634fi
15635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636  ac_cv_sys_file_offset_bits=unknown
15637  break
15638done
15639fi
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15641$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15642case $ac_cv_sys_file_offset_bits in #(
15643  no | unknown) ;;
15644  *)
15645cat >>confdefs.h <<_ACEOF
15646#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15647_ACEOF
15648;;
15649esac
15650rm -rf conftest*
15651  if test $ac_cv_sys_file_offset_bits = unknown; then
15652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15653$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15654if ${ac_cv_sys_large_files+:} false; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  while :; do
15658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h.  */
15660#include <sys/types.h>
15661 /* Check that off_t can represent 2**63 - 1 correctly.
15662    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15663    since some C++ compilers masquerading as C compilers
15664    incorrectly reject 9223372036854775807.  */
15665#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15666  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15667		       && LARGE_OFF_T % 2147483647 == 1)
15668		      ? 1 : -1];
15669int
15670main ()
15671{
15672
15673  ;
15674  return 0;
15675}
15676_ACEOF
15677if ac_fn_c_try_compile "$LINENO"; then :
15678  ac_cv_sys_large_files=no; break
15679fi
15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683#define _LARGE_FILES 1
15684#include <sys/types.h>
15685 /* Check that off_t can represent 2**63 - 1 correctly.
15686    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15687    since some C++ compilers masquerading as C compilers
15688    incorrectly reject 9223372036854775807.  */
15689#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15690  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15691		       && LARGE_OFF_T % 2147483647 == 1)
15692		      ? 1 : -1];
15693int
15694main ()
15695{
15696
15697  ;
15698  return 0;
15699}
15700_ACEOF
15701if ac_fn_c_try_compile "$LINENO"; then :
15702  ac_cv_sys_large_files=1; break
15703fi
15704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705  ac_cv_sys_large_files=unknown
15706  break
15707done
15708fi
15709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15710$as_echo "$ac_cv_sys_large_files" >&6; }
15711case $ac_cv_sys_large_files in #(
15712  no | unknown) ;;
15713  *)
15714cat >>confdefs.h <<_ACEOF
15715#define _LARGE_FILES $ac_cv_sys_large_files
15716_ACEOF
15717;;
15718esac
15719rm -rf conftest*
15720  fi
15721
15722
15723fi
15724
15725
15726
15727
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15729$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15730cache=_D_LARGEFILE_SOURCE_1
15731if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15732  $as_echo_n "(cached) " >&6
15733else
15734
15735echo '
15736#include <stdio.h>
15737int test(void) {
15738        int a = fseeko(stdin, 0, 0);
15739        return a;
15740}
15741' > conftest.c
15742echo 'void f(void){}' >>conftest.c
15743if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15744eval "cv_prog_cc_flag_needed_$cache=no"
15745else
15746
15747if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15748eval "cv_prog_cc_flag_needed_$cache=yes"
15749else
15750eval "cv_prog_cc_flag_needed_$cache=fail"
15751#echo 'Test with flag fails too!'
15752#cat conftest.c
15753#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15754#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15755#exit 1
15756fi
15757
15758fi
15759rm -f conftest conftest.c conftest.o
15760
15761fi
15762
15763if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15765$as_echo "yes" >&6; }
15766:
15767CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15768else
15769if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15771$as_echo "no" >&6; }
15772#echo 'Test with flag is no!'
15773#cat conftest.c
15774#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15775#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15776#exit 1
15777:
15778
15779else
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15781$as_echo "failed" >&6; }
15782:
15783
15784fi
15785fi
15786
15787
15788
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15790$as_echo_n "checking if nonblocking sockets work... " >&6; }
15791if echo $host | grep mingw >/dev/null; then
15792	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15793$as_echo "no (windows)" >&6; }
15794
15795$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15796
15797else
15798if test "$cross_compiling" = yes; then :
15799
15800	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15801$as_echo "crosscompile(yes)" >&6; }
15802
15803else
15804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h.  */
15806
15807
15808#include <stdio.h>
15809#include <string.h>
15810#include <stdlib.h>
15811#include <fcntl.h>
15812#include <errno.h>
15813#ifdef HAVE_SYS_TYPES_H
15814#include <sys/types.h>
15815#endif
15816#ifdef HAVE_SYS_SELECT_H
15817#include <sys/select.h>
15818#endif
15819#ifdef HAVE_SYS_SOCKET_H
15820#include <sys/socket.h>
15821#endif
15822#ifdef HAVE_NETINET_IN_H
15823#include <netinet/in.h>
15824#endif
15825#ifdef HAVE_ARPA_INET_H
15826#include <arpa/inet.h>
15827#endif
15828#ifdef HAVE_UNISTD_H
15829#include <unistd.h>
15830#endif
15831#ifdef HAVE_TIME_H
15832#include <time.h>
15833#endif
15834
15835int main(void)
15836{
15837	int port;
15838	int sfd, cfd;
15839	int num = 10;
15840	int i, p;
15841	struct sockaddr_in a;
15842	/* test if select and nonblocking reads work well together */
15843	/* open port.
15844	   fork child to send 10 messages.
15845	   select to read.
15846	   then try to nonblocking read the 10 messages
15847	   then, nonblocking read must give EAGAIN
15848	*/
15849
15850	port = 12345 + (time(0)%32);
15851	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15852	if(sfd == -1) {
15853		perror("socket");
15854		return 1;
15855	}
15856	memset(&a, 0, sizeof(a));
15857	a.sin_family = AF_INET;
15858	a.sin_port = htons(port);
15859	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15860	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15861		perror("bind");
15862		return 1;
15863	}
15864	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15865		perror("fcntl");
15866		return 1;
15867	}
15868
15869	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15870	if(cfd == -1) {
15871		perror("client socket");
15872		return 1;
15873	}
15874	a.sin_port = 0;
15875	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15876		perror("client bind");
15877		return 1;
15878	}
15879	a.sin_port = htons(port);
15880
15881	/* no handler, causes exit in 10 seconds */
15882	alarm(10);
15883
15884	/* send and receive on the socket */
15885	if((p=fork()) == 0) {
15886		for(i=0; i<num; i++) {
15887			if(sendto(cfd, &i, sizeof(i), 0,
15888				(struct sockaddr*)&a, sizeof(a)) < 0) {
15889				perror("sendto");
15890				return 1;
15891			}
15892		}
15893	} else {
15894		/* parent */
15895		fd_set rset;
15896		int x;
15897		if(p == -1) {
15898			perror("fork");
15899			return 1;
15900		}
15901		FD_ZERO(&rset);
15902		FD_SET(sfd, &rset);
15903		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15904			perror("select");
15905			return 1;
15906		}
15907		i = 0;
15908		while(i < num) {
15909			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15910				if(errno == EAGAIN)
15911					continue;
15912				perror("recv");
15913				return 1;
15914			}
15915			i++;
15916		}
15917		/* now we want to get EAGAIN: nonblocking goodness */
15918		errno = 0;
15919		recv(sfd, &x, sizeof(x), 0);
15920		if(errno != EAGAIN) {
15921			perror("trying to recv again");
15922			return 1;
15923		}
15924		/* EAGAIN encountered */
15925	}
15926
15927	close(sfd);
15928	close(cfd);
15929	return 0;
15930}
15931
15932_ACEOF
15933if ac_fn_c_try_run "$LINENO"; then :
15934
15935	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15936$as_echo "yes" >&6; }
15937
15938else
15939
15940	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941$as_echo "no" >&6; }
15942
15943$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15944
15945
15946fi
15947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948  conftest.$ac_objext conftest.beam conftest.$ac_ext
15949fi
15950
15951fi
15952
15953
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15955$as_echo_n "checking whether mkdir has one arg... " >&6; }
15956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h.  */
15958
15959#include <stdio.h>
15960#include <unistd.h>
15961#ifdef HAVE_WINSOCK2_H
15962#include <winsock2.h>
15963#endif
15964#ifdef HAVE_SYS_STAT_H
15965#include <sys/stat.h>
15966#endif
15967
15968int
15969main ()
15970{
15971
15972	(void)mkdir("directory");
15973
15974  ;
15975  return 0;
15976}
15977_ACEOF
15978if ac_fn_c_try_compile "$LINENO"; then :
15979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15980$as_echo "yes" >&6; }
15981
15982$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15983
15984
15985else
15986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987$as_echo "no" >&6; }
15988
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991
15992for ac_func in strptime
15993do :
15994  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15995if test "x$ac_cv_func_strptime" = xyes; then :
15996  cat >>confdefs.h <<_ACEOF
15997#define HAVE_STRPTIME 1
15998_ACEOF
15999
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16001$as_echo_n "checking whether strptime works... " >&6; }
16002if test c${cross_compiling} = cno; then
16003if test "$cross_compiling" = yes; then :
16004  eval "ac_cv_c_strptime_works=maybe"
16005else
16006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007/* end confdefs.h.  */
16008
16009#define _XOPEN_SOURCE 600
16010#include <time.h>
16011int main(void) { struct tm tm; char *res;
16012res = 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);
16013if (!res) return 2;
16014res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16015if (!res) return 1; return 0; }
16016
16017_ACEOF
16018if ac_fn_c_try_run "$LINENO"; then :
16019  eval "ac_cv_c_strptime_works=yes"
16020else
16021  eval "ac_cv_c_strptime_works=no"
16022fi
16023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16024  conftest.$ac_objext conftest.beam conftest.$ac_ext
16025fi
16026
16027else
16028eval "ac_cv_c_strptime_works=maybe"
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16031$as_echo "$ac_cv_c_strptime_works" >&6; }
16032if test $ac_cv_c_strptime_works = no; then
16033case " $LIBOBJS " in
16034  *" strptime.$ac_objext "* ) ;;
16035  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16036 ;;
16037esac
16038
16039else
16040
16041cat >>confdefs.h <<_ACEOF
16042#define STRPTIME_WORKS 1
16043_ACEOF
16044
16045fi
16046
16047else
16048  case " $LIBOBJS " in
16049  *" strptime.$ac_objext "* ) ;;
16050  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16051 ;;
16052esac
16053
16054fi
16055done
16056
16057
16058# check if we can use SO_REUSEPORT
16059reuseport_default=0
16060if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16061if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16062if test "$reuseport_default" = 1; then
16063
16064$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16065
16066else
16067
16068$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16069
16070fi
16071
16072# Include systemd.m4 - begin
16073#   macros for configuring systemd
16074#   Copyright 2015, Sami Kerola, CloudFlare.
16075#   BSD licensed.
16076# Check whether --enable-systemd was given.
16077if test "${enable_systemd+set}" = set; then :
16078  enableval=$enable_systemd;
16079else
16080  enable_systemd=no
16081fi
16082
16083have_systemd=no
16084if test "x$enable_systemd" != xno; then :
16085
16086
16087
16088pkg_failed=no
16089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16090$as_echo_n "checking for SYSTEMD... " >&6; }
16091
16092if test -n "$SYSTEMD_CFLAGS"; then
16093    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16094 elif test -n "$PKG_CONFIG"; then
16095    if test -n "$PKG_CONFIG" && \
16096    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16097  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16098  ac_status=$?
16099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100  test $ac_status = 0; }; then
16101  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16102		      test "x$?" != "x0" && pkg_failed=yes
16103else
16104  pkg_failed=yes
16105fi
16106 else
16107    pkg_failed=untried
16108fi
16109if test -n "$SYSTEMD_LIBS"; then
16110    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16111 elif test -n "$PKG_CONFIG"; then
16112    if test -n "$PKG_CONFIG" && \
16113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16114  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16115  ac_status=$?
16116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16117  test $ac_status = 0; }; then
16118  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16119		      test "x$?" != "x0" && pkg_failed=yes
16120else
16121  pkg_failed=yes
16122fi
16123 else
16124    pkg_failed=untried
16125fi
16126
16127
16128
16129if test $pkg_failed = yes; then
16130   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131$as_echo "no" >&6; }
16132
16133if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16134        _pkg_short_errors_supported=yes
16135else
16136        _pkg_short_errors_supported=no
16137fi
16138        if test $_pkg_short_errors_supported = yes; then
16139	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16140        else
16141	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16142        fi
16143	# Put the nasty error message in config.log where it belongs
16144	echo "$SYSTEMD_PKG_ERRORS" >&5
16145
16146	have_systemd=no
16147elif test $pkg_failed = untried; then
16148     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149$as_echo "no" >&6; }
16150	have_systemd=no
16151else
16152	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16153	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155$as_echo "yes" >&6; }
16156	have_systemd=yes
16157fi
16158		if test "x$have_systemd" != "xyes"; then :
16159
16160
16161pkg_failed=no
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16163$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16164
16165if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16166    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16167 elif test -n "$PKG_CONFIG"; then
16168    if test -n "$PKG_CONFIG" && \
16169    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16170  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16171  ac_status=$?
16172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16173  test $ac_status = 0; }; then
16174  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16175		      test "x$?" != "x0" && pkg_failed=yes
16176else
16177  pkg_failed=yes
16178fi
16179 else
16180    pkg_failed=untried
16181fi
16182if test -n "$SYSTEMD_DAEMON_LIBS"; then
16183    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16184 elif test -n "$PKG_CONFIG"; then
16185    if test -n "$PKG_CONFIG" && \
16186    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16187  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16188  ac_status=$?
16189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16190  test $ac_status = 0; }; then
16191  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16192		      test "x$?" != "x0" && pkg_failed=yes
16193else
16194  pkg_failed=yes
16195fi
16196 else
16197    pkg_failed=untried
16198fi
16199
16200
16201
16202if test $pkg_failed = yes; then
16203   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204$as_echo "no" >&6; }
16205
16206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16207        _pkg_short_errors_supported=yes
16208else
16209        _pkg_short_errors_supported=no
16210fi
16211        if test $_pkg_short_errors_supported = yes; then
16212	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16213        else
16214	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16215        fi
16216	# Put the nasty error message in config.log where it belongs
16217	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16218
16219	have_systemd_daemon=no
16220elif test $pkg_failed = untried; then
16221     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
16223	have_systemd_daemon=no
16224else
16225	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16226	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228$as_echo "yes" >&6; }
16229	have_systemd_daemon=yes
16230fi
16231		if test "x$have_systemd_daemon" = "xyes"; then :
16232  have_systemd=yes
16233fi
16234
16235fi
16236	case $enable_systemd:$have_systemd in #(
16237  yes:no) :
16238    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16239  *:yes) :
16240
16241$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16242
16243		LIBS="$LIBS $SYSTEMD_LIBS"
16244
16245	 ;; #(
16246  *) :
16247     ;;
16248esac
16249
16250
16251fi
16252 if test "x$have_systemd" = xyes; then
16253  USE_SYSTEMD_TRUE=
16254  USE_SYSTEMD_FALSE='#'
16255else
16256  USE_SYSTEMD_TRUE='#'
16257  USE_SYSTEMD_FALSE=
16258fi
16259
16260
16261# Include systemd.m4 - end
16262
16263# set memory allocation checking if requested
16264# Check whether --enable-alloc-checks was given.
16265if test "${enable_alloc_checks+set}" = set; then :
16266  enableval=$enable_alloc_checks;
16267fi
16268
16269# Check whether --enable-alloc-lite was given.
16270if test "${enable_alloc_lite+set}" = set; then :
16271  enableval=$enable_alloc_lite;
16272fi
16273
16274# Check whether --enable-alloc-nonregional was given.
16275if test "${enable_alloc_nonregional+set}" = set; then :
16276  enableval=$enable_alloc_nonregional;
16277fi
16278
16279if test x_$enable_alloc_nonregional = x_yes; then
16280
16281$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16282
16283fi
16284if test x_$enable_alloc_checks = x_yes; then
16285
16286$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16287
16288	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16289
16290	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16291
16292else
16293	if test x_$enable_alloc_lite = x_yes; then
16294
16295$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16296
16297	else
16298
16299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16300$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16301	if test "$cross_compiling" = yes; then :
16302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16303$as_echo "no (crosscompile)" >&6; }
16304	case " $LIBOBJS " in
16305  *" malloc.$ac_objext "* ) ;;
16306  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16307 ;;
16308esac
16309
16310
16311cat >>confdefs.h <<_ACEOF
16312#define malloc rpl_malloc_unbound
16313_ACEOF
16314
16315else
16316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317/* end confdefs.h.  */
16318#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16319#include <stdlib.h>
16320#else
16321char *malloc ();
16322#endif
16323
16324int
16325main ()
16326{
16327 if(malloc(0) != 0) return 1;
16328  ;
16329  return 0;
16330}
16331
16332_ACEOF
16333if ac_fn_c_try_run "$LINENO"; then :
16334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16335$as_echo "no" >&6; }
16336	case " $LIBOBJS " in
16337  *" malloc.$ac_objext "* ) ;;
16338  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16339 ;;
16340esac
16341
16342
16343cat >>confdefs.h <<_ACEOF
16344#define malloc rpl_malloc_unbound
16345_ACEOF
16346
16347else
16348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349$as_echo "yes" >&6; }
16350
16351$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16352
16353fi
16354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16355  conftest.$ac_objext conftest.beam conftest.$ac_ext
16356fi
16357
16358
16359	fi
16360fi
16361
16362# check windows threads (we use them, not pthreads, on windows).
16363if test "$on_mingw" = "yes"; then
16364# check windows threads
16365	for ac_header in windows.h
16366do :
16367  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16368"
16369if test "x$ac_cv_header_windows_h" = xyes; then :
16370  cat >>confdefs.h <<_ACEOF
16371#define HAVE_WINDOWS_H 1
16372_ACEOF
16373
16374fi
16375
16376done
16377
16378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16379$as_echo_n "checking for CreateThread... " >&6; }
16380	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382
16383#ifdef HAVE_WINDOWS_H
16384#include <windows.h>
16385#endif
16386
16387int
16388main ()
16389{
16390
16391	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16392
16393  ;
16394  return 0;
16395}
16396_ACEOF
16397if ac_fn_c_try_compile "$LINENO"; then :
16398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16399$as_echo "yes" >&6; }
16400
16401$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16402
16403
16404else
16405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406$as_echo "no" >&6; }
16407
16408fi
16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410
16411else
16412# not on mingw, check thread libraries.
16413
16414# check for thread library.
16415# check this first, so that the pthread lib does not get linked in via
16416# libssl or libpython, and thus distorts the tests, and we end up using
16417# the non-threadsafe C libraries.
16418
16419# Check whether --with-pthreads was given.
16420if test "${with_pthreads+set}" = set; then :
16421  withval=$with_pthreads;
16422else
16423   withval="yes"
16424fi
16425
16426ub_have_pthreads=no
16427if test x_$withval != x_no; then
16428
16429
16430ac_ext=c
16431ac_cpp='$CPP $CPPFLAGS'
16432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16434ac_compiler_gnu=$ac_cv_c_compiler_gnu
16435
16436ax_pthread_ok=no
16437
16438# We used to check for pthread.h first, but this fails if pthread.h
16439# requires special compiler flags (e.g. on True64 or Sequent).
16440# It gets checked for in the link test anyway.
16441
16442# First of all, check if the user has set any of the PTHREAD_LIBS,
16443# etcetera environment variables, and if threads linking works using
16444# them:
16445if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16446        save_CFLAGS="$CFLAGS"
16447        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16448        save_LIBS="$LIBS"
16449        LIBS="$PTHREAD_LIBS $LIBS"
16450        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16451$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16452        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h.  */
16454
16455/* Override any GCC internal prototype to avoid an error.
16456   Use char because int might match the return type of a GCC
16457   builtin and then its argument prototype would still apply.  */
16458#ifdef __cplusplus
16459extern "C"
16460#endif
16461char pthread_join ();
16462int
16463main ()
16464{
16465return pthread_join ();
16466  ;
16467  return 0;
16468}
16469_ACEOF
16470if ac_fn_c_try_link "$LINENO"; then :
16471  ax_pthread_ok=yes
16472fi
16473rm -f core conftest.err conftest.$ac_objext \
16474    conftest$ac_exeext conftest.$ac_ext
16475        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16476$as_echo "$ax_pthread_ok" >&6; }
16477        if test x"$ax_pthread_ok" = xno; then
16478                PTHREAD_LIBS=""
16479                PTHREAD_CFLAGS=""
16480        fi
16481        LIBS="$save_LIBS"
16482        CFLAGS="$save_CFLAGS"
16483fi
16484
16485# We must check for the threads library under a number of different
16486# names; the ordering is very important because some systems
16487# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16488# libraries is broken (non-POSIX).
16489
16490# Create a list of thread flags to try.  Items starting with a "-" are
16491# C compiler flags, and other items are library names, except for "none"
16492# which indicates that we try without any flags at all, and "pthread-config"
16493# which is a program returning the flags for the Pth emulation library.
16494
16495ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16496
16497# The ordering *is* (sometimes) important.  Some notes on the
16498# individual items follow:
16499
16500# pthreads: AIX (must check this before -lpthread)
16501# none: in case threads are in libc; should be tried before -Kthread and
16502#       other compiler flags to prevent continual compiler warnings
16503# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16504# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16505# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16506# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16507# -pthreads: Solaris/gcc
16508# -mthreads: Mingw32/gcc, Lynx/gcc
16509# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16510#      doesn't hurt to check since this sometimes defines pthreads too;
16511#      also defines -D_REENTRANT)
16512#      ... -mt is also the pthreads flag for HP/aCC
16513# pthread: Linux, etcetera
16514# --thread-safe: KAI C++
16515# pthread-config: use pthread-config program (for GNU Pth library)
16516
16517case ${host_os} in
16518        solaris*)
16519
16520        # On Solaris (at least, for some versions), libc contains stubbed
16521        # (non-functional) versions of the pthreads routines, so link-based
16522        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16523        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16524        # a function called by this macro, so we could check for that, but
16525        # who knows whether they'll stub that too in a future libc.)  So,
16526        # we'll just look for -pthreads and -lpthread first:
16527
16528        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16529        ;;
16530
16531        darwin*)
16532        ax_pthread_flags="-pthread $ax_pthread_flags"
16533        ;;
16534esac
16535
16536# Clang doesn't consider unrecognized options an error unless we specify
16537# -Werror. We throw in some extra Clang-specific options to ensure that
16538# this doesn't happen for GCC, which also accepts -Werror.
16539
16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16541$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16542save_CFLAGS="$CFLAGS"
16543ax_pthread_extra_flags="-Werror"
16544CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546/* end confdefs.h.  */
16547int foo(void);
16548int
16549main ()
16550{
16551foo()
16552  ;
16553  return 0;
16554}
16555_ACEOF
16556if ac_fn_c_try_compile "$LINENO"; then :
16557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16558$as_echo "yes" >&6; }
16559else
16560  ax_pthread_extra_flags=
16561                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562$as_echo "no" >&6; }
16563fi
16564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565CFLAGS="$save_CFLAGS"
16566
16567if test x"$ax_pthread_ok" = xno; then
16568for flag in $ax_pthread_flags; do
16569
16570        case $flag in
16571                none)
16572                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16573$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16574                ;;
16575
16576                -*)
16577                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16578$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16579                PTHREAD_CFLAGS="$flag"
16580                ;;
16581
16582                pthread-config)
16583                # Extract the first word of "pthread-config", so it can be a program name with args.
16584set dummy pthread-config; ac_word=$2
16585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586$as_echo_n "checking for $ac_word... " >&6; }
16587if ${ac_cv_prog_ax_pthread_config+:} false; then :
16588  $as_echo_n "(cached) " >&6
16589else
16590  if test -n "$ax_pthread_config"; then
16591  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16592else
16593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594for as_dir in $PATH
16595do
16596  IFS=$as_save_IFS
16597  test -z "$as_dir" && as_dir=.
16598    for ac_exec_ext in '' $ac_executable_extensions; do
16599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600    ac_cv_prog_ax_pthread_config="yes"
16601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16602    break 2
16603  fi
16604done
16605  done
16606IFS=$as_save_IFS
16607
16608  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16609fi
16610fi
16611ax_pthread_config=$ac_cv_prog_ax_pthread_config
16612if test -n "$ax_pthread_config"; then
16613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16614$as_echo "$ax_pthread_config" >&6; }
16615else
16616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617$as_echo "no" >&6; }
16618fi
16619
16620
16621                if test x"$ax_pthread_config" = xno; then continue; fi
16622                PTHREAD_CFLAGS="`pthread-config --cflags`"
16623                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16624                ;;
16625
16626                *)
16627                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16628$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16629                PTHREAD_LIBS="-l$flag"
16630                ;;
16631        esac
16632
16633        save_LIBS="$LIBS"
16634        save_CFLAGS="$CFLAGS"
16635        LIBS="$PTHREAD_LIBS $LIBS"
16636        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16637
16638        # Check for various functions.  We must include pthread.h,
16639        # since some functions may be macros.  (On the Sequent, we
16640        # need a special flag -Kthread to make this header compile.)
16641        # We check for pthread_join because it is in -lpthread on IRIX
16642        # while pthread_create is in libc.  We check for pthread_attr_init
16643        # due to DEC craziness with -lpthreads.  We check for
16644        # pthread_cleanup_push because it is one of the few pthread
16645        # functions on Solaris that doesn't have a non-functional libc stub.
16646        # We try pthread_create on general principles.
16647        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h.  */
16649#include <pthread.h>
16650                        static void routine(void *a) { *((int*)a) = 0; }
16651                        static void *start_routine(void *a) { return a; }
16652int
16653main ()
16654{
16655pthread_t th; pthread_attr_t attr;
16656                        pthread_create(&th, 0, start_routine, 0);
16657                        pthread_join(th, 0);
16658                        pthread_attr_init(&attr);
16659                        pthread_cleanup_push(routine, 0);
16660                        pthread_cleanup_pop(0) /* ; */
16661  ;
16662  return 0;
16663}
16664_ACEOF
16665if ac_fn_c_try_link "$LINENO"; then :
16666  ax_pthread_ok=yes
16667fi
16668rm -f core conftest.err conftest.$ac_objext \
16669    conftest$ac_exeext conftest.$ac_ext
16670
16671        LIBS="$save_LIBS"
16672        CFLAGS="$save_CFLAGS"
16673
16674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16675$as_echo "$ax_pthread_ok" >&6; }
16676        if test "x$ax_pthread_ok" = xyes; then
16677                break;
16678        fi
16679
16680        PTHREAD_LIBS=""
16681        PTHREAD_CFLAGS=""
16682done
16683fi
16684
16685# Various other checks:
16686if test "x$ax_pthread_ok" = xyes; then
16687        save_LIBS="$LIBS"
16688        LIBS="$PTHREAD_LIBS $LIBS"
16689        save_CFLAGS="$CFLAGS"
16690        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16691
16692        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16693        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16694$as_echo_n "checking for joinable pthread attribute... " >&6; }
16695        attr_name=unknown
16696        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16697            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698/* end confdefs.h.  */
16699#include <pthread.h>
16700int
16701main ()
16702{
16703int attr = $attr; return attr /* ; */
16704  ;
16705  return 0;
16706}
16707_ACEOF
16708if ac_fn_c_try_link "$LINENO"; then :
16709  attr_name=$attr; break
16710fi
16711rm -f core conftest.err conftest.$ac_objext \
16712    conftest$ac_exeext conftest.$ac_ext
16713        done
16714        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16715$as_echo "$attr_name" >&6; }
16716        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16717
16718cat >>confdefs.h <<_ACEOF
16719#define PTHREAD_CREATE_JOINABLE $attr_name
16720_ACEOF
16721
16722        fi
16723
16724        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16725$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16726        flag=no
16727        case ${host_os} in
16728            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16729            osf* | hpux*) flag="-D_REENTRANT";;
16730            solaris*)
16731            if test "$GCC" = "yes"; then
16732                flag="-D_REENTRANT"
16733            else
16734                # TODO: What about Clang on Solaris?
16735                flag="-mt -D_REENTRANT"
16736            fi
16737            ;;
16738        esac
16739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16740$as_echo "$flag" >&6; }
16741        if test "x$flag" != xno; then
16742            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16743        fi
16744
16745        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16746$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16747if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16748  $as_echo_n "(cached) " >&6
16749else
16750
16751                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752/* end confdefs.h.  */
16753#include <pthread.h>
16754int
16755main ()
16756{
16757int i = PTHREAD_PRIO_INHERIT;
16758  ;
16759  return 0;
16760}
16761_ACEOF
16762if ac_fn_c_try_link "$LINENO"; then :
16763  ax_cv_PTHREAD_PRIO_INHERIT=yes
16764else
16765  ax_cv_PTHREAD_PRIO_INHERIT=no
16766fi
16767rm -f core conftest.err conftest.$ac_objext \
16768    conftest$ac_exeext conftest.$ac_ext
16769
16770fi
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16772$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16773        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16774
16775$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16776
16777fi
16778
16779        LIBS="$save_LIBS"
16780        CFLAGS="$save_CFLAGS"
16781
16782        # More AIX lossage: compile with *_r variant
16783        if test "x$GCC" != xyes; then
16784            case $host_os in
16785                aix*)
16786                case "x/$CC" in #(
16787  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16788    #handle absolute path differently from PATH based program lookup
16789                   case "x$CC" in #(
16790  x/*) :
16791    if as_fn_executable_p ${CC}_r; then :
16792  PTHREAD_CC="${CC}_r"
16793fi ;; #(
16794  *) :
16795    for ac_prog in ${CC}_r
16796do
16797  # Extract the first word of "$ac_prog", so it can be a program name with args.
16798set dummy $ac_prog; ac_word=$2
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16800$as_echo_n "checking for $ac_word... " >&6; }
16801if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16802  $as_echo_n "(cached) " >&6
16803else
16804  if test -n "$PTHREAD_CC"; then
16805  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16806else
16807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16808for as_dir in $PATH
16809do
16810  IFS=$as_save_IFS
16811  test -z "$as_dir" && as_dir=.
16812    for ac_exec_ext in '' $ac_executable_extensions; do
16813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16814    ac_cv_prog_PTHREAD_CC="$ac_prog"
16815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16816    break 2
16817  fi
16818done
16819  done
16820IFS=$as_save_IFS
16821
16822fi
16823fi
16824PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16825if test -n "$PTHREAD_CC"; then
16826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16827$as_echo "$PTHREAD_CC" >&6; }
16828else
16829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830$as_echo "no" >&6; }
16831fi
16832
16833
16834  test -n "$PTHREAD_CC" && break
16835done
16836test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16837 ;;
16838esac ;; #(
16839  *) :
16840     ;;
16841esac
16842                ;;
16843            esac
16844        fi
16845fi
16846
16847test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16848
16849
16850
16851
16852
16853# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16854if test x"$ax_pthread_ok" = xyes; then
16855
16856
16857$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16858
16859		if test -n "$PTHREAD_LIBS"; then
16860		  LIBS="$PTHREAD_LIBS $LIBS"
16861		fi
16862		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16863		CC="$PTHREAD_CC"
16864		ub_have_pthreads=yes
16865		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16866"
16867if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16868
16869cat >>confdefs.h <<_ACEOF
16870#define HAVE_PTHREAD_SPINLOCK_T 1
16871_ACEOF
16872
16873
16874fi
16875ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16876"
16877if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16878
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_PTHREAD_RWLOCK_T 1
16881_ACEOF
16882
16883
16884fi
16885
16886		# The cast to long int works around a bug in the HP C Compiler
16887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16889# This bug is HP SR number 8606223364.
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16891$as_echo_n "checking size of unsigned long... " >&6; }
16892if ${ac_cv_sizeof_unsigned_long+:} false; then :
16893  $as_echo_n "(cached) " >&6
16894else
16895  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16896
16897else
16898  if test "$ac_cv_type_unsigned_long" = yes; then
16899     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16901as_fn_error 77 "cannot compute sizeof (unsigned long)
16902See \`config.log' for more details" "$LINENO" 5; }
16903   else
16904     ac_cv_sizeof_unsigned_long=0
16905   fi
16906fi
16907
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16910$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16911
16912
16913
16914cat >>confdefs.h <<_ACEOF
16915#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16916_ACEOF
16917
16918
16919		# The cast to long int works around a bug in the HP C Compiler
16920# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16921# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16922# This bug is HP SR number 8606223364.
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16924$as_echo_n "checking size of pthread_t... " >&6; }
16925if ${ac_cv_sizeof_pthread_t+:} false; then :
16926  $as_echo_n "(cached) " >&6
16927else
16928  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"; then :
16929
16930else
16931  if test "$ac_cv_type_pthread_t" = yes; then
16932     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16934as_fn_error 77 "cannot compute sizeof (pthread_t)
16935See \`config.log' for more details" "$LINENO" 5; }
16936   else
16937     ac_cv_sizeof_pthread_t=0
16938   fi
16939fi
16940
16941fi
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16943$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16944
16945
16946
16947cat >>confdefs.h <<_ACEOF
16948#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16949_ACEOF
16950
16951
16952
16953		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16955$as_echo_n "checking if -pthread unused during linking... " >&6; }
16956		# catch clang warning 'argument unused during compilation'
16957		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958/* end confdefs.h.  */
16959$ac_includes_default
16960
16961int main(void) {return 0;}
16962
16963_ACEOF
16964		pthread_unused="yes"
16965		# first compile
16966		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16967		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16968		if test $? = 0; then
16969			# then link
16970			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16971			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16972			if test $? -ne 0; then
16973				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16974$as_echo "yes" >&6; }
16975				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16976				PTHREAD_CFLAGS_ONLY="-pthread"
16977
16978			else
16979				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980$as_echo "no" >&6; }
16981			fi
16982		else
16983			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984$as_echo "no" >&6; }
16985		fi # endif cc successful
16986		rm -f conftest conftest.c conftest.o
16987		fi # endif -pthread in CFLAGS
16988
16989
16990        :
16991else
16992        ax_pthread_ok=no
16993
16994fi
16995ac_ext=c
16996ac_cpp='$CPP $CPPFLAGS'
16997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16999ac_compiler_gnu=$ac_cv_c_compiler_gnu
17000
17001
17002fi
17003
17004# check solaris thread library
17005
17006# Check whether --with-solaris-threads was given.
17007if test "${with_solaris_threads+set}" = set; then :
17008  withval=$with_solaris_threads;
17009else
17010   withval="no"
17011fi
17012
17013ub_have_sol_threads=no
17014if test x_$withval != x_no; then
17015	if test x_$ub_have_pthreads != x_no; then
17016	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17017$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17018	else
17019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17020$as_echo_n "checking for library containing thr_create... " >&6; }
17021if ${ac_cv_search_thr_create+:} false; then :
17022  $as_echo_n "(cached) " >&6
17023else
17024  ac_func_search_save_LIBS=$LIBS
17025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026/* end confdefs.h.  */
17027
17028/* Override any GCC internal prototype to avoid an error.
17029   Use char because int might match the return type of a GCC
17030   builtin and then its argument prototype would still apply.  */
17031#ifdef __cplusplus
17032extern "C"
17033#endif
17034char thr_create ();
17035int
17036main ()
17037{
17038return thr_create ();
17039  ;
17040  return 0;
17041}
17042_ACEOF
17043for ac_lib in '' thread; do
17044  if test -z "$ac_lib"; then
17045    ac_res="none required"
17046  else
17047    ac_res=-l$ac_lib
17048    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17049  fi
17050  if ac_fn_c_try_link "$LINENO"; then :
17051  ac_cv_search_thr_create=$ac_res
17052fi
17053rm -f core conftest.err conftest.$ac_objext \
17054    conftest$ac_exeext
17055  if ${ac_cv_search_thr_create+:} false; then :
17056  break
17057fi
17058done
17059if ${ac_cv_search_thr_create+:} false; then :
17060
17061else
17062  ac_cv_search_thr_create=no
17063fi
17064rm conftest.$ac_ext
17065LIBS=$ac_func_search_save_LIBS
17066fi
17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17068$as_echo "$ac_cv_search_thr_create" >&6; }
17069ac_res=$ac_cv_search_thr_create
17070if test "$ac_res" != no; then :
17071  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17072
17073
17074$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17075
17076
17077
17078
17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17080$as_echo_n "checking whether $CC supports -mt... " >&6; }
17081cache=`echo mt | sed 'y%.=/+-%___p_%'`
17082if eval \${cv_prog_cc_flag_$cache+:} false; then :
17083  $as_echo_n "(cached) " >&6
17084else
17085
17086echo 'void f(void){}' >conftest.c
17087if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17088eval "cv_prog_cc_flag_$cache=yes"
17089else
17090eval "cv_prog_cc_flag_$cache=no"
17091fi
17092rm -f conftest conftest.o conftest.c
17093
17094fi
17095
17096if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17098$as_echo "yes" >&6; }
17099:
17100CFLAGS="$CFLAGS -mt"
17101else
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103$as_echo "no" >&6; }
17104:
17105CFLAGS="$CFLAGS -D_REENTRANT"
17106fi
17107
17108		ub_have_sol_threads=yes
17109
17110else
17111
17112		as_fn_error $? "no solaris threads found." "$LINENO" 5
17113
17114fi
17115
17116	fi
17117fi
17118
17119fi # end of non-mingw check of thread libraries
17120
17121# Check for SYSLOG_FACILITY
17122
17123# Check whether --with-syslog-facility was given.
17124if test "${with_syslog_facility+set}" = set; then :
17125  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
17126fi
17127
17128case "${UNBOUND_SYSLOG_FACILITY}" in
17129
17130  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17131
17132           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17133
17134esac
17135
17136cat >>confdefs.h <<_ACEOF
17137#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17138_ACEOF
17139
17140
17141# Check for dynamic library module
17142
17143# Check whether --with-dynlibmodule was given.
17144if test "${with_dynlibmodule+set}" = set; then :
17145  withval=$with_dynlibmodule;
17146else
17147   withval="no"
17148fi
17149
17150
17151if test x_$withval != x_no; then
17152
17153$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17154
17155  WITH_DYNLIBMODULE=yes
17156
17157  DYNLIBMOD_OBJ="dynlibmod.lo"
17158
17159  DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17160
17161  if test $on_mingw = "no"; then
17162    # link with -ldl if not already there, for all executables because
17163    # dlopen call is in the dynlib module.  For unbound executable, also
17164    # export symbols.
17165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17166$as_echo_n "checking for library containing dlopen... " >&6; }
17167if ${ac_cv_search_dlopen+:} false; then :
17168  $as_echo_n "(cached) " >&6
17169else
17170  ac_func_search_save_LIBS=$LIBS
17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173
17174/* Override any GCC internal prototype to avoid an error.
17175   Use char because int might match the return type of a GCC
17176   builtin and then its argument prototype would still apply.  */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180char dlopen ();
17181int
17182main ()
17183{
17184return dlopen ();
17185  ;
17186  return 0;
17187}
17188_ACEOF
17189for ac_lib in '' dl; do
17190  if test -z "$ac_lib"; then
17191    ac_res="none required"
17192  else
17193    ac_res=-l$ac_lib
17194    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17195  fi
17196  if ac_fn_c_try_link "$LINENO"; then :
17197  ac_cv_search_dlopen=$ac_res
17198fi
17199rm -f core conftest.err conftest.$ac_objext \
17200    conftest$ac_exeext
17201  if ${ac_cv_search_dlopen+:} false; then :
17202  break
17203fi
17204done
17205if ${ac_cv_search_dlopen+:} false; then :
17206
17207else
17208  ac_cv_search_dlopen=no
17209fi
17210rm conftest.$ac_ext
17211LIBS=$ac_func_search_save_LIBS
17212fi
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17214$as_echo "$ac_cv_search_dlopen" >&6; }
17215ac_res=$ac_cv_search_dlopen
17216if test "$ac_res" != no; then :
17217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17218
17219fi
17220
17221    DYNLIBMOD_EXTRALIBS="-export-dynamic"
17222  else
17223    DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17224  fi
17225
17226fi
17227
17228# Check for PyUnbound
17229
17230# Check whether --with-pyunbound was given.
17231if test "${with_pyunbound+set}" = set; then :
17232  withval=$with_pyunbound;
17233else
17234   withval="no"
17235fi
17236
17237
17238ub_test_python=no
17239ub_with_pyunbound=no
17240if test x_$withval != x_no; then
17241   ub_with_pyunbound=yes
17242   ub_test_python=yes
17243fi
17244
17245# Check for Python module
17246
17247# Check whether --with-pythonmodule was given.
17248if test "${with_pythonmodule+set}" = set; then :
17249  withval=$with_pythonmodule;
17250else
17251   withval="no"
17252fi
17253
17254
17255ub_with_pythonmod=no
17256if test x_$withval != x_no; then
17257   ub_with_pythonmod=yes
17258   ub_test_python=yes
17259fi
17260
17261# Check for Python & SWIG only on PyUnbound or PyModule
17262if test x_$ub_test_python != x_no; then
17263
17264   # Check for Python
17265   ub_have_python=no
17266   ac_save_LIBS="$LIBS"
17267        #
17268        # Allow the use of a (user set) custom python version
17269        #
17270
17271
17272        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17273set dummy python$PYTHON_VERSION; ac_word=$2
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17275$as_echo_n "checking for $ac_word... " >&6; }
17276if ${ac_cv_path_PYTHON+:} false; then :
17277  $as_echo_n "(cached) " >&6
17278else
17279  case $PYTHON in
17280  [\\/]* | ?:[\\/]*)
17281  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17282  ;;
17283  *)
17284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285for as_dir in $PATH
17286do
17287  IFS=$as_save_IFS
17288  test -z "$as_dir" && as_dir=.
17289    for ac_exec_ext in '' $ac_executable_extensions; do
17290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17291    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17293    break 2
17294  fi
17295done
17296  done
17297IFS=$as_save_IFS
17298
17299  ;;
17300esac
17301fi
17302PYTHON=$ac_cv_path_PYTHON
17303if test -n "$PYTHON"; then
17304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17305$as_echo "$PYTHON" >&6; }
17306else
17307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308$as_echo "no" >&6; }
17309fi
17310
17311
17312        if test -z "$PYTHON"; then
17313           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17314           PYTHON_VERSION=""
17315        fi
17316
17317        if test -z "$PYTHON_VERSION"; then
17318		PYTHON_VERSION=`$PYTHON -c "import sys; \
17319			print(sys.version.split()[0])"`
17320	fi
17321	# calculate the version number components.
17322
17323	v="$PYTHON_VERSION"
17324	PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
17325	if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
17326	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17327	PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
17328	if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
17329	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17330	PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
17331	if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
17332
17333
17334	# For some systems, sysconfig exists, but has the wrong paths,
17335	# on Debian 10, for python 2.7 and 3.7. So, we check the version,
17336	# and for older versions try distutils.sysconfig first. For newer
17337	# versions>=3.10, where distutils.sysconfig is deprecated, use
17338	# sysconfig first and then attempt the other one.
17339	py_distutils_first="no"
17340	if test $PYTHON_VERSION_MAJOR -lt 3; then
17341		py_distutils_first="yes"
17342	fi
17343	if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
17344		py_distutils_first="yes"
17345	fi
17346
17347	# Check if you have the first module
17348	if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi
17349	sysconfig_module=""
17350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
17351$as_echo_n "checking for the $m Python module... " >&6; }
17352        if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
17353                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354$as_echo "yes" >&6; }
17355		sysconfig_module="$m"
17356	else
17357                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
17359	fi
17360
17361	# if not found, try the other one.
17362	if test -z "$sysconfig_module"; then
17363		if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi
17364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
17365$as_echo_n "checking for the $m2 Python module... " >&6; }
17366		if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
17367			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17368$as_echo "yes" >&6; }
17369			sysconfig_module="$m2"
17370		else
17371			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372$as_echo "no" >&6; }
17373			as_fn_error $? "cannot import Python module \"$m\", or \"$m2\".
17374	Please check your Python installation. The errors are:
17375	$m
17376	$ac_modulecheck_result1
17377	$m2
17378	$ac_modulecheck_result2" "$LINENO" 5
17379			PYTHON_VERSION=""
17380		fi
17381	fi
17382	if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi
17383
17384        #
17385        # Check for Python include path
17386        #
17387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17388$as_echo_n "checking for Python include path... " >&6; }
17389        if test -z "$PYTHON_CPPFLAGS"; then
17390		if test "$sysconfig_module" = "sysconfig"; then
17391			python_path=`$PYTHON -c 'import sysconfig; \
17392				print(sysconfig.get_path("include"));'`
17393		else
17394			python_path=`$PYTHON -c "import distutils.sysconfig; \
17395				print(distutils.sysconfig.get_python_inc());"`
17396		fi
17397                if test -n "${python_path}"; then
17398                        python_path="-I$python_path"
17399                fi
17400                PYTHON_CPPFLAGS=$python_path
17401        fi
17402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17403$as_echo "$PYTHON_CPPFLAGS" >&6; }
17404
17405
17406        #
17407        # Check for Python library path
17408        #
17409        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17410$as_echo_n "checking for Python library path... " >&6; }
17411        if test -z "$PYTHON_LDFLAGS"; then
17412                PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17413                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17414        fi
17415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17416$as_echo "$PYTHON_LDFLAGS" >&6; }
17417
17418
17419        if test -z "$PYTHON_LIBDIR"; then
17420                PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17421                        print(get_config_var('LIBDIR'));"`
17422        fi
17423
17424        #
17425        # Check for site packages
17426        #
17427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17428$as_echo_n "checking for Python site-packages path... " >&6; }
17429        if test -z "$PYTHON_SITE_PKG"; then
17430		if test "$sysconfig_module" = "sysconfig"; then
17431			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17432				print(sysconfig.get_path("platlib"));'`
17433		else
17434			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17435				print(distutils.sysconfig.get_python_lib(1,0));"`
17436		fi
17437        fi
17438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17439$as_echo "$PYTHON_SITE_PKG" >&6; }
17440
17441
17442        #
17443        # final check to see if everything compiles alright
17444        #
17445        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17446$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17447        ac_ext=c
17448ac_cpp='$CPP $CPPFLAGS'
17449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452
17453        # save current global flags
17454        ac_save_LIBS="$LIBS"
17455        ac_save_CPPFLAGS="$CPPFLAGS"
17456
17457        LIBS="$LIBS $PYTHON_LDFLAGS"
17458        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17459        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460/* end confdefs.h.  */
17461
17462                #include <Python.h>
17463
17464int
17465main ()
17466{
17467
17468                Py_Initialize();
17469
17470  ;
17471  return 0;
17472}
17473_ACEOF
17474if ac_fn_c_try_link "$LINENO"; then :
17475  pythonexists=yes
17476else
17477  pythonexists=no
17478fi
17479rm -f core conftest.err conftest.$ac_objext \
17480    conftest$ac_exeext conftest.$ac_ext
17481
17482        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17483$as_echo "$pythonexists" >&6; }
17484
17485        if test ! "$pythonexists" = "yes"; then
17486           as_fn_error $? "
17487  Could not link test program to Python. Maybe the main Python library has been
17488  installed in some non-standard library path. If so, pass it to configure,
17489  via the LDFLAGS environment variable.
17490  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17491  ============================================================================
17492   ERROR!
17493   You probably have to install the development version of the Python package
17494   for your distribution.  The exact name of this package varies among them.
17495  ============================================================================
17496           " "$LINENO" 5
17497          PYTHON_VERSION=""
17498        fi
17499        ac_ext=c
17500ac_cpp='$CPP $CPPFLAGS'
17501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505        # turn back to default flags
17506        CPPFLAGS="$ac_save_CPPFLAGS"
17507        LIBS="$ac_save_LIBS"
17508
17509        #
17510        # all done!
17511        #
17512
17513   if test ! -z "$PYTHON_VERSION"; then
17514	badversion="no"
17515	if test "$PYTHON_VERSION_MAJOR" -lt 2; then
17516		badversion="yes"
17517	fi
17518	if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
17519		badversion="yes"
17520	fi
17521	if test "$badversion" = "yes"; then
17522		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17523	fi
17524
17525      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17526
17527      # Have Python
17528
17529$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17530
17531      if test x_$ub_with_pythonmod != x_no; then
17532        if test -n "$LIBS"; then
17533          LIBS="$PYTHON_LDFLAGS $LIBS"
17534        else
17535          LIBS="$PYTHON_LDFLAGS"
17536        fi
17537      fi
17538      PYTHON_LIBS="$PYTHON_LDFLAGS"
17539
17540      if test -n "$CPPFLAGS"; then
17541        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17542      else
17543        CPPFLAGS="$PYTHON_CPPFLAGS"
17544      fi
17545      if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17546
17547	if test "x$enable_rpath" = xyes; then
17548		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17549			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17550		fi
17551	fi
17552
17553      fi
17554      ub_have_python=yes
17555      if test -n "$PKG_CONFIG" && \
17556    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17557  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17558  ac_status=$?
17559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17560  test $ac_status = 0; }; then
17561  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17562else
17563  PC_PY_DEPENDENCY="python"
17564fi
17565
17566
17567      # Check for SWIG
17568      ub_have_swig=no
17569      # Check whether --enable-swig-version-check was given.
17570if test "${enable_swig_version_check+set}" = set; then :
17571  enableval=$enable_swig_version_check;
17572fi
17573
17574      if test "$enable_swig_version_check" = "yes"; then
17575
17576        # Extract the first word of "swig", so it can be a program name with args.
17577set dummy swig; ac_word=$2
17578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17579$as_echo_n "checking for $ac_word... " >&6; }
17580if ${ac_cv_path_SWIG+:} false; then :
17581  $as_echo_n "(cached) " >&6
17582else
17583  case $SWIG in
17584  [\\/]* | ?:[\\/]*)
17585  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17586  ;;
17587  *)
17588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17589for as_dir in $PATH
17590do
17591  IFS=$as_save_IFS
17592  test -z "$as_dir" && as_dir=.
17593    for ac_exec_ext in '' $ac_executable_extensions; do
17594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17595    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17597    break 2
17598  fi
17599done
17600  done
17601IFS=$as_save_IFS
17602
17603  ;;
17604esac
17605fi
17606SWIG=$ac_cv_path_SWIG
17607if test -n "$SWIG"; then
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17609$as_echo "$SWIG" >&6; }
17610else
17611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612$as_echo "no" >&6; }
17613fi
17614
17615
17616        if test -z "$SWIG" ; then
17617                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17618$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17619                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17620        elif test -n "2.0.1" ; then
17621                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17622$as_echo_n "checking for SWIG version... " >&6; }
17623                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'`
17624                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17625$as_echo "$swig_version" >&6; }
17626                if test -n "$swig_version" ; then
17627                        # Calculate the required version number components
17628                        required=2.0.1
17629                        required_major=`echo $required | sed 's/[^0-9].*//'`
17630                        if test -z "$required_major" ; then
17631                                required_major=0
17632                        fi
17633                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17634                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17635                        if test -z "$required_minor" ; then
17636                                required_minor=0
17637                        fi
17638                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17639                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17640                        if test -z "$required_patch" ; then
17641                                required_patch=0
17642                        fi
17643                        # Calculate the available version number components
17644                        available=$swig_version
17645                        available_major=`echo $available | sed 's/[^0-9].*//'`
17646                        if test -z "$available_major" ; then
17647                                available_major=0
17648                        fi
17649                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17650                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17651                        if test -z "$available_minor" ; then
17652                                available_minor=0
17653                        fi
17654                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17655                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17656                        if test -z "$available_patch" ; then
17657                                available_patch=0
17658                        fi
17659			badversion=0
17660			if test $available_major -lt $required_major ; then
17661				badversion=1
17662			fi
17663                        if test $available_major -eq $required_major \
17664                                -a $available_minor -lt $required_minor ; then
17665				badversion=1
17666			fi
17667                        if test $available_major -eq $required_major \
17668                                -a $available_minor -eq $required_minor \
17669                                -a $available_patch -lt $required_patch ; then
17670				badversion=1
17671			fi
17672			if test $badversion -eq 1 ; then
17673                                { $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
17674$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;}
17675                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17676                        else
17677                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17678$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17679                                SWIG_LIB=`$SWIG -swiglib`
17680                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17681$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17682                        fi
17683                else
17684                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17685$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17686                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17687                fi
17688        fi
17689
17690
17691      else
17692
17693        # Extract the first word of "swig", so it can be a program name with args.
17694set dummy swig; ac_word=$2
17695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17696$as_echo_n "checking for $ac_word... " >&6; }
17697if ${ac_cv_path_SWIG+:} false; then :
17698  $as_echo_n "(cached) " >&6
17699else
17700  case $SWIG in
17701  [\\/]* | ?:[\\/]*)
17702  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17703  ;;
17704  *)
17705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17706for as_dir in $PATH
17707do
17708  IFS=$as_save_IFS
17709  test -z "$as_dir" && as_dir=.
17710    for ac_exec_ext in '' $ac_executable_extensions; do
17711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17712    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17714    break 2
17715  fi
17716done
17717  done
17718IFS=$as_save_IFS
17719
17720  ;;
17721esac
17722fi
17723SWIG=$ac_cv_path_SWIG
17724if test -n "$SWIG"; then
17725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17726$as_echo "$SWIG" >&6; }
17727else
17728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729$as_echo "no" >&6; }
17730fi
17731
17732
17733        if test -z "$SWIG" ; then
17734                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17735$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17736                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17737        elif test -n "" ; then
17738                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17739$as_echo_n "checking for SWIG version... " >&6; }
17740                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'`
17741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17742$as_echo "$swig_version" >&6; }
17743                if test -n "$swig_version" ; then
17744                        # Calculate the required version number components
17745                        required=
17746                        required_major=`echo $required | sed 's/[^0-9].*//'`
17747                        if test -z "$required_major" ; then
17748                                required_major=0
17749                        fi
17750                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17751                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17752                        if test -z "$required_minor" ; then
17753                                required_minor=0
17754                        fi
17755                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17756                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17757                        if test -z "$required_patch" ; then
17758                                required_patch=0
17759                        fi
17760                        # Calculate the available version number components
17761                        available=$swig_version
17762                        available_major=`echo $available | sed 's/[^0-9].*//'`
17763                        if test -z "$available_major" ; then
17764                                available_major=0
17765                        fi
17766                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17767                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17768                        if test -z "$available_minor" ; then
17769                                available_minor=0
17770                        fi
17771                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17772                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17773                        if test -z "$available_patch" ; then
17774                                available_patch=0
17775                        fi
17776			badversion=0
17777			if test $available_major -lt $required_major ; then
17778				badversion=1
17779			fi
17780                        if test $available_major -eq $required_major \
17781                                -a $available_minor -lt $required_minor ; then
17782				badversion=1
17783			fi
17784                        if test $available_major -eq $required_major \
17785                                -a $available_minor -eq $required_minor \
17786                                -a $available_patch -lt $required_patch ; then
17787				badversion=1
17788			fi
17789			if test $badversion -eq 1 ; then
17790                                { $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
17791$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17792                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17793                        else
17794                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17795$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17796                                SWIG_LIB=`$SWIG -swiglib`
17797                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17798$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17799                        fi
17800                else
17801                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17802$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17803                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17804                fi
17805        fi
17806
17807
17808      fi
17809      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17810$as_echo_n "checking SWIG... " >&6; }
17811      if test ! -x "$SWIG"; then
17812         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17813      else
17814
17815$as_echo "#define HAVE_SWIG 1" >>confdefs.h
17816
17817         swig="$SWIG"
17818
17819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17820$as_echo "present" >&6; }
17821
17822         # If have Python & SWIG
17823         # Declare PythonMod
17824         if test x_$ub_with_pythonmod != x_no; then
17825
17826$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17827
17828            WITH_PYTHONMODULE=yes
17829
17830	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17831
17832	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17833
17834	    PYTHONMOD_INSTALL=pythonmod-install
17835
17836	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
17837
17838         fi
17839
17840         # Declare PyUnbound
17841         if test x_$ub_with_pyunbound != x_no; then
17842
17843$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17844
17845            WITH_PYUNBOUND=yes
17846
17847	    PYUNBOUND_OBJ="libunbound_wrap.lo"
17848
17849	    PYUNBOUND_TARGET="_unbound.la"
17850
17851	    PYUNBOUND_INSTALL=pyunbound-install
17852
17853	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
17854
17855         fi
17856      fi
17857   else
17858      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17859$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17860      ub_with_pyunbound=no
17861      ub_with_pythonmod=no
17862   fi
17863fi
17864
17865if test "`uname`" = "NetBSD"; then
17866	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17867
17868fi
17869
17870if test "`uname`" = "Linux"; then
17871	# splint cannot parse modern c99 header files
17872	GCC_DOCKER_LINTFLAGS='-syntax'
17873
17874fi
17875CONFIG_DATE=`date +%Y%m%d`
17876
17877
17878# Checks for libraries.
17879
17880# libnss
17881USE_NSS="no"
17882
17883# Check whether --with-nss was given.
17884if test "${with_nss+set}" = set; then :
17885  withval=$with_nss;
17886	USE_NSS="yes"
17887
17888$as_echo "#define HAVE_NSS 1" >>confdefs.h
17889
17890	if test "$withval" != "" -a "$withval" != "yes"; then
17891		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17892		LDFLAGS="$LDFLAGS -L$withval/lib"
17893
17894	if test "x$enable_rpath" = xyes; then
17895		if echo "$withval/lib" | grep "^/" >/dev/null; then
17896			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17897		fi
17898	fi
17899
17900		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17901	else
17902		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17903		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17904	fi
17905        LIBS="$LIBS -lnss3 -lnspr4"
17906	SSLLIB=""
17907	PC_CRYPTO_DEPENDENCY="nss nspr"
17908
17909
17910
17911fi
17912
17913
17914# libnettle
17915USE_NETTLE="no"
17916
17917# Check whether --with-nettle was given.
17918if test "${with_nettle+set}" = set; then :
17919  withval=$with_nettle;
17920	USE_NETTLE="yes"
17921
17922$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17923
17924	for ac_header in nettle/dsa-compat.h
17925do :
17926  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17927"
17928if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17929  cat >>confdefs.h <<_ACEOF
17930#define HAVE_NETTLE_DSA_COMPAT_H 1
17931_ACEOF
17932
17933fi
17934
17935done
17936
17937	if test "$withval" != "" -a "$withval" != "yes"; then
17938		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17939		LDFLAGS="$LDFLAGS -L$withval/lib"
17940
17941	if test "x$enable_rpath" = xyes; then
17942		if echo "$withval/lib" | grep "^/" >/dev/null; then
17943			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17944		fi
17945	fi
17946
17947	else
17948		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17949	fi
17950        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17951	SSLLIB=""
17952	PC_CRYPTO_DEPENDENCY="hogweed nettle"
17953
17954
17955
17956fi
17957
17958
17959# openssl
17960if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17961
17962
17963# Check whether --with-ssl was given.
17964if test "${with_ssl+set}" = set; then :
17965  withval=$with_ssl;
17966
17967else
17968
17969            withval="yes"
17970
17971fi
17972
17973    if test x_$withval = x_no; then
17974	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17975    fi
17976
17977    withval=$withval
17978    if test x_$withval != x_no; then
17979        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17980$as_echo_n "checking for SSL... " >&6; }
17981	if test -n "$withval"; then
17982										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
17983			ssldir="$withval"
17984			found_ssl="yes"
17985			withval=""
17986			ssldir_include="$ssldir"
17987						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
17988			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
17989				: # found here
17990			else
17991				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
17992				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
17993					: # found here
17994				else
17995					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
17996				fi
17997			fi
17998		fi
17999	fi
18000        if test x_$withval = x_ -o x_$withval = x_yes; then
18001            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18002        fi
18003        for dir in $withval; do
18004            ssldir="$dir"
18005            if test -f "$dir/include/openssl/ssl.h"; then
18006                found_ssl="yes"
18007		ssldir_include="$ssldir/include"
18008		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18009			ssldir_lib="$ssldir/lib64"
18010		else
18011			ssldir_lib="$ssldir/lib"
18012		fi
18013                break;
18014            fi
18015        done
18016        if test x_$found_ssl != x_yes; then
18017            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18018        else
18019            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18020$as_echo "found in $ssldir" >&6; }
18021
18022cat >>confdefs.h <<_ACEOF
18023#define HAVE_SSL /**/
18024_ACEOF
18025
18026            HAVE_SSL=yes
18027	                if test "$ssldir" != "/usr"; then
18028		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18029		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18030		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
18031		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18032
18033	if test "x$enable_rpath" = xyes; then
18034		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18035			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18036		fi
18037	fi
18038
18039	    fi
18040
18041            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18042$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18043            LIBS="$LIBS -lcrypto"
18044            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18045            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047
18048int
18049main ()
18050{
18051
18052                int EVP_sha256(void);
18053                (void)EVP_sha256();
18054
18055  ;
18056  return 0;
18057}
18058_ACEOF
18059if ac_fn_c_try_link "$LINENO"; then :
18060
18061                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062$as_echo "yes" >&6; }
18063
18064$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18065
18066
18067else
18068
18069                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18070$as_echo "no" >&6; }
18071                # check if -lwsock32 or -lgdi32 are needed.
18072                BAKLIBS="$LIBS"
18073                BAKSSLLIBS="$LIBSSL_LIBS"
18074		LIBS="$LIBS -lgdi32 -lws2_32"
18075		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18076                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18077$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18078                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079/* end confdefs.h.  */
18080
18081int
18082main ()
18083{
18084
18085                    int EVP_sha256(void);
18086                    (void)EVP_sha256();
18087
18088  ;
18089  return 0;
18090}
18091_ACEOF
18092if ac_fn_c_try_link "$LINENO"; then :
18093
18094
18095$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18096
18097                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098$as_echo "yes" >&6; }
18099
18100else
18101
18102                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103$as_echo "no" >&6; }
18104                    LIBS="$BAKLIBS"
18105                    LIBSSL_LIBS="$BAKSSLLIBS"
18106                    LIBS="$LIBS -ldl"
18107                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18108                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18109$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18110                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h.  */
18112
18113int
18114main ()
18115{
18116
18117                        int EVP_sha256(void);
18118                        (void)EVP_sha256();
18119
18120  ;
18121  return 0;
18122}
18123_ACEOF
18124if ac_fn_c_try_link "$LINENO"; then :
18125
18126
18127$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18128
18129                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130$as_echo "yes" >&6; }
18131
18132else
18133
18134                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136                        LIBS="$BAKLIBS"
18137                        LIBSSL_LIBS="$BAKSSLLIBS"
18138                        LIBS="$LIBS -ldl -pthread"
18139                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18140                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18141$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18142                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143/* end confdefs.h.  */
18144
18145int
18146main ()
18147{
18148
18149                            int EVP_sha256(void);
18150                            (void)EVP_sha256();
18151
18152  ;
18153  return 0;
18154}
18155_ACEOF
18156if ac_fn_c_try_link "$LINENO"; then :
18157
18158
18159$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18160
18161                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18162$as_echo "yes" >&6; }
18163
18164else
18165
18166                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18167$as_echo "no" >&6; }
18168                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18169
18170fi
18171rm -f core conftest.err conftest.$ac_objext \
18172    conftest$ac_exeext conftest.$ac_ext
18173
18174fi
18175rm -f core conftest.err conftest.$ac_objext \
18176    conftest$ac_exeext conftest.$ac_ext
18177
18178fi
18179rm -f core conftest.err conftest.$ac_objext \
18180    conftest$ac_exeext conftest.$ac_ext
18181
18182fi
18183rm -f core conftest.err conftest.$ac_objext \
18184    conftest$ac_exeext conftest.$ac_ext
18185        fi
18186
18187
18188    fi
18189for ac_header in openssl/ssl.h
18190do :
18191  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18192"
18193if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18194  cat >>confdefs.h <<_ACEOF
18195#define HAVE_OPENSSL_SSL_H 1
18196_ACEOF
18197
18198fi
18199
18200done
18201
18202for ac_header in openssl/err.h
18203do :
18204  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18205"
18206if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18207  cat >>confdefs.h <<_ACEOF
18208#define HAVE_OPENSSL_ERR_H 1
18209_ACEOF
18210
18211fi
18212
18213done
18214
18215for ac_header in openssl/rand.h
18216do :
18217  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18218"
18219if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18220  cat >>confdefs.h <<_ACEOF
18221#define HAVE_OPENSSL_RAND_H 1
18222_ACEOF
18223
18224fi
18225
18226done
18227
18228
18229
18230
18231# check if libssl needs libdl
18232BAKLIBS="$LIBS"
18233LIBS="-lssl $LIBS"
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18235$as_echo_n "checking if libssl needs libdl... " >&6; }
18236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237/* end confdefs.h.  */
18238
18239/* Override any GCC internal prototype to avoid an error.
18240   Use char because int might match the return type of a GCC
18241   builtin and then its argument prototype would still apply.  */
18242#ifdef __cplusplus
18243extern "C"
18244#endif
18245char SSL_CTX_new ();
18246int
18247main ()
18248{
18249return SSL_CTX_new ();
18250  ;
18251  return 0;
18252}
18253_ACEOF
18254if ac_fn_c_try_link "$LINENO"; then :
18255
18256	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257$as_echo "no" >&6; }
18258	LIBS="$BAKLIBS"
18259
18260else
18261
18262	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18263$as_echo "yes" >&6; }
18264	LIBS="$BAKLIBS"
18265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18266$as_echo_n "checking for library containing dlopen... " >&6; }
18267if ${ac_cv_search_dlopen+:} false; then :
18268  $as_echo_n "(cached) " >&6
18269else
18270  ac_func_search_save_LIBS=$LIBS
18271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272/* end confdefs.h.  */
18273
18274/* Override any GCC internal prototype to avoid an error.
18275   Use char because int might match the return type of a GCC
18276   builtin and then its argument prototype would still apply.  */
18277#ifdef __cplusplus
18278extern "C"
18279#endif
18280char dlopen ();
18281int
18282main ()
18283{
18284return dlopen ();
18285  ;
18286  return 0;
18287}
18288_ACEOF
18289for ac_lib in '' dl; do
18290  if test -z "$ac_lib"; then
18291    ac_res="none required"
18292  else
18293    ac_res=-l$ac_lib
18294    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18295  fi
18296  if ac_fn_c_try_link "$LINENO"; then :
18297  ac_cv_search_dlopen=$ac_res
18298fi
18299rm -f core conftest.err conftest.$ac_objext \
18300    conftest$ac_exeext
18301  if ${ac_cv_search_dlopen+:} false; then :
18302  break
18303fi
18304done
18305if ${ac_cv_search_dlopen+:} false; then :
18306
18307else
18308  ac_cv_search_dlopen=no
18309fi
18310rm conftest.$ac_ext
18311LIBS=$ac_func_search_save_LIBS
18312fi
18313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18314$as_echo "$ac_cv_search_dlopen" >&6; }
18315ac_res=$ac_cv_search_dlopen
18316if test "$ac_res" != no; then :
18317  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18318
18319fi
18320
18321
18322fi
18323rm -f core conftest.err conftest.$ac_objext \
18324    conftest$ac_exeext conftest.$ac_ext
18325SSLLIB="-lssl"
18326
18327PC_CRYPTO_DEPENDENCY=""
18328
18329
18330# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18331BAKLIBS="$LIBS"
18332LIBS="-lssl $LIBS"
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18334$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336/* end confdefs.h.  */
18337
18338int
18339main ()
18340{
18341
18342	int EVP_sha256(void);
18343	(void)EVP_sha256();
18344
18345  ;
18346  return 0;
18347}
18348_ACEOF
18349if ac_fn_c_try_link "$LINENO"; then :
18350
18351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352$as_echo "no" >&6; }
18353	LIBS="$BAKLIBS"
18354
18355else
18356
18357	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358$as_echo "yes" >&6; }
18359	LIBS="$BAKLIBS"
18360	LIBS="$LIBS -lcrypt32"
18361
18362fi
18363rm -f core conftest.err conftest.$ac_objext \
18364    conftest$ac_exeext conftest.$ac_ext
18365
18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18367$as_echo_n "checking for LibreSSL... " >&6; }
18368if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18369	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18370$as_echo "yes" >&6; }
18371
18372$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18373
18374	# libressl provides these compat functions, but they may also be
18375	# declared by the OS in libc.  See if they have been declared.
18376	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18377if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18378  ac_have_decl=1
18379else
18380  ac_have_decl=0
18381fi
18382
18383cat >>confdefs.h <<_ACEOF
18384#define HAVE_DECL_STRLCPY $ac_have_decl
18385_ACEOF
18386ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18387if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18388  ac_have_decl=1
18389else
18390  ac_have_decl=0
18391fi
18392
18393cat >>confdefs.h <<_ACEOF
18394#define HAVE_DECL_STRLCAT $ac_have_decl
18395_ACEOF
18396ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18397if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18398  ac_have_decl=1
18399else
18400  ac_have_decl=0
18401fi
18402
18403cat >>confdefs.h <<_ACEOF
18404#define HAVE_DECL_ARC4RANDOM $ac_have_decl
18405_ACEOF
18406ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18407if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18408  ac_have_decl=1
18409else
18410  ac_have_decl=0
18411fi
18412
18413cat >>confdefs.h <<_ACEOF
18414#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18415_ACEOF
18416
18417else
18418	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419$as_echo "no" >&6; }
18420fi
18421for 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
18422do :
18423  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18425"
18426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18427  cat >>confdefs.h <<_ACEOF
18428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18429_ACEOF
18430
18431fi
18432
18433done
18434
18435for 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
18436do :
18437  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18438ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18439if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18440  cat >>confdefs.h <<_ACEOF
18441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18442_ACEOF
18443
18444fi
18445done
18446
18447
18448# these check_funcs need -lssl
18449BAKLIBS="$LIBS"
18450LIBS="-lssl $LIBS"
18451for 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
18452do :
18453  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18454ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18455if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18456  cat >>confdefs.h <<_ACEOF
18457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18458_ACEOF
18459
18460fi
18461done
18462
18463LIBS="$BAKLIBS"
18464
18465ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18466$ac_includes_default
18467#ifdef HAVE_OPENSSL_ERR_H
18468#include <openssl/err.h>
18469#endif
18470
18471#ifdef HAVE_OPENSSL_RAND_H
18472#include <openssl/rand.h>
18473#endif
18474
18475#ifdef HAVE_OPENSSL_CONF_H
18476#include <openssl/conf.h>
18477#endif
18478
18479#ifdef HAVE_OPENSSL_ENGINE_H
18480#include <openssl/engine.h>
18481#endif
18482#include <openssl/ssl.h>
18483#include <openssl/evp.h>
18484
18485"
18486if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18487  ac_have_decl=1
18488else
18489  ac_have_decl=0
18490fi
18491
18492cat >>confdefs.h <<_ACEOF
18493#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18494_ACEOF
18495ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18496$ac_includes_default
18497#ifdef HAVE_OPENSSL_ERR_H
18498#include <openssl/err.h>
18499#endif
18500
18501#ifdef HAVE_OPENSSL_RAND_H
18502#include <openssl/rand.h>
18503#endif
18504
18505#ifdef HAVE_OPENSSL_CONF_H
18506#include <openssl/conf.h>
18507#endif
18508
18509#ifdef HAVE_OPENSSL_ENGINE_H
18510#include <openssl/engine.h>
18511#endif
18512#include <openssl/ssl.h>
18513#include <openssl/evp.h>
18514
18515"
18516if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18517  ac_have_decl=1
18518else
18519  ac_have_decl=0
18520fi
18521
18522cat >>confdefs.h <<_ACEOF
18523#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18524_ACEOF
18525ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18526$ac_includes_default
18527#ifdef HAVE_OPENSSL_ERR_H
18528#include <openssl/err.h>
18529#endif
18530
18531#ifdef HAVE_OPENSSL_RAND_H
18532#include <openssl/rand.h>
18533#endif
18534
18535#ifdef HAVE_OPENSSL_CONF_H
18536#include <openssl/conf.h>
18537#endif
18538
18539#ifdef HAVE_OPENSSL_ENGINE_H
18540#include <openssl/engine.h>
18541#endif
18542#include <openssl/ssl.h>
18543#include <openssl/evp.h>
18544
18545"
18546if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18547  ac_have_decl=1
18548else
18549  ac_have_decl=0
18550fi
18551
18552cat >>confdefs.h <<_ACEOF
18553#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18554_ACEOF
18555
18556
18557if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18558# check function return type.
18559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18560$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563
18564#ifdef HAVE_OPENSSL_ERR_H
18565#include <openssl/err.h>
18566#endif
18567
18568#ifdef HAVE_OPENSSL_RAND_H
18569#include <openssl/rand.h>
18570#endif
18571
18572#ifdef HAVE_OPENSSL_CONF_H
18573#include <openssl/conf.h>
18574#endif
18575
18576#ifdef HAVE_OPENSSL_ENGINE_H
18577#include <openssl/engine.h>
18578#endif
18579#include <openssl/ssl.h>
18580#include <openssl/evp.h>
18581
18582int
18583main ()
18584{
18585
18586	HMAC_CTX* hmac_ctx = NULL;
18587	void* hmac_key = NULL;
18588	const EVP_MD* digest = NULL;
18589	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18590	(void)x;
18591
18592  ;
18593  return 0;
18594}
18595_ACEOF
18596if ac_fn_c_try_compile "$LINENO"; then :
18597
18598	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18599$as_echo "int" >&6; }
18600
18601else
18602
18603	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18604$as_echo "void" >&6; }
18605
18606$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18607
18608
18609fi
18610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611fi
18612
18613fi
18614
18615
18616# libbsd
18617
18618# Check whether --with-libbsd was given.
18619if test "${with_libbsd+set}" = set; then :
18620  withval=$with_libbsd;
18621	for ac_header in bsd/string.h bsd/stdlib.h
18622do :
18623  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18624ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18625"
18626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18627  cat >>confdefs.h <<_ACEOF
18628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18629_ACEOF
18630
18631fi
18632
18633done
18634
18635	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18636		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18637			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18639$as_echo_n "checking for library containing $func... " >&6; }
18640if eval \${$as_ac_Search+:} false; then :
18641  $as_echo_n "(cached) " >&6
18642else
18643  ac_func_search_save_LIBS=$LIBS
18644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h.  */
18646
18647/* Override any GCC internal prototype to avoid an error.
18648   Use char because int might match the return type of a GCC
18649   builtin and then its argument prototype would still apply.  */
18650#ifdef __cplusplus
18651extern "C"
18652#endif
18653char $func ();
18654int
18655main ()
18656{
18657return $func ();
18658  ;
18659  return 0;
18660}
18661_ACEOF
18662for ac_lib in '' bsd; do
18663  if test -z "$ac_lib"; then
18664    ac_res="none required"
18665  else
18666    ac_res=-l$ac_lib
18667    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18668  fi
18669  if ac_fn_c_try_link "$LINENO"; then :
18670  eval "$as_ac_Search=\$ac_res"
18671fi
18672rm -f core conftest.err conftest.$ac_objext \
18673    conftest$ac_exeext
18674  if eval \${$as_ac_Search+:} false; then :
18675  break
18676fi
18677done
18678if eval \${$as_ac_Search+:} false; then :
18679
18680else
18681  eval "$as_ac_Search=no"
18682fi
18683rm conftest.$ac_ext
18684LIBS=$ac_func_search_save_LIBS
18685fi
18686eval ac_res=\$$as_ac_Search
18687	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18688$as_echo "$ac_res" >&6; }
18689eval ac_res=\$$as_ac_Search
18690if test "$ac_res" != no; then :
18691  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18692
18693
18694$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18695
18696				PC_LIBBSD_DEPENDENCY=libbsd
18697
18698
18699fi
18700
18701		done
18702	fi
18703
18704fi
18705
18706
18707# Check whether --enable-sha1 was given.
18708if test "${enable_sha1+set}" = set; then :
18709  enableval=$enable_sha1;
18710fi
18711
18712case "$enable_sha1" in
18713	no)
18714	;;
18715	yes|*)
18716
18717$as_echo "#define USE_SHA1 1" >>confdefs.h
18718
18719	;;
18720esac
18721
18722
18723# Check whether --enable-sha2 was given.
18724if test "${enable_sha2+set}" = set; then :
18725  enableval=$enable_sha2;
18726fi
18727
18728case "$enable_sha2" in
18729	no)
18730	;;
18731	yes|*)
18732
18733$as_echo "#define USE_SHA2 1" >>confdefs.h
18734
18735	;;
18736esac
18737
18738# Check whether --enable-subnet was given.
18739if test "${enable_subnet+set}" = set; then :
18740  enableval=$enable_subnet;
18741fi
18742
18743case "$enable_subnet" in
18744	yes)
18745
18746$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18747
18748	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18749
18750	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18751
18752	;;
18753	no|*)
18754	;;
18755esac
18756
18757# check whether gost also works
18758
18759# Check whether --enable-gost was given.
18760if test "${enable_gost+set}" = set; then :
18761  enableval=$enable_gost;
18762fi
18763
18764use_gost="no"
18765if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18766case "$enable_gost" in
18767	no)
18768	;;
18769	*)
18770	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18771if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18772  :
18773else
18774  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18775fi
18776
18777	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18778if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18779
18780else
18781  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18782fi
18783
18784
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18786$as_echo_n "checking if GOST works... " >&6; }
18787if test c${cross_compiling} = cno; then
18788BAKCFLAGS="$CFLAGS"
18789if test -n "$ssldir"; then
18790	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18791fi
18792if test "$cross_compiling" = yes; then :
18793  eval "ac_cv_c_gost_works=maybe"
18794else
18795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796/* end confdefs.h.  */
18797
18798#include <string.h>
18799#include <openssl/ssl.h>
18800#include <openssl/evp.h>
18801#include <openssl/engine.h>
18802#include <openssl/conf.h>
18803/* routine to load gost (from sldns) */
18804int load_gost_id(void)
18805{
18806	static int gost_id = 0;
18807	const EVP_PKEY_ASN1_METHOD* meth;
18808	ENGINE* e;
18809
18810	if(gost_id) return gost_id;
18811
18812	/* see if configuration loaded gost implementation from other engine*/
18813	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18814	if(meth) {
18815		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18816		return gost_id;
18817	}
18818
18819	/* see if engine can be loaded already */
18820	e = ENGINE_by_id("gost");
18821	if(!e) {
18822		/* load it ourself, in case statically linked */
18823		ENGINE_load_builtin_engines();
18824		ENGINE_load_dynamic();
18825		e = ENGINE_by_id("gost");
18826	}
18827	if(!e) {
18828		/* no gost engine in openssl */
18829		return 0;
18830	}
18831	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18832		ENGINE_finish(e);
18833		ENGINE_free(e);
18834		return 0;
18835	}
18836
18837	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18838	if(!meth) {
18839		/* algo not found */
18840		ENGINE_finish(e);
18841		ENGINE_free(e);
18842		return 0;
18843	}
18844	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18845	return gost_id;
18846}
18847int main(void) {
18848	EVP_MD_CTX* ctx;
18849	const EVP_MD* md;
18850	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18851	const char* str = "Hello world";
18852	const unsigned char check[] = {
18853		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18854		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18855		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18856		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18857	};
18858	OPENSSL_config(NULL);
18859	(void)load_gost_id();
18860	md = EVP_get_digestbyname("md_gost94");
18861	if(!md) return 1;
18862	memset(digest, 0, sizeof(digest));
18863	ctx = EVP_MD_CTX_create();
18864	if(!ctx) return 2;
18865	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18866	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18867	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18868	/* uncomment to see the hash calculated.
18869		{int i;
18870		for(i=0; i<32; i++)
18871			printf(" %2.2x", (int)digest[i]);
18872		printf("\n");}
18873	*/
18874	if(memcmp(digest, check, sizeof(check)) != 0)
18875		return 6;
18876	return 0;
18877}
18878
18879_ACEOF
18880if ac_fn_c_try_run "$LINENO"; then :
18881  eval "ac_cv_c_gost_works=yes"
18882else
18883  eval "ac_cv_c_gost_works=no"
18884fi
18885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18886  conftest.$ac_objext conftest.beam conftest.$ac_ext
18887fi
18888
18889CFLAGS="$BAKCFLAGS"
18890else
18891eval "ac_cv_c_gost_works=maybe"
18892fi
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18894$as_echo "$ac_cv_c_gost_works" >&6; }
18895
18896	if test "$ac_cv_c_gost_works" != no; then
18897		use_gost="yes"
18898
18899$as_echo "#define USE_GOST 1" >>confdefs.h
18900
18901	fi
18902	;;
18903esac
18904fi
18905# Check whether --enable-ecdsa was given.
18906if test "${enable_ecdsa+set}" = set; then :
18907  enableval=$enable_ecdsa;
18908fi
18909
18910use_ecdsa="no"
18911case "$enable_ecdsa" in
18912    no)
18913      ;;
18914    *)
18915      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18916	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18917if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18918
18919else
18920  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18921fi
18922
18923	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18924if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18925
18926else
18927  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18928fi
18929
18930	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18931#include <openssl/evp.h>
18932
18933"
18934if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18935  ac_have_decl=1
18936else
18937  ac_have_decl=0
18938fi
18939
18940cat >>confdefs.h <<_ACEOF
18941#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18942_ACEOF
18943if test $ac_have_decl = 1; then :
18944
18945else
18946  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18947fi
18948ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18949#include <openssl/evp.h>
18950
18951"
18952if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18953  ac_have_decl=1
18954else
18955  ac_have_decl=0
18956fi
18957
18958cat >>confdefs.h <<_ACEOF
18959#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18960_ACEOF
18961if test $ac_have_decl = 1; then :
18962
18963else
18964  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18965fi
18966
18967	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18968	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18969$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18970	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18971		if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18972		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973$as_echo "no" >&6; }
18974
18975cat >>confdefs.h <<_ACEOF
18976#define USE_ECDSA_EVP_WORKAROUND 1
18977_ACEOF
18978
18979		else
18980		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18981$as_echo "yes" >&6; }
18982		fi
18983	      else
18984		# not OpenSSL, thus likely LibreSSL, which supports it
18985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986$as_echo "yes" >&6; }
18987	      fi
18988      fi
18989      # we now know we have ECDSA and the required curves.
18990
18991cat >>confdefs.h <<_ACEOF
18992#define USE_ECDSA 1
18993_ACEOF
18994
18995      use_ecdsa="yes"
18996      ;;
18997esac
18998
18999# Check whether --enable-dsa was given.
19000if test "${enable_dsa+set}" = set; then :
19001  enableval=$enable_dsa;
19002fi
19003
19004use_dsa="no"
19005case "$enable_dsa" in
19006    yes)
19007      # detect if DSA is supported, and turn it off if not.
19008      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19009      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19010if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19011
19012      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19013ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19014$ac_includes_default
19015#ifdef HAVE_OPENSSL_ERR_H
19016#include <openssl/err.h>
19017#endif
19018
19019#ifdef HAVE_OPENSSL_RAND_H
19020#include <openssl/rand.h>
19021#endif
19022
19023#ifdef HAVE_OPENSSL_CONF_H
19024#include <openssl/conf.h>
19025#endif
19026
19027#ifdef HAVE_OPENSSL_ENGINE_H
19028#include <openssl/engine.h>
19029#endif
19030
19031"
19032if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19033
19034
19035cat >>confdefs.h <<_ACEOF
19036#define USE_DSA 1
19037_ACEOF
19038
19039
19040else
19041  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19042               fi
19043fi
19044
19045
19046else
19047  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19048               fi
19049fi
19050
19051      else
19052
19053cat >>confdefs.h <<_ACEOF
19054#define USE_DSA 1
19055_ACEOF
19056
19057      fi
19058      ;;
19059    *)
19060      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19061      # support DSA for DNSSEC Validation.
19062      ;;
19063esac
19064
19065
19066# Check whether --with-deprecate-rsa-1024 was given.
19067if test "${with_deprecate_rsa_1024+set}" = set; then :
19068  withval=$with_deprecate_rsa_1024;
19069fi
19070
19071if test "$with_deprecate_rsa_1024" = "yes"; then
19072
19073$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19074
19075fi
19076
19077# Check whether --enable-ed25519 was given.
19078if test "${enable_ed25519+set}" = set; then :
19079  enableval=$enable_ed25519;
19080fi
19081
19082use_ed25519="no"
19083case "$enable_ed25519" in
19084    no)
19085      ;;
19086    *)
19087      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19088	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19089#include <openssl/evp.h>
19090
19091"
19092if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19093  ac_have_decl=1
19094else
19095  ac_have_decl=0
19096fi
19097
19098cat >>confdefs.h <<_ACEOF
19099#define HAVE_DECL_NID_ED25519 $ac_have_decl
19100_ACEOF
19101if test $ac_have_decl = 1; then :
19102
19103      		use_ed25519="yes"
19104
19105else
19106   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19107	      	fi
19108fi
19109
19110      fi
19111      if test $USE_NETTLE = "yes"; then
19112		for ac_header in nettle/eddsa.h
19113do :
19114  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19115"
19116if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19117  cat >>confdefs.h <<_ACEOF
19118#define HAVE_NETTLE_EDDSA_H 1
19119_ACEOF
19120 use_ed25519="yes"
19121fi
19122
19123done
19124
19125      fi
19126      if test $use_ed25519 = "yes"; then
19127
19128cat >>confdefs.h <<_ACEOF
19129#define USE_ED25519 1
19130_ACEOF
19131
19132      fi
19133      ;;
19134esac
19135
19136# Check whether --enable-ed448 was given.
19137if test "${enable_ed448+set}" = set; then :
19138  enableval=$enable_ed448;
19139fi
19140
19141use_ed448="no"
19142case "$enable_ed448" in
19143    no)
19144      ;;
19145    *)
19146      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19147	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19148#include <openssl/evp.h>
19149
19150"
19151if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19152  ac_have_decl=1
19153else
19154  ac_have_decl=0
19155fi
19156
19157cat >>confdefs.h <<_ACEOF
19158#define HAVE_DECL_NID_ED448 $ac_have_decl
19159_ACEOF
19160if test $ac_have_decl = 1; then :
19161
19162      		use_ed448="yes"
19163
19164else
19165   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19166	      	fi
19167fi
19168
19169      fi
19170      if test $use_ed448 = "yes"; then
19171
19172cat >>confdefs.h <<_ACEOF
19173#define USE_ED448 1
19174_ACEOF
19175
19176      fi
19177      ;;
19178esac
19179
19180# Check whether --enable-event-api was given.
19181if test "${enable_event_api+set}" = set; then :
19182  enableval=$enable_event_api;
19183fi
19184
19185case "$enable_event_api" in
19186    yes)
19187      UNBOUND_EVENT_INSTALL=unbound-event-install
19188
19189      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19190
19191      ;;
19192    *)
19193      ;;
19194esac
19195
19196# Check whether --enable-tfo-client was given.
19197if test "${enable_tfo_client+set}" = set; then :
19198  enableval=$enable_tfo_client;
19199fi
19200
19201case "$enable_tfo_client" in
19202	yes)
19203		case "$host_os" in
19204			linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19205#include <netinet/tcp.h>
19206
19207"
19208if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19210$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19211else
19212  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19213fi
19214
19215
19216cat >>confdefs.h <<_ACEOF
19217#define USE_MSG_FASTOPEN 1
19218_ACEOF
19219
19220				;;
19221			darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19222#include <sys/socket.h>
19223
19224"
19225if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19226  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19227$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19228else
19229  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19230fi
19231
19232
19233cat >>confdefs.h <<_ACEOF
19234#define USE_OSX_MSG_FASTOPEN 1
19235_ACEOF
19236
19237				;;
19238		esac
19239		;;
19240	no|*)
19241		;;
19242esac
19243
19244# Check whether --enable-tfo-server was given.
19245if test "${enable_tfo_server+set}" = set; then :
19246  enableval=$enable_tfo_server;
19247fi
19248
19249case "$enable_tfo_server" in
19250	yes)
19251	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19252#include <netinet/tcp.h>
19253
19254"
19255if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19257$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19258else
19259  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19260fi
19261
19262
19263cat >>confdefs.h <<_ACEOF
19264#define USE_TCP_FASTOPEN 1
19265_ACEOF
19266
19267		;;
19268	no|*)
19269		;;
19270esac
19271
19272# check for libevent
19273
19274# Check whether --with-libevent was given.
19275if test "${with_libevent+set}" = set; then :
19276  withval=$with_libevent;
19277else
19278   with_libevent="no"
19279fi
19280
19281if test "x_$with_libevent" != x_no; then
19282
19283$as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19284
19285        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19286$as_echo_n "checking for libevent... " >&6; }
19287        if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19288            with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19289        fi
19290        for dir in $with_libevent; do
19291            thedir="$dir"
19292            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19293                found_libevent="yes"
19294								if test "$thedir" != "/usr"; then
19295				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
19296				fi
19297				break;
19298		    fi
19299        done
19300        if test x_$found_libevent != x_yes; then
19301		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19302			# libevent source directory
19303			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19304$as_echo "found in $thedir" >&6; }
19305			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19306			BAK_LDFLAGS_SET="1"
19307			BAK_LDFLAGS="$LDFLAGS"
19308			# remove evdns from linking
19309			mkdir build >/dev/null 2>&1
19310			mkdir build/libevent >/dev/null 2>&1
19311			mkdir build/libevent/.libs >/dev/null 2>&1
19312			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19313			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19314			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19315			cp $ev_files_o build/libevent
19316			cp $ev_files_lo build/libevent
19317			cp $ev_files_libso build/libevent/.libs
19318			LATE_LDFLAGS="build/libevent/*.lo -lm"
19319			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19320		else
19321            as_fn_error $? "Cannot find the libevent library in $with_libevent
19322You can restart ./configure --with-libevent=no to use a builtin alternative.
19323Please note that this alternative is not as capable as libevent when using
19324large outgoing port ranges.  " "$LINENO" 5
19325		fi
19326        else
19327            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19328$as_echo "found in $thedir" >&6; }
19329	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19330		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19331
19332	if test "x$enable_rpath" = xyes; then
19333		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19334			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19335		fi
19336	fi
19337
19338	    else
19339		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
19340			LDFLAGS="$LDFLAGS -L$thedir/lib"
19341
19342	if test "x$enable_rpath" = xyes; then
19343		if echo "$thedir/lib" | grep "^/" >/dev/null; then
19344			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19345		fi
19346	fi
19347
19348		    fi
19349	    fi
19350        fi
19351	# check for library used by libevent after 1.3c
19352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19353$as_echo_n "checking for library containing clock_gettime... " >&6; }
19354if ${ac_cv_search_clock_gettime+:} false; then :
19355  $as_echo_n "(cached) " >&6
19356else
19357  ac_func_search_save_LIBS=$LIBS
19358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359/* end confdefs.h.  */
19360
19361/* Override any GCC internal prototype to avoid an error.
19362   Use char because int might match the return type of a GCC
19363   builtin and then its argument prototype would still apply.  */
19364#ifdef __cplusplus
19365extern "C"
19366#endif
19367char clock_gettime ();
19368int
19369main ()
19370{
19371return clock_gettime ();
19372  ;
19373  return 0;
19374}
19375_ACEOF
19376for ac_lib in '' rt; do
19377  if test -z "$ac_lib"; then
19378    ac_res="none required"
19379  else
19380    ac_res=-l$ac_lib
19381    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19382  fi
19383  if ac_fn_c_try_link "$LINENO"; then :
19384  ac_cv_search_clock_gettime=$ac_res
19385fi
19386rm -f core conftest.err conftest.$ac_objext \
19387    conftest$ac_exeext
19388  if ${ac_cv_search_clock_gettime+:} false; then :
19389  break
19390fi
19391done
19392if ${ac_cv_search_clock_gettime+:} false; then :
19393
19394else
19395  ac_cv_search_clock_gettime=no
19396fi
19397rm conftest.$ac_ext
19398LIBS=$ac_func_search_save_LIBS
19399fi
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19401$as_echo "$ac_cv_search_clock_gettime" >&6; }
19402ac_res=$ac_cv_search_clock_gettime
19403if test "$ac_res" != no; then :
19404  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19405
19406fi
19407
19408
19409	# is the event.h header libev or libevent?
19410	for ac_header in event.h
19411do :
19412  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19413"
19414if test "x$ac_cv_header_event_h" = xyes; then :
19415  cat >>confdefs.h <<_ACEOF
19416#define HAVE_EVENT_H 1
19417_ACEOF
19418
19419fi
19420
19421done
19422
19423	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19424#include <event.h>
19425
19426"
19427if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19428
19429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19430$as_echo_n "checking for library containing event_set... " >&6; }
19431if ${ac_cv_search_event_set+:} false; then :
19432  $as_echo_n "(cached) " >&6
19433else
19434  ac_func_search_save_LIBS=$LIBS
19435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436/* end confdefs.h.  */
19437
19438/* Override any GCC internal prototype to avoid an error.
19439   Use char because int might match the return type of a GCC
19440   builtin and then its argument prototype would still apply.  */
19441#ifdef __cplusplus
19442extern "C"
19443#endif
19444char event_set ();
19445int
19446main ()
19447{
19448return event_set ();
19449  ;
19450  return 0;
19451}
19452_ACEOF
19453for ac_lib in '' ev; do
19454  if test -z "$ac_lib"; then
19455    ac_res="none required"
19456  else
19457    ac_res=-l$ac_lib
19458    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19459  fi
19460  if ac_fn_c_try_link "$LINENO"; then :
19461  ac_cv_search_event_set=$ac_res
19462fi
19463rm -f core conftest.err conftest.$ac_objext \
19464    conftest$ac_exeext
19465  if ${ac_cv_search_event_set+:} false; then :
19466  break
19467fi
19468done
19469if ${ac_cv_search_event_set+:} false; then :
19470
19471else
19472  ac_cv_search_event_set=no
19473fi
19474rm conftest.$ac_ext
19475LIBS=$ac_func_search_save_LIBS
19476fi
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19478$as_echo "$ac_cv_search_event_set" >&6; }
19479ac_res=$ac_cv_search_event_set
19480if test "$ac_res" != no; then :
19481  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19482
19483fi
19484
19485
19486else
19487
19488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19489$as_echo_n "checking for library containing event_set... " >&6; }
19490if ${ac_cv_search_event_set+:} false; then :
19491  $as_echo_n "(cached) " >&6
19492else
19493  ac_func_search_save_LIBS=$LIBS
19494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495/* end confdefs.h.  */
19496
19497/* Override any GCC internal prototype to avoid an error.
19498   Use char because int might match the return type of a GCC
19499   builtin and then its argument prototype would still apply.  */
19500#ifdef __cplusplus
19501extern "C"
19502#endif
19503char event_set ();
19504int
19505main ()
19506{
19507return event_set ();
19508  ;
19509  return 0;
19510}
19511_ACEOF
19512for ac_lib in '' event; do
19513  if test -z "$ac_lib"; then
19514    ac_res="none required"
19515  else
19516    ac_res=-l$ac_lib
19517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19518  fi
19519  if ac_fn_c_try_link "$LINENO"; then :
19520  ac_cv_search_event_set=$ac_res
19521fi
19522rm -f core conftest.err conftest.$ac_objext \
19523    conftest$ac_exeext
19524  if ${ac_cv_search_event_set+:} false; then :
19525  break
19526fi
19527done
19528if ${ac_cv_search_event_set+:} false; then :
19529
19530else
19531  ac_cv_search_event_set=no
19532fi
19533rm conftest.$ac_ext
19534LIBS=$ac_func_search_save_LIBS
19535fi
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19537$as_echo "$ac_cv_search_event_set" >&6; }
19538ac_res=$ac_cv_search_event_set
19539if test "$ac_res" != no; then :
19540  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19541
19542fi
19543
19544
19545fi
19546
19547	for ac_func in event_base_free
19548do :
19549  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19550if test "x$ac_cv_func_event_base_free" = xyes; then :
19551  cat >>confdefs.h <<_ACEOF
19552#define HAVE_EVENT_BASE_FREE 1
19553_ACEOF
19554
19555fi
19556done
19557 # only in libevent 1.2 and later
19558	for ac_func in event_base_once
19559do :
19560  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19561if test "x$ac_cv_func_event_base_once" = xyes; then :
19562  cat >>confdefs.h <<_ACEOF
19563#define HAVE_EVENT_BASE_ONCE 1
19564_ACEOF
19565
19566fi
19567done
19568 # only in libevent 1.4.1 and later
19569	for ac_func in event_base_new
19570do :
19571  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19572if test "x$ac_cv_func_event_base_new" = xyes; then :
19573  cat >>confdefs.h <<_ACEOF
19574#define HAVE_EVENT_BASE_NEW 1
19575_ACEOF
19576
19577fi
19578done
19579 # only in libevent 1.4.1 and later
19580	for ac_func in event_base_get_method
19581do :
19582  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19583if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19584  cat >>confdefs.h <<_ACEOF
19585#define HAVE_EVENT_BASE_GET_METHOD 1
19586_ACEOF
19587
19588fi
19589done
19590 # only in libevent 1.4.3 and later
19591	for ac_func in ev_loop
19592do :
19593  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19594if test "x$ac_cv_func_ev_loop" = xyes; then :
19595  cat >>confdefs.h <<_ACEOF
19596#define HAVE_EV_LOOP 1
19597_ACEOF
19598
19599fi
19600done
19601 # only in libev. (tested on 3.51)
19602	for ac_func in ev_default_loop
19603do :
19604  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19605if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19606  cat >>confdefs.h <<_ACEOF
19607#define HAVE_EV_DEFAULT_LOOP 1
19608_ACEOF
19609
19610fi
19611done
19612 # only in libev. (tested on 4.00)
19613	for ac_func in event_assign
19614do :
19615  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19616if test "x$ac_cv_func_event_assign" = xyes; then :
19617  cat >>confdefs.h <<_ACEOF
19618#define HAVE_EVENT_ASSIGN 1
19619_ACEOF
19620
19621fi
19622done
19623 # in libevent, for thread-safety
19624	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19625#ifdef HAVE_EVENT_H
19626#  include <event.h>
19627#else
19628#  include \"event2/event.h\"
19629#endif
19630
19631"
19632if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19633  ac_have_decl=1
19634else
19635  ac_have_decl=0
19636fi
19637
19638cat >>confdefs.h <<_ACEOF
19639#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19640_ACEOF
19641
19642        PC_LIBEVENT_DEPENDENCY="libevent"
19643
19644	if test -n "$BAK_LDFLAGS_SET"; then
19645		LDFLAGS="$BAK_LDFLAGS"
19646	fi
19647else
19648
19649$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19650
19651fi
19652
19653# check for libexpat
19654
19655# Check whether --with-libexpat was given.
19656if test "${with_libexpat+set}" = set; then :
19657  withval=$with_libexpat;
19658else
19659   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19660fi
19661
19662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19663$as_echo_n "checking for libexpat... " >&6; }
19664found_libexpat="no"
19665for dir in $withval ; do
19666            if test -f "$dir/include/expat.h"; then
19667		found_libexpat="yes"
19668				if test "$dir" != "/usr"; then
19669                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19670		    LDFLAGS="$LDFLAGS -L$dir/lib"
19671		fi
19672            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19673$as_echo "found in $dir" >&6; }
19674                break;
19675            fi
19676done
19677if test x_$found_libexpat != x_yes; then
19678	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19679fi
19680for ac_header in expat.h
19681do :
19682  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19683"
19684if test "x$ac_cv_header_expat_h" = xyes; then :
19685  cat >>confdefs.h <<_ACEOF
19686#define HAVE_EXPAT_H 1
19687_ACEOF
19688
19689fi
19690
19691done
19692
19693ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19694#include <expat.h>
19695
19696"
19697if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19698  ac_have_decl=1
19699else
19700  ac_have_decl=0
19701fi
19702
19703cat >>confdefs.h <<_ACEOF
19704#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19705_ACEOF
19706
19707
19708# hiredis (redis C client for cachedb)
19709
19710# Check whether --with-libhiredis was given.
19711if test "${with_libhiredis+set}" = set; then :
19712  withval=$with_libhiredis;
19713else
19714   withval="no"
19715fi
19716
19717found_libhiredis="no"
19718if test x_$withval = x_yes -o x_$withval != x_no; then
19719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19720$as_echo_n "checking for libhiredis... " >&6; }
19721   if test x_$withval = x_ -o x_$withval = x_yes; then
19722            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19723   fi
19724   for dir in $withval ; do
19725            if test -f "$dir/include/hiredis/hiredis.h"; then
19726		found_libhiredis="yes"
19727				if test "$dir" != "/usr"; then
19728                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19729		    LDFLAGS="$LDFLAGS -L$dir/lib"
19730		fi
19731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19732$as_echo "found in $dir" >&6; }
19733
19734$as_echo "#define USE_REDIS 1" >>confdefs.h
19735
19736		LIBS="$LIBS -lhiredis"
19737                break;
19738            fi
19739    done
19740    if test x_$found_libhiredis != x_yes; then
19741	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19742    fi
19743    for ac_header in hiredis/hiredis.h
19744do :
19745  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19746"
19747if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19748  cat >>confdefs.h <<_ACEOF
19749#define HAVE_HIREDIS_HIREDIS_H 1
19750_ACEOF
19751
19752fi
19753
19754done
19755
19756    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19757    #include <hiredis/hiredis.h>
19758
19759"
19760if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19761  ac_have_decl=1
19762else
19763  ac_have_decl=0
19764fi
19765
19766cat >>confdefs.h <<_ACEOF
19767#define HAVE_DECL_REDISCONNECT $ac_have_decl
19768_ACEOF
19769
19770fi
19771
19772# nghttp2
19773
19774# Check whether --with-libnghttp2 was given.
19775if test "${with_libnghttp2+set}" = set; then :
19776  withval=$with_libnghttp2;
19777else
19778   withval="no"
19779fi
19780
19781found_libnghttp2="no"
19782if test x_$withval = x_yes -o x_$withval != x_no; then
19783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19784$as_echo_n "checking for libnghttp2... " >&6; }
19785   if test x_$withval = x_ -o x_$withval = x_yes; then
19786            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19787   fi
19788   for dir in $withval ; do
19789            if test -f "$dir/include/nghttp2/nghttp2.h"; then
19790		found_libnghttp2="yes"
19791				if test "$dir" != "/usr"; then
19792                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19793		    LDFLAGS="$LDFLAGS -L$dir/lib"
19794		fi
19795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19796$as_echo "found in $dir" >&6; }
19797
19798$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19799
19800		LIBS="$LIBS -lnghttp2"
19801                break;
19802            fi
19803    done
19804    if test x_$found_libnghttp2 != x_yes; then
19805	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19806    fi
19807    for ac_header in nghttp2/nghttp2.h
19808do :
19809  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19810"
19811if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
19812  cat >>confdefs.h <<_ACEOF
19813#define HAVE_NGHTTP2_NGHTTP2_H 1
19814_ACEOF
19815
19816fi
19817
19818done
19819
19820    ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
19821    #include <nghttp2/nghttp2.h>
19822
19823"
19824if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
19825  ac_have_decl=1
19826else
19827  ac_have_decl=0
19828fi
19829
19830cat >>confdefs.h <<_ACEOF
19831#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
19832_ACEOF
19833
19834fi
19835
19836# set static linking for uninstalled libraries if requested
19837
19838staticexe=""
19839# Check whether --enable-static-exe was given.
19840if test "${enable_static_exe+set}" = set; then :
19841  enableval=$enable_static_exe;
19842fi
19843
19844if test x_$enable_static_exe = x_yes; then
19845	staticexe="-static"
19846	if test "$on_mingw" = yes; then
19847		staticexe="-all-static"
19848		# for static compile, include gdi32 and zlib here.
19849		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19850			:
19851		else
19852			LIBS="$LIBS -lgdi32"
19853		fi
19854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19855$as_echo_n "checking for compress in -lz... " >&6; }
19856if ${ac_cv_lib_z_compress+:} false; then :
19857  $as_echo_n "(cached) " >&6
19858else
19859  ac_check_lib_save_LIBS=$LIBS
19860LIBS="-lz  $LIBS"
19861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862/* end confdefs.h.  */
19863
19864/* Override any GCC internal prototype to avoid an error.
19865   Use char because int might match the return type of a GCC
19866   builtin and then its argument prototype would still apply.  */
19867#ifdef __cplusplus
19868extern "C"
19869#endif
19870char compress ();
19871int
19872main ()
19873{
19874return compress ();
19875  ;
19876  return 0;
19877}
19878_ACEOF
19879if ac_fn_c_try_link "$LINENO"; then :
19880  ac_cv_lib_z_compress=yes
19881else
19882  ac_cv_lib_z_compress=no
19883fi
19884rm -f core conftest.err conftest.$ac_objext \
19885    conftest$ac_exeext conftest.$ac_ext
19886LIBS=$ac_check_lib_save_LIBS
19887fi
19888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19889$as_echo "$ac_cv_lib_z_compress" >&6; }
19890if test "x$ac_cv_lib_z_compress" = xyes; then :
19891   LIBS="$LIBS -lz"
19892fi
19893
19894		LIBS="$LIBS -l:libssp.a"
19895	fi
19896fi
19897
19898# set full static linking if requested
19899# Check whether --enable-fully-static was given.
19900if test "${enable_fully_static+set}" = set; then :
19901  enableval=$enable_fully_static;
19902fi
19903
19904if test x_$enable_fully_static = x_yes; then
19905	staticexe="-all-static"
19906	if test "$on_mingw" = yes; then
19907		# for static compile, include gdi32 and zlib here.
19908		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19909			:
19910		else
19911			LIBS="$LIBS -lgdi32"
19912		fi
19913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19914$as_echo_n "checking for compress in -lz... " >&6; }
19915if ${ac_cv_lib_z_compress+:} false; then :
19916  $as_echo_n "(cached) " >&6
19917else
19918  ac_check_lib_save_LIBS=$LIBS
19919LIBS="-lz  $LIBS"
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h.  */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924   Use char because int might match the return type of a GCC
19925   builtin and then its argument prototype would still apply.  */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char compress ();
19930int
19931main ()
19932{
19933return compress ();
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939  ac_cv_lib_z_compress=yes
19940else
19941  ac_cv_lib_z_compress=no
19942fi
19943rm -f core conftest.err conftest.$ac_objext \
19944    conftest$ac_exeext conftest.$ac_ext
19945LIBS=$ac_check_lib_save_LIBS
19946fi
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19948$as_echo "$ac_cv_lib_z_compress" >&6; }
19949if test "x$ac_cv_lib_z_compress" = xyes; then :
19950   LIBS="$LIBS -lz"
19951fi
19952
19953		LIBS="$LIBS -l:libssp.a"
19954	fi
19955fi
19956
19957# set lock checking if requested
19958# Check whether --enable-lock_checks was given.
19959if test "${enable_lock_checks+set}" = set; then :
19960  enableval=$enable_lock_checks;
19961fi
19962
19963if test x_$enable_lock_checks = x_yes; then
19964
19965$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19966
19967	CHECKLOCK_OBJ="checklocks.lo"
19968
19969fi
19970
19971
19972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19973$as_echo_n "checking for getaddrinfo... " >&6; }
19974ac_cv_func_getaddrinfo=no
19975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976/* end confdefs.h.  */
19977
19978#ifdef __cplusplus
19979extern "C"
19980{
19981#endif
19982char* getaddrinfo();
19983char* (*f) () = getaddrinfo;
19984#ifdef __cplusplus
19985}
19986#endif
19987int main(void) {
19988        ;
19989        return 0;
19990}
19991
19992_ACEOF
19993if ac_fn_c_try_link "$LINENO"; then :
19994  ac_cv_func_getaddrinfo="yes"
19995if test "$ac_cv_header_windows_h" = "yes"; then
19996
19997$as_echo "#define USE_WINSOCK 1" >>confdefs.h
19998
19999	USE_WINSOCK="1"
20000	if echo $LIBS | grep 'lws2_32' >/dev/null; then
20001		:
20002	else
20003		LIBS="$LIBS -lws2_32"
20004	fi
20005fi
20006
20007else
20008  ORIGLIBS="$LIBS"
20009LIBS="$LIBS -lws2_32"
20010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011/* end confdefs.h.  */
20012
20013#ifdef HAVE_WS2TCPIP_H
20014#include <ws2tcpip.h>
20015#endif
20016
20017int
20018main ()
20019{
20020
20021        (void)getaddrinfo(NULL, NULL, NULL, NULL);
20022
20023
20024  ;
20025  return 0;
20026}
20027_ACEOF
20028if ac_fn_c_try_link "$LINENO"; then :
20029
20030ac_cv_func_getaddrinfo="yes"
20031
20032$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20033
20034USE_WINSOCK="1"
20035
20036else
20037
20038ac_cv_func_getaddrinfo="no"
20039LIBS="$ORIGLIBS"
20040
20041fi
20042rm -f core conftest.err conftest.$ac_objext \
20043    conftest$ac_exeext conftest.$ac_ext
20044
20045fi
20046rm -f core conftest.err conftest.$ac_objext \
20047    conftest$ac_exeext conftest.$ac_ext
20048
20049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20050$as_echo "$ac_cv_func_getaddrinfo" >&6; }
20051if test $ac_cv_func_getaddrinfo = yes; then
20052
20053$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20054
20055fi
20056
20057if test "$USE_WINSOCK" = 1; then
20058
20059$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20060
20061	for ac_header in iphlpapi.h
20062do :
20063  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20064#include <windows.h>
20065
20066"
20067if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20068  cat >>confdefs.h <<_ACEOF
20069#define HAVE_IPHLPAPI_H 1
20070_ACEOF
20071
20072fi
20073
20074done
20075
20076	if test -n "$ac_tool_prefix"; then
20077  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20078set dummy ${ac_tool_prefix}windres; ac_word=$2
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20080$as_echo_n "checking for $ac_word... " >&6; }
20081if ${ac_cv_prog_WINDRES+:} false; then :
20082  $as_echo_n "(cached) " >&6
20083else
20084  if test -n "$WINDRES"; then
20085  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20086else
20087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20088for as_dir in $PATH
20089do
20090  IFS=$as_save_IFS
20091  test -z "$as_dir" && as_dir=.
20092    for ac_exec_ext in '' $ac_executable_extensions; do
20093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20094    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20096    break 2
20097  fi
20098done
20099  done
20100IFS=$as_save_IFS
20101
20102fi
20103fi
20104WINDRES=$ac_cv_prog_WINDRES
20105if test -n "$WINDRES"; then
20106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20107$as_echo "$WINDRES" >&6; }
20108else
20109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110$as_echo "no" >&6; }
20111fi
20112
20113
20114fi
20115if test -z "$ac_cv_prog_WINDRES"; then
20116  ac_ct_WINDRES=$WINDRES
20117  # Extract the first word of "windres", so it can be a program name with args.
20118set dummy windres; ac_word=$2
20119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120$as_echo_n "checking for $ac_word... " >&6; }
20121if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20122  $as_echo_n "(cached) " >&6
20123else
20124  if test -n "$ac_ct_WINDRES"; then
20125  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20126else
20127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20128for as_dir in $PATH
20129do
20130  IFS=$as_save_IFS
20131  test -z "$as_dir" && as_dir=.
20132    for ac_exec_ext in '' $ac_executable_extensions; do
20133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20134    ac_cv_prog_ac_ct_WINDRES="windres"
20135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20136    break 2
20137  fi
20138done
20139  done
20140IFS=$as_save_IFS
20141
20142fi
20143fi
20144ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20145if test -n "$ac_ct_WINDRES"; then
20146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20147$as_echo "$ac_ct_WINDRES" >&6; }
20148else
20149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20150$as_echo "no" >&6; }
20151fi
20152
20153  if test "x$ac_ct_WINDRES" = x; then
20154    WINDRES=""
20155  else
20156    case $cross_compiling:$ac_tool_warned in
20157yes:)
20158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20160ac_tool_warned=yes ;;
20161esac
20162    WINDRES=$ac_ct_WINDRES
20163  fi
20164else
20165  WINDRES="$ac_cv_prog_WINDRES"
20166fi
20167
20168	LIBS="$LIBS -liphlpapi -lcrypt32"
20169	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20170
20171	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20172
20173	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20174
20175	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20176
20177	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20178
20179	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20180
20181	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20182
20183	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20184
20185
20186$as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20187
20188fi
20189if test $ac_cv_func_getaddrinfo = no; then
20190	case " $LIBOBJS " in
20191  *" fake-rfc2553.$ac_objext "* ) ;;
20192  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20193 ;;
20194esac
20195
20196fi
20197# check after getaddrinfo for its libraries
20198
20199# check ioctlsocket
20200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20201$as_echo_n "checking for ioctlsocket... " >&6; }
20202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203/* end confdefs.h.  */
20204
20205#ifdef HAVE_WINSOCK2_H
20206#include <winsock2.h>
20207#endif
20208
20209int
20210main ()
20211{
20212
20213	(void)ioctlsocket(0, 0, NULL);
20214
20215  ;
20216  return 0;
20217}
20218_ACEOF
20219if ac_fn_c_try_link "$LINENO"; then :
20220
20221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20222$as_echo "yes" >&6; }
20223
20224$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20225
20226
20227else
20228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229$as_echo "no" >&6; }
20230fi
20231rm -f core conftest.err conftest.$ac_objext \
20232    conftest$ac_exeext conftest.$ac_ext
20233
20234
20235# see if daemon(3) exists, and if it is deprecated.
20236for ac_func in daemon
20237do :
20238  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20239if test "x$ac_cv_func_daemon" = xyes; then :
20240  cat >>confdefs.h <<_ACEOF
20241#define HAVE_DAEMON 1
20242_ACEOF
20243
20244fi
20245done
20246
20247if test $ac_cv_func_daemon = yes; then
20248
20249
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20251$as_echo_n "checking if daemon is deprecated... " >&6; }
20252cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20253if eval \${cv_cc_deprecated_$cache+:} false; then :
20254  $as_echo_n "(cached) " >&6
20255else
20256
20257echo '
20258#include <stdlib.h>
20259#include <unistd.h>
20260' >conftest.c
20261echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c
20262if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20263eval "cv_cc_deprecated_$cache=no"
20264else
20265eval "cv_cc_deprecated_$cache=yes"
20266fi
20267rm -f conftest conftest.o conftest.c
20268
20269fi
20270
20271if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273$as_echo "yes" >&6; }
20274
20275cat >>confdefs.h <<_ACEOF
20276#define DEPRECATED_DAEMON 1
20277_ACEOF
20278
20279:
20280
20281else
20282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283$as_echo "no" >&6; }
20284:
20285
20286fi
20287
20288fi
20289
20290ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20291$ac_includes_default
20292#ifdef HAVE_SYS_UN_H
20293#include <sys/un.h>
20294#endif
20295
20296"
20297if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20298
20299cat >>confdefs.h <<_ACEOF
20300#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20301_ACEOF
20302
20303
20304fi
20305
20306ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20307$ac_includes_default
20308#if HAVE_SYS_PARAM_H
20309#include <sys/param.h>
20310#endif
20311
20312#ifdef HAVE_SYS_SOCKET_H
20313#include <sys/socket.h>
20314#endif
20315
20316#ifdef HAVE_SYS_UIO_H
20317#include <sys/uio.h>
20318#endif
20319
20320#ifdef HAVE_NETINET_IN_H
20321#include <netinet/in.h>
20322#endif
20323
20324#ifdef HAVE_NETINET_TCP_H
20325#include <netinet/tcp.h>
20326#endif
20327
20328#ifdef HAVE_ARPA_INET_H
20329#include <arpa/inet.h>
20330#endif
20331
20332#ifdef HAVE_WINSOCK2_H
20333#include <winsock2.h>
20334#endif
20335
20336#ifdef HAVE_WS2TCPIP_H
20337#include <ws2tcpip.h>
20338#endif
20339
20340"
20341if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20342
20343cat >>confdefs.h <<_ACEOF
20344#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20345_ACEOF
20346
20347
20348fi
20349
20350
20351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20352$as_echo_n "checking for htobe64... " >&6; }
20353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354/* end confdefs.h.  */
20355
20356#include <stdio.h>
20357#ifdef HAVE_ENDIAN_H
20358#  include <endian.h>
20359#endif
20360#ifdef HAVE_SYS_ENDIAN_H
20361#  include <sys/endian.h>
20362#endif
20363
20364int
20365main ()
20366{
20367unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20368  ;
20369  return 0;
20370}
20371_ACEOF
20372if ac_fn_c_try_link "$LINENO"; then :
20373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20374$as_echo "yes" >&6; }
20375
20376$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20377
20378else
20379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20380$as_echo "no" >&6; }
20381fi
20382rm -f core conftest.err conftest.$ac_objext \
20383    conftest$ac_exeext conftest.$ac_ext
20384
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20386$as_echo_n "checking for be64toh... " >&6; }
20387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388/* end confdefs.h.  */
20389
20390#include <stdio.h>
20391#ifdef HAVE_ENDIAN_H
20392#  include <endian.h>
20393#endif
20394#ifdef HAVE_SYS_ENDIAN_H
20395#  include <sys/endian.h>
20396#endif
20397
20398int
20399main ()
20400{
20401unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20402  ;
20403  return 0;
20404}
20405_ACEOF
20406if ac_fn_c_try_link "$LINENO"; then :
20407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20408$as_echo "yes" >&6; }
20409
20410$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20411
20412else
20413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20414$as_echo "no" >&6; }
20415fi
20416rm -f core conftest.err conftest.$ac_objext \
20417    conftest$ac_exeext conftest.$ac_ext
20418
20419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20420$as_echo_n "checking for library containing setusercontext... " >&6; }
20421if ${ac_cv_search_setusercontext+:} false; then :
20422  $as_echo_n "(cached) " >&6
20423else
20424  ac_func_search_save_LIBS=$LIBS
20425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426/* end confdefs.h.  */
20427
20428/* Override any GCC internal prototype to avoid an error.
20429   Use char because int might match the return type of a GCC
20430   builtin and then its argument prototype would still apply.  */
20431#ifdef __cplusplus
20432extern "C"
20433#endif
20434char setusercontext ();
20435int
20436main ()
20437{
20438return setusercontext ();
20439  ;
20440  return 0;
20441}
20442_ACEOF
20443for ac_lib in '' util; do
20444  if test -z "$ac_lib"; then
20445    ac_res="none required"
20446  else
20447    ac_res=-l$ac_lib
20448    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20449  fi
20450  if ac_fn_c_try_link "$LINENO"; then :
20451  ac_cv_search_setusercontext=$ac_res
20452fi
20453rm -f core conftest.err conftest.$ac_objext \
20454    conftest$ac_exeext
20455  if ${ac_cv_search_setusercontext+:} false; then :
20456  break
20457fi
20458done
20459if ${ac_cv_search_setusercontext+:} false; then :
20460
20461else
20462  ac_cv_search_setusercontext=no
20463fi
20464rm conftest.$ac_ext
20465LIBS=$ac_func_search_save_LIBS
20466fi
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20468$as_echo "$ac_cv_search_setusercontext" >&6; }
20469ac_res=$ac_cv_search_setusercontext
20470if test "$ac_res" != no; then :
20471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20472
20473fi
20474
20475for 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
20476do :
20477  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20478ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20479if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20480  cat >>confdefs.h <<_ACEOF
20481#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20482_ACEOF
20483
20484fi
20485done
20486
20487for ac_func in setresuid
20488do :
20489  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20490if test "x$ac_cv_func_setresuid" = xyes; then :
20491  cat >>confdefs.h <<_ACEOF
20492#define HAVE_SETRESUID 1
20493_ACEOF
20494
20495else
20496  for ac_func in setreuid
20497do :
20498  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20499if test "x$ac_cv_func_setreuid" = xyes; then :
20500  cat >>confdefs.h <<_ACEOF
20501#define HAVE_SETREUID 1
20502_ACEOF
20503
20504fi
20505done
20506
20507fi
20508done
20509
20510for ac_func in setresgid
20511do :
20512  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20513if test "x$ac_cv_func_setresgid" = xyes; then :
20514  cat >>confdefs.h <<_ACEOF
20515#define HAVE_SETRESGID 1
20516_ACEOF
20517
20518else
20519  for ac_func in setregid
20520do :
20521  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20522if test "x$ac_cv_func_setregid" = xyes; then :
20523  cat >>confdefs.h <<_ACEOF
20524#define HAVE_SETREGID 1
20525_ACEOF
20526
20527fi
20528done
20529
20530fi
20531done
20532
20533
20534# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20535if echo $host_os | grep darwin8 > /dev/null; then
20536
20537$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20538
20539fi
20540ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20541$ac_includes_default
20542#ifdef HAVE_NETINET_IN_H
20543#include <netinet/in.h>
20544#endif
20545
20546#ifdef HAVE_NETINET_TCP_H
20547#include <netinet/tcp.h>
20548#endif
20549
20550#ifdef HAVE_ARPA_INET_H
20551#include <arpa/inet.h>
20552#endif
20553
20554#ifdef HAVE_WINSOCK2_H
20555#include <winsock2.h>
20556#endif
20557
20558#ifdef HAVE_WS2TCPIP_H
20559#include <ws2tcpip.h>
20560#endif
20561
20562"
20563if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20564  ac_have_decl=1
20565else
20566  ac_have_decl=0
20567fi
20568
20569cat >>confdefs.h <<_ACEOF
20570#define HAVE_DECL_INET_PTON $ac_have_decl
20571_ACEOF
20572ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20573$ac_includes_default
20574#ifdef HAVE_NETINET_IN_H
20575#include <netinet/in.h>
20576#endif
20577
20578#ifdef HAVE_NETINET_TCP_H
20579#include <netinet/tcp.h>
20580#endif
20581
20582#ifdef HAVE_ARPA_INET_H
20583#include <arpa/inet.h>
20584#endif
20585
20586#ifdef HAVE_WINSOCK2_H
20587#include <winsock2.h>
20588#endif
20589
20590#ifdef HAVE_WS2TCPIP_H
20591#include <ws2tcpip.h>
20592#endif
20593
20594"
20595if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20596  ac_have_decl=1
20597else
20598  ac_have_decl=0
20599fi
20600
20601cat >>confdefs.h <<_ACEOF
20602#define HAVE_DECL_INET_NTOP $ac_have_decl
20603_ACEOF
20604
20605ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20606if test "x$ac_cv_func_inet_aton" = xyes; then :
20607  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20608
20609else
20610  case " $LIBOBJS " in
20611  *" inet_aton.$ac_objext "* ) ;;
20612  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20613 ;;
20614esac
20615
20616fi
20617
20618
20619ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20620if test "x$ac_cv_func_inet_pton" = xyes; then :
20621  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20622
20623else
20624  case " $LIBOBJS " in
20625  *" inet_pton.$ac_objext "* ) ;;
20626  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20627 ;;
20628esac
20629
20630fi
20631
20632
20633ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20634if test "x$ac_cv_func_inet_ntop" = xyes; then :
20635  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20636
20637else
20638  case " $LIBOBJS " in
20639  *" inet_ntop.$ac_objext "* ) ;;
20640  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20641 ;;
20642esac
20643
20644fi
20645
20646
20647ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20648if test "x$ac_cv_func_snprintf" = xyes; then :
20649  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20650
20651else
20652  case " $LIBOBJS " in
20653  *" snprintf.$ac_objext "* ) ;;
20654  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20655 ;;
20656esac
20657
20658fi
20659
20660
20661# test if snprintf return the proper length
20662if test "x$ac_cv_func_snprintf" = xyes; then
20663    if test c${cross_compiling} = cno; then
20664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20665$as_echo_n "checking for correct snprintf return value... " >&6; }
20666	if test "$cross_compiling" = yes; then :
20667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
20668$as_echo "maybe" >&6; }
20669else
20670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671/* end confdefs.h.  */
20672$ac_includes_default
20673
20674int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20675
20676_ACEOF
20677if ac_fn_c_try_run "$LINENO"; then :
20678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20679$as_echo "yes" >&6; }
20680else
20681
20682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20683$as_echo "no" >&6; }
20684
20685$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20686
20687		case " $LIBOBJS " in
20688  *" snprintf.$ac_objext "* ) ;;
20689  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20690 ;;
20691esac
20692
20693
20694fi
20695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20696  conftest.$ac_objext conftest.beam conftest.$ac_ext
20697fi
20698
20699    fi
20700fi
20701ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20702if test "x$ac_cv_func_strlcat" = xyes; then :
20703  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20704
20705else
20706  case " $LIBOBJS " in
20707  *" strlcat.$ac_objext "* ) ;;
20708  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20709 ;;
20710esac
20711
20712fi
20713
20714
20715ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20716if test "x$ac_cv_func_strlcpy" = xyes; then :
20717  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20718
20719else
20720  case " $LIBOBJS " in
20721  *" strlcpy.$ac_objext "* ) ;;
20722  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20723 ;;
20724esac
20725
20726fi
20727
20728
20729ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20730if test "x$ac_cv_func_memmove" = xyes; then :
20731  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20732
20733else
20734  case " $LIBOBJS " in
20735  *" memmove.$ac_objext "* ) ;;
20736  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20737 ;;
20738esac
20739
20740fi
20741
20742
20743ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20744if test "x$ac_cv_func_gmtime_r" = xyes; then :
20745  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20746
20747else
20748  case " $LIBOBJS " in
20749  *" gmtime_r.$ac_objext "* ) ;;
20750  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20751 ;;
20752esac
20753
20754fi
20755
20756
20757ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20758if test "x$ac_cv_func_isblank" = xyes; then :
20759  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20760
20761else
20762  case " $LIBOBJS " in
20763  *" isblank.$ac_objext "* ) ;;
20764  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20765 ;;
20766esac
20767
20768fi
20769
20770
20771ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20772if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20773  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20774
20775else
20776  case " $LIBOBJS " in
20777  *" explicit_bzero.$ac_objext "* ) ;;
20778  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20779 ;;
20780esac
20781
20782fi
20783
20784
20785LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20786
20787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20788$as_echo_n "checking for reallocarray... " >&6; }
20789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790/* end confdefs.h.  */
20791$ac_includes_default
20792
20793#ifndef _OPENBSD_SOURCE
20794#define _OPENBSD_SOURCE 1
20795#endif
20796#include <stdlib.h>
20797int main(void) {
20798	void* p = reallocarray(NULL, 10, 100);
20799	free(p);
20800	return 0;
20801}
20802
20803_ACEOF
20804if ac_fn_c_try_link "$LINENO"; then :
20805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20806$as_echo "yes" >&6; }
20807
20808$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20809
20810
20811else
20812
20813	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20814$as_echo "no" >&6; }
20815	case " $LIBOBJS " in
20816  *" reallocarray.$ac_objext "* ) ;;
20817  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20818 ;;
20819esac
20820
20821
20822fi
20823rm -f core conftest.err conftest.$ac_objext \
20824    conftest$ac_exeext conftest.$ac_ext
20825ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20826if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20827  ac_have_decl=1
20828else
20829  ac_have_decl=0
20830fi
20831
20832cat >>confdefs.h <<_ACEOF
20833#define HAVE_DECL_REALLOCARRAY $ac_have_decl
20834_ACEOF
20835
20836if test "$USE_NSS" = "no"; then
20837	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20838if test "x$ac_cv_func_arc4random" = xyes; then :
20839  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20840
20841else
20842  case " $LIBOBJS " in
20843  *" arc4random.$ac_objext "* ) ;;
20844  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20845 ;;
20846esac
20847
20848fi
20849
20850
20851	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20852if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20853  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20854
20855else
20856  case " $LIBOBJS " in
20857  *" arc4random_uniform.$ac_objext "* ) ;;
20858  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20859 ;;
20860esac
20861
20862fi
20863
20864
20865	if test "$ac_cv_func_arc4random" = "no"; then
20866		case " $LIBOBJS " in
20867  *" arc4_lock.$ac_objext "* ) ;;
20868  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20869 ;;
20870esac
20871
20872		for ac_func in getentropy
20873do :
20874  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20875if test "x$ac_cv_func_getentropy" = xyes; then :
20876  cat >>confdefs.h <<_ACEOF
20877#define HAVE_GETENTROPY 1
20878_ACEOF
20879
20880else
20881
20882		    if test "$USE_WINSOCK" = 1; then
20883			case " $LIBOBJS " in
20884  *" getentropy_win.$ac_objext "* ) ;;
20885  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20886 ;;
20887esac
20888
20889		    else
20890			case "$host" in
20891			Darwin|*darwin*)
20892				case " $LIBOBJS " in
20893  *" getentropy_osx.$ac_objext "* ) ;;
20894  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20895 ;;
20896esac
20897
20898			;;
20899			*solaris*|*sunos*|SunOS)
20900				case " $LIBOBJS " in
20901  *" getentropy_solaris.$ac_objext "* ) ;;
20902  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20903 ;;
20904esac
20905
20906				for ac_header in sys/sha2.h
20907do :
20908  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20909"
20910if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20911  cat >>confdefs.h <<_ACEOF
20912#define HAVE_SYS_SHA2_H 1
20913_ACEOF
20914
20915else
20916
20917					for ac_func in SHA512_Update
20918do :
20919  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20920if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20921  cat >>confdefs.h <<_ACEOF
20922#define HAVE_SHA512_UPDATE 1
20923_ACEOF
20924
20925else
20926
20927						case " $LIBOBJS " in
20928  *" sha512.$ac_objext "* ) ;;
20929  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20930 ;;
20931esac
20932
20933
20934fi
20935done
20936
20937
20938fi
20939
20940done
20941
20942				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20943					# this lib needed for sha2 on solaris
20944					LIBS="$LIBS -lmd"
20945				fi
20946				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20947$as_echo_n "checking for library containing clock_gettime... " >&6; }
20948if ${ac_cv_search_clock_gettime+:} false; then :
20949  $as_echo_n "(cached) " >&6
20950else
20951  ac_func_search_save_LIBS=$LIBS
20952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953/* end confdefs.h.  */
20954
20955/* Override any GCC internal prototype to avoid an error.
20956   Use char because int might match the return type of a GCC
20957   builtin and then its argument prototype would still apply.  */
20958#ifdef __cplusplus
20959extern "C"
20960#endif
20961char clock_gettime ();
20962int
20963main ()
20964{
20965return clock_gettime ();
20966  ;
20967  return 0;
20968}
20969_ACEOF
20970for ac_lib in '' rt; do
20971  if test -z "$ac_lib"; then
20972    ac_res="none required"
20973  else
20974    ac_res=-l$ac_lib
20975    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20976  fi
20977  if ac_fn_c_try_link "$LINENO"; then :
20978  ac_cv_search_clock_gettime=$ac_res
20979fi
20980rm -f core conftest.err conftest.$ac_objext \
20981    conftest$ac_exeext
20982  if ${ac_cv_search_clock_gettime+:} false; then :
20983  break
20984fi
20985done
20986if ${ac_cv_search_clock_gettime+:} false; then :
20987
20988else
20989  ac_cv_search_clock_gettime=no
20990fi
20991rm conftest.$ac_ext
20992LIBS=$ac_func_search_save_LIBS
20993fi
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20995$as_echo "$ac_cv_search_clock_gettime" >&6; }
20996ac_res=$ac_cv_search_clock_gettime
20997if test "$ac_res" != no; then :
20998  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20999
21000fi
21001
21002			;;
21003			*freebsd*|*FreeBSD)
21004				case " $LIBOBJS " in
21005  *" getentropy_freebsd.$ac_objext "* ) ;;
21006  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21007 ;;
21008esac
21009
21010			;;
21011			*linux*|Linux|*)
21012				case " $LIBOBJS " in
21013  *" getentropy_linux.$ac_objext "* ) ;;
21014  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21015 ;;
21016esac
21017
21018				for ac_func in SHA512_Update
21019do :
21020  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21021if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21022  cat >>confdefs.h <<_ACEOF
21023#define HAVE_SHA512_UPDATE 1
21024_ACEOF
21025
21026else
21027
21028
21029$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21030
21031					case " $LIBOBJS " in
21032  *" sha512.$ac_objext "* ) ;;
21033  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21034 ;;
21035esac
21036
21037
21038fi
21039done
21040
21041				for ac_header in sys/sysctl.h
21042do :
21043  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21044"
21045if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21046  cat >>confdefs.h <<_ACEOF
21047#define HAVE_SYS_SYSCTL_H 1
21048_ACEOF
21049
21050fi
21051
21052done
21053
21054				for ac_func in getauxval
21055do :
21056  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21057if test "x$ac_cv_func_getauxval" = xyes; then :
21058  cat >>confdefs.h <<_ACEOF
21059#define HAVE_GETAUXVAL 1
21060_ACEOF
21061
21062fi
21063done
21064
21065				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21066$as_echo_n "checking for library containing clock_gettime... " >&6; }
21067if ${ac_cv_search_clock_gettime+:} false; then :
21068  $as_echo_n "(cached) " >&6
21069else
21070  ac_func_search_save_LIBS=$LIBS
21071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072/* end confdefs.h.  */
21073
21074/* Override any GCC internal prototype to avoid an error.
21075   Use char because int might match the return type of a GCC
21076   builtin and then its argument prototype would still apply.  */
21077#ifdef __cplusplus
21078extern "C"
21079#endif
21080char clock_gettime ();
21081int
21082main ()
21083{
21084return clock_gettime ();
21085  ;
21086  return 0;
21087}
21088_ACEOF
21089for ac_lib in '' rt; do
21090  if test -z "$ac_lib"; then
21091    ac_res="none required"
21092  else
21093    ac_res=-l$ac_lib
21094    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21095  fi
21096  if ac_fn_c_try_link "$LINENO"; then :
21097  ac_cv_search_clock_gettime=$ac_res
21098fi
21099rm -f core conftest.err conftest.$ac_objext \
21100    conftest$ac_exeext
21101  if ${ac_cv_search_clock_gettime+:} false; then :
21102  break
21103fi
21104done
21105if ${ac_cv_search_clock_gettime+:} false; then :
21106
21107else
21108  ac_cv_search_clock_gettime=no
21109fi
21110rm conftest.$ac_ext
21111LIBS=$ac_func_search_save_LIBS
21112fi
21113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21114$as_echo "$ac_cv_search_clock_gettime" >&6; }
21115ac_res=$ac_cv_search_clock_gettime
21116if test "$ac_res" != no; then :
21117  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21118
21119fi
21120
21121			;;
21122			esac
21123		    fi
21124
21125fi
21126done
21127
21128	fi
21129fi
21130LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21131
21132ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21133if test "x$ac_cv_func_ctime_r" = xyes; then :
21134  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21135
21136else
21137  case " $LIBOBJS " in
21138  *" ctime_r.$ac_objext "* ) ;;
21139  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21140 ;;
21141esac
21142
21143fi
21144
21145
21146ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21147if test "x$ac_cv_func_strsep" = xyes; then :
21148  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21149
21150else
21151  case " $LIBOBJS " in
21152  *" strsep.$ac_objext "* ) ;;
21153  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21154 ;;
21155esac
21156
21157fi
21158
21159
21160
21161# Check whether --enable-allsymbols was given.
21162if test "${enable_allsymbols+set}" = set; then :
21163  enableval=$enable_allsymbols;
21164fi
21165
21166case "$enable_allsymbols" in
21167	yes)
21168	COMMON_OBJ_ALL_SYMBOLS=""
21169	UBSYMS=""
21170	EXTRALINK="libunbound.la"
21171
21172$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21173
21174	;;
21175	no|*)
21176	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21177	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21178	EXTRALINK=""
21179	;;
21180esac
21181
21182
21183
21184if test x_$enable_lock_checks = x_yes; then
21185	UBSYMS="-export-symbols clubsyms.def"
21186	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21187	echo lock_protect >> clubsyms.def
21188	echo lock_unprotect >> clubsyms.def
21189	echo lock_get_mem >> clubsyms.def
21190	echo checklock_start >> clubsyms.def
21191	echo checklock_stop >> clubsyms.def
21192	echo checklock_lock >> clubsyms.def
21193	echo checklock_unlock >> clubsyms.def
21194	echo checklock_init >> clubsyms.def
21195	echo checklock_thrcreate >> clubsyms.def
21196	echo checklock_thrjoin >> clubsyms.def
21197fi
21198
21199# check for dnstap if requested
21200
21201  # Check whether --enable-dnstap was given.
21202if test "${enable_dnstap+set}" = set; then :
21203  enableval=$enable_dnstap; opt_dnstap=$enableval
21204else
21205  opt_dnstap=no
21206fi
21207
21208
21209
21210# Check whether --with-dnstap-socket-path was given.
21211if test "${with_dnstap_socket_path+set}" = set; then :
21212  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21213else
21214  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21215fi
21216
21217
21218  if test "x$opt_dnstap" != "xno"; then
21219    # Extract the first word of "protoc-c", so it can be a program name with args.
21220set dummy protoc-c; ac_word=$2
21221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21222$as_echo_n "checking for $ac_word... " >&6; }
21223if ${ac_cv_path_PROTOC_C+:} false; then :
21224  $as_echo_n "(cached) " >&6
21225else
21226  case $PROTOC_C in
21227  [\\/]* | ?:[\\/]*)
21228  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21229  ;;
21230  *)
21231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21232for as_dir in $PATH
21233do
21234  IFS=$as_save_IFS
21235  test -z "$as_dir" && as_dir=.
21236    for ac_exec_ext in '' $ac_executable_extensions; do
21237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21238    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21240    break 2
21241  fi
21242done
21243  done
21244IFS=$as_save_IFS
21245
21246  ;;
21247esac
21248fi
21249PROTOC_C=$ac_cv_path_PROTOC_C
21250if test -n "$PROTOC_C"; then
21251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21252$as_echo "$PROTOC_C" >&6; }
21253else
21254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21255$as_echo "no" >&6; }
21256fi
21257
21258
21259    if test -z "$PROTOC_C"; then
21260      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21261    fi
21262
21263# Check whether --with-protobuf-c was given.
21264if test "${with_protobuf_c+set}" = set; then :
21265  withval=$with_protobuf_c;
21266	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21267	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21268	    CFLAGS="$CFLAGS -I$withval/include/google"
21269	  else
21270	    CFLAGS="$CFLAGS -I$withval/include"
21271	  fi
21272	  LDFLAGS="$LDFLAGS -L$withval/lib"
21273
21274else
21275
21276	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21277	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21278	    CFLAGS="$CFLAGS -I/usr/include/google"
21279	  else
21280	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21281	      CFLAGS="$CFLAGS -I/usr/local/include/google"
21282	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
21283	    fi
21284	  fi
21285
21286fi
21287
21288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21289$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21290if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21291  $as_echo_n "(cached) " >&6
21292else
21293  ac_func_search_save_LIBS=$LIBS
21294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295/* end confdefs.h.  */
21296
21297/* Override any GCC internal prototype to avoid an error.
21298   Use char because int might match the return type of a GCC
21299   builtin and then its argument prototype would still apply.  */
21300#ifdef __cplusplus
21301extern "C"
21302#endif
21303char protobuf_c_message_pack ();
21304int
21305main ()
21306{
21307return protobuf_c_message_pack ();
21308  ;
21309  return 0;
21310}
21311_ACEOF
21312for ac_lib in '' protobuf-c; do
21313  if test -z "$ac_lib"; then
21314    ac_res="none required"
21315  else
21316    ac_res=-l$ac_lib
21317    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21318  fi
21319  if ac_fn_c_try_link "$LINENO"; then :
21320  ac_cv_search_protobuf_c_message_pack=$ac_res
21321fi
21322rm -f core conftest.err conftest.$ac_objext \
21323    conftest$ac_exeext
21324  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21325  break
21326fi
21327done
21328if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21329
21330else
21331  ac_cv_search_protobuf_c_message_pack=no
21332fi
21333rm conftest.$ac_ext
21334LIBS=$ac_func_search_save_LIBS
21335fi
21336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21337$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21338ac_res=$ac_cv_search_protobuf_c_message_pack
21339if test "$ac_res" != no; then :
21340  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21341
21342else
21343  as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
21344fi
21345
21346
21347
21348$as_echo "#define USE_DNSTAP 1" >>confdefs.h
21349
21350        ENABLE_DNSTAP=1
21351
21352
21353
21354        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21355
21356
21357cat >>confdefs.h <<_ACEOF
21358#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21359_ACEOF
21360
21361	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21362
21363	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21364
21365        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21366
21367        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21368
21369
21370  else
21371
21372        ENABLE_DNSTAP=0
21373
21374
21375
21376  fi
21377
21378
21379# check for dnscrypt if requested
21380
21381  # Check whether --enable-dnscrypt was given.
21382if test "${enable_dnscrypt+set}" = set; then :
21383  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21384else
21385  opt_dnscrypt=no
21386fi
21387
21388
21389  if test "x$opt_dnscrypt" != "xno"; then
21390
21391# Check whether --with-libsodium was given.
21392if test "${with_libsodium+set}" = set; then :
21393  withval=$with_libsodium;
21394	CFLAGS="$CFLAGS -I$withval/include"
21395	LDFLAGS="$LDFLAGS -L$withval/lib"
21396
21397fi
21398
21399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21400$as_echo_n "checking for library containing sodium_init... " >&6; }
21401if ${ac_cv_search_sodium_init+:} false; then :
21402  $as_echo_n "(cached) " >&6
21403else
21404  ac_func_search_save_LIBS=$LIBS
21405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406/* end confdefs.h.  */
21407
21408/* Override any GCC internal prototype to avoid an error.
21409   Use char because int might match the return type of a GCC
21410   builtin and then its argument prototype would still apply.  */
21411#ifdef __cplusplus
21412extern "C"
21413#endif
21414char sodium_init ();
21415int
21416main ()
21417{
21418return sodium_init ();
21419  ;
21420  return 0;
21421}
21422_ACEOF
21423for ac_lib in '' sodium; do
21424  if test -z "$ac_lib"; then
21425    ac_res="none required"
21426  else
21427    ac_res=-l$ac_lib
21428    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21429  fi
21430  if ac_fn_c_try_link "$LINENO"; then :
21431  ac_cv_search_sodium_init=$ac_res
21432fi
21433rm -f core conftest.err conftest.$ac_objext \
21434    conftest$ac_exeext
21435  if ${ac_cv_search_sodium_init+:} false; then :
21436  break
21437fi
21438done
21439if ${ac_cv_search_sodium_init+:} false; then :
21440
21441else
21442  ac_cv_search_sodium_init=no
21443fi
21444rm conftest.$ac_ext
21445LIBS=$ac_func_search_save_LIBS
21446fi
21447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21448$as_echo "$ac_cv_search_sodium_init" >&6; }
21449ac_res=$ac_cv_search_sodium_init
21450if test "$ac_res" != no; then :
21451  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21452
21453else
21454  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21455fi
21456
21457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21458$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21459if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21460  $as_echo_n "(cached) " >&6
21461else
21462  ac_func_search_save_LIBS=$LIBS
21463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464/* end confdefs.h.  */
21465
21466/* Override any GCC internal prototype to avoid an error.
21467   Use char because int might match the return type of a GCC
21468   builtin and then its argument prototype would still apply.  */
21469#ifdef __cplusplus
21470extern "C"
21471#endif
21472char crypto_box_curve25519xchacha20poly1305_beforenm ();
21473int
21474main ()
21475{
21476return crypto_box_curve25519xchacha20poly1305_beforenm ();
21477  ;
21478  return 0;
21479}
21480_ACEOF
21481for ac_lib in '' sodium; do
21482  if test -z "$ac_lib"; then
21483    ac_res="none required"
21484  else
21485    ac_res=-l$ac_lib
21486    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21487  fi
21488  if ac_fn_c_try_link "$LINENO"; then :
21489  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21490fi
21491rm -f core conftest.err conftest.$ac_objext \
21492    conftest$ac_exeext
21493  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21494  break
21495fi
21496done
21497if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21498
21499else
21500  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21501fi
21502rm conftest.$ac_ext
21503LIBS=$ac_func_search_save_LIBS
21504fi
21505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21506$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21507ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21508if test "$ac_res" != no; then :
21509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21510
21511            ENABLE_DNSCRYPT_XCHACHA20=1
21512
21513
21514$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21515
21516
21517else
21518
21519            ENABLE_DNSCRYPT_XCHACHA20=0
21520
21521
21522fi
21523
21524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21525$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21526if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21527  $as_echo_n "(cached) " >&6
21528else
21529  ac_func_search_save_LIBS=$LIBS
21530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531/* end confdefs.h.  */
21532
21533/* Override any GCC internal prototype to avoid an error.
21534   Use char because int might match the return type of a GCC
21535   builtin and then its argument prototype would still apply.  */
21536#ifdef __cplusplus
21537extern "C"
21538#endif
21539char sodium_set_misuse_handler ();
21540int
21541main ()
21542{
21543return sodium_set_misuse_handler ();
21544  ;
21545  return 0;
21546}
21547_ACEOF
21548for ac_lib in '' sodium; do
21549  if test -z "$ac_lib"; then
21550    ac_res="none required"
21551  else
21552    ac_res=-l$ac_lib
21553    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21554  fi
21555  if ac_fn_c_try_link "$LINENO"; then :
21556  ac_cv_search_sodium_set_misuse_handler=$ac_res
21557fi
21558rm -f core conftest.err conftest.$ac_objext \
21559    conftest$ac_exeext
21560  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21561  break
21562fi
21563done
21564if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21565
21566else
21567  ac_cv_search_sodium_set_misuse_handler=no
21568fi
21569rm conftest.$ac_ext
21570LIBS=$ac_func_search_save_LIBS
21571fi
21572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21573$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21574ac_res=$ac_cv_search_sodium_set_misuse_handler
21575if test "$ac_res" != no; then :
21576  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21577
21578
21579$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21580
21581
21582fi
21583
21584
21585
21586$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21587
21588        ENABLE_DNSCRYPT=1
21589
21590
21591        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21592
21593        DNSCRYPT_OBJ="dnscrypt.lo"
21594
21595
21596  else
21597    ENABLE_DNSCRYPT_XCHACHA20=0
21598
21599
21600        ENABLE_DNSCRYPT=0
21601
21602
21603
21604  fi
21605
21606
21607# check for cachedb if requested
21608# Check whether --enable-cachedb was given.
21609if test "${enable_cachedb+set}" = set; then :
21610  enableval=$enable_cachedb;
21611fi
21612
21613# turn on cachedb when hiredis support is enabled.
21614if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21615case "$enable_cachedb" in
21616    yes)
21617
21618$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21619
21620	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21621
21622	CACHEDB_OBJ="cachedb.lo redis.lo"
21623
21624    	;;
21625    no|*)
21626    	# nothing
21627    	;;
21628esac
21629
21630# check for ipsecmod if requested
21631# Check whether --enable-ipsecmod was given.
21632if test "${enable_ipsecmod+set}" = set; then :
21633  enableval=$enable_ipsecmod;
21634fi
21635
21636case "$enable_ipsecmod" in
21637	yes)
21638
21639$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21640
21641		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21642
21643		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21644
21645		;;
21646	no|*)
21647		# nothing
21648		;;
21649esac
21650
21651# check for ipset if requested
21652# Check whether --enable-ipset was given.
21653if test "${enable_ipset+set}" = set; then :
21654  enableval=$enable_ipset;
21655fi
21656
21657case "$enable_ipset" in
21658    yes)
21659
21660$as_echo "#define USE_IPSET 1" >>confdefs.h
21661
21662		IPSET_SRC="ipset/ipset.c"
21663
21664		IPSET_OBJ="ipset.lo"
21665
21666
21667		# mnl
21668
21669# Check whether --with-libmnl was given.
21670if test "${with_libmnl+set}" = set; then :
21671  withval=$with_libmnl;
21672else
21673   withval="yes"
21674fi
21675
21676		found_libmnl="no"
21677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21678$as_echo_n "checking for libmnl... " >&6; }
21679		if test x_$withval = x_ -o x_$withval = x_yes; then
21680			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21681		fi
21682		for dir in $withval ; do
21683			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21684				found_libmnl="yes"
21685								extralibmnl=""
21686				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21687					extralibmnl="/libmnl"
21688				fi
21689				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21690					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21691				fi
21692				if test "$dir" != "/usr"; then
21693					LDFLAGS="$LDFLAGS -L$dir/lib"
21694				fi
21695				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21696$as_echo "found in $dir" >&6; }
21697				LIBS="$LIBS -lmnl"
21698				break;
21699			fi
21700		done
21701		if test x_$found_libmnl != x_yes; then
21702			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21703		fi
21704		;;
21705    no|*)
21706    	# nothing
21707		;;
21708esac
21709# Check whether --enable-explicit-port-randomisation was given.
21710if test "${enable_explicit_port_randomisation+set}" = set; then :
21711  enableval=$enable_explicit_port_randomisation;
21712fi
21713
21714case "$enable_explicit_port_randomisation" in
21715	no)
21716
21717$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21718
21719		;;
21720	yes|*)
21721		;;
21722esac
21723
21724if echo "$host" | $GREP -i -e linux >/dev/null; then
21725	# Check whether --enable-linux-ip-local-port-range was given.
21726if test "${enable_linux_ip_local_port_range+set}" = set; then :
21727  enableval=$enable_linux_ip_local_port_range;
21728fi
21729
21730	case "$enable_linux_ip_local_port_range" in
21731		yes)
21732
21733$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21734
21735			;;
21736		no|*)
21737			;;
21738	esac
21739fi
21740
21741
21742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21743$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21744# on openBSD, the implicit rule make $< work.
21745# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21746# gmake works.
21747cat >conftest.make <<EOF
21748all:	conftest.lo
21749
21750conftest.lo foo.lo bla.lo:
21751	if test -f "\$<"; then touch \$@; fi
21752
21753.SUFFIXES: .lo
21754.c.lo:
21755	if test -f "\$<"; then touch \$@; fi
21756
21757conftest.lo:        conftest.dir/conftest.c
21758EOF
21759mkdir conftest.dir
21760touch conftest.dir/conftest.c
21761rm -f conftest.lo conftest.c
21762${MAKE:-make} -f conftest.make >/dev/null
21763rm -f conftest.make conftest.c conftest.dir/conftest.c
21764rm -rf conftest.dir
21765if test ! -f conftest.lo; then
21766	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21767$as_echo "no" >&6; }
21768	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21769	SOURCEFILE='`cat .source`'
21770else
21771	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21772$as_echo "yes" >&6; }
21773	SOURCEDETERMINE=':'
21774	SOURCEFILE='$<'
21775fi
21776rm -f conftest.lo
21777
21778
21779
21780# see if we want to build the library or everything
21781ALLTARGET="alltargets"
21782INSTALLTARGET="install-all"
21783
21784# Check whether --with-libunbound-only was given.
21785if test "${with_libunbound_only+set}" = set; then :
21786  withval=$with_libunbound_only;
21787	if test "$withval" = "yes"; then
21788		ALLTARGET="lib"
21789		INSTALLTARGET="install-lib"
21790	fi
21791
21792fi
21793
21794if test $ALLTARGET = "alltargets"; then
21795	if test $USE_NSS = "yes"; then
21796		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21797	fi
21798	if test $USE_NETTLE = "yes"; then
21799		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21800	fi
21801fi
21802
21803
21804
21805
21806
21807  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21808$as_echo "$as_me: Stripping extension flags..." >&6;}
21809
21810  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21811    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21812
21813$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21814
21815  fi
21816
21817
21818  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21819    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21820
21821$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21822
21823  fi
21824
21825
21826  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21827    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21828
21829$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21830
21831  fi
21832
21833
21834  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21835    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21836
21837$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21838
21839  fi
21840
21841
21842  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21843    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21844
21845$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21846
21847  fi
21848
21849
21850  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21851    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21852
21853$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21854
21855  fi
21856
21857
21858  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21859    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21860
21861$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21862
21863  fi
21864
21865
21866  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21867    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21868
21869$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21870
21871  fi
21872
21873
21874  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21875    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21876
21877$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21878
21879  fi
21880
21881
21882if test -n "$LATE_LDFLAGS"; then
21883  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21884fi
21885# remove start spaces
21886LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21887LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21888
21889
21890cat >>confdefs.h <<_ACEOF
21891#define MAXSYSLOGMSGLEN 10240
21892_ACEOF
21893
21894
21895
21896
21897version=1.19.0
21898
21899date=`date +'%b %e, %Y'`
21900
21901
21902ac_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"
21903
21904ac_config_headers="$ac_config_headers config.h"
21905
21906cat >confcache <<\_ACEOF
21907# This file is a shell script that caches the results of configure
21908# tests run on this system so they can be shared between configure
21909# scripts and configure runs, see configure's option --config-cache.
21910# It is not useful on other systems.  If it contains results you don't
21911# want to keep, you may remove or edit it.
21912#
21913# config.status only pays attention to the cache file if you give it
21914# the --recheck option to rerun configure.
21915#
21916# `ac_cv_env_foo' variables (set or unset) will be overridden when
21917# loading this file, other *unset* `ac_cv_foo' will be assigned the
21918# following values.
21919
21920_ACEOF
21921
21922# The following way of writing the cache mishandles newlines in values,
21923# but we know of no workaround that is simple, portable, and efficient.
21924# So, we kill variables containing newlines.
21925# Ultrix sh set writes to stderr and can't be redirected directly,
21926# and sets the high bit in the cache file unless we assign to the vars.
21927(
21928  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21929    eval ac_val=\$$ac_var
21930    case $ac_val in #(
21931    *${as_nl}*)
21932      case $ac_var in #(
21933      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21934$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21935      esac
21936      case $ac_var in #(
21937      _ | IFS | as_nl) ;; #(
21938      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21939      *) { eval $ac_var=; unset $ac_var;} ;;
21940      esac ;;
21941    esac
21942  done
21943
21944  (set) 2>&1 |
21945    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21946    *${as_nl}ac_space=\ *)
21947      # `set' does not quote correctly, so add quotes: double-quote
21948      # substitution turns \\\\ into \\, and sed turns \\ into \.
21949      sed -n \
21950	"s/'/'\\\\''/g;
21951	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21952      ;; #(
21953    *)
21954      # `set' quotes correctly as required by POSIX, so do not add quotes.
21955      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21956      ;;
21957    esac |
21958    sort
21959) |
21960  sed '
21961     /^ac_cv_env_/b end
21962     t clear
21963     :clear
21964     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21965     t end
21966     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21967     :end' >>confcache
21968if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21969  if test -w "$cache_file"; then
21970    if test "x$cache_file" != "x/dev/null"; then
21971      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21972$as_echo "$as_me: updating cache $cache_file" >&6;}
21973      if test ! -f "$cache_file" || test -h "$cache_file"; then
21974	cat confcache >"$cache_file"
21975      else
21976        case $cache_file in #(
21977        */* | ?:*)
21978	  mv -f confcache "$cache_file"$$ &&
21979	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21980        *)
21981	  mv -f confcache "$cache_file" ;;
21982	esac
21983      fi
21984    fi
21985  else
21986    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21987$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21988  fi
21989fi
21990rm -f confcache
21991
21992test "x$prefix" = xNONE && prefix=$ac_default_prefix
21993# Let make expand exec_prefix.
21994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21995
21996DEFS=-DHAVE_CONFIG_H
21997
21998ac_libobjs=
21999ac_ltlibobjs=
22000U=
22001for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22002  # 1. Remove the extension, and $U if already installed.
22003  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22004  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22005  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22006  #    will be set to the directory where LIBOBJS objects are built.
22007  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22008  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22009done
22010LIBOBJS=$ac_libobjs
22011
22012LTLIBOBJS=$ac_ltlibobjs
22013
22014
22015if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22016  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22017Usually this means the macro was only invoked conditionally." "$LINENO" 5
22018fi
22019
22020: "${CONFIG_STATUS=./config.status}"
22021ac_write_fail=0
22022ac_clean_files_save=$ac_clean_files
22023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22024{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22025$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22026as_write_fail=0
22027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22028#! $SHELL
22029# Generated by $as_me.
22030# Run this file to recreate the current configuration.
22031# Compiler output produced by configure, useful for debugging
22032# configure, is in config.log if it exists.
22033
22034debug=false
22035ac_cs_recheck=false
22036ac_cs_silent=false
22037
22038SHELL=\${CONFIG_SHELL-$SHELL}
22039export SHELL
22040_ASEOF
22041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22042## -------------------- ##
22043## M4sh Initialization. ##
22044## -------------------- ##
22045
22046# Be more Bourne compatible
22047DUALCASE=1; export DUALCASE # for MKS sh
22048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22049  emulate sh
22050  NULLCMD=:
22051  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22052  # is contrary to our usage.  Disable this feature.
22053  alias -g '${1+"$@"}'='"$@"'
22054  setopt NO_GLOB_SUBST
22055else
22056  case `(set -o) 2>/dev/null` in #(
22057  *posix*) :
22058    set -o posix ;; #(
22059  *) :
22060     ;;
22061esac
22062fi
22063
22064
22065as_nl='
22066'
22067export as_nl
22068# Printing a long string crashes Solaris 7 /usr/bin/printf.
22069as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22072# Prefer a ksh shell builtin over an external printf program on Solaris,
22073# but without wasting forks for bash or zsh.
22074if test -z "$BASH_VERSION$ZSH_VERSION" \
22075    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22076  as_echo='print -r --'
22077  as_echo_n='print -rn --'
22078elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22079  as_echo='printf %s\n'
22080  as_echo_n='printf %s'
22081else
22082  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22083    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22084    as_echo_n='/usr/ucb/echo -n'
22085  else
22086    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22087    as_echo_n_body='eval
22088      arg=$1;
22089      case $arg in #(
22090      *"$as_nl"*)
22091	expr "X$arg" : "X\\(.*\\)$as_nl";
22092	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22093      esac;
22094      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22095    '
22096    export as_echo_n_body
22097    as_echo_n='sh -c $as_echo_n_body as_echo'
22098  fi
22099  export as_echo_body
22100  as_echo='sh -c $as_echo_body as_echo'
22101fi
22102
22103# The user is always right.
22104if test "${PATH_SEPARATOR+set}" != set; then
22105  PATH_SEPARATOR=:
22106  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22107    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22108      PATH_SEPARATOR=';'
22109  }
22110fi
22111
22112
22113# IFS
22114# We need space, tab and new line, in precisely that order.  Quoting is
22115# there to prevent editors from complaining about space-tab.
22116# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22117# splitting by setting IFS to empty value.)
22118IFS=" ""	$as_nl"
22119
22120# Find who we are.  Look in the path if we contain no directory separator.
22121as_myself=
22122case $0 in #((
22123  *[\\/]* ) as_myself=$0 ;;
22124  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22125for as_dir in $PATH
22126do
22127  IFS=$as_save_IFS
22128  test -z "$as_dir" && as_dir=.
22129    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22130  done
22131IFS=$as_save_IFS
22132
22133     ;;
22134esac
22135# We did not find ourselves, most probably we were run as `sh COMMAND'
22136# in which case we are not to be found in the path.
22137if test "x$as_myself" = x; then
22138  as_myself=$0
22139fi
22140if test ! -f "$as_myself"; then
22141  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22142  exit 1
22143fi
22144
22145# Unset variables that we do not need and which cause bugs (e.g. in
22146# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22147# suppresses any "Segmentation fault" message there.  '((' could
22148# trigger a bug in pdksh 5.2.14.
22149for as_var in BASH_ENV ENV MAIL MAILPATH
22150do eval test x\${$as_var+set} = xset \
22151  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22152done
22153PS1='$ '
22154PS2='> '
22155PS4='+ '
22156
22157# NLS nuisances.
22158LC_ALL=C
22159export LC_ALL
22160LANGUAGE=C
22161export LANGUAGE
22162
22163# CDPATH.
22164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22165
22166
22167# as_fn_error STATUS ERROR [LINENO LOG_FD]
22168# ----------------------------------------
22169# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22170# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22171# script with STATUS, using 1 if that was 0.
22172as_fn_error ()
22173{
22174  as_status=$1; test $as_status -eq 0 && as_status=1
22175  if test "$4"; then
22176    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22177    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22178  fi
22179  $as_echo "$as_me: error: $2" >&2
22180  as_fn_exit $as_status
22181} # as_fn_error
22182
22183
22184# as_fn_set_status STATUS
22185# -----------------------
22186# Set $? to STATUS, without forking.
22187as_fn_set_status ()
22188{
22189  return $1
22190} # as_fn_set_status
22191
22192# as_fn_exit STATUS
22193# -----------------
22194# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22195as_fn_exit ()
22196{
22197  set +e
22198  as_fn_set_status $1
22199  exit $1
22200} # as_fn_exit
22201
22202# as_fn_unset VAR
22203# ---------------
22204# Portably unset VAR.
22205as_fn_unset ()
22206{
22207  { eval $1=; unset $1;}
22208}
22209as_unset=as_fn_unset
22210# as_fn_append VAR VALUE
22211# ----------------------
22212# Append the text in VALUE to the end of the definition contained in VAR. Take
22213# advantage of any shell optimizations that allow amortized linear growth over
22214# repeated appends, instead of the typical quadratic growth present in naive
22215# implementations.
22216if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22217  eval 'as_fn_append ()
22218  {
22219    eval $1+=\$2
22220  }'
22221else
22222  as_fn_append ()
22223  {
22224    eval $1=\$$1\$2
22225  }
22226fi # as_fn_append
22227
22228# as_fn_arith ARG...
22229# ------------------
22230# Perform arithmetic evaluation on the ARGs, and store the result in the
22231# global $as_val. Take advantage of shells that can avoid forks. The arguments
22232# must be portable across $(()) and expr.
22233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22234  eval 'as_fn_arith ()
22235  {
22236    as_val=$(( $* ))
22237  }'
22238else
22239  as_fn_arith ()
22240  {
22241    as_val=`expr "$@" || test $? -eq 1`
22242  }
22243fi # as_fn_arith
22244
22245
22246if expr a : '\(a\)' >/dev/null 2>&1 &&
22247   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22248  as_expr=expr
22249else
22250  as_expr=false
22251fi
22252
22253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22254  as_basename=basename
22255else
22256  as_basename=false
22257fi
22258
22259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22260  as_dirname=dirname
22261else
22262  as_dirname=false
22263fi
22264
22265as_me=`$as_basename -- "$0" ||
22266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22267	 X"$0" : 'X\(//\)$' \| \
22268	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22269$as_echo X/"$0" |
22270    sed '/^.*\/\([^/][^/]*\)\/*$/{
22271	    s//\1/
22272	    q
22273	  }
22274	  /^X\/\(\/\/\)$/{
22275	    s//\1/
22276	    q
22277	  }
22278	  /^X\/\(\/\).*/{
22279	    s//\1/
22280	    q
22281	  }
22282	  s/.*/./; q'`
22283
22284# Avoid depending upon Character Ranges.
22285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22288as_cr_digits='0123456789'
22289as_cr_alnum=$as_cr_Letters$as_cr_digits
22290
22291ECHO_C= ECHO_N= ECHO_T=
22292case `echo -n x` in #(((((
22293-n*)
22294  case `echo 'xy\c'` in
22295  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22296  xy)  ECHO_C='\c';;
22297  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22298       ECHO_T='	';;
22299  esac;;
22300*)
22301  ECHO_N='-n';;
22302esac
22303
22304rm -f conf$$ conf$$.exe conf$$.file
22305if test -d conf$$.dir; then
22306  rm -f conf$$.dir/conf$$.file
22307else
22308  rm -f conf$$.dir
22309  mkdir conf$$.dir 2>/dev/null
22310fi
22311if (echo >conf$$.file) 2>/dev/null; then
22312  if ln -s conf$$.file conf$$ 2>/dev/null; then
22313    as_ln_s='ln -s'
22314    # ... but there are two gotchas:
22315    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22316    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22317    # In both cases, we have to default to `cp -pR'.
22318    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22319      as_ln_s='cp -pR'
22320  elif ln conf$$.file conf$$ 2>/dev/null; then
22321    as_ln_s=ln
22322  else
22323    as_ln_s='cp -pR'
22324  fi
22325else
22326  as_ln_s='cp -pR'
22327fi
22328rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22329rmdir conf$$.dir 2>/dev/null
22330
22331
22332# as_fn_mkdir_p
22333# -------------
22334# Create "$as_dir" as a directory, including parents if necessary.
22335as_fn_mkdir_p ()
22336{
22337
22338  case $as_dir in #(
22339  -*) as_dir=./$as_dir;;
22340  esac
22341  test -d "$as_dir" || eval $as_mkdir_p || {
22342    as_dirs=
22343    while :; do
22344      case $as_dir in #(
22345      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22346      *) as_qdir=$as_dir;;
22347      esac
22348      as_dirs="'$as_qdir' $as_dirs"
22349      as_dir=`$as_dirname -- "$as_dir" ||
22350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22351	 X"$as_dir" : 'X\(//\)[^/]' \| \
22352	 X"$as_dir" : 'X\(//\)$' \| \
22353	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22354$as_echo X"$as_dir" |
22355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22356	    s//\1/
22357	    q
22358	  }
22359	  /^X\(\/\/\)[^/].*/{
22360	    s//\1/
22361	    q
22362	  }
22363	  /^X\(\/\/\)$/{
22364	    s//\1/
22365	    q
22366	  }
22367	  /^X\(\/\).*/{
22368	    s//\1/
22369	    q
22370	  }
22371	  s/.*/./; q'`
22372      test -d "$as_dir" && break
22373    done
22374    test -z "$as_dirs" || eval "mkdir $as_dirs"
22375  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22376
22377
22378} # as_fn_mkdir_p
22379if mkdir -p . 2>/dev/null; then
22380  as_mkdir_p='mkdir -p "$as_dir"'
22381else
22382  test -d ./-p && rmdir ./-p
22383  as_mkdir_p=false
22384fi
22385
22386
22387# as_fn_executable_p FILE
22388# -----------------------
22389# Test if FILE is an executable regular file.
22390as_fn_executable_p ()
22391{
22392  test -f "$1" && test -x "$1"
22393} # as_fn_executable_p
22394as_test_x='test -x'
22395as_executable_p=as_fn_executable_p
22396
22397# Sed expression to map a string onto a valid CPP name.
22398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22399
22400# Sed expression to map a string onto a valid variable name.
22401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22402
22403
22404exec 6>&1
22405## ----------------------------------- ##
22406## Main body of $CONFIG_STATUS script. ##
22407## ----------------------------------- ##
22408_ASEOF
22409test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22410
22411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22412# Save the log message, to keep $0 and so on meaningful, and to
22413# report actual input values of CONFIG_FILES etc. instead of their
22414# values after options handling.
22415ac_log="
22416This file was extended by unbound $as_me 1.19.0, which was
22417generated by GNU Autoconf 2.69.  Invocation command line was
22418
22419  CONFIG_FILES    = $CONFIG_FILES
22420  CONFIG_HEADERS  = $CONFIG_HEADERS
22421  CONFIG_LINKS    = $CONFIG_LINKS
22422  CONFIG_COMMANDS = $CONFIG_COMMANDS
22423  $ $0 $@
22424
22425on `(hostname || uname -n) 2>/dev/null | sed 1q`
22426"
22427
22428_ACEOF
22429
22430case $ac_config_files in *"
22431"*) set x $ac_config_files; shift; ac_config_files=$*;;
22432esac
22433
22434case $ac_config_headers in *"
22435"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22436esac
22437
22438
22439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22440# Files that config.status was made for.
22441config_files="$ac_config_files"
22442config_headers="$ac_config_headers"
22443config_commands="$ac_config_commands"
22444
22445_ACEOF
22446
22447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22448ac_cs_usage="\
22449\`$as_me' instantiates files and other configuration actions
22450from templates according to the current configuration.  Unless the files
22451and actions are specified as TAGs, all are instantiated by default.
22452
22453Usage: $0 [OPTION]... [TAG]...
22454
22455  -h, --help       print this help, then exit
22456  -V, --version    print version number and configuration settings, then exit
22457      --config     print configuration, then exit
22458  -q, --quiet, --silent
22459                   do not print progress messages
22460  -d, --debug      don't remove temporary files
22461      --recheck    update $as_me by reconfiguring in the same conditions
22462      --file=FILE[:TEMPLATE]
22463                   instantiate the configuration file FILE
22464      --header=FILE[:TEMPLATE]
22465                   instantiate the configuration header FILE
22466
22467Configuration files:
22468$config_files
22469
22470Configuration headers:
22471$config_headers
22472
22473Configuration commands:
22474$config_commands
22475
22476Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22477
22478_ACEOF
22479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22480ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22481ac_cs_version="\\
22482unbound config.status 1.19.0
22483configured by $0, generated by GNU Autoconf 2.69,
22484  with options \\"\$ac_cs_config\\"
22485
22486Copyright (C) 2012 Free Software Foundation, Inc.
22487This config.status script is free software; the Free Software Foundation
22488gives unlimited permission to copy, distribute and modify it."
22489
22490ac_pwd='$ac_pwd'
22491srcdir='$srcdir'
22492AWK='$AWK'
22493test -n "\$AWK" || AWK=awk
22494_ACEOF
22495
22496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22497# The default lists apply if the user does not specify any file.
22498ac_need_defaults=:
22499while test $# != 0
22500do
22501  case $1 in
22502  --*=?*)
22503    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22504    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22505    ac_shift=:
22506    ;;
22507  --*=)
22508    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22509    ac_optarg=
22510    ac_shift=:
22511    ;;
22512  *)
22513    ac_option=$1
22514    ac_optarg=$2
22515    ac_shift=shift
22516    ;;
22517  esac
22518
22519  case $ac_option in
22520  # Handling of the options.
22521  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22522    ac_cs_recheck=: ;;
22523  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22524    $as_echo "$ac_cs_version"; exit ;;
22525  --config | --confi | --conf | --con | --co | --c )
22526    $as_echo "$ac_cs_config"; exit ;;
22527  --debug | --debu | --deb | --de | --d | -d )
22528    debug=: ;;
22529  --file | --fil | --fi | --f )
22530    $ac_shift
22531    case $ac_optarg in
22532    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22533    '') as_fn_error $? "missing file argument" ;;
22534    esac
22535    as_fn_append CONFIG_FILES " '$ac_optarg'"
22536    ac_need_defaults=false;;
22537  --header | --heade | --head | --hea )
22538    $ac_shift
22539    case $ac_optarg in
22540    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22541    esac
22542    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22543    ac_need_defaults=false;;
22544  --he | --h)
22545    # Conflict between --help and --header
22546    as_fn_error $? "ambiguous option: \`$1'
22547Try \`$0 --help' for more information.";;
22548  --help | --hel | -h )
22549    $as_echo "$ac_cs_usage"; exit ;;
22550  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22551  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22552    ac_cs_silent=: ;;
22553
22554  # This is an error.
22555  -*) as_fn_error $? "unrecognized option: \`$1'
22556Try \`$0 --help' for more information." ;;
22557
22558  *) as_fn_append ac_config_targets " $1"
22559     ac_need_defaults=false ;;
22560
22561  esac
22562  shift
22563done
22564
22565ac_configure_extra_args=
22566
22567if $ac_cs_silent; then
22568  exec 6>/dev/null
22569  ac_configure_extra_args="$ac_configure_extra_args --silent"
22570fi
22571
22572_ACEOF
22573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22574if \$ac_cs_recheck; then
22575  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22576  shift
22577  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22578  CONFIG_SHELL='$SHELL'
22579  export CONFIG_SHELL
22580  exec "\$@"
22581fi
22582
22583_ACEOF
22584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22585exec 5>>config.log
22586{
22587  echo
22588  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22589## Running $as_me. ##
22590_ASBOX
22591  $as_echo "$ac_log"
22592} >&5
22593
22594_ACEOF
22595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22596#
22597# INIT-COMMANDS
22598#
22599
22600
22601# The HP-UX ksh and POSIX shell print the target directory to stdout
22602# if CDPATH is set.
22603(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22604
22605sed_quote_subst='$sed_quote_subst'
22606double_quote_subst='$double_quote_subst'
22607delay_variable_subst='$delay_variable_subst'
22608macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22609macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22610enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22611enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22612pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22613enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22614shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22615SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22616ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22617PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22618host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22619host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22620host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22621build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22622build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22623build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22624SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22625Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22626GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22627EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22628FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22629LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22630NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22631LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22632max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22633ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22634exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22635lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22636lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22637lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22638lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22639lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22640reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22641reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22642OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22643deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22644file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22645file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22646want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22647DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22648sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22649AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22650AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22651archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22652STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22653RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22654old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22655old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22656old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22657lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22658CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22659CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22660compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22661GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22662lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22663lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22664lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22665lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22666lt_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"`'
22667lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22668nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22669lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22670lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22671objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22672MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22673lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22674lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22675lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22676lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22677lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22678need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22679MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22680DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22681NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22682LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22683OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22684OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22685libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22686shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22687extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22688archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22689enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22690export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22691whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22692compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22693old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22694old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22695archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22696archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22697module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22698module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22699with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22700allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22701no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22702hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22703hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22704hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22705hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22706hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22707hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22708hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22709inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22710link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22711always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22712export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22713exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22714include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22715prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22716postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22717file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22718variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22719need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22720need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22721version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22722runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22723shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22724shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22725libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22726library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22727soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22728install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22729postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22730postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22731finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22732finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22733hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22734sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22735configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22736configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22737hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22738enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22739enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22740enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22741old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22742striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22743
22744LTCC='$LTCC'
22745LTCFLAGS='$LTCFLAGS'
22746compiler='$compiler_DEFAULT'
22747
22748# A function that is used when there is no print builtin or printf.
22749func_fallback_echo ()
22750{
22751  eval 'cat <<_LTECHO_EOF
22752\$1
22753_LTECHO_EOF'
22754}
22755
22756# Quote evaled strings.
22757for var in SHELL \
22758ECHO \
22759PATH_SEPARATOR \
22760SED \
22761GREP \
22762EGREP \
22763FGREP \
22764LD \
22765NM \
22766LN_S \
22767lt_SP2NL \
22768lt_NL2SP \
22769reload_flag \
22770OBJDUMP \
22771deplibs_check_method \
22772file_magic_cmd \
22773file_magic_glob \
22774want_nocaseglob \
22775DLLTOOL \
22776sharedlib_from_linklib_cmd \
22777AR \
22778AR_FLAGS \
22779archiver_list_spec \
22780STRIP \
22781RANLIB \
22782CC \
22783CFLAGS \
22784compiler \
22785lt_cv_sys_global_symbol_pipe \
22786lt_cv_sys_global_symbol_to_cdecl \
22787lt_cv_sys_global_symbol_to_import \
22788lt_cv_sys_global_symbol_to_c_name_address \
22789lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22790lt_cv_nm_interface \
22791nm_file_list_spec \
22792lt_cv_truncate_bin \
22793lt_prog_compiler_no_builtin_flag \
22794lt_prog_compiler_pic \
22795lt_prog_compiler_wl \
22796lt_prog_compiler_static \
22797lt_cv_prog_compiler_c_o \
22798need_locks \
22799MANIFEST_TOOL \
22800DSYMUTIL \
22801NMEDIT \
22802LIPO \
22803OTOOL \
22804OTOOL64 \
22805shrext_cmds \
22806export_dynamic_flag_spec \
22807whole_archive_flag_spec \
22808compiler_needs_object \
22809with_gnu_ld \
22810allow_undefined_flag \
22811no_undefined_flag \
22812hardcode_libdir_flag_spec \
22813hardcode_libdir_separator \
22814exclude_expsyms \
22815include_expsyms \
22816file_list_spec \
22817variables_saved_for_relink \
22818libname_spec \
22819library_names_spec \
22820soname_spec \
22821install_override_mode \
22822finish_eval \
22823old_striplib \
22824striplib; do
22825    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22826    *[\\\\\\\`\\"\\\$]*)
22827      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22828      ;;
22829    *)
22830      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22831      ;;
22832    esac
22833done
22834
22835# Double-quote double-evaled strings.
22836for var in reload_cmds \
22837old_postinstall_cmds \
22838old_postuninstall_cmds \
22839old_archive_cmds \
22840extract_expsyms_cmds \
22841old_archive_from_new_cmds \
22842old_archive_from_expsyms_cmds \
22843archive_cmds \
22844archive_expsym_cmds \
22845module_cmds \
22846module_expsym_cmds \
22847export_symbols_cmds \
22848prelink_cmds \
22849postlink_cmds \
22850postinstall_cmds \
22851postuninstall_cmds \
22852finish_cmds \
22853sys_lib_search_path_spec \
22854configure_time_dlsearch_path \
22855configure_time_lt_sys_library_path; do
22856    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22857    *[\\\\\\\`\\"\\\$]*)
22858      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22859      ;;
22860    *)
22861      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22862      ;;
22863    esac
22864done
22865
22866ac_aux_dir='$ac_aux_dir'
22867
22868# See if we are running on zsh, and set the options that allow our
22869# commands through without removal of \ escapes INIT.
22870if test -n "\${ZSH_VERSION+set}"; then
22871   setopt NO_GLOB_SUBST
22872fi
22873
22874
22875    PACKAGE='$PACKAGE'
22876    VERSION='$VERSION'
22877    RM='$RM'
22878    ofile='$ofile'
22879
22880
22881
22882
22883_ACEOF
22884
22885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22886
22887# Handling of arguments.
22888for ac_config_target in $ac_config_targets
22889do
22890  case $ac_config_target in
22891    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22892    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22893    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22894    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22895    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22896    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22897    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22898    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22899    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22900    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22901    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22902    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22903    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22904    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22905    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22906    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22907    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22908    "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22909    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22910
22911  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22912  esac
22913done
22914
22915
22916# If the user did not use the arguments to specify the items to instantiate,
22917# then the envvar interface is used.  Set only those that are not.
22918# We use the long form for the default assignment because of an extremely
22919# bizarre bug on SunOS 4.1.3.
22920if $ac_need_defaults; then
22921  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22922  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22923  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22924fi
22925
22926# Have a temporary directory for convenience.  Make it in the build tree
22927# simply because there is no reason against having it here, and in addition,
22928# creating and moving files from /tmp can sometimes cause problems.
22929# Hook for its removal unless debugging.
22930# Note that there is a small window in which the directory will not be cleaned:
22931# after its creation but before its name has been assigned to `$tmp'.
22932$debug ||
22933{
22934  tmp= ac_tmp=
22935  trap 'exit_status=$?
22936  : "${ac_tmp:=$tmp}"
22937  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22938' 0
22939  trap 'as_fn_exit 1' 1 2 13 15
22940}
22941# Create a (secure) tmp directory for tmp files.
22942
22943{
22944  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22945  test -d "$tmp"
22946}  ||
22947{
22948  tmp=./conf$$-$RANDOM
22949  (umask 077 && mkdir "$tmp")
22950} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22951ac_tmp=$tmp
22952
22953# Set up the scripts for CONFIG_FILES section.
22954# No need to generate them if there are no CONFIG_FILES.
22955# This happens for instance with `./config.status config.h'.
22956if test -n "$CONFIG_FILES"; then
22957
22958
22959ac_cr=`echo X | tr X '\015'`
22960# On cygwin, bash can eat \r inside `` if the user requested igncr.
22961# But we know of no other shell where ac_cr would be empty at this
22962# point, so we can use a bashism as a fallback.
22963if test "x$ac_cr" = x; then
22964  eval ac_cr=\$\'\\r\'
22965fi
22966ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22967if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22968  ac_cs_awk_cr='\\r'
22969else
22970  ac_cs_awk_cr=$ac_cr
22971fi
22972
22973echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22974_ACEOF
22975
22976
22977{
22978  echo "cat >conf$$subs.awk <<_ACEOF" &&
22979  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22980  echo "_ACEOF"
22981} >conf$$subs.sh ||
22982  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22983ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22984ac_delim='%!_!# '
22985for ac_last_try in false false false false false :; do
22986  . ./conf$$subs.sh ||
22987    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22988
22989  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22990  if test $ac_delim_n = $ac_delim_num; then
22991    break
22992  elif $ac_last_try; then
22993    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22994  else
22995    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22996  fi
22997done
22998rm -f conf$$subs.sh
22999
23000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23001cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23002_ACEOF
23003sed -n '
23004h
23005s/^/S["/; s/!.*/"]=/
23006p
23007g
23008s/^[^!]*!//
23009:repl
23010t repl
23011s/'"$ac_delim"'$//
23012t delim
23013:nl
23014h
23015s/\(.\{148\}\)..*/\1/
23016t more1
23017s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23018p
23019n
23020b repl
23021:more1
23022s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23023p
23024g
23025s/.\{148\}//
23026t nl
23027:delim
23028h
23029s/\(.\{148\}\)..*/\1/
23030t more2
23031s/["\\]/\\&/g; s/^/"/; s/$/"/
23032p
23033b
23034:more2
23035s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23036p
23037g
23038s/.\{148\}//
23039t delim
23040' <conf$$subs.awk | sed '
23041/^[^""]/{
23042  N
23043  s/\n//
23044}
23045' >>$CONFIG_STATUS || ac_write_fail=1
23046rm -f conf$$subs.awk
23047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23048_ACAWK
23049cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23050  for (key in S) S_is_set[key] = 1
23051  FS = ""
23052
23053}
23054{
23055  line = $ 0
23056  nfields = split(line, field, "@")
23057  substed = 0
23058  len = length(field[1])
23059  for (i = 2; i < nfields; i++) {
23060    key = field[i]
23061    keylen = length(key)
23062    if (S_is_set[key]) {
23063      value = S[key]
23064      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23065      len += length(value) + length(field[++i])
23066      substed = 1
23067    } else
23068      len += 1 + keylen
23069  }
23070
23071  print line
23072}
23073
23074_ACAWK
23075_ACEOF
23076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23077if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23078  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23079else
23080  cat
23081fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23082  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23083_ACEOF
23084
23085# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23086# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23087# trailing colons and then remove the whole line if VPATH becomes empty
23088# (actually we leave an empty line to preserve line numbers).
23089if test "x$srcdir" = x.; then
23090  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23091h
23092s///
23093s/^/:/
23094s/[	 ]*$/:/
23095s/:\$(srcdir):/:/g
23096s/:\${srcdir}:/:/g
23097s/:@srcdir@:/:/g
23098s/^:*//
23099s/:*$//
23100x
23101s/\(=[	 ]*\).*/\1/
23102G
23103s/\n//
23104s/^[^=]*=[	 ]*$//
23105}'
23106fi
23107
23108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23109fi # test -n "$CONFIG_FILES"
23110
23111# Set up the scripts for CONFIG_HEADERS section.
23112# No need to generate them if there are no CONFIG_HEADERS.
23113# This happens for instance with `./config.status Makefile'.
23114if test -n "$CONFIG_HEADERS"; then
23115cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23116BEGIN {
23117_ACEOF
23118
23119# Transform confdefs.h into an awk script `defines.awk', embedded as
23120# here-document in config.status, that substitutes the proper values into
23121# config.h.in to produce config.h.
23122
23123# Create a delimiter string that does not exist in confdefs.h, to ease
23124# handling of long lines.
23125ac_delim='%!_!# '
23126for ac_last_try in false false :; do
23127  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23128  if test -z "$ac_tt"; then
23129    break
23130  elif $ac_last_try; then
23131    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23132  else
23133    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23134  fi
23135done
23136
23137# For the awk script, D is an array of macro values keyed by name,
23138# likewise P contains macro parameters if any.  Preserve backslash
23139# newline sequences.
23140
23141ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23142sed -n '
23143s/.\{148\}/&'"$ac_delim"'/g
23144t rset
23145:rset
23146s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23147t def
23148d
23149:def
23150s/\\$//
23151t bsnl
23152s/["\\]/\\&/g
23153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23154D["\1"]=" \3"/p
23155s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23156d
23157:bsnl
23158s/["\\]/\\&/g
23159s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23160D["\1"]=" \3\\\\\\n"\\/p
23161t cont
23162s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23163t cont
23164d
23165:cont
23166n
23167s/.\{148\}/&'"$ac_delim"'/g
23168t clear
23169:clear
23170s/\\$//
23171t bsnlc
23172s/["\\]/\\&/g; s/^/"/; s/$/"/p
23173d
23174:bsnlc
23175s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23176b cont
23177' <confdefs.h | sed '
23178s/'"$ac_delim"'/"\\\
23179"/g' >>$CONFIG_STATUS || ac_write_fail=1
23180
23181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23182  for (key in D) D_is_set[key] = 1
23183  FS = ""
23184}
23185/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23186  line = \$ 0
23187  split(line, arg, " ")
23188  if (arg[1] == "#") {
23189    defundef = arg[2]
23190    mac1 = arg[3]
23191  } else {
23192    defundef = substr(arg[1], 2)
23193    mac1 = arg[2]
23194  }
23195  split(mac1, mac2, "(") #)
23196  macro = mac2[1]
23197  prefix = substr(line, 1, index(line, defundef) - 1)
23198  if (D_is_set[macro]) {
23199    # Preserve the white space surrounding the "#".
23200    print prefix "define", macro P[macro] D[macro]
23201    next
23202  } else {
23203    # Replace #undef with comments.  This is necessary, for example,
23204    # in the case of _POSIX_SOURCE, which is predefined and required
23205    # on some systems where configure will not decide to define it.
23206    if (defundef == "undef") {
23207      print "/*", prefix defundef, macro, "*/"
23208      next
23209    }
23210  }
23211}
23212{ print }
23213_ACAWK
23214_ACEOF
23215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23216  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23217fi # test -n "$CONFIG_HEADERS"
23218
23219
23220eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23221shift
23222for ac_tag
23223do
23224  case $ac_tag in
23225  :[FHLC]) ac_mode=$ac_tag; continue;;
23226  esac
23227  case $ac_mode$ac_tag in
23228  :[FHL]*:*);;
23229  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23230  :[FH]-) ac_tag=-:-;;
23231  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23232  esac
23233  ac_save_IFS=$IFS
23234  IFS=:
23235  set x $ac_tag
23236  IFS=$ac_save_IFS
23237  shift
23238  ac_file=$1
23239  shift
23240
23241  case $ac_mode in
23242  :L) ac_source=$1;;
23243  :[FH])
23244    ac_file_inputs=
23245    for ac_f
23246    do
23247      case $ac_f in
23248      -) ac_f="$ac_tmp/stdin";;
23249      *) # Look for the file first in the build tree, then in the source tree
23250	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23251	 # because $ac_f cannot contain `:'.
23252	 test -f "$ac_f" ||
23253	   case $ac_f in
23254	   [\\/$]*) false;;
23255	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23256	   esac ||
23257	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23258      esac
23259      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23260      as_fn_append ac_file_inputs " '$ac_f'"
23261    done
23262
23263    # Let's still pretend it is `configure' which instantiates (i.e., don't
23264    # use $as_me), people would be surprised to read:
23265    #    /* config.h.  Generated by config.status.  */
23266    configure_input='Generated from '`
23267	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23268	`' by configure.'
23269    if test x"$ac_file" != x-; then
23270      configure_input="$ac_file.  $configure_input"
23271      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23272$as_echo "$as_me: creating $ac_file" >&6;}
23273    fi
23274    # Neutralize special characters interpreted by sed in replacement strings.
23275    case $configure_input in #(
23276    *\&* | *\|* | *\\* )
23277       ac_sed_conf_input=`$as_echo "$configure_input" |
23278       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23279    *) ac_sed_conf_input=$configure_input;;
23280    esac
23281
23282    case $ac_tag in
23283    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23284      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23285    esac
23286    ;;
23287  esac
23288
23289  ac_dir=`$as_dirname -- "$ac_file" ||
23290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291	 X"$ac_file" : 'X\(//\)[^/]' \| \
23292	 X"$ac_file" : 'X\(//\)$' \| \
23293	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23294$as_echo X"$ac_file" |
23295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296	    s//\1/
23297	    q
23298	  }
23299	  /^X\(\/\/\)[^/].*/{
23300	    s//\1/
23301	    q
23302	  }
23303	  /^X\(\/\/\)$/{
23304	    s//\1/
23305	    q
23306	  }
23307	  /^X\(\/\).*/{
23308	    s//\1/
23309	    q
23310	  }
23311	  s/.*/./; q'`
23312  as_dir="$ac_dir"; as_fn_mkdir_p
23313  ac_builddir=.
23314
23315case "$ac_dir" in
23316.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23317*)
23318  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23319  # A ".." for each directory in $ac_dir_suffix.
23320  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23321  case $ac_top_builddir_sub in
23322  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23323  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23324  esac ;;
23325esac
23326ac_abs_top_builddir=$ac_pwd
23327ac_abs_builddir=$ac_pwd$ac_dir_suffix
23328# for backward compatibility:
23329ac_top_builddir=$ac_top_build_prefix
23330
23331case $srcdir in
23332  .)  # We are building in place.
23333    ac_srcdir=.
23334    ac_top_srcdir=$ac_top_builddir_sub
23335    ac_abs_top_srcdir=$ac_pwd ;;
23336  [\\/]* | ?:[\\/]* )  # Absolute name.
23337    ac_srcdir=$srcdir$ac_dir_suffix;
23338    ac_top_srcdir=$srcdir
23339    ac_abs_top_srcdir=$srcdir ;;
23340  *) # Relative name.
23341    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23342    ac_top_srcdir=$ac_top_build_prefix$srcdir
23343    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23344esac
23345ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23346
23347
23348  case $ac_mode in
23349  :F)
23350  #
23351  # CONFIG_FILE
23352  #
23353
23354_ACEOF
23355
23356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23357# If the template does not know about datarootdir, expand it.
23358# FIXME: This hack should be removed a few years after 2.60.
23359ac_datarootdir_hack=; ac_datarootdir_seen=
23360ac_sed_dataroot='
23361/datarootdir/ {
23362  p
23363  q
23364}
23365/@datadir@/p
23366/@docdir@/p
23367/@infodir@/p
23368/@localedir@/p
23369/@mandir@/p'
23370case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23371*datarootdir*) ac_datarootdir_seen=yes;;
23372*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23374$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23375_ACEOF
23376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23377  ac_datarootdir_hack='
23378  s&@datadir@&$datadir&g
23379  s&@docdir@&$docdir&g
23380  s&@infodir@&$infodir&g
23381  s&@localedir@&$localedir&g
23382  s&@mandir@&$mandir&g
23383  s&\\\${datarootdir}&$datarootdir&g' ;;
23384esac
23385_ACEOF
23386
23387# Neutralize VPATH when `$srcdir' = `.'.
23388# Shell code in configure.ac might set extrasub.
23389# FIXME: do we really want to maintain this feature?
23390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23391ac_sed_extra="$ac_vpsub
23392$extrasub
23393_ACEOF
23394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23395:t
23396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23397s|@configure_input@|$ac_sed_conf_input|;t t
23398s&@top_builddir@&$ac_top_builddir_sub&;t t
23399s&@top_build_prefix@&$ac_top_build_prefix&;t t
23400s&@srcdir@&$ac_srcdir&;t t
23401s&@abs_srcdir@&$ac_abs_srcdir&;t t
23402s&@top_srcdir@&$ac_top_srcdir&;t t
23403s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23404s&@builddir@&$ac_builddir&;t t
23405s&@abs_builddir@&$ac_abs_builddir&;t t
23406s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23407$ac_datarootdir_hack
23408"
23409eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23410  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23411
23412test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23413  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23414  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23415      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23417which seems to be undefined.  Please make sure it is defined" >&5
23418$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23419which seems to be undefined.  Please make sure it is defined" >&2;}
23420
23421  rm -f "$ac_tmp/stdin"
23422  case $ac_file in
23423  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23424  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23425  esac \
23426  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23427 ;;
23428  :H)
23429  #
23430  # CONFIG_HEADER
23431  #
23432  if test x"$ac_file" != x-; then
23433    {
23434      $as_echo "/* $configure_input  */" \
23435      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23436    } >"$ac_tmp/config.h" \
23437      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23438    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23439      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23440$as_echo "$as_me: $ac_file is unchanged" >&6;}
23441    else
23442      rm -f "$ac_file"
23443      mv "$ac_tmp/config.h" "$ac_file" \
23444	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23445    fi
23446  else
23447    $as_echo "/* $configure_input  */" \
23448      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23449      || as_fn_error $? "could not create -" "$LINENO" 5
23450  fi
23451 ;;
23452
23453  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23454$as_echo "$as_me: executing $ac_file commands" >&6;}
23455 ;;
23456  esac
23457
23458
23459  case $ac_file$ac_mode in
23460    "libtool":C)
23461
23462    # See if we are running on zsh, and set the options that allow our
23463    # commands through without removal of \ escapes.
23464    if test -n "${ZSH_VERSION+set}"; then
23465      setopt NO_GLOB_SUBST
23466    fi
23467
23468    cfgfile=${ofile}T
23469    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23470    $RM "$cfgfile"
23471
23472    cat <<_LT_EOF >> "$cfgfile"
23473#! $SHELL
23474# Generated automatically by $as_me ($PACKAGE) $VERSION
23475# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23476# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23477
23478# Provide generalized library-building support services.
23479# Written by Gordon Matzigkeit, 1996
23480
23481# Copyright (C) 2014 Free Software Foundation, Inc.
23482# This is free software; see the source for copying conditions.  There is NO
23483# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23484
23485# GNU Libtool is free software; you can redistribute it and/or modify
23486# it under the terms of the GNU General Public License as published by
23487# the Free Software Foundation; either version 2 of of the License, or
23488# (at your option) any later version.
23489#
23490# As a special exception to the GNU General Public License, if you
23491# distribute this file as part of a program or library that is built
23492# using GNU Libtool, you may include this file under the  same
23493# distribution terms that you use for the rest of that program.
23494#
23495# GNU Libtool is distributed in the hope that it will be useful, but
23496# WITHOUT ANY WARRANTY; without even the implied warranty of
23497# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23498# GNU General Public License for more details.
23499#
23500# You should have received a copy of the GNU General Public License
23501# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23502
23503
23504# The names of the tagged configurations supported by this script.
23505available_tags=''
23506
23507# Configured defaults for sys_lib_dlsearch_path munging.
23508: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23509
23510# ### BEGIN LIBTOOL CONFIG
23511
23512# Which release of libtool.m4 was used?
23513macro_version=$macro_version
23514macro_revision=$macro_revision
23515
23516# Whether or not to build shared libraries.
23517build_libtool_libs=$enable_shared
23518
23519# Whether or not to build static libraries.
23520build_old_libs=$enable_static
23521
23522# What type of objects to build.
23523pic_mode=$pic_mode
23524
23525# Whether or not to optimize for fast installation.
23526fast_install=$enable_fast_install
23527
23528# Shared archive member basename,for filename based shared library versioning on AIX.
23529shared_archive_member_spec=$shared_archive_member_spec
23530
23531# Shell to use when invoking shell scripts.
23532SHELL=$lt_SHELL
23533
23534# An echo program that protects backslashes.
23535ECHO=$lt_ECHO
23536
23537# The PATH separator for the build system.
23538PATH_SEPARATOR=$lt_PATH_SEPARATOR
23539
23540# The host system.
23541host_alias=$host_alias
23542host=$host
23543host_os=$host_os
23544
23545# The build system.
23546build_alias=$build_alias
23547build=$build
23548build_os=$build_os
23549
23550# A sed program that does not truncate output.
23551SED=$lt_SED
23552
23553# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23554Xsed="\$SED -e 1s/^X//"
23555
23556# A grep program that handles long lines.
23557GREP=$lt_GREP
23558
23559# An ERE matcher.
23560EGREP=$lt_EGREP
23561
23562# A literal string matcher.
23563FGREP=$lt_FGREP
23564
23565# A BSD- or MS-compatible name lister.
23566NM=$lt_NM
23567
23568# Whether we need soft or hard links.
23569LN_S=$lt_LN_S
23570
23571# What is the maximum length of a command?
23572max_cmd_len=$max_cmd_len
23573
23574# Object file suffix (normally "o").
23575objext=$ac_objext
23576
23577# Executable file suffix (normally "").
23578exeext=$exeext
23579
23580# whether the shell understands "unset".
23581lt_unset=$lt_unset
23582
23583# turn spaces into newlines.
23584SP2NL=$lt_lt_SP2NL
23585
23586# turn newlines into spaces.
23587NL2SP=$lt_lt_NL2SP
23588
23589# convert \$build file names to \$host format.
23590to_host_file_cmd=$lt_cv_to_host_file_cmd
23591
23592# convert \$build files to toolchain format.
23593to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23594
23595# An object symbol dumper.
23596OBJDUMP=$lt_OBJDUMP
23597
23598# Method to check whether dependent libraries are shared objects.
23599deplibs_check_method=$lt_deplibs_check_method
23600
23601# Command to use when deplibs_check_method = "file_magic".
23602file_magic_cmd=$lt_file_magic_cmd
23603
23604# How to find potential files when deplibs_check_method = "file_magic".
23605file_magic_glob=$lt_file_magic_glob
23606
23607# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23608want_nocaseglob=$lt_want_nocaseglob
23609
23610# DLL creation program.
23611DLLTOOL=$lt_DLLTOOL
23612
23613# Command to associate shared and link libraries.
23614sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23615
23616# The archiver.
23617AR=$lt_AR
23618
23619# Flags to create an archive.
23620AR_FLAGS=$lt_AR_FLAGS
23621
23622# How to feed a file listing to the archiver.
23623archiver_list_spec=$lt_archiver_list_spec
23624
23625# A symbol stripping program.
23626STRIP=$lt_STRIP
23627
23628# Commands used to install an old-style archive.
23629RANLIB=$lt_RANLIB
23630old_postinstall_cmds=$lt_old_postinstall_cmds
23631old_postuninstall_cmds=$lt_old_postuninstall_cmds
23632
23633# Whether to use a lock for old archive extraction.
23634lock_old_archive_extraction=$lock_old_archive_extraction
23635
23636# A C compiler.
23637LTCC=$lt_CC
23638
23639# LTCC compiler flags.
23640LTCFLAGS=$lt_CFLAGS
23641
23642# Take the output of nm and produce a listing of raw symbols and C names.
23643global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23644
23645# Transform the output of nm in a proper C declaration.
23646global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23647
23648# Transform the output of nm into a list of symbols to manually relocate.
23649global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23650
23651# Transform the output of nm in a C name address pair.
23652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23653
23654# Transform the output of nm in a C name address pair when lib prefix is needed.
23655global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23656
23657# The name lister interface.
23658nm_interface=$lt_lt_cv_nm_interface
23659
23660# Specify filename containing input files for \$NM.
23661nm_file_list_spec=$lt_nm_file_list_spec
23662
23663# The root where to search for dependent libraries,and where our libraries should be installed.
23664lt_sysroot=$lt_sysroot
23665
23666# Command to truncate a binary pipe.
23667lt_truncate_bin=$lt_lt_cv_truncate_bin
23668
23669# The name of the directory that contains temporary libtool files.
23670objdir=$objdir
23671
23672# Used to examine libraries when file_magic_cmd begins with "file".
23673MAGIC_CMD=$MAGIC_CMD
23674
23675# Must we lock files when doing compilation?
23676need_locks=$lt_need_locks
23677
23678# Manifest tool.
23679MANIFEST_TOOL=$lt_MANIFEST_TOOL
23680
23681# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23682DSYMUTIL=$lt_DSYMUTIL
23683
23684# Tool to change global to local symbols on Mac OS X.
23685NMEDIT=$lt_NMEDIT
23686
23687# Tool to manipulate fat objects and archives on Mac OS X.
23688LIPO=$lt_LIPO
23689
23690# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23691OTOOL=$lt_OTOOL
23692
23693# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23694OTOOL64=$lt_OTOOL64
23695
23696# Old archive suffix (normally "a").
23697libext=$libext
23698
23699# Shared library suffix (normally ".so").
23700shrext_cmds=$lt_shrext_cmds
23701
23702# The commands to extract the exported symbol list from a shared archive.
23703extract_expsyms_cmds=$lt_extract_expsyms_cmds
23704
23705# Variables whose values should be saved in libtool wrapper scripts and
23706# restored at link time.
23707variables_saved_for_relink=$lt_variables_saved_for_relink
23708
23709# Do we need the "lib" prefix for modules?
23710need_lib_prefix=$need_lib_prefix
23711
23712# Do we need a version for libraries?
23713need_version=$need_version
23714
23715# Library versioning type.
23716version_type=$version_type
23717
23718# Shared library runtime path variable.
23719runpath_var=$runpath_var
23720
23721# Shared library path variable.
23722shlibpath_var=$shlibpath_var
23723
23724# Is shlibpath searched before the hard-coded library search path?
23725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23726
23727# Format of library name prefix.
23728libname_spec=$lt_libname_spec
23729
23730# List of archive names.  First name is the real one, the rest are links.
23731# The last name is the one that the linker finds with -lNAME
23732library_names_spec=$lt_library_names_spec
23733
23734# The coded name of the library, if different from the real name.
23735soname_spec=$lt_soname_spec
23736
23737# Permission mode override for installation of shared libraries.
23738install_override_mode=$lt_install_override_mode
23739
23740# Command to use after installation of a shared archive.
23741postinstall_cmds=$lt_postinstall_cmds
23742
23743# Command to use after uninstallation of a shared archive.
23744postuninstall_cmds=$lt_postuninstall_cmds
23745
23746# Commands used to finish a libtool library installation in a directory.
23747finish_cmds=$lt_finish_cmds
23748
23749# As "finish_cmds", except a single script fragment to be evaled but
23750# not shown.
23751finish_eval=$lt_finish_eval
23752
23753# Whether we should hardcode library paths into libraries.
23754hardcode_into_libs=$hardcode_into_libs
23755
23756# Compile-time system search path for libraries.
23757sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23758
23759# Detected run-time system search path for libraries.
23760sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23761
23762# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23763configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23764
23765# Whether dlopen is supported.
23766dlopen_support=$enable_dlopen
23767
23768# Whether dlopen of programs is supported.
23769dlopen_self=$enable_dlopen_self
23770
23771# Whether dlopen of statically linked programs is supported.
23772dlopen_self_static=$enable_dlopen_self_static
23773
23774# Commands to strip libraries.
23775old_striplib=$lt_old_striplib
23776striplib=$lt_striplib
23777
23778
23779# The linker used to build libraries.
23780LD=$lt_LD
23781
23782# How to create reloadable object files.
23783reload_flag=$lt_reload_flag
23784reload_cmds=$lt_reload_cmds
23785
23786# Commands used to build an old-style archive.
23787old_archive_cmds=$lt_old_archive_cmds
23788
23789# A language specific compiler.
23790CC=$lt_compiler
23791
23792# Is the compiler the GNU compiler?
23793with_gcc=$GCC
23794
23795# Compiler flag to turn off builtin functions.
23796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23797
23798# Additional compiler flags for building library objects.
23799pic_flag=$lt_lt_prog_compiler_pic
23800
23801# How to pass a linker flag through the compiler.
23802wl=$lt_lt_prog_compiler_wl
23803
23804# Compiler flag to prevent dynamic linking.
23805link_static_flag=$lt_lt_prog_compiler_static
23806
23807# Does compiler simultaneously support -c and -o options?
23808compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23809
23810# Whether or not to add -lc for building shared libraries.
23811build_libtool_need_lc=$archive_cmds_need_lc
23812
23813# Whether or not to disallow shared libs when runtime libs are static.
23814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23815
23816# Compiler flag to allow reflexive dlopens.
23817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23818
23819# Compiler flag to generate shared objects directly from archives.
23820whole_archive_flag_spec=$lt_whole_archive_flag_spec
23821
23822# Whether the compiler copes with passing no objects directly.
23823compiler_needs_object=$lt_compiler_needs_object
23824
23825# Create an old-style archive from a shared archive.
23826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23827
23828# Create a temporary old-style archive to link instead of a shared archive.
23829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23830
23831# Commands used to build a shared archive.
23832archive_cmds=$lt_archive_cmds
23833archive_expsym_cmds=$lt_archive_expsym_cmds
23834
23835# Commands used to build a loadable module if different from building
23836# a shared archive.
23837module_cmds=$lt_module_cmds
23838module_expsym_cmds=$lt_module_expsym_cmds
23839
23840# Whether we are building with GNU ld or not.
23841with_gnu_ld=$lt_with_gnu_ld
23842
23843# Flag that allows shared libraries with undefined symbols to be built.
23844allow_undefined_flag=$lt_allow_undefined_flag
23845
23846# Flag that enforces no undefined symbols.
23847no_undefined_flag=$lt_no_undefined_flag
23848
23849# Flag to hardcode \$libdir into a binary during linking.
23850# This must work even if \$libdir does not exist
23851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23852
23853# Whether we need a single "-rpath" flag with a separated argument.
23854hardcode_libdir_separator=$lt_hardcode_libdir_separator
23855
23856# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23857# DIR into the resulting binary.
23858hardcode_direct=$hardcode_direct
23859
23860# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23861# DIR into the resulting binary and the resulting library dependency is
23862# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23863# library is relocated.
23864hardcode_direct_absolute=$hardcode_direct_absolute
23865
23866# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23867# into the resulting binary.
23868hardcode_minus_L=$hardcode_minus_L
23869
23870# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23871# into the resulting binary.
23872hardcode_shlibpath_var=$hardcode_shlibpath_var
23873
23874# Set to "yes" if building a shared library automatically hardcodes DIR
23875# into the library and all subsequent libraries and executables linked
23876# against it.
23877hardcode_automatic=$hardcode_automatic
23878
23879# Set to yes if linker adds runtime paths of dependent libraries
23880# to runtime path list.
23881inherit_rpath=$inherit_rpath
23882
23883# Whether libtool must link a program against all its dependency libraries.
23884link_all_deplibs=$link_all_deplibs
23885
23886# Set to "yes" if exported symbols are required.
23887always_export_symbols=$always_export_symbols
23888
23889# The commands to list exported symbols.
23890export_symbols_cmds=$lt_export_symbols_cmds
23891
23892# Symbols that should not be listed in the preloaded symbols.
23893exclude_expsyms=$lt_exclude_expsyms
23894
23895# Symbols that must always be exported.
23896include_expsyms=$lt_include_expsyms
23897
23898# Commands necessary for linking programs (against libraries) with templates.
23899prelink_cmds=$lt_prelink_cmds
23900
23901# Commands necessary for finishing linking programs.
23902postlink_cmds=$lt_postlink_cmds
23903
23904# Specify filename containing input files.
23905file_list_spec=$lt_file_list_spec
23906
23907# How to hardcode a shared library path into an executable.
23908hardcode_action=$hardcode_action
23909
23910# ### END LIBTOOL CONFIG
23911
23912_LT_EOF
23913
23914    cat <<'_LT_EOF' >> "$cfgfile"
23915
23916# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23917
23918# func_munge_path_list VARIABLE PATH
23919# -----------------------------------
23920# VARIABLE is name of variable containing _space_ separated list of
23921# directories to be munged by the contents of PATH, which is string
23922# having a format:
23923# "DIR[:DIR]:"
23924#       string "DIR[ DIR]" will be prepended to VARIABLE
23925# ":DIR[:DIR]"
23926#       string "DIR[ DIR]" will be appended to VARIABLE
23927# "DIRP[:DIRP]::[DIRA:]DIRA"
23928#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23929#       "DIRA[ DIRA]" will be appended to VARIABLE
23930# "DIR[:DIR]"
23931#       VARIABLE will be replaced by "DIR[ DIR]"
23932func_munge_path_list ()
23933{
23934    case x$2 in
23935    x)
23936        ;;
23937    *:)
23938        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23939        ;;
23940    x:*)
23941        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23942        ;;
23943    *::*)
23944        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23945        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23946        ;;
23947    *)
23948        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23949        ;;
23950    esac
23951}
23952
23953
23954# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23955func_cc_basename ()
23956{
23957    for cc_temp in $*""; do
23958      case $cc_temp in
23959        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23960        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23961        \-*) ;;
23962        *) break;;
23963      esac
23964    done
23965    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23966}
23967
23968
23969# ### END FUNCTIONS SHARED WITH CONFIGURE
23970
23971_LT_EOF
23972
23973  case $host_os in
23974  aix3*)
23975    cat <<\_LT_EOF >> "$cfgfile"
23976# AIX sometimes has problems with the GCC collect2 program.  For some
23977# reason, if we set the COLLECT_NAMES environment variable, the problems
23978# vanish in a puff of smoke.
23979if test set != "${COLLECT_NAMES+set}"; then
23980  COLLECT_NAMES=
23981  export COLLECT_NAMES
23982fi
23983_LT_EOF
23984    ;;
23985  esac
23986
23987
23988ltmain=$ac_aux_dir/ltmain.sh
23989
23990
23991  # We use sed instead of cat because bash on DJGPP gets confused if
23992  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23993  # text mode, it properly converts lines to CR/LF.  This bash problem
23994  # is reportedly fixed, but why not run on old versions too?
23995  sed '$q' "$ltmain" >> "$cfgfile" \
23996     || (rm -f "$cfgfile"; exit 1)
23997
23998   mv -f "$cfgfile" "$ofile" ||
23999    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24000  chmod +x "$ofile"
24001
24002 ;;
24003    "disable-rpath":C)
24004	sed < libtool > libtool-2 \
24005	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24006	mv libtool-2 libtool
24007	chmod 755 libtool
24008	libtool="./libtool"
24009	 ;;
24010
24011  esac
24012done # for ac_tag
24013
24014
24015as_fn_exit 0
24016_ACEOF
24017ac_clean_files=$ac_clean_files_save
24018
24019test $ac_write_fail = 0 ||
24020  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24021
24022
24023# configure is writing to config.log, and then calls config.status.
24024# config.status does its own redirection, appending to config.log.
24025# Unfortunately, on DOS this fails, as config.log is still kept open
24026# by configure, so config.status won't be able to write to it; its
24027# output is simply discarded.  So we exec the FD to /dev/null,
24028# effectively closing config.log, so it can be properly (re)opened and
24029# appended to by config.status.  When coming back to configure, we
24030# need to make the FD available again.
24031if test "$no_create" != yes; then
24032  ac_cs_success=:
24033  ac_config_status_args=
24034  test "$silent" = yes &&
24035    ac_config_status_args="$ac_config_status_args --quiet"
24036  exec 5>/dev/null
24037  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24038  exec 5>>config.log
24039  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24040  # would make configure fail if this is the last instruction.
24041  $ac_cs_success || as_fn_exit 1
24042fi
24043if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24044  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24045$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24046fi
24047
24048