xref: /freebsd/contrib/unbound/configure (revision ca987d4641cdcd7f27e153db17c5bf064934faf5)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.5.10.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: unbound-bugs@nlnetlabs.nl about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='unbound'
592PACKAGE_TARNAME='unbound'
593PACKAGE_VERSION='1.5.10'
594PACKAGE_STRING='unbound 1.5.10'
595PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='LTLIBOBJS
635date
636version
637INSTALLTARGET
638ALLTARGET
639SOURCEFILE
640SOURCEDETERMINE
641DNSTAP_OBJ
642DNSTAP_SRC
643opt_dnstap_socket_path
644ENABLE_DNSTAP
645PROTOC_C
646UBSYMS
647EXTRALINK
648COMMON_OBJ_ALL_SYMBOLS
649LIBOBJ_WITHOUT_CTIME
650LIBOBJ_WITHOUT_CTIMEARC4
651WIN_CHECKCONF_OBJ_LINK
652WIN_CONTROL_OBJ_LINK
653WIN_UBANCHOR_OBJ_LINK
654WIN_HOST_OBJ_LINK
655WIN_DAEMON_OBJ_LINK
656WIN_DAEMON_OBJ
657WIN_DAEMON_SRC
658WINAPPS
659WINDRES
660CHECKLOCK_OBJ
661staticexe
662UNBOUND_EVENT_UNINSTALL
663UNBOUND_EVENT_INSTALL
664SSLLIB
665HAVE_SSL
666CONFIG_DATE
667NETBSD_LINTFLAGS
668PYUNBOUND_UNINSTALL
669PYUNBOUND_INSTALL
670PYUNBOUND_TARGET
671PYUNBOUND_OBJ
672WITH_PYUNBOUND
673PYTHONMOD_UNINSTALL
674PYTHONMOD_INSTALL
675PYTHONMOD_HEADER
676PYTHONMOD_OBJ
677WITH_PYTHONMODULE
678swig
679SWIG_LIB
680SWIG
681PY_MAJOR_VERSION
682PYTHON_SITE_PKG
683PYTHON_LDFLAGS
684PYTHON_CPPFLAGS
685PYTHON
686PYTHON_VERSION
687PTHREAD_CFLAGS_ONLY
688PTHREAD_CFLAGS
689PTHREAD_LIBS
690PTHREAD_CC
691ax_pthread_config
692RUNTIME_PATH
693LIBOBJS
694LT_SYS_LIBRARY_PATH
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701AWK
702RANLIB
703ac_ct_AR
704DLLTOOL
705OBJDUMP
706LN_S
707NM
708ac_ct_DUMPBIN
709DUMPBIN
710LD
711FGREP
712SED
713LIBTOOL
714AR
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723libtool
724STRIP
725doxygen
726YFLAGS
727YACC
728LEXLIB
729LEX_OUTPUT_ROOT
730LEX
731debug_enabled
732DEPFLAG
733UNBOUND_USERNAME
734UNBOUND_ROOTCERT_FILE
735UNBOUND_ROOTKEY_FILE
736UNBOUND_PIDFILE
737UNBOUND_SHARE_DIR
738UNBOUND_CHROOT_DIR
739UNBOUND_RUN_DIR
740ub_conf_dir
741ub_conf_file
742EGREP
743GREP
744CPP
745OBJEXT
746EXEEXT
747ac_ct_CC
748CPPFLAGS
749LDFLAGS
750CFLAGS
751CC
752LIBUNBOUND_AGE
753LIBUNBOUND_REVISION
754LIBUNBOUND_CURRENT
755UNBOUND_VERSION_MICRO
756UNBOUND_VERSION_MINOR
757UNBOUND_VERSION_MAJOR
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799with_conf_file
800with_run_dir
801with_chroot_dir
802with_share_dir
803with_pidfile
804with_rootkey_file
805with_rootcert_file
806with_username
807enable_checking
808enable_debug
809enable_flto
810enable_pie
811enable_relro_now
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_aix_soname
817with_gnu_ld
818with_sysroot
819enable_libtool_lock
820enable_rpath
821enable_largefile
822enable_alloc_checks
823enable_alloc_lite
824enable_alloc_nonregional
825with_pthreads
826with_solaris_threads
827with_pyunbound
828with_pythonmodule
829with_nss
830with_nettle
831with_ssl
832enable_sha2
833enable_gost
834enable_ecdsa
835enable_dsa
836enable_event_api
837enable_tfo_client
838enable_tfo_server
839with_libevent
840with_libexpat
841enable_static_exe
842enable_lock_checks
843enable_allsymbols
844enable_dnstap
845with_dnstap_socket_path
846with_protobuf_c
847with_libfstrm
848enable_cachedb
849with_libunbound_only
850'
851      ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
860YACC
861YFLAGS
862LT_SYS_LIBRARY_PATH
863PYTHON_VERSION'
864
865
866# Initialize some variables set by options.
867ac_init_help=
868ac_init_version=false
869ac_unrecognized_opts=
870ac_unrecognized_sep=
871# The variables have the same names as the options, with
872# dashes changed to underlines.
873cache_file=/dev/null
874exec_prefix=NONE
875no_create=
876no_recursion=
877prefix=NONE
878program_prefix=NONE
879program_suffix=NONE
880program_transform_name=s,x,x,
881silent=
882site=
883srcdir=
884verbose=
885x_includes=NONE
886x_libraries=NONE
887
888# Installation directory options.
889# These are left unexpanded so users can "make install exec_prefix=/foo"
890# and all the variables that are supposed to be based on exec_prefix
891# by default will actually change.
892# Use braces instead of parens because sh, perl, etc. also accept them.
893# (The list follows the same order as the GNU Coding Standards.)
894bindir='${exec_prefix}/bin'
895sbindir='${exec_prefix}/sbin'
896libexecdir='${exec_prefix}/libexec'
897datarootdir='${prefix}/share'
898datadir='${datarootdir}'
899sysconfdir='${prefix}/etc'
900sharedstatedir='${prefix}/com'
901localstatedir='${prefix}/var'
902includedir='${prefix}/include'
903oldincludedir='/usr/include'
904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
913
914ac_prev=
915ac_dashdash=
916for ac_option
917do
918  # If the previous option needs an argument, assign it.
919  if test -n "$ac_prev"; then
920    eval $ac_prev=\$ac_option
921    ac_prev=
922    continue
923  fi
924
925  case $ac_option in
926  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927  *=)   ac_optarg= ;;
928  *)    ac_optarg=yes ;;
929  esac
930
931  # Accept the important Cygnus configure options, so we can diagnose typos.
932
933  case $ac_dashdash$ac_option in
934  --)
935    ac_dashdash=yes ;;
936
937  -bindir | --bindir | --bindi | --bind | --bin | --bi)
938    ac_prev=bindir ;;
939  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940    bindir=$ac_optarg ;;
941
942  -build | --build | --buil | --bui | --bu)
943    ac_prev=build_alias ;;
944  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945    build_alias=$ac_optarg ;;
946
947  -cache-file | --cache-file | --cache-fil | --cache-fi \
948  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949    ac_prev=cache_file ;;
950  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952    cache_file=$ac_optarg ;;
953
954  --config-cache | -C)
955    cache_file=config.cache ;;
956
957  -datadir | --datadir | --datadi | --datad)
958    ac_prev=datadir ;;
959  -datadir=* | --datadir=* | --datadi=* | --datad=*)
960    datadir=$ac_optarg ;;
961
962  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963  | --dataroo | --dataro | --datar)
964    ac_prev=datarootdir ;;
965  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967    datarootdir=$ac_optarg ;;
968
969  -disable-* | --disable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=no ;;
984
985  -docdir | --docdir | --docdi | --doc | --do)
986    ac_prev=docdir ;;
987  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988    docdir=$ac_optarg ;;
989
990  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991    ac_prev=dvidir ;;
992  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993    dvidir=$ac_optarg ;;
994
995  -enable-* | --enable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid feature name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013  | --exec | --exe | --ex)
1014    ac_prev=exec_prefix ;;
1015  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017  | --exec=* | --exe=* | --ex=*)
1018    exec_prefix=$ac_optarg ;;
1019
1020  -gas | --gas | --ga | --g)
1021    # Obsolete; use --with-gas.
1022    with_gas=yes ;;
1023
1024  -help | --help | --hel | --he | -h)
1025    ac_init_help=long ;;
1026  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027    ac_init_help=recursive ;;
1028  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029    ac_init_help=short ;;
1030
1031  -host | --host | --hos | --ho)
1032    ac_prev=host_alias ;;
1033  -host=* | --host=* | --hos=* | --ho=*)
1034    host_alias=$ac_optarg ;;
1035
1036  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037    ac_prev=htmldir ;;
1038  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039  | --ht=*)
1040    htmldir=$ac_optarg ;;
1041
1042  -includedir | --includedir | --includedi | --included | --include \
1043  | --includ | --inclu | --incl | --inc)
1044    ac_prev=includedir ;;
1045  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046  | --includ=* | --inclu=* | --incl=* | --inc=*)
1047    includedir=$ac_optarg ;;
1048
1049  -infodir | --infodir | --infodi | --infod | --info | --inf)
1050    ac_prev=infodir ;;
1051  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052    infodir=$ac_optarg ;;
1053
1054  -libdir | --libdir | --libdi | --libd)
1055    ac_prev=libdir ;;
1056  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057    libdir=$ac_optarg ;;
1058
1059  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060  | --libexe | --libex | --libe)
1061    ac_prev=libexecdir ;;
1062  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063  | --libexe=* | --libex=* | --libe=*)
1064    libexecdir=$ac_optarg ;;
1065
1066  -localedir | --localedir | --localedi | --localed | --locale)
1067    ac_prev=localedir ;;
1068  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069    localedir=$ac_optarg ;;
1070
1071  -localstatedir | --localstatedir | --localstatedi | --localstated \
1072  | --localstate | --localstat | --localsta | --localst | --locals)
1073    ac_prev=localstatedir ;;
1074  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076    localstatedir=$ac_optarg ;;
1077
1078  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079    ac_prev=mandir ;;
1080  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081    mandir=$ac_optarg ;;
1082
1083  -nfp | --nfp | --nf)
1084    # Obsolete; use --without-fp.
1085    with_fp=no ;;
1086
1087  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088  | --no-cr | --no-c | -n)
1089    no_create=yes ;;
1090
1091  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093    no_recursion=yes ;;
1094
1095  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097  | --oldin | --oldi | --old | --ol | --o)
1098    ac_prev=oldincludedir ;;
1099  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102    oldincludedir=$ac_optarg ;;
1103
1104  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105    ac_prev=prefix ;;
1106  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107    prefix=$ac_optarg ;;
1108
1109  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110  | --program-pre | --program-pr | --program-p)
1111    ac_prev=program_prefix ;;
1112  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114    program_prefix=$ac_optarg ;;
1115
1116  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117  | --program-suf | --program-su | --program-s)
1118    ac_prev=program_suffix ;;
1119  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121    program_suffix=$ac_optarg ;;
1122
1123  -program-transform-name | --program-transform-name \
1124  | --program-transform-nam | --program-transform-na \
1125  | --program-transform-n | --program-transform- \
1126  | --program-transform | --program-transfor \
1127  | --program-transfo | --program-transf \
1128  | --program-trans | --program-tran \
1129  | --progr-tra | --program-tr | --program-t)
1130    ac_prev=program_transform_name ;;
1131  -program-transform-name=* | --program-transform-name=* \
1132  | --program-transform-nam=* | --program-transform-na=* \
1133  | --program-transform-n=* | --program-transform-=* \
1134  | --program-transform=* | --program-transfor=* \
1135  | --program-transfo=* | --program-transf=* \
1136  | --program-trans=* | --program-tran=* \
1137  | --progr-tra=* | --program-tr=* | --program-t=*)
1138    program_transform_name=$ac_optarg ;;
1139
1140  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141    ac_prev=pdfdir ;;
1142  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143    pdfdir=$ac_optarg ;;
1144
1145  -psdir | --psdir | --psdi | --psd | --ps)
1146    ac_prev=psdir ;;
1147  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148    psdir=$ac_optarg ;;
1149
1150  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151  | -silent | --silent | --silen | --sile | --sil)
1152    silent=yes ;;
1153
1154  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155    ac_prev=sbindir ;;
1156  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157  | --sbi=* | --sb=*)
1158    sbindir=$ac_optarg ;;
1159
1160  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162  | --sharedst | --shareds | --shared | --share | --shar \
1163  | --sha | --sh)
1164    ac_prev=sharedstatedir ;;
1165  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168  | --sha=* | --sh=*)
1169    sharedstatedir=$ac_optarg ;;
1170
1171  -site | --site | --sit)
1172    ac_prev=site ;;
1173  -site=* | --site=* | --sit=*)
1174    site=$ac_optarg ;;
1175
1176  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177    ac_prev=srcdir ;;
1178  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179    srcdir=$ac_optarg ;;
1180
1181  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182  | --syscon | --sysco | --sysc | --sys | --sy)
1183    ac_prev=sysconfdir ;;
1184  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186    sysconfdir=$ac_optarg ;;
1187
1188  -target | --target | --targe | --targ | --tar | --ta | --t)
1189    ac_prev=target_alias ;;
1190  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191    target_alias=$ac_optarg ;;
1192
1193  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194    verbose=yes ;;
1195
1196  -version | --version | --versio | --versi | --vers | -V)
1197    ac_init_version=: ;;
1198
1199  -with-* | --with-*)
1200    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201    # Reject names that are not valid shell variable names.
1202    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203      as_fn_error $? "invalid package name: $ac_useropt"
1204    ac_useropt_orig=$ac_useropt
1205    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206    case $ac_user_opts in
1207      *"
1208"with_$ac_useropt"
1209"*) ;;
1210      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211	 ac_unrecognized_sep=', ';;
1212    esac
1213    eval with_$ac_useropt=\$ac_optarg ;;
1214
1215  -without-* | --without-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: $ac_useropt"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    case $ac_envvar in #(
1257      '' | [0-9]* | *[!_$as_cr_alnum]* )
1258      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259    esac
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  as_fn_error $? "missing argument to $ac_option"
1277fi
1278
1279if test -n "$ac_unrecognized_opts"; then
1280  case $enable_option_checking in
1281    no) ;;
1282    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284  esac
1285fi
1286
1287# Check all directory arguments for consistency.
1288for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289		datadir sysconfdir sharedstatedir localstatedir includedir \
1290		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291		libdir localedir mandir
1292do
1293  eval ac_val=\$$ac_var
1294  # Remove trailing slashes.
1295  case $ac_val in
1296    */ )
1297      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298      eval $ac_var=\$ac_val;;
1299  esac
1300  # Be sure to have absolute directory names.
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306done
1307
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317  if test "x$build_alias" = x; then
1318    cross_compiling=maybe
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340  ac_srcdir_defaulted=yes
1341  # Try the directory containing this script, then the parent directory.
1342  ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344	 X"$as_myself" : 'X\(//\)[^/]' \| \
1345	 X"$as_myself" : 'X\(//\)$' \| \
1346	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)[^/].*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\).*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  s/.*/./; q'`
1365  srcdir=$ac_confdir
1366  if test ! -r "$srcdir/$ac_unique_file"; then
1367    srcdir=..
1368  fi
1369else
1370  ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379	pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382  srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_env_${ac_var}_value=\$${ac_var}
1393  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401  # Omit some internal or obsolete options to make the list less imposing.
1402  # This message is too long to be a string in the A/UX 3.1 sh.
1403  cat <<_ACEOF
1404\`configure' configures unbound 1.5.10 to adapt to many kinds of systems.
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414  -h, --help              display this help and exit
1415      --help=short        display options specific to this package
1416      --help=recursive    display the short help of all the included packages
1417  -V, --version           display version information and exit
1418  -q, --quiet, --silent   do not print \`checking ...' messages
1419      --cache-file=FILE   cache test results in FILE [disabled]
1420  -C, --config-cache      alias for \`--cache-file=config.cache'
1421  -n, --no-create         do not create output files
1422      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425  --prefix=PREFIX         install architecture-independent files in PREFIX
1426                          [$ac_default_prefix]
1427  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                          [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438  --bindir=DIR            user executables [EPREFIX/bin]
1439  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440  --libexecdir=DIR        program executables [EPREFIX/libexec]
1441  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444  --libdir=DIR            object code libraries [EPREFIX/lib]
1445  --includedir=DIR        C header files [PREFIX/include]
1446  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449  --infodir=DIR           info documentation [DATAROOTDIR/info]
1450  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451  --mandir=DIR            man documentation [DATAROOTDIR/man]
1452  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1453  --htmldir=DIR           html documentation [DOCDIR]
1454  --dvidir=DIR            dvi documentation [DOCDIR]
1455  --pdfdir=DIR            pdf documentation [DOCDIR]
1456  --psdir=DIR             ps documentation [DOCDIR]
1457_ACEOF
1458
1459  cat <<\_ACEOF
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468  case $ac_init_help in
1469     short | recursive ) echo "Configuration of unbound 1.5.10:";;
1470   esac
1471  cat <<\_ACEOF
1472
1473Optional Features:
1474  --disable-option-checking  ignore unrecognized --enable/--with options
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --enable-checking       Enable warnings, asserts, makefile-dependencies
1478  --enable-debug          same as enable-checking
1479  --disable-flto          Disable link-time optimization (gcc specific option)
1480  --enable-pie            Enable Position-Independent Executable (eg. to fully
1481                          benefit from ASLR, small performance penalty)
1482  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1483                          NOW, to protect GOT and .dtor areas)
1484  --enable-shared[=PKGS]  build shared libraries [default=yes]
1485  --enable-static[=PKGS]  build static libraries [default=yes]
1486  --enable-fast-install[=PKGS]
1487                          optimize for fast installation [default=yes]
1488  --disable-libtool-lock  avoid locking (might break parallel builds)
1489  --disable-rpath         disable hardcoded rpath (default=enabled)
1490  --disable-largefile     omit support for large files
1491  --enable-alloc-checks   enable to memory allocation statistics, for debug
1492                          purposes
1493  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1494                          purposes
1495  --enable-alloc-nonregional
1496                          enable nonregional allocs, slow but exposes regional
1497                          allocations to other memory purifiers, for debug
1498                          purposes
1499  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1500  --disable-gost          Disable GOST support
1501  --disable-ecdsa         Disable ECDSA support
1502  --disable-dsa           Disable DSA support
1503  --enable-event-api      Enable (experimental) pluggable event base
1504                          libunbound API installed to unbound-event.h
1505  --enable-tfo-client     Enable TCP Fast Open for client mode
1506  --enable-tfo-server     Enable TCP Fast Open for server mode
1507  --enable-static-exe     enable to compile executables statically against
1508                          (event) libs, for debug purposes
1509  --enable-lock-checks    enable to check lock and unlock calls, for debug
1510                          purposes
1511  --enable-allsymbols     export all symbols from libunbound and link binaries
1512                          to it, smaller install size but libunbound export
1513                          table is polluted by internal symbols
1514  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1515  --enable-cachedb        enable cachedb module that can use external cache
1516                          storage
1517
1518Optional Packages:
1519  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521  --with-conf-file=path   Pathname to the Unbound configuration file
1522  --with-run-dir=path     set default directory to chdir to (by default dir
1523                          part of cfg file)
1524  --with-chroot-dir=path  set default directory to chroot to (by default same
1525                          as run-dir)
1526  --with-share-dir=path   set default directory with shared data (by default
1527                          same as share/unbound)
1528  --with-pidfile=filename set default pathname to unbound pidfile (default
1529                          run-dir/unbound.pid)
1530  --with-rootkey-file=filename
1531                          set default pathname to root key file (default
1532                          run-dir/root.key). This file is read and written.
1533  --with-rootcert-file=filename
1534                          set default pathname to root update certificate file
1535                          (default run-dir/icannbundle.pem). This file need
1536                          not exist if you are content with the builtin.
1537  --with-username=user    set default user that unbound changes to (default
1538                          user is unbound)
1539  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1540                          both]
1541  --with-aix-soname=aix|svr4|both
1542                          shared library versioning (aka "SONAME") variant to
1543                          provide on AIX, [default=aix].
1544  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1546                          compiler's sysroot if not specified).
1547  --with-pthreads         use pthreads library, or --without-pthreads to
1548                          disable threading support.
1549  --with-solaris-threads  use solaris native thread library.
1550  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1551                          (default=no)
1552  --with-pythonmodule     build Python module, or --without-pythonmodule to
1553                          disable script engine. (default=no)
1554  --with-nss=path         use libnss instead of openssl, installed at path.
1555  --with-nettle=path      use libnettle as crypto library, installed at path.
1556  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1557                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1558                          /usr)
1559  --with-libevent=pathname
1560                          use libevent (will check /usr/local /opt/local
1561                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1562                          an explicit path). Slower, but allows use of large
1563                          outgoing port ranges.
1564  --with-libexpat=path    specify explicit path for libexpat.
1565  --with-dnstap-socket-path=pathname
1566                          set default dnstap socket path
1567  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1568  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1569  --with-libunbound-only  do not build daemon and tool programs
1570
1571Some influential environment variables:
1572  CC          C compiler command
1573  CFLAGS      C compiler flags
1574  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575              nonstandard directory <lib dir>
1576  LIBS        libraries to pass to the linker, e.g. -l<library>
1577  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578              you have headers in a nonstandard directory <include dir>
1579  CPP         C preprocessor
1580  YACC        The `Yet Another Compiler Compiler' implementation to use.
1581              Defaults to the first program found out of: `bison -y', `byacc',
1582              `yacc'.
1583  YFLAGS      The list of arguments that will be passed by default to $YACC.
1584              This script will default YFLAGS to the empty string to avoid a
1585              default value of `-d' given by some make applications.
1586  LT_SYS_LIBRARY_PATH
1587              User-defined run-time library search path.
1588  PYTHON_VERSION
1589              The installed Python version to use, for example '2.3'. This
1590              string will be appended to the Python interpreter canonical
1591              name.
1592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
1596Report bugs to <unbound-bugs@nlnetlabs.nl>.
1597_ACEOF
1598ac_status=$?
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602  # If there are subdirs, report their specific --help.
1603  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604    test -d "$ac_dir" ||
1605      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606      continue
1607    ac_builddir=.
1608
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613  # A ".." for each directory in $ac_dir_suffix.
1614  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615  case $ac_top_builddir_sub in
1616  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618  esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
1624
1625case $srcdir in
1626  .)  # We are building in place.
1627    ac_srcdir=.
1628    ac_top_srcdir=$ac_top_builddir_sub
1629    ac_abs_top_srcdir=$ac_pwd ;;
1630  [\\/]* | ?:[\\/]* )  # Absolute name.
1631    ac_srcdir=$srcdir$ac_dir_suffix;
1632    ac_top_srcdir=$srcdir
1633    ac_abs_top_srcdir=$srcdir ;;
1634  *) # Relative name.
1635    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636    ac_top_srcdir=$ac_top_build_prefix$srcdir
1637    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638esac
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641    cd "$ac_dir" || { ac_status=$?; continue; }
1642    # Check for guested configure.
1643    if test -f "$ac_srcdir/configure.gnu"; then
1644      echo &&
1645      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646    elif test -f "$ac_srcdir/configure"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure" --help=recursive
1649    else
1650      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651    fi || ac_status=$?
1652    cd "$ac_pwd" || { ac_status=$?; break; }
1653  done
1654fi
1655
1656test -n "$ac_init_help" && exit $ac_status
1657if $ac_init_version; then
1658  cat <<\_ACEOF
1659unbound configure 1.5.10
1660generated by GNU Autoconf 2.69
1661
1662Copyright (C) 2012 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
1666  exit
1667fi
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  rm -f conftest.$ac_objext
1680  if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_compile") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && {
1696	 test -z "$ac_c_werror_flag" ||
1697	 test ! -s conftest.err
1698       } && test -s conftest.$ac_objext; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1
1705fi
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_compile
1710
1711# ac_fn_c_try_cpp LINENO
1712# ----------------------
1713# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_cpp ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_cpp conftest.$ac_ext"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725  ac_status=$?
1726  if test -s conftest.err; then
1727    grep -v '^ *+' conftest.err >conftest.er1
1728    cat conftest.er1 >&5
1729    mv -f conftest.er1 conftest.err
1730  fi
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } > conftest.i && {
1733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734	 test ! -s conftest.err
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741    ac_retval=1
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744  as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_cpp
1747
1748# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749# -------------------------------------------------------
1750# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751# the include files in INCLUDES and setting the cache variable VAR
1752# accordingly.
1753ac_fn_c_check_header_mongrel ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  if eval \${$3+:} false; then :
1757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
1759if eval \${$3+:} false; then :
1760  $as_echo_n "(cached) " >&6
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765else
1766  # Is the header compilable?
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768$as_echo_n "checking $2 usability... " >&6; }
1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775  ac_header_compiler=yes
1776else
1777  ac_header_compiler=no
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781$as_echo "$ac_header_compiler" >&6; }
1782
1783# Is the header present?
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785$as_echo_n "checking $2 presence... " >&6; }
1786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_cpp "$LINENO"; then :
1791  ac_header_preproc=yes
1792else
1793  ac_header_preproc=no
1794fi
1795rm -f conftest.err conftest.i conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797$as_echo "$ac_header_preproc" >&6; }
1798
1799# So?  What about this header?
1800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1801  yes:no: )
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806    ;;
1807  no:yes:* )
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1811$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1815$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818( $as_echo "## ---------------------------------------- ##
1819## Report this to unbound-bugs@nlnetlabs.nl ##
1820## ---------------------------------------- ##"
1821     ) | sed "s/^/$as_me: WARNING:     /" >&2
1822    ;;
1823esac
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  eval "$3=\$ac_header_compiler"
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834fi
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_c_check_header_mongrel
1838
1839# ac_fn_c_try_run LINENO
1840# ----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842# that executables *can* be run.
1843ac_fn_c_try_run ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  if { { ac_try="$ac_link"
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_link") 2>&5
1854  ac_status=$?
1855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857  { { case "(($ac_try" in
1858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859  *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863  (eval "$ac_try") 2>&5
1864  ac_status=$?
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; }; }; then :
1867  ac_retval=0
1868else
1869  $as_echo "$as_me: program exited with status $ac_status" >&5
1870       $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873       ac_retval=$ac_status
1874fi
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_run
1880
1881# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882# -------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_c_check_header_compile ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899  eval "$3=yes"
1900else
1901  eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_header_compile
1911
1912# ac_fn_c_try_link LINENO
1913# -----------------------
1914# Try to link conftest.$ac_ext, and return whether this succeeded.
1915ac_fn_c_try_link ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  rm -f conftest.$ac_objext conftest$ac_exeext
1919  if { { ac_try="$ac_link"
1920case "(($ac_try" in
1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922  *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926  (eval "$ac_link") 2>conftest.err
1927  ac_status=$?
1928  if test -s conftest.err; then
1929    grep -v '^ *+' conftest.err >conftest.er1
1930    cat conftest.er1 >&5
1931    mv -f conftest.er1 conftest.err
1932  fi
1933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934  test $ac_status = 0; } && {
1935	 test -z "$ac_c_werror_flag" ||
1936	 test ! -s conftest.err
1937       } && test -s conftest$ac_exeext && {
1938	 test "$cross_compiling" = yes ||
1939	 test -x conftest$ac_exeext
1940       }; then :
1941  ac_retval=0
1942else
1943  $as_echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946	ac_retval=1
1947fi
1948  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950  # interfere with the next link command; also delete a directory that is
1951  # left behind by Apple's compiler.  We do this before executing the actions.
1952  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954  as_fn_set_status $ac_retval
1955
1956} # ac_fn_c_try_link
1957
1958# ac_fn_c_check_func LINENO FUNC VAR
1959# ----------------------------------
1960# Tests whether FUNC exists, setting the cache variable VAR accordingly
1961ac_fn_c_check_func ()
1962{
1963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if eval \${$3+:} false; then :
1967  $as_echo_n "(cached) " >&6
1968else
1969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1973#define $2 innocuous_$2
1974
1975/* System header to define __stub macros and hopefully few prototypes,
1976    which can conflict with char $2 (); below.
1977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978    <limits.h> exists even on freestanding compilers.  */
1979
1980#ifdef __STDC__
1981# include <limits.h>
1982#else
1983# include <assert.h>
1984#endif
1985
1986#undef $2
1987
1988/* Override any GCC internal prototype to avoid an error.
1989   Use char because int might match the return type of a GCC
1990   builtin and then its argument prototype would still apply.  */
1991#ifdef __cplusplus
1992extern "C"
1993#endif
1994char $2 ();
1995/* The GNU C library defines this for functions which it implements
1996    to always fail with ENOSYS.  Some functions are actually named
1997    something starting with __ and the normal name is an alias.  */
1998#if defined __stub_$2 || defined __stub___$2
1999choke me
2000#endif
2001
2002int
2003main ()
2004{
2005return $2 ();
2006  ;
2007  return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_link "$LINENO"; then :
2011  eval "$3=yes"
2012else
2013  eval "$3=no"
2014fi
2015rm -f core conftest.err conftest.$ac_objext \
2016    conftest$ac_exeext conftest.$ac_ext
2017fi
2018eval ac_res=\$$3
2019	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023} # ac_fn_c_check_func
2024
2025# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026# -------------------------------------------
2027# Tests whether TYPE exists after having included INCLUDES, setting cache
2028# variable VAR accordingly.
2029ac_fn_c_check_type ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033$as_echo_n "checking for $2... " >&6; }
2034if eval \${$3+:} false; then :
2035  $as_echo_n "(cached) " >&6
2036else
2037  eval "$3=no"
2038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044if (sizeof ($2))
2045	 return 0;
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053$4
2054int
2055main ()
2056{
2057if (sizeof (($2)))
2058	    return 0;
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064
2065else
2066  eval "$3=yes"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077} # ac_fn_c_check_type
2078
2079# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080# --------------------------------------------
2081# Tries to find the compile-time value of EXPR in a program that includes
2082# INCLUDES, setting VAR accordingly. Returns whether the value could be
2083# computed
2084ac_fn_c_compute_int ()
2085{
2086  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087  if test "$cross_compiling" = yes; then
2088    # Depending upon the size, compute the lo and hi bounds.
2089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) >= 0)];
2096test_array [0] = 0;
2097return test_array [0];
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  ac_lo=0 ac_mid=0
2105  while :; do
2106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113test_array [0] = 0;
2114return test_array [0];
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_hi=$ac_mid; break
2122else
2123  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124			if test $ac_lo -le $ac_mid; then
2125			  ac_lo= ac_hi=
2126			  break
2127			fi
2128			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131  done
2132else
2133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135$4
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(($2) < 0)];
2140test_array [0] = 0;
2141return test_array [0];
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148  ac_hi=-1 ac_mid=-1
2149  while :; do
2150    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157test_array [0] = 0;
2158return test_array [0];
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165  ac_lo=$ac_mid; break
2166else
2167  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168			if test $ac_mid -le $ac_hi; then
2169			  ac_lo= ac_hi=
2170			  break
2171			fi
2172			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175  done
2176else
2177  ac_lo= ac_hi=
2178fi
2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182# Binary search between lo and hi bounds.
2183while test "x$ac_lo" != "x$ac_hi"; do
2184  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192test_array [0] = 0;
2193return test_array [0];
2194
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200  ac_hi=$ac_mid
2201else
2202  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205done
2206case $ac_lo in #((
2207?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208'') ac_retval=1 ;;
2209esac
2210  else
2211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h.  */
2213$4
2214static long int longval () { return $2; }
2215static unsigned long int ulongval () { return $2; }
2216#include <stdio.h>
2217#include <stdlib.h>
2218int
2219main ()
2220{
2221
2222  FILE *f = fopen ("conftest.val", "w");
2223  if (! f)
2224    return 1;
2225  if (($2) < 0)
2226    {
2227      long int i = longval ();
2228      if (i != ($2))
2229	return 1;
2230      fprintf (f, "%ld", i);
2231    }
2232  else
2233    {
2234      unsigned long int i = ulongval ();
2235      if (i != ($2))
2236	return 1;
2237      fprintf (f, "%lu", i);
2238    }
2239  /* Do not output a trailing newline, as this causes \r\n confusion
2240     on some platforms.  */
2241  return ferror (f) || fclose (f) != 0;
2242
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_run "$LINENO"; then :
2248  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249else
2250  ac_retval=1
2251fi
2252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253  conftest.$ac_objext conftest.beam conftest.$ac_ext
2254rm -f conftest.val
2255
2256  fi
2257  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258  as_fn_set_status $ac_retval
2259
2260} # ac_fn_c_compute_int
2261
2262# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2263# ---------------------------------------------
2264# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2265# accordingly.
2266ac_fn_c_check_decl ()
2267{
2268  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269  as_decl_name=`echo $2|sed 's/ *(.*//'`
2270  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2273if eval \${$3+:} false; then :
2274  $as_echo_n "(cached) " >&6
2275else
2276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h.  */
2278$4
2279int
2280main ()
2281{
2282#ifndef $as_decl_name
2283#ifdef __cplusplus
2284  (void) $as_decl_use;
2285#else
2286  (void) $as_decl_name;
2287#endif
2288#endif
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295  eval "$3=yes"
2296else
2297  eval "$3=no"
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301eval ac_res=\$$3
2302	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
2304  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306} # ac_fn_c_check_decl
2307
2308# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2309# ----------------------------------------------------
2310# Tries to find if the field MEMBER exists in type AGGR, after including
2311# INCLUDES, setting cache variable VAR accordingly.
2312ac_fn_c_check_member ()
2313{
2314  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2316$as_echo_n "checking for $2.$3... " >&6; }
2317if eval \${$4+:} false; then :
2318  $as_echo_n "(cached) " >&6
2319else
2320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h.  */
2322$5
2323int
2324main ()
2325{
2326static $2 ac_aggr;
2327if (ac_aggr.$3)
2328return 0;
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334  eval "$4=yes"
2335else
2336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h.  */
2338$5
2339int
2340main ()
2341{
2342static $2 ac_aggr;
2343if (sizeof ac_aggr.$3)
2344return 0;
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350  eval "$4=yes"
2351else
2352  eval "$4=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358eval ac_res=\$$4
2359	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362
2363} # ac_fn_c_check_member
2364cat >config.log <<_ACEOF
2365This file contains any messages produced by compilers while
2366running configure, to aid debugging if configure makes a mistake.
2367
2368It was created by unbound $as_me 1.5.10, which was
2369generated by GNU Autoconf 2.69.  Invocation command line was
2370
2371  $ $0 $@
2372
2373_ACEOF
2374exec 5>>config.log
2375{
2376cat <<_ASUNAME
2377## --------- ##
2378## Platform. ##
2379## --------- ##
2380
2381hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2382uname -m = `(uname -m) 2>/dev/null || echo unknown`
2383uname -r = `(uname -r) 2>/dev/null || echo unknown`
2384uname -s = `(uname -s) 2>/dev/null || echo unknown`
2385uname -v = `(uname -v) 2>/dev/null || echo unknown`
2386
2387/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2388/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2389
2390/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2391/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2392/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2393/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2394/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2395/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2396/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2397
2398_ASUNAME
2399
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405    $as_echo "PATH: $as_dir"
2406  done
2407IFS=$as_save_IFS
2408
2409} >&5
2410
2411cat >&5 <<_ACEOF
2412
2413
2414## ----------- ##
2415## Core tests. ##
2416## ----------- ##
2417
2418_ACEOF
2419
2420
2421# Keep a trace of the command line.
2422# Strip out --no-create and --no-recursion so they do not pile up.
2423# Strip out --silent because we don't want to record it for future runs.
2424# Also quote any args containing shell meta-characters.
2425# Make two passes to allow for proper duplicate-argument suppression.
2426ac_configure_args=
2427ac_configure_args0=
2428ac_configure_args1=
2429ac_must_keep_next=false
2430for ac_pass in 1 2
2431do
2432  for ac_arg
2433  do
2434    case $ac_arg in
2435    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2436    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2437    | -silent | --silent | --silen | --sile | --sil)
2438      continue ;;
2439    *\'*)
2440      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2441    esac
2442    case $ac_pass in
2443    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444    2)
2445      as_fn_append ac_configure_args1 " '$ac_arg'"
2446      if test $ac_must_keep_next = true; then
2447	ac_must_keep_next=false # Got value, back to normal.
2448      else
2449	case $ac_arg in
2450	  *=* | --config-cache | -C | -disable-* | --disable-* \
2451	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2452	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2453	  | -with-* | --with-* | -without-* | --without-* | --x)
2454	    case "$ac_configure_args0 " in
2455	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2456	    esac
2457	    ;;
2458	  -* ) ac_must_keep_next=true ;;
2459	esac
2460      fi
2461      as_fn_append ac_configure_args " '$ac_arg'"
2462      ;;
2463    esac
2464  done
2465done
2466{ ac_configure_args0=; unset ac_configure_args0;}
2467{ ac_configure_args1=; unset ac_configure_args1;}
2468
2469# When interrupted or exit'd, cleanup temporary files, and complete
2470# config.log.  We remove comments because anyway the quotes in there
2471# would cause problems or look ugly.
2472# WARNING: Use '\'' to represent an apostrophe within the trap.
2473# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2474trap 'exit_status=$?
2475  # Save into config.log some information that might help in debugging.
2476  {
2477    echo
2478
2479    $as_echo "## ---------------- ##
2480## Cache variables. ##
2481## ---------------- ##"
2482    echo
2483    # The following way of writing the cache mishandles newlines in values,
2484(
2485  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486    eval ac_val=\$$ac_var
2487    case $ac_val in #(
2488    *${as_nl}*)
2489      case $ac_var in #(
2490      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492      esac
2493      case $ac_var in #(
2494      _ | IFS | as_nl) ;; #(
2495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496      *) { eval $ac_var=; unset $ac_var;} ;;
2497      esac ;;
2498    esac
2499  done
2500  (set) 2>&1 |
2501    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502    *${as_nl}ac_space=\ *)
2503      sed -n \
2504	"s/'\''/'\''\\\\'\'''\''/g;
2505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506      ;; #(
2507    *)
2508      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509      ;;
2510    esac |
2511    sort
2512)
2513    echo
2514
2515    $as_echo "## ----------------- ##
2516## Output variables. ##
2517## ----------------- ##"
2518    echo
2519    for ac_var in $ac_subst_vars
2520    do
2521      eval ac_val=\$$ac_var
2522      case $ac_val in
2523      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524      esac
2525      $as_echo "$ac_var='\''$ac_val'\''"
2526    done | sort
2527    echo
2528
2529    if test -n "$ac_subst_files"; then
2530      $as_echo "## ------------------- ##
2531## File substitutions. ##
2532## ------------------- ##"
2533      echo
2534      for ac_var in $ac_subst_files
2535      do
2536	eval ac_val=\$$ac_var
2537	case $ac_val in
2538	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539	esac
2540	$as_echo "$ac_var='\''$ac_val'\''"
2541      done | sort
2542      echo
2543    fi
2544
2545    if test -s confdefs.h; then
2546      $as_echo "## ----------- ##
2547## confdefs.h. ##
2548## ----------- ##"
2549      echo
2550      cat confdefs.h
2551      echo
2552    fi
2553    test "$ac_signal" != 0 &&
2554      $as_echo "$as_me: caught signal $ac_signal"
2555    $as_echo "$as_me: exit $exit_status"
2556  } >&5
2557  rm -f core *.core core.conftest.* &&
2558    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559    exit $exit_status
2560' 0
2561for ac_signal in 1 2 13 15; do
2562  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563done
2564ac_signal=0
2565
2566# confdefs.h avoids OS command line length limits that DEFS can exceed.
2567rm -f -r conftest* confdefs.h
2568
2569$as_echo "/* confdefs.h */" > confdefs.h
2570
2571# Predefined preprocessor variables.
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_NAME "$PACKAGE_NAME"
2575_ACEOF
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579_ACEOF
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_VERSION "$PACKAGE_VERSION"
2583_ACEOF
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_STRING "$PACKAGE_STRING"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_URL "$PACKAGE_URL"
2595_ACEOF
2596
2597
2598# Let the site file select an alternate cache file if it wants to.
2599# Prefer an explicitly selected file to automatically selected ones.
2600ac_site_file1=NONE
2601ac_site_file2=NONE
2602if test -n "$CONFIG_SITE"; then
2603  # We do not want a PATH search for config.site.
2604  case $CONFIG_SITE in #((
2605    -*)  ac_site_file1=./$CONFIG_SITE;;
2606    */*) ac_site_file1=$CONFIG_SITE;;
2607    *)   ac_site_file1=./$CONFIG_SITE;;
2608  esac
2609elif test "x$prefix" != xNONE; then
2610  ac_site_file1=$prefix/share/config.site
2611  ac_site_file2=$prefix/etc/config.site
2612else
2613  ac_site_file1=$ac_default_prefix/share/config.site
2614  ac_site_file2=$ac_default_prefix/etc/config.site
2615fi
2616for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617do
2618  test "x$ac_site_file" = xNONE && continue
2619  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2620    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2621$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2622    sed 's/^/| /' "$ac_site_file" >&5
2623    . "$ac_site_file" \
2624      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626as_fn_error $? "failed to load site script $ac_site_file
2627See \`config.log' for more details" "$LINENO" 5; }
2628  fi
2629done
2630
2631if test -r "$cache_file"; then
2632  # Some versions of bash will fail to source /dev/null (special files
2633  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2634  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2635    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636$as_echo "$as_me: loading cache $cache_file" >&6;}
2637    case $cache_file in
2638      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639      *)                      . "./$cache_file";;
2640    esac
2641  fi
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644$as_echo "$as_me: creating cache $cache_file" >&6;}
2645  >$cache_file
2646fi
2647
2648# Check that the precious variables saved in the cache have kept the same
2649# value.
2650ac_cache_corrupted=false
2651for ac_var in $ac_precious_vars; do
2652  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653  eval ac_new_set=\$ac_env_${ac_var}_set
2654  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655  eval ac_new_val=\$ac_env_${ac_var}_value
2656  case $ac_old_set,$ac_new_set in
2657    set,)
2658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660      ac_cache_corrupted=: ;;
2661    ,set)
2662      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664      ac_cache_corrupted=: ;;
2665    ,);;
2666    *)
2667      if test "x$ac_old_val" != "x$ac_new_val"; then
2668	# differences in whitespace do not lead to failure.
2669	ac_old_val_w=`echo x $ac_old_val`
2670	ac_new_val_w=`echo x $ac_new_val`
2671	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674	  ac_cache_corrupted=:
2675	else
2676	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678	  eval $ac_var=\$ac_old_val
2679	fi
2680	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684      fi;;
2685  esac
2686  # Pass precious variables to config.status.
2687  if test "$ac_new_set" = set; then
2688    case $ac_new_val in
2689    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690    *) ac_arg=$ac_var=$ac_new_val ;;
2691    esac
2692    case " $ac_configure_args " in
2693      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695    esac
2696  fi
2697done
2698if $ac_cache_corrupted; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704fi
2705## -------------------- ##
2706## Main body of script. ##
2707## -------------------- ##
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716UNBOUND_VERSION_MAJOR=1
2717
2718UNBOUND_VERSION_MINOR=5
2719
2720UNBOUND_VERSION_MICRO=10
2721
2722
2723LIBUNBOUND_CURRENT=6
2724LIBUNBOUND_REVISION=2
2725LIBUNBOUND_AGE=4
2726# 1.0.0 had 0:12:0
2727# 1.0.1 had 0:13:0
2728# 1.0.2 had 0:14:0
2729# 1.1.0 had 0:15:0
2730# 1.1.1 had 0:16:0
2731# 1.2.0 had 0:17:0
2732# 1.2.1 had 0:18:0
2733# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2734# 1.3.1 had 1:1:0
2735# 1.3.2 had 1:2:0
2736# 1.3.3 had 1:3:0
2737# 1.3.4 had 1:4:0
2738# 1.4.0-snapshots had 1:5:0
2739# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2740# 1.4.1 had 2:1:0
2741# 1.4.2 had 2:2:0
2742# 1.4.3 had 2:3:0
2743# 1.4.4 had 2:4:0
2744# 1.4.5 had 2:5:0
2745# 1.4.6 had 2:6:0
2746# 1.4.7 had 2:7:0
2747# 1.4.8 had 2:8:0
2748# 1.4.9 had 2:9:0
2749# 1.4.10 had 2:10:0
2750# 1.4.11 had 2:11:0
2751# 1.4.12 had 2:12:0
2752# 1.4.13 had 2:13:0
2753# and 1.4.13p1 and 1.4.13.p2
2754# 1.4.14 had 2:14:0
2755# 1.4.15 had 3:0:1 # adds ub_version()
2756# 1.4.16 had 3:1:1
2757# 1.4.17 had 3:2:1
2758# 1.4.18 had 3:3:1
2759# 1.4.19 had 3:4:1
2760# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2761# 1.4.21 had 4:1:2
2762# 1.4.22 had 4:1:2
2763# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2764# 1.5.1 had 5:3:3
2765# 1.5.2 had 5:5:3
2766# 1.5.3 had 5:6:3
2767# 1.5.4 had 5:7:3
2768# 1.5.5 had 5:8:3
2769# 1.5.6 had 5:9:3
2770# 1.5.7 had 5:10:3
2771# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2772# 1.5.9 had 6:1:4
2773# 1.5.10 had 6:2:4
2774
2775#   Current  -- the number of the binary API that we're implementing
2776#   Revision -- which iteration of the implementation of the binary
2777#               API are we supplying?
2778#   Age      -- How many previous binary API versions do we also
2779#               support?
2780#
2781# If we release a new version that does not change the binary API,
2782# increment Revision.
2783#
2784# If we release a new version that changes the binary API, but does
2785# not break programs compiled against the old binary API, increment
2786# Current and Age.  Set Revision to 0, since this is the first
2787# implementation of the new API.
2788#
2789# Otherwise, we're changing the binary API and breaking bakward
2790# compatibility with old binaries.  Increment Current.  Set Age to 0,
2791# since we're backward compatible with no previous APIs.  Set Revision
2792# to 0 too.
2793
2794
2795
2796
2797CFLAGS="$CFLAGS"
2798ac_ext=c
2799ac_cpp='$CPP $CPPFLAGS'
2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803if test -n "$ac_tool_prefix"; then
2804  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_CC+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834$as_echo "$CC" >&6; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841fi
2842if test -z "$ac_cv_prog_CC"; then
2843  ac_ct_CC=$CC
2844  # Extract the first word of "gcc", so it can be a program name with args.
2845set dummy gcc; ac_word=$2
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if ${ac_cv_prog_ac_ct_CC+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$ac_ct_CC"; then
2852  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859    for ac_exec_ext in '' $ac_executable_extensions; do
2860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861    ac_cv_prog_ac_ct_CC="gcc"
2862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874$as_echo "$ac_ct_CC" >&6; }
2875else
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880  if test "x$ac_ct_CC" = x; then
2881    CC=""
2882  else
2883    case $cross_compiling:$ac_tool_warned in
2884yes:)
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889    CC=$ac_ct_CC
2890  fi
2891else
2892  CC="$ac_cv_prog_CC"
2893fi
2894
2895if test -z "$CC"; then
2896          if test -n "$ac_tool_prefix"; then
2897    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898set dummy ${ac_tool_prefix}cc; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if ${ac_cv_prog_CC+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914    ac_cv_prog_CC="${ac_tool_prefix}cc"
2915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934  fi
2935fi
2936if test -z "$CC"; then
2937  # Extract the first word of "cc", so it can be a program name with args.
2938set dummy cc; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_CC+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947  ac_prog_rejected=no
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956       ac_prog_rejected=yes
2957       continue
2958     fi
2959    ac_cv_prog_CC="cc"
2960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967if test $ac_prog_rejected = yes; then
2968  # We found a bogon in the path, so make sure we never use it.
2969  set dummy $ac_cv_prog_CC
2970  shift
2971  if test $# != 0; then
2972    # We chose a different compiler from the bogus one.
2973    # However, it has the same basename, so the bogon will be chosen
2974    # first if we set CC to just the basename; use the full file name.
2975    shift
2976    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977  fi
2978fi
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984$as_echo "$CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991fi
2992if test -z "$CC"; then
2993  if test -n "$ac_tool_prefix"; then
2994  for ac_prog in cl.exe
2995  do
2996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_CC+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$CC"; then
3004  ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011    for ac_exec_ext in '' $ac_executable_extensions; do
3012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018  done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026$as_echo "$CC" >&6; }
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033    test -n "$CC" && break
3034  done
3035fi
3036if test -z "$CC"; then
3037  ac_ct_CC=$CC
3038  for ac_prog in cl.exe
3039do
3040  # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$ac_ct_CC"; then
3048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057    ac_cv_prog_ac_ct_CC="$ac_prog"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077  test -n "$ac_ct_CC" && break
3078done
3079
3080  if test "x$ac_ct_CC" = x; then
3081    CC=""
3082  else
3083    case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089    CC=$ac_ct_CC
3090  fi
3091fi
3092
3093fi
3094
3095
3096test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error $? "no acceptable C compiler found in \$PATH
3099See \`config.log' for more details" "$LINENO" 5; }
3100
3101# Provide some information about the compiler.
3102$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3103set X $ac_compile
3104ac_compiler=$2
3105for ac_option in --version -v -V -qversion; do
3106  { { ac_try="$ac_compiler $ac_option >&5"
3107case "(($ac_try" in
3108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109  *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
3113  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3114  ac_status=$?
3115  if test -s conftest.err; then
3116    sed '10a\
3117... rest of stderr output deleted ...
3118         10q' conftest.err >conftest.er1
3119    cat conftest.er1 >&5
3120  fi
3121  rm -f conftest.er1 conftest.err
3122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123  test $ac_status = 0; }
3124done
3125
3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137ac_clean_files_save=$ac_clean_files
3138ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139# Try to create an executable without -o first, disregard a.out.
3140# It will help us diagnose broken compilers, and finding out an intuition
3141# of exeext.
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143$as_echo_n "checking whether the C compiler works... " >&6; }
3144ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146# The possible output files:
3147ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149ac_rmfiles=
3150for ac_file in $ac_files
3151do
3152  case $ac_file in
3153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155  esac
3156done
3157rm -f $ac_rmfiles
3158
3159if { { ac_try="$ac_link_default"
3160case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165$as_echo "$ac_try_echo"; } >&5
3166  (eval "$ac_link_default") 2>&5
3167  ac_status=$?
3168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169  test $ac_status = 0; }; then :
3170  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3173# so that the user can short-circuit this test for compilers unknown to
3174# Autoconf.
3175for ac_file in $ac_files ''
3176do
3177  test -f "$ac_file" || continue
3178  case $ac_file in
3179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180	;;
3181    [ab].out )
3182	# We found the default executable, but exeext='' is most
3183	# certainly right.
3184	break;;
3185    *.* )
3186	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187	then :; else
3188	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189	fi
3190	# We set ac_cv_exeext here because the later test for it is not
3191	# safe: cross compilers may not add the suffix if given an `-o'
3192	# argument, so we may need to know it at that point already.
3193	# Even if this section looks crufty: it has the advantage of
3194	# actually working.
3195	break;;
3196    * )
3197	break;;
3198  esac
3199done
3200test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202else
3203  ac_file=''
3204fi
3205if test -z "$ac_file"; then :
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208$as_echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error 77 "C compiler cannot create executables
3214See \`config.log' for more details" "$LINENO" 5; }
3215else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217$as_echo "yes" >&6; }
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3220$as_echo_n "checking for C compiler default output file name... " >&6; }
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3222$as_echo "$ac_file" >&6; }
3223ac_exeext=$ac_cv_exeext
3224
3225rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3226ac_clean_files=$ac_clean_files_save
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3228$as_echo_n "checking for suffix of executables... " >&6; }
3229if { { ac_try="$ac_link"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_link") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; then :
3240  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3242# work properly (i.e., refer to `conftest.exe'), while it won't with
3243# `rm'.
3244for ac_file in conftest.exe conftest conftest.*; do
3245  test -f "$ac_file" || continue
3246  case $ac_file in
3247    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249	  break;;
3250    * ) break;;
3251  esac
3252done
3253else
3254  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3257See \`config.log' for more details" "$LINENO" 5; }
3258fi
3259rm -f conftest conftest$ac_cv_exeext
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3261$as_echo "$ac_cv_exeext" >&6; }
3262
3263rm -f conftest.$ac_ext
3264EXEEXT=$ac_cv_exeext
3265ac_exeext=$EXEEXT
3266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267/* end confdefs.h.  */
3268#include <stdio.h>
3269int
3270main ()
3271{
3272FILE *f = fopen ("conftest.out", "w");
3273 return ferror (f) || fclose (f) != 0;
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279ac_clean_files="$ac_clean_files conftest.out"
3280# Check that the compiler produces executables we can run.  If not, either
3281# the compiler is broken, or we cross compile.
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3283$as_echo_n "checking whether we are cross compiling... " >&6; }
3284if test "$cross_compiling" != yes; then
3285  { { ac_try="$ac_link"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292  (eval "$ac_link") 2>&5
3293  ac_status=$?
3294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295  test $ac_status = 0; }
3296  if { ac_try='./conftest$ac_cv_exeext'
3297  { { case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_try") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; }; then
3307    cross_compiling=no
3308  else
3309    if test "$cross_compiling" = maybe; then
3310	cross_compiling=yes
3311    else
3312	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error $? "cannot run C compiled programs.
3315If you meant to cross compile, use \`--host'.
3316See \`config.log' for more details" "$LINENO" 5; }
3317    fi
3318  fi
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3321$as_echo "$cross_compiling" >&6; }
3322
3323rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3324ac_clean_files=$ac_clean_files_save
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3326$as_echo_n "checking for suffix of object files... " >&6; }
3327if ${ac_cv_objext+:} false; then :
3328  $as_echo_n "(cached) " >&6
3329else
3330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332
3333int
3334main ()
3335{
3336
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.o conftest.obj
3342if { { ac_try="$ac_compile"
3343case "(($ac_try" in
3344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345  *) ac_try_echo=$ac_try;;
3346esac
3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348$as_echo "$ac_try_echo"; } >&5
3349  (eval "$ac_compile") 2>&5
3350  ac_status=$?
3351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352  test $ac_status = 0; }; then :
3353  for ac_file in conftest.o conftest.obj conftest.*; do
3354  test -f "$ac_file" || continue;
3355  case $ac_file in
3356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358       break;;
3359  esac
3360done
3361else
3362  $as_echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error $? "cannot compute suffix of object files: cannot compile
3368See \`config.log' for more details" "$LINENO" 5; }
3369fi
3370rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371fi
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3373$as_echo "$ac_cv_objext" >&6; }
3374OBJEXT=$ac_cv_objext
3375ac_objext=$OBJEXT
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3377$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3378if ${ac_cv_c_compiler_gnu+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388       choke me
3389#endif
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then :
3396  ac_compiler_gnu=yes
3397else
3398  ac_compiler_gnu=no
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402
3403fi
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3405$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3406if test $ac_compiler_gnu = yes; then
3407  GCC=yes
3408else
3409  GCC=
3410fi
3411ac_test_CFLAGS=${CFLAGS+set}
3412ac_save_CFLAGS=$CFLAGS
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3414$as_echo_n "checking whether $CC accepts -g... " >&6; }
3415if ${ac_cv_prog_cc_g+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  ac_save_c_werror_flag=$ac_c_werror_flag
3419   ac_c_werror_flag=yes
3420   ac_cv_prog_cc_g=no
3421   CFLAGS="-g"
3422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424
3425int
3426main ()
3427{
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"; then :
3434  ac_cv_prog_cc_g=yes
3435else
3436  CFLAGS=""
3437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h.  */
3439
3440int
3441main ()
3442{
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448if ac_fn_c_try_compile "$LINENO"; then :
3449
3450else
3451  ac_c_werror_flag=$ac_save_c_werror_flag
3452	 CFLAGS="-g"
3453	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465  ac_cv_prog_cc_g=yes
3466fi
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468fi
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472   ac_c_werror_flag=$ac_save_c_werror_flag
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3475$as_echo "$ac_cv_prog_cc_g" >&6; }
3476if test "$ac_test_CFLAGS" = set; then
3477  CFLAGS=$ac_save_CFLAGS
3478elif test $ac_cv_prog_cc_g = yes; then
3479  if test "$GCC" = yes; then
3480    CFLAGS="-g -O2"
3481  else
3482    CFLAGS="-g"
3483  fi
3484else
3485  if test "$GCC" = yes; then
3486    CFLAGS="-O2"
3487  else
3488    CFLAGS=
3489  fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3492$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3493if ${ac_cv_prog_cc_c89+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  ac_cv_prog_cc_c89=no
3497ac_save_CC=$CC
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <stdarg.h>
3501#include <stdio.h>
3502struct stat;
3503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3504struct buf { int x; };
3505FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506static char *e (p, i)
3507     char **p;
3508     int i;
3509{
3510  return p[i];
3511}
3512static char *f (char * (*g) (char **, int), char **p, ...)
3513{
3514  char *s;
3515  va_list v;
3516  va_start (v,p);
3517  s = g (p, va_arg (v,int));
3518  va_end (v);
3519  return s;
3520}
3521
3522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3523   function prototypes and stuff, but not '\xHH' hex character constants.
3524   These don't provoke an error unfortunately, instead are silently treated
3525   as 'x'.  The following induces an error, until -std is added to get
3526   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3527   array size at least.  It's necessary to write '\x00'==0 to get something
3528   that's true only with -std.  */
3529int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530
3531/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532   inside strings and character constants.  */
3533#define FOO(x) 'x'
3534int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3535
3536int test (int i, double x);
3537struct s1 {int (*f) (int a);};
3538struct s2 {int (*f) (double a);};
3539int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540int argc;
3541char **argv;
3542int
3543main ()
3544{
3545return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3552do
3553  CC="$ac_save_CC $ac_arg"
3554  if ac_fn_c_try_compile "$LINENO"; then :
3555  ac_cv_prog_cc_c89=$ac_arg
3556fi
3557rm -f core conftest.err conftest.$ac_objext
3558  test "x$ac_cv_prog_cc_c89" != "xno" && break
3559done
3560rm -f conftest.$ac_ext
3561CC=$ac_save_CC
3562
3563fi
3564# AC_CACHE_VAL
3565case "x$ac_cv_prog_cc_c89" in
3566  x)
3567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568$as_echo "none needed" >&6; } ;;
3569  xno)
3570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571$as_echo "unsupported" >&6; } ;;
3572  *)
3573    CC="$CC $ac_cv_prog_cc_c89"
3574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3575$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3576esac
3577if test "x$ac_cv_prog_cc_c89" != xno; then :
3578
3579fi
3580
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587
3588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3594$as_echo_n "checking how to run the C preprocessor... " >&6; }
3595# On Suns, sometimes $CPP names a directory.
3596if test -n "$CPP" && test -d "$CPP"; then
3597  CPP=
3598fi
3599if test -z "$CPP"; then
3600  if ${ac_cv_prog_CPP+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603      # Double quotes because CPP needs to be expanded
3604    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605    do
3606      ac_preproc_ok=false
3607for ac_c_preproc_warn_flag in '' yes
3608do
3609  # Use a header file that comes with gcc, so configuring glibc
3610  # with a fresh cross-compiler works.
3611  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3612  # <limits.h> exists even on freestanding compilers.
3613  # On the NeXT, cc -E runs the code through the compiler's parser,
3614  # not just through cpp. "Syntax error" is here to catch this case.
3615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617#ifdef __STDC__
3618# include <limits.h>
3619#else
3620# include <assert.h>
3621#endif
3622		     Syntax error
3623_ACEOF
3624if ac_fn_c_try_cpp "$LINENO"; then :
3625
3626else
3627  # Broken: fails on valid input.
3628continue
3629fi
3630rm -f conftest.err conftest.i conftest.$ac_ext
3631
3632  # OK, works on sane cases.  Now check whether nonexistent headers
3633  # can be detected and how.
3634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636#include <ac_nonexistent.h>
3637_ACEOF
3638if ac_fn_c_try_cpp "$LINENO"; then :
3639  # Broken: success on invalid input.
3640continue
3641else
3642  # Passes both tests.
3643ac_preproc_ok=:
3644break
3645fi
3646rm -f conftest.err conftest.i conftest.$ac_ext
3647
3648done
3649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650rm -f conftest.i conftest.err conftest.$ac_ext
3651if $ac_preproc_ok; then :
3652  break
3653fi
3654
3655    done
3656    ac_cv_prog_CPP=$CPP
3657
3658fi
3659  CPP=$ac_cv_prog_CPP
3660else
3661  ac_cv_prog_CPP=$CPP
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3664$as_echo "$CPP" >&6; }
3665ac_preproc_ok=false
3666for ac_c_preproc_warn_flag in '' yes
3667do
3668  # Use a header file that comes with gcc, so configuring glibc
3669  # with a fresh cross-compiler works.
3670  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671  # <limits.h> exists even on freestanding compilers.
3672  # On the NeXT, cc -E runs the code through the compiler's parser,
3673  # not just through cpp. "Syntax error" is here to catch this case.
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676#ifdef __STDC__
3677# include <limits.h>
3678#else
3679# include <assert.h>
3680#endif
3681		     Syntax error
3682_ACEOF
3683if ac_fn_c_try_cpp "$LINENO"; then :
3684
3685else
3686  # Broken: fails on valid input.
3687continue
3688fi
3689rm -f conftest.err conftest.i conftest.$ac_ext
3690
3691  # OK, works on sane cases.  Now check whether nonexistent headers
3692  # can be detected and how.
3693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if ac_fn_c_try_cpp "$LINENO"; then :
3698  # Broken: success on invalid input.
3699continue
3700else
3701  # Passes both tests.
3702ac_preproc_ok=:
3703break
3704fi
3705rm -f conftest.err conftest.i conftest.$ac_ext
3706
3707done
3708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709rm -f conftest.i conftest.err conftest.$ac_ext
3710if $ac_preproc_ok; then :
3711
3712else
3713  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3716See \`config.log' for more details" "$LINENO" 5; }
3717fi
3718
3719ac_ext=c
3720ac_cpp='$CPP $CPPFLAGS'
3721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724
3725
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3727$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3728if ${ac_cv_path_GREP+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  if test -z "$GREP"; then
3732  ac_path_GREP_found=false
3733  # Loop through the user's path and test for each of PROGNAME-LIST
3734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739    for ac_prog in grep ggrep; do
3740    for ac_exec_ext in '' $ac_executable_extensions; do
3741      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3742      as_fn_executable_p "$ac_path_GREP" || continue
3743# Check for GNU ac_path_GREP and select it if it is found.
3744  # Check for GNU $ac_path_GREP
3745case `"$ac_path_GREP" --version 2>&1` in
3746*GNU*)
3747  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3748*)
3749  ac_count=0
3750  $as_echo_n 0123456789 >"conftest.in"
3751  while :
3752  do
3753    cat "conftest.in" "conftest.in" >"conftest.tmp"
3754    mv "conftest.tmp" "conftest.in"
3755    cp "conftest.in" "conftest.nl"
3756    $as_echo 'GREP' >> "conftest.nl"
3757    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3758    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3759    as_fn_arith $ac_count + 1 && ac_count=$as_val
3760    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3761      # Best one so far, save it but keep looking for a better one
3762      ac_cv_path_GREP="$ac_path_GREP"
3763      ac_path_GREP_max=$ac_count
3764    fi
3765    # 10*(2^10) chars as input seems more than enough
3766    test $ac_count -gt 10 && break
3767  done
3768  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3769esac
3770
3771      $ac_path_GREP_found && break 3
3772    done
3773  done
3774  done
3775IFS=$as_save_IFS
3776  if test -z "$ac_cv_path_GREP"; then
3777    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3778  fi
3779else
3780  ac_cv_path_GREP=$GREP
3781fi
3782
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3785$as_echo "$ac_cv_path_GREP" >&6; }
3786 GREP="$ac_cv_path_GREP"
3787
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3790$as_echo_n "checking for egrep... " >&6; }
3791if ${ac_cv_path_EGREP+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3795   then ac_cv_path_EGREP="$GREP -E"
3796   else
3797     if test -z "$EGREP"; then
3798  ac_path_EGREP_found=false
3799  # Loop through the user's path and test for each of PROGNAME-LIST
3800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_prog in egrep; do
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3808      as_fn_executable_p "$ac_path_EGREP" || continue
3809# Check for GNU ac_path_EGREP and select it if it is found.
3810  # Check for GNU $ac_path_EGREP
3811case `"$ac_path_EGREP" --version 2>&1` in
3812*GNU*)
3813  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3814*)
3815  ac_count=0
3816  $as_echo_n 0123456789 >"conftest.in"
3817  while :
3818  do
3819    cat "conftest.in" "conftest.in" >"conftest.tmp"
3820    mv "conftest.tmp" "conftest.in"
3821    cp "conftest.in" "conftest.nl"
3822    $as_echo 'EGREP' >> "conftest.nl"
3823    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3824    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3825    as_fn_arith $ac_count + 1 && ac_count=$as_val
3826    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3827      # Best one so far, save it but keep looking for a better one
3828      ac_cv_path_EGREP="$ac_path_EGREP"
3829      ac_path_EGREP_max=$ac_count
3830    fi
3831    # 10*(2^10) chars as input seems more than enough
3832    test $ac_count -gt 10 && break
3833  done
3834  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835esac
3836
3837      $ac_path_EGREP_found && break 3
3838    done
3839  done
3840  done
3841IFS=$as_save_IFS
3842  if test -z "$ac_cv_path_EGREP"; then
3843    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3844  fi
3845else
3846  ac_cv_path_EGREP=$EGREP
3847fi
3848
3849   fi
3850fi
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3852$as_echo "$ac_cv_path_EGREP" >&6; }
3853 EGREP="$ac_cv_path_EGREP"
3854
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3857$as_echo_n "checking for ANSI C header files... " >&6; }
3858if ${ac_cv_header_stdc+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863#include <stdlib.h>
3864#include <stdarg.h>
3865#include <string.h>
3866#include <float.h>
3867
3868int
3869main ()
3870{
3871
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876if ac_fn_c_try_compile "$LINENO"; then :
3877  ac_cv_header_stdc=yes
3878else
3879  ac_cv_header_stdc=no
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882
3883if test $ac_cv_header_stdc = yes; then
3884  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h.  */
3887#include <string.h>
3888
3889_ACEOF
3890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891  $EGREP "memchr" >/dev/null 2>&1; then :
3892
3893else
3894  ac_cv_header_stdc=no
3895fi
3896rm -f conftest*
3897
3898fi
3899
3900if test $ac_cv_header_stdc = yes; then
3901  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904#include <stdlib.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908  $EGREP "free" >/dev/null 2>&1; then :
3909
3910else
3911  ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919  if test "$cross_compiling" = yes; then :
3920  :
3921else
3922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924#include <ctype.h>
3925#include <stdlib.h>
3926#if ((' ' & 0x0FF) == 0x020)
3927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3929#else
3930# define ISLOWER(c) \
3931		   (('a' <= (c) && (c) <= 'i') \
3932		     || ('j' <= (c) && (c) <= 'r') \
3933		     || ('s' <= (c) && (c) <= 'z'))
3934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3935#endif
3936
3937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938int
3939main ()
3940{
3941  int i;
3942  for (i = 0; i < 256; i++)
3943    if (XOR (islower (i), ISLOWER (i))
3944	|| toupper (i) != TOUPPER (i))
3945      return 2;
3946  return 0;
3947}
3948_ACEOF
3949if ac_fn_c_try_run "$LINENO"; then :
3950
3951else
3952  ac_cv_header_stdc=no
3953fi
3954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3955  conftest.$ac_objext conftest.beam conftest.$ac_ext
3956fi
3957
3958fi
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3961$as_echo "$ac_cv_header_stdc" >&6; }
3962if test $ac_cv_header_stdc = yes; then
3963
3964$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3965
3966fi
3967
3968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3969for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3970		  inttypes.h stdint.h unistd.h
3971do :
3972  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3973ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3974"
3975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3976  cat >>confdefs.h <<_ACEOF
3977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3978_ACEOF
3979
3980fi
3981
3982done
3983
3984
3985
3986  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3987if test "x$ac_cv_header_minix_config_h" = xyes; then :
3988  MINIX=yes
3989else
3990  MINIX=
3991fi
3992
3993
3994  if test "$MINIX" = yes; then
3995
3996$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3997
3998
3999$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4000
4001
4002$as_echo "#define _MINIX 1" >>confdefs.h
4003
4004  fi
4005
4006
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4008$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4009if ${ac_cv_safe_to_define___extensions__+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h.  */
4014
4015#         define __EXTENSIONS__ 1
4016          $ac_includes_default
4017int
4018main ()
4019{
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026  ac_cv_safe_to_define___extensions__=yes
4027else
4028  ac_cv_safe_to_define___extensions__=no
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4033$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4034  test $ac_cv_safe_to_define___extensions__ = yes &&
4035    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4036
4037  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4038
4039  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4040
4041  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4042
4043  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4044
4045
4046
4047if test "$ac_cv_header_minix_config_h" = "yes"; then
4048
4049$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4050
4051fi
4052
4053case "$prefix" in
4054        NONE)
4055		prefix="/usr/local"
4056        ;;
4057esac
4058
4059# are we on MinGW?
4060if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4061else
4062	if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4063	else on_mingw="no"; fi
4064fi
4065
4066#
4067# Determine configuration file
4068# the eval is to evaluate shell expansion twice
4069if test $on_mingw = "no"; then
4070  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4071else
4072  ub_conf_file="C:\\Program Files (x86)\\Unbound\\service.conf"
4073fi
4074
4075# Check whether --with-conf_file was given.
4076if test "${with_conf_file+set}" = set; then :
4077  withval=$with_conf_file; ub_conf_file="$withval"
4078fi
4079
4080
4081hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4082
4083
4084cat >>confdefs.h <<_ACEOF
4085#define CONFIGFILE "$hdr_config"
4086_ACEOF
4087
4088ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4089$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4090	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4091	 X"$ub_conf_file" : 'X\(//\)$' \| \
4092	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4093$as_echo X"$ub_conf_file" |
4094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4095	    s//\1/
4096	    q
4097	  }
4098	  /^X\(\/\/\)[^/].*/{
4099	    s//\1/
4100	    q
4101	  }
4102	  /^X\(\/\/\)$/{
4103	    s//\1/
4104	    q
4105	  }
4106	  /^X\(\/\).*/{
4107	    s//\1/
4108	    q
4109	  }
4110	  s/.*/./; q'`
4111
4112
4113# Determine run, chroot directory and pidfile locations
4114
4115# Check whether --with-run-dir was given.
4116if test "${with_run_dir+set}" = set; then :
4117  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4118else
4119  if test $on_mingw = no; then
4120    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4121else
4122    UNBOUND_RUN_DIR=""
4123fi
4124
4125fi
4126
4127
4128hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4129
4130
4131cat >>confdefs.h <<_ACEOF
4132#define RUN_DIR "$hdr_run"
4133_ACEOF
4134
4135
4136
4137# Check whether --with-chroot-dir was given.
4138if test "${with_chroot_dir+set}" = set; then :
4139  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4140else
4141  if test $on_mingw = no; then
4142    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4143else
4144    UNBOUND_CHROOT_DIR=""
4145fi
4146
4147fi
4148
4149
4150hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4151
4152
4153cat >>confdefs.h <<_ACEOF
4154#define CHROOT_DIR "$hdr_chroot"
4155_ACEOF
4156
4157
4158
4159# Check whether --with-share-dir was given.
4160if test "${with_share_dir+set}" = set; then :
4161  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4162else
4163  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4164fi
4165
4166
4167
4168cat >>confdefs.h <<_ACEOF
4169#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4170_ACEOF
4171
4172
4173
4174# Check whether --with-pidfile was given.
4175if test "${with_pidfile+set}" = set; then :
4176  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4177else
4178  if test $on_mingw = no; then
4179    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4180else
4181    UNBOUND_PIDFILE=""
4182fi
4183
4184fi
4185
4186
4187hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4188
4189
4190cat >>confdefs.h <<_ACEOF
4191#define PIDFILE "$hdr_pid"
4192_ACEOF
4193
4194
4195
4196# Check whether --with-rootkey-file was given.
4197if test "${with_rootkey_file+set}" = set; then :
4198  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4199else
4200  if test $on_mingw = no; then
4201    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4202else
4203    UNBOUND_ROOTKEY_FILE="C:\\Program Files (x86)\\Unbound\\root.key"
4204fi
4205
4206fi
4207
4208
4209hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4210
4211
4212cat >>confdefs.h <<_ACEOF
4213#define ROOT_ANCHOR_FILE "$hdr_rkey"
4214_ACEOF
4215
4216
4217
4218# Check whether --with-rootcert-file was given.
4219if test "${with_rootcert_file+set}" = set; then :
4220  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4221else
4222  if test $on_mingw = no; then
4223    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4224else
4225    UNBOUND_ROOTCERT_FILE="C:\\Program Files (x86)\\Unbound\\icannbundle.pem"
4226fi
4227
4228fi
4229
4230
4231hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4232
4233
4234cat >>confdefs.h <<_ACEOF
4235#define ROOT_CERT_FILE "$hdr_rpem"
4236_ACEOF
4237
4238
4239
4240# Check whether --with-username was given.
4241if test "${with_username+set}" = set; then :
4242  withval=$with_username; UNBOUND_USERNAME="$withval"
4243else
4244  UNBOUND_USERNAME="unbound"
4245fi
4246
4247
4248
4249cat >>confdefs.h <<_ACEOF
4250#define UB_USERNAME "$UNBOUND_USERNAME"
4251_ACEOF
4252
4253
4254
4255$as_echo "#define WINVER 0x0502" >>confdefs.h
4256
4257wnvs=`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/' `
4258
4259
4260cat >>confdefs.h <<_ACEOF
4261#define RSRC_PACKAGE_VERSION $wnvs
4262_ACEOF
4263
4264
4265# Checks for typedefs, structures, and compiler characteristics.
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4267$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4268if ${ac_cv_c_const+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273
4274int
4275main ()
4276{
4277
4278#ifndef __cplusplus
4279  /* Ultrix mips cc rejects this sort of thing.  */
4280  typedef int charset[2];
4281  const charset cs = { 0, 0 };
4282  /* SunOS 4.1.1 cc rejects this.  */
4283  char const *const *pcpcc;
4284  char **ppc;
4285  /* NEC SVR4.0.2 mips cc rejects this.  */
4286  struct point {int x, y;};
4287  static struct point const zero = {0,0};
4288  /* AIX XL C 1.02.0.0 rejects this.
4289     It does not let you subtract one const X* pointer from another in
4290     an arm of an if-expression whose if-part is not a constant
4291     expression */
4292  const char *g = "string";
4293  pcpcc = &g + (g ? g-g : 0);
4294  /* HPUX 7.0 cc rejects these. */
4295  ++pcpcc;
4296  ppc = (char**) pcpcc;
4297  pcpcc = (char const *const *) ppc;
4298  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4299    char tx;
4300    char *t = &tx;
4301    char const *s = 0 ? (char *) 0 : (char const *) 0;
4302
4303    *t++ = 0;
4304    if (s) return 0;
4305  }
4306  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4307    int x[] = {25, 17};
4308    const int *foo = &x[0];
4309    ++foo;
4310  }
4311  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4312    typedef const int *iptr;
4313    iptr p = 0;
4314    ++p;
4315  }
4316  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4317       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4318    struct s { int j; const int *ap[3]; } bx;
4319    struct s *b = &bx; b->j = 5;
4320  }
4321  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4322    const int foo = 10;
4323    if (!foo) return 0;
4324  }
4325  return !cs[0] && !zero.x;
4326#endif
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_c_try_compile "$LINENO"; then :
4333  ac_cv_c_const=yes
4334else
4335  ac_cv_c_const=no
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4340$as_echo "$ac_cv_c_const" >&6; }
4341if test $ac_cv_c_const = no; then
4342
4343$as_echo "#define const /**/" >>confdefs.h
4344
4345fi
4346
4347ac_ext=c
4348ac_cpp='$CPP $CPPFLAGS'
4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352
4353# allow user to override the -g -O2 flags.
4354if test "x$CFLAGS" = "x" ; then
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4358$as_echo_n "checking whether $CC supports -g... " >&6; }
4359cache=`echo g | sed 'y%.=/+-%___p_%'`
4360if eval \${cv_prog_cc_flag_$cache+:} false; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363
4364echo 'void f(void){}' >conftest.c
4365if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4366eval "cv_prog_cc_flag_$cache=yes"
4367else
4368eval "cv_prog_cc_flag_$cache=no"
4369fi
4370rm -f conftest conftest.o conftest.c
4371
4372fi
4373
4374if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376$as_echo "yes" >&6; }
4377:
4378CFLAGS="$CFLAGS -g"
4379else
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381$as_echo "no" >&6; }
4382:
4383
4384fi
4385
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4389$as_echo_n "checking whether $CC supports -O2... " >&6; }
4390cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4391if eval \${cv_prog_cc_flag_$cache+:} false; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394
4395echo 'void f(void){}' >conftest.c
4396if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4397eval "cv_prog_cc_flag_$cache=yes"
4398else
4399eval "cv_prog_cc_flag_$cache=no"
4400fi
4401rm -f conftest conftest.o conftest.c
4402
4403fi
4404
4405if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407$as_echo "yes" >&6; }
4408:
4409CFLAGS="$CFLAGS -O2"
4410else
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413:
4414
4415fi
4416
4417fi
4418ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423if test -n "$ac_tool_prefix"; then
4424  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4425set dummy ${ac_tool_prefix}gcc; ac_word=$2
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
4428if ${ac_cv_prog_CC+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  if test -n "$CC"; then
4432  ac_cv_prog_CC="$CC" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439    for ac_exec_ext in '' $ac_executable_extensions; do
4440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443    break 2
4444  fi
4445done
4446  done
4447IFS=$as_save_IFS
4448
4449fi
4450fi
4451CC=$ac_cv_prog_CC
4452if test -n "$CC"; then
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4454$as_echo "$CC" >&6; }
4455else
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
4458fi
4459
4460
4461fi
4462if test -z "$ac_cv_prog_CC"; then
4463  ac_ct_CC=$CC
4464  # Extract the first word of "gcc", so it can be a program name with args.
4465set dummy gcc; ac_word=$2
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467$as_echo_n "checking for $ac_word... " >&6; }
4468if ${ac_cv_prog_ac_ct_CC+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  if test -n "$ac_ct_CC"; then
4472  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477  IFS=$as_save_IFS
4478  test -z "$as_dir" && as_dir=.
4479    for ac_exec_ext in '' $ac_executable_extensions; do
4480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481    ac_cv_prog_ac_ct_CC="gcc"
4482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483    break 2
4484  fi
4485done
4486  done
4487IFS=$as_save_IFS
4488
4489fi
4490fi
4491ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492if test -n "$ac_ct_CC"; then
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4494$as_echo "$ac_ct_CC" >&6; }
4495else
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498fi
4499
4500  if test "x$ac_ct_CC" = x; then
4501    CC=""
4502  else
4503    case $cross_compiling:$ac_tool_warned in
4504yes:)
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507ac_tool_warned=yes ;;
4508esac
4509    CC=$ac_ct_CC
4510  fi
4511else
4512  CC="$ac_cv_prog_CC"
4513fi
4514
4515if test -z "$CC"; then
4516          if test -n "$ac_tool_prefix"; then
4517    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4518set dummy ${ac_tool_prefix}cc; ac_word=$2
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
4521if ${ac_cv_prog_CC+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  if test -n "$CC"; then
4525  ac_cv_prog_CC="$CC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530  IFS=$as_save_IFS
4531  test -z "$as_dir" && as_dir=.
4532    for ac_exec_ext in '' $ac_executable_extensions; do
4533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534    ac_cv_prog_CC="${ac_tool_prefix}cc"
4535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536    break 2
4537  fi
4538done
4539  done
4540IFS=$as_save_IFS
4541
4542fi
4543fi
4544CC=$ac_cv_prog_CC
4545if test -n "$CC"; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4547$as_echo "$CC" >&6; }
4548else
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
4551fi
4552
4553
4554  fi
4555fi
4556if test -z "$CC"; then
4557  # Extract the first word of "cc", so it can be a program name with args.
4558set dummy cc; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_prog_CC+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  if test -n "$CC"; then
4565  ac_cv_prog_CC="$CC" # Let the user override the test.
4566else
4567  ac_prog_rejected=no
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573    for ac_exec_ext in '' $ac_executable_extensions; do
4574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4576       ac_prog_rejected=yes
4577       continue
4578     fi
4579    ac_cv_prog_CC="cc"
4580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584  done
4585IFS=$as_save_IFS
4586
4587if test $ac_prog_rejected = yes; then
4588  # We found a bogon in the path, so make sure we never use it.
4589  set dummy $ac_cv_prog_CC
4590  shift
4591  if test $# != 0; then
4592    # We chose a different compiler from the bogus one.
4593    # However, it has the same basename, so the bogon will be chosen
4594    # first if we set CC to just the basename; use the full file name.
4595    shift
4596    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4597  fi
4598fi
4599fi
4600fi
4601CC=$ac_cv_prog_CC
4602if test -n "$CC"; then
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4604$as_echo "$CC" >&6; }
4605else
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607$as_echo "no" >&6; }
4608fi
4609
4610
4611fi
4612if test -z "$CC"; then
4613  if test -n "$ac_tool_prefix"; then
4614  for ac_prog in cl.exe
4615  do
4616    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
4620if ${ac_cv_prog_CC+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if test -n "$CC"; then
4624  ac_cv_prog_CC="$CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638  done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643CC=$ac_cv_prog_CC
4644if test -n "$CC"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646$as_echo "$CC" >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653    test -n "$CC" && break
4654  done
4655fi
4656if test -z "$CC"; then
4657  ac_ct_CC=$CC
4658  for ac_prog in cl.exe
4659do
4660  # Extract the first word of "$ac_prog", so it can be a program name with args.
4661set dummy $ac_prog; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if ${ac_cv_prog_ac_ct_CC+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  if test -n "$ac_ct_CC"; then
4668  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675    for ac_exec_ext in '' $ac_executable_extensions; do
4676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677    ac_cv_prog_ac_ct_CC="$ac_prog"
4678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679    break 2
4680  fi
4681done
4682  done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687ac_ct_CC=$ac_cv_prog_ac_ct_CC
4688if test -n "$ac_ct_CC"; then
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4690$as_echo "$ac_ct_CC" >&6; }
4691else
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696
4697  test -n "$ac_ct_CC" && break
4698done
4699
4700  if test "x$ac_ct_CC" = x; then
4701    CC=""
4702  else
4703    case $cross_compiling:$ac_tool_warned in
4704yes:)
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707ac_tool_warned=yes ;;
4708esac
4709    CC=$ac_ct_CC
4710  fi
4711fi
4712
4713fi
4714
4715
4716test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718as_fn_error $? "no acceptable C compiler found in \$PATH
4719See \`config.log' for more details" "$LINENO" 5; }
4720
4721# Provide some information about the compiler.
4722$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4723set X $ac_compile
4724ac_compiler=$2
4725for ac_option in --version -v -V -qversion; do
4726  { { ac_try="$ac_compiler $ac_option >&5"
4727case "(($ac_try" in
4728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729  *) ac_try_echo=$ac_try;;
4730esac
4731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732$as_echo "$ac_try_echo"; } >&5
4733  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4734  ac_status=$?
4735  if test -s conftest.err; then
4736    sed '10a\
4737... rest of stderr output deleted ...
4738         10q' conftest.err >conftest.er1
4739    cat conftest.er1 >&5
4740  fi
4741  rm -f conftest.er1 conftest.err
4742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743  test $ac_status = 0; }
4744done
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4747$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4748if ${ac_cv_c_compiler_gnu+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h.  */
4753
4754int
4755main ()
4756{
4757#ifndef __GNUC__
4758       choke me
4759#endif
4760
4761  ;
4762  return 0;
4763}
4764_ACEOF
4765if ac_fn_c_try_compile "$LINENO"; then :
4766  ac_compiler_gnu=yes
4767else
4768  ac_compiler_gnu=no
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771ac_cv_c_compiler_gnu=$ac_compiler_gnu
4772
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4775$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4776if test $ac_compiler_gnu = yes; then
4777  GCC=yes
4778else
4779  GCC=
4780fi
4781ac_test_CFLAGS=${CFLAGS+set}
4782ac_save_CFLAGS=$CFLAGS
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4784$as_echo_n "checking whether $CC accepts -g... " >&6; }
4785if ${ac_cv_prog_cc_g+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  ac_save_c_werror_flag=$ac_c_werror_flag
4789   ac_c_werror_flag=yes
4790   ac_cv_prog_cc_g=no
4791   CFLAGS="-g"
4792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h.  */
4794
4795int
4796main ()
4797{
4798
4799  ;
4800  return 0;
4801}
4802_ACEOF
4803if ac_fn_c_try_compile "$LINENO"; then :
4804  ac_cv_prog_cc_g=yes
4805else
4806  CFLAGS=""
4807      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h.  */
4809
4810int
4811main ()
4812{
4813
4814  ;
4815  return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_compile "$LINENO"; then :
4819
4820else
4821  ac_c_werror_flag=$ac_save_c_werror_flag
4822	 CFLAGS="-g"
4823	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h.  */
4825
4826int
4827main ()
4828{
4829
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_compile "$LINENO"; then :
4835  ac_cv_prog_cc_g=yes
4836fi
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842   ac_c_werror_flag=$ac_save_c_werror_flag
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4845$as_echo "$ac_cv_prog_cc_g" >&6; }
4846if test "$ac_test_CFLAGS" = set; then
4847  CFLAGS=$ac_save_CFLAGS
4848elif test $ac_cv_prog_cc_g = yes; then
4849  if test "$GCC" = yes; then
4850    CFLAGS="-g -O2"
4851  else
4852    CFLAGS="-g"
4853  fi
4854else
4855  if test "$GCC" = yes; then
4856    CFLAGS="-O2"
4857  else
4858    CFLAGS=
4859  fi
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4862$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4863if ${ac_cv_prog_cc_c89+:} false; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  ac_cv_prog_cc_c89=no
4867ac_save_CC=$CC
4868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870#include <stdarg.h>
4871#include <stdio.h>
4872struct stat;
4873/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4874struct buf { int x; };
4875FILE * (*rcsopen) (struct buf *, struct stat *, int);
4876static char *e (p, i)
4877     char **p;
4878     int i;
4879{
4880  return p[i];
4881}
4882static char *f (char * (*g) (char **, int), char **p, ...)
4883{
4884  char *s;
4885  va_list v;
4886  va_start (v,p);
4887  s = g (p, va_arg (v,int));
4888  va_end (v);
4889  return s;
4890}
4891
4892/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4893   function prototypes and stuff, but not '\xHH' hex character constants.
4894   These don't provoke an error unfortunately, instead are silently treated
4895   as 'x'.  The following induces an error, until -std is added to get
4896   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4897   array size at least.  It's necessary to write '\x00'==0 to get something
4898   that's true only with -std.  */
4899int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4900
4901/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4902   inside strings and character constants.  */
4903#define FOO(x) 'x'
4904int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4905
4906int test (int i, double x);
4907struct s1 {int (*f) (int a);};
4908struct s2 {int (*f) (double a);};
4909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4910int argc;
4911char **argv;
4912int
4913main ()
4914{
4915return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4921	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4922do
4923  CC="$ac_save_CC $ac_arg"
4924  if ac_fn_c_try_compile "$LINENO"; then :
4925  ac_cv_prog_cc_c89=$ac_arg
4926fi
4927rm -f core conftest.err conftest.$ac_objext
4928  test "x$ac_cv_prog_cc_c89" != "xno" && break
4929done
4930rm -f conftest.$ac_ext
4931CC=$ac_save_CC
4932
4933fi
4934# AC_CACHE_VAL
4935case "x$ac_cv_prog_cc_c89" in
4936  x)
4937    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4938$as_echo "none needed" >&6; } ;;
4939  xno)
4940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4941$as_echo "unsupported" >&6; } ;;
4942  *)
4943    CC="$CC $ac_cv_prog_cc_c89"
4944    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4945$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4946esac
4947if test "x$ac_cv_prog_cc_c89" != xno; then :
4948
4949fi
4950
4951ac_ext=c
4952ac_cpp='$CPP $CPPFLAGS'
4953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4959$as_echo_n "checking $CC dependency flag... " >&6; }
4960echo 'void f(){}' >conftest.c
4961if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4962	DEPFLAG="-MM"
4963else
4964  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4965	DEPFLAG="-xM1"
4966  else
4967	DEPFLAG="-MM"  # dunno do something
4968  fi
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4971$as_echo "$DEPFLAG" >&6; }
4972rm -f conftest.c
4973
4974
4975
4976
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4979$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4980cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4981if eval \${cv_prog_cc_flag_$cache+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984
4985echo 'void f(void){}' >conftest.c
4986if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4987eval "cv_prog_cc_flag_$cache=yes"
4988else
4989eval "cv_prog_cc_flag_$cache=no"
4990fi
4991rm -f conftest conftest.o conftest.c
4992
4993fi
4994
4995if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997$as_echo "yes" >&6; }
4998:
4999ERRFLAG="-Werror"
5000else
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003:
5004ERRFLAG="-errwarn"
5005fi
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5010$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5011cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5012if eval \${cv_prog_cc_flag_$cache+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015
5016echo 'void f(void){}' >conftest.c
5017if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5018eval "cv_prog_cc_flag_$cache=yes"
5019else
5020eval "cv_prog_cc_flag_$cache=no"
5021fi
5022rm -f conftest conftest.o conftest.c
5023
5024fi
5025
5026if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5028$as_echo "yes" >&6; }
5029:
5030ERRFLAG="$ERRFLAG -Wall"
5031else
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034:
5035ERRFLAG="$ERRFLAG -errfmt"
5036fi
5037
5038
5039
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5043$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5044cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5045if eval \${cv_prog_cc_flag_$cache+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048
5049echo 'void f(void){}' >conftest.c
5050if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5051eval "cv_prog_cc_flag_$cache=yes"
5052else
5053eval "cv_prog_cc_flag_$cache=no"
5054fi
5055rm -f conftest conftest.o conftest.c
5056
5057fi
5058
5059if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5061$as_echo "yes" >&6; }
5062:
5063C99FLAG="-std=c99"
5064else
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }
5067:
5068
5069fi
5070
5071
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5074$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5075cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5076if eval \${cv_prog_cc_flag_$cache+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079
5080echo 'void f(void){}' >conftest.c
5081if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5082eval "cv_prog_cc_flag_$cache=yes"
5083else
5084eval "cv_prog_cc_flag_$cache=no"
5085fi
5086rm -f conftest conftest.o conftest.c
5087
5088fi
5089
5090if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5092$as_echo "yes" >&6; }
5093:
5094C99FLAG="-xc99"
5095else
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098:
5099
5100fi
5101
5102
5103for ac_header in getopt.h time.h
5104do :
5105  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5107"
5108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5109  cat >>confdefs.h <<_ACEOF
5110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111_ACEOF
5112
5113fi
5114
5115done
5116
5117
5118
5119
5120
5121{ $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
5122$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; }
5123cache=`$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`
5124if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127
5128echo '
5129#include "confdefs.h"
5130#include <stdlib.h>
5131#include <ctype.h>
5132#include <sys/time.h>
5133#ifdef HAVE_TIME_H
5134#include <time.h>
5135#endif
5136#include <unistd.h>
5137#include <netdb.h>
5138#ifdef HAVE_GETOPT_H
5139#include <getopt.h>
5140#endif
5141
5142int test() {
5143	int a;
5144	char **opts = NULL;
5145	struct timeval tv;
5146	char *t;
5147	time_t time = 0;
5148	char *buf = NULL;
5149	const char* str = NULL;
5150	struct msghdr msg;
5151	msg.msg_control = 0;
5152	t = ctime_r(&time, buf);
5153	tv.tv_usec = 10;
5154	srandom(32);
5155	a = getopt(2, opts, "a");
5156	a = isascii(32);
5157	str = gai_strerror(0);
5158	if(str && t && tv.tv_usec && msg.msg_control)
5159		a = 0;
5160	return a;
5161}
5162' > conftest.c
5163echo 'void f(){}' >>conftest.c
5164if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5165eval "cv_prog_cc_flag_needed_$cache=no"
5166else
5167
5168if 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
5169eval "cv_prog_cc_flag_needed_$cache=yes"
5170else
5171eval "cv_prog_cc_flag_needed_$cache=fail"
5172#echo 'Test with flag fails too!'
5173#cat conftest.c
5174#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"
5175#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`
5176#exit 1
5177fi
5178
5179fi
5180rm -f conftest conftest.c conftest.o
5181
5182fi
5183
5184if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186$as_echo "yes" >&6; }
5187:
5188CFLAGS="$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"
5189else
5190if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193#echo 'Test with flag is no!'
5194#cat conftest.c
5195#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"
5196#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`
5197#exit 1
5198:
5199
5200else
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5202$as_echo "failed" >&6; }
5203:
5204
5205fi
5206fi
5207
5208
5209
5210
5211
5212{ $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
5213$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; }
5214cache=`$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`
5215if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218
5219echo '
5220#include "confdefs.h"
5221#include <stdlib.h>
5222#include <ctype.h>
5223#include <sys/time.h>
5224#ifdef HAVE_TIME_H
5225#include <time.h>
5226#endif
5227#include <unistd.h>
5228#include <netdb.h>
5229#ifdef HAVE_GETOPT_H
5230#include <getopt.h>
5231#endif
5232
5233int test() {
5234	int a;
5235	char **opts = NULL;
5236	struct timeval tv;
5237	char *t;
5238	time_t time = 0;
5239	char *buf = NULL;
5240	const char* str = NULL;
5241	struct msghdr msg;
5242	msg.msg_control = 0;
5243	t = ctime_r(&time, buf);
5244	tv.tv_usec = 10;
5245	srandom(32);
5246	a = getopt(2, opts, "a");
5247	a = isascii(32);
5248	str = gai_strerror(0);
5249	if(str && t && tv.tv_usec && msg.msg_control)
5250		a = 0;
5251	return a;
5252}
5253' > conftest.c
5254echo 'void f(){}' >>conftest.c
5255if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5256eval "cv_prog_cc_flag_needed_$cache=no"
5257else
5258
5259if 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
5260eval "cv_prog_cc_flag_needed_$cache=yes"
5261else
5262eval "cv_prog_cc_flag_needed_$cache=fail"
5263#echo 'Test with flag fails too!'
5264#cat conftest.c
5265#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"
5266#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`
5267#exit 1
5268fi
5269
5270fi
5271rm -f conftest conftest.c conftest.o
5272
5273fi
5274
5275if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277$as_echo "yes" >&6; }
5278:
5279CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5280else
5281if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284#echo 'Test with flag is no!'
5285#cat conftest.c
5286#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"
5287#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`
5288#exit 1
5289:
5290
5291else
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5293$as_echo "failed" >&6; }
5294:
5295
5296fi
5297fi
5298
5299
5300
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5304$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5305cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5306if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309
5310echo '
5311#include <stdbool.h>
5312#include <ctype.h>
5313int test() {
5314        int a = 0;
5315        return a;
5316}
5317' > conftest.c
5318echo 'void f(){}' >>conftest.c
5319if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5320eval "cv_prog_cc_flag_needed_$cache=no"
5321else
5322
5323if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5324eval "cv_prog_cc_flag_needed_$cache=yes"
5325else
5326eval "cv_prog_cc_flag_needed_$cache=fail"
5327#echo 'Test with flag fails too!'
5328#cat conftest.c
5329#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5330#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5331#exit 1
5332fi
5333
5334fi
5335rm -f conftest conftest.c conftest.o
5336
5337fi
5338
5339if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5341$as_echo "yes" >&6; }
5342:
5343CFLAGS="$CFLAGS $C99FLAG"
5344else
5345if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348#echo 'Test with flag is no!'
5349#cat conftest.c
5350#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5351#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5352#exit 1
5353:
5354
5355else
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5357$as_echo "failed" >&6; }
5358:
5359
5360fi
5361fi
5362
5363
5364
5365
5366
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5368$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5369cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5370if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373
5374echo '
5375#include <ctype.h>
5376
5377int test() {
5378        int a;
5379        a = isascii(32);
5380        return a;
5381}
5382' > conftest.c
5383echo 'void f(){}' >>conftest.c
5384if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5385eval "cv_prog_cc_flag_needed_$cache=no"
5386else
5387
5388if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5389eval "cv_prog_cc_flag_needed_$cache=yes"
5390else
5391eval "cv_prog_cc_flag_needed_$cache=fail"
5392#echo 'Test with flag fails too!'
5393#cat conftest.c
5394#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5395#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5396#exit 1
5397fi
5398
5399fi
5400rm -f conftest conftest.c conftest.o
5401
5402fi
5403
5404if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406$as_echo "yes" >&6; }
5407:
5408CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5409else
5410if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
5413#echo 'Test with flag is no!'
5414#cat conftest.c
5415#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5416#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5417#exit 1
5418:
5419
5420else
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5422$as_echo "failed" >&6; }
5423:
5424
5425fi
5426fi
5427
5428
5429
5430
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5433$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5434cache=_D_GNU_SOURCE
5435if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438
5439echo '
5440#include <netinet/in.h>
5441
5442int test() {
5443        struct in6_pktinfo inf;
5444	int a = (int)sizeof(inf);
5445        return a;
5446}
5447' > conftest.c
5448echo 'void f(){}' >>conftest.c
5449if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5450eval "cv_prog_cc_flag_needed_$cache=no"
5451else
5452
5453if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5454eval "cv_prog_cc_flag_needed_$cache=yes"
5455else
5456eval "cv_prog_cc_flag_needed_$cache=fail"
5457#echo 'Test with flag fails too!'
5458#cat conftest.c
5459#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5460#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5461#exit 1
5462fi
5463
5464fi
5465rm -f conftest conftest.c conftest.o
5466
5467fi
5468
5469if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471$as_echo "yes" >&6; }
5472:
5473CFLAGS="$CFLAGS -D_GNU_SOURCE"
5474else
5475if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478#echo 'Test with flag is no!'
5479#cat conftest.c
5480#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5481#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5482#exit 1
5483:
5484
5485else
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5487$as_echo "failed" >&6; }
5488:
5489
5490fi
5491fi
5492
5493
5494# check again for GNU_SOURCE for setresgid. May fail if setresgid
5495# is not available at all. -D_FRSRESGID is to make this check unique.
5496# otherwise we would get the previous cached result.
5497
5498
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5501$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5502cache=_D_GNU_SOURCE__D_FRSRESGID
5503if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506
5507echo '
5508#include <unistd.h>
5509
5510int test() {
5511	int a = setresgid(0,0,0);
5512	a = setresuid(0,0,0);
5513        return a;
5514}
5515' > conftest.c
5516echo 'void f(){}' >>conftest.c
5517if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5518eval "cv_prog_cc_flag_needed_$cache=no"
5519else
5520
5521if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5522eval "cv_prog_cc_flag_needed_$cache=yes"
5523else
5524eval "cv_prog_cc_flag_needed_$cache=fail"
5525#echo 'Test with flag fails too!'
5526#cat conftest.c
5527#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5528#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5529#exit 1
5530fi
5531
5532fi
5533rm -f conftest conftest.c conftest.o
5534
5535fi
5536
5537if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539$as_echo "yes" >&6; }
5540:
5541CFLAGS="$CFLAGS -D_GNU_SOURCE"
5542else
5543if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546#echo 'Test with flag is no!'
5547#cat conftest.c
5548#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5549#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5550#exit 1
5551:
5552
5553else
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5555$as_echo "failed" >&6; }
5556:
5557
5558fi
5559fi
5560
5561
5562
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5566$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5567cache=_D_POSIX_C_SOURCE_200112
5568if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571
5572echo '
5573#include "confdefs.h"
5574#ifdef HAVE_TIME_H
5575#include <time.h>
5576#endif
5577#include <netdb.h>
5578
5579int test() {
5580        int a = 0;
5581        char *t;
5582        time_t time = 0;
5583        char *buf = NULL;
5584	const char* str = NULL;
5585        t = ctime_r(&time, buf);
5586	str = gai_strerror(0);
5587	if(t && str)
5588		a = 0;
5589        return a;
5590}
5591' > conftest.c
5592echo 'void f(){}' >>conftest.c
5593if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5594eval "cv_prog_cc_flag_needed_$cache=no"
5595else
5596
5597if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5598eval "cv_prog_cc_flag_needed_$cache=yes"
5599else
5600eval "cv_prog_cc_flag_needed_$cache=fail"
5601#echo 'Test with flag fails too!'
5602#cat conftest.c
5603#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5604#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5605#exit 1
5606fi
5607
5608fi
5609rm -f conftest conftest.c conftest.o
5610
5611fi
5612
5613if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615$as_echo "yes" >&6; }
5616:
5617CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5618else
5619if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622#echo 'Test with flag is no!'
5623#cat conftest.c
5624#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5625#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5626#exit 1
5627:
5628
5629else
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5631$as_echo "failed" >&6; }
5632:
5633
5634fi
5635fi
5636
5637
5638
5639
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5642$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5643cache=_D__EXTENSIONS__
5644if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647
5648echo '
5649#include "confdefs.h"
5650#include <stdlib.h>
5651#include <ctype.h>
5652#include <sys/time.h>
5653#ifdef HAVE_TIME_H
5654#include <time.h>
5655#endif
5656#include <unistd.h>
5657#ifdef HAVE_GETOPT_H
5658#include <getopt.h>
5659#endif
5660
5661int test() {
5662        int a;
5663        char **opts = NULL;
5664        struct timeval tv;
5665        tv.tv_usec = 10;
5666        srandom(32);
5667        a = getopt(2, opts, "a");
5668        a = isascii(32);
5669	if(tv.tv_usec)
5670		a = 0;
5671        return a;
5672}
5673' > conftest.c
5674echo 'void f(){}' >>conftest.c
5675if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5676eval "cv_prog_cc_flag_needed_$cache=no"
5677else
5678
5679if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5680eval "cv_prog_cc_flag_needed_$cache=yes"
5681else
5682eval "cv_prog_cc_flag_needed_$cache=fail"
5683#echo 'Test with flag fails too!'
5684#cat conftest.c
5685#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5686#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5687#exit 1
5688fi
5689
5690fi
5691rm -f conftest conftest.c conftest.o
5692
5693fi
5694
5695if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697$as_echo "yes" >&6; }
5698:
5699CFLAGS="$CFLAGS -D__EXTENSIONS__"
5700else
5701if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }
5704#echo 'Test with flag is no!'
5705#cat conftest.c
5706#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5707#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5708#exit 1
5709:
5710
5711else
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5713$as_echo "failed" >&6; }
5714:
5715
5716fi
5717fi
5718
5719
5720
5721
5722# debug mode flags warnings
5723# Check whether --enable-checking was given.
5724if test "${enable_checking+set}" = set; then :
5725  enableval=$enable_checking;
5726fi
5727
5728# Check whether --enable-debug was given.
5729if test "${enable_debug+set}" = set; then :
5730  enableval=$enable_debug;
5731fi
5732
5733if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5734else debug_enabled="$enable_checking"; fi
5735
5736case "$debug_enabled" in
5737        yes)
5738
5739
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5741$as_echo_n "checking whether $CC supports -W... " >&6; }
5742cache=`echo W | sed 'y%.=/+-%___p_%'`
5743if eval \${cv_prog_cc_flag_$cache+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746
5747echo 'void f(void){}' >conftest.c
5748if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5749eval "cv_prog_cc_flag_$cache=yes"
5750else
5751eval "cv_prog_cc_flag_$cache=no"
5752fi
5753rm -f conftest conftest.o conftest.c
5754
5755fi
5756
5757if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759$as_echo "yes" >&6; }
5760:
5761CFLAGS="$CFLAGS -W"
5762else
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765:
5766
5767fi
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5772$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5773cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5774if eval \${cv_prog_cc_flag_$cache+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777
5778echo 'void f(void){}' >conftest.c
5779if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5780eval "cv_prog_cc_flag_$cache=yes"
5781else
5782eval "cv_prog_cc_flag_$cache=no"
5783fi
5784rm -f conftest conftest.o conftest.c
5785
5786fi
5787
5788if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790$as_echo "yes" >&6; }
5791:
5792CFLAGS="$CFLAGS -Wall"
5793else
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
5796:
5797
5798fi
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5803$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5804cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5805if eval \${cv_prog_cc_flag_$cache+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808
5809echo 'void f(void){}' >conftest.c
5810if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5811eval "cv_prog_cc_flag_$cache=yes"
5812else
5813eval "cv_prog_cc_flag_$cache=no"
5814fi
5815rm -f conftest conftest.o conftest.c
5816
5817fi
5818
5819if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5821$as_echo "yes" >&6; }
5822:
5823CFLAGS="$CFLAGS -Wextra"
5824else
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827:
5828
5829fi
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5834$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5835cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5836if eval \${cv_prog_cc_flag_$cache+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839
5840echo 'void f(void){}' >conftest.c
5841if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5842eval "cv_prog_cc_flag_$cache=yes"
5843else
5844eval "cv_prog_cc_flag_$cache=no"
5845fi
5846rm -f conftest conftest.o conftest.c
5847
5848fi
5849
5850if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852$as_echo "yes" >&6; }
5853:
5854CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5855else
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858:
5859
5860fi
5861
5862
5863$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5864
5865		;;
5866	no|*)
5867		# nothing to do.
5868		;;
5869esac
5870
5871    # Check whether --enable-flto was given.
5872if test "${enable_flto+set}" = set; then :
5873  enableval=$enable_flto;
5874fi
5875
5876    if test "x$enable_flto" != "xno"; then :
5877
5878        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5879$as_echo_n "checking if $CC supports -flto... " >&6; }
5880        BAKCFLAGS="$CFLAGS"
5881        CFLAGS="$CFLAGS -flto"
5882        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884
5885int
5886main ()
5887{
5888
5889  ;
5890  return 0;
5891}
5892_ACEOF
5893if ac_fn_c_try_link "$LINENO"; then :
5894
5895            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5896                CFLAGS="$BAKCFLAGS"
5897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898$as_echo "no" >&6; }
5899            else
5900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5901$as_echo "yes" >&6; }
5902            fi
5903            rm -f conftest conftest.c conftest.o
5904
5905else
5906  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909rm -f core conftest.err conftest.$ac_objext \
5910    conftest$ac_exeext conftest.$ac_ext
5911
5912fi
5913
5914
5915    # Check whether --enable-pie was given.
5916if test "${enable_pie+set}" = set; then :
5917  enableval=$enable_pie;
5918fi
5919
5920    if test "x$enable_pie" = "xyes"; then :
5921
5922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5923$as_echo_n "checking if $CC supports PIE... " >&6; }
5924	BAKLDFLAGS="$LDFLAGS"
5925	BAKCFLAGS="$CFLAGS"
5926	LDFLAGS="$LDFLAGS -pie"
5927	CFLAGS="$CFLAGS -fPIE"
5928	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930
5931int
5932main ()
5933{
5934
5935  ;
5936  return 0;
5937}
5938_ACEOF
5939if ac_fn_c_try_link "$LINENO"; then :
5940
5941	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5942		LDFLAGS="$BAKLDFLAGS"
5943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945	    else
5946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947$as_echo "yes" >&6; }
5948	    fi
5949	    rm -f conftest conftest.c conftest.o
5950
5951else
5952  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956    conftest$ac_exeext conftest.$ac_ext
5957
5958fi
5959
5960
5961    # Check whether --enable-relro_now was given.
5962if test "${enable_relro_now+set}" = set; then :
5963  enableval=$enable_relro_now;
5964fi
5965
5966    if test "x$enable_relro_now" = "xyes"; then :
5967
5968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5969$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5970	BAKLDFLAGS="$LDFLAGS"
5971	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5972	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h.  */
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_link "$LINENO"; then :
5984
5985	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5986		LDFLAGS="$BAKLDFLAGS"
5987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989	    else
5990		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5991$as_echo "yes" >&6; }
5992	    fi
5993	    rm -f conftest conftest.c conftest.o
5994
5995else
5996  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999rm -f core conftest.err conftest.$ac_objext \
6000    conftest$ac_exeext conftest.$ac_ext
6001
6002fi
6003
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6006$as_echo_n "checking for inline... " >&6; }
6007if ${ac_cv_c_inline+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  ac_cv_c_inline=no
6011for ac_kw in inline __inline__ __inline; do
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014#ifndef __cplusplus
6015typedef int foo_t;
6016static $ac_kw foo_t static_foo () {return 0; }
6017$ac_kw foo_t foo () {return 0; }
6018#endif
6019
6020_ACEOF
6021if ac_fn_c_try_compile "$LINENO"; then :
6022  ac_cv_c_inline=$ac_kw
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025  test "$ac_cv_c_inline" != no && break
6026done
6027
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6030$as_echo "$ac_cv_c_inline" >&6; }
6031
6032case $ac_cv_c_inline in
6033  inline | yes) ;;
6034  *)
6035    case $ac_cv_c_inline in
6036      no) ac_val=;;
6037      *) ac_val=$ac_cv_c_inline;;
6038    esac
6039    cat >>confdefs.h <<_ACEOF
6040#ifndef __cplusplus
6041#define inline $ac_val
6042#endif
6043_ACEOF
6044    ;;
6045esac
6046
6047
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6049$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6050if ${ac_cv_c_format_attribute+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  ac_cv_c_format_attribute=no
6054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056#include <stdio.h>
6057void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6058void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6059
6060int
6061main ()
6062{
6063
6064   f ("%s", "str");
6065
6066  ;
6067  return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071  ac_cv_c_format_attribute="yes"
6072else
6073  ac_cv_c_format_attribute="no"
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076
6077fi
6078
6079
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6081$as_echo "$ac_cv_c_format_attribute" >&6; }
6082if test $ac_cv_c_format_attribute = yes; then
6083
6084$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6085
6086fi
6087
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6090$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6091if ${ac_cv_c_unused_attribute+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  ac_cv_c_unused_attribute=no
6095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h.  */
6097#include <stdio.h>
6098void f (char *u __attribute__((unused)));
6099
6100int
6101main ()
6102{
6103
6104   f ("x");
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_compile "$LINENO"; then :
6111  ac_cv_c_unused_attribute="yes"
6112else
6113  ac_cv_c_unused_attribute="no"
6114fi
6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116
6117fi
6118
6119
6120
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6123$as_echo "$ac_cv_c_unused_attribute" >&6; }
6124if test $ac_cv_c_unused_attribute = yes; then
6125
6126$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6127
6128fi
6129
6130
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6134$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6135if ${ac_cv_c_weak_attribute+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  ac_cv_c_weak_attribute=no
6139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h.  */
6141 #include <stdio.h>
6142__attribute__((weak)) void f(int x) { printf("%d", x); }
6143
6144int
6145main ()
6146{
6147
6148   f(1);
6149
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155  ac_cv_c_weak_attribute="yes"
6156else
6157  ac_cv_c_weak_attribute="no"
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160
6161fi
6162
6163
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6165$as_echo "$ac_cv_c_weak_attribute" >&6; }
6166if test $ac_cv_c_weak_attribute = yes; then
6167
6168$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6169
6170fi
6171
6172
6173if test "$srcdir" != "."; then
6174	CPPFLAGS="$CPPFLAGS -I$srcdir"
6175fi
6176
6177
6178
6179for ac_prog in flex lex
6180do
6181  # Extract the first word of "$ac_prog", so it can be a program name with args.
6182set dummy $ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if ${ac_cv_prog_LEX+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  if test -n "$LEX"; then
6189  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194  IFS=$as_save_IFS
6195  test -z "$as_dir" && as_dir=.
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198    ac_cv_prog_LEX="$ac_prog"
6199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200    break 2
6201  fi
6202done
6203  done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208LEX=$ac_cv_prog_LEX
6209if test -n "$LEX"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6211$as_echo "$LEX" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218  test -n "$LEX" && break
6219done
6220test -n "$LEX" || LEX=":"
6221
6222if test "x$LEX" != "x:"; then
6223  cat >conftest.l <<_ACEOF
6224%%
6225a { ECHO; }
6226b { REJECT; }
6227c { yymore (); }
6228d { yyless (1); }
6229e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6230    yyless ((input () != 0)); }
6231f { unput (yytext[0]); }
6232. { BEGIN INITIAL; }
6233%%
6234#ifdef YYTEXT_POINTER
6235extern char *yytext;
6236#endif
6237int
6238main (void)
6239{
6240  return ! yylex () + ! yywrap ();
6241}
6242_ACEOF
6243{ { ac_try="$LEX conftest.l"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6249$as_echo "$ac_try_echo"; } >&5
6250  (eval "$LEX conftest.l") 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253  test $ac_status = 0; }
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6255$as_echo_n "checking lex output file root... " >&6; }
6256if ${ac_cv_prog_lex_root+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259
6260if test -f lex.yy.c; then
6261  ac_cv_prog_lex_root=lex.yy
6262elif test -f lexyy.c; then
6263  ac_cv_prog_lex_root=lexyy
6264else
6265  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6266fi
6267fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6269$as_echo "$ac_cv_prog_lex_root" >&6; }
6270LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6271
6272if test -z "${LEXLIB+set}"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6274$as_echo_n "checking lex library... " >&6; }
6275if ${ac_cv_lib_lex+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278
6279    ac_save_LIBS=$LIBS
6280    ac_cv_lib_lex='none needed'
6281    for ac_lib in '' -lfl -ll; do
6282      LIBS="$ac_lib $ac_save_LIBS"
6283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285`cat $LEX_OUTPUT_ROOT.c`
6286_ACEOF
6287if ac_fn_c_try_link "$LINENO"; then :
6288  ac_cv_lib_lex=$ac_lib
6289fi
6290rm -f core conftest.err conftest.$ac_objext \
6291    conftest$ac_exeext conftest.$ac_ext
6292      test "$ac_cv_lib_lex" != 'none needed' && break
6293    done
6294    LIBS=$ac_save_LIBS
6295
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6298$as_echo "$ac_cv_lib_lex" >&6; }
6299  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6300fi
6301
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6304$as_echo_n "checking whether yytext is a pointer... " >&6; }
6305if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  # POSIX says lex can declare yytext either as a pointer or an array; the
6309# default is implementation-dependent.  Figure out which it is, since
6310# not all implementations provide the %pointer and %array declarations.
6311ac_cv_prog_lex_yytext_pointer=no
6312ac_save_LIBS=$LIBS
6313LIBS="$LEXLIB $ac_save_LIBS"
6314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316
6317  #define YYTEXT_POINTER 1
6318`cat $LEX_OUTPUT_ROOT.c`
6319_ACEOF
6320if ac_fn_c_try_link "$LINENO"; then :
6321  ac_cv_prog_lex_yytext_pointer=yes
6322fi
6323rm -f core conftest.err conftest.$ac_objext \
6324    conftest$ac_exeext conftest.$ac_ext
6325LIBS=$ac_save_LIBS
6326
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6329$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6330if test $ac_cv_prog_lex_yytext_pointer = yes; then
6331
6332$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6333
6334fi
6335rm -f conftest.l $LEX_OUTPUT_ROOT.c
6336
6337fi
6338
6339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6340$as_echo_n "checking for yylex_destroy... " >&6; }
6341	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6342
6343$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6344
6345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346$as_echo "yes" >&6; }
6347	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }; fi
6349
6350for ac_prog in 'bison -y' byacc
6351do
6352  # Extract the first word of "$ac_prog", so it can be a program name with args.
6353set dummy $ac_prog; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
6356if ${ac_cv_prog_YACC+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  if test -n "$YACC"; then
6360  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369    ac_cv_prog_YACC="$ac_prog"
6370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371    break 2
6372  fi
6373done
6374  done
6375IFS=$as_save_IFS
6376
6377fi
6378fi
6379YACC=$ac_cv_prog_YACC
6380if test -n "$YACC"; then
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6382$as_echo "$YACC" >&6; }
6383else
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; }
6386fi
6387
6388
6389  test -n "$YACC" && break
6390done
6391test -n "$YACC" || YACC="yacc"
6392
6393# Extract the first word of "doxygen", so it can be a program name with args.
6394set dummy doxygen; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
6397if ${ac_cv_prog_doxygen+:} false; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  if test -n "$doxygen"; then
6401  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406  IFS=$as_save_IFS
6407  test -z "$as_dir" && as_dir=.
6408    for ac_exec_ext in '' $ac_executable_extensions; do
6409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410    ac_cv_prog_doxygen="doxygen"
6411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412    break 2
6413  fi
6414done
6415  done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420doxygen=$ac_cv_prog_doxygen
6421if test -n "$doxygen"; then
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6423$as_echo "$doxygen" >&6; }
6424else
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}strip; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_STRIP+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$STRIP"; then
6439  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458STRIP=$ac_cv_prog_STRIP
6459if test -n "$STRIP"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6461$as_echo "$STRIP" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_STRIP"; then
6470  ac_ct_STRIP=$STRIP
6471  # Extract the first word of "strip", so it can be a program name with args.
6472set dummy strip; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$ac_ct_STRIP"; then
6479  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488    ac_cv_prog_ac_ct_STRIP="strip"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6499if test -n "$ac_ct_STRIP"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6501$as_echo "$ac_ct_STRIP" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507  if test "x$ac_ct_STRIP" = x; then
6508    STRIP=""
6509  else
6510    case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516    STRIP=$ac_ct_STRIP
6517  fi
6518else
6519  STRIP="$ac_cv_prog_STRIP"
6520fi
6521
6522ac_aux_dir=
6523for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6524  if test -f "$ac_dir/install-sh"; then
6525    ac_aux_dir=$ac_dir
6526    ac_install_sh="$ac_aux_dir/install-sh -c"
6527    break
6528  elif test -f "$ac_dir/install.sh"; then
6529    ac_aux_dir=$ac_dir
6530    ac_install_sh="$ac_aux_dir/install.sh -c"
6531    break
6532  elif test -f "$ac_dir/shtool"; then
6533    ac_aux_dir=$ac_dir
6534    ac_install_sh="$ac_aux_dir/shtool install -c"
6535    break
6536  fi
6537done
6538if test -z "$ac_aux_dir"; then
6539  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6540fi
6541
6542# These three variables are undocumented and unsupported,
6543# and are intended to be withdrawn in a future Autoconf release.
6544# They can cause serious problems if a builder's source tree is in a directory
6545# whose full name contains unusual characters.
6546ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6547ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6548ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6549
6550
6551# Make sure we can run config.sub.
6552$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6553  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6554
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6556$as_echo_n "checking build system type... " >&6; }
6557if ${ac_cv_build+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  ac_build_alias=$build_alias
6561test "x$ac_build_alias" = x &&
6562  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6563test "x$ac_build_alias" = x &&
6564  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6566  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6567
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6570$as_echo "$ac_cv_build" >&6; }
6571case $ac_cv_build in
6572*-*-*) ;;
6573*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6574esac
6575build=$ac_cv_build
6576ac_save_IFS=$IFS; IFS='-'
6577set x $ac_cv_build
6578shift
6579build_cpu=$1
6580build_vendor=$2
6581shift; shift
6582# Remember, the first character of IFS is used to create $*,
6583# except with old shells:
6584build_os=$*
6585IFS=$ac_save_IFS
6586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6587
6588
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6590$as_echo_n "checking host system type... " >&6; }
6591if ${ac_cv_host+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test "x$host_alias" = x; then
6595  ac_cv_host=$ac_cv_build
6596else
6597  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6598    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6599fi
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6603$as_echo "$ac_cv_host" >&6; }
6604case $ac_cv_host in
6605*-*-*) ;;
6606*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6607esac
6608host=$ac_cv_host
6609ac_save_IFS=$IFS; IFS='-'
6610set x $ac_cv_host
6611shift
6612host_cpu=$1
6613host_vendor=$2
6614shift; shift
6615# Remember, the first character of IFS is used to create $*,
6616# except with old shells:
6617host_os=$*
6618IFS=$ac_save_IFS
6619case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6620
6621
6622
6623# skip these tests, we do not need them.
6624
6625
6626
6627
6628
6629
6630
6631
6632# always use ./libtool unless override from commandline (libtool=mylibtool)
6633if test -z "$libtool"; then
6634	libtool="./libtool"
6635fi
6636
6637# avoid libtool max commandline length test on systems that fork slowly.
6638
6639if echo "$host_os" | grep "sunos4" >/dev/null; then
6640	lt_cv_sys_max_cmd_len=32750;
6641fi
6642if test -n "$ac_tool_prefix"; then
6643  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6644set dummy ${ac_tool_prefix}ar; ac_word=$2
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646$as_echo_n "checking for $ac_word... " >&6; }
6647if ${ac_cv_path_AR+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  case $AR in
6651  [\\/]* | ?:[\\/]*)
6652  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6653  ;;
6654  *)
6655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670  ;;
6671esac
6672fi
6673AR=$ac_cv_path_AR
6674if test -n "$AR"; then
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6676$as_echo "$AR" >&6; }
6677else
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679$as_echo "no" >&6; }
6680fi
6681
6682
6683fi
6684if test -z "$ac_cv_path_AR"; then
6685  ac_pt_AR=$AR
6686  # Extract the first word of "ar", so it can be a program name with args.
6687set dummy ar; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if ${ac_cv_path_ac_pt_AR+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  case $ac_pt_AR in
6694  [\\/]* | ?:[\\/]*)
6695  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6696  ;;
6697  *)
6698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713  ;;
6714esac
6715fi
6716ac_pt_AR=$ac_cv_path_ac_pt_AR
6717if test -n "$ac_pt_AR"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6719$as_echo "$ac_pt_AR" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725  if test "x$ac_pt_AR" = x; then
6726    AR="false"
6727  else
6728    case $cross_compiling:$ac_tool_warned in
6729yes:)
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734    AR=$ac_pt_AR
6735  fi
6736else
6737  AR="$ac_cv_path_AR"
6738fi
6739
6740if test $AR = false; then
6741	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6742fi
6743
6744case `pwd` in
6745  *\ * | *\	*)
6746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6747$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6748esac
6749
6750
6751
6752macro_version='2.4.6'
6753macro_revision='2.4.6'
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767ltmain=$ac_aux_dir/ltmain.sh
6768
6769# Backslashify metacharacters that are still active within
6770# double-quoted strings.
6771sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6772
6773# Same as above, but do not quote variable references.
6774double_quote_subst='s/\(["`\\]\)/\\\1/g'
6775
6776# Sed substitution to delay expansion of an escaped shell variable in a
6777# double_quote_subst'ed string.
6778delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6779
6780# Sed substitution to delay expansion of an escaped single quote.
6781delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6782
6783# Sed substitution to avoid accidental globbing in evaled expressions
6784no_glob_subst='s/\*/\\\*/g'
6785
6786ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6787ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6788ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6789
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6791$as_echo_n "checking how to print strings... " >&6; }
6792# Test print first, because it will be a builtin if present.
6793if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6794   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6795  ECHO='print -r --'
6796elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6797  ECHO='printf %s\n'
6798else
6799  # Use this function as a fallback that always works.
6800  func_fallback_echo ()
6801  {
6802    eval 'cat <<_LTECHO_EOF
6803$1
6804_LTECHO_EOF'
6805  }
6806  ECHO='func_fallback_echo'
6807fi
6808
6809# func_echo_all arg...
6810# Invoke $ECHO with all args, space-separated.
6811func_echo_all ()
6812{
6813    $ECHO ""
6814}
6815
6816case $ECHO in
6817  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6818$as_echo "printf" >&6; } ;;
6819  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6820$as_echo "print -r" >&6; } ;;
6821  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6822$as_echo "cat" >&6; } ;;
6823esac
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6839$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6840if ${ac_cv_path_SED+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6844     for ac_i in 1 2 3 4 5 6 7; do
6845       ac_script="$ac_script$as_nl$ac_script"
6846     done
6847     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6848     { ac_script=; unset ac_script;}
6849     if test -z "$SED"; then
6850  ac_path_SED_found=false
6851  # Loop through the user's path and test for each of PROGNAME-LIST
6852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855  IFS=$as_save_IFS
6856  test -z "$as_dir" && as_dir=.
6857    for ac_prog in sed gsed; do
6858    for ac_exec_ext in '' $ac_executable_extensions; do
6859      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6860      as_fn_executable_p "$ac_path_SED" || continue
6861# Check for GNU ac_path_SED and select it if it is found.
6862  # Check for GNU $ac_path_SED
6863case `"$ac_path_SED" --version 2>&1` in
6864*GNU*)
6865  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6866*)
6867  ac_count=0
6868  $as_echo_n 0123456789 >"conftest.in"
6869  while :
6870  do
6871    cat "conftest.in" "conftest.in" >"conftest.tmp"
6872    mv "conftest.tmp" "conftest.in"
6873    cp "conftest.in" "conftest.nl"
6874    $as_echo '' >> "conftest.nl"
6875    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6877    as_fn_arith $ac_count + 1 && ac_count=$as_val
6878    if test $ac_count -gt ${ac_path_SED_max-0}; then
6879      # Best one so far, save it but keep looking for a better one
6880      ac_cv_path_SED="$ac_path_SED"
6881      ac_path_SED_max=$ac_count
6882    fi
6883    # 10*(2^10) chars as input seems more than enough
6884    test $ac_count -gt 10 && break
6885  done
6886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6887esac
6888
6889      $ac_path_SED_found && break 3
6890    done
6891  done
6892  done
6893IFS=$as_save_IFS
6894  if test -z "$ac_cv_path_SED"; then
6895    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6896  fi
6897else
6898  ac_cv_path_SED=$SED
6899fi
6900
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6903$as_echo "$ac_cv_path_SED" >&6; }
6904 SED="$ac_cv_path_SED"
6905  rm -f conftest.sed
6906
6907test -z "$SED" && SED=sed
6908Xsed="$SED -e 1s/^X//"
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6921$as_echo_n "checking for fgrep... " >&6; }
6922if ${ac_cv_path_FGREP+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6926   then ac_cv_path_FGREP="$GREP -F"
6927   else
6928     if test -z "$FGREP"; then
6929  ac_path_FGREP_found=false
6930  # Loop through the user's path and test for each of PROGNAME-LIST
6931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_prog in fgrep; do
6937    for ac_exec_ext in '' $ac_executable_extensions; do
6938      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6939      as_fn_executable_p "$ac_path_FGREP" || continue
6940# Check for GNU ac_path_FGREP and select it if it is found.
6941  # Check for GNU $ac_path_FGREP
6942case `"$ac_path_FGREP" --version 2>&1` in
6943*GNU*)
6944  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6945*)
6946  ac_count=0
6947  $as_echo_n 0123456789 >"conftest.in"
6948  while :
6949  do
6950    cat "conftest.in" "conftest.in" >"conftest.tmp"
6951    mv "conftest.tmp" "conftest.in"
6952    cp "conftest.in" "conftest.nl"
6953    $as_echo 'FGREP' >> "conftest.nl"
6954    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6956    as_fn_arith $ac_count + 1 && ac_count=$as_val
6957    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6958      # Best one so far, save it but keep looking for a better one
6959      ac_cv_path_FGREP="$ac_path_FGREP"
6960      ac_path_FGREP_max=$ac_count
6961    fi
6962    # 10*(2^10) chars as input seems more than enough
6963    test $ac_count -gt 10 && break
6964  done
6965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6966esac
6967
6968      $ac_path_FGREP_found && break 3
6969    done
6970  done
6971  done
6972IFS=$as_save_IFS
6973  if test -z "$ac_cv_path_FGREP"; then
6974    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6975  fi
6976else
6977  ac_cv_path_FGREP=$FGREP
6978fi
6979
6980   fi
6981fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6983$as_echo "$ac_cv_path_FGREP" >&6; }
6984 FGREP="$ac_cv_path_FGREP"
6985
6986
6987test -z "$GREP" && GREP=grep
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007# Check whether --with-gnu-ld was given.
7008if test "${with_gnu_ld+set}" = set; then :
7009  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7010else
7011  with_gnu_ld=no
7012fi
7013
7014ac_prog=ld
7015if test yes = "$GCC"; then
7016  # Check if gcc -print-prog-name=ld gives a path.
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7018$as_echo_n "checking for ld used by $CC... " >&6; }
7019  case $host in
7020  *-*-mingw*)
7021    # gcc leaves a trailing carriage return, which upsets mingw
7022    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7023  *)
7024    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7025  esac
7026  case $ac_prog in
7027    # Accept absolute paths.
7028    [\\/]* | ?:[\\/]*)
7029      re_direlt='/[^/][^/]*/\.\./'
7030      # Canonicalize the pathname of ld
7031      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7032      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7033	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7034      done
7035      test -z "$LD" && LD=$ac_prog
7036      ;;
7037  "")
7038    # If it fails, then pretend we aren't using GCC.
7039    ac_prog=ld
7040    ;;
7041  *)
7042    # If it is relative, then search for the first ld in PATH.
7043    with_gnu_ld=unknown
7044    ;;
7045  esac
7046elif test yes = "$with_gnu_ld"; then
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7048$as_echo_n "checking for GNU ld... " >&6; }
7049else
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7051$as_echo_n "checking for non-GNU ld... " >&6; }
7052fi
7053if ${lt_cv_path_LD+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  if test -z "$LD"; then
7057  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7058  for ac_dir in $PATH; do
7059    IFS=$lt_save_ifs
7060    test -z "$ac_dir" && ac_dir=.
7061    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7062      lt_cv_path_LD=$ac_dir/$ac_prog
7063      # Check to see if the program is GNU ld.  I'd rather use --version,
7064      # but apparently some variants of GNU ld only accept -v.
7065      # Break only if it was the GNU/non-GNU ld that we prefer.
7066      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7067      *GNU* | *'with BFD'*)
7068	test no != "$with_gnu_ld" && break
7069	;;
7070      *)
7071	test yes != "$with_gnu_ld" && break
7072	;;
7073      esac
7074    fi
7075  done
7076  IFS=$lt_save_ifs
7077else
7078  lt_cv_path_LD=$LD # Let the user override the test with a path.
7079fi
7080fi
7081
7082LD=$lt_cv_path_LD
7083if test -n "$LD"; then
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7085$as_echo "$LD" >&6; }
7086else
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7092$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7093if ${lt_cv_prog_gnu_ld+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7097case `$LD -v 2>&1 </dev/null` in
7098*GNU* | *'with BFD'*)
7099  lt_cv_prog_gnu_ld=yes
7100  ;;
7101*)
7102  lt_cv_prog_gnu_ld=no
7103  ;;
7104esac
7105fi
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7107$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7108with_gnu_ld=$lt_cv_prog_gnu_ld
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7119$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7120if ${lt_cv_path_NM+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  if test -n "$NM"; then
7124  # Let the user override the test.
7125  lt_cv_path_NM=$NM
7126else
7127  lt_nm_to_check=${ac_tool_prefix}nm
7128  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7129    lt_nm_to_check="$lt_nm_to_check nm"
7130  fi
7131  for lt_tmp_nm in $lt_nm_to_check; do
7132    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7133    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7134      IFS=$lt_save_ifs
7135      test -z "$ac_dir" && ac_dir=.
7136      tmp_nm=$ac_dir/$lt_tmp_nm
7137      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7138	# Check to see if the nm accepts a BSD-compat flag.
7139	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7140	#   nm: unknown option "B" ignored
7141	# Tru64's nm complains that /dev/null is an invalid object file
7142	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7143	case $build_os in
7144	mingw*) lt_bad_file=conftest.nm/nofile ;;
7145	*) lt_bad_file=/dev/null ;;
7146	esac
7147	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7148	*$lt_bad_file* | *'Invalid file or object type'*)
7149	  lt_cv_path_NM="$tmp_nm -B"
7150	  break 2
7151	  ;;
7152	*)
7153	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7154	  */dev/null*)
7155	    lt_cv_path_NM="$tmp_nm -p"
7156	    break 2
7157	    ;;
7158	  *)
7159	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7160	    continue # so that we can try to find one that supports BSD flags
7161	    ;;
7162	  esac
7163	  ;;
7164	esac
7165      fi
7166    done
7167    IFS=$lt_save_ifs
7168  done
7169  : ${lt_cv_path_NM=no}
7170fi
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7173$as_echo "$lt_cv_path_NM" >&6; }
7174if test no != "$lt_cv_path_NM"; then
7175  NM=$lt_cv_path_NM
7176else
7177  # Didn't find any BSD compatible name lister, look for dumpbin.
7178  if test -n "$DUMPBIN"; then :
7179    # Let the user override the test.
7180  else
7181    if test -n "$ac_tool_prefix"; then
7182  for ac_prog in dumpbin "link -dump"
7183  do
7184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_DUMPBIN+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$DUMPBIN"; then
7192  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211DUMPBIN=$ac_cv_prog_DUMPBIN
7212if test -n "$DUMPBIN"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7214$as_echo "$DUMPBIN" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221    test -n "$DUMPBIN" && break
7222  done
7223fi
7224if test -z "$DUMPBIN"; then
7225  ac_ct_DUMPBIN=$DUMPBIN
7226  for ac_prog in dumpbin "link -dump"
7227do
7228  # Extract the first word of "$ac_prog", so it can be a program name with args.
7229set dummy $ac_prog; ac_word=$2
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231$as_echo_n "checking for $ac_word... " >&6; }
7232if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  if test -n "$ac_ct_DUMPBIN"; then
7236  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241  IFS=$as_save_IFS
7242  test -z "$as_dir" && as_dir=.
7243    for ac_exec_ext in '' $ac_executable_extensions; do
7244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247    break 2
7248  fi
7249done
7250  done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7256if test -n "$ac_ct_DUMPBIN"; then
7257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7258$as_echo "$ac_ct_DUMPBIN" >&6; }
7259else
7260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261$as_echo "no" >&6; }
7262fi
7263
7264
7265  test -n "$ac_ct_DUMPBIN" && break
7266done
7267
7268  if test "x$ac_ct_DUMPBIN" = x; then
7269    DUMPBIN=":"
7270  else
7271    case $cross_compiling:$ac_tool_warned in
7272yes:)
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275ac_tool_warned=yes ;;
7276esac
7277    DUMPBIN=$ac_ct_DUMPBIN
7278  fi
7279fi
7280
7281    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7282    *COFF*)
7283      DUMPBIN="$DUMPBIN -symbols -headers"
7284      ;;
7285    *)
7286      DUMPBIN=:
7287      ;;
7288    esac
7289  fi
7290
7291  if test : != "$DUMPBIN"; then
7292    NM=$DUMPBIN
7293  fi
7294fi
7295test -z "$NM" && NM=nm
7296
7297
7298
7299
7300
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7303$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7304if ${lt_cv_nm_interface+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  lt_cv_nm_interface="BSD nm"
7308  echo "int some_variable = 0;" > conftest.$ac_ext
7309  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7310  (eval "$ac_compile" 2>conftest.err)
7311  cat conftest.err >&5
7312  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7313  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7314  cat conftest.err >&5
7315  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7316  cat conftest.out >&5
7317  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7318    lt_cv_nm_interface="MS dumpbin"
7319  fi
7320  rm -f conftest*
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7323$as_echo "$lt_cv_nm_interface" >&6; }
7324
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7326$as_echo_n "checking whether ln -s works... " >&6; }
7327LN_S=$as_ln_s
7328if test "$LN_S" = "ln -s"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330$as_echo "yes" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7333$as_echo "no, using $LN_S" >&6; }
7334fi
7335
7336# find the maximum length of command line arguments
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7338$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7339if ${lt_cv_sys_max_cmd_len+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342    i=0
7343  teststring=ABCD
7344
7345  case $build_os in
7346  msdosdjgpp*)
7347    # On DJGPP, this test can blow up pretty badly due to problems in libc
7348    # (any single argument exceeding 2000 bytes causes a buffer overrun
7349    # during glob expansion).  Even if it were fixed, the result of this
7350    # check would be larger than it should be.
7351    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7352    ;;
7353
7354  gnu*)
7355    # Under GNU Hurd, this test is not required because there is
7356    # no limit to the length of command line arguments.
7357    # Libtool will interpret -1 as no limit whatsoever
7358    lt_cv_sys_max_cmd_len=-1;
7359    ;;
7360
7361  cygwin* | mingw* | cegcc*)
7362    # On Win9x/ME, this test blows up -- it succeeds, but takes
7363    # about 5 minutes as the teststring grows exponentially.
7364    # Worse, since 9x/ME are not pre-emptively multitasking,
7365    # you end up with a "frozen" computer, even though with patience
7366    # the test eventually succeeds (with a max line length of 256k).
7367    # Instead, let's just punt: use the minimum linelength reported by
7368    # all of the supported platforms: 8192 (on NT/2K/XP).
7369    lt_cv_sys_max_cmd_len=8192;
7370    ;;
7371
7372  mint*)
7373    # On MiNT this can take a long time and run out of memory.
7374    lt_cv_sys_max_cmd_len=8192;
7375    ;;
7376
7377  amigaos*)
7378    # On AmigaOS with pdksh, this test takes hours, literally.
7379    # So we just punt and use a minimum line length of 8192.
7380    lt_cv_sys_max_cmd_len=8192;
7381    ;;
7382
7383  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7384    # This has been around since 386BSD, at least.  Likely further.
7385    if test -x /sbin/sysctl; then
7386      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7387    elif test -x /usr/sbin/sysctl; then
7388      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7389    else
7390      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7391    fi
7392    # And add a safety zone
7393    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7394    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7395    ;;
7396
7397  interix*)
7398    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7399    lt_cv_sys_max_cmd_len=196608
7400    ;;
7401
7402  os2*)
7403    # The test takes a long time on OS/2.
7404    lt_cv_sys_max_cmd_len=8192
7405    ;;
7406
7407  osf*)
7408    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7409    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7410    # nice to cause kernel panics so lets avoid the loop below.
7411    # First set a reasonable default.
7412    lt_cv_sys_max_cmd_len=16384
7413    #
7414    if test -x /sbin/sysconfig; then
7415      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7416        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7417      esac
7418    fi
7419    ;;
7420  sco3.2v5*)
7421    lt_cv_sys_max_cmd_len=102400
7422    ;;
7423  sysv5* | sco5v6* | sysv4.2uw2*)
7424    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7425    if test -n "$kargmax"; then
7426      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7427    else
7428      lt_cv_sys_max_cmd_len=32768
7429    fi
7430    ;;
7431  *)
7432    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7433    if test -n "$lt_cv_sys_max_cmd_len" && \
7434       test undefined != "$lt_cv_sys_max_cmd_len"; then
7435      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7436      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7437    else
7438      # Make teststring a little bigger before we do anything with it.
7439      # a 1K string should be a reasonable start.
7440      for i in 1 2 3 4 5 6 7 8; do
7441        teststring=$teststring$teststring
7442      done
7443      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7444      # If test is not a shell built-in, we'll probably end up computing a
7445      # maximum length that is only half of the actual maximum length, but
7446      # we can't tell.
7447      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7448	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7449	      test 17 != "$i" # 1/2 MB should be enough
7450      do
7451        i=`expr $i + 1`
7452        teststring=$teststring$teststring
7453      done
7454      # Only check the string length outside the loop.
7455      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7456      teststring=
7457      # Add a significant safety factor because C++ compilers can tack on
7458      # massive amounts of additional arguments before passing them to the
7459      # linker.  It appears as though 1/2 is a usable value.
7460      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7461    fi
7462    ;;
7463  esac
7464
7465fi
7466
7467if test -n "$lt_cv_sys_max_cmd_len"; then
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7469$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7470else
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7472$as_echo "none" >&6; }
7473fi
7474max_cmd_len=$lt_cv_sys_max_cmd_len
7475
7476
7477
7478
7479
7480
7481: ${CP="cp -f"}
7482: ${MV="mv -f"}
7483: ${RM="rm -f"}
7484
7485if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7486  lt_unset=unset
7487else
7488  lt_unset=false
7489fi
7490
7491
7492
7493
7494
7495# test EBCDIC or ASCII
7496case `echo X|tr X '\101'` in
7497 A) # ASCII based system
7498    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7499  lt_SP2NL='tr \040 \012'
7500  lt_NL2SP='tr \015\012 \040\040'
7501  ;;
7502 *) # EBCDIC based system
7503  lt_SP2NL='tr \100 \n'
7504  lt_NL2SP='tr \r\n \100\100'
7505  ;;
7506esac
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7517$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7518if ${lt_cv_to_host_file_cmd+:} false; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  case $host in
7522  *-*-mingw* )
7523    case $build in
7524      *-*-mingw* ) # actually msys
7525        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7526        ;;
7527      *-*-cygwin* )
7528        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7529        ;;
7530      * ) # otherwise, assume *nix
7531        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7532        ;;
7533    esac
7534    ;;
7535  *-*-cygwin* )
7536    case $build in
7537      *-*-mingw* ) # actually msys
7538        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7539        ;;
7540      *-*-cygwin* )
7541        lt_cv_to_host_file_cmd=func_convert_file_noop
7542        ;;
7543      * ) # otherwise, assume *nix
7544        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7545        ;;
7546    esac
7547    ;;
7548  * ) # unhandled hosts (and "normal" native builds)
7549    lt_cv_to_host_file_cmd=func_convert_file_noop
7550    ;;
7551esac
7552
7553fi
7554
7555to_host_file_cmd=$lt_cv_to_host_file_cmd
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7557$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7558
7559
7560
7561
7562
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7564$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7565if ${lt_cv_to_tool_file_cmd+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  #assume ordinary cross tools, or native build.
7569lt_cv_to_tool_file_cmd=func_convert_file_noop
7570case $host in
7571  *-*-mingw* )
7572    case $build in
7573      *-*-mingw* ) # actually msys
7574        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7575        ;;
7576    esac
7577    ;;
7578esac
7579
7580fi
7581
7582to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7584$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7585
7586
7587
7588
7589
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7591$as_echo_n "checking for $LD option to reload object files... " >&6; }
7592if ${lt_cv_ld_reload_flag+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  lt_cv_ld_reload_flag='-r'
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7598$as_echo "$lt_cv_ld_reload_flag" >&6; }
7599reload_flag=$lt_cv_ld_reload_flag
7600case $reload_flag in
7601"" | " "*) ;;
7602*) reload_flag=" $reload_flag" ;;
7603esac
7604reload_cmds='$LD$reload_flag -o $output$reload_objs'
7605case $host_os in
7606  cygwin* | mingw* | pw32* | cegcc*)
7607    if test yes != "$GCC"; then
7608      reload_cmds=false
7609    fi
7610    ;;
7611  darwin*)
7612    if test yes = "$GCC"; then
7613      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7614    else
7615      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7616    fi
7617    ;;
7618esac
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628if test -n "$ac_tool_prefix"; then
7629  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7630set dummy ${ac_tool_prefix}objdump; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_OBJDUMP+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$OBJDUMP"; then
7637  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656OBJDUMP=$ac_cv_prog_OBJDUMP
7657if test -n "$OBJDUMP"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7659$as_echo "$OBJDUMP" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665
7666fi
7667if test -z "$ac_cv_prog_OBJDUMP"; then
7668  ac_ct_OBJDUMP=$OBJDUMP
7669  # Extract the first word of "objdump", so it can be a program name with args.
7670set dummy objdump; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  if test -n "$ac_ct_OBJDUMP"; then
7677  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684    for ac_exec_ext in '' $ac_executable_extensions; do
7685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691  done
7692IFS=$as_save_IFS
7693
7694fi
7695fi
7696ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7697if test -n "$ac_ct_OBJDUMP"; then
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7699$as_echo "$ac_ct_OBJDUMP" >&6; }
7700else
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
7704
7705  if test "x$ac_ct_OBJDUMP" = x; then
7706    OBJDUMP="false"
7707  else
7708    case $cross_compiling:$ac_tool_warned in
7709yes:)
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712ac_tool_warned=yes ;;
7713esac
7714    OBJDUMP=$ac_ct_OBJDUMP
7715  fi
7716else
7717  OBJDUMP="$ac_cv_prog_OBJDUMP"
7718fi
7719
7720test -z "$OBJDUMP" && OBJDUMP=objdump
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7731$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7732if ${lt_cv_deplibs_check_method+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  lt_cv_file_magic_cmd='$MAGIC_CMD'
7736lt_cv_file_magic_test_file=
7737lt_cv_deplibs_check_method='unknown'
7738# Need to set the preceding variable on all platforms that support
7739# interlibrary dependencies.
7740# 'none' -- dependencies not supported.
7741# 'unknown' -- same as none, but documents that we really don't know.
7742# 'pass_all' -- all dependencies passed with no checks.
7743# 'test_compile' -- check by making test program.
7744# 'file_magic [[regex]]' -- check by looking for files in library path
7745# that responds to the $file_magic_cmd with a given extended regex.
7746# If you have 'file' or equivalent on your system and you're not sure
7747# whether 'pass_all' will *always* work, you probably want this one.
7748
7749case $host_os in
7750aix[4-9]*)
7751  lt_cv_deplibs_check_method=pass_all
7752  ;;
7753
7754beos*)
7755  lt_cv_deplibs_check_method=pass_all
7756  ;;
7757
7758bsdi[45]*)
7759  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7760  lt_cv_file_magic_cmd='/usr/bin/file -L'
7761  lt_cv_file_magic_test_file=/shlib/libc.so
7762  ;;
7763
7764cygwin*)
7765  # func_win32_libid is a shell function defined in ltmain.sh
7766  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7767  lt_cv_file_magic_cmd='func_win32_libid'
7768  ;;
7769
7770mingw* | pw32*)
7771  # Base MSYS/MinGW do not provide the 'file' command needed by
7772  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7773  # unless we find 'file', for example because we are cross-compiling.
7774  if ( file / ) >/dev/null 2>&1; then
7775    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7776    lt_cv_file_magic_cmd='func_win32_libid'
7777  else
7778    # Keep this pattern in sync with the one in func_win32_libid.
7779    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7780    lt_cv_file_magic_cmd='$OBJDUMP -f'
7781  fi
7782  ;;
7783
7784cegcc*)
7785  # use the weaker test based on 'objdump'. See mingw*.
7786  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7787  lt_cv_file_magic_cmd='$OBJDUMP -f'
7788  ;;
7789
7790darwin* | rhapsody*)
7791  lt_cv_deplibs_check_method=pass_all
7792  ;;
7793
7794freebsd* | dragonfly*)
7795  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7796    case $host_cpu in
7797    i*86 )
7798      # Not sure whether the presence of OpenBSD here was a mistake.
7799      # Let's accept both of them until this is cleared up.
7800      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7801      lt_cv_file_magic_cmd=/usr/bin/file
7802      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7803      ;;
7804    esac
7805  else
7806    lt_cv_deplibs_check_method=pass_all
7807  fi
7808  ;;
7809
7810haiku*)
7811  lt_cv_deplibs_check_method=pass_all
7812  ;;
7813
7814hpux10.20* | hpux11*)
7815  lt_cv_file_magic_cmd=/usr/bin/file
7816  case $host_cpu in
7817  ia64*)
7818    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7819    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7820    ;;
7821  hppa*64*)
7822    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]'
7823    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7824    ;;
7825  *)
7826    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7827    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7828    ;;
7829  esac
7830  ;;
7831
7832interix[3-9]*)
7833  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7834  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7835  ;;
7836
7837irix5* | irix6* | nonstopux*)
7838  case $LD in
7839  *-32|*"-32 ") libmagic=32-bit;;
7840  *-n32|*"-n32 ") libmagic=N32;;
7841  *-64|*"-64 ") libmagic=64-bit;;
7842  *) libmagic=never-match;;
7843  esac
7844  lt_cv_deplibs_check_method=pass_all
7845  ;;
7846
7847# This must be glibc/ELF.
7848linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7849  lt_cv_deplibs_check_method=pass_all
7850  ;;
7851
7852netbsd*)
7853  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7854    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7855  else
7856    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7857  fi
7858  ;;
7859
7860newos6*)
7861  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7862  lt_cv_file_magic_cmd=/usr/bin/file
7863  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7864  ;;
7865
7866*nto* | *qnx*)
7867  lt_cv_deplibs_check_method=pass_all
7868  ;;
7869
7870openbsd* | bitrig*)
7871  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7872    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7873  else
7874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7875  fi
7876  ;;
7877
7878osf3* | osf4* | osf5*)
7879  lt_cv_deplibs_check_method=pass_all
7880  ;;
7881
7882rdos*)
7883  lt_cv_deplibs_check_method=pass_all
7884  ;;
7885
7886solaris*)
7887  lt_cv_deplibs_check_method=pass_all
7888  ;;
7889
7890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7891  lt_cv_deplibs_check_method=pass_all
7892  ;;
7893
7894sysv4 | sysv4.3*)
7895  case $host_vendor in
7896  motorola)
7897    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]'
7898    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7899    ;;
7900  ncr)
7901    lt_cv_deplibs_check_method=pass_all
7902    ;;
7903  sequent)
7904    lt_cv_file_magic_cmd='/bin/file'
7905    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7906    ;;
7907  sni)
7908    lt_cv_file_magic_cmd='/bin/file'
7909    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7910    lt_cv_file_magic_test_file=/lib/libc.so
7911    ;;
7912  siemens)
7913    lt_cv_deplibs_check_method=pass_all
7914    ;;
7915  pc)
7916    lt_cv_deplibs_check_method=pass_all
7917    ;;
7918  esac
7919  ;;
7920
7921tpf*)
7922  lt_cv_deplibs_check_method=pass_all
7923  ;;
7924os2*)
7925  lt_cv_deplibs_check_method=pass_all
7926  ;;
7927esac
7928
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7931$as_echo "$lt_cv_deplibs_check_method" >&6; }
7932
7933file_magic_glob=
7934want_nocaseglob=no
7935if test "$build" = "$host"; then
7936  case $host_os in
7937  mingw* | pw32*)
7938    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7939      want_nocaseglob=yes
7940    else
7941      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7942    fi
7943    ;;
7944  esac
7945fi
7946
7947file_magic_cmd=$lt_cv_file_magic_cmd
7948deplibs_check_method=$lt_cv_deplibs_check_method
7949test -z "$deplibs_check_method" && deplibs_check_method=unknown
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972if test -n "$ac_tool_prefix"; then
7973  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_DLLTOOL+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  if test -n "$DLLTOOL"; then
7981  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000DLLTOOL=$ac_cv_prog_DLLTOOL
8001if test -n "$DLLTOOL"; then
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8003$as_echo "$DLLTOOL" >&6; }
8004else
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_DLLTOOL"; then
8012  ac_ct_DLLTOOL=$DLLTOOL
8013  # Extract the first word of "dlltool", so it can be a program name with args.
8014set dummy dlltool; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  if test -n "$ac_ct_DLLTOOL"; then
8021  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026  IFS=$as_save_IFS
8027  test -z "$as_dir" && as_dir=.
8028    for ac_exec_ext in '' $ac_executable_extensions; do
8029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032    break 2
8033  fi
8034done
8035  done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8041if test -n "$ac_ct_DLLTOOL"; then
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8043$as_echo "$ac_ct_DLLTOOL" >&6; }
8044else
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049  if test "x$ac_ct_DLLTOOL" = x; then
8050    DLLTOOL="false"
8051  else
8052    case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058    DLLTOOL=$ac_ct_DLLTOOL
8059  fi
8060else
8061  DLLTOOL="$ac_cv_prog_DLLTOOL"
8062fi
8063
8064test -z "$DLLTOOL" && DLLTOOL=dlltool
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8076$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8077if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  lt_cv_sharedlib_from_linklib_cmd='unknown'
8081
8082case $host_os in
8083cygwin* | mingw* | pw32* | cegcc*)
8084  # two different shell functions defined in ltmain.sh;
8085  # decide which one to use based on capabilities of $DLLTOOL
8086  case `$DLLTOOL --help 2>&1` in
8087  *--identify-strict*)
8088    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8089    ;;
8090  *)
8091    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8092    ;;
8093  esac
8094  ;;
8095*)
8096  # fallback: assume linklib IS sharedlib
8097  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8098  ;;
8099esac
8100
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8103$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8104sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8105test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8106
8107
8108
8109
8110
8111
8112
8113if test -n "$ac_tool_prefix"; then
8114  for ac_prog in ar
8115  do
8116    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8117set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
8120if ${ac_cv_prog_AR+:} false; then :
8121  $as_echo_n "(cached) " >&6
8122else
8123  if test -n "$AR"; then
8124  ac_cv_prog_AR="$AR" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129  IFS=$as_save_IFS
8130  test -z "$as_dir" && as_dir=.
8131    for ac_exec_ext in '' $ac_executable_extensions; do
8132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135    break 2
8136  fi
8137done
8138  done
8139IFS=$as_save_IFS
8140
8141fi
8142fi
8143AR=$ac_cv_prog_AR
8144if test -n "$AR"; then
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8146$as_echo "$AR" >&6; }
8147else
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152
8153    test -n "$AR" && break
8154  done
8155fi
8156if test -z "$AR"; then
8157  ac_ct_AR=$AR
8158  for ac_prog in ar
8159do
8160  # Extract the first word of "$ac_prog", so it can be a program name with args.
8161set dummy $ac_prog; ac_word=$2
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163$as_echo_n "checking for $ac_word... " >&6; }
8164if ${ac_cv_prog_ac_ct_AR+:} false; then :
8165  $as_echo_n "(cached) " >&6
8166else
8167  if test -n "$ac_ct_AR"; then
8168  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8169else
8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173  IFS=$as_save_IFS
8174  test -z "$as_dir" && as_dir=.
8175    for ac_exec_ext in '' $ac_executable_extensions; do
8176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177    ac_cv_prog_ac_ct_AR="$ac_prog"
8178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179    break 2
8180  fi
8181done
8182  done
8183IFS=$as_save_IFS
8184
8185fi
8186fi
8187ac_ct_AR=$ac_cv_prog_ac_ct_AR
8188if test -n "$ac_ct_AR"; then
8189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8190$as_echo "$ac_ct_AR" >&6; }
8191else
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193$as_echo "no" >&6; }
8194fi
8195
8196
8197  test -n "$ac_ct_AR" && break
8198done
8199
8200  if test "x$ac_ct_AR" = x; then
8201    AR="false"
8202  else
8203    case $cross_compiling:$ac_tool_warned in
8204yes:)
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207ac_tool_warned=yes ;;
8208esac
8209    AR=$ac_ct_AR
8210  fi
8211fi
8212
8213: ${AR=ar}
8214: ${AR_FLAGS=cru}
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8227$as_echo_n "checking for archiver @FILE support... " >&6; }
8228if ${lt_cv_ar_at_file+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  lt_cv_ar_at_file=no
8232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234
8235int
8236main ()
8237{
8238
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"; then :
8244  echo conftest.$ac_objext > conftest.lst
8245      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8246      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8247  (eval $lt_ar_try) 2>&5
8248  ac_status=$?
8249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250  test $ac_status = 0; }
8251      if test 0 -eq "$ac_status"; then
8252	# Ensure the archiver fails upon bogus file names.
8253	rm -f conftest.$ac_objext libconftest.a
8254	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8255  (eval $lt_ar_try) 2>&5
8256  ac_status=$?
8257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8258  test $ac_status = 0; }
8259	if test 0 -ne "$ac_status"; then
8260          lt_cv_ar_at_file=@
8261        fi
8262      fi
8263      rm -f conftest.* libconftest.a
8264
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267
8268fi
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8270$as_echo "$lt_cv_ar_at_file" >&6; }
8271
8272if test no = "$lt_cv_ar_at_file"; then
8273  archiver_list_spec=
8274else
8275  archiver_list_spec=$lt_cv_ar_at_file
8276fi
8277
8278
8279
8280
8281
8282
8283
8284if test -n "$ac_tool_prefix"; then
8285  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8286set dummy ${ac_tool_prefix}strip; ac_word=$2
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288$as_echo_n "checking for $ac_word... " >&6; }
8289if ${ac_cv_prog_STRIP+:} false; then :
8290  $as_echo_n "(cached) " >&6
8291else
8292  if test -n "$STRIP"; then
8293  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8294else
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298  IFS=$as_save_IFS
8299  test -z "$as_dir" && as_dir=.
8300    for ac_exec_ext in '' $ac_executable_extensions; do
8301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304    break 2
8305  fi
8306done
8307  done
8308IFS=$as_save_IFS
8309
8310fi
8311fi
8312STRIP=$ac_cv_prog_STRIP
8313if test -n "$STRIP"; then
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8315$as_echo "$STRIP" >&6; }
8316else
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318$as_echo "no" >&6; }
8319fi
8320
8321
8322fi
8323if test -z "$ac_cv_prog_STRIP"; then
8324  ac_ct_STRIP=$STRIP
8325  # Extract the first word of "strip", so it can be a program name with args.
8326set dummy strip; ac_word=$2
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328$as_echo_n "checking for $ac_word... " >&6; }
8329if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  if test -n "$ac_ct_STRIP"; then
8333  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8334else
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338  IFS=$as_save_IFS
8339  test -z "$as_dir" && as_dir=.
8340    for ac_exec_ext in '' $ac_executable_extensions; do
8341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342    ac_cv_prog_ac_ct_STRIP="strip"
8343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344    break 2
8345  fi
8346done
8347  done
8348IFS=$as_save_IFS
8349
8350fi
8351fi
8352ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8353if test -n "$ac_ct_STRIP"; then
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8355$as_echo "$ac_ct_STRIP" >&6; }
8356else
8357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358$as_echo "no" >&6; }
8359fi
8360
8361  if test "x$ac_ct_STRIP" = x; then
8362    STRIP=":"
8363  else
8364    case $cross_compiling:$ac_tool_warned in
8365yes:)
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368ac_tool_warned=yes ;;
8369esac
8370    STRIP=$ac_ct_STRIP
8371  fi
8372else
8373  STRIP="$ac_cv_prog_STRIP"
8374fi
8375
8376test -z "$STRIP" && STRIP=:
8377
8378
8379
8380
8381
8382
8383if test -n "$ac_tool_prefix"; then
8384  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8385set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
8388if ${ac_cv_prog_RANLIB+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  if test -n "$RANLIB"; then
8392  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397  IFS=$as_save_IFS
8398  test -z "$as_dir" && as_dir=.
8399    for ac_exec_ext in '' $ac_executable_extensions; do
8400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403    break 2
8404  fi
8405done
8406  done
8407IFS=$as_save_IFS
8408
8409fi
8410fi
8411RANLIB=$ac_cv_prog_RANLIB
8412if test -n "$RANLIB"; then
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8414$as_echo "$RANLIB" >&6; }
8415else
8416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
8419
8420
8421fi
8422if test -z "$ac_cv_prog_RANLIB"; then
8423  ac_ct_RANLIB=$RANLIB
8424  # Extract the first word of "ranlib", so it can be a program name with args.
8425set dummy ranlib; ac_word=$2
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
8428if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  if test -n "$ac_ct_RANLIB"; then
8432  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437  IFS=$as_save_IFS
8438  test -z "$as_dir" && as_dir=.
8439    for ac_exec_ext in '' $ac_executable_extensions; do
8440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441    ac_cv_prog_ac_ct_RANLIB="ranlib"
8442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443    break 2
8444  fi
8445done
8446  done
8447IFS=$as_save_IFS
8448
8449fi
8450fi
8451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8452if test -n "$ac_ct_RANLIB"; then
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8454$as_echo "$ac_ct_RANLIB" >&6; }
8455else
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
8458fi
8459
8460  if test "x$ac_ct_RANLIB" = x; then
8461    RANLIB=":"
8462  else
8463    case $cross_compiling:$ac_tool_warned in
8464yes:)
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8467ac_tool_warned=yes ;;
8468esac
8469    RANLIB=$ac_ct_RANLIB
8470  fi
8471else
8472  RANLIB="$ac_cv_prog_RANLIB"
8473fi
8474
8475test -z "$RANLIB" && RANLIB=:
8476
8477
8478
8479
8480
8481
8482# Determine commands to create old-style static archives.
8483old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8484old_postinstall_cmds='chmod 644 $oldlib'
8485old_postuninstall_cmds=
8486
8487if test -n "$RANLIB"; then
8488  case $host_os in
8489  bitrig* | openbsd*)
8490    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8491    ;;
8492  *)
8493    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8494    ;;
8495  esac
8496  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8497fi
8498
8499case $host_os in
8500  darwin*)
8501    lock_old_archive_extraction=yes ;;
8502  *)
8503    lock_old_archive_extraction=no ;;
8504esac
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526for ac_prog in gawk mawk nawk awk
8527do
8528  # Extract the first word of "$ac_prog", so it can be a program name with args.
8529set dummy $ac_prog; ac_word=$2
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531$as_echo_n "checking for $ac_word... " >&6; }
8532if ${ac_cv_prog_AWK+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  if test -n "$AWK"; then
8536  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8537else
8538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541  IFS=$as_save_IFS
8542  test -z "$as_dir" && as_dir=.
8543    for ac_exec_ext in '' $ac_executable_extensions; do
8544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545    ac_cv_prog_AWK="$ac_prog"
8546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547    break 2
8548  fi
8549done
8550  done
8551IFS=$as_save_IFS
8552
8553fi
8554fi
8555AWK=$ac_cv_prog_AWK
8556if test -n "$AWK"; then
8557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8558$as_echo "$AWK" >&6; }
8559else
8560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561$as_echo "no" >&6; }
8562fi
8563
8564
8565  test -n "$AWK" && break
8566done
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586# If no C compiler was specified, use CC.
8587LTCC=${LTCC-"$CC"}
8588
8589# If no C compiler flags were specified, use CFLAGS.
8590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8591
8592# Allow CC to be a program name with arguments.
8593compiler=$CC
8594
8595
8596# Check for command to grab the raw symbol name followed by C symbol from nm.
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8598$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8599if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8600  $as_echo_n "(cached) " >&6
8601else
8602
8603# These are sane defaults that work on at least a few old systems.
8604# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8605
8606# Character class describing NM global symbol codes.
8607symcode='[BCDEGRST]'
8608
8609# Regexp to match symbols that can be accessed directly from C.
8610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8611
8612# Define system-specific variables.
8613case $host_os in
8614aix*)
8615  symcode='[BCDT]'
8616  ;;
8617cygwin* | mingw* | pw32* | cegcc*)
8618  symcode='[ABCDGISTW]'
8619  ;;
8620hpux*)
8621  if test ia64 = "$host_cpu"; then
8622    symcode='[ABCDEGRST]'
8623  fi
8624  ;;
8625irix* | nonstopux*)
8626  symcode='[BCDEGRST]'
8627  ;;
8628osf*)
8629  symcode='[BCDEGQRST]'
8630  ;;
8631solaris*)
8632  symcode='[BDRT]'
8633  ;;
8634sco3.2v5*)
8635  symcode='[DT]'
8636  ;;
8637sysv4.2uw2*)
8638  symcode='[DT]'
8639  ;;
8640sysv5* | sco5v6* | unixware* | OpenUNIX*)
8641  symcode='[ABDT]'
8642  ;;
8643sysv4)
8644  symcode='[DFNSTU]'
8645  ;;
8646esac
8647
8648# If we're using GNU nm, then use its standard symbol codes.
8649case `$NM -V 2>&1` in
8650*GNU* | *'with BFD'*)
8651  symcode='[ABCDGIRSTW]' ;;
8652esac
8653
8654if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8655  # Gets list of data symbols to import.
8656  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8657  # Adjust the below global symbol transforms to fixup imported variables.
8658  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8659  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8660  lt_c_name_lib_hook="\
8661  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8662  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8663else
8664  # Disable hooks by default.
8665  lt_cv_sys_global_symbol_to_import=
8666  lt_cdecl_hook=
8667  lt_c_name_hook=
8668  lt_c_name_lib_hook=
8669fi
8670
8671# Transform an extracted symbol line into a proper C declaration.
8672# Some systems (esp. on ia64) link data and code symbols differently,
8673# so use this general approach.
8674lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8675$lt_cdecl_hook\
8676" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8677" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8678
8679# Transform an extracted symbol line into symbol name and symbol address
8680lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8681$lt_c_name_hook\
8682" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8683" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8684
8685# Transform an extracted symbol line into symbol name with lib prefix and
8686# symbol address.
8687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8688$lt_c_name_lib_hook\
8689" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8690" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8691" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8692
8693# Handle CRLF in mingw tool chain
8694opt_cr=
8695case $build_os in
8696mingw*)
8697  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8698  ;;
8699esac
8700
8701# Try without a prefix underscore, then with it.
8702for ac_symprfx in "" "_"; do
8703
8704  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8705  symxfrm="\\1 $ac_symprfx\\2 \\2"
8706
8707  # Write the raw and C identifiers.
8708  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8709    # Fake it for dumpbin and say T for any non-static function,
8710    # D for any global variable and I for any imported variable.
8711    # Also find C++ and __fastcall symbols from MSVC++,
8712    # which start with @ or ?.
8713    lt_cv_sys_global_symbol_pipe="$AWK '"\
8714"     {last_section=section; section=\$ 3};"\
8715"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8716"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8717"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8718"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8719"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8720"     \$ 0!~/External *\|/{next};"\
8721"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8722"     {if(hide[section]) next};"\
8723"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8724"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8725"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8726"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8727"     ' prfx=^$ac_symprfx"
8728  else
8729    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8730  fi
8731  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8732
8733  # Check to see that the pipe works correctly.
8734  pipe_works=no
8735
8736  rm -f conftest*
8737  cat > conftest.$ac_ext <<_LT_EOF
8738#ifdef __cplusplus
8739extern "C" {
8740#endif
8741char nm_test_var;
8742void nm_test_func(void);
8743void nm_test_func(void){}
8744#ifdef __cplusplus
8745}
8746#endif
8747int main(){nm_test_var='a';nm_test_func();return(0);}
8748_LT_EOF
8749
8750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8751  (eval $ac_compile) 2>&5
8752  ac_status=$?
8753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754  test $ac_status = 0; }; then
8755    # Now try to grab the symbols.
8756    nlist=conftest.nm
8757    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8758  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8759  ac_status=$?
8760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761  test $ac_status = 0; } && test -s "$nlist"; then
8762      # Try sorting and uniquifying the output.
8763      if sort "$nlist" | uniq > "$nlist"T; then
8764	mv -f "$nlist"T "$nlist"
8765      else
8766	rm -f "$nlist"T
8767      fi
8768
8769      # Make sure that we snagged all the symbols we need.
8770      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8771	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8772	  cat <<_LT_EOF > conftest.$ac_ext
8773/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8774#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8775/* DATA imports from DLLs on WIN32 can't be const, because runtime
8776   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8777# define LT_DLSYM_CONST
8778#elif defined __osf__
8779/* This system does not cope well with relocations in const data.  */
8780# define LT_DLSYM_CONST
8781#else
8782# define LT_DLSYM_CONST const
8783#endif
8784
8785#ifdef __cplusplus
8786extern "C" {
8787#endif
8788
8789_LT_EOF
8790	  # Now generate the symbol file.
8791	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8792
8793	  cat <<_LT_EOF >> conftest.$ac_ext
8794
8795/* The mapping between symbol names and symbols.  */
8796LT_DLSYM_CONST struct {
8797  const char *name;
8798  void       *address;
8799}
8800lt__PROGRAM__LTX_preloaded_symbols[] =
8801{
8802  { "@PROGRAM@", (void *) 0 },
8803_LT_EOF
8804	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8805	  cat <<\_LT_EOF >> conftest.$ac_ext
8806  {0, (void *) 0}
8807};
8808
8809/* This works around a problem in FreeBSD linker */
8810#ifdef FREEBSD_WORKAROUND
8811static const void *lt_preloaded_setup() {
8812  return lt__PROGRAM__LTX_preloaded_symbols;
8813}
8814#endif
8815
8816#ifdef __cplusplus
8817}
8818#endif
8819_LT_EOF
8820	  # Now try linking the two files.
8821	  mv conftest.$ac_objext conftstm.$ac_objext
8822	  lt_globsym_save_LIBS=$LIBS
8823	  lt_globsym_save_CFLAGS=$CFLAGS
8824	  LIBS=conftstm.$ac_objext
8825	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8826	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8827  (eval $ac_link) 2>&5
8828  ac_status=$?
8829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8830  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8831	    pipe_works=yes
8832	  fi
8833	  LIBS=$lt_globsym_save_LIBS
8834	  CFLAGS=$lt_globsym_save_CFLAGS
8835	else
8836	  echo "cannot find nm_test_func in $nlist" >&5
8837	fi
8838      else
8839	echo "cannot find nm_test_var in $nlist" >&5
8840      fi
8841    else
8842      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8843    fi
8844  else
8845    echo "$progname: failed program was:" >&5
8846    cat conftest.$ac_ext >&5
8847  fi
8848  rm -rf conftest* conftst*
8849
8850  # Do not use the global_symbol_pipe unless it works.
8851  if test yes = "$pipe_works"; then
8852    break
8853  else
8854    lt_cv_sys_global_symbol_pipe=
8855  fi
8856done
8857
8858fi
8859
8860if test -z "$lt_cv_sys_global_symbol_pipe"; then
8861  lt_cv_sys_global_symbol_to_cdecl=
8862fi
8863if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8865$as_echo "failed" >&6; }
8866else
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8868$as_echo "ok" >&6; }
8869fi
8870
8871# Response file support.
8872if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8873  nm_file_list_spec='@'
8874elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8875  nm_file_list_spec='@'
8876fi
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8915$as_echo_n "checking for sysroot... " >&6; }
8916
8917# Check whether --with-sysroot was given.
8918if test "${with_sysroot+set}" = set; then :
8919  withval=$with_sysroot;
8920else
8921  with_sysroot=no
8922fi
8923
8924
8925lt_sysroot=
8926case $with_sysroot in #(
8927 yes)
8928   if test yes = "$GCC"; then
8929     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8930   fi
8931   ;; #(
8932 /*)
8933   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8934   ;; #(
8935 no|'')
8936   ;; #(
8937 *)
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8939$as_echo "$with_sysroot" >&6; }
8940   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8941   ;;
8942esac
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8945$as_echo "${lt_sysroot:-no}" >&6; }
8946
8947
8948
8949
8950
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8952$as_echo_n "checking for a working dd... " >&6; }
8953if ${ac_cv_path_lt_DD+:} false; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  printf 0123456789abcdef0123456789abcdef >conftest.i
8957cat conftest.i conftest.i >conftest2.i
8958: ${lt_DD:=$DD}
8959if test -z "$lt_DD"; then
8960  ac_path_lt_DD_found=false
8961  # Loop through the user's path and test for each of PROGNAME-LIST
8962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963for as_dir in $PATH
8964do
8965  IFS=$as_save_IFS
8966  test -z "$as_dir" && as_dir=.
8967    for ac_prog in dd; do
8968    for ac_exec_ext in '' $ac_executable_extensions; do
8969      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8970      as_fn_executable_p "$ac_path_lt_DD" || continue
8971if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8972  cmp -s conftest.i conftest.out \
8973  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8974fi
8975      $ac_path_lt_DD_found && break 3
8976    done
8977  done
8978  done
8979IFS=$as_save_IFS
8980  if test -z "$ac_cv_path_lt_DD"; then
8981    :
8982  fi
8983else
8984  ac_cv_path_lt_DD=$lt_DD
8985fi
8986
8987rm -f conftest.i conftest2.i conftest.out
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8990$as_echo "$ac_cv_path_lt_DD" >&6; }
8991
8992
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8994$as_echo_n "checking how to truncate binary pipes... " >&6; }
8995if ${lt_cv_truncate_bin+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  printf 0123456789abcdef0123456789abcdef >conftest.i
8999cat conftest.i conftest.i >conftest2.i
9000lt_cv_truncate_bin=
9001if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9002  cmp -s conftest.i conftest.out \
9003  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9004fi
9005rm -f conftest.i conftest2.i conftest.out
9006test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9009$as_echo "$lt_cv_truncate_bin" >&6; }
9010
9011
9012
9013
9014
9015
9016
9017# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9018func_cc_basename ()
9019{
9020    for cc_temp in $*""; do
9021      case $cc_temp in
9022        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9023        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9024        \-*) ;;
9025        *) break;;
9026      esac
9027    done
9028    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9029}
9030
9031# Check whether --enable-libtool-lock was given.
9032if test "${enable_libtool_lock+set}" = set; then :
9033  enableval=$enable_libtool_lock;
9034fi
9035
9036test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9037
9038# Some flags need to be propagated to the compiler or linker for good
9039# libtool support.
9040case $host in
9041ia64-*-hpux*)
9042  # Find out what ABI is being produced by ac_compile, and set mode
9043  # options accordingly.
9044  echo 'int i;' > conftest.$ac_ext
9045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9046  (eval $ac_compile) 2>&5
9047  ac_status=$?
9048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9049  test $ac_status = 0; }; then
9050    case `/usr/bin/file conftest.$ac_objext` in
9051      *ELF-32*)
9052	HPUX_IA64_MODE=32
9053	;;
9054      *ELF-64*)
9055	HPUX_IA64_MODE=64
9056	;;
9057    esac
9058  fi
9059  rm -rf conftest*
9060  ;;
9061*-*-irix6*)
9062  # Find out what ABI is being produced by ac_compile, and set linker
9063  # options accordingly.
9064  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9066  (eval $ac_compile) 2>&5
9067  ac_status=$?
9068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9069  test $ac_status = 0; }; then
9070    if test yes = "$lt_cv_prog_gnu_ld"; then
9071      case `/usr/bin/file conftest.$ac_objext` in
9072	*32-bit*)
9073	  LD="${LD-ld} -melf32bsmip"
9074	  ;;
9075	*N32*)
9076	  LD="${LD-ld} -melf32bmipn32"
9077	  ;;
9078	*64-bit*)
9079	  LD="${LD-ld} -melf64bmip"
9080	;;
9081      esac
9082    else
9083      case `/usr/bin/file conftest.$ac_objext` in
9084	*32-bit*)
9085	  LD="${LD-ld} -32"
9086	  ;;
9087	*N32*)
9088	  LD="${LD-ld} -n32"
9089	  ;;
9090	*64-bit*)
9091	  LD="${LD-ld} -64"
9092	  ;;
9093      esac
9094    fi
9095  fi
9096  rm -rf conftest*
9097  ;;
9098
9099mips64*-*linux*)
9100  # Find out what ABI is being produced by ac_compile, and set linker
9101  # options accordingly.
9102  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9104  (eval $ac_compile) 2>&5
9105  ac_status=$?
9106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9107  test $ac_status = 0; }; then
9108    emul=elf
9109    case `/usr/bin/file conftest.$ac_objext` in
9110      *32-bit*)
9111	emul="${emul}32"
9112	;;
9113      *64-bit*)
9114	emul="${emul}64"
9115	;;
9116    esac
9117    case `/usr/bin/file conftest.$ac_objext` in
9118      *MSB*)
9119	emul="${emul}btsmip"
9120	;;
9121      *LSB*)
9122	emul="${emul}ltsmip"
9123	;;
9124    esac
9125    case `/usr/bin/file conftest.$ac_objext` in
9126      *N32*)
9127	emul="${emul}n32"
9128	;;
9129    esac
9130    LD="${LD-ld} -m $emul"
9131  fi
9132  rm -rf conftest*
9133  ;;
9134
9135x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9136s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9137  # Find out what ABI is being produced by ac_compile, and set linker
9138  # options accordingly.  Note that the listed cases only cover the
9139  # situations where additional linker options are needed (such as when
9140  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9141  # vice versa); the common cases where no linker options are needed do
9142  # not appear in the list.
9143  echo 'int i;' > conftest.$ac_ext
9144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9145  (eval $ac_compile) 2>&5
9146  ac_status=$?
9147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9148  test $ac_status = 0; }; then
9149    case `/usr/bin/file conftest.o` in
9150      *32-bit*)
9151	case $host in
9152	  x86_64-*kfreebsd*-gnu)
9153	    LD="${LD-ld} -m elf_i386_fbsd"
9154	    ;;
9155	  x86_64-*linux*)
9156	    case `/usr/bin/file conftest.o` in
9157	      *x86-64*)
9158		LD="${LD-ld} -m elf32_x86_64"
9159		;;
9160	      *)
9161		LD="${LD-ld} -m elf_i386"
9162		;;
9163	    esac
9164	    ;;
9165	  powerpc64le-*linux*)
9166	    LD="${LD-ld} -m elf32lppclinux"
9167	    ;;
9168	  powerpc64-*linux*)
9169	    LD="${LD-ld} -m elf32ppclinux"
9170	    ;;
9171	  s390x-*linux*)
9172	    LD="${LD-ld} -m elf_s390"
9173	    ;;
9174	  sparc64-*linux*)
9175	    LD="${LD-ld} -m elf32_sparc"
9176	    ;;
9177	esac
9178	;;
9179      *64-bit*)
9180	case $host in
9181	  x86_64-*kfreebsd*-gnu)
9182	    LD="${LD-ld} -m elf_x86_64_fbsd"
9183	    ;;
9184	  x86_64-*linux*)
9185	    LD="${LD-ld} -m elf_x86_64"
9186	    ;;
9187	  powerpcle-*linux*)
9188	    LD="${LD-ld} -m elf64lppc"
9189	    ;;
9190	  powerpc-*linux*)
9191	    LD="${LD-ld} -m elf64ppc"
9192	    ;;
9193	  s390*-*linux*|s390*-*tpf*)
9194	    LD="${LD-ld} -m elf64_s390"
9195	    ;;
9196	  sparc*-*linux*)
9197	    LD="${LD-ld} -m elf64_sparc"
9198	    ;;
9199	esac
9200	;;
9201    esac
9202  fi
9203  rm -rf conftest*
9204  ;;
9205
9206*-*-sco3.2v5*)
9207  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9208  SAVE_CFLAGS=$CFLAGS
9209  CFLAGS="$CFLAGS -belf"
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9211$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9212if ${lt_cv_cc_needs_belf+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  ac_ext=c
9216ac_cpp='$CPP $CPPFLAGS'
9217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9219ac_compiler_gnu=$ac_cv_c_compiler_gnu
9220
9221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223
9224int
9225main ()
9226{
9227
9228  ;
9229  return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"; then :
9233  lt_cv_cc_needs_belf=yes
9234else
9235  lt_cv_cc_needs_belf=no
9236fi
9237rm -f core conftest.err conftest.$ac_objext \
9238    conftest$ac_exeext conftest.$ac_ext
9239     ac_ext=c
9240ac_cpp='$CPP $CPPFLAGS'
9241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9243ac_compiler_gnu=$ac_cv_c_compiler_gnu
9244
9245fi
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9247$as_echo "$lt_cv_cc_needs_belf" >&6; }
9248  if test yes != "$lt_cv_cc_needs_belf"; then
9249    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9250    CFLAGS=$SAVE_CFLAGS
9251  fi
9252  ;;
9253*-*solaris*)
9254  # Find out what ABI is being produced by ac_compile, and set linker
9255  # options accordingly.
9256  echo 'int i;' > conftest.$ac_ext
9257  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9258  (eval $ac_compile) 2>&5
9259  ac_status=$?
9260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261  test $ac_status = 0; }; then
9262    case `/usr/bin/file conftest.o` in
9263    *64-bit*)
9264      case $lt_cv_prog_gnu_ld in
9265      yes*)
9266        case $host in
9267        i?86-*-solaris*|x86_64-*-solaris*)
9268          LD="${LD-ld} -m elf_x86_64"
9269          ;;
9270        sparc*-*-solaris*)
9271          LD="${LD-ld} -m elf64_sparc"
9272          ;;
9273        esac
9274        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9275        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9276          LD=${LD-ld}_sol2
9277        fi
9278        ;;
9279      *)
9280	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9281	  LD="${LD-ld} -64"
9282	fi
9283	;;
9284      esac
9285      ;;
9286    esac
9287  fi
9288  rm -rf conftest*
9289  ;;
9290esac
9291
9292need_locks=$enable_libtool_lock
9293
9294if test -n "$ac_tool_prefix"; then
9295  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9296set dummy ${ac_tool_prefix}mt; ac_word=$2
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298$as_echo_n "checking for $ac_word... " >&6; }
9299if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  if test -n "$MANIFEST_TOOL"; then
9303  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9304else
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308  IFS=$as_save_IFS
9309  test -z "$as_dir" && as_dir=.
9310    for ac_exec_ext in '' $ac_executable_extensions; do
9311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314    break 2
9315  fi
9316done
9317  done
9318IFS=$as_save_IFS
9319
9320fi
9321fi
9322MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9323if test -n "$MANIFEST_TOOL"; then
9324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9325$as_echo "$MANIFEST_TOOL" >&6; }
9326else
9327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328$as_echo "no" >&6; }
9329fi
9330
9331
9332fi
9333if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9334  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9335  # Extract the first word of "mt", so it can be a program name with args.
9336set dummy mt; ac_word=$2
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338$as_echo_n "checking for $ac_word... " >&6; }
9339if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9340  $as_echo_n "(cached) " >&6
9341else
9342  if test -n "$ac_ct_MANIFEST_TOOL"; then
9343  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9344else
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348  IFS=$as_save_IFS
9349  test -z "$as_dir" && as_dir=.
9350    for ac_exec_ext in '' $ac_executable_extensions; do
9351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354    break 2
9355  fi
9356done
9357  done
9358IFS=$as_save_IFS
9359
9360fi
9361fi
9362ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9363if test -n "$ac_ct_MANIFEST_TOOL"; then
9364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9365$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9366else
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369fi
9370
9371  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9372    MANIFEST_TOOL=":"
9373  else
9374    case $cross_compiling:$ac_tool_warned in
9375yes:)
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9378ac_tool_warned=yes ;;
9379esac
9380    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9381  fi
9382else
9383  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9384fi
9385
9386test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9388$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9389if ${lt_cv_path_mainfest_tool+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  lt_cv_path_mainfest_tool=no
9393  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9394  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9395  cat conftest.err >&5
9396  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9397    lt_cv_path_mainfest_tool=yes
9398  fi
9399  rm -f conftest*
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9402$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9403if test yes != "$lt_cv_path_mainfest_tool"; then
9404  MANIFEST_TOOL=:
9405fi
9406
9407
9408
9409
9410
9411
9412  case $host_os in
9413    rhapsody* | darwin*)
9414    if test -n "$ac_tool_prefix"; then
9415  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9416set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418$as_echo_n "checking for $ac_word... " >&6; }
9419if ${ac_cv_prog_DSYMUTIL+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  if test -n "$DSYMUTIL"; then
9423  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428  IFS=$as_save_IFS
9429  test -z "$as_dir" && as_dir=.
9430    for ac_exec_ext in '' $ac_executable_extensions; do
9431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9432    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9434    break 2
9435  fi
9436done
9437  done
9438IFS=$as_save_IFS
9439
9440fi
9441fi
9442DSYMUTIL=$ac_cv_prog_DSYMUTIL
9443if test -n "$DSYMUTIL"; then
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9445$as_echo "$DSYMUTIL" >&6; }
9446else
9447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448$as_echo "no" >&6; }
9449fi
9450
9451
9452fi
9453if test -z "$ac_cv_prog_DSYMUTIL"; then
9454  ac_ct_DSYMUTIL=$DSYMUTIL
9455  # Extract the first word of "dsymutil", so it can be a program name with args.
9456set dummy dsymutil; ac_word=$2
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458$as_echo_n "checking for $ac_word... " >&6; }
9459if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  if test -n "$ac_ct_DSYMUTIL"; then
9463  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9464else
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468  IFS=$as_save_IFS
9469  test -z "$as_dir" && as_dir=.
9470    for ac_exec_ext in '' $ac_executable_extensions; do
9471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9472    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474    break 2
9475  fi
9476done
9477  done
9478IFS=$as_save_IFS
9479
9480fi
9481fi
9482ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9483if test -n "$ac_ct_DSYMUTIL"; then
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9485$as_echo "$ac_ct_DSYMUTIL" >&6; }
9486else
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
9489fi
9490
9491  if test "x$ac_ct_DSYMUTIL" = x; then
9492    DSYMUTIL=":"
9493  else
9494    case $cross_compiling:$ac_tool_warned in
9495yes:)
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9498ac_tool_warned=yes ;;
9499esac
9500    DSYMUTIL=$ac_ct_DSYMUTIL
9501  fi
9502else
9503  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9504fi
9505
9506    if test -n "$ac_tool_prefix"; then
9507  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9508set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510$as_echo_n "checking for $ac_word... " >&6; }
9511if ${ac_cv_prog_NMEDIT+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  if test -n "$NMEDIT"; then
9515  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9516else
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520  IFS=$as_save_IFS
9521  test -z "$as_dir" && as_dir=.
9522    for ac_exec_ext in '' $ac_executable_extensions; do
9523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526    break 2
9527  fi
9528done
9529  done
9530IFS=$as_save_IFS
9531
9532fi
9533fi
9534NMEDIT=$ac_cv_prog_NMEDIT
9535if test -n "$NMEDIT"; then
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9537$as_echo "$NMEDIT" >&6; }
9538else
9539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540$as_echo "no" >&6; }
9541fi
9542
9543
9544fi
9545if test -z "$ac_cv_prog_NMEDIT"; then
9546  ac_ct_NMEDIT=$NMEDIT
9547  # Extract the first word of "nmedit", so it can be a program name with args.
9548set dummy nmedit; ac_word=$2
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550$as_echo_n "checking for $ac_word... " >&6; }
9551if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  if test -n "$ac_ct_NMEDIT"; then
9555  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9556else
9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558for as_dir in $PATH
9559do
9560  IFS=$as_save_IFS
9561  test -z "$as_dir" && as_dir=.
9562    for ac_exec_ext in '' $ac_executable_extensions; do
9563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9564    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9566    break 2
9567  fi
9568done
9569  done
9570IFS=$as_save_IFS
9571
9572fi
9573fi
9574ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9575if test -n "$ac_ct_NMEDIT"; then
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9577$as_echo "$ac_ct_NMEDIT" >&6; }
9578else
9579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580$as_echo "no" >&6; }
9581fi
9582
9583  if test "x$ac_ct_NMEDIT" = x; then
9584    NMEDIT=":"
9585  else
9586    case $cross_compiling:$ac_tool_warned in
9587yes:)
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9590ac_tool_warned=yes ;;
9591esac
9592    NMEDIT=$ac_ct_NMEDIT
9593  fi
9594else
9595  NMEDIT="$ac_cv_prog_NMEDIT"
9596fi
9597
9598    if test -n "$ac_tool_prefix"; then
9599  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9600set dummy ${ac_tool_prefix}lipo; ac_word=$2
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602$as_echo_n "checking for $ac_word... " >&6; }
9603if ${ac_cv_prog_LIPO+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  if test -n "$LIPO"; then
9607  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612  IFS=$as_save_IFS
9613  test -z "$as_dir" && as_dir=.
9614    for ac_exec_ext in '' $ac_executable_extensions; do
9615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618    break 2
9619  fi
9620done
9621  done
9622IFS=$as_save_IFS
9623
9624fi
9625fi
9626LIPO=$ac_cv_prog_LIPO
9627if test -n "$LIPO"; then
9628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9629$as_echo "$LIPO" >&6; }
9630else
9631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
9633fi
9634
9635
9636fi
9637if test -z "$ac_cv_prog_LIPO"; then
9638  ac_ct_LIPO=$LIPO
9639  # Extract the first word of "lipo", so it can be a program name with args.
9640set dummy lipo; ac_word=$2
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642$as_echo_n "checking for $ac_word... " >&6; }
9643if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9644  $as_echo_n "(cached) " >&6
9645else
9646  if test -n "$ac_ct_LIPO"; then
9647  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9648else
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652  IFS=$as_save_IFS
9653  test -z "$as_dir" && as_dir=.
9654    for ac_exec_ext in '' $ac_executable_extensions; do
9655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656    ac_cv_prog_ac_ct_LIPO="lipo"
9657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658    break 2
9659  fi
9660done
9661  done
9662IFS=$as_save_IFS
9663
9664fi
9665fi
9666ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9667if test -n "$ac_ct_LIPO"; then
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9669$as_echo "$ac_ct_LIPO" >&6; }
9670else
9671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672$as_echo "no" >&6; }
9673fi
9674
9675  if test "x$ac_ct_LIPO" = x; then
9676    LIPO=":"
9677  else
9678    case $cross_compiling:$ac_tool_warned in
9679yes:)
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9682ac_tool_warned=yes ;;
9683esac
9684    LIPO=$ac_ct_LIPO
9685  fi
9686else
9687  LIPO="$ac_cv_prog_LIPO"
9688fi
9689
9690    if test -n "$ac_tool_prefix"; then
9691  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9692set dummy ${ac_tool_prefix}otool; ac_word=$2
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694$as_echo_n "checking for $ac_word... " >&6; }
9695if ${ac_cv_prog_OTOOL+:} false; then :
9696  $as_echo_n "(cached) " >&6
9697else
9698  if test -n "$OTOOL"; then
9699  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
9703do
9704  IFS=$as_save_IFS
9705  test -z "$as_dir" && as_dir=.
9706    for ac_exec_ext in '' $ac_executable_extensions; do
9707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710    break 2
9711  fi
9712done
9713  done
9714IFS=$as_save_IFS
9715
9716fi
9717fi
9718OTOOL=$ac_cv_prog_OTOOL
9719if test -n "$OTOOL"; then
9720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9721$as_echo "$OTOOL" >&6; }
9722else
9723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
9725fi
9726
9727
9728fi
9729if test -z "$ac_cv_prog_OTOOL"; then
9730  ac_ct_OTOOL=$OTOOL
9731  # Extract the first word of "otool", so it can be a program name with args.
9732set dummy otool; ac_word=$2
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734$as_echo_n "checking for $ac_word... " >&6; }
9735if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  if test -n "$ac_ct_OTOOL"; then
9739  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744  IFS=$as_save_IFS
9745  test -z "$as_dir" && as_dir=.
9746    for ac_exec_ext in '' $ac_executable_extensions; do
9747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748    ac_cv_prog_ac_ct_OTOOL="otool"
9749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750    break 2
9751  fi
9752done
9753  done
9754IFS=$as_save_IFS
9755
9756fi
9757fi
9758ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9759if test -n "$ac_ct_OTOOL"; then
9760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9761$as_echo "$ac_ct_OTOOL" >&6; }
9762else
9763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
9765fi
9766
9767  if test "x$ac_ct_OTOOL" = x; then
9768    OTOOL=":"
9769  else
9770    case $cross_compiling:$ac_tool_warned in
9771yes:)
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9774ac_tool_warned=yes ;;
9775esac
9776    OTOOL=$ac_ct_OTOOL
9777  fi
9778else
9779  OTOOL="$ac_cv_prog_OTOOL"
9780fi
9781
9782    if test -n "$ac_tool_prefix"; then
9783  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9784set dummy ${ac_tool_prefix}otool64; ac_word=$2
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786$as_echo_n "checking for $ac_word... " >&6; }
9787if ${ac_cv_prog_OTOOL64+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  if test -n "$OTOOL64"; then
9791  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9792else
9793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794for as_dir in $PATH
9795do
9796  IFS=$as_save_IFS
9797  test -z "$as_dir" && as_dir=.
9798    for ac_exec_ext in '' $ac_executable_extensions; do
9799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9800    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802    break 2
9803  fi
9804done
9805  done
9806IFS=$as_save_IFS
9807
9808fi
9809fi
9810OTOOL64=$ac_cv_prog_OTOOL64
9811if test -n "$OTOOL64"; then
9812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9813$as_echo "$OTOOL64" >&6; }
9814else
9815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816$as_echo "no" >&6; }
9817fi
9818
9819
9820fi
9821if test -z "$ac_cv_prog_OTOOL64"; then
9822  ac_ct_OTOOL64=$OTOOL64
9823  # Extract the first word of "otool64", so it can be a program name with args.
9824set dummy otool64; ac_word=$2
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826$as_echo_n "checking for $ac_word... " >&6; }
9827if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9828  $as_echo_n "(cached) " >&6
9829else
9830  if test -n "$ac_ct_OTOOL64"; then
9831  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836  IFS=$as_save_IFS
9837  test -z "$as_dir" && as_dir=.
9838    for ac_exec_ext in '' $ac_executable_extensions; do
9839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9840    ac_cv_prog_ac_ct_OTOOL64="otool64"
9841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842    break 2
9843  fi
9844done
9845  done
9846IFS=$as_save_IFS
9847
9848fi
9849fi
9850ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9851if test -n "$ac_ct_OTOOL64"; then
9852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9853$as_echo "$ac_ct_OTOOL64" >&6; }
9854else
9855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856$as_echo "no" >&6; }
9857fi
9858
9859  if test "x$ac_ct_OTOOL64" = x; then
9860    OTOOL64=":"
9861  else
9862    case $cross_compiling:$ac_tool_warned in
9863yes:)
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9866ac_tool_warned=yes ;;
9867esac
9868    OTOOL64=$ac_ct_OTOOL64
9869  fi
9870else
9871  OTOOL64="$ac_cv_prog_OTOOL64"
9872fi
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9901$as_echo_n "checking for -single_module linker flag... " >&6; }
9902if ${lt_cv_apple_cc_single_mod+:} false; then :
9903  $as_echo_n "(cached) " >&6
9904else
9905  lt_cv_apple_cc_single_mod=no
9906      if test -z "$LT_MULTI_MODULE"; then
9907	# By default we will add the -single_module flag. You can override
9908	# by either setting the environment variable LT_MULTI_MODULE
9909	# non-empty at configure time, or by adding -multi_module to the
9910	# link flags.
9911	rm -rf libconftest.dylib*
9912	echo "int foo(void){return 1;}" > conftest.c
9913	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9914-dynamiclib -Wl,-single_module conftest.c" >&5
9915	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9916	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9917        _lt_result=$?
9918	# If there is a non-empty error log, and "single_module"
9919	# appears in it, assume the flag caused a linker warning
9920        if test -s conftest.err && $GREP single_module conftest.err; then
9921	  cat conftest.err >&5
9922	# Otherwise, if the output was created with a 0 exit code from
9923	# the compiler, it worked.
9924	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9925	  lt_cv_apple_cc_single_mod=yes
9926	else
9927	  cat conftest.err >&5
9928	fi
9929	rm -rf libconftest.dylib*
9930	rm -f conftest.*
9931      fi
9932fi
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9934$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9935
9936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9937$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9938if ${lt_cv_ld_exported_symbols_list+:} false; then :
9939  $as_echo_n "(cached) " >&6
9940else
9941  lt_cv_ld_exported_symbols_list=no
9942      save_LDFLAGS=$LDFLAGS
9943      echo "_main" > conftest.sym
9944      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9945      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946/* end confdefs.h.  */
9947
9948int
9949main ()
9950{
9951
9952  ;
9953  return 0;
9954}
9955_ACEOF
9956if ac_fn_c_try_link "$LINENO"; then :
9957  lt_cv_ld_exported_symbols_list=yes
9958else
9959  lt_cv_ld_exported_symbols_list=no
9960fi
9961rm -f core conftest.err conftest.$ac_objext \
9962    conftest$ac_exeext conftest.$ac_ext
9963	LDFLAGS=$save_LDFLAGS
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9967$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9968
9969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9970$as_echo_n "checking for -force_load linker flag... " >&6; }
9971if ${lt_cv_ld_force_load+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974  lt_cv_ld_force_load=no
9975      cat > conftest.c << _LT_EOF
9976int forced_loaded() { return 2;}
9977_LT_EOF
9978      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9979      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9980      echo "$AR cru libconftest.a conftest.o" >&5
9981      $AR cru libconftest.a conftest.o 2>&5
9982      echo "$RANLIB libconftest.a" >&5
9983      $RANLIB libconftest.a 2>&5
9984      cat > conftest.c << _LT_EOF
9985int main() { return 0;}
9986_LT_EOF
9987      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9988      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9989      _lt_result=$?
9990      if test -s conftest.err && $GREP force_load conftest.err; then
9991	cat conftest.err >&5
9992      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9993	lt_cv_ld_force_load=yes
9994      else
9995	cat conftest.err >&5
9996      fi
9997        rm -f conftest.err libconftest.a conftest conftest.c
9998        rm -rf conftest.dSYM
9999
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10002$as_echo "$lt_cv_ld_force_load" >&6; }
10003    case $host_os in
10004    rhapsody* | darwin1.[012])
10005      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10006    darwin1.*)
10007      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10008    darwin*) # darwin 5.x on
10009      # if running on 10.5 or later, the deployment target defaults
10010      # to the OS version, if on x86, and 10.4, the deployment
10011      # target defaults to 10.4. Don't you love it?
10012      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10013	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10014	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10015	10.[012][,.]*)
10016	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10017	10.*)
10018	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10019      esac
10020    ;;
10021  esac
10022    if test yes = "$lt_cv_apple_cc_single_mod"; then
10023      _lt_dar_single_mod='$single_module'
10024    fi
10025    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10026      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10027    else
10028      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10029    fi
10030    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10031      _lt_dsymutil='~$DSYMUTIL $lib || :'
10032    else
10033      _lt_dsymutil=
10034    fi
10035    ;;
10036  esac
10037
10038# func_munge_path_list VARIABLE PATH
10039# -----------------------------------
10040# VARIABLE is name of variable containing _space_ separated list of
10041# directories to be munged by the contents of PATH, which is string
10042# having a format:
10043# "DIR[:DIR]:"
10044#       string "DIR[ DIR]" will be prepended to VARIABLE
10045# ":DIR[:DIR]"
10046#       string "DIR[ DIR]" will be appended to VARIABLE
10047# "DIRP[:DIRP]::[DIRA:]DIRA"
10048#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10049#       "DIRA[ DIRA]" will be appended to VARIABLE
10050# "DIR[:DIR]"
10051#       VARIABLE will be replaced by "DIR[ DIR]"
10052func_munge_path_list ()
10053{
10054    case x$2 in
10055    x)
10056        ;;
10057    *:)
10058        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10059        ;;
10060    x:*)
10061        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10062        ;;
10063    *::*)
10064        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10065        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10066        ;;
10067    *)
10068        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10069        ;;
10070    esac
10071}
10072
10073for ac_header in dlfcn.h
10074do :
10075  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10076"
10077if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10078  cat >>confdefs.h <<_ACEOF
10079#define HAVE_DLFCN_H 1
10080_ACEOF
10081
10082fi
10083
10084done
10085
10086
10087
10088
10089
10090
10091
10092# Set options
10093
10094
10095
10096        enable_dlopen=no
10097
10098
10099  enable_win32_dll=no
10100
10101
10102            # Check whether --enable-shared was given.
10103if test "${enable_shared+set}" = set; then :
10104  enableval=$enable_shared; p=${PACKAGE-default}
10105    case $enableval in
10106    yes) enable_shared=yes ;;
10107    no) enable_shared=no ;;
10108    *)
10109      enable_shared=no
10110      # Look at the argument we got.  We use all the common list separators.
10111      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10112      for pkg in $enableval; do
10113	IFS=$lt_save_ifs
10114	if test "X$pkg" = "X$p"; then
10115	  enable_shared=yes
10116	fi
10117      done
10118      IFS=$lt_save_ifs
10119      ;;
10120    esac
10121else
10122  enable_shared=yes
10123fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133  # Check whether --enable-static was given.
10134if test "${enable_static+set}" = set; then :
10135  enableval=$enable_static; p=${PACKAGE-default}
10136    case $enableval in
10137    yes) enable_static=yes ;;
10138    no) enable_static=no ;;
10139    *)
10140     enable_static=no
10141      # Look at the argument we got.  We use all the common list separators.
10142      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10143      for pkg in $enableval; do
10144	IFS=$lt_save_ifs
10145	if test "X$pkg" = "X$p"; then
10146	  enable_static=yes
10147	fi
10148      done
10149      IFS=$lt_save_ifs
10150      ;;
10151    esac
10152else
10153  enable_static=yes
10154fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165# Check whether --with-pic was given.
10166if test "${with_pic+set}" = set; then :
10167  withval=$with_pic; lt_p=${PACKAGE-default}
10168    case $withval in
10169    yes|no) pic_mode=$withval ;;
10170    *)
10171      pic_mode=default
10172      # Look at the argument we got.  We use all the common list separators.
10173      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10174      for lt_pkg in $withval; do
10175	IFS=$lt_save_ifs
10176	if test "X$lt_pkg" = "X$lt_p"; then
10177	  pic_mode=yes
10178	fi
10179      done
10180      IFS=$lt_save_ifs
10181      ;;
10182    esac
10183else
10184  pic_mode=default
10185fi
10186
10187
10188
10189
10190
10191
10192
10193
10194  # Check whether --enable-fast-install was given.
10195if test "${enable_fast_install+set}" = set; then :
10196  enableval=$enable_fast_install; p=${PACKAGE-default}
10197    case $enableval in
10198    yes) enable_fast_install=yes ;;
10199    no) enable_fast_install=no ;;
10200    *)
10201      enable_fast_install=no
10202      # Look at the argument we got.  We use all the common list separators.
10203      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10204      for pkg in $enableval; do
10205	IFS=$lt_save_ifs
10206	if test "X$pkg" = "X$p"; then
10207	  enable_fast_install=yes
10208	fi
10209      done
10210      IFS=$lt_save_ifs
10211      ;;
10212    esac
10213else
10214  enable_fast_install=yes
10215fi
10216
10217
10218
10219
10220
10221
10222
10223
10224  shared_archive_member_spec=
10225case $host,$enable_shared in
10226power*-*-aix[5-9]*,yes)
10227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10228$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10229
10230# Check whether --with-aix-soname was given.
10231if test "${with_aix_soname+set}" = set; then :
10232  withval=$with_aix_soname; case $withval in
10233    aix|svr4|both)
10234      ;;
10235    *)
10236      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10237      ;;
10238    esac
10239    lt_cv_with_aix_soname=$with_aix_soname
10240else
10241  if ${lt_cv_with_aix_soname+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  lt_cv_with_aix_soname=aix
10245fi
10246
10247    with_aix_soname=$lt_cv_with_aix_soname
10248fi
10249
10250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10251$as_echo "$with_aix_soname" >&6; }
10252  if test aix != "$with_aix_soname"; then
10253    # For the AIX way of multilib, we name the shared archive member
10254    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10255    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10256    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10257    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10258    if test 64 = "${OBJECT_MODE-32}"; then
10259      shared_archive_member_spec=shr_64
10260    else
10261      shared_archive_member_spec=shr
10262    fi
10263  fi
10264  ;;
10265*)
10266  with_aix_soname=aix
10267  ;;
10268esac
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279# This can be used to rebuild libtool when needed
10280LIBTOOL_DEPS=$ltmain
10281
10282# Always use our own libtool.
10283LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314test -z "$LN_S" && LN_S="ln -s"
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329if test -n "${ZSH_VERSION+set}"; then
10330   setopt NO_GLOB_SUBST
10331fi
10332
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10334$as_echo_n "checking for objdir... " >&6; }
10335if ${lt_cv_objdir+:} false; then :
10336  $as_echo_n "(cached) " >&6
10337else
10338  rm -f .libs 2>/dev/null
10339mkdir .libs 2>/dev/null
10340if test -d .libs; then
10341  lt_cv_objdir=.libs
10342else
10343  # MS-DOS does not allow filenames that begin with a dot.
10344  lt_cv_objdir=_libs
10345fi
10346rmdir .libs 2>/dev/null
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10349$as_echo "$lt_cv_objdir" >&6; }
10350objdir=$lt_cv_objdir
10351
10352
10353
10354
10355
10356cat >>confdefs.h <<_ACEOF
10357#define LT_OBJDIR "$lt_cv_objdir/"
10358_ACEOF
10359
10360
10361
10362
10363case $host_os in
10364aix3*)
10365  # AIX sometimes has problems with the GCC collect2 program.  For some
10366  # reason, if we set the COLLECT_NAMES environment variable, the problems
10367  # vanish in a puff of smoke.
10368  if test set != "${COLLECT_NAMES+set}"; then
10369    COLLECT_NAMES=
10370    export COLLECT_NAMES
10371  fi
10372  ;;
10373esac
10374
10375# Global variables:
10376ofile=libtool
10377can_build_shared=yes
10378
10379# All known linkers require a '.a' archive for static linking (except MSVC,
10380# which needs '.lib').
10381libext=a
10382
10383with_gnu_ld=$lt_cv_prog_gnu_ld
10384
10385old_CC=$CC
10386old_CFLAGS=$CFLAGS
10387
10388# Set sane defaults for various variables
10389test -z "$CC" && CC=cc
10390test -z "$LTCC" && LTCC=$CC
10391test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10392test -z "$LD" && LD=ld
10393test -z "$ac_objext" && ac_objext=o
10394
10395func_cc_basename $compiler
10396cc_basename=$func_cc_basename_result
10397
10398
10399# Only perform the check for file, if the check method requires it
10400test -z "$MAGIC_CMD" && MAGIC_CMD=file
10401case $deplibs_check_method in
10402file_magic*)
10403  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10405$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10406if ${lt_cv_path_MAGIC_CMD+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  case $MAGIC_CMD in
10410[\\/*] |  ?:[\\/]*)
10411  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10412  ;;
10413*)
10414  lt_save_MAGIC_CMD=$MAGIC_CMD
10415  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10416  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10417  for ac_dir in $ac_dummy; do
10418    IFS=$lt_save_ifs
10419    test -z "$ac_dir" && ac_dir=.
10420    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10421      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10422      if test -n "$file_magic_test_file"; then
10423	case $deplibs_check_method in
10424	"file_magic "*)
10425	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10426	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10427	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10428	    $EGREP "$file_magic_regex" > /dev/null; then
10429	    :
10430	  else
10431	    cat <<_LT_EOF 1>&2
10432
10433*** Warning: the command libtool uses to detect shared libraries,
10434*** $file_magic_cmd, produces output that libtool cannot recognize.
10435*** The result is that libtool may fail to recognize shared libraries
10436*** as such.  This will affect the creation of libtool libraries that
10437*** depend on shared libraries, but programs linked with such libtool
10438*** libraries will work regardless of this problem.  Nevertheless, you
10439*** may want to report the problem to your system manager and/or to
10440*** bug-libtool@gnu.org
10441
10442_LT_EOF
10443	  fi ;;
10444	esac
10445      fi
10446      break
10447    fi
10448  done
10449  IFS=$lt_save_ifs
10450  MAGIC_CMD=$lt_save_MAGIC_CMD
10451  ;;
10452esac
10453fi
10454
10455MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10456if test -n "$MAGIC_CMD"; then
10457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10458$as_echo "$MAGIC_CMD" >&6; }
10459else
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
10462fi
10463
10464
10465
10466
10467
10468if test -z "$lt_cv_path_MAGIC_CMD"; then
10469  if test -n "$ac_tool_prefix"; then
10470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10471$as_echo_n "checking for file... " >&6; }
10472if ${lt_cv_path_MAGIC_CMD+:} false; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  case $MAGIC_CMD in
10476[\\/*] |  ?:[\\/]*)
10477  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10478  ;;
10479*)
10480  lt_save_MAGIC_CMD=$MAGIC_CMD
10481  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10482  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10483  for ac_dir in $ac_dummy; do
10484    IFS=$lt_save_ifs
10485    test -z "$ac_dir" && ac_dir=.
10486    if test -f "$ac_dir/file"; then
10487      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10488      if test -n "$file_magic_test_file"; then
10489	case $deplibs_check_method in
10490	"file_magic "*)
10491	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10492	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10493	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10494	    $EGREP "$file_magic_regex" > /dev/null; then
10495	    :
10496	  else
10497	    cat <<_LT_EOF 1>&2
10498
10499*** Warning: the command libtool uses to detect shared libraries,
10500*** $file_magic_cmd, produces output that libtool cannot recognize.
10501*** The result is that libtool may fail to recognize shared libraries
10502*** as such.  This will affect the creation of libtool libraries that
10503*** depend on shared libraries, but programs linked with such libtool
10504*** libraries will work regardless of this problem.  Nevertheless, you
10505*** may want to report the problem to your system manager and/or to
10506*** bug-libtool@gnu.org
10507
10508_LT_EOF
10509	  fi ;;
10510	esac
10511      fi
10512      break
10513    fi
10514  done
10515  IFS=$lt_save_ifs
10516  MAGIC_CMD=$lt_save_MAGIC_CMD
10517  ;;
10518esac
10519fi
10520
10521MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10522if test -n "$MAGIC_CMD"; then
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10524$as_echo "$MAGIC_CMD" >&6; }
10525else
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527$as_echo "no" >&6; }
10528fi
10529
10530
10531  else
10532    MAGIC_CMD=:
10533  fi
10534fi
10535
10536  fi
10537  ;;
10538esac
10539
10540# Use C for the default configuration in the libtool script
10541
10542lt_save_CC=$CC
10543ac_ext=c
10544ac_cpp='$CPP $CPPFLAGS'
10545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10547ac_compiler_gnu=$ac_cv_c_compiler_gnu
10548
10549
10550# Source file extension for C test sources.
10551ac_ext=c
10552
10553# Object file extension for compiled C test sources.
10554objext=o
10555objext=$objext
10556
10557# Code to be used in simple compile tests
10558lt_simple_compile_test_code="int some_variable = 0;"
10559
10560# Code to be used in simple link tests
10561lt_simple_link_test_code='int main(){return(0);}'
10562
10563
10564
10565
10566
10567
10568
10569# If no C compiler was specified, use CC.
10570LTCC=${LTCC-"$CC"}
10571
10572# If no C compiler flags were specified, use CFLAGS.
10573LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10574
10575# Allow CC to be a program name with arguments.
10576compiler=$CC
10577
10578# Save the default compiler, since it gets overwritten when the other
10579# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10580compiler_DEFAULT=$CC
10581
10582# save warnings/boilerplate of simple test code
10583ac_outfile=conftest.$ac_objext
10584echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10585eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10586_lt_compiler_boilerplate=`cat conftest.err`
10587$RM conftest*
10588
10589ac_outfile=conftest.$ac_objext
10590echo "$lt_simple_link_test_code" >conftest.$ac_ext
10591eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10592_lt_linker_boilerplate=`cat conftest.err`
10593$RM -r conftest*
10594
10595
10596if test -n "$compiler"; then
10597
10598lt_prog_compiler_no_builtin_flag=
10599
10600if test yes = "$GCC"; then
10601  case $cc_basename in
10602  nvcc*)
10603    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10604  *)
10605    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10606  esac
10607
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10609$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10610if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10611  $as_echo_n "(cached) " >&6
10612else
10613  lt_cv_prog_compiler_rtti_exceptions=no
10614   ac_outfile=conftest.$ac_objext
10615   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10616   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10617   # Insert the option either (1) after the last *FLAGS variable, or
10618   # (2) before a word containing "conftest.", or (3) at the end.
10619   # Note that $ac_compile itself does not contain backslashes and begins
10620   # with a dollar sign (not a hyphen), so the echo should work correctly.
10621   # The option is referenced via a variable to avoid confusing sed.
10622   lt_compile=`echo "$ac_compile" | $SED \
10623   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10624   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10625   -e 's:$: $lt_compiler_flag:'`
10626   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10627   (eval "$lt_compile" 2>conftest.err)
10628   ac_status=$?
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   if (exit $ac_status) && test -s "$ac_outfile"; then
10632     # The compiler can only warn and ignore the option if not recognized
10633     # So say no if there are warnings other than the usual output.
10634     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10635     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10636     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10637       lt_cv_prog_compiler_rtti_exceptions=yes
10638     fi
10639   fi
10640   $RM conftest*
10641
10642fi
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10644$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10645
10646if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10647    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10648else
10649    :
10650fi
10651
10652fi
10653
10654
10655
10656
10657
10658
10659  lt_prog_compiler_wl=
10660lt_prog_compiler_pic=
10661lt_prog_compiler_static=
10662
10663
10664  if test yes = "$GCC"; then
10665    lt_prog_compiler_wl='-Wl,'
10666    lt_prog_compiler_static='-static'
10667
10668    case $host_os in
10669      aix*)
10670      # All AIX code is PIC.
10671      if test ia64 = "$host_cpu"; then
10672	# AIX 5 now supports IA64 processor
10673	lt_prog_compiler_static='-Bstatic'
10674      fi
10675      lt_prog_compiler_pic='-fPIC'
10676      ;;
10677
10678    amigaos*)
10679      case $host_cpu in
10680      powerpc)
10681            # see comment about AmigaOS4 .so support
10682            lt_prog_compiler_pic='-fPIC'
10683        ;;
10684      m68k)
10685            # FIXME: we need at least 68020 code to build shared libraries, but
10686            # adding the '-m68020' flag to GCC prevents building anything better,
10687            # like '-m68040'.
10688            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10689        ;;
10690      esac
10691      ;;
10692
10693    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10694      # PIC is the default for these OSes.
10695      ;;
10696
10697    mingw* | cygwin* | pw32* | os2* | cegcc*)
10698      # This hack is so that the source file can tell whether it is being
10699      # built for inclusion in a dll (and should export symbols for example).
10700      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10701      # (--disable-auto-import) libraries
10702      lt_prog_compiler_pic='-DDLL_EXPORT'
10703      case $host_os in
10704      os2*)
10705	lt_prog_compiler_static='$wl-static'
10706	;;
10707      esac
10708      ;;
10709
10710    darwin* | rhapsody*)
10711      # PIC is the default on this platform
10712      # Common symbols not allowed in MH_DYLIB files
10713      lt_prog_compiler_pic='-fno-common'
10714      ;;
10715
10716    haiku*)
10717      # PIC is the default for Haiku.
10718      # The "-static" flag exists, but is broken.
10719      lt_prog_compiler_static=
10720      ;;
10721
10722    hpux*)
10723      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10724      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10725      # sets the default TLS model and affects inlining.
10726      case $host_cpu in
10727      hppa*64*)
10728	# +Z the default
10729	;;
10730      *)
10731	lt_prog_compiler_pic='-fPIC'
10732	;;
10733      esac
10734      ;;
10735
10736    interix[3-9]*)
10737      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10738      # Instead, we relocate shared libraries at runtime.
10739      ;;
10740
10741    msdosdjgpp*)
10742      # Just because we use GCC doesn't mean we suddenly get shared libraries
10743      # on systems that don't support them.
10744      lt_prog_compiler_can_build_shared=no
10745      enable_shared=no
10746      ;;
10747
10748    *nto* | *qnx*)
10749      # QNX uses GNU C++, but need to define -shared option too, otherwise
10750      # it will coredump.
10751      lt_prog_compiler_pic='-fPIC -shared'
10752      ;;
10753
10754    sysv4*MP*)
10755      if test -d /usr/nec; then
10756	lt_prog_compiler_pic=-Kconform_pic
10757      fi
10758      ;;
10759
10760    *)
10761      lt_prog_compiler_pic='-fPIC'
10762      ;;
10763    esac
10764
10765    case $cc_basename in
10766    nvcc*) # Cuda Compiler Driver 2.2
10767      lt_prog_compiler_wl='-Xlinker '
10768      if test -n "$lt_prog_compiler_pic"; then
10769        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10770      fi
10771      ;;
10772    esac
10773  else
10774    # PORTME Check for flag to pass linker flags through the system compiler.
10775    case $host_os in
10776    aix*)
10777      lt_prog_compiler_wl='-Wl,'
10778      if test ia64 = "$host_cpu"; then
10779	# AIX 5 now supports IA64 processor
10780	lt_prog_compiler_static='-Bstatic'
10781      else
10782	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10783      fi
10784      ;;
10785
10786    darwin* | rhapsody*)
10787      # PIC is the default on this platform
10788      # Common symbols not allowed in MH_DYLIB files
10789      lt_prog_compiler_pic='-fno-common'
10790      case $cc_basename in
10791      nagfor*)
10792        # NAG Fortran compiler
10793        lt_prog_compiler_wl='-Wl,-Wl,,'
10794        lt_prog_compiler_pic='-PIC'
10795        lt_prog_compiler_static='-Bstatic'
10796        ;;
10797      esac
10798      ;;
10799
10800    mingw* | cygwin* | pw32* | os2* | cegcc*)
10801      # This hack is so that the source file can tell whether it is being
10802      # built for inclusion in a dll (and should export symbols for example).
10803      lt_prog_compiler_pic='-DDLL_EXPORT'
10804      case $host_os in
10805      os2*)
10806	lt_prog_compiler_static='$wl-static'
10807	;;
10808      esac
10809      ;;
10810
10811    hpux9* | hpux10* | hpux11*)
10812      lt_prog_compiler_wl='-Wl,'
10813      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10814      # not for PA HP-UX.
10815      case $host_cpu in
10816      hppa*64*|ia64*)
10817	# +Z the default
10818	;;
10819      *)
10820	lt_prog_compiler_pic='+Z'
10821	;;
10822      esac
10823      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10824      lt_prog_compiler_static='$wl-a ${wl}archive'
10825      ;;
10826
10827    irix5* | irix6* | nonstopux*)
10828      lt_prog_compiler_wl='-Wl,'
10829      # PIC (with -KPIC) is the default.
10830      lt_prog_compiler_static='-non_shared'
10831      ;;
10832
10833    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10834      case $cc_basename in
10835      # old Intel for x86_64, which still supported -KPIC.
10836      ecc*)
10837	lt_prog_compiler_wl='-Wl,'
10838	lt_prog_compiler_pic='-KPIC'
10839	lt_prog_compiler_static='-static'
10840        ;;
10841      # icc used to be incompatible with GCC.
10842      # ICC 10 doesn't accept -KPIC any more.
10843      icc* | ifort*)
10844	lt_prog_compiler_wl='-Wl,'
10845	lt_prog_compiler_pic='-fPIC'
10846	lt_prog_compiler_static='-static'
10847        ;;
10848      # Lahey Fortran 8.1.
10849      lf95*)
10850	lt_prog_compiler_wl='-Wl,'
10851	lt_prog_compiler_pic='--shared'
10852	lt_prog_compiler_static='--static'
10853	;;
10854      nagfor*)
10855	# NAG Fortran compiler
10856	lt_prog_compiler_wl='-Wl,-Wl,,'
10857	lt_prog_compiler_pic='-PIC'
10858	lt_prog_compiler_static='-Bstatic'
10859	;;
10860      tcc*)
10861	# Fabrice Bellard et al's Tiny C Compiler
10862	lt_prog_compiler_wl='-Wl,'
10863	lt_prog_compiler_pic='-fPIC'
10864	lt_prog_compiler_static='-static'
10865	;;
10866      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10867        # Portland Group compilers (*not* the Pentium gcc compiler,
10868	# which looks to be a dead project)
10869	lt_prog_compiler_wl='-Wl,'
10870	lt_prog_compiler_pic='-fpic'
10871	lt_prog_compiler_static='-Bstatic'
10872        ;;
10873      ccc*)
10874        lt_prog_compiler_wl='-Wl,'
10875        # All Alpha code is PIC.
10876        lt_prog_compiler_static='-non_shared'
10877        ;;
10878      xl* | bgxl* | bgf* | mpixl*)
10879	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10880	lt_prog_compiler_wl='-Wl,'
10881	lt_prog_compiler_pic='-qpic'
10882	lt_prog_compiler_static='-qstaticlink'
10883	;;
10884      *)
10885	case `$CC -V 2>&1 | sed 5q` in
10886	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10887	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10888	  lt_prog_compiler_pic='-KPIC'
10889	  lt_prog_compiler_static='-Bstatic'
10890	  lt_prog_compiler_wl=''
10891	  ;;
10892	*Sun\ F* | *Sun*Fortran*)
10893	  lt_prog_compiler_pic='-KPIC'
10894	  lt_prog_compiler_static='-Bstatic'
10895	  lt_prog_compiler_wl='-Qoption ld '
10896	  ;;
10897	*Sun\ C*)
10898	  # Sun C 5.9
10899	  lt_prog_compiler_pic='-KPIC'
10900	  lt_prog_compiler_static='-Bstatic'
10901	  lt_prog_compiler_wl='-Wl,'
10902	  ;;
10903        *Intel*\ [CF]*Compiler*)
10904	  lt_prog_compiler_wl='-Wl,'
10905	  lt_prog_compiler_pic='-fPIC'
10906	  lt_prog_compiler_static='-static'
10907	  ;;
10908	*Portland\ Group*)
10909	  lt_prog_compiler_wl='-Wl,'
10910	  lt_prog_compiler_pic='-fpic'
10911	  lt_prog_compiler_static='-Bstatic'
10912	  ;;
10913	esac
10914	;;
10915      esac
10916      ;;
10917
10918    newsos6)
10919      lt_prog_compiler_pic='-KPIC'
10920      lt_prog_compiler_static='-Bstatic'
10921      ;;
10922
10923    *nto* | *qnx*)
10924      # QNX uses GNU C++, but need to define -shared option too, otherwise
10925      # it will coredump.
10926      lt_prog_compiler_pic='-fPIC -shared'
10927      ;;
10928
10929    osf3* | osf4* | osf5*)
10930      lt_prog_compiler_wl='-Wl,'
10931      # All OSF/1 code is PIC.
10932      lt_prog_compiler_static='-non_shared'
10933      ;;
10934
10935    rdos*)
10936      lt_prog_compiler_static='-non_shared'
10937      ;;
10938
10939    solaris*)
10940      lt_prog_compiler_pic='-KPIC'
10941      lt_prog_compiler_static='-Bstatic'
10942      case $cc_basename in
10943      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10944	lt_prog_compiler_wl='-Qoption ld ';;
10945      *)
10946	lt_prog_compiler_wl='-Wl,';;
10947      esac
10948      ;;
10949
10950    sunos4*)
10951      lt_prog_compiler_wl='-Qoption ld '
10952      lt_prog_compiler_pic='-PIC'
10953      lt_prog_compiler_static='-Bstatic'
10954      ;;
10955
10956    sysv4 | sysv4.2uw2* | sysv4.3*)
10957      lt_prog_compiler_wl='-Wl,'
10958      lt_prog_compiler_pic='-KPIC'
10959      lt_prog_compiler_static='-Bstatic'
10960      ;;
10961
10962    sysv4*MP*)
10963      if test -d /usr/nec; then
10964	lt_prog_compiler_pic='-Kconform_pic'
10965	lt_prog_compiler_static='-Bstatic'
10966      fi
10967      ;;
10968
10969    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10970      lt_prog_compiler_wl='-Wl,'
10971      lt_prog_compiler_pic='-KPIC'
10972      lt_prog_compiler_static='-Bstatic'
10973      ;;
10974
10975    unicos*)
10976      lt_prog_compiler_wl='-Wl,'
10977      lt_prog_compiler_can_build_shared=no
10978      ;;
10979
10980    uts4*)
10981      lt_prog_compiler_pic='-pic'
10982      lt_prog_compiler_static='-Bstatic'
10983      ;;
10984
10985    *)
10986      lt_prog_compiler_can_build_shared=no
10987      ;;
10988    esac
10989  fi
10990
10991case $host_os in
10992  # For platforms that do not support PIC, -DPIC is meaningless:
10993  *djgpp*)
10994    lt_prog_compiler_pic=
10995    ;;
10996  *)
10997    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10998    ;;
10999esac
11000
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11002$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11003if ${lt_cv_prog_compiler_pic+:} false; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11009$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11010lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11011
11012#
11013# Check to make sure the PIC flag actually works.
11014#
11015if test -n "$lt_prog_compiler_pic"; then
11016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11018if ${lt_cv_prog_compiler_pic_works+:} false; then :
11019  $as_echo_n "(cached) " >&6
11020else
11021  lt_cv_prog_compiler_pic_works=no
11022   ac_outfile=conftest.$ac_objext
11023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11024   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11025   # Insert the option either (1) after the last *FLAGS variable, or
11026   # (2) before a word containing "conftest.", or (3) at the end.
11027   # Note that $ac_compile itself does not contain backslashes and begins
11028   # with a dollar sign (not a hyphen), so the echo should work correctly.
11029   # The option is referenced via a variable to avoid confusing sed.
11030   lt_compile=`echo "$ac_compile" | $SED \
11031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11033   -e 's:$: $lt_compiler_flag:'`
11034   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11035   (eval "$lt_compile" 2>conftest.err)
11036   ac_status=$?
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   if (exit $ac_status) && test -s "$ac_outfile"; then
11040     # The compiler can only warn and ignore the option if not recognized
11041     # So say no if there are warnings other than the usual output.
11042     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11045       lt_cv_prog_compiler_pic_works=yes
11046     fi
11047   fi
11048   $RM conftest*
11049
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11052$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11053
11054if test yes = "$lt_cv_prog_compiler_pic_works"; then
11055    case $lt_prog_compiler_pic in
11056     "" | " "*) ;;
11057     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11058     esac
11059else
11060    lt_prog_compiler_pic=
11061     lt_prog_compiler_can_build_shared=no
11062fi
11063
11064fi
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076#
11077# Check to make sure the static flag actually works.
11078#
11079wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11081$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11082if ${lt_cv_prog_compiler_static_works+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  lt_cv_prog_compiler_static_works=no
11086   save_LDFLAGS=$LDFLAGS
11087   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11088   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11089   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11090     # The linker can only warn and ignore the option if not recognized
11091     # So say no if there are warnings
11092     if test -s conftest.err; then
11093       # Append any errors to the config.log.
11094       cat conftest.err 1>&5
11095       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11096       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11097       if diff conftest.exp conftest.er2 >/dev/null; then
11098         lt_cv_prog_compiler_static_works=yes
11099       fi
11100     else
11101       lt_cv_prog_compiler_static_works=yes
11102     fi
11103   fi
11104   $RM -r conftest*
11105   LDFLAGS=$save_LDFLAGS
11106
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11109$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11110
11111if test yes = "$lt_cv_prog_compiler_static_works"; then
11112    :
11113else
11114    lt_prog_compiler_static=
11115fi
11116
11117
11118
11119
11120
11121
11122
11123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11124$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11125if ${lt_cv_prog_compiler_c_o+:} false; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  lt_cv_prog_compiler_c_o=no
11129   $RM -r conftest 2>/dev/null
11130   mkdir conftest
11131   cd conftest
11132   mkdir out
11133   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11134
11135   lt_compiler_flag="-o out/conftest2.$ac_objext"
11136   # Insert the option either (1) after the last *FLAGS variable, or
11137   # (2) before a word containing "conftest.", or (3) at the end.
11138   # Note that $ac_compile itself does not contain backslashes and begins
11139   # with a dollar sign (not a hyphen), so the echo should work correctly.
11140   lt_compile=`echo "$ac_compile" | $SED \
11141   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11142   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11143   -e 's:$: $lt_compiler_flag:'`
11144   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11145   (eval "$lt_compile" 2>out/conftest.err)
11146   ac_status=$?
11147   cat out/conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11150   then
11151     # The compiler can only warn and ignore the option if not recognized
11152     # So say no if there are warnings
11153     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11154     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11155     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11156       lt_cv_prog_compiler_c_o=yes
11157     fi
11158   fi
11159   chmod u+w . 2>&5
11160   $RM conftest*
11161   # SGI C++ compiler will create directory out/ii_files/ for
11162   # template instantiation
11163   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11164   $RM out/* && rmdir out
11165   cd ..
11166   $RM -r conftest
11167   $RM conftest*
11168
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11171$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11172
11173
11174
11175
11176
11177
11178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11179$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11180if ${lt_cv_prog_compiler_c_o+:} false; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183  lt_cv_prog_compiler_c_o=no
11184   $RM -r conftest 2>/dev/null
11185   mkdir conftest
11186   cd conftest
11187   mkdir out
11188   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11189
11190   lt_compiler_flag="-o out/conftest2.$ac_objext"
11191   # Insert the option either (1) after the last *FLAGS variable, or
11192   # (2) before a word containing "conftest.", or (3) at the end.
11193   # Note that $ac_compile itself does not contain backslashes and begins
11194   # with a dollar sign (not a hyphen), so the echo should work correctly.
11195   lt_compile=`echo "$ac_compile" | $SED \
11196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11198   -e 's:$: $lt_compiler_flag:'`
11199   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11200   (eval "$lt_compile" 2>out/conftest.err)
11201   ac_status=$?
11202   cat out/conftest.err >&5
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11205   then
11206     # The compiler can only warn and ignore the option if not recognized
11207     # So say no if there are warnings
11208     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11209     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11210     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11211       lt_cv_prog_compiler_c_o=yes
11212     fi
11213   fi
11214   chmod u+w . 2>&5
11215   $RM conftest*
11216   # SGI C++ compiler will create directory out/ii_files/ for
11217   # template instantiation
11218   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11219   $RM out/* && rmdir out
11220   cd ..
11221   $RM -r conftest
11222   $RM conftest*
11223
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11226$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11227
11228
11229
11230
11231hard_links=nottested
11232if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11233  # do not overwrite the value of need_locks provided by the user
11234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11235$as_echo_n "checking if we can lock with hard links... " >&6; }
11236  hard_links=yes
11237  $RM conftest*
11238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11239  touch conftest.a
11240  ln conftest.a conftest.b 2>&5 || hard_links=no
11241  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11243$as_echo "$hard_links" >&6; }
11244  if test no = "$hard_links"; then
11245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11246$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11247    need_locks=warn
11248  fi
11249else
11250  need_locks=no
11251fi
11252
11253
11254
11255
11256
11257
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11259$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11260
11261  runpath_var=
11262  allow_undefined_flag=
11263  always_export_symbols=no
11264  archive_cmds=
11265  archive_expsym_cmds=
11266  compiler_needs_object=no
11267  enable_shared_with_static_runtimes=no
11268  export_dynamic_flag_spec=
11269  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11270  hardcode_automatic=no
11271  hardcode_direct=no
11272  hardcode_direct_absolute=no
11273  hardcode_libdir_flag_spec=
11274  hardcode_libdir_separator=
11275  hardcode_minus_L=no
11276  hardcode_shlibpath_var=unsupported
11277  inherit_rpath=no
11278  link_all_deplibs=unknown
11279  module_cmds=
11280  module_expsym_cmds=
11281  old_archive_from_new_cmds=
11282  old_archive_from_expsyms_cmds=
11283  thread_safe_flag_spec=
11284  whole_archive_flag_spec=
11285  # include_expsyms should be a list of space-separated symbols to be *always*
11286  # included in the symbol list
11287  include_expsyms=
11288  # exclude_expsyms can be an extended regexp of symbols to exclude
11289  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11290  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11291  # as well as any symbol that contains 'd'.
11292  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11293  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11294  # platforms (ab)use it in PIC code, but their linkers get confused if
11295  # the symbol is explicitly referenced.  Since portable code cannot
11296  # rely on this symbol name, it's probably fine to never include it in
11297  # preloaded symbol tables.
11298  # Exclude shared library initialization/finalization symbols.
11299  extract_expsyms_cmds=
11300
11301  case $host_os in
11302  cygwin* | mingw* | pw32* | cegcc*)
11303    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11304    # When not using gcc, we currently assume that we are using
11305    # Microsoft Visual C++.
11306    if test yes != "$GCC"; then
11307      with_gnu_ld=no
11308    fi
11309    ;;
11310  interix*)
11311    # we just hope/assume this is gcc and not c89 (= MSVC++)
11312    with_gnu_ld=yes
11313    ;;
11314  openbsd* | bitrig*)
11315    with_gnu_ld=no
11316    ;;
11317  esac
11318
11319  ld_shlibs=yes
11320
11321  # On some targets, GNU ld is compatible enough with the native linker
11322  # that we're better off using the native interface for both.
11323  lt_use_gnu_ld_interface=no
11324  if test yes = "$with_gnu_ld"; then
11325    case $host_os in
11326      aix*)
11327	# The AIX port of GNU ld has always aspired to compatibility
11328	# with the native linker.  However, as the warning in the GNU ld
11329	# block says, versions before 2.19.5* couldn't really create working
11330	# shared libraries, regardless of the interface used.
11331	case `$LD -v 2>&1` in
11332	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11333	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11334	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11335	  *)
11336	    lt_use_gnu_ld_interface=yes
11337	    ;;
11338	esac
11339	;;
11340      *)
11341	lt_use_gnu_ld_interface=yes
11342	;;
11343    esac
11344  fi
11345
11346  if test yes = "$lt_use_gnu_ld_interface"; then
11347    # If archive_cmds runs LD, not CC, wlarc should be empty
11348    wlarc='$wl'
11349
11350    # Set some defaults for GNU ld with shared library support. These
11351    # are reset later if shared libraries are not supported. Putting them
11352    # here allows them to be overridden if necessary.
11353    runpath_var=LD_RUN_PATH
11354    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11355    export_dynamic_flag_spec='$wl--export-dynamic'
11356    # ancient GNU ld didn't support --whole-archive et. al.
11357    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11358      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11359    else
11360      whole_archive_flag_spec=
11361    fi
11362    supports_anon_versioning=no
11363    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11364      *GNU\ gold*) supports_anon_versioning=yes ;;
11365      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11366      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11367      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11368      *\ 2.11.*) ;; # other 2.11 versions
11369      *) supports_anon_versioning=yes ;;
11370    esac
11371
11372    # See if GNU ld supports shared libraries.
11373    case $host_os in
11374    aix[3-9]*)
11375      # On AIX/PPC, the GNU linker is very broken
11376      if test ia64 != "$host_cpu"; then
11377	ld_shlibs=no
11378	cat <<_LT_EOF 1>&2
11379
11380*** Warning: the GNU linker, at least up to release 2.19, is reported
11381*** to be unable to reliably create shared libraries on AIX.
11382*** Therefore, libtool is disabling shared libraries support.  If you
11383*** really care for shared libraries, you may want to install binutils
11384*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11385*** You will then need to restart the configuration process.
11386
11387_LT_EOF
11388      fi
11389      ;;
11390
11391    amigaos*)
11392      case $host_cpu in
11393      powerpc)
11394            # see comment about AmigaOS4 .so support
11395            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11396            archive_expsym_cmds=''
11397        ;;
11398      m68k)
11399            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)'
11400            hardcode_libdir_flag_spec='-L$libdir'
11401            hardcode_minus_L=yes
11402        ;;
11403      esac
11404      ;;
11405
11406    beos*)
11407      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11408	allow_undefined_flag=unsupported
11409	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11410	# support --undefined.  This deserves some investigation.  FIXME
11411	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11412      else
11413	ld_shlibs=no
11414      fi
11415      ;;
11416
11417    cygwin* | mingw* | pw32* | cegcc*)
11418      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11419      # as there is no search path for DLLs.
11420      hardcode_libdir_flag_spec='-L$libdir'
11421      export_dynamic_flag_spec='$wl--export-all-symbols'
11422      allow_undefined_flag=unsupported
11423      always_export_symbols=no
11424      enable_shared_with_static_runtimes=yes
11425      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'
11426      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11427
11428      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11429        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11430	# If the export-symbols file already is a .def file, use it as
11431	# is; otherwise, prepend EXPORTS...
11432	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11433          cp $export_symbols $output_objdir/$soname.def;
11434        else
11435          echo EXPORTS > $output_objdir/$soname.def;
11436          cat $export_symbols >> $output_objdir/$soname.def;
11437        fi~
11438        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11439      else
11440	ld_shlibs=no
11441      fi
11442      ;;
11443
11444    haiku*)
11445      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11446      link_all_deplibs=yes
11447      ;;
11448
11449    os2*)
11450      hardcode_libdir_flag_spec='-L$libdir'
11451      hardcode_minus_L=yes
11452      allow_undefined_flag=unsupported
11453      shrext_cmds=.dll
11454      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11455	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11456	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11457	$ECHO EXPORTS >> $output_objdir/$libname.def~
11458	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11459	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11460	emximp -o $lib $output_objdir/$libname.def'
11461      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11462	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11463	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11464	$ECHO EXPORTS >> $output_objdir/$libname.def~
11465	prefix_cmds="$SED"~
11466	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11467	  prefix_cmds="$prefix_cmds -e 1d";
11468	fi~
11469	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11470	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11471	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11472	emximp -o $lib $output_objdir/$libname.def'
11473      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11474      enable_shared_with_static_runtimes=yes
11475      ;;
11476
11477    interix[3-9]*)
11478      hardcode_direct=no
11479      hardcode_shlibpath_var=no
11480      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11481      export_dynamic_flag_spec='$wl-E'
11482      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11483      # Instead, shared libraries are loaded at an image base (0x10000000 by
11484      # default) and relocated if they conflict, which is a slow very memory
11485      # consuming and fragmenting process.  To avoid this, we pick a random,
11486      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11487      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11488      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11489      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'
11490      ;;
11491
11492    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11493      tmp_diet=no
11494      if test linux-dietlibc = "$host_os"; then
11495	case $cc_basename in
11496	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11497	esac
11498      fi
11499      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11500	 && test no = "$tmp_diet"
11501      then
11502	tmp_addflag=' $pic_flag'
11503	tmp_sharedflag='-shared'
11504	case $cc_basename,$host_cpu in
11505        pgcc*)				# Portland Group C compiler
11506	  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'
11507	  tmp_addflag=' $pic_flag'
11508	  ;;
11509	pgf77* | pgf90* | pgf95* | pgfortran*)
11510					# Portland Group f77 and f90 compilers
11511	  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'
11512	  tmp_addflag=' $pic_flag -Mnomain' ;;
11513	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11514	  tmp_addflag=' -i_dynamic' ;;
11515	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11516	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11517	ifc* | ifort*)			# Intel Fortran compiler
11518	  tmp_addflag=' -nofor_main' ;;
11519	lf95*)				# Lahey Fortran 8.1
11520	  whole_archive_flag_spec=
11521	  tmp_sharedflag='--shared' ;;
11522        nagfor*)                        # NAGFOR 5.3
11523          tmp_sharedflag='-Wl,-shared' ;;
11524	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11525	  tmp_sharedflag='-qmkshrobj'
11526	  tmp_addflag= ;;
11527	nvcc*)	# Cuda Compiler Driver 2.2
11528	  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'
11529	  compiler_needs_object=yes
11530	  ;;
11531	esac
11532	case `$CC -V 2>&1 | sed 5q` in
11533	*Sun\ C*)			# Sun C 5.9
11534	  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'
11535	  compiler_needs_object=yes
11536	  tmp_sharedflag='-G' ;;
11537	*Sun\ F*)			# Sun Fortran 8.3
11538	  tmp_sharedflag='-G' ;;
11539	esac
11540	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11541
11542        if test yes = "$supports_anon_versioning"; then
11543          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11544            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11545            echo "local: *; };" >> $output_objdir/$libname.ver~
11546            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11547        fi
11548
11549	case $cc_basename in
11550	tcc*)
11551	  export_dynamic_flag_spec='-rdynamic'
11552	  ;;
11553	xlf* | bgf* | bgxlf* | mpixlf*)
11554	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11555	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11556	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11557	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11558	  if test yes = "$supports_anon_versioning"; then
11559	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11560              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11561              echo "local: *; };" >> $output_objdir/$libname.ver~
11562              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11563	  fi
11564	  ;;
11565	esac
11566      else
11567        ld_shlibs=no
11568      fi
11569      ;;
11570
11571    netbsd*)
11572      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11573	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11574	wlarc=
11575      else
11576	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11577	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11578      fi
11579      ;;
11580
11581    solaris*)
11582      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11583	ld_shlibs=no
11584	cat <<_LT_EOF 1>&2
11585
11586*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11587*** create shared libraries on Solaris systems.  Therefore, libtool
11588*** is disabling shared libraries support.  We urge you to upgrade GNU
11589*** binutils to release 2.9.1 or newer.  Another option is to modify
11590*** your PATH or compiler configuration so that the native linker is
11591*** used, and then restart.
11592
11593_LT_EOF
11594      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11595	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11596	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11597      else
11598	ld_shlibs=no
11599      fi
11600      ;;
11601
11602    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11603      case `$LD -v 2>&1` in
11604        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11605	ld_shlibs=no
11606	cat <<_LT_EOF 1>&2
11607
11608*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11609*** reliably create shared libraries on SCO systems.  Therefore, libtool
11610*** is disabling shared libraries support.  We urge you to upgrade GNU
11611*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11612*** your PATH or compiler configuration so that the native linker is
11613*** used, and then restart.
11614
11615_LT_EOF
11616	;;
11617	*)
11618	  # For security reasons, it is highly recommended that you always
11619	  # use absolute paths for naming shared libraries, and exclude the
11620	  # DT_RUNPATH tag from executables and libraries.  But doing so
11621	  # requires that you compile everything twice, which is a pain.
11622	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11623	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11624	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11625	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11626	  else
11627	    ld_shlibs=no
11628	  fi
11629	;;
11630      esac
11631      ;;
11632
11633    sunos4*)
11634      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11635      wlarc=
11636      hardcode_direct=yes
11637      hardcode_shlibpath_var=no
11638      ;;
11639
11640    *)
11641      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11642	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11643	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11644      else
11645	ld_shlibs=no
11646      fi
11647      ;;
11648    esac
11649
11650    if test no = "$ld_shlibs"; then
11651      runpath_var=
11652      hardcode_libdir_flag_spec=
11653      export_dynamic_flag_spec=
11654      whole_archive_flag_spec=
11655    fi
11656  else
11657    # PORTME fill in a description of your system's linker (not GNU ld)
11658    case $host_os in
11659    aix3*)
11660      allow_undefined_flag=unsupported
11661      always_export_symbols=yes
11662      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'
11663      # Note: this linker hardcodes the directories in LIBPATH if there
11664      # are no directories specified by -L.
11665      hardcode_minus_L=yes
11666      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11667	# Neither direct hardcoding nor static linking is supported with a
11668	# broken collect2.
11669	hardcode_direct=unsupported
11670      fi
11671      ;;
11672
11673    aix[4-9]*)
11674      if test ia64 = "$host_cpu"; then
11675	# On IA64, the linker does run time linking by default, so we don't
11676	# have to do anything special.
11677	aix_use_runtimelinking=no
11678	exp_sym_flag='-Bexport'
11679	no_entry_flag=
11680      else
11681	# If we're using GNU nm, then we don't want the "-C" option.
11682	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11683	# Without the "-l" option, or with the "-B" option, AIX nm treats
11684	# weak defined symbols like other global defined symbols, whereas
11685	# GNU nm marks them as "W".
11686	# While the 'weak' keyword is ignored in the Export File, we need
11687	# it in the Import File for the 'aix-soname' feature, so we have
11688	# to replace the "-B" option with "-P" for AIX nm.
11689	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11690	  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'
11691	else
11692	  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'
11693	fi
11694	aix_use_runtimelinking=no
11695
11696	# Test if we are trying to use run time linking or normal
11697	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11698	# have runtime linking enabled, and use it for executables.
11699	# For shared libraries, we enable/disable runtime linking
11700	# depending on the kind of the shared library created -
11701	# when "with_aix_soname,aix_use_runtimelinking" is:
11702	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11703	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11704	#            lib.a           static archive
11705	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11706	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11707	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11708	#            lib.a(lib.so.V) shared, rtl:no
11709	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11710	#            lib.a           static archive
11711	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11712	  for ld_flag in $LDFLAGS; do
11713	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11714	    aix_use_runtimelinking=yes
11715	    break
11716	  fi
11717	  done
11718	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11719	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11720	    # so we don't have lib.a shared libs to link our executables.
11721	    # We have to force runtime linking in this case.
11722	    aix_use_runtimelinking=yes
11723	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11724	  fi
11725	  ;;
11726	esac
11727
11728	exp_sym_flag='-bexport'
11729	no_entry_flag='-bnoentry'
11730      fi
11731
11732      # When large executables or shared objects are built, AIX ld can
11733      # have problems creating the table of contents.  If linking a library
11734      # or program results in "error TOC overflow" add -mminimal-toc to
11735      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11736      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11737
11738      archive_cmds=''
11739      hardcode_direct=yes
11740      hardcode_direct_absolute=yes
11741      hardcode_libdir_separator=':'
11742      link_all_deplibs=yes
11743      file_list_spec='$wl-f,'
11744      case $with_aix_soname,$aix_use_runtimelinking in
11745      aix,*) ;; # traditional, no import file
11746      svr4,* | *,yes) # use import file
11747	# The Import File defines what to hardcode.
11748	hardcode_direct=no
11749	hardcode_direct_absolute=no
11750	;;
11751      esac
11752
11753      if test yes = "$GCC"; then
11754	case $host_os in aix4.[012]|aix4.[012].*)
11755	# We only want to do this on AIX 4.2 and lower, the check
11756	# below for broken collect2 doesn't work under 4.3+
11757	  collect2name=`$CC -print-prog-name=collect2`
11758	  if test -f "$collect2name" &&
11759	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11760	  then
11761	  # We have reworked collect2
11762	  :
11763	  else
11764	  # We have old collect2
11765	  hardcode_direct=unsupported
11766	  # It fails to find uninstalled libraries when the uninstalled
11767	  # path is not listed in the libpath.  Setting hardcode_minus_L
11768	  # to unsupported forces relinking
11769	  hardcode_minus_L=yes
11770	  hardcode_libdir_flag_spec='-L$libdir'
11771	  hardcode_libdir_separator=
11772	  fi
11773	  ;;
11774	esac
11775	shared_flag='-shared'
11776	if test yes = "$aix_use_runtimelinking"; then
11777	  shared_flag="$shared_flag "'$wl-G'
11778	fi
11779	# Need to ensure runtime linking is disabled for the traditional
11780	# shared library, or the linker may eventually find shared libraries
11781	# /with/ Import File - we do not want to mix them.
11782	shared_flag_aix='-shared'
11783	shared_flag_svr4='-shared $wl-G'
11784      else
11785	# not using gcc
11786	if test ia64 = "$host_cpu"; then
11787	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11788	# chokes on -Wl,-G. The following line is correct:
11789	  shared_flag='-G'
11790	else
11791	  if test yes = "$aix_use_runtimelinking"; then
11792	    shared_flag='$wl-G'
11793	  else
11794	    shared_flag='$wl-bM:SRE'
11795	  fi
11796	  shared_flag_aix='$wl-bM:SRE'
11797	  shared_flag_svr4='$wl-G'
11798	fi
11799      fi
11800
11801      export_dynamic_flag_spec='$wl-bexpall'
11802      # It seems that -bexpall does not export symbols beginning with
11803      # underscore (_), so it is better to generate a list of symbols to export.
11804      always_export_symbols=yes
11805      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11806	# Warning - without using the other runtime loading flags (-brtl),
11807	# -berok will link without error, but may produce a broken library.
11808	allow_undefined_flag='-berok'
11809        # Determine the default libpath from the value encoded in an
11810        # empty executable.
11811        if test set = "${lt_cv_aix_libpath+set}"; then
11812  aix_libpath=$lt_cv_aix_libpath
11813else
11814  if ${lt_cv_aix_libpath_+:} false; then :
11815  $as_echo_n "(cached) " >&6
11816else
11817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h.  */
11819
11820int
11821main ()
11822{
11823
11824  ;
11825  return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_link "$LINENO"; then :
11829
11830  lt_aix_libpath_sed='
11831      /Import File Strings/,/^$/ {
11832	  /^0/ {
11833	      s/^0  *\([^ ]*\) *$/\1/
11834	      p
11835	  }
11836      }'
11837  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11838  # Check for a 64-bit object if we didn't find anything.
11839  if test -z "$lt_cv_aix_libpath_"; then
11840    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11841  fi
11842fi
11843rm -f core conftest.err conftest.$ac_objext \
11844    conftest$ac_exeext conftest.$ac_ext
11845  if test -z "$lt_cv_aix_libpath_"; then
11846    lt_cv_aix_libpath_=/usr/lib:/lib
11847  fi
11848
11849fi
11850
11851  aix_libpath=$lt_cv_aix_libpath_
11852fi
11853
11854        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11855        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
11856      else
11857	if test ia64 = "$host_cpu"; then
11858	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11859	  allow_undefined_flag="-z nodefs"
11860	  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"
11861	else
11862	 # Determine the default libpath from the value encoded in an
11863	 # empty executable.
11864	 if test set = "${lt_cv_aix_libpath+set}"; then
11865  aix_libpath=$lt_cv_aix_libpath
11866else
11867  if ${lt_cv_aix_libpath_+:} false; then :
11868  $as_echo_n "(cached) " >&6
11869else
11870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871/* end confdefs.h.  */
11872
11873int
11874main ()
11875{
11876
11877  ;
11878  return 0;
11879}
11880_ACEOF
11881if ac_fn_c_try_link "$LINENO"; then :
11882
11883  lt_aix_libpath_sed='
11884      /Import File Strings/,/^$/ {
11885	  /^0/ {
11886	      s/^0  *\([^ ]*\) *$/\1/
11887	      p
11888	  }
11889      }'
11890  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11891  # Check for a 64-bit object if we didn't find anything.
11892  if test -z "$lt_cv_aix_libpath_"; then
11893    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11894  fi
11895fi
11896rm -f core conftest.err conftest.$ac_objext \
11897    conftest$ac_exeext conftest.$ac_ext
11898  if test -z "$lt_cv_aix_libpath_"; then
11899    lt_cv_aix_libpath_=/usr/lib:/lib
11900  fi
11901
11902fi
11903
11904  aix_libpath=$lt_cv_aix_libpath_
11905fi
11906
11907	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11908	  # Warning - without using the other run time loading flags,
11909	  # -berok will link without error, but may produce a broken library.
11910	  no_undefined_flag=' $wl-bernotok'
11911	  allow_undefined_flag=' $wl-berok'
11912	  if test yes = "$with_gnu_ld"; then
11913	    # We only use this code for GNU lds that support --whole-archive.
11914	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11915	  else
11916	    # Exported symbols can be pulled into shared objects from archives
11917	    whole_archive_flag_spec='$convenience'
11918	  fi
11919	  archive_cmds_need_lc=yes
11920	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11921	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11922	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11923	  if test svr4 != "$with_aix_soname"; then
11924	    # This is similar to how AIX traditionally builds its shared libraries.
11925	    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'
11926	  fi
11927	  if test aix != "$with_aix_soname"; then
11928	    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'
11929	  else
11930	    # used by -dlpreopen to get the symbols
11931	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11932	  fi
11933	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11934	fi
11935      fi
11936      ;;
11937
11938    amigaos*)
11939      case $host_cpu in
11940      powerpc)
11941            # see comment about AmigaOS4 .so support
11942            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11943            archive_expsym_cmds=''
11944        ;;
11945      m68k)
11946            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)'
11947            hardcode_libdir_flag_spec='-L$libdir'
11948            hardcode_minus_L=yes
11949        ;;
11950      esac
11951      ;;
11952
11953    bsdi[45]*)
11954      export_dynamic_flag_spec=-rdynamic
11955      ;;
11956
11957    cygwin* | mingw* | pw32* | cegcc*)
11958      # When not using gcc, we currently assume that we are using
11959      # Microsoft Visual C++.
11960      # hardcode_libdir_flag_spec is actually meaningless, as there is
11961      # no search path for DLLs.
11962      case $cc_basename in
11963      cl*)
11964	# Native MSVC
11965	hardcode_libdir_flag_spec=' '
11966	allow_undefined_flag=unsupported
11967	always_export_symbols=yes
11968	file_list_spec='@'
11969	# Tell ltmain to make .lib files, not .a files.
11970	libext=lib
11971	# Tell ltmain to make .dll files, not .so files.
11972	shrext_cmds=.dll
11973	# FIXME: Setting linknames here is a bad hack.
11974	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11975	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11976            cp "$export_symbols" "$output_objdir/$soname.def";
11977            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11978          else
11979            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11980          fi~
11981          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11982          linknames='
11983	# The linker will not automatically build a static lib if we build a DLL.
11984	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11985	enable_shared_with_static_runtimes=yes
11986	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11987	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11988	# Don't use ranlib
11989	old_postinstall_cmds='chmod 644 $oldlib'
11990	postlink_cmds='lt_outputfile="@OUTPUT@"~
11991          lt_tool_outputfile="@TOOL_OUTPUT@"~
11992          case $lt_outputfile in
11993            *.exe|*.EXE) ;;
11994            *)
11995              lt_outputfile=$lt_outputfile.exe
11996              lt_tool_outputfile=$lt_tool_outputfile.exe
11997              ;;
11998          esac~
11999          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12000            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12001            $RM "$lt_outputfile.manifest";
12002          fi'
12003	;;
12004      *)
12005	# Assume MSVC wrapper
12006	hardcode_libdir_flag_spec=' '
12007	allow_undefined_flag=unsupported
12008	# Tell ltmain to make .lib files, not .a files.
12009	libext=lib
12010	# Tell ltmain to make .dll files, not .so files.
12011	shrext_cmds=.dll
12012	# FIXME: Setting linknames here is a bad hack.
12013	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12014	# The linker will automatically build a .lib file if we build a DLL.
12015	old_archive_from_new_cmds='true'
12016	# FIXME: Should let the user specify the lib program.
12017	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12018	enable_shared_with_static_runtimes=yes
12019	;;
12020      esac
12021      ;;
12022
12023    darwin* | rhapsody*)
12024
12025
12026  archive_cmds_need_lc=no
12027  hardcode_direct=no
12028  hardcode_automatic=yes
12029  hardcode_shlibpath_var=unsupported
12030  if test yes = "$lt_cv_ld_force_load"; then
12031    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\"`'
12032
12033  else
12034    whole_archive_flag_spec=''
12035  fi
12036  link_all_deplibs=yes
12037  allow_undefined_flag=$_lt_dar_allow_undefined
12038  case $cc_basename in
12039     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12040     *) _lt_dar_can_shared=$GCC ;;
12041  esac
12042  if test yes = "$_lt_dar_can_shared"; then
12043    output_verbose_link_cmd=func_echo_all
12044    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12045    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12046    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"
12047    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"
12048
12049  else
12050  ld_shlibs=no
12051  fi
12052
12053      ;;
12054
12055    dgux*)
12056      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12057      hardcode_libdir_flag_spec='-L$libdir'
12058      hardcode_shlibpath_var=no
12059      ;;
12060
12061    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12062    # support.  Future versions do this automatically, but an explicit c++rt0.o
12063    # does not break anything, and helps significantly (at the cost of a little
12064    # extra space).
12065    freebsd2.2*)
12066      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12067      hardcode_libdir_flag_spec='-R$libdir'
12068      hardcode_direct=yes
12069      hardcode_shlibpath_var=no
12070      ;;
12071
12072    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12073    freebsd2.*)
12074      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12075      hardcode_direct=yes
12076      hardcode_minus_L=yes
12077      hardcode_shlibpath_var=no
12078      ;;
12079
12080    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12081    freebsd* | dragonfly*)
12082      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12083      hardcode_libdir_flag_spec='-R$libdir'
12084      hardcode_direct=yes
12085      hardcode_shlibpath_var=no
12086      ;;
12087
12088    hpux9*)
12089      if test yes = "$GCC"; then
12090	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'
12091      else
12092	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'
12093      fi
12094      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12095      hardcode_libdir_separator=:
12096      hardcode_direct=yes
12097
12098      # hardcode_minus_L: Not really in the search PATH,
12099      # but as the default location of the library.
12100      hardcode_minus_L=yes
12101      export_dynamic_flag_spec='$wl-E'
12102      ;;
12103
12104    hpux10*)
12105      if test yes,no = "$GCC,$with_gnu_ld"; then
12106	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12107      else
12108	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12109      fi
12110      if test no = "$with_gnu_ld"; then
12111	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12112	hardcode_libdir_separator=:
12113	hardcode_direct=yes
12114	hardcode_direct_absolute=yes
12115	export_dynamic_flag_spec='$wl-E'
12116	# hardcode_minus_L: Not really in the search PATH,
12117	# but as the default location of the library.
12118	hardcode_minus_L=yes
12119      fi
12120      ;;
12121
12122    hpux11*)
12123      if test yes,no = "$GCC,$with_gnu_ld"; then
12124	case $host_cpu in
12125	hppa*64*)
12126	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12127	  ;;
12128	ia64*)
12129	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12130	  ;;
12131	*)
12132	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12133	  ;;
12134	esac
12135      else
12136	case $host_cpu in
12137	hppa*64*)
12138	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12139	  ;;
12140	ia64*)
12141	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12142	  ;;
12143	*)
12144
12145	  # Older versions of the 11.00 compiler do not understand -b yet
12146	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12147	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12148$as_echo_n "checking if $CC understands -b... " >&6; }
12149if ${lt_cv_prog_compiler__b+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  lt_cv_prog_compiler__b=no
12153   save_LDFLAGS=$LDFLAGS
12154   LDFLAGS="$LDFLAGS -b"
12155   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12156   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12157     # The linker can only warn and ignore the option if not recognized
12158     # So say no if there are warnings
12159     if test -s conftest.err; then
12160       # Append any errors to the config.log.
12161       cat conftest.err 1>&5
12162       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12163       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12164       if diff conftest.exp conftest.er2 >/dev/null; then
12165         lt_cv_prog_compiler__b=yes
12166       fi
12167     else
12168       lt_cv_prog_compiler__b=yes
12169     fi
12170   fi
12171   $RM -r conftest*
12172   LDFLAGS=$save_LDFLAGS
12173
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12176$as_echo "$lt_cv_prog_compiler__b" >&6; }
12177
12178if test yes = "$lt_cv_prog_compiler__b"; then
12179    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12180else
12181    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12182fi
12183
12184	  ;;
12185	esac
12186      fi
12187      if test no = "$with_gnu_ld"; then
12188	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12189	hardcode_libdir_separator=:
12190
12191	case $host_cpu in
12192	hppa*64*|ia64*)
12193	  hardcode_direct=no
12194	  hardcode_shlibpath_var=no
12195	  ;;
12196	*)
12197	  hardcode_direct=yes
12198	  hardcode_direct_absolute=yes
12199	  export_dynamic_flag_spec='$wl-E'
12200
12201	  # hardcode_minus_L: Not really in the search PATH,
12202	  # but as the default location of the library.
12203	  hardcode_minus_L=yes
12204	  ;;
12205	esac
12206      fi
12207      ;;
12208
12209    irix5* | irix6* | nonstopux*)
12210      if test yes = "$GCC"; then
12211	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'
12212	# Try to use the -exported_symbol ld option, if it does not
12213	# work, assume that -exports_file does not work either and
12214	# implicitly export all symbols.
12215	# This should be the same for all languages, so no per-tag cache variable.
12216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12217$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12218if ${lt_cv_irix_exported_symbol+:} false; then :
12219  $as_echo_n "(cached) " >&6
12220else
12221  save_LDFLAGS=$LDFLAGS
12222	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12223	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224/* end confdefs.h.  */
12225int foo (void) { return 0; }
12226_ACEOF
12227if ac_fn_c_try_link "$LINENO"; then :
12228  lt_cv_irix_exported_symbol=yes
12229else
12230  lt_cv_irix_exported_symbol=no
12231fi
12232rm -f core conftest.err conftest.$ac_objext \
12233    conftest$ac_exeext conftest.$ac_ext
12234           LDFLAGS=$save_LDFLAGS
12235fi
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12237$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12238	if test yes = "$lt_cv_irix_exported_symbol"; then
12239          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'
12240	fi
12241      else
12242	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'
12243	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'
12244      fi
12245      archive_cmds_need_lc='no'
12246      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12247      hardcode_libdir_separator=:
12248      inherit_rpath=yes
12249      link_all_deplibs=yes
12250      ;;
12251
12252    linux*)
12253      case $cc_basename in
12254      tcc*)
12255	# Fabrice Bellard et al's Tiny C Compiler
12256	ld_shlibs=yes
12257	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12258	;;
12259      esac
12260      ;;
12261
12262    netbsd*)
12263      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12264	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12265      else
12266	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12267      fi
12268      hardcode_libdir_flag_spec='-R$libdir'
12269      hardcode_direct=yes
12270      hardcode_shlibpath_var=no
12271      ;;
12272
12273    newsos6)
12274      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275      hardcode_direct=yes
12276      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12277      hardcode_libdir_separator=:
12278      hardcode_shlibpath_var=no
12279      ;;
12280
12281    *nto* | *qnx*)
12282      ;;
12283
12284    openbsd* | bitrig*)
12285      if test -f /usr/libexec/ld.so; then
12286	hardcode_direct=yes
12287	hardcode_shlibpath_var=no
12288	hardcode_direct_absolute=yes
12289	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12290	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12291	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12292	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12293	  export_dynamic_flag_spec='$wl-E'
12294	else
12295	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12296	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12297	fi
12298      else
12299	ld_shlibs=no
12300      fi
12301      ;;
12302
12303    os2*)
12304      hardcode_libdir_flag_spec='-L$libdir'
12305      hardcode_minus_L=yes
12306      allow_undefined_flag=unsupported
12307      shrext_cmds=.dll
12308      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12309	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12310	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12311	$ECHO EXPORTS >> $output_objdir/$libname.def~
12312	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12314	emximp -o $lib $output_objdir/$libname.def'
12315      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12316	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12317	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12318	$ECHO EXPORTS >> $output_objdir/$libname.def~
12319	prefix_cmds="$SED"~
12320	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12321	  prefix_cmds="$prefix_cmds -e 1d";
12322	fi~
12323	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12324	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12325	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12326	emximp -o $lib $output_objdir/$libname.def'
12327      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12328      enable_shared_with_static_runtimes=yes
12329      ;;
12330
12331    osf3*)
12332      if test yes = "$GCC"; then
12333	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12334	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'
12335      else
12336	allow_undefined_flag=' -expect_unresolved \*'
12337	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'
12338      fi
12339      archive_cmds_need_lc='no'
12340      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12341      hardcode_libdir_separator=:
12342      ;;
12343
12344    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12345      if test yes = "$GCC"; then
12346	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12347	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'
12348	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12349      else
12350	allow_undefined_flag=' -expect_unresolved \*'
12351	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'
12352	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~
12353          $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'
12354
12355	# Both c and cxx compiler support -rpath directly
12356	hardcode_libdir_flag_spec='-rpath $libdir'
12357      fi
12358      archive_cmds_need_lc='no'
12359      hardcode_libdir_separator=:
12360      ;;
12361
12362    solaris*)
12363      no_undefined_flag=' -z defs'
12364      if test yes = "$GCC"; then
12365	wlarc='$wl'
12366	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12367	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12368          $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'
12369      else
12370	case `$CC -V 2>&1` in
12371	*"Compilers 5.0"*)
12372	  wlarc=''
12373	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12374	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12375            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12376	  ;;
12377	*)
12378	  wlarc='$wl'
12379	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12380	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12381            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12382	  ;;
12383	esac
12384      fi
12385      hardcode_libdir_flag_spec='-R$libdir'
12386      hardcode_shlibpath_var=no
12387      case $host_os in
12388      solaris2.[0-5] | solaris2.[0-5].*) ;;
12389      *)
12390	# The compiler driver will combine and reorder linker options,
12391	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12392	# but is careful enough not to reorder.
12393	# Supported since Solaris 2.6 (maybe 2.5.1?)
12394	if test yes = "$GCC"; then
12395	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12396	else
12397	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12398	fi
12399	;;
12400      esac
12401      link_all_deplibs=yes
12402      ;;
12403
12404    sunos4*)
12405      if test sequent = "$host_vendor"; then
12406	# Use $CC to link under sequent, because it throws in some extra .o
12407	# files that make .init and .fini sections work.
12408	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12409      else
12410	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12411      fi
12412      hardcode_libdir_flag_spec='-L$libdir'
12413      hardcode_direct=yes
12414      hardcode_minus_L=yes
12415      hardcode_shlibpath_var=no
12416      ;;
12417
12418    sysv4)
12419      case $host_vendor in
12420	sni)
12421	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12422	  hardcode_direct=yes # is this really true???
12423	;;
12424	siemens)
12425	  ## LD is ld it makes a PLAMLIB
12426	  ## CC just makes a GrossModule.
12427	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12428	  reload_cmds='$CC -r -o $output$reload_objs'
12429	  hardcode_direct=no
12430        ;;
12431	motorola)
12432	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12433	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12434	;;
12435      esac
12436      runpath_var='LD_RUN_PATH'
12437      hardcode_shlibpath_var=no
12438      ;;
12439
12440    sysv4.3*)
12441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12442      hardcode_shlibpath_var=no
12443      export_dynamic_flag_spec='-Bexport'
12444      ;;
12445
12446    sysv4*MP*)
12447      if test -d /usr/nec; then
12448	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12449	hardcode_shlibpath_var=no
12450	runpath_var=LD_RUN_PATH
12451	hardcode_runpath_var=yes
12452	ld_shlibs=yes
12453      fi
12454      ;;
12455
12456    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12457      no_undefined_flag='$wl-z,text'
12458      archive_cmds_need_lc=no
12459      hardcode_shlibpath_var=no
12460      runpath_var='LD_RUN_PATH'
12461
12462      if test yes = "$GCC"; then
12463	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12464	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12465      else
12466	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12467	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12468      fi
12469      ;;
12470
12471    sysv5* | sco3.2v5* | sco5v6*)
12472      # Note: We CANNOT use -z defs as we might desire, because we do not
12473      # link with -lc, and that would cause any symbols used from libc to
12474      # always be unresolved, which means just about no library would
12475      # ever link correctly.  If we're not using GNU ld we use -z text
12476      # though, which does catch some bad symbols but isn't as heavy-handed
12477      # as -z defs.
12478      no_undefined_flag='$wl-z,text'
12479      allow_undefined_flag='$wl-z,nodefs'
12480      archive_cmds_need_lc=no
12481      hardcode_shlibpath_var=no
12482      hardcode_libdir_flag_spec='$wl-R,$libdir'
12483      hardcode_libdir_separator=':'
12484      link_all_deplibs=yes
12485      export_dynamic_flag_spec='$wl-Bexport'
12486      runpath_var='LD_RUN_PATH'
12487
12488      if test yes = "$GCC"; then
12489	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12490	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12491      else
12492	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12493	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12494      fi
12495      ;;
12496
12497    uts4*)
12498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12499      hardcode_libdir_flag_spec='-L$libdir'
12500      hardcode_shlibpath_var=no
12501      ;;
12502
12503    *)
12504      ld_shlibs=no
12505      ;;
12506    esac
12507
12508    if test sni = "$host_vendor"; then
12509      case $host in
12510      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12511	export_dynamic_flag_spec='$wl-Blargedynsym'
12512	;;
12513      esac
12514    fi
12515  fi
12516
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12518$as_echo "$ld_shlibs" >&6; }
12519test no = "$ld_shlibs" && can_build_shared=no
12520
12521with_gnu_ld=$with_gnu_ld
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537#
12538# Do we need to explicitly link libc?
12539#
12540case "x$archive_cmds_need_lc" in
12541x|xyes)
12542  # Assume -lc should be added
12543  archive_cmds_need_lc=yes
12544
12545  if test yes,yes = "$GCC,$enable_shared"; then
12546    case $archive_cmds in
12547    *'~'*)
12548      # FIXME: we may have to deal with multi-command sequences.
12549      ;;
12550    '$CC '*)
12551      # Test whether the compiler implicitly links with -lc since on some
12552      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12553      # to ld, don't add -lc before -lgcc.
12554      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12555$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12556if ${lt_cv_archive_cmds_need_lc+:} false; then :
12557  $as_echo_n "(cached) " >&6
12558else
12559  $RM conftest*
12560	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12561
12562	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12563  (eval $ac_compile) 2>&5
12564  ac_status=$?
12565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566  test $ac_status = 0; } 2>conftest.err; then
12567	  soname=conftest
12568	  lib=conftest
12569	  libobjs=conftest.$ac_objext
12570	  deplibs=
12571	  wl=$lt_prog_compiler_wl
12572	  pic_flag=$lt_prog_compiler_pic
12573	  compiler_flags=-v
12574	  linker_flags=-v
12575	  verstring=
12576	  output_objdir=.
12577	  libname=conftest
12578	  lt_save_allow_undefined_flag=$allow_undefined_flag
12579	  allow_undefined_flag=
12580	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12581  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12582  ac_status=$?
12583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584  test $ac_status = 0; }
12585	  then
12586	    lt_cv_archive_cmds_need_lc=no
12587	  else
12588	    lt_cv_archive_cmds_need_lc=yes
12589	  fi
12590	  allow_undefined_flag=$lt_save_allow_undefined_flag
12591	else
12592	  cat conftest.err 1>&5
12593	fi
12594	$RM conftest*
12595
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12598$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12599      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12600      ;;
12601    esac
12602  fi
12603  ;;
12604esac
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12758$as_echo_n "checking dynamic linker characteristics... " >&6; }
12759
12760if test yes = "$GCC"; then
12761  case $host_os in
12762    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12763    *) lt_awk_arg='/^libraries:/' ;;
12764  esac
12765  case $host_os in
12766    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12767    *) lt_sed_strip_eq='s|=/|/|g' ;;
12768  esac
12769  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12770  case $lt_search_path_spec in
12771  *\;*)
12772    # if the path contains ";" then we assume it to be the separator
12773    # otherwise default to the standard path separator (i.e. ":") - it is
12774    # assumed that no part of a normal pathname contains ";" but that should
12775    # okay in the real world where ";" in dirpaths is itself problematic.
12776    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12777    ;;
12778  *)
12779    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12780    ;;
12781  esac
12782  # Ok, now we have the path, separated by spaces, we can step through it
12783  # and add multilib dir if necessary...
12784  lt_tmp_lt_search_path_spec=
12785  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12786  # ...but if some path component already ends with the multilib dir we assume
12787  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12788  case "$lt_multi_os_dir; $lt_search_path_spec " in
12789  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12790    lt_multi_os_dir=
12791    ;;
12792  esac
12793  for lt_sys_path in $lt_search_path_spec; do
12794    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12795      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12796    elif test -n "$lt_multi_os_dir"; then
12797      test -d "$lt_sys_path" && \
12798	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12799    fi
12800  done
12801  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12802BEGIN {RS = " "; FS = "/|\n";} {
12803  lt_foo = "";
12804  lt_count = 0;
12805  for (lt_i = NF; lt_i > 0; lt_i--) {
12806    if ($lt_i != "" && $lt_i != ".") {
12807      if ($lt_i == "..") {
12808        lt_count++;
12809      } else {
12810        if (lt_count == 0) {
12811          lt_foo = "/" $lt_i lt_foo;
12812        } else {
12813          lt_count--;
12814        }
12815      }
12816    }
12817  }
12818  if (lt_foo != "") { lt_freq[lt_foo]++; }
12819  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12820}'`
12821  # AWK program above erroneously prepends '/' to C:/dos/paths
12822  # for these hosts.
12823  case $host_os in
12824    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12825      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12826  esac
12827  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12828else
12829  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12830fi
12831library_names_spec=
12832libname_spec='lib$name'
12833soname_spec=
12834shrext_cmds=.so
12835postinstall_cmds=
12836postuninstall_cmds=
12837finish_cmds=
12838finish_eval=
12839shlibpath_var=
12840shlibpath_overrides_runpath=unknown
12841version_type=none
12842dynamic_linker="$host_os ld.so"
12843sys_lib_dlsearch_path_spec="/lib /usr/lib"
12844need_lib_prefix=unknown
12845hardcode_into_libs=no
12846
12847# when you set need_version to no, make sure it does not cause -set_version
12848# flags to be left without arguments
12849need_version=unknown
12850
12851
12852
12853case $host_os in
12854aix3*)
12855  version_type=linux # correct to gnu/linux during the next big refactor
12856  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12857  shlibpath_var=LIBPATH
12858
12859  # AIX 3 has no versioning support, so we append a major version to the name.
12860  soname_spec='$libname$release$shared_ext$major'
12861  ;;
12862
12863aix[4-9]*)
12864  version_type=linux # correct to gnu/linux during the next big refactor
12865  need_lib_prefix=no
12866  need_version=no
12867  hardcode_into_libs=yes
12868  if test ia64 = "$host_cpu"; then
12869    # AIX 5 supports IA64
12870    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12871    shlibpath_var=LD_LIBRARY_PATH
12872  else
12873    # With GCC up to 2.95.x, collect2 would create an import file
12874    # for dependence libraries.  The import file would start with
12875    # the line '#! .'.  This would cause the generated library to
12876    # depend on '.', always an invalid library.  This was fixed in
12877    # development snapshots of GCC prior to 3.0.
12878    case $host_os in
12879      aix4 | aix4.[01] | aix4.[01].*)
12880      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12881	   echo ' yes '
12882	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12883	:
12884      else
12885	can_build_shared=no
12886      fi
12887      ;;
12888    esac
12889    # Using Import Files as archive members, it is possible to support
12890    # filename-based versioning of shared library archives on AIX. While
12891    # this would work for both with and without runtime linking, it will
12892    # prevent static linking of such archives. So we do filename-based
12893    # shared library versioning with .so extension only, which is used
12894    # when both runtime linking and shared linking is enabled.
12895    # Unfortunately, runtime linking may impact performance, so we do
12896    # not want this to be the default eventually. Also, we use the
12897    # versioned .so libs for executables only if there is the -brtl
12898    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12899    # To allow for filename-based versioning support, we need to create
12900    # libNAME.so.V as an archive file, containing:
12901    # *) an Import File, referring to the versioned filename of the
12902    #    archive as well as the shared archive member, telling the
12903    #    bitwidth (32 or 64) of that shared object, and providing the
12904    #    list of exported symbols of that shared object, eventually
12905    #    decorated with the 'weak' keyword
12906    # *) the shared object with the F_LOADONLY flag set, to really avoid
12907    #    it being seen by the linker.
12908    # At run time we better use the real file rather than another symlink,
12909    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12910
12911    case $with_aix_soname,$aix_use_runtimelinking in
12912    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12913    # soname into executable. Probably we can add versioning support to
12914    # collect2, so additional links can be useful in future.
12915    aix,yes) # traditional libtool
12916      dynamic_linker='AIX unversionable lib.so'
12917      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12918      # instead of lib<name>.a to let people know that these are not
12919      # typical AIX shared libraries.
12920      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12921      ;;
12922    aix,no) # traditional AIX only
12923      dynamic_linker='AIX lib.a(lib.so.V)'
12924      # We preserve .a as extension for shared libraries through AIX4.2
12925      # and later when we are not doing run time linking.
12926      library_names_spec='$libname$release.a $libname.a'
12927      soname_spec='$libname$release$shared_ext$major'
12928      ;;
12929    svr4,*) # full svr4 only
12930      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12931      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12932      # We do not specify a path in Import Files, so LIBPATH fires.
12933      shlibpath_overrides_runpath=yes
12934      ;;
12935    *,yes) # both, prefer svr4
12936      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12937      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12938      # unpreferred sharedlib libNAME.a needs extra handling
12939      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"'
12940      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"'
12941      # We do not specify a path in Import Files, so LIBPATH fires.
12942      shlibpath_overrides_runpath=yes
12943      ;;
12944    *,no) # both, prefer aix
12945      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12946      library_names_spec='$libname$release.a $libname.a'
12947      soname_spec='$libname$release$shared_ext$major'
12948      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12949      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)'
12950      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"'
12951      ;;
12952    esac
12953    shlibpath_var=LIBPATH
12954  fi
12955  ;;
12956
12957amigaos*)
12958  case $host_cpu in
12959  powerpc)
12960    # Since July 2007 AmigaOS4 officially supports .so libraries.
12961    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12962    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12963    ;;
12964  m68k)
12965    library_names_spec='$libname.ixlibrary $libname.a'
12966    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12967    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'
12968    ;;
12969  esac
12970  ;;
12971
12972beos*)
12973  library_names_spec='$libname$shared_ext'
12974  dynamic_linker="$host_os ld.so"
12975  shlibpath_var=LIBRARY_PATH
12976  ;;
12977
12978bsdi[45]*)
12979  version_type=linux # correct to gnu/linux during the next big refactor
12980  need_version=no
12981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12982  soname_spec='$libname$release$shared_ext$major'
12983  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12984  shlibpath_var=LD_LIBRARY_PATH
12985  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12986  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12987  # the default ld.so.conf also contains /usr/contrib/lib and
12988  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12989  # libtool to hard-code these into programs
12990  ;;
12991
12992cygwin* | mingw* | pw32* | cegcc*)
12993  version_type=windows
12994  shrext_cmds=.dll
12995  need_version=no
12996  need_lib_prefix=no
12997
12998  case $GCC,$cc_basename in
12999  yes,*)
13000    # gcc
13001    library_names_spec='$libname.dll.a'
13002    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13003    postinstall_cmds='base_file=`basename \$file`~
13004      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13005      dldir=$destdir/`dirname \$dlpath`~
13006      test -d \$dldir || mkdir -p \$dldir~
13007      $install_prog $dir/$dlname \$dldir/$dlname~
13008      chmod a+x \$dldir/$dlname~
13009      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13010        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13011      fi'
13012    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13013      dlpath=$dir/\$dldll~
13014       $RM \$dlpath'
13015    shlibpath_overrides_runpath=yes
13016
13017    case $host_os in
13018    cygwin*)
13019      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13020      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13021
13022      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13023      ;;
13024    mingw* | cegcc*)
13025      # MinGW DLLs use traditional 'lib' prefix
13026      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13027      ;;
13028    pw32*)
13029      # pw32 DLLs use 'pw' prefix rather than 'lib'
13030      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13031      ;;
13032    esac
13033    dynamic_linker='Win32 ld.exe'
13034    ;;
13035
13036  *,cl*)
13037    # Native MSVC
13038    libname_spec='$name'
13039    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13040    library_names_spec='$libname.dll.lib'
13041
13042    case $build_os in
13043    mingw*)
13044      sys_lib_search_path_spec=
13045      lt_save_ifs=$IFS
13046      IFS=';'
13047      for lt_path in $LIB
13048      do
13049        IFS=$lt_save_ifs
13050        # Let DOS variable expansion print the short 8.3 style file name.
13051        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13052        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13053      done
13054      IFS=$lt_save_ifs
13055      # Convert to MSYS style.
13056      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13057      ;;
13058    cygwin*)
13059      # Convert to unix form, then to dos form, then back to unix form
13060      # but this time dos style (no spaces!) so that the unix form looks
13061      # like /cygdrive/c/PROGRA~1:/cygdr...
13062      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13063      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13064      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13065      ;;
13066    *)
13067      sys_lib_search_path_spec=$LIB
13068      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13069        # It is most probably a Windows format PATH.
13070        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13071      else
13072        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13073      fi
13074      # FIXME: find the short name or the path components, as spaces are
13075      # common. (e.g. "Program Files" -> "PROGRA~1")
13076      ;;
13077    esac
13078
13079    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13080    postinstall_cmds='base_file=`basename \$file`~
13081      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13082      dldir=$destdir/`dirname \$dlpath`~
13083      test -d \$dldir || mkdir -p \$dldir~
13084      $install_prog $dir/$dlname \$dldir/$dlname'
13085    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13086      dlpath=$dir/\$dldll~
13087       $RM \$dlpath'
13088    shlibpath_overrides_runpath=yes
13089    dynamic_linker='Win32 link.exe'
13090    ;;
13091
13092  *)
13093    # Assume MSVC wrapper
13094    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13095    dynamic_linker='Win32 ld.exe'
13096    ;;
13097  esac
13098  # FIXME: first we should search . and the directory the executable is in
13099  shlibpath_var=PATH
13100  ;;
13101
13102darwin* | rhapsody*)
13103  dynamic_linker="$host_os dyld"
13104  version_type=darwin
13105  need_lib_prefix=no
13106  need_version=no
13107  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13108  soname_spec='$libname$release$major$shared_ext'
13109  shlibpath_overrides_runpath=yes
13110  shlibpath_var=DYLD_LIBRARY_PATH
13111  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13112
13113  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13114  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13115  ;;
13116
13117dgux*)
13118  version_type=linux # correct to gnu/linux during the next big refactor
13119  need_lib_prefix=no
13120  need_version=no
13121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13122  soname_spec='$libname$release$shared_ext$major'
13123  shlibpath_var=LD_LIBRARY_PATH
13124  ;;
13125
13126freebsd* | dragonfly*)
13127  # DragonFly does not have aout.  When/if they implement a new
13128  # versioning mechanism, adjust this.
13129  if test -x /usr/bin/objformat; then
13130    objformat=`/usr/bin/objformat`
13131  else
13132    case $host_os in
13133    freebsd[23].*) objformat=aout ;;
13134    *) objformat=elf ;;
13135    esac
13136  fi
13137  version_type=freebsd-$objformat
13138  case $version_type in
13139    freebsd-elf*)
13140      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13141      soname_spec='$libname$release$shared_ext$major'
13142      need_version=no
13143      need_lib_prefix=no
13144      ;;
13145    freebsd-*)
13146      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13147      need_version=yes
13148      ;;
13149  esac
13150  shlibpath_var=LD_LIBRARY_PATH
13151  case $host_os in
13152  freebsd2.*)
13153    shlibpath_overrides_runpath=yes
13154    ;;
13155  freebsd3.[01]* | freebsdelf3.[01]*)
13156    shlibpath_overrides_runpath=yes
13157    hardcode_into_libs=yes
13158    ;;
13159  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13160  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13161    shlibpath_overrides_runpath=no
13162    hardcode_into_libs=yes
13163    ;;
13164  *) # from 4.6 on, and DragonFly
13165    shlibpath_overrides_runpath=yes
13166    hardcode_into_libs=yes
13167    ;;
13168  esac
13169  ;;
13170
13171haiku*)
13172  version_type=linux # correct to gnu/linux during the next big refactor
13173  need_lib_prefix=no
13174  need_version=no
13175  dynamic_linker="$host_os runtime_loader"
13176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13177  soname_spec='$libname$release$shared_ext$major'
13178  shlibpath_var=LIBRARY_PATH
13179  shlibpath_overrides_runpath=no
13180  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13181  hardcode_into_libs=yes
13182  ;;
13183
13184hpux9* | hpux10* | hpux11*)
13185  # Give a soname corresponding to the major version so that dld.sl refuses to
13186  # link against other versions.
13187  version_type=sunos
13188  need_lib_prefix=no
13189  need_version=no
13190  case $host_cpu in
13191  ia64*)
13192    shrext_cmds='.so'
13193    hardcode_into_libs=yes
13194    dynamic_linker="$host_os dld.so"
13195    shlibpath_var=LD_LIBRARY_PATH
13196    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13197    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198    soname_spec='$libname$release$shared_ext$major'
13199    if test 32 = "$HPUX_IA64_MODE"; then
13200      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13201      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13202    else
13203      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13204      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13205    fi
13206    ;;
13207  hppa*64*)
13208    shrext_cmds='.sl'
13209    hardcode_into_libs=yes
13210    dynamic_linker="$host_os dld.sl"
13211    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13212    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13214    soname_spec='$libname$release$shared_ext$major'
13215    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13216    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13217    ;;
13218  *)
13219    shrext_cmds='.sl'
13220    dynamic_linker="$host_os dld.sl"
13221    shlibpath_var=SHLIB_PATH
13222    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13223    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13224    soname_spec='$libname$release$shared_ext$major'
13225    ;;
13226  esac
13227  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13228  postinstall_cmds='chmod 555 $lib'
13229  # or fails outright, so override atomically:
13230  install_override_mode=555
13231  ;;
13232
13233interix[3-9]*)
13234  version_type=linux # correct to gnu/linux during the next big refactor
13235  need_lib_prefix=no
13236  need_version=no
13237  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13238  soname_spec='$libname$release$shared_ext$major'
13239  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13240  shlibpath_var=LD_LIBRARY_PATH
13241  shlibpath_overrides_runpath=no
13242  hardcode_into_libs=yes
13243  ;;
13244
13245irix5* | irix6* | nonstopux*)
13246  case $host_os in
13247    nonstopux*) version_type=nonstopux ;;
13248    *)
13249	if test yes = "$lt_cv_prog_gnu_ld"; then
13250		version_type=linux # correct to gnu/linux during the next big refactor
13251	else
13252		version_type=irix
13253	fi ;;
13254  esac
13255  need_lib_prefix=no
13256  need_version=no
13257  soname_spec='$libname$release$shared_ext$major'
13258  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13259  case $host_os in
13260  irix5* | nonstopux*)
13261    libsuff= shlibsuff=
13262    ;;
13263  *)
13264    case $LD in # libtool.m4 will add one of these switches to LD
13265    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13266      libsuff= shlibsuff= libmagic=32-bit;;
13267    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13268      libsuff=32 shlibsuff=N32 libmagic=N32;;
13269    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13270      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13271    *) libsuff= shlibsuff= libmagic=never-match;;
13272    esac
13273    ;;
13274  esac
13275  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13276  shlibpath_overrides_runpath=no
13277  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13278  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13279  hardcode_into_libs=yes
13280  ;;
13281
13282# No shared lib support for Linux oldld, aout, or coff.
13283linux*oldld* | linux*aout* | linux*coff*)
13284  dynamic_linker=no
13285  ;;
13286
13287linux*android*)
13288  version_type=none # Android doesn't support versioned libraries.
13289  need_lib_prefix=no
13290  need_version=no
13291  library_names_spec='$libname$release$shared_ext'
13292  soname_spec='$libname$release$shared_ext'
13293  finish_cmds=
13294  shlibpath_var=LD_LIBRARY_PATH
13295  shlibpath_overrides_runpath=yes
13296
13297  # This implies no fast_install, which is unacceptable.
13298  # Some rework will be needed to allow for fast_install
13299  # before this can be enabled.
13300  hardcode_into_libs=yes
13301
13302  dynamic_linker='Android linker'
13303  # Don't embed -rpath directories since the linker doesn't support them.
13304  hardcode_libdir_flag_spec='-L$libdir'
13305  ;;
13306
13307# This must be glibc/ELF.
13308linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13309  version_type=linux # correct to gnu/linux during the next big refactor
13310  need_lib_prefix=no
13311  need_version=no
13312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13313  soname_spec='$libname$release$shared_ext$major'
13314  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13315  shlibpath_var=LD_LIBRARY_PATH
13316  shlibpath_overrides_runpath=no
13317
13318  # Some binutils ld are patched to set DT_RUNPATH
13319  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13320  $as_echo_n "(cached) " >&6
13321else
13322  lt_cv_shlibpath_overrides_runpath=no
13323    save_LDFLAGS=$LDFLAGS
13324    save_libdir=$libdir
13325    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13326	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329
13330int
13331main ()
13332{
13333
13334  ;
13335  return 0;
13336}
13337_ACEOF
13338if ac_fn_c_try_link "$LINENO"; then :
13339  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13340  lt_cv_shlibpath_overrides_runpath=yes
13341fi
13342fi
13343rm -f core conftest.err conftest.$ac_objext \
13344    conftest$ac_exeext conftest.$ac_ext
13345    LDFLAGS=$save_LDFLAGS
13346    libdir=$save_libdir
13347
13348fi
13349
13350  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13351
13352  # This implies no fast_install, which is unacceptable.
13353  # Some rework will be needed to allow for fast_install
13354  # before this can be enabled.
13355  hardcode_into_libs=yes
13356
13357  # Add ABI-specific directories to the system library path.
13358  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13359
13360  # Ideally, we could use ldconfig to report *all* directores which are
13361  # searched for libraries, however this is still not possible.  Aside from not
13362  # being certain /sbin/ldconfig is available, command
13363  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13364  # even though it is searched at run-time.  Try to do the best guess by
13365  # appending ld.so.conf contents (and includes) to the search path.
13366  if test -f /etc/ld.so.conf; then
13367    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' ' '`
13368    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13369  fi
13370
13371  # We used to test for /lib/ld.so.1 and disable shared libraries on
13372  # powerpc, because MkLinux only supported shared libraries with the
13373  # GNU dynamic linker.  Since this was broken with cross compilers,
13374  # most powerpc-linux boxes support dynamic linking these days and
13375  # people can always --disable-shared, the test was removed, and we
13376  # assume the GNU/Linux dynamic linker is in use.
13377  dynamic_linker='GNU/Linux ld.so'
13378  ;;
13379
13380netbsd*)
13381  version_type=sunos
13382  need_lib_prefix=no
13383  need_version=no
13384  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13385    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13386    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387    dynamic_linker='NetBSD (a.out) ld.so'
13388  else
13389    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390    soname_spec='$libname$release$shared_ext$major'
13391    dynamic_linker='NetBSD ld.elf_so'
13392  fi
13393  shlibpath_var=LD_LIBRARY_PATH
13394  shlibpath_overrides_runpath=yes
13395  hardcode_into_libs=yes
13396  ;;
13397
13398newsos6)
13399  version_type=linux # correct to gnu/linux during the next big refactor
13400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13401  shlibpath_var=LD_LIBRARY_PATH
13402  shlibpath_overrides_runpath=yes
13403  ;;
13404
13405*nto* | *qnx*)
13406  version_type=qnx
13407  need_lib_prefix=no
13408  need_version=no
13409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13410  soname_spec='$libname$release$shared_ext$major'
13411  shlibpath_var=LD_LIBRARY_PATH
13412  shlibpath_overrides_runpath=no
13413  hardcode_into_libs=yes
13414  dynamic_linker='ldqnx.so'
13415  ;;
13416
13417openbsd* | bitrig*)
13418  version_type=sunos
13419  sys_lib_dlsearch_path_spec=/usr/lib
13420  need_lib_prefix=no
13421  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13422    need_version=no
13423  else
13424    need_version=yes
13425  fi
13426  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13428  shlibpath_var=LD_LIBRARY_PATH
13429  shlibpath_overrides_runpath=yes
13430  ;;
13431
13432os2*)
13433  libname_spec='$name'
13434  version_type=windows
13435  shrext_cmds=.dll
13436  need_version=no
13437  need_lib_prefix=no
13438  # OS/2 can only load a DLL with a base name of 8 characters or less.
13439  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13440    v=$($ECHO $release$versuffix | tr -d .-);
13441    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13442    $ECHO $n$v`$shared_ext'
13443  library_names_spec='${libname}_dll.$libext'
13444  dynamic_linker='OS/2 ld.exe'
13445  shlibpath_var=BEGINLIBPATH
13446  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13447  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13448  postinstall_cmds='base_file=`basename \$file`~
13449    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13450    dldir=$destdir/`dirname \$dlpath`~
13451    test -d \$dldir || mkdir -p \$dldir~
13452    $install_prog $dir/$dlname \$dldir/$dlname~
13453    chmod a+x \$dldir/$dlname~
13454    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13455      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13456    fi'
13457  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13458    dlpath=$dir/\$dldll~
13459    $RM \$dlpath'
13460  ;;
13461
13462osf3* | osf4* | osf5*)
13463  version_type=osf
13464  need_lib_prefix=no
13465  need_version=no
13466  soname_spec='$libname$release$shared_ext$major'
13467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13468  shlibpath_var=LD_LIBRARY_PATH
13469  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13470  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13471  ;;
13472
13473rdos*)
13474  dynamic_linker=no
13475  ;;
13476
13477solaris*)
13478  version_type=linux # correct to gnu/linux during the next big refactor
13479  need_lib_prefix=no
13480  need_version=no
13481  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13482  soname_spec='$libname$release$shared_ext$major'
13483  shlibpath_var=LD_LIBRARY_PATH
13484  shlibpath_overrides_runpath=yes
13485  hardcode_into_libs=yes
13486  # ldd complains unless libraries are executable
13487  postinstall_cmds='chmod +x $lib'
13488  ;;
13489
13490sunos4*)
13491  version_type=sunos
13492  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13493  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13494  shlibpath_var=LD_LIBRARY_PATH
13495  shlibpath_overrides_runpath=yes
13496  if test yes = "$with_gnu_ld"; then
13497    need_lib_prefix=no
13498  fi
13499  need_version=yes
13500  ;;
13501
13502sysv4 | sysv4.3*)
13503  version_type=linux # correct to gnu/linux during the next big refactor
13504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13505  soname_spec='$libname$release$shared_ext$major'
13506  shlibpath_var=LD_LIBRARY_PATH
13507  case $host_vendor in
13508    sni)
13509      shlibpath_overrides_runpath=no
13510      need_lib_prefix=no
13511      runpath_var=LD_RUN_PATH
13512      ;;
13513    siemens)
13514      need_lib_prefix=no
13515      ;;
13516    motorola)
13517      need_lib_prefix=no
13518      need_version=no
13519      shlibpath_overrides_runpath=no
13520      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13521      ;;
13522  esac
13523  ;;
13524
13525sysv4*MP*)
13526  if test -d /usr/nec; then
13527    version_type=linux # correct to gnu/linux during the next big refactor
13528    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13529    soname_spec='$libname$shared_ext.$major'
13530    shlibpath_var=LD_LIBRARY_PATH
13531  fi
13532  ;;
13533
13534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13535  version_type=sco
13536  need_lib_prefix=no
13537  need_version=no
13538  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13539  soname_spec='$libname$release$shared_ext$major'
13540  shlibpath_var=LD_LIBRARY_PATH
13541  shlibpath_overrides_runpath=yes
13542  hardcode_into_libs=yes
13543  if test yes = "$with_gnu_ld"; then
13544    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13545  else
13546    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13547    case $host_os in
13548      sco3.2v5*)
13549        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13550	;;
13551    esac
13552  fi
13553  sys_lib_dlsearch_path_spec='/usr/lib'
13554  ;;
13555
13556tpf*)
13557  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13558  version_type=linux # correct to gnu/linux during the next big refactor
13559  need_lib_prefix=no
13560  need_version=no
13561  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13562  shlibpath_var=LD_LIBRARY_PATH
13563  shlibpath_overrides_runpath=no
13564  hardcode_into_libs=yes
13565  ;;
13566
13567uts4*)
13568  version_type=linux # correct to gnu/linux during the next big refactor
13569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13570  soname_spec='$libname$release$shared_ext$major'
13571  shlibpath_var=LD_LIBRARY_PATH
13572  ;;
13573
13574*)
13575  dynamic_linker=no
13576  ;;
13577esac
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13579$as_echo "$dynamic_linker" >&6; }
13580test no = "$dynamic_linker" && can_build_shared=no
13581
13582variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13583if test yes = "$GCC"; then
13584  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13585fi
13586
13587if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13588  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13589fi
13590
13591if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13592  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13593fi
13594
13595# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13596configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13597
13598# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13599func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13600
13601# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13602configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13701$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13702hardcode_action=
13703if test -n "$hardcode_libdir_flag_spec" ||
13704   test -n "$runpath_var" ||
13705   test yes = "$hardcode_automatic"; then
13706
13707  # We can hardcode non-existent directories.
13708  if test no != "$hardcode_direct" &&
13709     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13710     # have to relink, otherwise we might link with an installed library
13711     # when we should be linking with a yet-to-be-installed one
13712     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13713     test no != "$hardcode_minus_L"; then
13714    # Linking always hardcodes the temporary library directory.
13715    hardcode_action=relink
13716  else
13717    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13718    hardcode_action=immediate
13719  fi
13720else
13721  # We cannot hardcode anything, or else we can only hardcode existing
13722  # directories.
13723  hardcode_action=unsupported
13724fi
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13726$as_echo "$hardcode_action" >&6; }
13727
13728if test relink = "$hardcode_action" ||
13729   test yes = "$inherit_rpath"; then
13730  # Fast installation is not supported
13731  enable_fast_install=no
13732elif test yes = "$shlibpath_overrides_runpath" ||
13733     test no = "$enable_shared"; then
13734  # Fast installation is not necessary
13735  enable_fast_install=needless
13736fi
13737
13738
13739
13740
13741
13742
13743  if test yes != "$enable_dlopen"; then
13744  enable_dlopen=unknown
13745  enable_dlopen_self=unknown
13746  enable_dlopen_self_static=unknown
13747else
13748  lt_cv_dlopen=no
13749  lt_cv_dlopen_libs=
13750
13751  case $host_os in
13752  beos*)
13753    lt_cv_dlopen=load_add_on
13754    lt_cv_dlopen_libs=
13755    lt_cv_dlopen_self=yes
13756    ;;
13757
13758  mingw* | pw32* | cegcc*)
13759    lt_cv_dlopen=LoadLibrary
13760    lt_cv_dlopen_libs=
13761    ;;
13762
13763  cygwin*)
13764    lt_cv_dlopen=dlopen
13765    lt_cv_dlopen_libs=
13766    ;;
13767
13768  darwin*)
13769    # if libdl is installed we need to link against it
13770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13771$as_echo_n "checking for dlopen in -ldl... " >&6; }
13772if ${ac_cv_lib_dl_dlopen+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  ac_check_lib_save_LIBS=$LIBS
13776LIBS="-ldl  $LIBS"
13777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781   Use char because int might match the return type of a GCC
13782   builtin and then its argument prototype would still apply.  */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char dlopen ();
13787int
13788main ()
13789{
13790return dlopen ();
13791  ;
13792  return 0;
13793}
13794_ACEOF
13795if ac_fn_c_try_link "$LINENO"; then :
13796  ac_cv_lib_dl_dlopen=yes
13797else
13798  ac_cv_lib_dl_dlopen=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext \
13801    conftest$ac_exeext conftest.$ac_ext
13802LIBS=$ac_check_lib_save_LIBS
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13805$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13806if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13807  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13808else
13809
13810    lt_cv_dlopen=dyld
13811    lt_cv_dlopen_libs=
13812    lt_cv_dlopen_self=yes
13813
13814fi
13815
13816    ;;
13817
13818  tpf*)
13819    # Don't try to run any link tests for TPF.  We know it's impossible
13820    # because TPF is a cross-compiler, and we know how we open DSOs.
13821    lt_cv_dlopen=dlopen
13822    lt_cv_dlopen_libs=
13823    lt_cv_dlopen_self=no
13824    ;;
13825
13826  *)
13827    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13828if test "x$ac_cv_func_shl_load" = xyes; then :
13829  lt_cv_dlopen=shl_load
13830else
13831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13832$as_echo_n "checking for shl_load in -ldld... " >&6; }
13833if ${ac_cv_lib_dld_shl_load+:} false; then :
13834  $as_echo_n "(cached) " >&6
13835else
13836  ac_check_lib_save_LIBS=$LIBS
13837LIBS="-ldld  $LIBS"
13838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839/* end confdefs.h.  */
13840
13841/* Override any GCC internal prototype to avoid an error.
13842   Use char because int might match the return type of a GCC
13843   builtin and then its argument prototype would still apply.  */
13844#ifdef __cplusplus
13845extern "C"
13846#endif
13847char shl_load ();
13848int
13849main ()
13850{
13851return shl_load ();
13852  ;
13853  return 0;
13854}
13855_ACEOF
13856if ac_fn_c_try_link "$LINENO"; then :
13857  ac_cv_lib_dld_shl_load=yes
13858else
13859  ac_cv_lib_dld_shl_load=no
13860fi
13861rm -f core conftest.err conftest.$ac_objext \
13862    conftest$ac_exeext conftest.$ac_ext
13863LIBS=$ac_check_lib_save_LIBS
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13866$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13867if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13868  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13869else
13870  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13871if test "x$ac_cv_func_dlopen" = xyes; then :
13872  lt_cv_dlopen=dlopen
13873else
13874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13875$as_echo_n "checking for dlopen in -ldl... " >&6; }
13876if ${ac_cv_lib_dl_dlopen+:} false; then :
13877  $as_echo_n "(cached) " >&6
13878else
13879  ac_check_lib_save_LIBS=$LIBS
13880LIBS="-ldl  $LIBS"
13881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883
13884/* Override any GCC internal prototype to avoid an error.
13885   Use char because int might match the return type of a GCC
13886   builtin and then its argument prototype would still apply.  */
13887#ifdef __cplusplus
13888extern "C"
13889#endif
13890char dlopen ();
13891int
13892main ()
13893{
13894return dlopen ();
13895  ;
13896  return 0;
13897}
13898_ACEOF
13899if ac_fn_c_try_link "$LINENO"; then :
13900  ac_cv_lib_dl_dlopen=yes
13901else
13902  ac_cv_lib_dl_dlopen=no
13903fi
13904rm -f core conftest.err conftest.$ac_objext \
13905    conftest$ac_exeext conftest.$ac_ext
13906LIBS=$ac_check_lib_save_LIBS
13907fi
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13909$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13910if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13911  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13914$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13915if ${ac_cv_lib_svld_dlopen+:} false; then :
13916  $as_echo_n "(cached) " >&6
13917else
13918  ac_check_lib_save_LIBS=$LIBS
13919LIBS="-lsvld  $LIBS"
13920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922
13923/* Override any GCC internal prototype to avoid an error.
13924   Use char because int might match the return type of a GCC
13925   builtin and then its argument prototype would still apply.  */
13926#ifdef __cplusplus
13927extern "C"
13928#endif
13929char dlopen ();
13930int
13931main ()
13932{
13933return dlopen ();
13934  ;
13935  return 0;
13936}
13937_ACEOF
13938if ac_fn_c_try_link "$LINENO"; then :
13939  ac_cv_lib_svld_dlopen=yes
13940else
13941  ac_cv_lib_svld_dlopen=no
13942fi
13943rm -f core conftest.err conftest.$ac_objext \
13944    conftest$ac_exeext conftest.$ac_ext
13945LIBS=$ac_check_lib_save_LIBS
13946fi
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13948$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13949if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13950  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13951else
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13953$as_echo_n "checking for dld_link in -ldld... " >&6; }
13954if ${ac_cv_lib_dld_dld_link+:} false; then :
13955  $as_echo_n "(cached) " >&6
13956else
13957  ac_check_lib_save_LIBS=$LIBS
13958LIBS="-ldld  $LIBS"
13959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961
13962/* Override any GCC internal prototype to avoid an error.
13963   Use char because int might match the return type of a GCC
13964   builtin and then its argument prototype would still apply.  */
13965#ifdef __cplusplus
13966extern "C"
13967#endif
13968char dld_link ();
13969int
13970main ()
13971{
13972return dld_link ();
13973  ;
13974  return 0;
13975}
13976_ACEOF
13977if ac_fn_c_try_link "$LINENO"; then :
13978  ac_cv_lib_dld_dld_link=yes
13979else
13980  ac_cv_lib_dld_dld_link=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext \
13983    conftest$ac_exeext conftest.$ac_ext
13984LIBS=$ac_check_lib_save_LIBS
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13987$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13988if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13989  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13990fi
13991
13992
13993fi
13994
13995
13996fi
13997
13998
13999fi
14000
14001
14002fi
14003
14004
14005fi
14006
14007    ;;
14008  esac
14009
14010  if test no = "$lt_cv_dlopen"; then
14011    enable_dlopen=no
14012  else
14013    enable_dlopen=yes
14014  fi
14015
14016  case $lt_cv_dlopen in
14017  dlopen)
14018    save_CPPFLAGS=$CPPFLAGS
14019    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14020
14021    save_LDFLAGS=$LDFLAGS
14022    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14023
14024    save_LIBS=$LIBS
14025    LIBS="$lt_cv_dlopen_libs $LIBS"
14026
14027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14028$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14029if ${lt_cv_dlopen_self+:} false; then :
14030  $as_echo_n "(cached) " >&6
14031else
14032  	  if test yes = "$cross_compiling"; then :
14033  lt_cv_dlopen_self=cross
14034else
14035  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14036  lt_status=$lt_dlunknown
14037  cat > conftest.$ac_ext <<_LT_EOF
14038#line $LINENO "configure"
14039#include "confdefs.h"
14040
14041#if HAVE_DLFCN_H
14042#include <dlfcn.h>
14043#endif
14044
14045#include <stdio.h>
14046
14047#ifdef RTLD_GLOBAL
14048#  define LT_DLGLOBAL		RTLD_GLOBAL
14049#else
14050#  ifdef DL_GLOBAL
14051#    define LT_DLGLOBAL		DL_GLOBAL
14052#  else
14053#    define LT_DLGLOBAL		0
14054#  endif
14055#endif
14056
14057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14058   find out it does not work in some platform. */
14059#ifndef LT_DLLAZY_OR_NOW
14060#  ifdef RTLD_LAZY
14061#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14062#  else
14063#    ifdef DL_LAZY
14064#      define LT_DLLAZY_OR_NOW		DL_LAZY
14065#    else
14066#      ifdef RTLD_NOW
14067#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14068#      else
14069#        ifdef DL_NOW
14070#          define LT_DLLAZY_OR_NOW	DL_NOW
14071#        else
14072#          define LT_DLLAZY_OR_NOW	0
14073#        endif
14074#      endif
14075#    endif
14076#  endif
14077#endif
14078
14079/* When -fvisibility=hidden is used, assume the code has been annotated
14080   correspondingly for the symbols needed.  */
14081#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14082int fnord () __attribute__((visibility("default")));
14083#endif
14084
14085int fnord () { return 42; }
14086int main ()
14087{
14088  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14089  int status = $lt_dlunknown;
14090
14091  if (self)
14092    {
14093      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14094      else
14095        {
14096	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14097          else puts (dlerror ());
14098	}
14099      /* dlclose (self); */
14100    }
14101  else
14102    puts (dlerror ());
14103
14104  return status;
14105}
14106_LT_EOF
14107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14108  (eval $ac_link) 2>&5
14109  ac_status=$?
14110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14111  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14112    (./conftest; exit; ) >&5 2>/dev/null
14113    lt_status=$?
14114    case x$lt_status in
14115      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14116      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14117      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14118    esac
14119  else :
14120    # compilation failed
14121    lt_cv_dlopen_self=no
14122  fi
14123fi
14124rm -fr conftest*
14125
14126
14127fi
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14129$as_echo "$lt_cv_dlopen_self" >&6; }
14130
14131    if test yes = "$lt_cv_dlopen_self"; then
14132      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14133      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14134$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14135if ${lt_cv_dlopen_self_static+:} false; then :
14136  $as_echo_n "(cached) " >&6
14137else
14138  	  if test yes = "$cross_compiling"; then :
14139  lt_cv_dlopen_self_static=cross
14140else
14141  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14142  lt_status=$lt_dlunknown
14143  cat > conftest.$ac_ext <<_LT_EOF
14144#line $LINENO "configure"
14145#include "confdefs.h"
14146
14147#if HAVE_DLFCN_H
14148#include <dlfcn.h>
14149#endif
14150
14151#include <stdio.h>
14152
14153#ifdef RTLD_GLOBAL
14154#  define LT_DLGLOBAL		RTLD_GLOBAL
14155#else
14156#  ifdef DL_GLOBAL
14157#    define LT_DLGLOBAL		DL_GLOBAL
14158#  else
14159#    define LT_DLGLOBAL		0
14160#  endif
14161#endif
14162
14163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14164   find out it does not work in some platform. */
14165#ifndef LT_DLLAZY_OR_NOW
14166#  ifdef RTLD_LAZY
14167#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14168#  else
14169#    ifdef DL_LAZY
14170#      define LT_DLLAZY_OR_NOW		DL_LAZY
14171#    else
14172#      ifdef RTLD_NOW
14173#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14174#      else
14175#        ifdef DL_NOW
14176#          define LT_DLLAZY_OR_NOW	DL_NOW
14177#        else
14178#          define LT_DLLAZY_OR_NOW	0
14179#        endif
14180#      endif
14181#    endif
14182#  endif
14183#endif
14184
14185/* When -fvisibility=hidden is used, assume the code has been annotated
14186   correspondingly for the symbols needed.  */
14187#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14188int fnord () __attribute__((visibility("default")));
14189#endif
14190
14191int fnord () { return 42; }
14192int main ()
14193{
14194  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14195  int status = $lt_dlunknown;
14196
14197  if (self)
14198    {
14199      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14200      else
14201        {
14202	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14203          else puts (dlerror ());
14204	}
14205      /* dlclose (self); */
14206    }
14207  else
14208    puts (dlerror ());
14209
14210  return status;
14211}
14212_LT_EOF
14213  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14214  (eval $ac_link) 2>&5
14215  ac_status=$?
14216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14217  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14218    (./conftest; exit; ) >&5 2>/dev/null
14219    lt_status=$?
14220    case x$lt_status in
14221      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14222      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14223      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14224    esac
14225  else :
14226    # compilation failed
14227    lt_cv_dlopen_self_static=no
14228  fi
14229fi
14230rm -fr conftest*
14231
14232
14233fi
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14235$as_echo "$lt_cv_dlopen_self_static" >&6; }
14236    fi
14237
14238    CPPFLAGS=$save_CPPFLAGS
14239    LDFLAGS=$save_LDFLAGS
14240    LIBS=$save_LIBS
14241    ;;
14242  esac
14243
14244  case $lt_cv_dlopen_self in
14245  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14246  *) enable_dlopen_self=unknown ;;
14247  esac
14248
14249  case $lt_cv_dlopen_self_static in
14250  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14251  *) enable_dlopen_self_static=unknown ;;
14252  esac
14253fi
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271striplib=
14272old_striplib=
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14274$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14275if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14276  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14277  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14279$as_echo "yes" >&6; }
14280else
14281# FIXME - insert some real tests, host_os isn't really good enough
14282  case $host_os in
14283  darwin*)
14284    if test -n "$STRIP"; then
14285      striplib="$STRIP -x"
14286      old_striplib="$STRIP -S"
14287      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14288$as_echo "yes" >&6; }
14289    else
14290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
14292    fi
14293    ;;
14294  *)
14295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296$as_echo "no" >&6; }
14297    ;;
14298  esac
14299fi
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312  # Report what library types will actually be built
14313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14314$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14316$as_echo "$can_build_shared" >&6; }
14317
14318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14319$as_echo_n "checking whether to build shared libraries... " >&6; }
14320  test no = "$can_build_shared" && enable_shared=no
14321
14322  # On AIX, shared libraries and static libraries use the same namespace, and
14323  # are all built from PIC.
14324  case $host_os in
14325  aix3*)
14326    test yes = "$enable_shared" && enable_static=no
14327    if test -n "$RANLIB"; then
14328      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14329      postinstall_cmds='$RANLIB $lib'
14330    fi
14331    ;;
14332
14333  aix[4-9]*)
14334    if test ia64 != "$host_cpu"; then
14335      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14336      yes,aix,yes) ;;			# shared object as lib.so file only
14337      yes,svr4,*) ;;			# shared object as lib.so archive member only
14338      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14339      esac
14340    fi
14341    ;;
14342  esac
14343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14344$as_echo "$enable_shared" >&6; }
14345
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14347$as_echo_n "checking whether to build static libraries... " >&6; }
14348  # Make sure either enable_shared or enable_static is yes.
14349  test yes = "$enable_shared" || enable_static=yes
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14351$as_echo "$enable_static" >&6; }
14352
14353
14354
14355
14356fi
14357ac_ext=c
14358ac_cpp='$CPP $CPPFLAGS'
14359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14361ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362
14363CC=$lt_save_CC
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379        ac_config_commands="$ac_config_commands libtool"
14380
14381
14382
14383
14384# Only expand once:
14385
14386
14387
14388
14389# Checks for header files.
14390for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h
14391do :
14392  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14393ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14394"
14395if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14396  cat >>confdefs.h <<_ACEOF
14397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14398_ACEOF
14399
14400fi
14401
14402done
14403
14404
14405# check for types.
14406# Using own tests for int64* because autoconf builtin only give 32bit.
14407ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14408if test "x$ac_cv_type_int8_t" = xyes; then :
14409
14410else
14411
14412cat >>confdefs.h <<_ACEOF
14413#define int8_t signed char
14414_ACEOF
14415
14416fi
14417
14418ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14419if test "x$ac_cv_type_int16_t" = xyes; then :
14420
14421else
14422
14423cat >>confdefs.h <<_ACEOF
14424#define int16_t short
14425_ACEOF
14426
14427fi
14428
14429ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14430if test "x$ac_cv_type_int32_t" = xyes; then :
14431
14432else
14433
14434cat >>confdefs.h <<_ACEOF
14435#define int32_t int
14436_ACEOF
14437
14438fi
14439
14440ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14441if test "x$ac_cv_type_int64_t" = xyes; then :
14442
14443else
14444
14445cat >>confdefs.h <<_ACEOF
14446#define int64_t long long
14447_ACEOF
14448
14449fi
14450
14451ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14452if test "x$ac_cv_type_uint8_t" = xyes; then :
14453
14454else
14455
14456cat >>confdefs.h <<_ACEOF
14457#define uint8_t unsigned char
14458_ACEOF
14459
14460fi
14461
14462ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14463if test "x$ac_cv_type_uint16_t" = xyes; then :
14464
14465else
14466
14467cat >>confdefs.h <<_ACEOF
14468#define uint16_t unsigned short
14469_ACEOF
14470
14471fi
14472
14473ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14474if test "x$ac_cv_type_uint32_t" = xyes; then :
14475
14476else
14477
14478cat >>confdefs.h <<_ACEOF
14479#define uint32_t unsigned int
14480_ACEOF
14481
14482fi
14483
14484ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14485if test "x$ac_cv_type_uint64_t" = xyes; then :
14486
14487else
14488
14489cat >>confdefs.h <<_ACEOF
14490#define uint64_t unsigned long long
14491_ACEOF
14492
14493fi
14494
14495ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14496if test "x$ac_cv_type_size_t" = xyes; then :
14497
14498else
14499
14500cat >>confdefs.h <<_ACEOF
14501#define size_t unsigned int
14502_ACEOF
14503
14504fi
14505
14506ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14507if test "x$ac_cv_type_ssize_t" = xyes; then :
14508
14509else
14510
14511cat >>confdefs.h <<_ACEOF
14512#define ssize_t int
14513_ACEOF
14514
14515fi
14516
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14518$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14519if ${ac_cv_type_uid_t+:} false; then :
14520  $as_echo_n "(cached) " >&6
14521else
14522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524#include <sys/types.h>
14525
14526_ACEOF
14527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14528  $EGREP "uid_t" >/dev/null 2>&1; then :
14529  ac_cv_type_uid_t=yes
14530else
14531  ac_cv_type_uid_t=no
14532fi
14533rm -f conftest*
14534
14535fi
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14537$as_echo "$ac_cv_type_uid_t" >&6; }
14538if test $ac_cv_type_uid_t = no; then
14539
14540$as_echo "#define uid_t int" >>confdefs.h
14541
14542
14543$as_echo "#define gid_t int" >>confdefs.h
14544
14545fi
14546
14547ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14548if test "x$ac_cv_type_pid_t" = xyes; then :
14549
14550else
14551
14552cat >>confdefs.h <<_ACEOF
14553#define pid_t int
14554_ACEOF
14555
14556fi
14557
14558ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14559if test "x$ac_cv_type_off_t" = xyes; then :
14560
14561else
14562
14563cat >>confdefs.h <<_ACEOF
14564#define off_t long int
14565_ACEOF
14566
14567fi
14568
14569ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14570$ac_includes_default
14571#ifdef HAVE_WINSOCK2_H
14572#  include <winsock2.h>
14573#endif
14574
14575"
14576if test "x$ac_cv_type_u_char" = xyes; then :
14577
14578else
14579
14580$as_echo "#define u_char unsigned char" >>confdefs.h
14581
14582fi
14583
14584ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14585$ac_includes_default
14586#ifdef HAVE_SYS_RESOURCE_H
14587#  include <sys/resource.h>
14588#endif
14589
14590"
14591if test "x$ac_cv_type_rlim_t" = xyes; then :
14592
14593else
14594
14595$as_echo "#define rlim_t unsigned long" >>confdefs.h
14596
14597fi
14598
14599
14600ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14601$ac_includes_default
14602#ifdef HAVE_SYS_SOCKET_H
14603#  include <sys/socket.h>
14604#endif
14605#ifdef HAVE_WS2TCPIP_H
14606#  include <ws2tcpip.h>
14607#endif
14608
14609"
14610if test "x$ac_cv_type_socklen_t" = xyes; then :
14611
14612else
14613
14614$as_echo "#define socklen_t int" >>confdefs.h
14615
14616fi
14617
14618 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14619$ac_includes_default
14620#ifdef HAVE_SYS_TYPES_H
14621# include <sys/types.h>
14622#endif
14623#ifdef HAVE_NETINET_IN_H
14624# include <netinet/in.h>
14625#endif
14626
14627"
14628if test "x$ac_cv_type_in_addr_t" = xyes; then :
14629
14630else
14631
14632$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14633
14634fi
14635
14636 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14637$ac_includes_default
14638#ifdef HAVE_SYS_TYPES_H
14639# include <sys/types.h>
14640#endif
14641#ifdef HAVE_NETINET_IN_H
14642# include <netinet/in.h>
14643#endif
14644
14645"
14646if test "x$ac_cv_type_in_port_t" = xyes; then :
14647
14648else
14649
14650$as_echo "#define in_port_t uint16_t" >>confdefs.h
14651
14652fi
14653
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14655$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14656if test "$cross_compiling" = yes; then :
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14658$as_echo "cross-compile no" >&6; }
14659
14660$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14661
14662  case " $LIBOBJS " in
14663  *" memcmp.$ac_objext "* ) ;;
14664  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14665 ;;
14666esac
14667
14668
14669else
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672
14673#include <stdio.h>
14674#include <stdlib.h>
14675#include <string.h>
14676int main(void)
14677{
14678	char a = 255, b = 0;
14679	if(memcmp(&a, &b, 1) < 0)
14680		return 1;
14681	return 0;
14682}
14683
14684_ACEOF
14685if ac_fn_c_try_run "$LINENO"; then :
14686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687$as_echo "yes" >&6; }
14688else
14689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690$as_echo "no" >&6; }
14691
14692$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14693
14694  case " $LIBOBJS " in
14695  *" memcmp.$ac_objext "* ) ;;
14696  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14697 ;;
14698esac
14699
14700
14701fi
14702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14703  conftest.$ac_objext conftest.beam conftest.$ac_ext
14704fi
14705
14706
14707# The cast to long int works around a bug in the HP C Compiler
14708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14710# This bug is HP SR number 8606223364.
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14712$as_echo_n "checking size of time_t... " >&6; }
14713if ${ac_cv_sizeof_time_t+:} false; then :
14714  $as_echo_n "(cached) " >&6
14715else
14716  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14717$ac_includes_default
14718#ifdef TIME_WITH_SYS_TIME
14719# include <sys/time.h>
14720# include <time.h>
14721#else
14722# ifdef HAVE_SYS_TIME_H
14723#  include <sys/time.h>
14724# else
14725#  include <time.h>
14726# endif
14727#endif
14728
14729"; then :
14730
14731else
14732  if test "$ac_cv_type_time_t" = yes; then
14733     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14735as_fn_error 77 "cannot compute sizeof (time_t)
14736See \`config.log' for more details" "$LINENO" 5; }
14737   else
14738     ac_cv_sizeof_time_t=0
14739   fi
14740fi
14741
14742fi
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14744$as_echo "$ac_cv_sizeof_time_t" >&6; }
14745
14746
14747
14748cat >>confdefs.h <<_ACEOF
14749#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14750_ACEOF
14751
14752
14753
14754# add option to disable the evil rpath
14755
14756# Check whether --enable-rpath was given.
14757if test "${enable_rpath+set}" = set; then :
14758  enableval=$enable_rpath; enable_rpath=$enableval
14759else
14760  enable_rpath=yes
14761fi
14762
14763if test "x$enable_rpath" = xno; then
14764		ac_config_commands="$ac_config_commands disable-rpath"
14765
14766fi
14767
14768
14769
14770# check to see if libraries are needed for these functions.
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14772$as_echo_n "checking for library containing inet_pton... " >&6; }
14773if ${ac_cv_search_inet_pton+:} false; then :
14774  $as_echo_n "(cached) " >&6
14775else
14776  ac_func_search_save_LIBS=$LIBS
14777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778/* end confdefs.h.  */
14779
14780/* Override any GCC internal prototype to avoid an error.
14781   Use char because int might match the return type of a GCC
14782   builtin and then its argument prototype would still apply.  */
14783#ifdef __cplusplus
14784extern "C"
14785#endif
14786char inet_pton ();
14787int
14788main ()
14789{
14790return inet_pton ();
14791  ;
14792  return 0;
14793}
14794_ACEOF
14795for ac_lib in '' nsl; do
14796  if test -z "$ac_lib"; then
14797    ac_res="none required"
14798  else
14799    ac_res=-l$ac_lib
14800    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14801  fi
14802  if ac_fn_c_try_link "$LINENO"; then :
14803  ac_cv_search_inet_pton=$ac_res
14804fi
14805rm -f core conftest.err conftest.$ac_objext \
14806    conftest$ac_exeext
14807  if ${ac_cv_search_inet_pton+:} false; then :
14808  break
14809fi
14810done
14811if ${ac_cv_search_inet_pton+:} false; then :
14812
14813else
14814  ac_cv_search_inet_pton=no
14815fi
14816rm conftest.$ac_ext
14817LIBS=$ac_func_search_save_LIBS
14818fi
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14820$as_echo "$ac_cv_search_inet_pton" >&6; }
14821ac_res=$ac_cv_search_inet_pton
14822if test "$ac_res" != no; then :
14823  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14824
14825fi
14826
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14828$as_echo_n "checking for library containing socket... " >&6; }
14829if ${ac_cv_search_socket+:} false; then :
14830  $as_echo_n "(cached) " >&6
14831else
14832  ac_func_search_save_LIBS=$LIBS
14833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834/* end confdefs.h.  */
14835
14836/* Override any GCC internal prototype to avoid an error.
14837   Use char because int might match the return type of a GCC
14838   builtin and then its argument prototype would still apply.  */
14839#ifdef __cplusplus
14840extern "C"
14841#endif
14842char socket ();
14843int
14844main ()
14845{
14846return socket ();
14847  ;
14848  return 0;
14849}
14850_ACEOF
14851for ac_lib in '' socket; do
14852  if test -z "$ac_lib"; then
14853    ac_res="none required"
14854  else
14855    ac_res=-l$ac_lib
14856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14857  fi
14858  if ac_fn_c_try_link "$LINENO"; then :
14859  ac_cv_search_socket=$ac_res
14860fi
14861rm -f core conftest.err conftest.$ac_objext \
14862    conftest$ac_exeext
14863  if ${ac_cv_search_socket+:} false; then :
14864  break
14865fi
14866done
14867if ${ac_cv_search_socket+:} false; then :
14868
14869else
14870  ac_cv_search_socket=no
14871fi
14872rm conftest.$ac_ext
14873LIBS=$ac_func_search_save_LIBS
14874fi
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14876$as_echo "$ac_cv_search_socket" >&6; }
14877ac_res=$ac_cv_search_socket
14878if test "$ac_res" != no; then :
14879  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14880
14881fi
14882
14883
14884# check wether strptime also works
14885
14886# check some functions of the OS before linking libs (while still runnable).
14887for ac_header in unistd.h
14888do :
14889  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14890if test "x$ac_cv_header_unistd_h" = xyes; then :
14891  cat >>confdefs.h <<_ACEOF
14892#define HAVE_UNISTD_H 1
14893_ACEOF
14894
14895fi
14896
14897done
14898
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14900$as_echo_n "checking for working chown... " >&6; }
14901if ${ac_cv_func_chown_works+:} false; then :
14902  $as_echo_n "(cached) " >&6
14903else
14904  if test "$cross_compiling" = yes; then :
14905  ac_cv_func_chown_works=no
14906else
14907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908/* end confdefs.h.  */
14909$ac_includes_default
14910#include <fcntl.h>
14911
14912int
14913main ()
14914{
14915  char *f = "conftest.chown";
14916  struct stat before, after;
14917
14918  if (creat (f, 0600) < 0)
14919    return 1;
14920  if (stat (f, &before) < 0)
14921    return 1;
14922  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14923    return 1;
14924  if (stat (f, &after) < 0)
14925    return 1;
14926  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14927
14928  ;
14929  return 0;
14930}
14931_ACEOF
14932if ac_fn_c_try_run "$LINENO"; then :
14933  ac_cv_func_chown_works=yes
14934else
14935  ac_cv_func_chown_works=no
14936fi
14937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14938  conftest.$ac_objext conftest.beam conftest.$ac_ext
14939fi
14940
14941rm -f conftest.chown
14942
14943fi
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14945$as_echo "$ac_cv_func_chown_works" >&6; }
14946if test $ac_cv_func_chown_works = yes; then
14947
14948$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14949
14950fi
14951
14952for ac_header in vfork.h
14953do :
14954  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14955if test "x$ac_cv_header_vfork_h" = xyes; then :
14956  cat >>confdefs.h <<_ACEOF
14957#define HAVE_VFORK_H 1
14958_ACEOF
14959
14960fi
14961
14962done
14963
14964for ac_func in fork vfork
14965do :
14966  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14968if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14969  cat >>confdefs.h <<_ACEOF
14970#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14971_ACEOF
14972
14973fi
14974done
14975
14976if test "x$ac_cv_func_fork" = xyes; then
14977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14978$as_echo_n "checking for working fork... " >&6; }
14979if ${ac_cv_func_fork_works+:} false; then :
14980  $as_echo_n "(cached) " >&6
14981else
14982  if test "$cross_compiling" = yes; then :
14983  ac_cv_func_fork_works=cross
14984else
14985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987$ac_includes_default
14988int
14989main ()
14990{
14991
14992	  /* By Ruediger Kuhlmann. */
14993	  return fork () < 0;
14994
14995  ;
14996  return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_run "$LINENO"; then :
15000  ac_cv_func_fork_works=yes
15001else
15002  ac_cv_func_fork_works=no
15003fi
15004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15005  conftest.$ac_objext conftest.beam conftest.$ac_ext
15006fi
15007
15008fi
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15010$as_echo "$ac_cv_func_fork_works" >&6; }
15011
15012else
15013  ac_cv_func_fork_works=$ac_cv_func_fork
15014fi
15015if test "x$ac_cv_func_fork_works" = xcross; then
15016  case $host in
15017    *-*-amigaos* | *-*-msdosdjgpp*)
15018      # Override, as these systems have only a dummy fork() stub
15019      ac_cv_func_fork_works=no
15020      ;;
15021    *)
15022      ac_cv_func_fork_works=yes
15023      ;;
15024  esac
15025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15026$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15027fi
15028ac_cv_func_vfork_works=$ac_cv_func_vfork
15029if test "x$ac_cv_func_vfork" = xyes; then
15030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15031$as_echo_n "checking for working vfork... " >&6; }
15032if ${ac_cv_func_vfork_works+:} false; then :
15033  $as_echo_n "(cached) " >&6
15034else
15035  if test "$cross_compiling" = yes; then :
15036  ac_cv_func_vfork_works=cross
15037else
15038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039/* end confdefs.h.  */
15040/* Thanks to Paul Eggert for this test.  */
15041$ac_includes_default
15042#include <sys/wait.h>
15043#ifdef HAVE_VFORK_H
15044# include <vfork.h>
15045#endif
15046/* On some sparc systems, changes by the child to local and incoming
15047   argument registers are propagated back to the parent.  The compiler
15048   is told about this with #include <vfork.h>, but some compilers
15049   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15050   static variable whose address is put into a register that is
15051   clobbered by the vfork.  */
15052static void
15053#ifdef __cplusplus
15054sparc_address_test (int arg)
15055# else
15056sparc_address_test (arg) int arg;
15057#endif
15058{
15059  static pid_t child;
15060  if (!child) {
15061    child = vfork ();
15062    if (child < 0) {
15063      perror ("vfork");
15064      _exit(2);
15065    }
15066    if (!child) {
15067      arg = getpid();
15068      write(-1, "", 0);
15069      _exit (arg);
15070    }
15071  }
15072}
15073
15074int
15075main ()
15076{
15077  pid_t parent = getpid ();
15078  pid_t child;
15079
15080  sparc_address_test (0);
15081
15082  child = vfork ();
15083
15084  if (child == 0) {
15085    /* Here is another test for sparc vfork register problems.  This
15086       test uses lots of local variables, at least as many local
15087       variables as main has allocated so far including compiler
15088       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15089       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15090       reuse the register of parent for one of the local variables,
15091       since it will think that parent can't possibly be used any more
15092       in this routine.  Assigning to the local variable will thus
15093       munge parent in the parent process.  */
15094    pid_t
15095      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15096      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15097    /* Convince the compiler that p..p7 are live; otherwise, it might
15098       use the same hardware register for all 8 local variables.  */
15099    if (p != p1 || p != p2 || p != p3 || p != p4
15100	|| p != p5 || p != p6 || p != p7)
15101      _exit(1);
15102
15103    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15104       from child file descriptors.  If the child closes a descriptor
15105       before it execs or exits, this munges the parent's descriptor
15106       as well.  Test for this by closing stdout in the child.  */
15107    _exit(close(fileno(stdout)) != 0);
15108  } else {
15109    int status;
15110    struct stat st;
15111
15112    while (wait(&status) != child)
15113      ;
15114    return (
15115	 /* Was there some problem with vforking?  */
15116	 child < 0
15117
15118	 /* Did the child fail?  (This shouldn't happen.)  */
15119	 || status
15120
15121	 /* Did the vfork/compiler bug occur?  */
15122	 || parent != getpid()
15123
15124	 /* Did the file descriptor bug occur?  */
15125	 || fstat(fileno(stdout), &st) != 0
15126	 );
15127  }
15128}
15129_ACEOF
15130if ac_fn_c_try_run "$LINENO"; then :
15131  ac_cv_func_vfork_works=yes
15132else
15133  ac_cv_func_vfork_works=no
15134fi
15135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15136  conftest.$ac_objext conftest.beam conftest.$ac_ext
15137fi
15138
15139fi
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15141$as_echo "$ac_cv_func_vfork_works" >&6; }
15142
15143fi;
15144if test "x$ac_cv_func_fork_works" = xcross; then
15145  ac_cv_func_vfork_works=$ac_cv_func_vfork
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15147$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15148fi
15149
15150if test "x$ac_cv_func_vfork_works" = xyes; then
15151
15152$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15153
15154else
15155
15156$as_echo "#define vfork fork" >>confdefs.h
15157
15158fi
15159if test "x$ac_cv_func_fork_works" = xyes; then
15160
15161$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15162
15163fi
15164
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15166$as_echo_n "checking return type of signal handlers... " >&6; }
15167if ${ac_cv_type_signal+:} false; then :
15168  $as_echo_n "(cached) " >&6
15169else
15170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171/* end confdefs.h.  */
15172#include <sys/types.h>
15173#include <signal.h>
15174
15175int
15176main ()
15177{
15178return *(signal (0, 0)) (0) == 1;
15179  ;
15180  return 0;
15181}
15182_ACEOF
15183if ac_fn_c_try_compile "$LINENO"; then :
15184  ac_cv_type_signal=int
15185else
15186  ac_cv_type_signal=void
15187fi
15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189fi
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15191$as_echo "$ac_cv_type_signal" >&6; }
15192
15193cat >>confdefs.h <<_ACEOF
15194#define RETSIGTYPE $ac_cv_type_signal
15195_ACEOF
15196
15197
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15199$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15200if ${ac_cv_sys_largefile_source+:} false; then :
15201  $as_echo_n "(cached) " >&6
15202else
15203  while :; do
15204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205/* end confdefs.h.  */
15206#include <sys/types.h> /* for off_t */
15207     #include <stdio.h>
15208int
15209main ()
15210{
15211int (*fp) (FILE *, off_t, int) = fseeko;
15212     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15213  ;
15214  return 0;
15215}
15216_ACEOF
15217if ac_fn_c_try_link "$LINENO"; then :
15218  ac_cv_sys_largefile_source=no; break
15219fi
15220rm -f core conftest.err conftest.$ac_objext \
15221    conftest$ac_exeext conftest.$ac_ext
15222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h.  */
15224#define _LARGEFILE_SOURCE 1
15225#include <sys/types.h> /* for off_t */
15226     #include <stdio.h>
15227int
15228main ()
15229{
15230int (*fp) (FILE *, off_t, int) = fseeko;
15231     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15232  ;
15233  return 0;
15234}
15235_ACEOF
15236if ac_fn_c_try_link "$LINENO"; then :
15237  ac_cv_sys_largefile_source=1; break
15238fi
15239rm -f core conftest.err conftest.$ac_objext \
15240    conftest$ac_exeext conftest.$ac_ext
15241  ac_cv_sys_largefile_source=unknown
15242  break
15243done
15244fi
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15246$as_echo "$ac_cv_sys_largefile_source" >&6; }
15247case $ac_cv_sys_largefile_source in #(
15248  no | unknown) ;;
15249  *)
15250cat >>confdefs.h <<_ACEOF
15251#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15252_ACEOF
15253;;
15254esac
15255rm -rf conftest*
15256
15257# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15258# in glibc 2.1.3, but that breaks too many other things.
15259# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15260if test $ac_cv_sys_largefile_source != unknown; then
15261
15262$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15263
15264fi
15265
15266
15267# Check whether --enable-largefile was given.
15268if test "${enable_largefile+set}" = set; then :
15269  enableval=$enable_largefile;
15270fi
15271
15272if test "$enable_largefile" != no; then
15273
15274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15275$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15276if ${ac_cv_sys_largefile_CC+:} false; then :
15277  $as_echo_n "(cached) " >&6
15278else
15279  ac_cv_sys_largefile_CC=no
15280     if test "$GCC" != yes; then
15281       ac_save_CC=$CC
15282       while :; do
15283	 # IRIX 6.2 and later do not support large files by default,
15284	 # so use the C compiler's -n32 option if that helps.
15285	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287#include <sys/types.h>
15288 /* Check that off_t can represent 2**63 - 1 correctly.
15289    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15290    since some C++ compilers masquerading as C compilers
15291    incorrectly reject 9223372036854775807.  */
15292#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15293  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15294		       && LARGE_OFF_T % 2147483647 == 1)
15295		      ? 1 : -1];
15296int
15297main ()
15298{
15299
15300  ;
15301  return 0;
15302}
15303_ACEOF
15304	 if ac_fn_c_try_compile "$LINENO"; then :
15305  break
15306fi
15307rm -f core conftest.err conftest.$ac_objext
15308	 CC="$CC -n32"
15309	 if ac_fn_c_try_compile "$LINENO"; then :
15310  ac_cv_sys_largefile_CC=' -n32'; break
15311fi
15312rm -f core conftest.err conftest.$ac_objext
15313	 break
15314       done
15315       CC=$ac_save_CC
15316       rm -f conftest.$ac_ext
15317    fi
15318fi
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15320$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15321  if test "$ac_cv_sys_largefile_CC" != no; then
15322    CC=$CC$ac_cv_sys_largefile_CC
15323  fi
15324
15325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15326$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15327if ${ac_cv_sys_file_offset_bits+:} false; then :
15328  $as_echo_n "(cached) " >&6
15329else
15330  while :; do
15331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332/* end confdefs.h.  */
15333#include <sys/types.h>
15334 /* Check that off_t can represent 2**63 - 1 correctly.
15335    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15336    since some C++ compilers masquerading as C compilers
15337    incorrectly reject 9223372036854775807.  */
15338#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15339  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15340		       && LARGE_OFF_T % 2147483647 == 1)
15341		      ? 1 : -1];
15342int
15343main ()
15344{
15345
15346  ;
15347  return 0;
15348}
15349_ACEOF
15350if ac_fn_c_try_compile "$LINENO"; then :
15351  ac_cv_sys_file_offset_bits=no; break
15352fi
15353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h.  */
15356#define _FILE_OFFSET_BITS 64
15357#include <sys/types.h>
15358 /* Check that off_t can represent 2**63 - 1 correctly.
15359    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15360    since some C++ compilers masquerading as C compilers
15361    incorrectly reject 9223372036854775807.  */
15362#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15363  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15364		       && LARGE_OFF_T % 2147483647 == 1)
15365		      ? 1 : -1];
15366int
15367main ()
15368{
15369
15370  ;
15371  return 0;
15372}
15373_ACEOF
15374if ac_fn_c_try_compile "$LINENO"; then :
15375  ac_cv_sys_file_offset_bits=64; break
15376fi
15377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378  ac_cv_sys_file_offset_bits=unknown
15379  break
15380done
15381fi
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15383$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15384case $ac_cv_sys_file_offset_bits in #(
15385  no | unknown) ;;
15386  *)
15387cat >>confdefs.h <<_ACEOF
15388#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15389_ACEOF
15390;;
15391esac
15392rm -rf conftest*
15393  if test $ac_cv_sys_file_offset_bits = unknown; then
15394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15395$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15396if ${ac_cv_sys_large_files+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  while :; do
15400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402#include <sys/types.h>
15403 /* Check that off_t can represent 2**63 - 1 correctly.
15404    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15405    since some C++ compilers masquerading as C compilers
15406    incorrectly reject 9223372036854775807.  */
15407#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15408  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15409		       && LARGE_OFF_T % 2147483647 == 1)
15410		      ? 1 : -1];
15411int
15412main ()
15413{
15414
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419if ac_fn_c_try_compile "$LINENO"; then :
15420  ac_cv_sys_large_files=no; break
15421fi
15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425#define _LARGE_FILES 1
15426#include <sys/types.h>
15427 /* Check that off_t can represent 2**63 - 1 correctly.
15428    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15429    since some C++ compilers masquerading as C compilers
15430    incorrectly reject 9223372036854775807.  */
15431#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15432  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15433		       && LARGE_OFF_T % 2147483647 == 1)
15434		      ? 1 : -1];
15435int
15436main ()
15437{
15438
15439  ;
15440  return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"; then :
15444  ac_cv_sys_large_files=1; break
15445fi
15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447  ac_cv_sys_large_files=unknown
15448  break
15449done
15450fi
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15452$as_echo "$ac_cv_sys_large_files" >&6; }
15453case $ac_cv_sys_large_files in #(
15454  no | unknown) ;;
15455  *)
15456cat >>confdefs.h <<_ACEOF
15457#define _LARGE_FILES $ac_cv_sys_large_files
15458_ACEOF
15459;;
15460esac
15461rm -rf conftest*
15462  fi
15463
15464
15465fi
15466
15467
15468
15469
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15471$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15472cache=_D_LARGEFILE_SOURCE_1
15473if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15474  $as_echo_n "(cached) " >&6
15475else
15476
15477echo '
15478#include <stdio.h>
15479int test() {
15480        int a = fseeko(stdin, 0, 0);
15481        return a;
15482}
15483' > conftest.c
15484echo 'void f(){}' >>conftest.c
15485if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15486eval "cv_prog_cc_flag_needed_$cache=no"
15487else
15488
15489if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15490eval "cv_prog_cc_flag_needed_$cache=yes"
15491else
15492eval "cv_prog_cc_flag_needed_$cache=fail"
15493#echo 'Test with flag fails too!'
15494#cat conftest.c
15495#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15496#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15497#exit 1
15498fi
15499
15500fi
15501rm -f conftest conftest.c conftest.o
15502
15503fi
15504
15505if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15507$as_echo "yes" >&6; }
15508:
15509CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15510else
15511if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513$as_echo "no" >&6; }
15514#echo 'Test with flag is no!'
15515#cat conftest.c
15516#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15517#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15518#exit 1
15519:
15520
15521else
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15523$as_echo "failed" >&6; }
15524:
15525
15526fi
15527fi
15528
15529
15530
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15532$as_echo_n "checking if nonblocking sockets work... " >&6; }
15533if echo $target | grep mingw32 >/dev/null; then
15534	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15535$as_echo "no (windows)" >&6; }
15536
15537$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15538
15539else
15540if test "$cross_compiling" = yes; then :
15541
15542	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15543$as_echo "crosscompile(yes)" >&6; }
15544
15545else
15546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547/* end confdefs.h.  */
15548
15549
15550#include <stdio.h>
15551#include <string.h>
15552#include <stdlib.h>
15553#include <fcntl.h>
15554#include <errno.h>
15555#ifdef HAVE_SYS_TYPES_H
15556#include <sys/types.h>
15557#endif
15558#ifdef HAVE_SYS_SOCKET_H
15559#include <sys/socket.h>
15560#endif
15561#ifdef HAVE_NETINET_IN_H
15562#include <netinet/in.h>
15563#endif
15564#ifdef HAVE_ARPA_INET_H
15565#include <arpa/inet.h>
15566#endif
15567#ifdef HAVE_UNISTD_H
15568#include <unistd.h>
15569#endif
15570#ifdef HAVE_TIME_H
15571#include <time.h>
15572#endif
15573
15574int main(void)
15575{
15576	int port;
15577	int sfd, cfd;
15578	int num = 10;
15579	int i, p;
15580	struct sockaddr_in a;
15581	/* test if select and nonblocking reads work well together */
15582	/* open port.
15583	   fork child to send 10 messages.
15584	   select to read.
15585	   then try to nonblocking read the 10 messages
15586	   then, nonblocking read must give EAGAIN
15587	*/
15588
15589	port = 12345 + (time(0)%32);
15590	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15591	if(sfd == -1) {
15592		perror("socket");
15593		return 1;
15594	}
15595	memset(&a, 0, sizeof(a));
15596	a.sin_family = AF_INET;
15597	a.sin_port = htons(port);
15598	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15599	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15600		perror("bind");
15601		return 1;
15602	}
15603	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15604		perror("fcntl");
15605		return 1;
15606	}
15607
15608	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15609	if(cfd == -1) {
15610		perror("client socket");
15611		return 1;
15612	}
15613	a.sin_port = 0;
15614	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15615		perror("client bind");
15616		return 1;
15617	}
15618	a.sin_port = htons(port);
15619
15620	/* no handler, causes exit in 10 seconds */
15621	alarm(10);
15622
15623	/* send and receive on the socket */
15624	if((p=fork()) == 0) {
15625		for(i=0; i<num; i++) {
15626			if(sendto(cfd, &i, sizeof(i), 0,
15627				(struct sockaddr*)&a, sizeof(a)) < 0) {
15628				perror("sendto");
15629				return 1;
15630			}
15631		}
15632	} else {
15633		/* parent */
15634		fd_set rset;
15635		int x;
15636		if(p == -1) {
15637			perror("fork");
15638			return 1;
15639		}
15640		FD_ZERO(&rset);
15641		FD_SET(sfd, &rset);
15642		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15643			perror("select");
15644			return 1;
15645		}
15646		i = 0;
15647		while(i < num) {
15648			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15649				if(errno == EAGAIN)
15650					continue;
15651				perror("recv");
15652				return 1;
15653			}
15654			i++;
15655		}
15656		/* now we want to get EAGAIN: nonblocking goodness */
15657		errno = 0;
15658		recv(sfd, &x, sizeof(x), 0);
15659		if(errno != EAGAIN) {
15660			perror("trying to recv again");
15661			return 1;
15662		}
15663		/* EAGAIN encountered */
15664	}
15665
15666	close(sfd);
15667	close(cfd);
15668	return 0;
15669}
15670
15671_ACEOF
15672if ac_fn_c_try_run "$LINENO"; then :
15673
15674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675$as_echo "yes" >&6; }
15676
15677else
15678
15679	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680$as_echo "no" >&6; }
15681
15682$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15683
15684
15685fi
15686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15687  conftest.$ac_objext conftest.beam conftest.$ac_ext
15688fi
15689
15690fi
15691
15692
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15694$as_echo_n "checking whether mkdir has one arg... " >&6; }
15695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696/* end confdefs.h.  */
15697
15698#include <stdio.h>
15699#include <unistd.h>
15700#ifdef HAVE_WINSOCK2_H
15701#include <winsock2.h>
15702#endif
15703#ifdef HAVE_SYS_STAT_H
15704#include <sys/stat.h>
15705#endif
15706
15707int
15708main ()
15709{
15710
15711	(void)mkdir("directory");
15712
15713  ;
15714  return 0;
15715}
15716_ACEOF
15717if ac_fn_c_try_compile "$LINENO"; then :
15718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15719$as_echo "yes" >&6; }
15720
15721$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15722
15723
15724else
15725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726$as_echo "no" >&6; }
15727
15728fi
15729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730
15731for ac_func in strptime
15732do :
15733  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15734if test "x$ac_cv_func_strptime" = xyes; then :
15735  cat >>confdefs.h <<_ACEOF
15736#define HAVE_STRPTIME 1
15737_ACEOF
15738
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15740$as_echo_n "checking whether strptime works... " >&6; }
15741if test c${cross_compiling} = cno; then
15742if test "$cross_compiling" = yes; then :
15743  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15745as_fn_error $? "cannot run test program while cross compiling
15746See \`config.log' for more details" "$LINENO" 5; }
15747else
15748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h.  */
15750
15751#define _XOPEN_SOURCE 600
15752#include <time.h>
15753int main(void) { struct tm tm; char *res;
15754res = 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);
15755if (!res) return 2;
15756res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15757if (!res) return 1; return 0; }
15758
15759_ACEOF
15760if ac_fn_c_try_run "$LINENO"; then :
15761  eval "ac_cv_c_strptime_works=yes"
15762else
15763  eval "ac_cv_c_strptime_works=no"
15764fi
15765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15766  conftest.$ac_objext conftest.beam conftest.$ac_ext
15767fi
15768
15769else
15770eval "ac_cv_c_strptime_works=maybe"
15771fi
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15773$as_echo "$ac_cv_c_strptime_works" >&6; }
15774if test $ac_cv_c_strptime_works = no; then
15775case " $LIBOBJS " in
15776  *" strptime.$ac_objext "* ) ;;
15777  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15778 ;;
15779esac
15780
15781else
15782
15783cat >>confdefs.h <<_ACEOF
15784#define STRPTIME_WORKS 1
15785_ACEOF
15786
15787fi
15788
15789else
15790  case " $LIBOBJS " in
15791  *" strptime.$ac_objext "* ) ;;
15792  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15793 ;;
15794esac
15795
15796fi
15797done
15798
15799
15800# set memory allocation checking if requested
15801# Check whether --enable-alloc-checks was given.
15802if test "${enable_alloc_checks+set}" = set; then :
15803  enableval=$enable_alloc_checks;
15804fi
15805
15806# Check whether --enable-alloc-lite was given.
15807if test "${enable_alloc_lite+set}" = set; then :
15808  enableval=$enable_alloc_lite;
15809fi
15810
15811# Check whether --enable-alloc-nonregional was given.
15812if test "${enable_alloc_nonregional+set}" = set; then :
15813  enableval=$enable_alloc_nonregional;
15814fi
15815
15816if test x_$enable_alloc_nonregional = x_yes; then
15817
15818$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15819
15820fi
15821if test x_$enable_alloc_checks = x_yes; then
15822
15823$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15824
15825else
15826	if test x_$enable_alloc_lite = x_yes; then
15827
15828$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15829
15830	else
15831
15832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15833$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15834	if test "$cross_compiling" = yes; then :
15835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15836$as_echo "no (crosscompile)" >&6; }
15837	case " $LIBOBJS " in
15838  *" malloc.$ac_objext "* ) ;;
15839  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15840 ;;
15841esac
15842
15843
15844cat >>confdefs.h <<_ACEOF
15845#define malloc rpl_malloc_unbound
15846_ACEOF
15847
15848else
15849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15852#include <stdlib.h>
15853#else
15854char *malloc ();
15855#endif
15856
15857int
15858main ()
15859{
15860 if(malloc(0) != 0) return 1;
15861  ;
15862  return 0;
15863}
15864
15865_ACEOF
15866if ac_fn_c_try_run "$LINENO"; then :
15867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868$as_echo "no" >&6; }
15869	case " $LIBOBJS " in
15870  *" malloc.$ac_objext "* ) ;;
15871  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15872 ;;
15873esac
15874
15875
15876cat >>confdefs.h <<_ACEOF
15877#define malloc rpl_malloc_unbound
15878_ACEOF
15879
15880else
15881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15882$as_echo "yes" >&6; }
15883
15884$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15885
15886fi
15887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15888  conftest.$ac_objext conftest.beam conftest.$ac_ext
15889fi
15890
15891
15892	fi
15893fi
15894
15895# check windows threads (we use them, not pthreads, on windows).
15896if test "$on_mingw" = "yes"; then
15897# check windows threads
15898	for ac_header in windows.h
15899do :
15900  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15901"
15902if test "x$ac_cv_header_windows_h" = xyes; then :
15903  cat >>confdefs.h <<_ACEOF
15904#define HAVE_WINDOWS_H 1
15905_ACEOF
15906
15907fi
15908
15909done
15910
15911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15912$as_echo_n "checking for CreateThread... " >&6; }
15913	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914/* end confdefs.h.  */
15915
15916#ifdef HAVE_WINDOWS_H
15917#include <windows.h>
15918#endif
15919
15920int
15921main ()
15922{
15923
15924	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"; then :
15931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15932$as_echo "yes" >&6; }
15933
15934$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15935
15936
15937else
15938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939$as_echo "no" >&6; }
15940
15941fi
15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943
15944else
15945# not on mingw, check thread libraries.
15946
15947# check for thread library.
15948# check this first, so that the pthread lib does not get linked in via
15949# libssl or libpython, and thus distorts the tests, and we end up using
15950# the non-threadsafe C libraries.
15951
15952# Check whether --with-pthreads was given.
15953if test "${with_pthreads+set}" = set; then :
15954  withval=$with_pthreads;
15955else
15956   withval="yes"
15957fi
15958
15959ub_have_pthreads=no
15960if test x_$withval != x_no; then
15961
15962
15963ac_ext=c
15964ac_cpp='$CPP $CPPFLAGS'
15965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15967ac_compiler_gnu=$ac_cv_c_compiler_gnu
15968
15969ax_pthread_ok=no
15970
15971# We used to check for pthread.h first, but this fails if pthread.h
15972# requires special compiler flags (e.g. on True64 or Sequent).
15973# It gets checked for in the link test anyway.
15974
15975# First of all, check if the user has set any of the PTHREAD_LIBS,
15976# etcetera environment variables, and if threads linking works using
15977# them:
15978if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15979        save_CFLAGS="$CFLAGS"
15980        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15981        save_LIBS="$LIBS"
15982        LIBS="$PTHREAD_LIBS $LIBS"
15983        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15984$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15985        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986/* end confdefs.h.  */
15987
15988/* Override any GCC internal prototype to avoid an error.
15989   Use char because int might match the return type of a GCC
15990   builtin and then its argument prototype would still apply.  */
15991#ifdef __cplusplus
15992extern "C"
15993#endif
15994char pthread_join ();
15995int
15996main ()
15997{
15998return pthread_join ();
15999  ;
16000  return 0;
16001}
16002_ACEOF
16003if ac_fn_c_try_link "$LINENO"; then :
16004  ax_pthread_ok=yes
16005fi
16006rm -f core conftest.err conftest.$ac_objext \
16007    conftest$ac_exeext conftest.$ac_ext
16008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16009$as_echo "$ax_pthread_ok" >&6; }
16010        if test x"$ax_pthread_ok" = xno; then
16011                PTHREAD_LIBS=""
16012                PTHREAD_CFLAGS=""
16013        fi
16014        LIBS="$save_LIBS"
16015        CFLAGS="$save_CFLAGS"
16016fi
16017
16018# We must check for the threads library under a number of different
16019# names; the ordering is very important because some systems
16020# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16021# libraries is broken (non-POSIX).
16022
16023# Create a list of thread flags to try.  Items starting with a "-" are
16024# C compiler flags, and other items are library names, except for "none"
16025# which indicates that we try without any flags at all, and "pthread-config"
16026# which is a program returning the flags for the Pth emulation library.
16027
16028ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16029
16030# The ordering *is* (sometimes) important.  Some notes on the
16031# individual items follow:
16032
16033# pthreads: AIX (must check this before -lpthread)
16034# none: in case threads are in libc; should be tried before -Kthread and
16035#       other compiler flags to prevent continual compiler warnings
16036# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16037# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16038# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16039# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16040# -pthreads: Solaris/gcc
16041# -mthreads: Mingw32/gcc, Lynx/gcc
16042# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16043#      doesn't hurt to check since this sometimes defines pthreads too;
16044#      also defines -D_REENTRANT)
16045#      ... -mt is also the pthreads flag for HP/aCC
16046# pthread: Linux, etcetera
16047# --thread-safe: KAI C++
16048# pthread-config: use pthread-config program (for GNU Pth library)
16049
16050case ${host_os} in
16051        solaris*)
16052
16053        # On Solaris (at least, for some versions), libc contains stubbed
16054        # (non-functional) versions of the pthreads routines, so link-based
16055        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16056        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16057        # a function called by this macro, so we could check for that, but
16058        # who knows whether they'll stub that too in a future libc.)  So,
16059        # we'll just look for -pthreads and -lpthread first:
16060
16061        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16062        ;;
16063
16064        darwin*)
16065        ax_pthread_flags="-pthread $ax_pthread_flags"
16066        ;;
16067esac
16068
16069# Clang doesn't consider unrecognized options an error unless we specify
16070# -Werror. We throw in some extra Clang-specific options to ensure that
16071# this doesn't happen for GCC, which also accepts -Werror.
16072
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16074$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16075save_CFLAGS="$CFLAGS"
16076ax_pthread_extra_flags="-Werror"
16077CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h.  */
16080int foo(void);
16081int
16082main ()
16083{
16084foo()
16085  ;
16086  return 0;
16087}
16088_ACEOF
16089if ac_fn_c_try_compile "$LINENO"; then :
16090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091$as_echo "yes" >&6; }
16092else
16093  ax_pthread_extra_flags=
16094                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095$as_echo "no" >&6; }
16096fi
16097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098CFLAGS="$save_CFLAGS"
16099
16100if test x"$ax_pthread_ok" = xno; then
16101for flag in $ax_pthread_flags; do
16102
16103        case $flag in
16104                none)
16105                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16106$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16107                ;;
16108
16109                -*)
16110                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16111$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16112                PTHREAD_CFLAGS="$flag"
16113                ;;
16114
16115                pthread-config)
16116                # Extract the first word of "pthread-config", so it can be a program name with args.
16117set dummy pthread-config; ac_word=$2
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16119$as_echo_n "checking for $ac_word... " >&6; }
16120if ${ac_cv_prog_ax_pthread_config+:} false; then :
16121  $as_echo_n "(cached) " >&6
16122else
16123  if test -n "$ax_pthread_config"; then
16124  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16125else
16126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127for as_dir in $PATH
16128do
16129  IFS=$as_save_IFS
16130  test -z "$as_dir" && as_dir=.
16131    for ac_exec_ext in '' $ac_executable_extensions; do
16132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16133    ac_cv_prog_ax_pthread_config="yes"
16134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135    break 2
16136  fi
16137done
16138  done
16139IFS=$as_save_IFS
16140
16141  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16142fi
16143fi
16144ax_pthread_config=$ac_cv_prog_ax_pthread_config
16145if test -n "$ax_pthread_config"; then
16146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16147$as_echo "$ax_pthread_config" >&6; }
16148else
16149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150$as_echo "no" >&6; }
16151fi
16152
16153
16154                if test x"$ax_pthread_config" = xno; then continue; fi
16155                PTHREAD_CFLAGS="`pthread-config --cflags`"
16156                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16157                ;;
16158
16159                *)
16160                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16161$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16162                PTHREAD_LIBS="-l$flag"
16163                ;;
16164        esac
16165
16166        save_LIBS="$LIBS"
16167        save_CFLAGS="$CFLAGS"
16168        LIBS="$PTHREAD_LIBS $LIBS"
16169        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16170
16171        # Check for various functions.  We must include pthread.h,
16172        # since some functions may be macros.  (On the Sequent, we
16173        # need a special flag -Kthread to make this header compile.)
16174        # We check for pthread_join because it is in -lpthread on IRIX
16175        # while pthread_create is in libc.  We check for pthread_attr_init
16176        # due to DEC craziness with -lpthreads.  We check for
16177        # pthread_cleanup_push because it is one of the few pthread
16178        # functions on Solaris that doesn't have a non-functional libc stub.
16179        # We try pthread_create on general principles.
16180        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182#include <pthread.h>
16183                        static void routine(void *a) { *((int*)a) = 0; }
16184                        static void *start_routine(void *a) { return a; }
16185int
16186main ()
16187{
16188pthread_t th; pthread_attr_t attr;
16189                        pthread_create(&th, 0, start_routine, 0);
16190                        pthread_join(th, 0);
16191                        pthread_attr_init(&attr);
16192                        pthread_cleanup_push(routine, 0);
16193                        pthread_cleanup_pop(0) /* ; */
16194  ;
16195  return 0;
16196}
16197_ACEOF
16198if ac_fn_c_try_link "$LINENO"; then :
16199  ax_pthread_ok=yes
16200fi
16201rm -f core conftest.err conftest.$ac_objext \
16202    conftest$ac_exeext conftest.$ac_ext
16203
16204        LIBS="$save_LIBS"
16205        CFLAGS="$save_CFLAGS"
16206
16207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16208$as_echo "$ax_pthread_ok" >&6; }
16209        if test "x$ax_pthread_ok" = xyes; then
16210                break;
16211        fi
16212
16213        PTHREAD_LIBS=""
16214        PTHREAD_CFLAGS=""
16215done
16216fi
16217
16218# Various other checks:
16219if test "x$ax_pthread_ok" = xyes; then
16220        save_LIBS="$LIBS"
16221        LIBS="$PTHREAD_LIBS $LIBS"
16222        save_CFLAGS="$CFLAGS"
16223        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16224
16225        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16226        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16227$as_echo_n "checking for joinable pthread attribute... " >&6; }
16228        attr_name=unknown
16229        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16230            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231/* end confdefs.h.  */
16232#include <pthread.h>
16233int
16234main ()
16235{
16236int attr = $attr; return attr /* ; */
16237  ;
16238  return 0;
16239}
16240_ACEOF
16241if ac_fn_c_try_link "$LINENO"; then :
16242  attr_name=$attr; break
16243fi
16244rm -f core conftest.err conftest.$ac_objext \
16245    conftest$ac_exeext conftest.$ac_ext
16246        done
16247        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16248$as_echo "$attr_name" >&6; }
16249        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16250
16251cat >>confdefs.h <<_ACEOF
16252#define PTHREAD_CREATE_JOINABLE $attr_name
16253_ACEOF
16254
16255        fi
16256
16257        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16258$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16259        flag=no
16260        case ${host_os} in
16261            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16262            osf* | hpux*) flag="-D_REENTRANT";;
16263            solaris*)
16264            if test "$GCC" = "yes"; then
16265                flag="-D_REENTRANT"
16266            else
16267                # TODO: What about Clang on Solaris?
16268                flag="-mt -D_REENTRANT"
16269            fi
16270            ;;
16271        esac
16272        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16273$as_echo "$flag" >&6; }
16274        if test "x$flag" != xno; then
16275            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16276        fi
16277
16278        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16279$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16280if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16281  $as_echo_n "(cached) " >&6
16282else
16283
16284                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h.  */
16286#include <pthread.h>
16287int
16288main ()
16289{
16290int i = PTHREAD_PRIO_INHERIT;
16291  ;
16292  return 0;
16293}
16294_ACEOF
16295if ac_fn_c_try_link "$LINENO"; then :
16296  ax_cv_PTHREAD_PRIO_INHERIT=yes
16297else
16298  ax_cv_PTHREAD_PRIO_INHERIT=no
16299fi
16300rm -f core conftest.err conftest.$ac_objext \
16301    conftest$ac_exeext conftest.$ac_ext
16302
16303fi
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16305$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16306        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16307
16308$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16309
16310fi
16311
16312        LIBS="$save_LIBS"
16313        CFLAGS="$save_CFLAGS"
16314
16315        # More AIX lossage: compile with *_r variant
16316        if test "x$GCC" != xyes; then
16317            case $host_os in
16318                aix*)
16319                case "x/$CC" in #(
16320  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16321    #handle absolute path differently from PATH based program lookup
16322                   case "x$CC" in #(
16323  x/*) :
16324    if as_fn_executable_p ${CC}_r; then :
16325  PTHREAD_CC="${CC}_r"
16326fi ;; #(
16327  *) :
16328    for ac_prog in ${CC}_r
16329do
16330  # Extract the first word of "$ac_prog", so it can be a program name with args.
16331set dummy $ac_prog; ac_word=$2
16332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16333$as_echo_n "checking for $ac_word... " >&6; }
16334if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16335  $as_echo_n "(cached) " >&6
16336else
16337  if test -n "$PTHREAD_CC"; then
16338  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16339else
16340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341for as_dir in $PATH
16342do
16343  IFS=$as_save_IFS
16344  test -z "$as_dir" && as_dir=.
16345    for ac_exec_ext in '' $ac_executable_extensions; do
16346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16347    ac_cv_prog_PTHREAD_CC="$ac_prog"
16348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16349    break 2
16350  fi
16351done
16352  done
16353IFS=$as_save_IFS
16354
16355fi
16356fi
16357PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16358if test -n "$PTHREAD_CC"; then
16359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16360$as_echo "$PTHREAD_CC" >&6; }
16361else
16362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363$as_echo "no" >&6; }
16364fi
16365
16366
16367  test -n "$PTHREAD_CC" && break
16368done
16369test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16370 ;;
16371esac ;; #(
16372  *) :
16373     ;;
16374esac
16375                ;;
16376            esac
16377        fi
16378fi
16379
16380test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16381
16382
16383
16384
16385
16386# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16387if test x"$ax_pthread_ok" = xyes; then
16388
16389
16390$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16391
16392		LIBS="$PTHREAD_LIBS $LIBS"
16393		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16394		CC="$PTHREAD_CC"
16395		ub_have_pthreads=yes
16396		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16397"
16398if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16399
16400cat >>confdefs.h <<_ACEOF
16401#define HAVE_PTHREAD_SPINLOCK_T 1
16402_ACEOF
16403
16404
16405fi
16406ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16407"
16408if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16409
16410cat >>confdefs.h <<_ACEOF
16411#define HAVE_PTHREAD_RWLOCK_T 1
16412_ACEOF
16413
16414
16415fi
16416
16417
16418		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16420$as_echo_n "checking if -pthread unused during linking... " >&6; }
16421		# catch clang warning 'argument unused during compilation'
16422		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h.  */
16424$ac_includes_default
16425
16426int main(void) {return 0;}
16427
16428_ACEOF
16429		pthread_unused="yes"
16430		# first compile
16431		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16432		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16433		if test $? = 0; then
16434			# then link
16435			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16436			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16437			if test $? -ne 0; then
16438				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439$as_echo "yes" >&6; }
16440				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16441				PTHREAD_CFLAGS_ONLY="-pthread"
16442
16443			else
16444				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445$as_echo "no" >&6; }
16446			fi
16447		else
16448			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16449$as_echo "no" >&6; }
16450		fi # endif cc successful
16451		rm -f conftest conftest.c conftest.o
16452		fi # endif -pthread in CFLAGS
16453
16454
16455        :
16456else
16457        ax_pthread_ok=no
16458
16459fi
16460ac_ext=c
16461ac_cpp='$CPP $CPPFLAGS'
16462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16464ac_compiler_gnu=$ac_cv_c_compiler_gnu
16465
16466
16467fi
16468
16469# check solaris thread library
16470
16471# Check whether --with-solaris-threads was given.
16472if test "${with_solaris_threads+set}" = set; then :
16473  withval=$with_solaris_threads;
16474else
16475   withval="no"
16476fi
16477
16478ub_have_sol_threads=no
16479if test x_$withval != x_no; then
16480	if test x_$ub_have_pthreads != x_no; then
16481	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16482$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16483	else
16484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16485$as_echo_n "checking for library containing thr_create... " >&6; }
16486if ${ac_cv_search_thr_create+:} false; then :
16487  $as_echo_n "(cached) " >&6
16488else
16489  ac_func_search_save_LIBS=$LIBS
16490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491/* end confdefs.h.  */
16492
16493/* Override any GCC internal prototype to avoid an error.
16494   Use char because int might match the return type of a GCC
16495   builtin and then its argument prototype would still apply.  */
16496#ifdef __cplusplus
16497extern "C"
16498#endif
16499char thr_create ();
16500int
16501main ()
16502{
16503return thr_create ();
16504  ;
16505  return 0;
16506}
16507_ACEOF
16508for ac_lib in '' thread; do
16509  if test -z "$ac_lib"; then
16510    ac_res="none required"
16511  else
16512    ac_res=-l$ac_lib
16513    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16514  fi
16515  if ac_fn_c_try_link "$LINENO"; then :
16516  ac_cv_search_thr_create=$ac_res
16517fi
16518rm -f core conftest.err conftest.$ac_objext \
16519    conftest$ac_exeext
16520  if ${ac_cv_search_thr_create+:} false; then :
16521  break
16522fi
16523done
16524if ${ac_cv_search_thr_create+:} false; then :
16525
16526else
16527  ac_cv_search_thr_create=no
16528fi
16529rm conftest.$ac_ext
16530LIBS=$ac_func_search_save_LIBS
16531fi
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16533$as_echo "$ac_cv_search_thr_create" >&6; }
16534ac_res=$ac_cv_search_thr_create
16535if test "$ac_res" != no; then :
16536  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16537
16538
16539$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16540
16541
16542
16543
16544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16545$as_echo_n "checking whether $CC supports -mt... " >&6; }
16546cache=`echo mt | sed 'y%.=/+-%___p_%'`
16547if eval \${cv_prog_cc_flag_$cache+:} false; then :
16548  $as_echo_n "(cached) " >&6
16549else
16550
16551echo 'void f(void){}' >conftest.c
16552if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16553eval "cv_prog_cc_flag_$cache=yes"
16554else
16555eval "cv_prog_cc_flag_$cache=no"
16556fi
16557rm -f conftest conftest.o conftest.c
16558
16559fi
16560
16561if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16563$as_echo "yes" >&6; }
16564:
16565CFLAGS="$CFLAGS -mt"
16566else
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568$as_echo "no" >&6; }
16569:
16570CFLAGS="$CFLAGS -D_REENTRANT"
16571fi
16572
16573		ub_have_sol_threads=yes
16574
16575else
16576
16577		as_fn_error $? "no solaris threads found." "$LINENO" 5
16578
16579fi
16580
16581	fi
16582fi
16583
16584fi # end of non-mingw check of thread libraries
16585
16586# Check for PyUnbound
16587
16588# Check whether --with-pyunbound was given.
16589if test "${with_pyunbound+set}" = set; then :
16590  withval=$with_pyunbound;
16591else
16592   withval="no"
16593fi
16594
16595
16596ub_test_python=no
16597ub_with_pyunbound=no
16598if test x_$withval != x_no; then
16599   ub_with_pyunbound=yes
16600   ub_test_python=yes
16601fi
16602
16603# Check for Python module
16604
16605# Check whether --with-pythonmodule was given.
16606if test "${with_pythonmodule+set}" = set; then :
16607  withval=$with_pythonmodule;
16608else
16609   withval="no"
16610fi
16611
16612
16613ub_with_pythonmod=no
16614if test x_$withval != x_no; then
16615   ub_with_pythonmod=yes
16616   ub_test_python=yes
16617fi
16618
16619# Check for Python & SWIG only on PyUnbound or PyModule
16620if test x_$ub_test_python != x_no; then
16621
16622   # Check for Python
16623   ub_have_python=no
16624   ac_save_LIBS="$LIBS"
16625        #
16626        # Allow the use of a (user set) custom python version
16627        #
16628
16629
16630        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16631set dummy python$PYTHON_VERSION; ac_word=$2
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16633$as_echo_n "checking for $ac_word... " >&6; }
16634if ${ac_cv_path_PYTHON+:} false; then :
16635  $as_echo_n "(cached) " >&6
16636else
16637  case $PYTHON in
16638  [\\/]* | ?:[\\/]*)
16639  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16640  ;;
16641  *)
16642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643for as_dir in $PATH
16644do
16645  IFS=$as_save_IFS
16646  test -z "$as_dir" && as_dir=.
16647    for ac_exec_ext in '' $ac_executable_extensions; do
16648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16649    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651    break 2
16652  fi
16653done
16654  done
16655IFS=$as_save_IFS
16656
16657  ;;
16658esac
16659fi
16660PYTHON=$ac_cv_path_PYTHON
16661if test -n "$PYTHON"; then
16662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16663$as_echo "$PYTHON" >&6; }
16664else
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666$as_echo "no" >&6; }
16667fi
16668
16669
16670        if test -z "$PYTHON"; then
16671           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16672           PYTHON_VERSION=""
16673        fi
16674
16675        if test -z "$PYTHON_VERSION"; then
16676		PYTHON_VERSION=`$PYTHON -c "import sys; \
16677			print(sys.version.split()[0])"`
16678	fi
16679
16680        #
16681        # Check if you have distutils, else fail
16682        #
16683        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16684$as_echo_n "checking for the distutils Python package... " >&6; }
16685        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16686        if test -z "$ac_distutils_result"; then
16687                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688$as_echo "yes" >&6; }
16689        else
16690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691$as_echo "no" >&6; }
16692                as_fn_error $? "cannot import Python module \"distutils\".
16693Please check your Python installation. The error was:
16694$ac_distutils_result" "$LINENO" 5
16695                PYTHON_VERSION=""
16696        fi
16697
16698        #
16699        # Check for Python include path
16700        #
16701        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16702$as_echo_n "checking for Python include path... " >&6; }
16703        if test -z "$PYTHON_CPPFLAGS"; then
16704                python_path=`$PYTHON -c "import distutils.sysconfig; \
16705                        print(distutils.sysconfig.get_python_inc());"`
16706                if test -n "${python_path}"; then
16707                        python_path="-I$python_path"
16708                fi
16709                PYTHON_CPPFLAGS=$python_path
16710        fi
16711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16712$as_echo "$PYTHON_CPPFLAGS" >&6; }
16713
16714
16715        #
16716        # Check for Python library path
16717        #
16718        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16719$as_echo_n "checking for Python library path... " >&6; }
16720        if test -z "$PYTHON_LDFLAGS"; then
16721                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16722                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16723        fi
16724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16725$as_echo "$PYTHON_LDFLAGS" >&6; }
16726
16727
16728        #
16729        # Check for site packages
16730        #
16731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16732$as_echo_n "checking for Python site-packages path... " >&6; }
16733        if test -z "$PYTHON_SITE_PKG"; then
16734                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16735                        print(distutils.sysconfig.get_python_lib(1,0));"`
16736        fi
16737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16738$as_echo "$PYTHON_SITE_PKG" >&6; }
16739
16740
16741        #
16742        # final check to see if everything compiles alright
16743        #
16744        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16745$as_echo_n "checking consistency of all components of python development environment... " >&6; }
16746        ac_ext=c
16747ac_cpp='$CPP $CPPFLAGS'
16748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16750ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751
16752        # save current global flags
16753        ac_save_LIBS="$LIBS"
16754        ac_save_CPPFLAGS="$CPPFLAGS"
16755
16756        LIBS="$LIBS $PYTHON_LDFLAGS"
16757        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16758        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759/* end confdefs.h.  */
16760
16761                #include <Python.h>
16762
16763int
16764main ()
16765{
16766
16767                Py_Initialize();
16768
16769  ;
16770  return 0;
16771}
16772_ACEOF
16773if ac_fn_c_try_link "$LINENO"; then :
16774  pythonexists=yes
16775else
16776  pythonexists=no
16777fi
16778rm -f core conftest.err conftest.$ac_objext \
16779    conftest$ac_exeext conftest.$ac_ext
16780
16781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16782$as_echo "$pythonexists" >&6; }
16783
16784        if test ! "$pythonexists" = "yes"; then
16785           as_fn_error $? "
16786  Could not link test program to Python. Maybe the main Python library has been
16787  installed in some non-standard library path. If so, pass it to configure,
16788  via the LDFLAGS environment variable.
16789  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16790  ============================================================================
16791   ERROR!
16792   You probably have to install the development version of the Python package
16793   for your distribution.  The exact name of this package varies among them.
16794  ============================================================================
16795           " "$LINENO" 5
16796          PYTHON_VERSION=""
16797        fi
16798        ac_ext=c
16799ac_cpp='$CPP $CPPFLAGS'
16800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16802ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803
16804        # turn back to default flags
16805        CPPFLAGS="$ac_save_CPPFLAGS"
16806        LIBS="$ac_save_LIBS"
16807
16808        #
16809        # all done!
16810        #
16811
16812   if test ! -z "$PYTHON_VERSION"; then
16813	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16814		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16815	fi
16816
16817      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16818
16819      # Have Python
16820
16821$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16822
16823      LIBS="$PYTHON_LDFLAGS $LIBS"
16824      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16825      ub_have_python=yes
16826
16827      # Check for SWIG
16828      ub_have_swig=no
16829
16830        # Extract the first word of "swig", so it can be a program name with args.
16831set dummy swig; ac_word=$2
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16833$as_echo_n "checking for $ac_word... " >&6; }
16834if ${ac_cv_path_SWIG+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837  case $SWIG in
16838  [\\/]* | ?:[\\/]*)
16839  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16840  ;;
16841  *)
16842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16843for as_dir in $PATH
16844do
16845  IFS=$as_save_IFS
16846  test -z "$as_dir" && as_dir=.
16847    for ac_exec_ext in '' $ac_executable_extensions; do
16848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16849    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16851    break 2
16852  fi
16853done
16854  done
16855IFS=$as_save_IFS
16856
16857  ;;
16858esac
16859fi
16860SWIG=$ac_cv_path_SWIG
16861if test -n "$SWIG"; then
16862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16863$as_echo "$SWIG" >&6; }
16864else
16865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866$as_echo "no" >&6; }
16867fi
16868
16869
16870        if test -z "$SWIG" ; then
16871                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16872$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16873                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16874        elif test -n "" ; then
16875                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16876$as_echo_n "checking for SWIG version... " >&6; }
16877                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'`
16878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16879$as_echo "$swig_version" >&6; }
16880                if test -n "$swig_version" ; then
16881                        # Calculate the required version number components
16882                        required=
16883                        required_major=`echo $required | sed 's/[^0-9].*//'`
16884                        if test -z "$required_major" ; then
16885                                required_major=0
16886                        fi
16887                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16888                        required_minor=`echo $required | sed 's/[^0-9].*//'`
16889                        if test -z "$required_minor" ; then
16890                                required_minor=0
16891                        fi
16892                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16893                        required_patch=`echo $required | sed 's/[^0-9].*//'`
16894                        if test -z "$required_patch" ; then
16895                                required_patch=0
16896                        fi
16897                        # Calculate the available version number components
16898                        available=$swig_version
16899                        available_major=`echo $available | sed 's/[^0-9].*//'`
16900                        if test -z "$available_major" ; then
16901                                available_major=0
16902                        fi
16903                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16904                        available_minor=`echo $available | sed 's/[^0-9].*//'`
16905                        if test -z "$available_minor" ; then
16906                                available_minor=0
16907                        fi
16908                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16909                        available_patch=`echo $available | sed 's/[^0-9].*//'`
16910                        if test -z "$available_patch" ; then
16911                                available_patch=0
16912                        fi
16913                        if test $available_major -ne $required_major \
16914                                -o $available_minor -ne $required_minor \
16915                                -o $available_patch -lt $required_patch ; then
16916                                { $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
16917$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
16918                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
16919                        else
16920                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16921$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16922                                SWIG_LIB=`$SWIG -swiglib`
16923                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16924$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16925                        fi
16926                else
16927                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16928$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16929                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16930                fi
16931        fi
16932
16933
16934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16935$as_echo_n "checking SWIG... " >&6; }
16936      if test ! -x "$SWIG"; then
16937         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16938      else
16939
16940$as_echo "#define HAVE_SWIG 1" >>confdefs.h
16941
16942         swig="$SWIG"
16943
16944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16945$as_echo "present" >&6; }
16946
16947         # If have Python & SWIG
16948         # Declare PythonMod
16949         if test x_$ub_with_pythonmod != x_no; then
16950
16951$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16952
16953            WITH_PYTHONMODULE=yes
16954
16955	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16956
16957	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16958
16959	    PYTHONMOD_INSTALL=pythonmod-install
16960
16961	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
16962
16963         fi
16964
16965         # Declare PyUnbound
16966         if test x_$ub_with_pyunbound != x_no; then
16967
16968$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16969
16970            WITH_PYUNBOUND=yes
16971
16972	    PYUNBOUND_OBJ="libunbound_wrap.lo"
16973
16974	    PYUNBOUND_TARGET="_unbound.la"
16975
16976	    PYUNBOUND_INSTALL=pyunbound-install
16977
16978	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
16979
16980         fi
16981      fi
16982   else
16983      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16984$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16985      ub_with_pyunbound=no
16986      ub_with_pythonmod=no
16987   fi
16988fi
16989
16990if test "`uname`" = "NetBSD"; then
16991	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16992
16993fi
16994CONFIG_DATE=`date +%Y%m%d`
16995
16996
16997# Checks for libraries.
16998
16999# libnss
17000USE_NSS="no"
17001
17002# Check whether --with-nss was given.
17003if test "${with_nss+set}" = set; then :
17004  withval=$with_nss;
17005	USE_NSS="yes"
17006
17007$as_echo "#define HAVE_NSS 1" >>confdefs.h
17008
17009	if test "$withval" != "" -a "$withval" != "yes"; then
17010		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17011		LDFLAGS="$LDFLAGS -L$withval/lib"
17012
17013	if test "x$enable_rpath" = xyes; then
17014		if echo "$withval/lib" | grep "^/" >/dev/null; then
17015			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17016		fi
17017	fi
17018
17019		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17020	else
17021		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17022		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17023	fi
17024        LIBS="$LIBS -lnss3 -lnspr4"
17025	SSLLIB=""
17026
17027
17028fi
17029
17030
17031# libnettle
17032USE_NETTLE="no"
17033
17034# Check whether --with-nettle was given.
17035if test "${with_nettle+set}" = set; then :
17036  withval=$with_nettle;
17037	USE_NETTLE="yes"
17038
17039$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17040
17041	for ac_header in nettle/dsa-compat.h
17042do :
17043  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17044"
17045if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17046  cat >>confdefs.h <<_ACEOF
17047#define HAVE_NETTLE_DSA_COMPAT_H 1
17048_ACEOF
17049
17050fi
17051
17052done
17053
17054	if test "$withval" != "" -a "$withval" != "yes"; then
17055		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17056		LDFLAGS="$LDFLAGS -L$withval/lib"
17057
17058	if test "x$enable_rpath" = xyes; then
17059		if echo "$withval/lib" | grep "^/" >/dev/null; then
17060			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17061		fi
17062	fi
17063
17064	else
17065		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17066	fi
17067        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17068	SSLLIB=""
17069
17070
17071fi
17072
17073
17074# openssl
17075if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17076
17077
17078# Check whether --with-ssl was given.
17079if test "${with_ssl+set}" = set; then :
17080  withval=$with_ssl;
17081
17082else
17083
17084            withval="yes"
17085
17086fi
17087
17088    if test x_$withval = x_no; then
17089	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17090    fi
17091
17092    withval=$withval
17093    if test x_$withval != x_no; then
17094        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17095$as_echo_n "checking for SSL... " >&6; }
17096        if test x_$withval = x_ -o x_$withval = x_yes; then
17097            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17098        fi
17099        for dir in $withval; do
17100            ssldir="$dir"
17101            if test -f "$dir/include/openssl/ssl.h"; then
17102                found_ssl="yes"
17103
17104cat >>confdefs.h <<_ACEOF
17105#define HAVE_SSL /**/
17106_ACEOF
17107
17108                                if test "$ssldir" != "/usr"; then
17109                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17110                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17111                fi
17112                break;
17113            fi
17114        done
17115        if test x_$found_ssl != x_yes; then
17116            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17117        else
17118            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17119$as_echo "found in $ssldir" >&6; }
17120            HAVE_SSL=yes
17121                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17122                LDFLAGS="$LDFLAGS -L$ssldir/lib"
17123                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17124
17125	if test "x$enable_rpath" = xyes; then
17126		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17127			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17128		fi
17129	fi
17130
17131            fi
17132
17133            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17134$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17135            LIBS="$LIBS -lcrypto"
17136            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17137            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139
17140int
17141main ()
17142{
17143
17144                int HMAC_Update(void);
17145                (void)HMAC_Update();
17146
17147  ;
17148  return 0;
17149}
17150_ACEOF
17151if ac_fn_c_try_link "$LINENO"; then :
17152
17153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17154$as_echo "yes" >&6; }
17155
17156$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17157
17158
17159else
17160
17161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17162$as_echo "no" >&6; }
17163                # check if -lwsock32 or -lgdi32 are needed.
17164                BAKLIBS="$LIBS"
17165                BAKSSLLIBS="$LIBSSL_LIBS"
17166                LIBS="$LIBS -lgdi32"
17167                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
17168                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17169$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17170                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171/* end confdefs.h.  */
17172
17173int
17174main ()
17175{
17176
17177                    int HMAC_Update(void);
17178                    (void)HMAC_Update();
17179
17180  ;
17181  return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"; then :
17185
17186
17187$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17188
17189                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190$as_echo "yes" >&6; }
17191
17192else
17193
17194                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17195$as_echo "no" >&6; }
17196                    LIBS="$BAKLIBS"
17197                    LIBSSL_LIBS="$BAKSSLLIBS"
17198                    LIBS="$LIBS -ldl"
17199                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17200                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17201$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17202                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h.  */
17204
17205int
17206main ()
17207{
17208
17209                        int HMAC_Update(void);
17210                        (void)HMAC_Update();
17211
17212  ;
17213  return 0;
17214}
17215_ACEOF
17216if ac_fn_c_try_link "$LINENO"; then :
17217
17218
17219$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17220
17221                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17222$as_echo "yes" >&6; }
17223
17224else
17225
17226                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228                        LIBS="$BAKLIBS"
17229                        LIBSSL_LIBS="$BAKSSLLIBS"
17230                        LIBS="$LIBS -ldl -pthread"
17231                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17232                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17233$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17234                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235/* end confdefs.h.  */
17236
17237int
17238main ()
17239{
17240
17241                            int HMAC_Update(void);
17242                            (void)HMAC_Update();
17243
17244  ;
17245  return 0;
17246}
17247_ACEOF
17248if ac_fn_c_try_link "$LINENO"; then :
17249
17250
17251$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17252
17253                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17254$as_echo "yes" >&6; }
17255
17256else
17257
17258                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259$as_echo "no" >&6; }
17260                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17261
17262fi
17263rm -f core conftest.err conftest.$ac_objext \
17264    conftest$ac_exeext conftest.$ac_ext
17265
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268    conftest$ac_exeext conftest.$ac_ext
17269
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273
17274fi
17275rm -f core conftest.err conftest.$ac_objext \
17276    conftest$ac_exeext conftest.$ac_ext
17277        fi
17278
17279
17280    fi
17281for ac_header in openssl/ssl.h
17282do :
17283  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17284"
17285if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17286  cat >>confdefs.h <<_ACEOF
17287#define HAVE_OPENSSL_SSL_H 1
17288_ACEOF
17289
17290fi
17291
17292done
17293
17294for ac_header in openssl/err.h
17295do :
17296  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17297"
17298if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17299  cat >>confdefs.h <<_ACEOF
17300#define HAVE_OPENSSL_ERR_H 1
17301_ACEOF
17302
17303fi
17304
17305done
17306
17307for ac_header in openssl/rand.h
17308do :
17309  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17310"
17311if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17312  cat >>confdefs.h <<_ACEOF
17313#define HAVE_OPENSSL_RAND_H 1
17314_ACEOF
17315
17316fi
17317
17318done
17319
17320
17321
17322
17323# check if libssl needs libdl
17324BAKLIBS="$LIBS"
17325LIBS="-lssl $LIBS"
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17327$as_echo_n "checking if libssl needs libdl... " >&6; }
17328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329/* end confdefs.h.  */
17330
17331/* Override any GCC internal prototype to avoid an error.
17332   Use char because int might match the return type of a GCC
17333   builtin and then its argument prototype would still apply.  */
17334#ifdef __cplusplus
17335extern "C"
17336#endif
17337char SSL_CTX_new ();
17338int
17339main ()
17340{
17341return SSL_CTX_new ();
17342  ;
17343  return 0;
17344}
17345_ACEOF
17346if ac_fn_c_try_link "$LINENO"; then :
17347
17348	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349$as_echo "no" >&6; }
17350	LIBS="$BAKLIBS"
17351
17352else
17353
17354	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17355$as_echo "yes" >&6; }
17356	LIBS="$BAKLIBS"
17357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17358$as_echo_n "checking for library containing dlopen... " >&6; }
17359if ${ac_cv_search_dlopen+:} false; then :
17360  $as_echo_n "(cached) " >&6
17361else
17362  ac_func_search_save_LIBS=$LIBS
17363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364/* end confdefs.h.  */
17365
17366/* Override any GCC internal prototype to avoid an error.
17367   Use char because int might match the return type of a GCC
17368   builtin and then its argument prototype would still apply.  */
17369#ifdef __cplusplus
17370extern "C"
17371#endif
17372char dlopen ();
17373int
17374main ()
17375{
17376return dlopen ();
17377  ;
17378  return 0;
17379}
17380_ACEOF
17381for ac_lib in '' dl; do
17382  if test -z "$ac_lib"; then
17383    ac_res="none required"
17384  else
17385    ac_res=-l$ac_lib
17386    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17387  fi
17388  if ac_fn_c_try_link "$LINENO"; then :
17389  ac_cv_search_dlopen=$ac_res
17390fi
17391rm -f core conftest.err conftest.$ac_objext \
17392    conftest$ac_exeext
17393  if ${ac_cv_search_dlopen+:} false; then :
17394  break
17395fi
17396done
17397if ${ac_cv_search_dlopen+:} false; then :
17398
17399else
17400  ac_cv_search_dlopen=no
17401fi
17402rm conftest.$ac_ext
17403LIBS=$ac_func_search_save_LIBS
17404fi
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17406$as_echo "$ac_cv_search_dlopen" >&6; }
17407ac_res=$ac_cv_search_dlopen
17408if test "$ac_res" != no; then :
17409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17410
17411fi
17412
17413
17414fi
17415rm -f core conftest.err conftest.$ac_objext \
17416    conftest$ac_exeext conftest.$ac_ext
17417SSLLIB="-lssl"
17418
17419# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17420BAKLIBS="$LIBS"
17421LIBS="-lssl $LIBS"
17422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17423$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h.  */
17426
17427/* Override any GCC internal prototype to avoid an error.
17428   Use char because int might match the return type of a GCC
17429   builtin and then its argument prototype would still apply.  */
17430#ifdef __cplusplus
17431extern "C"
17432#endif
17433char HMAC_Update ();
17434int
17435main ()
17436{
17437return HMAC_Update ();
17438  ;
17439  return 0;
17440}
17441_ACEOF
17442if ac_fn_c_try_link "$LINENO"; then :
17443
17444	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445$as_echo "no" >&6; }
17446	LIBS="$BAKLIBS"
17447
17448else
17449
17450	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17451$as_echo "yes" >&6; }
17452	LIBS="$BAKLIBS"
17453	LIBS="$LIBS -lcrypt32"
17454
17455fi
17456rm -f core conftest.err conftest.$ac_objext \
17457    conftest$ac_exeext conftest.$ac_ext
17458
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17460$as_echo_n "checking for LibreSSL... " >&6; }
17461if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17462	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17463$as_echo "yes" >&6; }
17464
17465$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17466
17467	# libressl provides these compat functions, but they may also be
17468	# declared by the OS in libc.  See if they have been declared.
17469	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17470if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17471  ac_have_decl=1
17472else
17473  ac_have_decl=0
17474fi
17475
17476cat >>confdefs.h <<_ACEOF
17477#define HAVE_DECL_STRLCPY $ac_have_decl
17478_ACEOF
17479ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17480if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17481  ac_have_decl=1
17482else
17483  ac_have_decl=0
17484fi
17485
17486cat >>confdefs.h <<_ACEOF
17487#define HAVE_DECL_STRLCAT $ac_have_decl
17488_ACEOF
17489ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17490if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17491  ac_have_decl=1
17492else
17493  ac_have_decl=0
17494fi
17495
17496cat >>confdefs.h <<_ACEOF
17497#define HAVE_DECL_ARC4RANDOM $ac_have_decl
17498_ACEOF
17499ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17500if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17501  ac_have_decl=1
17502else
17503  ac_have_decl=0
17504fi
17505
17506cat >>confdefs.h <<_ACEOF
17507#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17508_ACEOF
17509ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17510if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17511  ac_have_decl=1
17512else
17513  ac_have_decl=0
17514fi
17515
17516cat >>confdefs.h <<_ACEOF
17517#define HAVE_DECL_REALLOCARRAY $ac_have_decl
17518_ACEOF
17519
17520else
17521	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522$as_echo "no" >&6; }
17523fi
17524for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17525do :
17526  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17527ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17528"
17529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17530  cat >>confdefs.h <<_ACEOF
17531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17532_ACEOF
17533
17534fi
17535
17536done
17537
17538for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup
17539do :
17540  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17542if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17543  cat >>confdefs.h <<_ACEOF
17544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17545_ACEOF
17546
17547fi
17548done
17549
17550
17551# these check_funcs need -lssl
17552BAKLIBS="$LIBS"
17553LIBS="-lssl $LIBS"
17554for ac_func in OPENSSL_init_ssl
17555do :
17556  ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
17557if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes; then :
17558  cat >>confdefs.h <<_ACEOF
17559#define HAVE_OPENSSL_INIT_SSL 1
17560_ACEOF
17561
17562fi
17563done
17564
17565LIBS="$BAKLIBS"
17566
17567ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17568$ac_includes_default
17569#ifdef HAVE_OPENSSL_ERR_H
17570#include <openssl/err.h>
17571#endif
17572
17573#ifdef HAVE_OPENSSL_RAND_H
17574#include <openssl/rand.h>
17575#endif
17576
17577#ifdef HAVE_OPENSSL_CONF_H
17578#include <openssl/conf.h>
17579#endif
17580
17581#ifdef HAVE_OPENSSL_ENGINE_H
17582#include <openssl/engine.h>
17583#endif
17584#include <openssl/ssl.h>
17585#include <openssl/evp.h>
17586
17587"
17588if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17589  ac_have_decl=1
17590else
17591  ac_have_decl=0
17592fi
17593
17594cat >>confdefs.h <<_ACEOF
17595#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17596_ACEOF
17597ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17598$ac_includes_default
17599#ifdef HAVE_OPENSSL_ERR_H
17600#include <openssl/err.h>
17601#endif
17602
17603#ifdef HAVE_OPENSSL_RAND_H
17604#include <openssl/rand.h>
17605#endif
17606
17607#ifdef HAVE_OPENSSL_CONF_H
17608#include <openssl/conf.h>
17609#endif
17610
17611#ifdef HAVE_OPENSSL_ENGINE_H
17612#include <openssl/engine.h>
17613#endif
17614#include <openssl/ssl.h>
17615#include <openssl/evp.h>
17616
17617"
17618if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17619  ac_have_decl=1
17620else
17621  ac_have_decl=0
17622fi
17623
17624cat >>confdefs.h <<_ACEOF
17625#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17626_ACEOF
17627ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17628$ac_includes_default
17629#ifdef HAVE_OPENSSL_ERR_H
17630#include <openssl/err.h>
17631#endif
17632
17633#ifdef HAVE_OPENSSL_RAND_H
17634#include <openssl/rand.h>
17635#endif
17636
17637#ifdef HAVE_OPENSSL_CONF_H
17638#include <openssl/conf.h>
17639#endif
17640
17641#ifdef HAVE_OPENSSL_ENGINE_H
17642#include <openssl/engine.h>
17643#endif
17644#include <openssl/ssl.h>
17645#include <openssl/evp.h>
17646
17647"
17648if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17649  ac_have_decl=1
17650else
17651  ac_have_decl=0
17652fi
17653
17654cat >>confdefs.h <<_ACEOF
17655#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17656_ACEOF
17657
17658fi
17659
17660
17661
17662# Check whether --enable-sha2 was given.
17663if test "${enable_sha2+set}" = set; then :
17664  enableval=$enable_sha2;
17665fi
17666
17667case "$enable_sha2" in
17668	no)
17669	;;
17670	yes|*)
17671
17672$as_echo "#define USE_SHA2 1" >>confdefs.h
17673
17674	;;
17675esac
17676
17677# check wether gost also works
17678
17679# Check whether --enable-gost was given.
17680if test "${enable_gost+set}" = set; then :
17681  enableval=$enable_gost;
17682fi
17683
17684use_gost="no"
17685if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17686case "$enable_gost" in
17687	no)
17688	;;
17689	*)
17690	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17691if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17692  :
17693else
17694  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17695fi
17696
17697	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17698if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17699
17700else
17701  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17702fi
17703
17704
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17706$as_echo_n "checking if GOST works... " >&6; }
17707if test c${cross_compiling} = cno; then
17708BAKCFLAGS="$CFLAGS"
17709if test -n "$ssldir"; then
17710	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17711fi
17712if test "$cross_compiling" = yes; then :
17713  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17715as_fn_error $? "cannot run test program while cross compiling
17716See \`config.log' for more details" "$LINENO" 5; }
17717else
17718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719/* end confdefs.h.  */
17720
17721#include <string.h>
17722#include <openssl/ssl.h>
17723#include <openssl/evp.h>
17724#include <openssl/engine.h>
17725#include <openssl/conf.h>
17726/* routine to load gost (from sldns) */
17727int load_gost_id(void)
17728{
17729	static int gost_id = 0;
17730	const EVP_PKEY_ASN1_METHOD* meth;
17731	ENGINE* e;
17732
17733	if(gost_id) return gost_id;
17734
17735	/* see if configuration loaded gost implementation from other engine*/
17736	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17737	if(meth) {
17738		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17739		return gost_id;
17740	}
17741
17742	/* see if engine can be loaded already */
17743	e = ENGINE_by_id("gost");
17744	if(!e) {
17745		/* load it ourself, in case statically linked */
17746		ENGINE_load_builtin_engines();
17747		ENGINE_load_dynamic();
17748		e = ENGINE_by_id("gost");
17749	}
17750	if(!e) {
17751		/* no gost engine in openssl */
17752		return 0;
17753	}
17754	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17755		ENGINE_finish(e);
17756		ENGINE_free(e);
17757		return 0;
17758	}
17759
17760	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17761	if(!meth) {
17762		/* algo not found */
17763		ENGINE_finish(e);
17764		ENGINE_free(e);
17765		return 0;
17766	}
17767	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17768	return gost_id;
17769}
17770int main(void) {
17771	EVP_MD_CTX* ctx;
17772	const EVP_MD* md;
17773	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17774	const char* str = "Hello world";
17775	const unsigned char check[] = {
17776		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17777		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17778		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17779		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17780	};
17781	OPENSSL_config(NULL);
17782	(void)load_gost_id();
17783	md = EVP_get_digestbyname("md_gost94");
17784	if(!md) return 1;
17785	memset(digest, 0, sizeof(digest));
17786	ctx = EVP_MD_CTX_create();
17787	if(!ctx) return 2;
17788	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17789	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17790	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17791	/* uncomment to see the hash calculated.
17792		{int i;
17793		for(i=0; i<32; i++)
17794			printf(" %2.2x", (int)digest[i]);
17795		printf("\n");}
17796	*/
17797	if(memcmp(digest, check, sizeof(check)) != 0)
17798		return 6;
17799	return 0;
17800}
17801
17802_ACEOF
17803if ac_fn_c_try_run "$LINENO"; then :
17804  eval "ac_cv_c_gost_works=yes"
17805else
17806  eval "ac_cv_c_gost_works=no"
17807fi
17808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17809  conftest.$ac_objext conftest.beam conftest.$ac_ext
17810fi
17811
17812CFLAGS="$BAKCFLAGS"
17813else
17814eval "ac_cv_c_gost_works=maybe"
17815fi
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17817$as_echo "$ac_cv_c_gost_works" >&6; }
17818
17819	if test "$ac_cv_c_gost_works" != no; then
17820		use_gost="yes"
17821
17822$as_echo "#define USE_GOST 1" >>confdefs.h
17823
17824	fi
17825	;;
17826esac
17827fi
17828# Check whether --enable-ecdsa was given.
17829if test "${enable_ecdsa+set}" = set; then :
17830  enableval=$enable_ecdsa;
17831fi
17832
17833use_ecdsa="no"
17834case "$enable_ecdsa" in
17835    no)
17836      ;;
17837    *)
17838      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17839	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17840if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17841
17842else
17843  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17844fi
17845
17846	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17847if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17848
17849else
17850  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17851fi
17852
17853	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17854#include <openssl/evp.h>
17855
17856"
17857if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17858  ac_have_decl=1
17859else
17860  ac_have_decl=0
17861fi
17862
17863cat >>confdefs.h <<_ACEOF
17864#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17865_ACEOF
17866if test $ac_have_decl = 1; then :
17867
17868else
17869  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17870fi
17871ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17872#include <openssl/evp.h>
17873
17874"
17875if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17876  ac_have_decl=1
17877else
17878  ac_have_decl=0
17879fi
17880
17881cat >>confdefs.h <<_ACEOF
17882#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17883_ACEOF
17884if test $ac_have_decl = 1; then :
17885
17886else
17887  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17888fi
17889
17890	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17891	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17892$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17893	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17894		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17895		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17896$as_echo "no" >&6; }
17897
17898cat >>confdefs.h <<_ACEOF
17899#define USE_ECDSA_EVP_WORKAROUND 1
17900_ACEOF
17901
17902		else
17903		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17904$as_echo "yes" >&6; }
17905		fi
17906	      else
17907		# not OpenSSL, thus likely LibreSSL, which supports it
17908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17909$as_echo "yes" >&6; }
17910	      fi
17911      fi
17912      # we now know we have ECDSA and the required curves.
17913
17914cat >>confdefs.h <<_ACEOF
17915#define USE_ECDSA 1
17916_ACEOF
17917
17918      use_ecdsa="yes"
17919      ;;
17920esac
17921
17922# Check whether --enable-dsa was given.
17923if test "${enable_dsa+set}" = set; then :
17924  enableval=$enable_dsa;
17925fi
17926
17927use_dsa="no"
17928case "$enable_ecdsa" in
17929    no)
17930      ;;
17931    *)
17932      # detect if DSA is supported, and turn it off if not.
17933      ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
17934if test "x$ac_cv_func_EVP_dss1" = xyes; then :
17935
17936
17937cat >>confdefs.h <<_ACEOF
17938#define USE_DSA 1
17939_ACEOF
17940
17941
17942else
17943  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
17944               fi
17945fi
17946
17947      ;;
17948esac
17949
17950
17951# Check whether --enable-event-api was given.
17952if test "${enable_event_api+set}" = set; then :
17953  enableval=$enable_event_api;
17954fi
17955
17956case "$enable_event_api" in
17957    yes)
17958      UNBOUND_EVENT_INSTALL=unbound-event-install
17959
17960      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17961
17962      ;;
17963    *)
17964      ;;
17965esac
17966
17967# Check whether --enable-tfo-client was given.
17968if test "${enable_tfo_client+set}" = set; then :
17969  enableval=$enable_tfo_client;
17970fi
17971
17972case "$enable_tfo_client" in
17973	yes)
17974		case `uname` in
17975			Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
17976#include <netinet/tcp.h>
17977
17978"
17979if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
17980  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
17981$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
17982else
17983  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
17984fi
17985
17986
17987cat >>confdefs.h <<_ACEOF
17988#define USE_MSG_FASTOPEN 1
17989_ACEOF
17990
17991			  ;;
17992			Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
17993#include <sys/socket.h>
17994
17995"
17996if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
17997  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
17998$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
17999else
18000  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18001fi
18002
18003
18004cat >>confdefs.h <<_ACEOF
18005#define USE_OSX_MSG_FASTOPEN 1
18006_ACEOF
18007
18008			  ;;
18009		esac
18010	;;
18011	no|*)
18012		;;
18013esac
18014
18015# Check whether --enable-tfo-server was given.
18016if test "${enable_tfo_server+set}" = set; then :
18017  enableval=$enable_tfo_server;
18018fi
18019
18020case "$enable_tfo_server" in
18021	yes)
18022	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18023#include <netinet/tcp.h>
18024
18025"
18026if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18027  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18028$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18029else
18030  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18031fi
18032
18033
18034cat >>confdefs.h <<_ACEOF
18035#define USE_TCP_FASTOPEN 1
18036_ACEOF
18037
18038		;;
18039	no|*)
18040		;;
18041esac
18042
18043# check for libevent
18044
18045# Check whether --with-libevent was given.
18046if test "${with_libevent+set}" = set; then :
18047  withval=$with_libevent;
18048else
18049   withval="no"
18050fi
18051
18052if test x_$withval = x_yes -o x_$withval != x_no; then
18053        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18054$as_echo_n "checking for libevent... " >&6; }
18055        if test x_$withval = x_ -o x_$withval = x_yes; then
18056            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18057        fi
18058        for dir in $withval; do
18059            thedir="$dir"
18060            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18061                found_libevent="yes"
18062				if test "$thedir" != "/usr"; then
18063                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
18064		fi
18065                break;
18066            fi
18067        done
18068        if test x_$found_libevent != x_yes; then
18069		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18070			# libevent source directory
18071            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18072$as_echo "found in $thedir" >&6; }
18073                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18074			BAK_LDFLAGS_SET="1"
18075			BAK_LDFLAGS="$LDFLAGS"
18076			# remove evdns from linking
18077			mkdir build >/dev/null 2>&1
18078			mkdir build/libevent >/dev/null 2>&1
18079			mkdir build/libevent/.libs >/dev/null 2>&1
18080			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18081			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18082			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18083			cp $ev_files_o build/libevent
18084			cp $ev_files_lo build/libevent
18085			cp $ev_files_libso build/libevent/.libs
18086            		LATE_LDFLAGS="build/libevent/*.lo -lm"
18087			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18088		else
18089            		as_fn_error $? "Cannot find the libevent library in $withval
18090You can restart ./configure --with-libevent=no to use a builtin alternative.
18091Please note that this alternative is not as capable as libevent when using
18092large outgoing port ranges.  " "$LINENO" 5
18093		fi
18094        else
18095            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18096$as_echo "found in $thedir" >&6; }
18097	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18098		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18099
18100	if test "x$enable_rpath" = xyes; then
18101		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18102			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18103		fi
18104	fi
18105
18106	    else
18107		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
18108			LDFLAGS="$LDFLAGS -L$thedir/lib"
18109
18110	if test "x$enable_rpath" = xyes; then
18111		if echo "$thedir/lib" | grep "^/" >/dev/null; then
18112			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18113		fi
18114	fi
18115
18116		    fi
18117	    fi
18118        fi
18119	# check for library used by libevent after 1.3c
18120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18121$as_echo_n "checking for library containing clock_gettime... " >&6; }
18122if ${ac_cv_search_clock_gettime+:} false; then :
18123  $as_echo_n "(cached) " >&6
18124else
18125  ac_func_search_save_LIBS=$LIBS
18126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h.  */
18128
18129/* Override any GCC internal prototype to avoid an error.
18130   Use char because int might match the return type of a GCC
18131   builtin and then its argument prototype would still apply.  */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char clock_gettime ();
18136int
18137main ()
18138{
18139return clock_gettime ();
18140  ;
18141  return 0;
18142}
18143_ACEOF
18144for ac_lib in '' rt; do
18145  if test -z "$ac_lib"; then
18146    ac_res="none required"
18147  else
18148    ac_res=-l$ac_lib
18149    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18150  fi
18151  if ac_fn_c_try_link "$LINENO"; then :
18152  ac_cv_search_clock_gettime=$ac_res
18153fi
18154rm -f core conftest.err conftest.$ac_objext \
18155    conftest$ac_exeext
18156  if ${ac_cv_search_clock_gettime+:} false; then :
18157  break
18158fi
18159done
18160if ${ac_cv_search_clock_gettime+:} false; then :
18161
18162else
18163  ac_cv_search_clock_gettime=no
18164fi
18165rm conftest.$ac_ext
18166LIBS=$ac_func_search_save_LIBS
18167fi
18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18169$as_echo "$ac_cv_search_clock_gettime" >&6; }
18170ac_res=$ac_cv_search_clock_gettime
18171if test "$ac_res" != no; then :
18172  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18173
18174fi
18175
18176
18177	# is the event.h header libev or libevent?
18178	for ac_header in event.h
18179do :
18180  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18181"
18182if test "x$ac_cv_header_event_h" = xyes; then :
18183  cat >>confdefs.h <<_ACEOF
18184#define HAVE_EVENT_H 1
18185_ACEOF
18186
18187fi
18188
18189done
18190
18191	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18192#include <event.h>
18193
18194"
18195if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18196
18197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18198$as_echo_n "checking for library containing event_set... " >&6; }
18199if ${ac_cv_search_event_set+:} false; then :
18200  $as_echo_n "(cached) " >&6
18201else
18202  ac_func_search_save_LIBS=$LIBS
18203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204/* end confdefs.h.  */
18205
18206/* Override any GCC internal prototype to avoid an error.
18207   Use char because int might match the return type of a GCC
18208   builtin and then its argument prototype would still apply.  */
18209#ifdef __cplusplus
18210extern "C"
18211#endif
18212char event_set ();
18213int
18214main ()
18215{
18216return event_set ();
18217  ;
18218  return 0;
18219}
18220_ACEOF
18221for ac_lib in '' ev; do
18222  if test -z "$ac_lib"; then
18223    ac_res="none required"
18224  else
18225    ac_res=-l$ac_lib
18226    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18227  fi
18228  if ac_fn_c_try_link "$LINENO"; then :
18229  ac_cv_search_event_set=$ac_res
18230fi
18231rm -f core conftest.err conftest.$ac_objext \
18232    conftest$ac_exeext
18233  if ${ac_cv_search_event_set+:} false; then :
18234  break
18235fi
18236done
18237if ${ac_cv_search_event_set+:} false; then :
18238
18239else
18240  ac_cv_search_event_set=no
18241fi
18242rm conftest.$ac_ext
18243LIBS=$ac_func_search_save_LIBS
18244fi
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18246$as_echo "$ac_cv_search_event_set" >&6; }
18247ac_res=$ac_cv_search_event_set
18248if test "$ac_res" != no; then :
18249  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18250
18251fi
18252
18253
18254else
18255
18256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18257$as_echo_n "checking for library containing event_set... " >&6; }
18258if ${ac_cv_search_event_set+:} false; then :
18259  $as_echo_n "(cached) " >&6
18260else
18261  ac_func_search_save_LIBS=$LIBS
18262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263/* end confdefs.h.  */
18264
18265/* Override any GCC internal prototype to avoid an error.
18266   Use char because int might match the return type of a GCC
18267   builtin and then its argument prototype would still apply.  */
18268#ifdef __cplusplus
18269extern "C"
18270#endif
18271char event_set ();
18272int
18273main ()
18274{
18275return event_set ();
18276  ;
18277  return 0;
18278}
18279_ACEOF
18280for ac_lib in '' event; do
18281  if test -z "$ac_lib"; then
18282    ac_res="none required"
18283  else
18284    ac_res=-l$ac_lib
18285    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18286  fi
18287  if ac_fn_c_try_link "$LINENO"; then :
18288  ac_cv_search_event_set=$ac_res
18289fi
18290rm -f core conftest.err conftest.$ac_objext \
18291    conftest$ac_exeext
18292  if ${ac_cv_search_event_set+:} false; then :
18293  break
18294fi
18295done
18296if ${ac_cv_search_event_set+:} false; then :
18297
18298else
18299  ac_cv_search_event_set=no
18300fi
18301rm conftest.$ac_ext
18302LIBS=$ac_func_search_save_LIBS
18303fi
18304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18305$as_echo "$ac_cv_search_event_set" >&6; }
18306ac_res=$ac_cv_search_event_set
18307if test "$ac_res" != no; then :
18308  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18309
18310fi
18311
18312
18313fi
18314
18315	for ac_func in event_base_free
18316do :
18317  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18318if test "x$ac_cv_func_event_base_free" = xyes; then :
18319  cat >>confdefs.h <<_ACEOF
18320#define HAVE_EVENT_BASE_FREE 1
18321_ACEOF
18322
18323fi
18324done
18325 # only in libevent 1.2 and later
18326	for ac_func in event_base_once
18327do :
18328  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18329if test "x$ac_cv_func_event_base_once" = xyes; then :
18330  cat >>confdefs.h <<_ACEOF
18331#define HAVE_EVENT_BASE_ONCE 1
18332_ACEOF
18333
18334fi
18335done
18336 # only in libevent 1.4.1 and later
18337	for ac_func in event_base_new
18338do :
18339  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18340if test "x$ac_cv_func_event_base_new" = xyes; then :
18341  cat >>confdefs.h <<_ACEOF
18342#define HAVE_EVENT_BASE_NEW 1
18343_ACEOF
18344
18345fi
18346done
18347 # only in libevent 1.4.1 and later
18348	for ac_func in event_base_get_method
18349do :
18350  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18351if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18352  cat >>confdefs.h <<_ACEOF
18353#define HAVE_EVENT_BASE_GET_METHOD 1
18354_ACEOF
18355
18356fi
18357done
18358 # only in libevent 1.4.3 and later
18359	for ac_func in ev_loop
18360do :
18361  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18362if test "x$ac_cv_func_ev_loop" = xyes; then :
18363  cat >>confdefs.h <<_ACEOF
18364#define HAVE_EV_LOOP 1
18365_ACEOF
18366
18367fi
18368done
18369 # only in libev. (tested on 3.51)
18370	for ac_func in ev_default_loop
18371do :
18372  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18373if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18374  cat >>confdefs.h <<_ACEOF
18375#define HAVE_EV_DEFAULT_LOOP 1
18376_ACEOF
18377
18378fi
18379done
18380 # only in libev. (tested on 4.00)
18381	if test -n "$BAK_LDFLAGS_SET"; then
18382		LDFLAGS="$BAK_LDFLAGS"
18383	fi
18384else
18385
18386$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18387
18388fi
18389
18390# check for libexpat
18391
18392# Check whether --with-libexpat was given.
18393if test "${with_libexpat+set}" = set; then :
18394  withval=$with_libexpat;
18395else
18396   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18397fi
18398
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18400$as_echo_n "checking for libexpat... " >&6; }
18401found_libexpat="no"
18402for dir in $withval ; do
18403            if test -f "$dir/include/expat.h"; then
18404		found_libexpat="yes"
18405				if test "$dir" != "/usr"; then
18406                    CPPFLAGS="$CPPFLAGS -I$dir/include"
18407		    LDFLAGS="$LDFLAGS -L$dir/lib"
18408		fi
18409            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18410$as_echo "found in $dir" >&6; }
18411                break;
18412            fi
18413done
18414if test x_$found_libexpat != x_yes; then
18415	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18416fi
18417for ac_header in expat.h
18418do :
18419  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18420"
18421if test "x$ac_cv_header_expat_h" = xyes; then :
18422  cat >>confdefs.h <<_ACEOF
18423#define HAVE_EXPAT_H 1
18424_ACEOF
18425
18426fi
18427
18428done
18429
18430ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18431#include <expat.h>
18432
18433"
18434if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18435  ac_have_decl=1
18436else
18437  ac_have_decl=0
18438fi
18439
18440cat >>confdefs.h <<_ACEOF
18441#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18442_ACEOF
18443
18444
18445# set static linking if requested
18446
18447staticexe=""
18448# Check whether --enable-static-exe was given.
18449if test "${enable_static_exe+set}" = set; then :
18450  enableval=$enable_static_exe;
18451fi
18452
18453if test x_$enable_static_exe = x_yes; then
18454	staticexe="-static"
18455	if test "$on_mingw" = yes; then
18456		staticexe="-all-static"
18457		# for static compile, include gdi32 and zlib here.
18458		LIBS="$LIBS -lgdi32 -lz"
18459	fi
18460fi
18461
18462# set lock checking if requested
18463# Check whether --enable-lock_checks was given.
18464if test "${enable_lock_checks+set}" = set; then :
18465  enableval=$enable_lock_checks;
18466fi
18467
18468if test x_$enable_lock_checks = x_yes; then
18469
18470$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18471
18472	CHECKLOCK_OBJ="checklocks.lo"
18473
18474fi
18475
18476
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18478$as_echo_n "checking for getaddrinfo... " >&6; }
18479ac_cv_func_getaddrinfo=no
18480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481/* end confdefs.h.  */
18482
18483#ifdef __cplusplus
18484extern "C"
18485{
18486#endif
18487char* getaddrinfo();
18488char* (*f) () = getaddrinfo;
18489#ifdef __cplusplus
18490}
18491#endif
18492int main() {
18493        ;
18494        return 0;
18495}
18496
18497_ACEOF
18498if ac_fn_c_try_link "$LINENO"; then :
18499  ac_cv_func_getaddrinfo="yes"
18500if test "$ac_cv_header_windows_h" = "yes"; then
18501
18502$as_echo "#define USE_WINSOCK 1" >>confdefs.h
18503
18504	USE_WINSOCK="1"
18505	LIBS="$LIBS -lws2_32"
18506fi
18507
18508else
18509  ORIGLIBS="$LIBS"
18510LIBS="$LIBS -lws2_32"
18511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512/* end confdefs.h.  */
18513
18514#ifdef HAVE_WS2TCPIP_H
18515#include <ws2tcpip.h>
18516#endif
18517
18518int
18519main ()
18520{
18521
18522        (void)getaddrinfo(NULL, NULL, NULL, NULL);
18523
18524
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529if ac_fn_c_try_link "$LINENO"; then :
18530
18531ac_cv_func_getaddrinfo="yes"
18532
18533$as_echo "#define USE_WINSOCK 1" >>confdefs.h
18534
18535USE_WINSOCK="1"
18536
18537else
18538
18539ac_cv_func_getaddrinfo="no"
18540LIBS="$ORIGLIBS"
18541
18542fi
18543rm -f core conftest.err conftest.$ac_objext \
18544    conftest$ac_exeext conftest.$ac_ext
18545
18546fi
18547rm -f core conftest.err conftest.$ac_objext \
18548    conftest$ac_exeext conftest.$ac_ext
18549
18550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
18551$as_echo "$ac_cv_func_getaddrinfo" >&6; }
18552if test $ac_cv_func_getaddrinfo = yes; then
18553
18554$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18555
18556fi
18557
18558if test "$USE_WINSOCK" = 1; then
18559
18560$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
18561
18562	for ac_header in iphlpapi.h
18563do :
18564  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
18565#include <windows.h>
18566
18567"
18568if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
18569  cat >>confdefs.h <<_ACEOF
18570#define HAVE_IPHLPAPI_H 1
18571_ACEOF
18572
18573fi
18574
18575done
18576
18577	if test -n "$ac_tool_prefix"; then
18578  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18579set dummy ${ac_tool_prefix}windres; ac_word=$2
18580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18581$as_echo_n "checking for $ac_word... " >&6; }
18582if ${ac_cv_prog_WINDRES+:} false; then :
18583  $as_echo_n "(cached) " >&6
18584else
18585  if test -n "$WINDRES"; then
18586  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18587else
18588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589for as_dir in $PATH
18590do
18591  IFS=$as_save_IFS
18592  test -z "$as_dir" && as_dir=.
18593    for ac_exec_ext in '' $ac_executable_extensions; do
18594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18595    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18597    break 2
18598  fi
18599done
18600  done
18601IFS=$as_save_IFS
18602
18603fi
18604fi
18605WINDRES=$ac_cv_prog_WINDRES
18606if test -n "$WINDRES"; then
18607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18608$as_echo "$WINDRES" >&6; }
18609else
18610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611$as_echo "no" >&6; }
18612fi
18613
18614
18615fi
18616if test -z "$ac_cv_prog_WINDRES"; then
18617  ac_ct_WINDRES=$WINDRES
18618  # Extract the first word of "windres", so it can be a program name with args.
18619set dummy windres; ac_word=$2
18620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18621$as_echo_n "checking for $ac_word... " >&6; }
18622if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18623  $as_echo_n "(cached) " >&6
18624else
18625  if test -n "$ac_ct_WINDRES"; then
18626  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18627else
18628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629for as_dir in $PATH
18630do
18631  IFS=$as_save_IFS
18632  test -z "$as_dir" && as_dir=.
18633    for ac_exec_ext in '' $ac_executable_extensions; do
18634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18635    ac_cv_prog_ac_ct_WINDRES="windres"
18636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18637    break 2
18638  fi
18639done
18640  done
18641IFS=$as_save_IFS
18642
18643fi
18644fi
18645ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18646if test -n "$ac_ct_WINDRES"; then
18647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18648$as_echo "$ac_ct_WINDRES" >&6; }
18649else
18650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651$as_echo "no" >&6; }
18652fi
18653
18654  if test "x$ac_ct_WINDRES" = x; then
18655    WINDRES=""
18656  else
18657    case $cross_compiling:$ac_tool_warned in
18658yes:)
18659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18661ac_tool_warned=yes ;;
18662esac
18663    WINDRES=$ac_ct_WINDRES
18664  fi
18665else
18666  WINDRES="$ac_cv_prog_WINDRES"
18667fi
18668
18669	LIBS="$LIBS -liphlpapi"
18670	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
18671
18672	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
18673
18674	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
18675
18676	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
18677
18678	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
18679
18680	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
18681
18682	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
18683
18684	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
18685
18686fi
18687if test $ac_cv_func_getaddrinfo = no; then
18688	case " $LIBOBJS " in
18689  *" fake-rfc2553.$ac_objext "* ) ;;
18690  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
18691 ;;
18692esac
18693
18694fi
18695# check after getaddrinfo for its libraries
18696
18697# check ioctlsocket
18698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
18699$as_echo_n "checking for ioctlsocket... " >&6; }
18700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702
18703#ifdef HAVE_WINSOCK2_H
18704#include <winsock2.h>
18705#endif
18706
18707int
18708main ()
18709{
18710
18711	(void)ioctlsocket(0, 0, NULL);
18712
18713  ;
18714  return 0;
18715}
18716_ACEOF
18717if ac_fn_c_try_link "$LINENO"; then :
18718
18719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720$as_echo "yes" >&6; }
18721
18722$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
18723
18724
18725else
18726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18727$as_echo "no" >&6; }
18728fi
18729rm -f core conftest.err conftest.$ac_objext \
18730    conftest$ac_exeext conftest.$ac_ext
18731
18732
18733# see if daemon(3) exists, and if it is deprecated.
18734for ac_func in daemon
18735do :
18736  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
18737if test "x$ac_cv_func_daemon" = xyes; then :
18738  cat >>confdefs.h <<_ACEOF
18739#define HAVE_DAEMON 1
18740_ACEOF
18741
18742fi
18743done
18744
18745if test $ac_cv_func_daemon = yes; then
18746
18747
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
18749$as_echo_n "checking if daemon is deprecated... " >&6; }
18750cache=`echo daemon | sed 'y%.=/+-%___p_%'`
18751if eval \${cv_cc_deprecated_$cache+:} false; then :
18752  $as_echo_n "(cached) " >&6
18753else
18754
18755echo '
18756#include <stdlib.h>
18757' >conftest.c
18758echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
18759if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
18760eval "cv_cc_deprecated_$cache=no"
18761else
18762eval "cv_cc_deprecated_$cache=yes"
18763fi
18764rm -f conftest conftest.o conftest.c
18765
18766fi
18767
18768if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
18769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18770$as_echo "yes" >&6; }
18771
18772cat >>confdefs.h <<_ACEOF
18773#define DEPRECATED_DAEMON 1
18774_ACEOF
18775
18776:
18777
18778else
18779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18780$as_echo "no" >&6; }
18781:
18782
18783fi
18784
18785fi
18786
18787ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
18788$ac_includes_default
18789#ifdef HAVE_SYS_UN_H
18790#include <sys/un.h>
18791#endif
18792
18793"
18794if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
18795
18796cat >>confdefs.h <<_ACEOF
18797#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18798_ACEOF
18799
18800
18801fi
18802
18803ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
18804$ac_includes_default
18805#if HAVE_SYS_PARAM_H
18806#include <sys/param.h>
18807#endif
18808
18809#ifdef HAVE_SYS_SOCKET_H
18810#include <sys/socket.h>
18811#endif
18812
18813#ifdef HAVE_SYS_UIO_H
18814#include <sys/uio.h>
18815#endif
18816
18817#ifdef HAVE_NETINET_IN_H
18818#include <netinet/in.h>
18819#endif
18820
18821#ifdef HAVE_NETINET_TCP_H
18822#include <netinet/tcp.h>
18823#endif
18824
18825#ifdef HAVE_ARPA_INET_H
18826#include <arpa/inet.h>
18827#endif
18828
18829#ifdef HAVE_WINSOCK2_H
18830#include <winsock2.h>
18831#endif
18832
18833#ifdef HAVE_WS2TCPIP_H
18834#include <ws2tcpip.h>
18835#endif
18836
18837"
18838if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
18839
18840cat >>confdefs.h <<_ACEOF
18841#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
18842_ACEOF
18843
18844
18845fi
18846
18847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
18848$as_echo_n "checking for library containing setusercontext... " >&6; }
18849if ${ac_cv_search_setusercontext+:} false; then :
18850  $as_echo_n "(cached) " >&6
18851else
18852  ac_func_search_save_LIBS=$LIBS
18853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854/* end confdefs.h.  */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857   Use char because int might match the return type of a GCC
18858   builtin and then its argument prototype would still apply.  */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char setusercontext ();
18863int
18864main ()
18865{
18866return setusercontext ();
18867  ;
18868  return 0;
18869}
18870_ACEOF
18871for ac_lib in '' util; do
18872  if test -z "$ac_lib"; then
18873    ac_res="none required"
18874  else
18875    ac_res=-l$ac_lib
18876    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18877  fi
18878  if ac_fn_c_try_link "$LINENO"; then :
18879  ac_cv_search_setusercontext=$ac_res
18880fi
18881rm -f core conftest.err conftest.$ac_objext \
18882    conftest$ac_exeext
18883  if ${ac_cv_search_setusercontext+:} false; then :
18884  break
18885fi
18886done
18887if ${ac_cv_search_setusercontext+:} false; then :
18888
18889else
18890  ac_cv_search_setusercontext=no
18891fi
18892rm conftest.$ac_ext
18893LIBS=$ac_func_search_save_LIBS
18894fi
18895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
18896$as_echo "$ac_cv_search_setusercontext" >&6; }
18897ac_res=$ac_cv_search_setusercontext
18898if test "$ac_res" != no; then :
18899  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18900
18901fi
18902
18903for 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
18904do :
18905  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18906ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18907if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18908  cat >>confdefs.h <<_ACEOF
18909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18910_ACEOF
18911
18912fi
18913done
18914
18915for ac_func in setresuid
18916do :
18917  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18918if test "x$ac_cv_func_setresuid" = xyes; then :
18919  cat >>confdefs.h <<_ACEOF
18920#define HAVE_SETRESUID 1
18921_ACEOF
18922
18923else
18924  for ac_func in setreuid
18925do :
18926  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18927if test "x$ac_cv_func_setreuid" = xyes; then :
18928  cat >>confdefs.h <<_ACEOF
18929#define HAVE_SETREUID 1
18930_ACEOF
18931
18932fi
18933done
18934
18935fi
18936done
18937
18938for ac_func in setresgid
18939do :
18940  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18941if test "x$ac_cv_func_setresgid" = xyes; then :
18942  cat >>confdefs.h <<_ACEOF
18943#define HAVE_SETRESGID 1
18944_ACEOF
18945
18946else
18947  for ac_func in setregid
18948do :
18949  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18950if test "x$ac_cv_func_setregid" = xyes; then :
18951  cat >>confdefs.h <<_ACEOF
18952#define HAVE_SETREGID 1
18953_ACEOF
18954
18955fi
18956done
18957
18958fi
18959done
18960
18961
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18963$as_echo_n "checking for sbrk... " >&6; }
18964# catch the warning of deprecated sbrk
18965old_cflags="$CFLAGS"
18966CFLAGS="$CFLAGS -Werror"
18967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968/* end confdefs.h.  */
18969$ac_includes_default
18970
18971int main(void) { void* cur = sbrk(0); printf("%u\n", (unsigned)(size_t)((char*)cur - (char*)sbrk(0))); return 0; }
18972
18973_ACEOF
18974if ac_fn_c_try_compile "$LINENO"; then :
18975
18976	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18977$as_echo "yes" >&6; }
18978
18979$as_echo "#define HAVE_SBRK 1" >>confdefs.h
18980
18981
18982else
18983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984$as_echo "no" >&6; }
18985fi
18986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987CFLAGS="$old_cflags"
18988
18989# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18990if echo $build_os | grep darwin8 > /dev/null; then
18991
18992$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18993
18994fi
18995ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18996if test "x$ac_cv_func_inet_aton" = xyes; then :
18997  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18998
18999else
19000  case " $LIBOBJS " in
19001  *" inet_aton.$ac_objext "* ) ;;
19002  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19003 ;;
19004esac
19005
19006fi
19007
19008
19009ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19010if test "x$ac_cv_func_inet_pton" = xyes; then :
19011  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19012
19013else
19014  case " $LIBOBJS " in
19015  *" inet_pton.$ac_objext "* ) ;;
19016  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19017 ;;
19018esac
19019
19020fi
19021
19022
19023ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19024if test "x$ac_cv_func_inet_ntop" = xyes; then :
19025  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19026
19027else
19028  case " $LIBOBJS " in
19029  *" inet_ntop.$ac_objext "* ) ;;
19030  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19031 ;;
19032esac
19033
19034fi
19035
19036
19037ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19038if test "x$ac_cv_func_snprintf" = xyes; then :
19039  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19040
19041else
19042  case " $LIBOBJS " in
19043  *" snprintf.$ac_objext "* ) ;;
19044  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19045 ;;
19046esac
19047
19048fi
19049
19050
19051# test if snprintf return the proper length
19052if test "x$ac_cv_func_snprintf" = xyes; then
19053    if test c${cross_compiling} = cno; then
19054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19055$as_echo_n "checking for correct snprintf return value... " >&6; }
19056	if test "$cross_compiling" = yes; then :
19057  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19059as_fn_error $? "cannot run test program while cross compiling
19060See \`config.log' for more details" "$LINENO" 5; }
19061else
19062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063/* end confdefs.h.  */
19064$ac_includes_default
19065
19066int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19067
19068_ACEOF
19069if ac_fn_c_try_run "$LINENO"; then :
19070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19071$as_echo "yes" >&6; }
19072else
19073
19074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076
19077$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19078
19079		case " $LIBOBJS " in
19080  *" snprintf.$ac_objext "* ) ;;
19081  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19082 ;;
19083esac
19084
19085
19086fi
19087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19088  conftest.$ac_objext conftest.beam conftest.$ac_ext
19089fi
19090
19091    fi
19092fi
19093ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19094if test "x$ac_cv_func_strlcat" = xyes; then :
19095  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19096
19097else
19098  case " $LIBOBJS " in
19099  *" strlcat.$ac_objext "* ) ;;
19100  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19101 ;;
19102esac
19103
19104fi
19105
19106
19107ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19108if test "x$ac_cv_func_strlcpy" = xyes; then :
19109  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19110
19111else
19112  case " $LIBOBJS " in
19113  *" strlcpy.$ac_objext "* ) ;;
19114  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19115 ;;
19116esac
19117
19118fi
19119
19120
19121ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19122if test "x$ac_cv_func_memmove" = xyes; then :
19123  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19124
19125else
19126  case " $LIBOBJS " in
19127  *" memmove.$ac_objext "* ) ;;
19128  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19129 ;;
19130esac
19131
19132fi
19133
19134
19135ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19136if test "x$ac_cv_func_gmtime_r" = xyes; then :
19137  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19138
19139else
19140  case " $LIBOBJS " in
19141  *" gmtime_r.$ac_objext "* ) ;;
19142  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19143 ;;
19144esac
19145
19146fi
19147
19148
19149ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19150if test "x$ac_cv_func_isblank" = xyes; then :
19151  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19152
19153else
19154  case " $LIBOBJS " in
19155  *" isblank.$ac_objext "* ) ;;
19156  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19157 ;;
19158esac
19159
19160fi
19161
19162
19163LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19164
19165ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19166if test "x$ac_cv_func_reallocarray" = xyes; then :
19167  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19168
19169else
19170  case " $LIBOBJS " in
19171  *" reallocarray.$ac_objext "* ) ;;
19172  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19173 ;;
19174esac
19175
19176fi
19177
19178
19179if test "$USE_NSS" = "no"; then
19180	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19181if test "x$ac_cv_func_arc4random" = xyes; then :
19182  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19183
19184else
19185  case " $LIBOBJS " in
19186  *" arc4random.$ac_objext "* ) ;;
19187  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19188 ;;
19189esac
19190
19191fi
19192
19193
19194	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19195if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19196  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19197
19198else
19199  case " $LIBOBJS " in
19200  *" arc4random_uniform.$ac_objext "* ) ;;
19201  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19202 ;;
19203esac
19204
19205fi
19206
19207
19208	if test "$ac_cv_func_arc4random" = "no"; then
19209		case " $LIBOBJS " in
19210  *" explicit_bzero.$ac_objext "* ) ;;
19211  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19212 ;;
19213esac
19214
19215		case " $LIBOBJS " in
19216  *" arc4_lock.$ac_objext "* ) ;;
19217  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19218 ;;
19219esac
19220
19221		for ac_func in getentropy
19222do :
19223  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19224if test "x$ac_cv_func_getentropy" = xyes; then :
19225  cat >>confdefs.h <<_ACEOF
19226#define HAVE_GETENTROPY 1
19227_ACEOF
19228
19229else
19230
19231		    if test "$USE_WINSOCK" = 1; then
19232			case " $LIBOBJS " in
19233  *" getentropy_win.$ac_objext "* ) ;;
19234  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19235 ;;
19236esac
19237
19238		    else
19239			case `uname` in
19240			Darwin)
19241				case " $LIBOBJS " in
19242  *" getentropy_osx.$ac_objext "* ) ;;
19243  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19244 ;;
19245esac
19246
19247			;;
19248			SunOS)
19249				case " $LIBOBJS " in
19250  *" getentropy_solaris.$ac_objext "* ) ;;
19251  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19252 ;;
19253esac
19254
19255				for ac_header in sys/sha2.h
19256do :
19257  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19258"
19259if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19260  cat >>confdefs.h <<_ACEOF
19261#define HAVE_SYS_SHA2_H 1
19262_ACEOF
19263
19264else
19265
19266					for ac_func in SHA512_Update
19267do :
19268  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19269if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19270  cat >>confdefs.h <<_ACEOF
19271#define HAVE_SHA512_UPDATE 1
19272_ACEOF
19273
19274else
19275
19276						case " $LIBOBJS " in
19277  *" sha512.$ac_objext "* ) ;;
19278  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19279 ;;
19280esac
19281
19282
19283fi
19284done
19285
19286
19287fi
19288
19289done
19290
19291				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19292					# this lib needed for sha2 on solaris
19293					LIBS="$LIBS -lmd"
19294				fi
19295				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19296$as_echo_n "checking for library containing clock_gettime... " >&6; }
19297if ${ac_cv_search_clock_gettime+:} false; then :
19298  $as_echo_n "(cached) " >&6
19299else
19300  ac_func_search_save_LIBS=$LIBS
19301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h.  */
19303
19304/* Override any GCC internal prototype to avoid an error.
19305   Use char because int might match the return type of a GCC
19306   builtin and then its argument prototype would still apply.  */
19307#ifdef __cplusplus
19308extern "C"
19309#endif
19310char clock_gettime ();
19311int
19312main ()
19313{
19314return clock_gettime ();
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319for ac_lib in '' rt; do
19320  if test -z "$ac_lib"; then
19321    ac_res="none required"
19322  else
19323    ac_res=-l$ac_lib
19324    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19325  fi
19326  if ac_fn_c_try_link "$LINENO"; then :
19327  ac_cv_search_clock_gettime=$ac_res
19328fi
19329rm -f core conftest.err conftest.$ac_objext \
19330    conftest$ac_exeext
19331  if ${ac_cv_search_clock_gettime+:} false; then :
19332  break
19333fi
19334done
19335if ${ac_cv_search_clock_gettime+:} false; then :
19336
19337else
19338  ac_cv_search_clock_gettime=no
19339fi
19340rm conftest.$ac_ext
19341LIBS=$ac_func_search_save_LIBS
19342fi
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19344$as_echo "$ac_cv_search_clock_gettime" >&6; }
19345ac_res=$ac_cv_search_clock_gettime
19346if test "$ac_res" != no; then :
19347  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19348
19349fi
19350
19351			;;
19352			Linux|*)
19353				case " $LIBOBJS " in
19354  *" getentropy_linux.$ac_objext "* ) ;;
19355  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19356 ;;
19357esac
19358
19359				for ac_func in SHA512_Update
19360do :
19361  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19362if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19363  cat >>confdefs.h <<_ACEOF
19364#define HAVE_SHA512_UPDATE 1
19365_ACEOF
19366
19367else
19368
19369
19370$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19371
19372					case " $LIBOBJS " in
19373  *" sha512.$ac_objext "* ) ;;
19374  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19375 ;;
19376esac
19377
19378
19379fi
19380done
19381
19382				for ac_header in sys/sysctl.h
19383do :
19384  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19385"
19386if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19387  cat >>confdefs.h <<_ACEOF
19388#define HAVE_SYS_SYSCTL_H 1
19389_ACEOF
19390
19391fi
19392
19393done
19394
19395				for ac_func in getauxval
19396do :
19397  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19398if test "x$ac_cv_func_getauxval" = xyes; then :
19399  cat >>confdefs.h <<_ACEOF
19400#define HAVE_GETAUXVAL 1
19401_ACEOF
19402
19403fi
19404done
19405
19406				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19407$as_echo_n "checking for library containing clock_gettime... " >&6; }
19408if ${ac_cv_search_clock_gettime+:} false; then :
19409  $as_echo_n "(cached) " >&6
19410else
19411  ac_func_search_save_LIBS=$LIBS
19412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413/* end confdefs.h.  */
19414
19415/* Override any GCC internal prototype to avoid an error.
19416   Use char because int might match the return type of a GCC
19417   builtin and then its argument prototype would still apply.  */
19418#ifdef __cplusplus
19419extern "C"
19420#endif
19421char clock_gettime ();
19422int
19423main ()
19424{
19425return clock_gettime ();
19426  ;
19427  return 0;
19428}
19429_ACEOF
19430for ac_lib in '' rt; do
19431  if test -z "$ac_lib"; then
19432    ac_res="none required"
19433  else
19434    ac_res=-l$ac_lib
19435    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19436  fi
19437  if ac_fn_c_try_link "$LINENO"; then :
19438  ac_cv_search_clock_gettime=$ac_res
19439fi
19440rm -f core conftest.err conftest.$ac_objext \
19441    conftest$ac_exeext
19442  if ${ac_cv_search_clock_gettime+:} false; then :
19443  break
19444fi
19445done
19446if ${ac_cv_search_clock_gettime+:} false; then :
19447
19448else
19449  ac_cv_search_clock_gettime=no
19450fi
19451rm conftest.$ac_ext
19452LIBS=$ac_func_search_save_LIBS
19453fi
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19455$as_echo "$ac_cv_search_clock_gettime" >&6; }
19456ac_res=$ac_cv_search_clock_gettime
19457if test "$ac_res" != no; then :
19458  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19459
19460fi
19461
19462			;;
19463			esac
19464		    fi
19465
19466fi
19467done
19468
19469	fi
19470fi
19471LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
19472
19473ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
19474if test "x$ac_cv_func_ctime_r" = xyes; then :
19475  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
19476
19477else
19478  case " $LIBOBJS " in
19479  *" ctime_r.$ac_objext "* ) ;;
19480  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
19481 ;;
19482esac
19483
19484fi
19485
19486
19487ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
19488if test "x$ac_cv_func_strsep" = xyes; then :
19489  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
19490
19491else
19492  case " $LIBOBJS " in
19493  *" strsep.$ac_objext "* ) ;;
19494  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
19495 ;;
19496esac
19497
19498fi
19499
19500
19501
19502# Check whether --enable-allsymbols was given.
19503if test "${enable_allsymbols+set}" = set; then :
19504  enableval=$enable_allsymbols;
19505fi
19506
19507case "$enable_allsymbols" in
19508	yes)
19509	COMMON_OBJ_ALL_SYMBOLS=""
19510	UBSYMS=""
19511	EXTRALINK="-L. -L.libs -lunbound"
19512
19513$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
19514
19515	;;
19516	no|*)
19517	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
19518	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
19519	EXTRALINK=""
19520	;;
19521esac
19522
19523
19524
19525if test x_$enable_lock_checks = x_yes; then
19526	UBSYMS="-export-symbols clubsyms.def"
19527	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
19528	echo lock_protect >> clubsyms.def
19529	echo lock_unprotect >> clubsyms.def
19530	echo lock_get_mem >> clubsyms.def
19531	echo checklock_start >> clubsyms.def
19532	echo checklock_stop >> clubsyms.def
19533	echo checklock_lock >> clubsyms.def
19534	echo checklock_unlock >> clubsyms.def
19535	echo checklock_init >> clubsyms.def
19536	echo checklock_thrcreate >> clubsyms.def
19537	echo checklock_thrjoin >> clubsyms.def
19538fi
19539
19540# check for dnstap if requested
19541
19542  # Check whether --enable-dnstap was given.
19543if test "${enable_dnstap+set}" = set; then :
19544  enableval=$enable_dnstap; opt_dnstap=$enableval
19545else
19546  opt_dnstap=no
19547fi
19548
19549
19550
19551# Check whether --with-dnstap-socket-path was given.
19552if test "${with_dnstap_socket_path+set}" = set; then :
19553  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
19554else
19555  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
19556fi
19557
19558
19559  if test "x$opt_dnstap" != "xno"; then
19560    # Extract the first word of "protoc-c", so it can be a program name with args.
19561set dummy protoc-c; ac_word=$2
19562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19563$as_echo_n "checking for $ac_word... " >&6; }
19564if ${ac_cv_path_PROTOC_C+:} false; then :
19565  $as_echo_n "(cached) " >&6
19566else
19567  case $PROTOC_C in
19568  [\\/]* | ?:[\\/]*)
19569  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
19570  ;;
19571  *)
19572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19573for as_dir in $PATH
19574do
19575  IFS=$as_save_IFS
19576  test -z "$as_dir" && as_dir=.
19577    for ac_exec_ext in '' $ac_executable_extensions; do
19578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19579    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
19580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19581    break 2
19582  fi
19583done
19584  done
19585IFS=$as_save_IFS
19586
19587  ;;
19588esac
19589fi
19590PROTOC_C=$ac_cv_path_PROTOC_C
19591if test -n "$PROTOC_C"; then
19592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
19593$as_echo "$PROTOC_C" >&6; }
19594else
19595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596$as_echo "no" >&6; }
19597fi
19598
19599
19600    if test -z "$PROTOC_C"; then
19601      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
19602    fi
19603
19604# Check whether --with-protobuf-c was given.
19605if test "${with_protobuf_c+set}" = set; then :
19606  withval=$with_protobuf_c;
19607	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19608	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
19609	    CFLAGS="$CFLAGS -I$withval/include/google"
19610	  else
19611	    CFLAGS="$CFLAGS -I$withval/include"
19612	  fi
19613	  LDFLAGS="$LDFLAGS -L$withval/lib"
19614
19615else
19616
19617	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19618	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
19619	    CFLAGS="$CFLAGS -I/usr/include/google"
19620	  else
19621	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
19622	      CFLAGS="$CFLAGS -I/usr/local/include/google"
19623	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
19624	    fi
19625	  fi
19626
19627fi
19628
19629
19630# Check whether --with-libfstrm was given.
19631if test "${with_libfstrm+set}" = set; then :
19632  withval=$with_libfstrm;
19633	CFLAGS="$CFLAGS -I$withval/include"
19634	LDFLAGS="$LDFLAGS -L$withval/lib"
19635
19636fi
19637
19638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
19639$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
19640if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19641  $as_echo_n "(cached) " >&6
19642else
19643  ac_func_search_save_LIBS=$LIBS
19644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645/* end confdefs.h.  */
19646
19647/* Override any GCC internal prototype to avoid an error.
19648   Use char because int might match the return type of a GCC
19649   builtin and then its argument prototype would still apply.  */
19650#ifdef __cplusplus
19651extern "C"
19652#endif
19653char fstrm_iothr_init ();
19654int
19655main ()
19656{
19657return fstrm_iothr_init ();
19658  ;
19659  return 0;
19660}
19661_ACEOF
19662for ac_lib in '' fstrm; do
19663  if test -z "$ac_lib"; then
19664    ac_res="none required"
19665  else
19666    ac_res=-l$ac_lib
19667    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19668  fi
19669  if ac_fn_c_try_link "$LINENO"; then :
19670  ac_cv_search_fstrm_iothr_init=$ac_res
19671fi
19672rm -f core conftest.err conftest.$ac_objext \
19673    conftest$ac_exeext
19674  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19675  break
19676fi
19677done
19678if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19679
19680else
19681  ac_cv_search_fstrm_iothr_init=no
19682fi
19683rm conftest.$ac_ext
19684LIBS=$ac_func_search_save_LIBS
19685fi
19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
19687$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
19688ac_res=$ac_cv_search_fstrm_iothr_init
19689if test "$ac_res" != no; then :
19690  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19691
19692else
19693  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
19694fi
19695
19696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
19697$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
19698if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19699  $as_echo_n "(cached) " >&6
19700else
19701  ac_func_search_save_LIBS=$LIBS
19702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703/* end confdefs.h.  */
19704
19705/* Override any GCC internal prototype to avoid an error.
19706   Use char because int might match the return type of a GCC
19707   builtin and then its argument prototype would still apply.  */
19708#ifdef __cplusplus
19709extern "C"
19710#endif
19711char protobuf_c_message_pack ();
19712int
19713main ()
19714{
19715return protobuf_c_message_pack ();
19716  ;
19717  return 0;
19718}
19719_ACEOF
19720for ac_lib in '' protobuf-c; do
19721  if test -z "$ac_lib"; then
19722    ac_res="none required"
19723  else
19724    ac_res=-l$ac_lib
19725    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19726  fi
19727  if ac_fn_c_try_link "$LINENO"; then :
19728  ac_cv_search_protobuf_c_message_pack=$ac_res
19729fi
19730rm -f core conftest.err conftest.$ac_objext \
19731    conftest$ac_exeext
19732  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19733  break
19734fi
19735done
19736if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19737
19738else
19739  ac_cv_search_protobuf_c_message_pack=no
19740fi
19741rm conftest.$ac_ext
19742LIBS=$ac_func_search_save_LIBS
19743fi
19744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
19745$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
19746ac_res=$ac_cv_search_protobuf_c_message_pack
19747if test "$ac_res" != no; then :
19748  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19749
19750else
19751  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
19752fi
19753
19754
19755
19756$as_echo "#define USE_DNSTAP 1" >>confdefs.h
19757
19758        ENABLE_DNSTAP=1
19759
19760
19761
19762        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
19763
19764
19765cat >>confdefs.h <<_ACEOF
19766#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
19767_ACEOF
19768
19769
19770        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
19771
19772        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
19773
19774
19775  else
19776
19777        ENABLE_DNSTAP=0
19778
19779
19780
19781  fi
19782
19783
19784# check for cachedb if requested
19785# Check whether --enable-cachedb was given.
19786if test "${enable_cachedb+set}" = set; then :
19787  enableval=$enable_cachedb;
19788fi
19789
19790case "$enable_cachedb" in
19791    yes)
19792
19793$as_echo "#define USE_CACHEDB 1" >>confdefs.h
19794
19795    	;;
19796    no|*)
19797    	# nothing
19798    	;;
19799esac
19800
19801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
19802$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
19803# on openBSD, the implicit rule make $< work.
19804# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
19805# gmake works.
19806cat >conftest.make <<EOF
19807all:	conftest.lo
19808
19809conftest.lo foo.lo bla.lo:
19810	if test -f "\$<"; then touch \$@; fi
19811
19812.SUFFIXES: .lo
19813.c.lo:
19814	if test -f "\$<"; then touch \$@; fi
19815
19816conftest.lo:        conftest.dir/conftest.c
19817EOF
19818mkdir conftest.dir
19819touch conftest.dir/conftest.c
19820rm -f conftest.lo conftest.c
19821${MAKE:-make} -f conftest.make >/dev/null
19822rm -f conftest.make conftest.c conftest.dir/conftest.c
19823rm -rf conftest.dir
19824if test ! -f conftest.lo; then
19825	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826$as_echo "no" >&6; }
19827	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
19828	SOURCEFILE='`cat .source`'
19829else
19830	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19831$as_echo "yes" >&6; }
19832	SOURCEDETERMINE=':'
19833	SOURCEFILE='$<'
19834fi
19835rm -f conftest.lo
19836
19837
19838
19839# see if we want to build the library or everything
19840ALLTARGET="alltargets"
19841INSTALLTARGET="install-all"
19842
19843# Check whether --with-libunbound-only was given.
19844if test "${with_libunbound_only+set}" = set; then :
19845  withval=$with_libunbound_only;
19846	if test "$withval" = "yes"; then
19847		ALLTARGET="lib"
19848		INSTALLTARGET="install-lib"
19849	fi
19850
19851fi
19852
19853
19854
19855
19856
19857  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
19858$as_echo "$as_me: Stripping extension flags..." >&6;}
19859
19860  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
19861    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
19862
19863$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
19864
19865  fi
19866
19867
19868  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
19869    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
19870
19871$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
19872
19873  fi
19874
19875
19876  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
19877    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
19878
19879$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
19880
19881  fi
19882
19883
19884  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
19885    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
19886
19887$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
19888
19889  fi
19890
19891
19892  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
19893    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
19894
19895$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
19896
19897  fi
19898
19899
19900  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
19901    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
19902
19903$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
19904
19905  fi
19906
19907
19908  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
19909    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
19910
19911$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
19912
19913  fi
19914
19915
19916  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
19917    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
19918
19919$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
19920
19921  fi
19922
19923
19924  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
19925    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
19926
19927$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
19928
19929  fi
19930
19931
19932LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
19933
19934
19935cat >>confdefs.h <<_ACEOF
19936#define MAXSYSLOGMSGLEN 10240
19937_ACEOF
19938
19939
19940
19941
19942version=1.5.10
19943
19944date=`date +'%b %e, %Y'`
19945
19946
19947ac_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 contrib/libunbound.pc"
19948
19949ac_config_headers="$ac_config_headers config.h"
19950
19951cat >confcache <<\_ACEOF
19952# This file is a shell script that caches the results of configure
19953# tests run on this system so they can be shared between configure
19954# scripts and configure runs, see configure's option --config-cache.
19955# It is not useful on other systems.  If it contains results you don't
19956# want to keep, you may remove or edit it.
19957#
19958# config.status only pays attention to the cache file if you give it
19959# the --recheck option to rerun configure.
19960#
19961# `ac_cv_env_foo' variables (set or unset) will be overridden when
19962# loading this file, other *unset* `ac_cv_foo' will be assigned the
19963# following values.
19964
19965_ACEOF
19966
19967# The following way of writing the cache mishandles newlines in values,
19968# but we know of no workaround that is simple, portable, and efficient.
19969# So, we kill variables containing newlines.
19970# Ultrix sh set writes to stderr and can't be redirected directly,
19971# and sets the high bit in the cache file unless we assign to the vars.
19972(
19973  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19974    eval ac_val=\$$ac_var
19975    case $ac_val in #(
19976    *${as_nl}*)
19977      case $ac_var in #(
19978      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19980      esac
19981      case $ac_var in #(
19982      _ | IFS | as_nl) ;; #(
19983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19984      *) { eval $ac_var=; unset $ac_var;} ;;
19985      esac ;;
19986    esac
19987  done
19988
19989  (set) 2>&1 |
19990    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19991    *${as_nl}ac_space=\ *)
19992      # `set' does not quote correctly, so add quotes: double-quote
19993      # substitution turns \\\\ into \\, and sed turns \\ into \.
19994      sed -n \
19995	"s/'/'\\\\''/g;
19996	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19997      ;; #(
19998    *)
19999      # `set' quotes correctly as required by POSIX, so do not add quotes.
20000      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20001      ;;
20002    esac |
20003    sort
20004) |
20005  sed '
20006     /^ac_cv_env_/b end
20007     t clear
20008     :clear
20009     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20010     t end
20011     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20012     :end' >>confcache
20013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20014  if test -w "$cache_file"; then
20015    if test "x$cache_file" != "x/dev/null"; then
20016      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20017$as_echo "$as_me: updating cache $cache_file" >&6;}
20018      if test ! -f "$cache_file" || test -h "$cache_file"; then
20019	cat confcache >"$cache_file"
20020      else
20021        case $cache_file in #(
20022        */* | ?:*)
20023	  mv -f confcache "$cache_file"$$ &&
20024	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20025        *)
20026	  mv -f confcache "$cache_file" ;;
20027	esac
20028      fi
20029    fi
20030  else
20031    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20032$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20033  fi
20034fi
20035rm -f confcache
20036
20037test "x$prefix" = xNONE && prefix=$ac_default_prefix
20038# Let make expand exec_prefix.
20039test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20040
20041DEFS=-DHAVE_CONFIG_H
20042
20043ac_libobjs=
20044ac_ltlibobjs=
20045U=
20046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20047  # 1. Remove the extension, and $U if already installed.
20048  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20049  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20050  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20051  #    will be set to the directory where LIBOBJS objects are built.
20052  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20053  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20054done
20055LIBOBJS=$ac_libobjs
20056
20057LTLIBOBJS=$ac_ltlibobjs
20058
20059
20060
20061: "${CONFIG_STATUS=./config.status}"
20062ac_write_fail=0
20063ac_clean_files_save=$ac_clean_files
20064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20066$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20067as_write_fail=0
20068cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20069#! $SHELL
20070# Generated by $as_me.
20071# Run this file to recreate the current configuration.
20072# Compiler output produced by configure, useful for debugging
20073# configure, is in config.log if it exists.
20074
20075debug=false
20076ac_cs_recheck=false
20077ac_cs_silent=false
20078
20079SHELL=\${CONFIG_SHELL-$SHELL}
20080export SHELL
20081_ASEOF
20082cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20083## -------------------- ##
20084## M4sh Initialization. ##
20085## -------------------- ##
20086
20087# Be more Bourne compatible
20088DUALCASE=1; export DUALCASE # for MKS sh
20089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20090  emulate sh
20091  NULLCMD=:
20092  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20093  # is contrary to our usage.  Disable this feature.
20094  alias -g '${1+"$@"}'='"$@"'
20095  setopt NO_GLOB_SUBST
20096else
20097  case `(set -o) 2>/dev/null` in #(
20098  *posix*) :
20099    set -o posix ;; #(
20100  *) :
20101     ;;
20102esac
20103fi
20104
20105
20106as_nl='
20107'
20108export as_nl
20109# Printing a long string crashes Solaris 7 /usr/bin/printf.
20110as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20113# Prefer a ksh shell builtin over an external printf program on Solaris,
20114# but without wasting forks for bash or zsh.
20115if test -z "$BASH_VERSION$ZSH_VERSION" \
20116    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20117  as_echo='print -r --'
20118  as_echo_n='print -rn --'
20119elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20120  as_echo='printf %s\n'
20121  as_echo_n='printf %s'
20122else
20123  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20124    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20125    as_echo_n='/usr/ucb/echo -n'
20126  else
20127    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20128    as_echo_n_body='eval
20129      arg=$1;
20130      case $arg in #(
20131      *"$as_nl"*)
20132	expr "X$arg" : "X\\(.*\\)$as_nl";
20133	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20134      esac;
20135      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20136    '
20137    export as_echo_n_body
20138    as_echo_n='sh -c $as_echo_n_body as_echo'
20139  fi
20140  export as_echo_body
20141  as_echo='sh -c $as_echo_body as_echo'
20142fi
20143
20144# The user is always right.
20145if test "${PATH_SEPARATOR+set}" != set; then
20146  PATH_SEPARATOR=:
20147  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20148    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20149      PATH_SEPARATOR=';'
20150  }
20151fi
20152
20153
20154# IFS
20155# We need space, tab and new line, in precisely that order.  Quoting is
20156# there to prevent editors from complaining about space-tab.
20157# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20158# splitting by setting IFS to empty value.)
20159IFS=" ""	$as_nl"
20160
20161# Find who we are.  Look in the path if we contain no directory separator.
20162as_myself=
20163case $0 in #((
20164  *[\\/]* ) as_myself=$0 ;;
20165  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166for as_dir in $PATH
20167do
20168  IFS=$as_save_IFS
20169  test -z "$as_dir" && as_dir=.
20170    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20171  done
20172IFS=$as_save_IFS
20173
20174     ;;
20175esac
20176# We did not find ourselves, most probably we were run as `sh COMMAND'
20177# in which case we are not to be found in the path.
20178if test "x$as_myself" = x; then
20179  as_myself=$0
20180fi
20181if test ! -f "$as_myself"; then
20182  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20183  exit 1
20184fi
20185
20186# Unset variables that we do not need and which cause bugs (e.g. in
20187# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20188# suppresses any "Segmentation fault" message there.  '((' could
20189# trigger a bug in pdksh 5.2.14.
20190for as_var in BASH_ENV ENV MAIL MAILPATH
20191do eval test x\${$as_var+set} = xset \
20192  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20193done
20194PS1='$ '
20195PS2='> '
20196PS4='+ '
20197
20198# NLS nuisances.
20199LC_ALL=C
20200export LC_ALL
20201LANGUAGE=C
20202export LANGUAGE
20203
20204# CDPATH.
20205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20206
20207
20208# as_fn_error STATUS ERROR [LINENO LOG_FD]
20209# ----------------------------------------
20210# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20211# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20212# script with STATUS, using 1 if that was 0.
20213as_fn_error ()
20214{
20215  as_status=$1; test $as_status -eq 0 && as_status=1
20216  if test "$4"; then
20217    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20218    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20219  fi
20220  $as_echo "$as_me: error: $2" >&2
20221  as_fn_exit $as_status
20222} # as_fn_error
20223
20224
20225# as_fn_set_status STATUS
20226# -----------------------
20227# Set $? to STATUS, without forking.
20228as_fn_set_status ()
20229{
20230  return $1
20231} # as_fn_set_status
20232
20233# as_fn_exit STATUS
20234# -----------------
20235# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20236as_fn_exit ()
20237{
20238  set +e
20239  as_fn_set_status $1
20240  exit $1
20241} # as_fn_exit
20242
20243# as_fn_unset VAR
20244# ---------------
20245# Portably unset VAR.
20246as_fn_unset ()
20247{
20248  { eval $1=; unset $1;}
20249}
20250as_unset=as_fn_unset
20251# as_fn_append VAR VALUE
20252# ----------------------
20253# Append the text in VALUE to the end of the definition contained in VAR. Take
20254# advantage of any shell optimizations that allow amortized linear growth over
20255# repeated appends, instead of the typical quadratic growth present in naive
20256# implementations.
20257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20258  eval 'as_fn_append ()
20259  {
20260    eval $1+=\$2
20261  }'
20262else
20263  as_fn_append ()
20264  {
20265    eval $1=\$$1\$2
20266  }
20267fi # as_fn_append
20268
20269# as_fn_arith ARG...
20270# ------------------
20271# Perform arithmetic evaluation on the ARGs, and store the result in the
20272# global $as_val. Take advantage of shells that can avoid forks. The arguments
20273# must be portable across $(()) and expr.
20274if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20275  eval 'as_fn_arith ()
20276  {
20277    as_val=$(( $* ))
20278  }'
20279else
20280  as_fn_arith ()
20281  {
20282    as_val=`expr "$@" || test $? -eq 1`
20283  }
20284fi # as_fn_arith
20285
20286
20287if expr a : '\(a\)' >/dev/null 2>&1 &&
20288   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20289  as_expr=expr
20290else
20291  as_expr=false
20292fi
20293
20294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20295  as_basename=basename
20296else
20297  as_basename=false
20298fi
20299
20300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20301  as_dirname=dirname
20302else
20303  as_dirname=false
20304fi
20305
20306as_me=`$as_basename -- "$0" ||
20307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20308	 X"$0" : 'X\(//\)$' \| \
20309	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20310$as_echo X/"$0" |
20311    sed '/^.*\/\([^/][^/]*\)\/*$/{
20312	    s//\1/
20313	    q
20314	  }
20315	  /^X\/\(\/\/\)$/{
20316	    s//\1/
20317	    q
20318	  }
20319	  /^X\/\(\/\).*/{
20320	    s//\1/
20321	    q
20322	  }
20323	  s/.*/./; q'`
20324
20325# Avoid depending upon Character Ranges.
20326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20329as_cr_digits='0123456789'
20330as_cr_alnum=$as_cr_Letters$as_cr_digits
20331
20332ECHO_C= ECHO_N= ECHO_T=
20333case `echo -n x` in #(((((
20334-n*)
20335  case `echo 'xy\c'` in
20336  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20337  xy)  ECHO_C='\c';;
20338  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20339       ECHO_T='	';;
20340  esac;;
20341*)
20342  ECHO_N='-n';;
20343esac
20344
20345rm -f conf$$ conf$$.exe conf$$.file
20346if test -d conf$$.dir; then
20347  rm -f conf$$.dir/conf$$.file
20348else
20349  rm -f conf$$.dir
20350  mkdir conf$$.dir 2>/dev/null
20351fi
20352if (echo >conf$$.file) 2>/dev/null; then
20353  if ln -s conf$$.file conf$$ 2>/dev/null; then
20354    as_ln_s='ln -s'
20355    # ... but there are two gotchas:
20356    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20357    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20358    # In both cases, we have to default to `cp -pR'.
20359    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20360      as_ln_s='cp -pR'
20361  elif ln conf$$.file conf$$ 2>/dev/null; then
20362    as_ln_s=ln
20363  else
20364    as_ln_s='cp -pR'
20365  fi
20366else
20367  as_ln_s='cp -pR'
20368fi
20369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20370rmdir conf$$.dir 2>/dev/null
20371
20372
20373# as_fn_mkdir_p
20374# -------------
20375# Create "$as_dir" as a directory, including parents if necessary.
20376as_fn_mkdir_p ()
20377{
20378
20379  case $as_dir in #(
20380  -*) as_dir=./$as_dir;;
20381  esac
20382  test -d "$as_dir" || eval $as_mkdir_p || {
20383    as_dirs=
20384    while :; do
20385      case $as_dir in #(
20386      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20387      *) as_qdir=$as_dir;;
20388      esac
20389      as_dirs="'$as_qdir' $as_dirs"
20390      as_dir=`$as_dirname -- "$as_dir" ||
20391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20392	 X"$as_dir" : 'X\(//\)[^/]' \| \
20393	 X"$as_dir" : 'X\(//\)$' \| \
20394	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20395$as_echo X"$as_dir" |
20396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20397	    s//\1/
20398	    q
20399	  }
20400	  /^X\(\/\/\)[^/].*/{
20401	    s//\1/
20402	    q
20403	  }
20404	  /^X\(\/\/\)$/{
20405	    s//\1/
20406	    q
20407	  }
20408	  /^X\(\/\).*/{
20409	    s//\1/
20410	    q
20411	  }
20412	  s/.*/./; q'`
20413      test -d "$as_dir" && break
20414    done
20415    test -z "$as_dirs" || eval "mkdir $as_dirs"
20416  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20417
20418
20419} # as_fn_mkdir_p
20420if mkdir -p . 2>/dev/null; then
20421  as_mkdir_p='mkdir -p "$as_dir"'
20422else
20423  test -d ./-p && rmdir ./-p
20424  as_mkdir_p=false
20425fi
20426
20427
20428# as_fn_executable_p FILE
20429# -----------------------
20430# Test if FILE is an executable regular file.
20431as_fn_executable_p ()
20432{
20433  test -f "$1" && test -x "$1"
20434} # as_fn_executable_p
20435as_test_x='test -x'
20436as_executable_p=as_fn_executable_p
20437
20438# Sed expression to map a string onto a valid CPP name.
20439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20440
20441# Sed expression to map a string onto a valid variable name.
20442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20443
20444
20445exec 6>&1
20446## ----------------------------------- ##
20447## Main body of $CONFIG_STATUS script. ##
20448## ----------------------------------- ##
20449_ASEOF
20450test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20451
20452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20453# Save the log message, to keep $0 and so on meaningful, and to
20454# report actual input values of CONFIG_FILES etc. instead of their
20455# values after options handling.
20456ac_log="
20457This file was extended by unbound $as_me 1.5.10, which was
20458generated by GNU Autoconf 2.69.  Invocation command line was
20459
20460  CONFIG_FILES    = $CONFIG_FILES
20461  CONFIG_HEADERS  = $CONFIG_HEADERS
20462  CONFIG_LINKS    = $CONFIG_LINKS
20463  CONFIG_COMMANDS = $CONFIG_COMMANDS
20464  $ $0 $@
20465
20466on `(hostname || uname -n) 2>/dev/null | sed 1q`
20467"
20468
20469_ACEOF
20470
20471case $ac_config_files in *"
20472"*) set x $ac_config_files; shift; ac_config_files=$*;;
20473esac
20474
20475case $ac_config_headers in *"
20476"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20477esac
20478
20479
20480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481# Files that config.status was made for.
20482config_files="$ac_config_files"
20483config_headers="$ac_config_headers"
20484config_commands="$ac_config_commands"
20485
20486_ACEOF
20487
20488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20489ac_cs_usage="\
20490\`$as_me' instantiates files and other configuration actions
20491from templates according to the current configuration.  Unless the files
20492and actions are specified as TAGs, all are instantiated by default.
20493
20494Usage: $0 [OPTION]... [TAG]...
20495
20496  -h, --help       print this help, then exit
20497  -V, --version    print version number and configuration settings, then exit
20498      --config     print configuration, then exit
20499  -q, --quiet, --silent
20500                   do not print progress messages
20501  -d, --debug      don't remove temporary files
20502      --recheck    update $as_me by reconfiguring in the same conditions
20503      --file=FILE[:TEMPLATE]
20504                   instantiate the configuration file FILE
20505      --header=FILE[:TEMPLATE]
20506                   instantiate the configuration header FILE
20507
20508Configuration files:
20509$config_files
20510
20511Configuration headers:
20512$config_headers
20513
20514Configuration commands:
20515$config_commands
20516
20517Report bugs to <unbound-bugs@nlnetlabs.nl>."
20518
20519_ACEOF
20520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20521ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20522ac_cs_version="\\
20523unbound config.status 1.5.10
20524configured by $0, generated by GNU Autoconf 2.69,
20525  with options \\"\$ac_cs_config\\"
20526
20527Copyright (C) 2012 Free Software Foundation, Inc.
20528This config.status script is free software; the Free Software Foundation
20529gives unlimited permission to copy, distribute and modify it."
20530
20531ac_pwd='$ac_pwd'
20532srcdir='$srcdir'
20533AWK='$AWK'
20534test -n "\$AWK" || AWK=awk
20535_ACEOF
20536
20537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20538# The default lists apply if the user does not specify any file.
20539ac_need_defaults=:
20540while test $# != 0
20541do
20542  case $1 in
20543  --*=?*)
20544    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20545    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20546    ac_shift=:
20547    ;;
20548  --*=)
20549    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20550    ac_optarg=
20551    ac_shift=:
20552    ;;
20553  *)
20554    ac_option=$1
20555    ac_optarg=$2
20556    ac_shift=shift
20557    ;;
20558  esac
20559
20560  case $ac_option in
20561  # Handling of the options.
20562  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20563    ac_cs_recheck=: ;;
20564  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20565    $as_echo "$ac_cs_version"; exit ;;
20566  --config | --confi | --conf | --con | --co | --c )
20567    $as_echo "$ac_cs_config"; exit ;;
20568  --debug | --debu | --deb | --de | --d | -d )
20569    debug=: ;;
20570  --file | --fil | --fi | --f )
20571    $ac_shift
20572    case $ac_optarg in
20573    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20574    '') as_fn_error $? "missing file argument" ;;
20575    esac
20576    as_fn_append CONFIG_FILES " '$ac_optarg'"
20577    ac_need_defaults=false;;
20578  --header | --heade | --head | --hea )
20579    $ac_shift
20580    case $ac_optarg in
20581    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20582    esac
20583    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20584    ac_need_defaults=false;;
20585  --he | --h)
20586    # Conflict between --help and --header
20587    as_fn_error $? "ambiguous option: \`$1'
20588Try \`$0 --help' for more information.";;
20589  --help | --hel | -h )
20590    $as_echo "$ac_cs_usage"; exit ;;
20591  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20592  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20593    ac_cs_silent=: ;;
20594
20595  # This is an error.
20596  -*) as_fn_error $? "unrecognized option: \`$1'
20597Try \`$0 --help' for more information." ;;
20598
20599  *) as_fn_append ac_config_targets " $1"
20600     ac_need_defaults=false ;;
20601
20602  esac
20603  shift
20604done
20605
20606ac_configure_extra_args=
20607
20608if $ac_cs_silent; then
20609  exec 6>/dev/null
20610  ac_configure_extra_args="$ac_configure_extra_args --silent"
20611fi
20612
20613_ACEOF
20614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20615if \$ac_cs_recheck; then
20616  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20617  shift
20618  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20619  CONFIG_SHELL='$SHELL'
20620  export CONFIG_SHELL
20621  exec "\$@"
20622fi
20623
20624_ACEOF
20625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20626exec 5>>config.log
20627{
20628  echo
20629  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20630## Running $as_me. ##
20631_ASBOX
20632  $as_echo "$ac_log"
20633} >&5
20634
20635_ACEOF
20636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20637#
20638# INIT-COMMANDS
20639#
20640
20641
20642# The HP-UX ksh and POSIX shell print the target directory to stdout
20643# if CDPATH is set.
20644(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20645
20646sed_quote_subst='$sed_quote_subst'
20647double_quote_subst='$double_quote_subst'
20648delay_variable_subst='$delay_variable_subst'
20649macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20650macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20651enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20652enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20653pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20654enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20655shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20656SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20657ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20658PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20659host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20660host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20661host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20662build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20663build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20664build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20665SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20666Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20667GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20668EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20669FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20670LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20671NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20672LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20673max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20674ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20675exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20676lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20677lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20678lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20679lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20680lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20681reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20682reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20683OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20684deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20685file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20686file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20687want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20688DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20689sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20690AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20691AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20692archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20693STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20694RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20695old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20696old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20697old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20698lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20699CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20700CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20701compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20702GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20703lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20704lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20705lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20706lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20707lt_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"`'
20708lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20709nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20710lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20711lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20712objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20713MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20714lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20715lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20716lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20717lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20718lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20719need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20720MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20721DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20722NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20723LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20724OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20725OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20726libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20727shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20728extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20729archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20730enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20731export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20732whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20733compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20734old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20735old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20736archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20737archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20738module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20739module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20740with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20741allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20742no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20743hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20744hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20745hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20746hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20747hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20748hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20749hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20750inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20751link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20752always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20753export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20754exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20755include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20756prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20757postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20758file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20759variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20760need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20761need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20762version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20763runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20764shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20765shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20766libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20767library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20768soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20769install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20770postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20771postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20772finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20773finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20774hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20775sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20776configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20777configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20778hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20779enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20780enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20781enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20782old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20783striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20784
20785LTCC='$LTCC'
20786LTCFLAGS='$LTCFLAGS'
20787compiler='$compiler_DEFAULT'
20788
20789# A function that is used when there is no print builtin or printf.
20790func_fallback_echo ()
20791{
20792  eval 'cat <<_LTECHO_EOF
20793\$1
20794_LTECHO_EOF'
20795}
20796
20797# Quote evaled strings.
20798for var in SHELL \
20799ECHO \
20800PATH_SEPARATOR \
20801SED \
20802GREP \
20803EGREP \
20804FGREP \
20805LD \
20806NM \
20807LN_S \
20808lt_SP2NL \
20809lt_NL2SP \
20810reload_flag \
20811OBJDUMP \
20812deplibs_check_method \
20813file_magic_cmd \
20814file_magic_glob \
20815want_nocaseglob \
20816DLLTOOL \
20817sharedlib_from_linklib_cmd \
20818AR \
20819AR_FLAGS \
20820archiver_list_spec \
20821STRIP \
20822RANLIB \
20823CC \
20824CFLAGS \
20825compiler \
20826lt_cv_sys_global_symbol_pipe \
20827lt_cv_sys_global_symbol_to_cdecl \
20828lt_cv_sys_global_symbol_to_import \
20829lt_cv_sys_global_symbol_to_c_name_address \
20830lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20831lt_cv_nm_interface \
20832nm_file_list_spec \
20833lt_cv_truncate_bin \
20834lt_prog_compiler_no_builtin_flag \
20835lt_prog_compiler_pic \
20836lt_prog_compiler_wl \
20837lt_prog_compiler_static \
20838lt_cv_prog_compiler_c_o \
20839need_locks \
20840MANIFEST_TOOL \
20841DSYMUTIL \
20842NMEDIT \
20843LIPO \
20844OTOOL \
20845OTOOL64 \
20846shrext_cmds \
20847export_dynamic_flag_spec \
20848whole_archive_flag_spec \
20849compiler_needs_object \
20850with_gnu_ld \
20851allow_undefined_flag \
20852no_undefined_flag \
20853hardcode_libdir_flag_spec \
20854hardcode_libdir_separator \
20855exclude_expsyms \
20856include_expsyms \
20857file_list_spec \
20858variables_saved_for_relink \
20859libname_spec \
20860library_names_spec \
20861soname_spec \
20862install_override_mode \
20863finish_eval \
20864old_striplib \
20865striplib; do
20866    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20867    *[\\\\\\\`\\"\\\$]*)
20868      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20869      ;;
20870    *)
20871      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20872      ;;
20873    esac
20874done
20875
20876# Double-quote double-evaled strings.
20877for var in reload_cmds \
20878old_postinstall_cmds \
20879old_postuninstall_cmds \
20880old_archive_cmds \
20881extract_expsyms_cmds \
20882old_archive_from_new_cmds \
20883old_archive_from_expsyms_cmds \
20884archive_cmds \
20885archive_expsym_cmds \
20886module_cmds \
20887module_expsym_cmds \
20888export_symbols_cmds \
20889prelink_cmds \
20890postlink_cmds \
20891postinstall_cmds \
20892postuninstall_cmds \
20893finish_cmds \
20894sys_lib_search_path_spec \
20895configure_time_dlsearch_path \
20896configure_time_lt_sys_library_path; do
20897    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20898    *[\\\\\\\`\\"\\\$]*)
20899      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20900      ;;
20901    *)
20902      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20903      ;;
20904    esac
20905done
20906
20907ac_aux_dir='$ac_aux_dir'
20908
20909# See if we are running on zsh, and set the options that allow our
20910# commands through without removal of \ escapes INIT.
20911if test -n "\${ZSH_VERSION+set}"; then
20912   setopt NO_GLOB_SUBST
20913fi
20914
20915
20916    PACKAGE='$PACKAGE'
20917    VERSION='$VERSION'
20918    RM='$RM'
20919    ofile='$ofile'
20920
20921
20922
20923
20924_ACEOF
20925
20926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20927
20928# Handling of arguments.
20929for ac_config_target in $ac_config_targets
20930do
20931  case $ac_config_target in
20932    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20933    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20934    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20935    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
20936    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
20937    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
20938    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
20939    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
20940    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
20941    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
20942    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
20943    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
20944    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
20945    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
20946    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20947
20948  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20949  esac
20950done
20951
20952
20953# If the user did not use the arguments to specify the items to instantiate,
20954# then the envvar interface is used.  Set only those that are not.
20955# We use the long form for the default assignment because of an extremely
20956# bizarre bug on SunOS 4.1.3.
20957if $ac_need_defaults; then
20958  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20959  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20960  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20961fi
20962
20963# Have a temporary directory for convenience.  Make it in the build tree
20964# simply because there is no reason against having it here, and in addition,
20965# creating and moving files from /tmp can sometimes cause problems.
20966# Hook for its removal unless debugging.
20967# Note that there is a small window in which the directory will not be cleaned:
20968# after its creation but before its name has been assigned to `$tmp'.
20969$debug ||
20970{
20971  tmp= ac_tmp=
20972  trap 'exit_status=$?
20973  : "${ac_tmp:=$tmp}"
20974  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20975' 0
20976  trap 'as_fn_exit 1' 1 2 13 15
20977}
20978# Create a (secure) tmp directory for tmp files.
20979
20980{
20981  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20982  test -d "$tmp"
20983}  ||
20984{
20985  tmp=./conf$$-$RANDOM
20986  (umask 077 && mkdir "$tmp")
20987} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20988ac_tmp=$tmp
20989
20990# Set up the scripts for CONFIG_FILES section.
20991# No need to generate them if there are no CONFIG_FILES.
20992# This happens for instance with `./config.status config.h'.
20993if test -n "$CONFIG_FILES"; then
20994
20995
20996ac_cr=`echo X | tr X '\015'`
20997# On cygwin, bash can eat \r inside `` if the user requested igncr.
20998# But we know of no other shell where ac_cr would be empty at this
20999# point, so we can use a bashism as a fallback.
21000if test "x$ac_cr" = x; then
21001  eval ac_cr=\$\'\\r\'
21002fi
21003ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21004if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21005  ac_cs_awk_cr='\\r'
21006else
21007  ac_cs_awk_cr=$ac_cr
21008fi
21009
21010echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21011_ACEOF
21012
21013
21014{
21015  echo "cat >conf$$subs.awk <<_ACEOF" &&
21016  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21017  echo "_ACEOF"
21018} >conf$$subs.sh ||
21019  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21020ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21021ac_delim='%!_!# '
21022for ac_last_try in false false false false false :; do
21023  . ./conf$$subs.sh ||
21024    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21025
21026  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21027  if test $ac_delim_n = $ac_delim_num; then
21028    break
21029  elif $ac_last_try; then
21030    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21031  else
21032    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21033  fi
21034done
21035rm -f conf$$subs.sh
21036
21037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21038cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21039_ACEOF
21040sed -n '
21041h
21042s/^/S["/; s/!.*/"]=/
21043p
21044g
21045s/^[^!]*!//
21046:repl
21047t repl
21048s/'"$ac_delim"'$//
21049t delim
21050:nl
21051h
21052s/\(.\{148\}\)..*/\1/
21053t more1
21054s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21055p
21056n
21057b repl
21058:more1
21059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21060p
21061g
21062s/.\{148\}//
21063t nl
21064:delim
21065h
21066s/\(.\{148\}\)..*/\1/
21067t more2
21068s/["\\]/\\&/g; s/^/"/; s/$/"/
21069p
21070b
21071:more2
21072s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21073p
21074g
21075s/.\{148\}//
21076t delim
21077' <conf$$subs.awk | sed '
21078/^[^""]/{
21079  N
21080  s/\n//
21081}
21082' >>$CONFIG_STATUS || ac_write_fail=1
21083rm -f conf$$subs.awk
21084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21085_ACAWK
21086cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21087  for (key in S) S_is_set[key] = 1
21088  FS = ""
21089
21090}
21091{
21092  line = $ 0
21093  nfields = split(line, field, "@")
21094  substed = 0
21095  len = length(field[1])
21096  for (i = 2; i < nfields; i++) {
21097    key = field[i]
21098    keylen = length(key)
21099    if (S_is_set[key]) {
21100      value = S[key]
21101      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21102      len += length(value) + length(field[++i])
21103      substed = 1
21104    } else
21105      len += 1 + keylen
21106  }
21107
21108  print line
21109}
21110
21111_ACAWK
21112_ACEOF
21113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21114if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21115  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21116else
21117  cat
21118fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21119  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21120_ACEOF
21121
21122# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21123# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21124# trailing colons and then remove the whole line if VPATH becomes empty
21125# (actually we leave an empty line to preserve line numbers).
21126if test "x$srcdir" = x.; then
21127  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21128h
21129s///
21130s/^/:/
21131s/[	 ]*$/:/
21132s/:\$(srcdir):/:/g
21133s/:\${srcdir}:/:/g
21134s/:@srcdir@:/:/g
21135s/^:*//
21136s/:*$//
21137x
21138s/\(=[	 ]*\).*/\1/
21139G
21140s/\n//
21141s/^[^=]*=[	 ]*$//
21142}'
21143fi
21144
21145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21146fi # test -n "$CONFIG_FILES"
21147
21148# Set up the scripts for CONFIG_HEADERS section.
21149# No need to generate them if there are no CONFIG_HEADERS.
21150# This happens for instance with `./config.status Makefile'.
21151if test -n "$CONFIG_HEADERS"; then
21152cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21153BEGIN {
21154_ACEOF
21155
21156# Transform confdefs.h into an awk script `defines.awk', embedded as
21157# here-document in config.status, that substitutes the proper values into
21158# config.h.in to produce config.h.
21159
21160# Create a delimiter string that does not exist in confdefs.h, to ease
21161# handling of long lines.
21162ac_delim='%!_!# '
21163for ac_last_try in false false :; do
21164  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21165  if test -z "$ac_tt"; then
21166    break
21167  elif $ac_last_try; then
21168    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21169  else
21170    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21171  fi
21172done
21173
21174# For the awk script, D is an array of macro values keyed by name,
21175# likewise P contains macro parameters if any.  Preserve backslash
21176# newline sequences.
21177
21178ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21179sed -n '
21180s/.\{148\}/&'"$ac_delim"'/g
21181t rset
21182:rset
21183s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21184t def
21185d
21186:def
21187s/\\$//
21188t bsnl
21189s/["\\]/\\&/g
21190s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21191D["\1"]=" \3"/p
21192s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21193d
21194:bsnl
21195s/["\\]/\\&/g
21196s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21197D["\1"]=" \3\\\\\\n"\\/p
21198t cont
21199s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21200t cont
21201d
21202:cont
21203n
21204s/.\{148\}/&'"$ac_delim"'/g
21205t clear
21206:clear
21207s/\\$//
21208t bsnlc
21209s/["\\]/\\&/g; s/^/"/; s/$/"/p
21210d
21211:bsnlc
21212s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21213b cont
21214' <confdefs.h | sed '
21215s/'"$ac_delim"'/"\\\
21216"/g' >>$CONFIG_STATUS || ac_write_fail=1
21217
21218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21219  for (key in D) D_is_set[key] = 1
21220  FS = ""
21221}
21222/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21223  line = \$ 0
21224  split(line, arg, " ")
21225  if (arg[1] == "#") {
21226    defundef = arg[2]
21227    mac1 = arg[3]
21228  } else {
21229    defundef = substr(arg[1], 2)
21230    mac1 = arg[2]
21231  }
21232  split(mac1, mac2, "(") #)
21233  macro = mac2[1]
21234  prefix = substr(line, 1, index(line, defundef) - 1)
21235  if (D_is_set[macro]) {
21236    # Preserve the white space surrounding the "#".
21237    print prefix "define", macro P[macro] D[macro]
21238    next
21239  } else {
21240    # Replace #undef with comments.  This is necessary, for example,
21241    # in the case of _POSIX_SOURCE, which is predefined and required
21242    # on some systems where configure will not decide to define it.
21243    if (defundef == "undef") {
21244      print "/*", prefix defundef, macro, "*/"
21245      next
21246    }
21247  }
21248}
21249{ print }
21250_ACAWK
21251_ACEOF
21252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21253  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21254fi # test -n "$CONFIG_HEADERS"
21255
21256
21257eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21258shift
21259for ac_tag
21260do
21261  case $ac_tag in
21262  :[FHLC]) ac_mode=$ac_tag; continue;;
21263  esac
21264  case $ac_mode$ac_tag in
21265  :[FHL]*:*);;
21266  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21267  :[FH]-) ac_tag=-:-;;
21268  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21269  esac
21270  ac_save_IFS=$IFS
21271  IFS=:
21272  set x $ac_tag
21273  IFS=$ac_save_IFS
21274  shift
21275  ac_file=$1
21276  shift
21277
21278  case $ac_mode in
21279  :L) ac_source=$1;;
21280  :[FH])
21281    ac_file_inputs=
21282    for ac_f
21283    do
21284      case $ac_f in
21285      -) ac_f="$ac_tmp/stdin";;
21286      *) # Look for the file first in the build tree, then in the source tree
21287	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21288	 # because $ac_f cannot contain `:'.
21289	 test -f "$ac_f" ||
21290	   case $ac_f in
21291	   [\\/$]*) false;;
21292	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21293	   esac ||
21294	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21295      esac
21296      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21297      as_fn_append ac_file_inputs " '$ac_f'"
21298    done
21299
21300    # Let's still pretend it is `configure' which instantiates (i.e., don't
21301    # use $as_me), people would be surprised to read:
21302    #    /* config.h.  Generated by config.status.  */
21303    configure_input='Generated from '`
21304	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21305	`' by configure.'
21306    if test x"$ac_file" != x-; then
21307      configure_input="$ac_file.  $configure_input"
21308      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21309$as_echo "$as_me: creating $ac_file" >&6;}
21310    fi
21311    # Neutralize special characters interpreted by sed in replacement strings.
21312    case $configure_input in #(
21313    *\&* | *\|* | *\\* )
21314       ac_sed_conf_input=`$as_echo "$configure_input" |
21315       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21316    *) ac_sed_conf_input=$configure_input;;
21317    esac
21318
21319    case $ac_tag in
21320    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21321      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21322    esac
21323    ;;
21324  esac
21325
21326  ac_dir=`$as_dirname -- "$ac_file" ||
21327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21328	 X"$ac_file" : 'X\(//\)[^/]' \| \
21329	 X"$ac_file" : 'X\(//\)$' \| \
21330	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21331$as_echo X"$ac_file" |
21332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21333	    s//\1/
21334	    q
21335	  }
21336	  /^X\(\/\/\)[^/].*/{
21337	    s//\1/
21338	    q
21339	  }
21340	  /^X\(\/\/\)$/{
21341	    s//\1/
21342	    q
21343	  }
21344	  /^X\(\/\).*/{
21345	    s//\1/
21346	    q
21347	  }
21348	  s/.*/./; q'`
21349  as_dir="$ac_dir"; as_fn_mkdir_p
21350  ac_builddir=.
21351
21352case "$ac_dir" in
21353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21354*)
21355  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21356  # A ".." for each directory in $ac_dir_suffix.
21357  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21358  case $ac_top_builddir_sub in
21359  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21360  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21361  esac ;;
21362esac
21363ac_abs_top_builddir=$ac_pwd
21364ac_abs_builddir=$ac_pwd$ac_dir_suffix
21365# for backward compatibility:
21366ac_top_builddir=$ac_top_build_prefix
21367
21368case $srcdir in
21369  .)  # We are building in place.
21370    ac_srcdir=.
21371    ac_top_srcdir=$ac_top_builddir_sub
21372    ac_abs_top_srcdir=$ac_pwd ;;
21373  [\\/]* | ?:[\\/]* )  # Absolute name.
21374    ac_srcdir=$srcdir$ac_dir_suffix;
21375    ac_top_srcdir=$srcdir
21376    ac_abs_top_srcdir=$srcdir ;;
21377  *) # Relative name.
21378    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21379    ac_top_srcdir=$ac_top_build_prefix$srcdir
21380    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21381esac
21382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21383
21384
21385  case $ac_mode in
21386  :F)
21387  #
21388  # CONFIG_FILE
21389  #
21390
21391_ACEOF
21392
21393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21394# If the template does not know about datarootdir, expand it.
21395# FIXME: This hack should be removed a few years after 2.60.
21396ac_datarootdir_hack=; ac_datarootdir_seen=
21397ac_sed_dataroot='
21398/datarootdir/ {
21399  p
21400  q
21401}
21402/@datadir@/p
21403/@docdir@/p
21404/@infodir@/p
21405/@localedir@/p
21406/@mandir@/p'
21407case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21408*datarootdir*) ac_datarootdir_seen=yes;;
21409*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21411$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21412_ACEOF
21413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21414  ac_datarootdir_hack='
21415  s&@datadir@&$datadir&g
21416  s&@docdir@&$docdir&g
21417  s&@infodir@&$infodir&g
21418  s&@localedir@&$localedir&g
21419  s&@mandir@&$mandir&g
21420  s&\\\${datarootdir}&$datarootdir&g' ;;
21421esac
21422_ACEOF
21423
21424# Neutralize VPATH when `$srcdir' = `.'.
21425# Shell code in configure.ac might set extrasub.
21426# FIXME: do we really want to maintain this feature?
21427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21428ac_sed_extra="$ac_vpsub
21429$extrasub
21430_ACEOF
21431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21432:t
21433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21434s|@configure_input@|$ac_sed_conf_input|;t t
21435s&@top_builddir@&$ac_top_builddir_sub&;t t
21436s&@top_build_prefix@&$ac_top_build_prefix&;t t
21437s&@srcdir@&$ac_srcdir&;t t
21438s&@abs_srcdir@&$ac_abs_srcdir&;t t
21439s&@top_srcdir@&$ac_top_srcdir&;t t
21440s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21441s&@builddir@&$ac_builddir&;t t
21442s&@abs_builddir@&$ac_abs_builddir&;t t
21443s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21444$ac_datarootdir_hack
21445"
21446eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21447  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21448
21449test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21450  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21451  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21452      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21454which seems to be undefined.  Please make sure it is defined" >&5
21455$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21456which seems to be undefined.  Please make sure it is defined" >&2;}
21457
21458  rm -f "$ac_tmp/stdin"
21459  case $ac_file in
21460  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21461  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21462  esac \
21463  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21464 ;;
21465  :H)
21466  #
21467  # CONFIG_HEADER
21468  #
21469  if test x"$ac_file" != x-; then
21470    {
21471      $as_echo "/* $configure_input  */" \
21472      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21473    } >"$ac_tmp/config.h" \
21474      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21475    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21476      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21477$as_echo "$as_me: $ac_file is unchanged" >&6;}
21478    else
21479      rm -f "$ac_file"
21480      mv "$ac_tmp/config.h" "$ac_file" \
21481	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21482    fi
21483  else
21484    $as_echo "/* $configure_input  */" \
21485      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21486      || as_fn_error $? "could not create -" "$LINENO" 5
21487  fi
21488 ;;
21489
21490  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21491$as_echo "$as_me: executing $ac_file commands" >&6;}
21492 ;;
21493  esac
21494
21495
21496  case $ac_file$ac_mode in
21497    "libtool":C)
21498
21499    # See if we are running on zsh, and set the options that allow our
21500    # commands through without removal of \ escapes.
21501    if test -n "${ZSH_VERSION+set}"; then
21502      setopt NO_GLOB_SUBST
21503    fi
21504
21505    cfgfile=${ofile}T
21506    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21507    $RM "$cfgfile"
21508
21509    cat <<_LT_EOF >> "$cfgfile"
21510#! $SHELL
21511# Generated automatically by $as_me ($PACKAGE) $VERSION
21512# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21513# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21514
21515# Provide generalized library-building support services.
21516# Written by Gordon Matzigkeit, 1996
21517
21518# Copyright (C) 2014 Free Software Foundation, Inc.
21519# This is free software; see the source for copying conditions.  There is NO
21520# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21521
21522# GNU Libtool is free software; you can redistribute it and/or modify
21523# it under the terms of the GNU General Public License as published by
21524# the Free Software Foundation; either version 2 of of the License, or
21525# (at your option) any later version.
21526#
21527# As a special exception to the GNU General Public License, if you
21528# distribute this file as part of a program or library that is built
21529# using GNU Libtool, you may include this file under the  same
21530# distribution terms that you use for the rest of that program.
21531#
21532# GNU Libtool is distributed in the hope that it will be useful, but
21533# WITHOUT ANY WARRANTY; without even the implied warranty of
21534# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21535# GNU General Public License for more details.
21536#
21537# You should have received a copy of the GNU General Public License
21538# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21539
21540
21541# The names of the tagged configurations supported by this script.
21542available_tags=''
21543
21544# Configured defaults for sys_lib_dlsearch_path munging.
21545: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21546
21547# ### BEGIN LIBTOOL CONFIG
21548
21549# Which release of libtool.m4 was used?
21550macro_version=$macro_version
21551macro_revision=$macro_revision
21552
21553# Whether or not to build shared libraries.
21554build_libtool_libs=$enable_shared
21555
21556# Whether or not to build static libraries.
21557build_old_libs=$enable_static
21558
21559# What type of objects to build.
21560pic_mode=$pic_mode
21561
21562# Whether or not to optimize for fast installation.
21563fast_install=$enable_fast_install
21564
21565# Shared archive member basename,for filename based shared library versioning on AIX.
21566shared_archive_member_spec=$shared_archive_member_spec
21567
21568# Shell to use when invoking shell scripts.
21569SHELL=$lt_SHELL
21570
21571# An echo program that protects backslashes.
21572ECHO=$lt_ECHO
21573
21574# The PATH separator for the build system.
21575PATH_SEPARATOR=$lt_PATH_SEPARATOR
21576
21577# The host system.
21578host_alias=$host_alias
21579host=$host
21580host_os=$host_os
21581
21582# The build system.
21583build_alias=$build_alias
21584build=$build
21585build_os=$build_os
21586
21587# A sed program that does not truncate output.
21588SED=$lt_SED
21589
21590# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21591Xsed="\$SED -e 1s/^X//"
21592
21593# A grep program that handles long lines.
21594GREP=$lt_GREP
21595
21596# An ERE matcher.
21597EGREP=$lt_EGREP
21598
21599# A literal string matcher.
21600FGREP=$lt_FGREP
21601
21602# A BSD- or MS-compatible name lister.
21603NM=$lt_NM
21604
21605# Whether we need soft or hard links.
21606LN_S=$lt_LN_S
21607
21608# What is the maximum length of a command?
21609max_cmd_len=$max_cmd_len
21610
21611# Object file suffix (normally "o").
21612objext=$ac_objext
21613
21614# Executable file suffix (normally "").
21615exeext=$exeext
21616
21617# whether the shell understands "unset".
21618lt_unset=$lt_unset
21619
21620# turn spaces into newlines.
21621SP2NL=$lt_lt_SP2NL
21622
21623# turn newlines into spaces.
21624NL2SP=$lt_lt_NL2SP
21625
21626# convert \$build file names to \$host format.
21627to_host_file_cmd=$lt_cv_to_host_file_cmd
21628
21629# convert \$build files to toolchain format.
21630to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21631
21632# An object symbol dumper.
21633OBJDUMP=$lt_OBJDUMP
21634
21635# Method to check whether dependent libraries are shared objects.
21636deplibs_check_method=$lt_deplibs_check_method
21637
21638# Command to use when deplibs_check_method = "file_magic".
21639file_magic_cmd=$lt_file_magic_cmd
21640
21641# How to find potential files when deplibs_check_method = "file_magic".
21642file_magic_glob=$lt_file_magic_glob
21643
21644# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21645want_nocaseglob=$lt_want_nocaseglob
21646
21647# DLL creation program.
21648DLLTOOL=$lt_DLLTOOL
21649
21650# Command to associate shared and link libraries.
21651sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21652
21653# The archiver.
21654AR=$lt_AR
21655
21656# Flags to create an archive.
21657AR_FLAGS=$lt_AR_FLAGS
21658
21659# How to feed a file listing to the archiver.
21660archiver_list_spec=$lt_archiver_list_spec
21661
21662# A symbol stripping program.
21663STRIP=$lt_STRIP
21664
21665# Commands used to install an old-style archive.
21666RANLIB=$lt_RANLIB
21667old_postinstall_cmds=$lt_old_postinstall_cmds
21668old_postuninstall_cmds=$lt_old_postuninstall_cmds
21669
21670# Whether to use a lock for old archive extraction.
21671lock_old_archive_extraction=$lock_old_archive_extraction
21672
21673# A C compiler.
21674LTCC=$lt_CC
21675
21676# LTCC compiler flags.
21677LTCFLAGS=$lt_CFLAGS
21678
21679# Take the output of nm and produce a listing of raw symbols and C names.
21680global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21681
21682# Transform the output of nm in a proper C declaration.
21683global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21684
21685# Transform the output of nm into a list of symbols to manually relocate.
21686global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21687
21688# Transform the output of nm in a C name address pair.
21689global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21690
21691# Transform the output of nm in a C name address pair when lib prefix is needed.
21692global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21693
21694# The name lister interface.
21695nm_interface=$lt_lt_cv_nm_interface
21696
21697# Specify filename containing input files for \$NM.
21698nm_file_list_spec=$lt_nm_file_list_spec
21699
21700# The root where to search for dependent libraries,and where our libraries should be installed.
21701lt_sysroot=$lt_sysroot
21702
21703# Command to truncate a binary pipe.
21704lt_truncate_bin=$lt_lt_cv_truncate_bin
21705
21706# The name of the directory that contains temporary libtool files.
21707objdir=$objdir
21708
21709# Used to examine libraries when file_magic_cmd begins with "file".
21710MAGIC_CMD=$MAGIC_CMD
21711
21712# Must we lock files when doing compilation?
21713need_locks=$lt_need_locks
21714
21715# Manifest tool.
21716MANIFEST_TOOL=$lt_MANIFEST_TOOL
21717
21718# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21719DSYMUTIL=$lt_DSYMUTIL
21720
21721# Tool to change global to local symbols on Mac OS X.
21722NMEDIT=$lt_NMEDIT
21723
21724# Tool to manipulate fat objects and archives on Mac OS X.
21725LIPO=$lt_LIPO
21726
21727# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21728OTOOL=$lt_OTOOL
21729
21730# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21731OTOOL64=$lt_OTOOL64
21732
21733# Old archive suffix (normally "a").
21734libext=$libext
21735
21736# Shared library suffix (normally ".so").
21737shrext_cmds=$lt_shrext_cmds
21738
21739# The commands to extract the exported symbol list from a shared archive.
21740extract_expsyms_cmds=$lt_extract_expsyms_cmds
21741
21742# Variables whose values should be saved in libtool wrapper scripts and
21743# restored at link time.
21744variables_saved_for_relink=$lt_variables_saved_for_relink
21745
21746# Do we need the "lib" prefix for modules?
21747need_lib_prefix=$need_lib_prefix
21748
21749# Do we need a version for libraries?
21750need_version=$need_version
21751
21752# Library versioning type.
21753version_type=$version_type
21754
21755# Shared library runtime path variable.
21756runpath_var=$runpath_var
21757
21758# Shared library path variable.
21759shlibpath_var=$shlibpath_var
21760
21761# Is shlibpath searched before the hard-coded library search path?
21762shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21763
21764# Format of library name prefix.
21765libname_spec=$lt_libname_spec
21766
21767# List of archive names.  First name is the real one, the rest are links.
21768# The last name is the one that the linker finds with -lNAME
21769library_names_spec=$lt_library_names_spec
21770
21771# The coded name of the library, if different from the real name.
21772soname_spec=$lt_soname_spec
21773
21774# Permission mode override for installation of shared libraries.
21775install_override_mode=$lt_install_override_mode
21776
21777# Command to use after installation of a shared archive.
21778postinstall_cmds=$lt_postinstall_cmds
21779
21780# Command to use after uninstallation of a shared archive.
21781postuninstall_cmds=$lt_postuninstall_cmds
21782
21783# Commands used to finish a libtool library installation in a directory.
21784finish_cmds=$lt_finish_cmds
21785
21786# As "finish_cmds", except a single script fragment to be evaled but
21787# not shown.
21788finish_eval=$lt_finish_eval
21789
21790# Whether we should hardcode library paths into libraries.
21791hardcode_into_libs=$hardcode_into_libs
21792
21793# Compile-time system search path for libraries.
21794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21795
21796# Detected run-time system search path for libraries.
21797sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21798
21799# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21800configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21801
21802# Whether dlopen is supported.
21803dlopen_support=$enable_dlopen
21804
21805# Whether dlopen of programs is supported.
21806dlopen_self=$enable_dlopen_self
21807
21808# Whether dlopen of statically linked programs is supported.
21809dlopen_self_static=$enable_dlopen_self_static
21810
21811# Commands to strip libraries.
21812old_striplib=$lt_old_striplib
21813striplib=$lt_striplib
21814
21815
21816# The linker used to build libraries.
21817LD=$lt_LD
21818
21819# How to create reloadable object files.
21820reload_flag=$lt_reload_flag
21821reload_cmds=$lt_reload_cmds
21822
21823# Commands used to build an old-style archive.
21824old_archive_cmds=$lt_old_archive_cmds
21825
21826# A language specific compiler.
21827CC=$lt_compiler
21828
21829# Is the compiler the GNU compiler?
21830with_gcc=$GCC
21831
21832# Compiler flag to turn off builtin functions.
21833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21834
21835# Additional compiler flags for building library objects.
21836pic_flag=$lt_lt_prog_compiler_pic
21837
21838# How to pass a linker flag through the compiler.
21839wl=$lt_lt_prog_compiler_wl
21840
21841# Compiler flag to prevent dynamic linking.
21842link_static_flag=$lt_lt_prog_compiler_static
21843
21844# Does compiler simultaneously support -c and -o options?
21845compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21846
21847# Whether or not to add -lc for building shared libraries.
21848build_libtool_need_lc=$archive_cmds_need_lc
21849
21850# Whether or not to disallow shared libs when runtime libs are static.
21851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21852
21853# Compiler flag to allow reflexive dlopens.
21854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21855
21856# Compiler flag to generate shared objects directly from archives.
21857whole_archive_flag_spec=$lt_whole_archive_flag_spec
21858
21859# Whether the compiler copes with passing no objects directly.
21860compiler_needs_object=$lt_compiler_needs_object
21861
21862# Create an old-style archive from a shared archive.
21863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21864
21865# Create a temporary old-style archive to link instead of a shared archive.
21866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21867
21868# Commands used to build a shared archive.
21869archive_cmds=$lt_archive_cmds
21870archive_expsym_cmds=$lt_archive_expsym_cmds
21871
21872# Commands used to build a loadable module if different from building
21873# a shared archive.
21874module_cmds=$lt_module_cmds
21875module_expsym_cmds=$lt_module_expsym_cmds
21876
21877# Whether we are building with GNU ld or not.
21878with_gnu_ld=$lt_with_gnu_ld
21879
21880# Flag that allows shared libraries with undefined symbols to be built.
21881allow_undefined_flag=$lt_allow_undefined_flag
21882
21883# Flag that enforces no undefined symbols.
21884no_undefined_flag=$lt_no_undefined_flag
21885
21886# Flag to hardcode \$libdir into a binary during linking.
21887# This must work even if \$libdir does not exist
21888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21889
21890# Whether we need a single "-rpath" flag with a separated argument.
21891hardcode_libdir_separator=$lt_hardcode_libdir_separator
21892
21893# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21894# DIR into the resulting binary.
21895hardcode_direct=$hardcode_direct
21896
21897# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21898# DIR into the resulting binary and the resulting library dependency is
21899# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21900# library is relocated.
21901hardcode_direct_absolute=$hardcode_direct_absolute
21902
21903# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21904# into the resulting binary.
21905hardcode_minus_L=$hardcode_minus_L
21906
21907# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21908# into the resulting binary.
21909hardcode_shlibpath_var=$hardcode_shlibpath_var
21910
21911# Set to "yes" if building a shared library automatically hardcodes DIR
21912# into the library and all subsequent libraries and executables linked
21913# against it.
21914hardcode_automatic=$hardcode_automatic
21915
21916# Set to yes if linker adds runtime paths of dependent libraries
21917# to runtime path list.
21918inherit_rpath=$inherit_rpath
21919
21920# Whether libtool must link a program against all its dependency libraries.
21921link_all_deplibs=$link_all_deplibs
21922
21923# Set to "yes" if exported symbols are required.
21924always_export_symbols=$always_export_symbols
21925
21926# The commands to list exported symbols.
21927export_symbols_cmds=$lt_export_symbols_cmds
21928
21929# Symbols that should not be listed in the preloaded symbols.
21930exclude_expsyms=$lt_exclude_expsyms
21931
21932# Symbols that must always be exported.
21933include_expsyms=$lt_include_expsyms
21934
21935# Commands necessary for linking programs (against libraries) with templates.
21936prelink_cmds=$lt_prelink_cmds
21937
21938# Commands necessary for finishing linking programs.
21939postlink_cmds=$lt_postlink_cmds
21940
21941# Specify filename containing input files.
21942file_list_spec=$lt_file_list_spec
21943
21944# How to hardcode a shared library path into an executable.
21945hardcode_action=$hardcode_action
21946
21947# ### END LIBTOOL CONFIG
21948
21949_LT_EOF
21950
21951    cat <<'_LT_EOF' >> "$cfgfile"
21952
21953# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21954
21955# func_munge_path_list VARIABLE PATH
21956# -----------------------------------
21957# VARIABLE is name of variable containing _space_ separated list of
21958# directories to be munged by the contents of PATH, which is string
21959# having a format:
21960# "DIR[:DIR]:"
21961#       string "DIR[ DIR]" will be prepended to VARIABLE
21962# ":DIR[:DIR]"
21963#       string "DIR[ DIR]" will be appended to VARIABLE
21964# "DIRP[:DIRP]::[DIRA:]DIRA"
21965#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21966#       "DIRA[ DIRA]" will be appended to VARIABLE
21967# "DIR[:DIR]"
21968#       VARIABLE will be replaced by "DIR[ DIR]"
21969func_munge_path_list ()
21970{
21971    case x$2 in
21972    x)
21973        ;;
21974    *:)
21975        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21976        ;;
21977    x:*)
21978        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21979        ;;
21980    *::*)
21981        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21982        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21983        ;;
21984    *)
21985        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21986        ;;
21987    esac
21988}
21989
21990
21991# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21992func_cc_basename ()
21993{
21994    for cc_temp in $*""; do
21995      case $cc_temp in
21996        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21997        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21998        \-*) ;;
21999        *) break;;
22000      esac
22001    done
22002    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22003}
22004
22005
22006# ### END FUNCTIONS SHARED WITH CONFIGURE
22007
22008_LT_EOF
22009
22010  case $host_os in
22011  aix3*)
22012    cat <<\_LT_EOF >> "$cfgfile"
22013# AIX sometimes has problems with the GCC collect2 program.  For some
22014# reason, if we set the COLLECT_NAMES environment variable, the problems
22015# vanish in a puff of smoke.
22016if test set != "${COLLECT_NAMES+set}"; then
22017  COLLECT_NAMES=
22018  export COLLECT_NAMES
22019fi
22020_LT_EOF
22021    ;;
22022  esac
22023
22024
22025ltmain=$ac_aux_dir/ltmain.sh
22026
22027
22028  # We use sed instead of cat because bash on DJGPP gets confused if
22029  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22030  # text mode, it properly converts lines to CR/LF.  This bash problem
22031  # is reportedly fixed, but why not run on old versions too?
22032  sed '$q' "$ltmain" >> "$cfgfile" \
22033     || (rm -f "$cfgfile"; exit 1)
22034
22035   mv -f "$cfgfile" "$ofile" ||
22036    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22037  chmod +x "$ofile"
22038
22039 ;;
22040    "disable-rpath":C)
22041	sed < libtool > libtool-2 \
22042	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
22043	mv libtool-2 libtool
22044	chmod 755 libtool
22045	libtool="./libtool"
22046	 ;;
22047
22048  esac
22049done # for ac_tag
22050
22051
22052as_fn_exit 0
22053_ACEOF
22054ac_clean_files=$ac_clean_files_save
22055
22056test $ac_write_fail = 0 ||
22057  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22058
22059
22060# configure is writing to config.log, and then calls config.status.
22061# config.status does its own redirection, appending to config.log.
22062# Unfortunately, on DOS this fails, as config.log is still kept open
22063# by configure, so config.status won't be able to write to it; its
22064# output is simply discarded.  So we exec the FD to /dev/null,
22065# effectively closing config.log, so it can be properly (re)opened and
22066# appended to by config.status.  When coming back to configure, we
22067# need to make the FD available again.
22068if test "$no_create" != yes; then
22069  ac_cs_success=:
22070  ac_config_status_args=
22071  test "$silent" = yes &&
22072    ac_config_status_args="$ac_config_status_args --quiet"
22073  exec 5>/dev/null
22074  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22075  exec 5>>config.log
22076  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22077  # would make configure fail if this is the last instruction.
22078  $ac_cs_success || as_fn_exit 1
22079fi
22080if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22081  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22082$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22083fi
22084
22085