xref: /freebsd/contrib/unbound/configure (revision c35b5d8372e4c4ec50e8653c2b51e6179a81769e)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.5.9.
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.9'
594PACKAGE_STRING='unbound 1.5.9'
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
837with_libevent
838with_libexpat
839enable_static_exe
840enable_lock_checks
841enable_allsymbols
842enable_dnstap
843with_dnstap_socket_path
844with_protobuf_c
845with_libfstrm
846enable_cachedb
847with_libunbound_only
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858YACC
859YFLAGS
860LT_SYS_LIBRARY_PATH
861PYTHON_VERSION'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916  # If the previous option needs an argument, assign it.
917  if test -n "$ac_prev"; then
918    eval $ac_prev=\$ac_option
919    ac_prev=
920    continue
921  fi
922
923  case $ac_option in
924  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925  *=)   ac_optarg= ;;
926  *)    ac_optarg=yes ;;
927  esac
928
929  # Accept the important Cygnus configure options, so we can diagnose typos.
930
931  case $ac_dashdash$ac_option in
932  --)
933    ac_dashdash=yes ;;
934
935  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936    ac_prev=bindir ;;
937  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938    bindir=$ac_optarg ;;
939
940  -build | --build | --buil | --bui | --bu)
941    ac_prev=build_alias ;;
942  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943    build_alias=$ac_optarg ;;
944
945  -cache-file | --cache-file | --cache-fil | --cache-fi \
946  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947    ac_prev=cache_file ;;
948  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950    cache_file=$ac_optarg ;;
951
952  --config-cache | -C)
953    cache_file=config.cache ;;
954
955  -datadir | --datadir | --datadi | --datad)
956    ac_prev=datadir ;;
957  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958    datadir=$ac_optarg ;;
959
960  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961  | --dataroo | --dataro | --datar)
962    ac_prev=datarootdir ;;
963  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965    datarootdir=$ac_optarg ;;
966
967  -disable-* | --disable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=no ;;
982
983  -docdir | --docdir | --docdi | --doc | --do)
984    ac_prev=docdir ;;
985  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986    docdir=$ac_optarg ;;
987
988  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989    ac_prev=dvidir ;;
990  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991    dvidir=$ac_optarg ;;
992
993  -enable-* | --enable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011  | --exec | --exe | --ex)
1012    ac_prev=exec_prefix ;;
1013  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015  | --exec=* | --exe=* | --ex=*)
1016    exec_prefix=$ac_optarg ;;
1017
1018  -gas | --gas | --ga | --g)
1019    # Obsolete; use --with-gas.
1020    with_gas=yes ;;
1021
1022  -help | --help | --hel | --he | -h)
1023    ac_init_help=long ;;
1024  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025    ac_init_help=recursive ;;
1026  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027    ac_init_help=short ;;
1028
1029  -host | --host | --hos | --ho)
1030    ac_prev=host_alias ;;
1031  -host=* | --host=* | --hos=* | --ho=*)
1032    host_alias=$ac_optarg ;;
1033
1034  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035    ac_prev=htmldir ;;
1036  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037  | --ht=*)
1038    htmldir=$ac_optarg ;;
1039
1040  -includedir | --includedir | --includedi | --included | --include \
1041  | --includ | --inclu | --incl | --inc)
1042    ac_prev=includedir ;;
1043  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044  | --includ=* | --inclu=* | --incl=* | --inc=*)
1045    includedir=$ac_optarg ;;
1046
1047  -infodir | --infodir | --infodi | --infod | --info | --inf)
1048    ac_prev=infodir ;;
1049  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050    infodir=$ac_optarg ;;
1051
1052  -libdir | --libdir | --libdi | --libd)
1053    ac_prev=libdir ;;
1054  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055    libdir=$ac_optarg ;;
1056
1057  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058  | --libexe | --libex | --libe)
1059    ac_prev=libexecdir ;;
1060  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061  | --libexe=* | --libex=* | --libe=*)
1062    libexecdir=$ac_optarg ;;
1063
1064  -localedir | --localedir | --localedi | --localed | --locale)
1065    ac_prev=localedir ;;
1066  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067    localedir=$ac_optarg ;;
1068
1069  -localstatedir | --localstatedir | --localstatedi | --localstated \
1070  | --localstate | --localstat | --localsta | --localst | --locals)
1071    ac_prev=localstatedir ;;
1072  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074    localstatedir=$ac_optarg ;;
1075
1076  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077    ac_prev=mandir ;;
1078  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079    mandir=$ac_optarg ;;
1080
1081  -nfp | --nfp | --nf)
1082    # Obsolete; use --without-fp.
1083    with_fp=no ;;
1084
1085  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086  | --no-cr | --no-c | -n)
1087    no_create=yes ;;
1088
1089  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091    no_recursion=yes ;;
1092
1093  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095  | --oldin | --oldi | --old | --ol | --o)
1096    ac_prev=oldincludedir ;;
1097  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100    oldincludedir=$ac_optarg ;;
1101
1102  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103    ac_prev=prefix ;;
1104  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105    prefix=$ac_optarg ;;
1106
1107  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108  | --program-pre | --program-pr | --program-p)
1109    ac_prev=program_prefix ;;
1110  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112    program_prefix=$ac_optarg ;;
1113
1114  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115  | --program-suf | --program-su | --program-s)
1116    ac_prev=program_suffix ;;
1117  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119    program_suffix=$ac_optarg ;;
1120
1121  -program-transform-name | --program-transform-name \
1122  | --program-transform-nam | --program-transform-na \
1123  | --program-transform-n | --program-transform- \
1124  | --program-transform | --program-transfor \
1125  | --program-transfo | --program-transf \
1126  | --program-trans | --program-tran \
1127  | --progr-tra | --program-tr | --program-t)
1128    ac_prev=program_transform_name ;;
1129  -program-transform-name=* | --program-transform-name=* \
1130  | --program-transform-nam=* | --program-transform-na=* \
1131  | --program-transform-n=* | --program-transform-=* \
1132  | --program-transform=* | --program-transfor=* \
1133  | --program-transfo=* | --program-transf=* \
1134  | --program-trans=* | --program-tran=* \
1135  | --progr-tra=* | --program-tr=* | --program-t=*)
1136    program_transform_name=$ac_optarg ;;
1137
1138  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139    ac_prev=pdfdir ;;
1140  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141    pdfdir=$ac_optarg ;;
1142
1143  -psdir | --psdir | --psdi | --psd | --ps)
1144    ac_prev=psdir ;;
1145  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146    psdir=$ac_optarg ;;
1147
1148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149  | -silent | --silent | --silen | --sile | --sil)
1150    silent=yes ;;
1151
1152  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153    ac_prev=sbindir ;;
1154  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155  | --sbi=* | --sb=*)
1156    sbindir=$ac_optarg ;;
1157
1158  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160  | --sharedst | --shareds | --shared | --share | --shar \
1161  | --sha | --sh)
1162    ac_prev=sharedstatedir ;;
1163  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166  | --sha=* | --sh=*)
1167    sharedstatedir=$ac_optarg ;;
1168
1169  -site | --site | --sit)
1170    ac_prev=site ;;
1171  -site=* | --site=* | --sit=*)
1172    site=$ac_optarg ;;
1173
1174  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175    ac_prev=srcdir ;;
1176  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177    srcdir=$ac_optarg ;;
1178
1179  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180  | --syscon | --sysco | --sysc | --sys | --sy)
1181    ac_prev=sysconfdir ;;
1182  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184    sysconfdir=$ac_optarg ;;
1185
1186  -target | --target | --targe | --targ | --tar | --ta | --t)
1187    ac_prev=target_alias ;;
1188  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189    target_alias=$ac_optarg ;;
1190
1191  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192    verbose=yes ;;
1193
1194  -version | --version | --versio | --versi | --vers | -V)
1195    ac_init_version=: ;;
1196
1197  -with-* | --with-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: $ac_useropt"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=\$ac_optarg ;;
1212
1213  -without-* | --without-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    case $ac_envvar in #(
1255      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257    esac
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278  case $enable_option_checking in
1279    no) ;;
1280    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282  esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  # Remove trailing slashes.
1293  case $ac_val in
1294    */ )
1295      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296      eval $ac_var=\$ac_val;;
1297  esac
1298  # Be sure to have absolute directory names.
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317  elif test "x$build_alias" != "x$host_alias"; then
1318    cross_compiling=yes
1319  fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331  as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338  ac_srcdir_defaulted=yes
1339  # Try the directory containing this script, then the parent directory.
1340  ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343	 X"$as_myself" : 'X\(//\)$' \| \
1344	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)[^/].*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\).*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  s/.*/./; q'`
1363  srcdir=$ac_confdir
1364  if test ! -r "$srcdir/$ac_unique_file"; then
1365    srcdir=..
1366  fi
1367else
1368  ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures unbound 1.5.9 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking ...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424                          [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                          [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR            user executables [EPREFIX/bin]
1437  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459System types:
1460  --build=BUILD     configure for building on BUILD [guessed]
1461  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466  case $ac_init_help in
1467     short | recursive ) echo "Configuration of unbound 1.5.9:";;
1468   esac
1469  cat <<\_ACEOF
1470
1471Optional Features:
1472  --disable-option-checking  ignore unrecognized --enable/--with options
1473  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475  --enable-checking       Enable warnings, asserts, makefile-dependencies
1476  --enable-debug          same as enable-checking
1477  --disable-flto          Disable link-time optimization (gcc specific option)
1478  --enable-pie            Enable Position-Independent Executable (eg. to fully
1479                          benefit from ASLR, small performance penalty)
1480  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1481                          NOW, to protect GOT and .dtor areas)
1482  --enable-shared[=PKGS]  build shared libraries [default=yes]
1483  --enable-static[=PKGS]  build static libraries [default=yes]
1484  --enable-fast-install[=PKGS]
1485                          optimize for fast installation [default=yes]
1486  --disable-libtool-lock  avoid locking (might break parallel builds)
1487  --disable-rpath         disable hardcoded rpath (default=enabled)
1488  --disable-largefile     omit support for large files
1489  --enable-alloc-checks   enable to memory allocation statistics, for debug
1490                          purposes
1491  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1492                          purposes
1493  --enable-alloc-nonregional
1494                          enable nonregional allocs, slow but exposes regional
1495                          allocations to other memory purifiers, for debug
1496                          purposes
1497  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1498  --disable-gost          Disable GOST support
1499  --disable-ecdsa         Disable ECDSA support
1500  --disable-dsa           Disable DSA support
1501  --enable-event-api      Enable (experimental) pluggable event base
1502                          libunbound API installed to unbound-event.h
1503  --enable-static-exe     enable to compile executables statically against
1504                          (event) libs, for debug purposes
1505  --enable-lock-checks    enable to check lock and unlock calls, for debug
1506                          purposes
1507  --enable-allsymbols     export all symbols from libunbound and link binaries
1508                          to it, smaller install size but libunbound export
1509                          table is polluted by internal symbols
1510  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1511  --enable-cachedb        enable cachedb module that can use external cache
1512                          storage
1513
1514Optional Packages:
1515  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517  --with-conf-file=path   Pathname to the Unbound configuration file
1518  --with-run-dir=path     set default directory to chdir to (by default dir
1519                          part of cfg file)
1520  --with-chroot-dir=path  set default directory to chroot to (by default same
1521                          as run-dir)
1522  --with-share-dir=path   set default directory with shared data (by default
1523                          same as share/unbound)
1524  --with-pidfile=filename set default pathname to unbound pidfile (default
1525                          run-dir/unbound.pid)
1526  --with-rootkey-file=filename
1527                          set default pathname to root key file (default
1528                          run-dir/root.key). This file is read and written.
1529  --with-rootcert-file=filename
1530                          set default pathname to root update certificate file
1531                          (default run-dir/icannbundle.pem). This file need
1532                          not exist if you are content with the builtin.
1533  --with-username=user    set default user that unbound changes to (default
1534                          user is unbound)
1535  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1536                          both]
1537  --with-aix-soname=aix|svr4|both
1538                          shared library versioning (aka "SONAME") variant to
1539                          provide on AIX, [default=aix].
1540  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1541  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1542                          compiler's sysroot if not specified).
1543  --with-pthreads         use pthreads library, or --without-pthreads to
1544                          disable threading support.
1545  --with-solaris-threads  use solaris native thread library.
1546  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1547                          (default=no)
1548  --with-pythonmodule     build Python module, or --without-pythonmodule to
1549                          disable script engine. (default=no)
1550  --with-nss=path         use libnss instead of openssl, installed at path.
1551  --with-nettle=path      use libnettle as crypto library, installed at path.
1552  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1553                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1554                          /usr)
1555  --with-libevent=pathname
1556                          use libevent (will check /usr/local /opt/local
1557                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1558                          an explicit path). Slower, but allows use of large
1559                          outgoing port ranges.
1560  --with-libexpat=path    specify explicit path for libexpat.
1561  --with-dnstap-socket-path=pathname
1562                          set default dnstap socket path
1563  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1564  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1565  --with-libunbound-only  do not build daemon and tool programs
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  YACC        The `Yet Another Compiler Compiler' implementation to use.
1577              Defaults to the first program found out of: `bison -y', `byacc',
1578              `yacc'.
1579  YFLAGS      The list of arguments that will be passed by default to $YACC.
1580              This script will default YFLAGS to the empty string to avoid a
1581              default value of `-d' given by some make applications.
1582  LT_SYS_LIBRARY_PATH
1583              User-defined run-time library search path.
1584  PYTHON_VERSION
1585              The installed Python version to use, for example '2.3'. This
1586              string will be appended to the Python interpreter canonical
1587              name.
1588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
1592Report bugs to <unbound-bugs@nlnetlabs.nl>.
1593_ACEOF
1594ac_status=$?
1595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598  # If there are subdirs, report their specific --help.
1599  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600    test -d "$ac_dir" ||
1601      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602      continue
1603    ac_builddir=.
1604
1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609  # A ".." for each directory in $ac_dir_suffix.
1610  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611  case $ac_top_builddir_sub in
1612  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614  esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
1620
1621case $srcdir in
1622  .)  # We are building in place.
1623    ac_srcdir=.
1624    ac_top_srcdir=$ac_top_builddir_sub
1625    ac_abs_top_srcdir=$ac_pwd ;;
1626  [\\/]* | ?:[\\/]* )  # Absolute name.
1627    ac_srcdir=$srcdir$ac_dir_suffix;
1628    ac_top_srcdir=$srcdir
1629    ac_abs_top_srcdir=$srcdir ;;
1630  *) # Relative name.
1631    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632    ac_top_srcdir=$ac_top_build_prefix$srcdir
1633    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634esac
1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637    cd "$ac_dir" || { ac_status=$?; continue; }
1638    # Check for guested configure.
1639    if test -f "$ac_srcdir/configure.gnu"; then
1640      echo &&
1641      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642    elif test -f "$ac_srcdir/configure"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure" --help=recursive
1645    else
1646      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647    fi || ac_status=$?
1648    cd "$ac_pwd" || { ac_status=$?; break; }
1649  done
1650fi
1651
1652test -n "$ac_init_help" && exit $ac_status
1653if $ac_init_version; then
1654  cat <<\_ACEOF
1655unbound configure 1.5.9
1656generated by GNU Autoconf 2.69
1657
1658Copyright (C) 2012 Free Software Foundation, Inc.
1659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661_ACEOF
1662  exit
1663fi
1664
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
1668
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  rm -f conftest.$ac_objext
1676  if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_compile") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && {
1692	 test -z "$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       } && test -s conftest.$ac_objext; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700	ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } > conftest.i && {
1729	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737    ac_retval=1
1738fi
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1747# the include files in INCLUDES and setting the cache variable VAR
1748# accordingly.
1749ac_fn_c_check_header_mongrel ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  if eval \${$3+:} false; then :
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval \${$3+:} false; then :
1756  $as_echo_n "(cached) " >&6
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761else
1762  # Is the header compilable?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1764$as_echo_n "checking $2 usability... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771  ac_header_compiler=yes
1772else
1773  ac_header_compiler=no
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1777$as_echo "$ac_header_compiler" >&6; }
1778
1779# Is the header present?
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1781$as_echo_n "checking $2 presence... " >&6; }
1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h.  */
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_cpp "$LINENO"; then :
1787  ac_header_preproc=yes
1788else
1789  ac_header_preproc=no
1790fi
1791rm -f conftest.err conftest.i conftest.$ac_ext
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1793$as_echo "$ac_header_preproc" >&6; }
1794
1795# So?  What about this header?
1796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1797  yes:no: )
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1799$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802    ;;
1803  no:yes:* )
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1805$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1807$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1809$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1811$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814( $as_echo "## ---------------------------------------- ##
1815## Report this to unbound-bugs@nlnetlabs.nl ##
1816## ---------------------------------------- ##"
1817     ) | sed "s/^/$as_me: WARNING:     /" >&2
1818    ;;
1819esac
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  eval "$3=\$ac_header_compiler"
1826fi
1827eval ac_res=\$$3
1828	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
1830fi
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_header_mongrel
1834
1835# ac_fn_c_try_run LINENO
1836# ----------------------
1837# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1838# that executables *can* be run.
1839ac_fn_c_try_run ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  if { { ac_try="$ac_link"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>&5
1850  ac_status=$?
1851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1853  { { case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_try") 2>&5
1860  ac_status=$?
1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; }; }; then :
1863  ac_retval=0
1864else
1865  $as_echo "$as_me: program exited with status $ac_status" >&5
1866       $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869       ac_retval=$ac_status
1870fi
1871  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_run
1876
1877# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1878# -------------------------------------------------------
1879# Tests whether HEADER exists and can be compiled using the include files in
1880# INCLUDES, setting the cache variable VAR accordingly.
1881ac_fn_c_check_header_compile ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891$4
1892#include <$2>
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895  eval "$3=yes"
1896else
1897  eval "$3=no"
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906} # ac_fn_c_check_header_compile
1907
1908# ac_fn_c_try_link LINENO
1909# -----------------------
1910# Try to link conftest.$ac_ext, and return whether this succeeded.
1911ac_fn_c_try_link ()
1912{
1913  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914  rm -f conftest.$ac_objext conftest$ac_exeext
1915  if { { ac_try="$ac_link"
1916case "(($ac_try" in
1917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918  *) ac_try_echo=$ac_try;;
1919esac
1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921$as_echo "$ac_try_echo"; } >&5
1922  (eval "$ac_link") 2>conftest.err
1923  ac_status=$?
1924  if test -s conftest.err; then
1925    grep -v '^ *+' conftest.err >conftest.er1
1926    cat conftest.er1 >&5
1927    mv -f conftest.er1 conftest.err
1928  fi
1929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930  test $ac_status = 0; } && {
1931	 test -z "$ac_c_werror_flag" ||
1932	 test ! -s conftest.err
1933       } && test -s conftest$ac_exeext && {
1934	 test "$cross_compiling" = yes ||
1935	 test -x conftest$ac_exeext
1936       }; then :
1937  ac_retval=0
1938else
1939  $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942	ac_retval=1
1943fi
1944  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946  # interfere with the next link command; also delete a directory that is
1947  # left behind by Apple's compiler.  We do this before executing the actions.
1948  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950  as_fn_set_status $ac_retval
1951
1952} # ac_fn_c_try_link
1953
1954# ac_fn_c_check_func LINENO FUNC VAR
1955# ----------------------------------
1956# Tests whether FUNC exists, setting the cache variable VAR accordingly
1957ac_fn_c_check_func ()
1958{
1959  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval \${$3+:} false; then :
1963  $as_echo_n "(cached) " >&6
1964else
1965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969#define $2 innocuous_$2
1970
1971/* System header to define __stub macros and hopefully few prototypes,
1972    which can conflict with char $2 (); below.
1973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974    <limits.h> exists even on freestanding compilers.  */
1975
1976#ifdef __STDC__
1977# include <limits.h>
1978#else
1979# include <assert.h>
1980#endif
1981
1982#undef $2
1983
1984/* Override any GCC internal prototype to avoid an error.
1985   Use char because int might match the return type of a GCC
1986   builtin and then its argument prototype would still apply.  */
1987#ifdef __cplusplus
1988extern "C"
1989#endif
1990char $2 ();
1991/* The GNU C library defines this for functions which it implements
1992    to always fail with ENOSYS.  Some functions are actually named
1993    something starting with __ and the normal name is an alias.  */
1994#if defined __stub_$2 || defined __stub___$2
1995choke me
1996#endif
1997
1998int
1999main ()
2000{
2001return $2 ();
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_link "$LINENO"; then :
2007  eval "$3=yes"
2008else
2009  eval "$3=no"
2010fi
2011rm -f core conftest.err conftest.$ac_objext \
2012    conftest$ac_exeext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_check_func
2020
2021# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2022# -------------------------------------------
2023# Tests whether TYPE exists after having included INCLUDES, setting cache
2024# variable VAR accordingly.
2025ac_fn_c_check_type ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if eval \${$3+:} false; then :
2031  $as_echo_n "(cached) " >&6
2032else
2033  eval "$3=no"
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040if (sizeof ($2))
2041	 return 0;
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h.  */
2049$4
2050int
2051main ()
2052{
2053if (sizeof (($2)))
2054	    return 0;
2055  ;
2056  return 0;
2057}
2058_ACEOF
2059if ac_fn_c_try_compile "$LINENO"; then :
2060
2061else
2062  eval "$3=yes"
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073} # ac_fn_c_check_type
2074
2075# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076# --------------------------------------------
2077# Tries to find the compile-time value of EXPR in a program that includes
2078# INCLUDES, setting VAR accordingly. Returns whether the value could be
2079# computed
2080ac_fn_c_compute_int ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  if test "$cross_compiling" = yes; then
2084    # Depending upon the size, compute the lo and hi bounds.
2085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087$4
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(($2) >= 0)];
2092test_array [0] = 0;
2093return test_array [0];
2094
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  ac_lo=0 ac_mid=0
2101  while :; do
2102    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h.  */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109test_array [0] = 0;
2110return test_array [0];
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117  ac_hi=$ac_mid; break
2118else
2119  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120			if test $ac_lo -le $ac_mid; then
2121			  ac_lo= ac_hi=
2122			  break
2123			fi
2124			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127  done
2128else
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) < 0)];
2136test_array [0] = 0;
2137return test_array [0];
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144  ac_hi=-1 ac_mid=-1
2145  while :; do
2146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h.  */
2148$4
2149int
2150main ()
2151{
2152static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2153test_array [0] = 0;
2154return test_array [0];
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161  ac_lo=$ac_mid; break
2162else
2163  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2164			if test $ac_mid -le $ac_hi; then
2165			  ac_lo= ac_hi=
2166			  break
2167			fi
2168			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171  done
2172else
2173  ac_lo= ac_hi=
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178# Binary search between lo and hi bounds.
2179while test "x$ac_lo" != "x$ac_hi"; do
2180  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h.  */
2183$4
2184int
2185main ()
2186{
2187static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188test_array [0] = 0;
2189return test_array [0];
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196  ac_hi=$ac_mid
2197else
2198  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201done
2202case $ac_lo in #((
2203?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204'') ac_retval=1 ;;
2205esac
2206  else
2207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210static long int longval () { return $2; }
2211static unsigned long int ulongval () { return $2; }
2212#include <stdio.h>
2213#include <stdlib.h>
2214int
2215main ()
2216{
2217
2218  FILE *f = fopen ("conftest.val", "w");
2219  if (! f)
2220    return 1;
2221  if (($2) < 0)
2222    {
2223      long int i = longval ();
2224      if (i != ($2))
2225	return 1;
2226      fprintf (f, "%ld", i);
2227    }
2228  else
2229    {
2230      unsigned long int i = ulongval ();
2231      if (i != ($2))
2232	return 1;
2233      fprintf (f, "%lu", i);
2234    }
2235  /* Do not output a trailing newline, as this causes \r\n confusion
2236     on some platforms.  */
2237  return ferror (f) || fclose (f) != 0;
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_run "$LINENO"; then :
2244  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245else
2246  ac_retval=1
2247fi
2248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249  conftest.$ac_objext conftest.beam conftest.$ac_ext
2250rm -f conftest.val
2251
2252  fi
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254  as_fn_set_status $ac_retval
2255
2256} # ac_fn_c_compute_int
2257
2258# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2259# ---------------------------------------------
2260# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2261# accordingly.
2262ac_fn_c_check_decl ()
2263{
2264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265  as_decl_name=`echo $2|sed 's/ *(.*//'`
2266  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2268$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2269if eval \${$3+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h.  */
2274$4
2275int
2276main ()
2277{
2278#ifndef $as_decl_name
2279#ifdef __cplusplus
2280  (void) $as_decl_use;
2281#else
2282  (void) $as_decl_name;
2283#endif
2284#endif
2285
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_compile "$LINENO"; then :
2291  eval "$3=yes"
2292else
2293  eval "$3=no"
2294fi
2295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296fi
2297eval ac_res=\$$3
2298	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301
2302} # ac_fn_c_check_decl
2303
2304# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2305# ----------------------------------------------------
2306# Tries to find if the field MEMBER exists in type AGGR, after including
2307# INCLUDES, setting cache variable VAR accordingly.
2308ac_fn_c_check_member ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2312$as_echo_n "checking for $2.$3... " >&6; }
2313if eval \${$4+:} false; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h.  */
2318$5
2319int
2320main ()
2321{
2322static $2 ac_aggr;
2323if (ac_aggr.$3)
2324return 0;
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  eval "$4=yes"
2331else
2332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h.  */
2334$5
2335int
2336main ()
2337{
2338static $2 ac_aggr;
2339if (sizeof ac_aggr.$3)
2340return 0;
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345if ac_fn_c_try_compile "$LINENO"; then :
2346  eval "$4=yes"
2347else
2348  eval "$4=no"
2349fi
2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351fi
2352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353fi
2354eval ac_res=\$$4
2355	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356$as_echo "$ac_res" >&6; }
2357  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358
2359} # ac_fn_c_check_member
2360cat >config.log <<_ACEOF
2361This file contains any messages produced by compilers while
2362running configure, to aid debugging if configure makes a mistake.
2363
2364It was created by unbound $as_me 1.5.9, which was
2365generated by GNU Autoconf 2.69.  Invocation command line was
2366
2367  $ $0 $@
2368
2369_ACEOF
2370exec 5>>config.log
2371{
2372cat <<_ASUNAME
2373## --------- ##
2374## Platform. ##
2375## --------- ##
2376
2377hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2378uname -m = `(uname -m) 2>/dev/null || echo unknown`
2379uname -r = `(uname -r) 2>/dev/null || echo unknown`
2380uname -s = `(uname -s) 2>/dev/null || echo unknown`
2381uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382
2383/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2384/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2385
2386/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2387/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2388/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2389/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2390/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2391/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2392/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2393
2394_ASUNAME
2395
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401    $as_echo "PATH: $as_dir"
2402  done
2403IFS=$as_save_IFS
2404
2405} >&5
2406
2407cat >&5 <<_ACEOF
2408
2409
2410## ----------- ##
2411## Core tests. ##
2412## ----------- ##
2413
2414_ACEOF
2415
2416
2417# Keep a trace of the command line.
2418# Strip out --no-create and --no-recursion so they do not pile up.
2419# Strip out --silent because we don't want to record it for future runs.
2420# Also quote any args containing shell meta-characters.
2421# Make two passes to allow for proper duplicate-argument suppression.
2422ac_configure_args=
2423ac_configure_args0=
2424ac_configure_args1=
2425ac_must_keep_next=false
2426for ac_pass in 1 2
2427do
2428  for ac_arg
2429  do
2430    case $ac_arg in
2431    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2432    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2433    | -silent | --silent | --silen | --sile | --sil)
2434      continue ;;
2435    *\'*)
2436      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2437    esac
2438    case $ac_pass in
2439    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440    2)
2441      as_fn_append ac_configure_args1 " '$ac_arg'"
2442      if test $ac_must_keep_next = true; then
2443	ac_must_keep_next=false # Got value, back to normal.
2444      else
2445	case $ac_arg in
2446	  *=* | --config-cache | -C | -disable-* | --disable-* \
2447	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2448	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2449	  | -with-* | --with-* | -without-* | --without-* | --x)
2450	    case "$ac_configure_args0 " in
2451	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2452	    esac
2453	    ;;
2454	  -* ) ac_must_keep_next=true ;;
2455	esac
2456      fi
2457      as_fn_append ac_configure_args " '$ac_arg'"
2458      ;;
2459    esac
2460  done
2461done
2462{ ac_configure_args0=; unset ac_configure_args0;}
2463{ ac_configure_args1=; unset ac_configure_args1;}
2464
2465# When interrupted or exit'd, cleanup temporary files, and complete
2466# config.log.  We remove comments because anyway the quotes in there
2467# would cause problems or look ugly.
2468# WARNING: Use '\'' to represent an apostrophe within the trap.
2469# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2470trap 'exit_status=$?
2471  # Save into config.log some information that might help in debugging.
2472  {
2473    echo
2474
2475    $as_echo "## ---------------- ##
2476## Cache variables. ##
2477## ---------------- ##"
2478    echo
2479    # The following way of writing the cache mishandles newlines in values,
2480(
2481  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2482    eval ac_val=\$$ac_var
2483    case $ac_val in #(
2484    *${as_nl}*)
2485      case $ac_var in #(
2486      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2487$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2488      esac
2489      case $ac_var in #(
2490      _ | IFS | as_nl) ;; #(
2491      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2492      *) { eval $ac_var=; unset $ac_var;} ;;
2493      esac ;;
2494    esac
2495  done
2496  (set) 2>&1 |
2497    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2498    *${as_nl}ac_space=\ *)
2499      sed -n \
2500	"s/'\''/'\''\\\\'\'''\''/g;
2501	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2502      ;; #(
2503    *)
2504      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505      ;;
2506    esac |
2507    sort
2508)
2509    echo
2510
2511    $as_echo "## ----------------- ##
2512## Output variables. ##
2513## ----------------- ##"
2514    echo
2515    for ac_var in $ac_subst_vars
2516    do
2517      eval ac_val=\$$ac_var
2518      case $ac_val in
2519      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520      esac
2521      $as_echo "$ac_var='\''$ac_val'\''"
2522    done | sort
2523    echo
2524
2525    if test -n "$ac_subst_files"; then
2526      $as_echo "## ------------------- ##
2527## File substitutions. ##
2528## ------------------- ##"
2529      echo
2530      for ac_var in $ac_subst_files
2531      do
2532	eval ac_val=\$$ac_var
2533	case $ac_val in
2534	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535	esac
2536	$as_echo "$ac_var='\''$ac_val'\''"
2537      done | sort
2538      echo
2539    fi
2540
2541    if test -s confdefs.h; then
2542      $as_echo "## ----------- ##
2543## confdefs.h. ##
2544## ----------- ##"
2545      echo
2546      cat confdefs.h
2547      echo
2548    fi
2549    test "$ac_signal" != 0 &&
2550      $as_echo "$as_me: caught signal $ac_signal"
2551    $as_echo "$as_me: exit $exit_status"
2552  } >&5
2553  rm -f core *.core core.conftest.* &&
2554    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2555    exit $exit_status
2556' 0
2557for ac_signal in 1 2 13 15; do
2558  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2559done
2560ac_signal=0
2561
2562# confdefs.h avoids OS command line length limits that DEFS can exceed.
2563rm -f -r conftest* confdefs.h
2564
2565$as_echo "/* confdefs.h */" > confdefs.h
2566
2567# Predefined preprocessor variables.
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_NAME "$PACKAGE_NAME"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2575_ACEOF
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_VERSION "$PACKAGE_VERSION"
2579_ACEOF
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_STRING "$PACKAGE_STRING"
2583_ACEOF
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_URL "$PACKAGE_URL"
2591_ACEOF
2592
2593
2594# Let the site file select an alternate cache file if it wants to.
2595# Prefer an explicitly selected file to automatically selected ones.
2596ac_site_file1=NONE
2597ac_site_file2=NONE
2598if test -n "$CONFIG_SITE"; then
2599  # We do not want a PATH search for config.site.
2600  case $CONFIG_SITE in #((
2601    -*)  ac_site_file1=./$CONFIG_SITE;;
2602    */*) ac_site_file1=$CONFIG_SITE;;
2603    *)   ac_site_file1=./$CONFIG_SITE;;
2604  esac
2605elif test "x$prefix" != xNONE; then
2606  ac_site_file1=$prefix/share/config.site
2607  ac_site_file2=$prefix/etc/config.site
2608else
2609  ac_site_file1=$ac_default_prefix/share/config.site
2610  ac_site_file2=$ac_default_prefix/etc/config.site
2611fi
2612for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613do
2614  test "x$ac_site_file" = xNONE && continue
2615  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2616    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2617$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2618    sed 's/^/| /' "$ac_site_file" >&5
2619    . "$ac_site_file" \
2620      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622as_fn_error $? "failed to load site script $ac_site_file
2623See \`config.log' for more details" "$LINENO" 5; }
2624  fi
2625done
2626
2627if test -r "$cache_file"; then
2628  # Some versions of bash will fail to source /dev/null (special files
2629  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2630  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2631    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2632$as_echo "$as_me: loading cache $cache_file" >&6;}
2633    case $cache_file in
2634      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2635      *)                      . "./$cache_file";;
2636    esac
2637  fi
2638else
2639  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2640$as_echo "$as_me: creating cache $cache_file" >&6;}
2641  >$cache_file
2642fi
2643
2644# Check that the precious variables saved in the cache have kept the same
2645# value.
2646ac_cache_corrupted=false
2647for ac_var in $ac_precious_vars; do
2648  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649  eval ac_new_set=\$ac_env_${ac_var}_set
2650  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651  eval ac_new_val=\$ac_env_${ac_var}_value
2652  case $ac_old_set,$ac_new_set in
2653    set,)
2654      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2655$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656      ac_cache_corrupted=: ;;
2657    ,set)
2658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2660      ac_cache_corrupted=: ;;
2661    ,);;
2662    *)
2663      if test "x$ac_old_val" != "x$ac_new_val"; then
2664	# differences in whitespace do not lead to failure.
2665	ac_old_val_w=`echo x $ac_old_val`
2666	ac_new_val_w=`echo x $ac_new_val`
2667	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670	  ac_cache_corrupted=:
2671	else
2672	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2673$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674	  eval $ac_var=\$ac_old_val
2675	fi
2676	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2677$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2678	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2679$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2680      fi;;
2681  esac
2682  # Pass precious variables to config.status.
2683  if test "$ac_new_set" = set; then
2684    case $ac_new_val in
2685    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2686    *) ac_arg=$ac_var=$ac_new_val ;;
2687    esac
2688    case " $ac_configure_args " in
2689      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2690      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2691    esac
2692  fi
2693done
2694if $ac_cache_corrupted; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700fi
2701## -------------------- ##
2702## Main body of script. ##
2703## -------------------- ##
2704
2705ac_ext=c
2706ac_cpp='$CPP $CPPFLAGS'
2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711
2712UNBOUND_VERSION_MAJOR=1
2713
2714UNBOUND_VERSION_MINOR=5
2715
2716UNBOUND_VERSION_MICRO=9
2717
2718
2719LIBUNBOUND_CURRENT=6
2720LIBUNBOUND_REVISION=1
2721LIBUNBOUND_AGE=4
2722# 1.0.0 had 0:12:0
2723# 1.0.1 had 0:13:0
2724# 1.0.2 had 0:14:0
2725# 1.1.0 had 0:15:0
2726# 1.1.1 had 0:16:0
2727# 1.2.0 had 0:17:0
2728# 1.2.1 had 0:18:0
2729# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2730# 1.3.1 had 1:1:0
2731# 1.3.2 had 1:2:0
2732# 1.3.3 had 1:3:0
2733# 1.3.4 had 1:4:0
2734# 1.4.0-snapshots had 1:5:0
2735# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2736# 1.4.1 had 2:1:0
2737# 1.4.2 had 2:2:0
2738# 1.4.3 had 2:3:0
2739# 1.4.4 had 2:4:0
2740# 1.4.5 had 2:5:0
2741# 1.4.6 had 2:6:0
2742# 1.4.7 had 2:7:0
2743# 1.4.8 had 2:8:0
2744# 1.4.9 had 2:9:0
2745# 1.4.10 had 2:10:0
2746# 1.4.11 had 2:11:0
2747# 1.4.12 had 2:12:0
2748# 1.4.13 had 2:13:0
2749# and 1.4.13p1 and 1.4.13.p2
2750# 1.4.14 had 2:14:0
2751# 1.4.15 had 3:0:1 # adds ub_version()
2752# 1.4.16 had 3:1:1
2753# 1.4.17 had 3:2:1
2754# 1.4.18 had 3:3:1
2755# 1.4.19 had 3:4:1
2756# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2757# 1.4.21 had 4:1:2
2758# 1.4.22 had 4:1:2
2759# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2760# 1.5.1 had 5:3:3
2761# 1.5.2 had 5:5:3
2762# 1.5.3 had 5:6:3
2763# 1.5.4 had 5:7:3
2764# 1.5.5 had 5:8:3
2765# 1.5.6 had 5:9:3
2766# 1.5.7 had 5:10:3
2767# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2768# 1.5.9 had 6:1:4
2769
2770#   Current  -- the number of the binary API that we're implementing
2771#   Revision -- which iteration of the implementation of the binary
2772#               API are we supplying?
2773#   Age      -- How many previous binary API versions do we also
2774#               support?
2775#
2776# If we release a new version that does not change the binary API,
2777# increment Revision.
2778#
2779# If we release a new version that changes the binary API, but does
2780# not break programs compiled against the old binary API, increment
2781# Current and Age.  Set Revision to 0, since this is the first
2782# implementation of the new API.
2783#
2784# Otherwise, we're changing the binary API and breaking bakward
2785# compatibility with old binaries.  Increment Current.  Set Age to 0,
2786# since we're backward compatible with no previous APIs.  Set Revision
2787# to 0 too.
2788
2789
2790
2791
2792CFLAGS="$CFLAGS"
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798if test -n "$ac_tool_prefix"; then
2799  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
2803if ${ac_cv_prog_CC+:} false; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  if test -n "$CC"; then
2807  ac_cv_prog_CC="$CC" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821  done
2822IFS=$as_save_IFS
2823
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829$as_echo "$CC" >&6; }
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$ac_cv_prog_CC"; then
2838  ac_ct_CC=$CC
2839  # Extract the first word of "gcc", so it can be a program name with args.
2840set dummy gcc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$ac_ct_CC"; then
2847  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856    ac_cv_prog_ac_ct_CC="gcc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869$as_echo "$ac_ct_CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875  if test "x$ac_ct_CC" = x; then
2876    CC=""
2877  else
2878    case $cross_compiling:$ac_tool_warned in
2879yes:)
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884    CC=$ac_ct_CC
2885  fi
2886else
2887  CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2891          if test -n "$ac_tool_prefix"; then
2892    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if ${ac_cv_prog_CC+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$CC"; then
2900  ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909    ac_cv_prog_CC="${ac_tool_prefix}cc"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929  fi
2930fi
2931if test -z "$CC"; then
2932  # Extract the first word of "cc", so it can be a program name with args.
2933set dummy cc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_CC+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$CC"; then
2940  ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942  ac_prog_rejected=no
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951       ac_prog_rejected=yes
2952       continue
2953     fi
2954    ac_cv_prog_CC="cc"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962if test $ac_prog_rejected = yes; then
2963  # We found a bogon in the path, so make sure we never use it.
2964  set dummy $ac_cv_prog_CC
2965  shift
2966  if test $# != 0; then
2967    # We chose a different compiler from the bogus one.
2968    # However, it has the same basename, so the bogon will be chosen
2969    # first if we set CC to just the basename; use the full file name.
2970    shift
2971    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972  fi
2973fi
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986fi
2987if test -z "$CC"; then
2988  if test -n "$ac_tool_prefix"; then
2989  for ac_prog in cl.exe
2990  do
2991    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_CC+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$CC"; then
2999  ac_cv_prog_CC="$CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018CC=$ac_cv_prog_CC
3019if test -n "$CC"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021$as_echo "$CC" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028    test -n "$CC" && break
3029  done
3030fi
3031if test -z "$CC"; then
3032  ac_ct_CC=$CC
3033  for ac_prog in cl.exe
3034do
3035  # Extract the first word of "$ac_prog", so it can be a program name with args.
3036set dummy $ac_prog; ac_word=$2
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test -n "$ac_ct_CC"; then
3043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  test -z "$as_dir" && as_dir=.
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052    ac_cv_prog_ac_ct_CC="$ac_prog"
3053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063if test -n "$ac_ct_CC"; then
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065$as_echo "$ac_ct_CC" >&6; }
3066else
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072  test -n "$ac_ct_CC" && break
3073done
3074
3075  if test "x$ac_ct_CC" = x; then
3076    CC=""
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    CC=$ac_ct_CC
3085  fi
3086fi
3087
3088fi
3089
3090
3091test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093as_fn_error $? "no acceptable C compiler found in \$PATH
3094See \`config.log' for more details" "$LINENO" 5; }
3095
3096# Provide some information about the compiler.
3097$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3098set X $ac_compile
3099ac_compiler=$2
3100for ac_option in --version -v -V -qversion; do
3101  { { ac_try="$ac_compiler $ac_option >&5"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109  ac_status=$?
3110  if test -s conftest.err; then
3111    sed '10a\
3112... rest of stderr output deleted ...
3113         10q' conftest.err >conftest.er1
3114    cat conftest.er1 >&5
3115  fi
3116  rm -f conftest.er1 conftest.err
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }
3119done
3120
3121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132ac_clean_files_save=$ac_clean_files
3133ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134# Try to create an executable without -o first, disregard a.out.
3135# It will help us diagnose broken compilers, and finding out an intuition
3136# of exeext.
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3138$as_echo_n "checking whether the C compiler works... " >&6; }
3139ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140
3141# The possible output files:
3142ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3143
3144ac_rmfiles=
3145for ac_file in $ac_files
3146do
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150  esac
3151done
3152rm -f $ac_rmfiles
3153
3154if { { ac_try="$ac_link_default"
3155case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160$as_echo "$ac_try_echo"; } >&5
3161  (eval "$ac_link_default") 2>&5
3162  ac_status=$?
3163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164  test $ac_status = 0; }; then :
3165  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3168# so that the user can short-circuit this test for compilers unknown to
3169# Autoconf.
3170for ac_file in $ac_files ''
3171do
3172  test -f "$ac_file" || continue
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3175	;;
3176    [ab].out )
3177	# We found the default executable, but exeext='' is most
3178	# certainly right.
3179	break;;
3180    *.* )
3181	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182	then :; else
3183	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184	fi
3185	# We set ac_cv_exeext here because the later test for it is not
3186	# safe: cross compilers may not add the suffix if given an `-o'
3187	# argument, so we may need to know it at that point already.
3188	# Even if this section looks crufty: it has the advantage of
3189	# actually working.
3190	break;;
3191    * )
3192	break;;
3193  esac
3194done
3195test "$ac_cv_exeext" = no && ac_cv_exeext=
3196
3197else
3198  ac_file=''
3199fi
3200if test -z "$ac_file"; then :
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203$as_echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208as_fn_error 77 "C compiler cannot create executables
3209See \`config.log' for more details" "$LINENO" 5; }
3210else
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212$as_echo "yes" >&6; }
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215$as_echo_n "checking for C compiler default output file name... " >&6; }
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217$as_echo "$ac_file" >&6; }
3218ac_exeext=$ac_cv_exeext
3219
3220rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221ac_clean_files=$ac_clean_files_save
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223$as_echo_n "checking for suffix of executables... " >&6; }
3224if { { ac_try="$ac_link"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3237# work properly (i.e., refer to `conftest.exe'), while it won't with
3238# `rm'.
3239for ac_file in conftest.exe conftest conftest.*; do
3240  test -f "$ac_file" || continue
3241  case $ac_file in
3242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244	  break;;
3245    * ) break;;
3246  esac
3247done
3248else
3249  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3252See \`config.log' for more details" "$LINENO" 5; }
3253fi
3254rm -f conftest conftest$ac_cv_exeext
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256$as_echo "$ac_cv_exeext" >&6; }
3257
3258rm -f conftest.$ac_ext
3259EXEEXT=$ac_cv_exeext
3260ac_exeext=$EXEEXT
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263#include <stdio.h>
3264int
3265main ()
3266{
3267FILE *f = fopen ("conftest.out", "w");
3268 return ferror (f) || fclose (f) != 0;
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274ac_clean_files="$ac_clean_files conftest.out"
3275# Check that the compiler produces executables we can run.  If not, either
3276# the compiler is broken, or we cross compile.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3278$as_echo_n "checking whether we are cross compiling... " >&6; }
3279if test "$cross_compiling" != yes; then
3280  { { ac_try="$ac_link"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link") 2>&5
3288  ac_status=$?
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }
3291  if { ac_try='./conftest$ac_cv_exeext'
3292  { { case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
3298  (eval "$ac_try") 2>&5
3299  ac_status=$?
3300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301  test $ac_status = 0; }; }; then
3302    cross_compiling=no
3303  else
3304    if test "$cross_compiling" = maybe; then
3305	cross_compiling=yes
3306    else
3307	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error $? "cannot run C compiled programs.
3310If you meant to cross compile, use \`--host'.
3311See \`config.log' for more details" "$LINENO" 5; }
3312    fi
3313  fi
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3316$as_echo "$cross_compiling" >&6; }
3317
3318rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3319ac_clean_files=$ac_clean_files_save
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321$as_echo_n "checking for suffix of object files... " >&6; }
3322if ${ac_cv_objext+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.o conftest.obj
3337if { { ac_try="$ac_compile"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo"; } >&5
3344  (eval "$ac_compile") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }; then :
3348  for ac_file in conftest.o conftest.obj conftest.*; do
3349  test -f "$ac_file" || continue;
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353       break;;
3354  esac
3355done
3356else
3357  $as_echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362as_fn_error $? "cannot compute suffix of object files: cannot compile
3363See \`config.log' for more details" "$LINENO" 5; }
3364fi
3365rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368$as_echo "$ac_cv_objext" >&6; }
3369OBJEXT=$ac_cv_objext
3370ac_objext=$OBJEXT
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373if ${ac_cv_c_compiler_gnu+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382#ifndef __GNUC__
3383       choke me
3384#endif
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390if ac_fn_c_try_compile "$LINENO"; then :
3391  ac_compiler_gnu=yes
3392else
3393  ac_compiler_gnu=no
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_cv_c_compiler_gnu=$ac_compiler_gnu
3397
3398fi
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401if test $ac_compiler_gnu = yes; then
3402  GCC=yes
3403else
3404  GCC=
3405fi
3406ac_test_CFLAGS=${CFLAGS+set}
3407ac_save_CFLAGS=$CFLAGS
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409$as_echo_n "checking whether $CC accepts -g... " >&6; }
3410if ${ac_cv_prog_cc_g+:} false; then :
3411  $as_echo_n "(cached) " >&6
3412else
3413  ac_save_c_werror_flag=$ac_c_werror_flag
3414   ac_c_werror_flag=yes
3415   ac_cv_prog_cc_g=no
3416   CFLAGS="-g"
3417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428if ac_fn_c_try_compile "$LINENO"; then :
3429  ac_cv_prog_cc_g=yes
3430else
3431  CFLAGS=""
3432      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443if ac_fn_c_try_compile "$LINENO"; then :
3444
3445else
3446  ac_c_werror_flag=$ac_save_c_werror_flag
3447	 CFLAGS="-g"
3448	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459if ac_fn_c_try_compile "$LINENO"; then :
3460  ac_cv_prog_cc_g=yes
3461fi
3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463fi
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467   ac_c_werror_flag=$ac_save_c_werror_flag
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470$as_echo "$ac_cv_prog_cc_g" >&6; }
3471if test "$ac_test_CFLAGS" = set; then
3472  CFLAGS=$ac_save_CFLAGS
3473elif test $ac_cv_prog_cc_g = yes; then
3474  if test "$GCC" = yes; then
3475    CFLAGS="-g -O2"
3476  else
3477    CFLAGS="-g"
3478  fi
3479else
3480  if test "$GCC" = yes; then
3481    CFLAGS="-O2"
3482  else
3483    CFLAGS=
3484  fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488if ${ac_cv_prog_cc_c89+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  ac_cv_prog_cc_c89=no
3492ac_save_CC=$CC
3493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#include <stdarg.h>
3496#include <stdio.h>
3497struct stat;
3498/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3499struct buf { int x; };
3500FILE * (*rcsopen) (struct buf *, struct stat *, int);
3501static char *e (p, i)
3502     char **p;
3503     int i;
3504{
3505  return p[i];
3506}
3507static char *f (char * (*g) (char **, int), char **p, ...)
3508{
3509  char *s;
3510  va_list v;
3511  va_start (v,p);
3512  s = g (p, va_arg (v,int));
3513  va_end (v);
3514  return s;
3515}
3516
3517/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3518   function prototypes and stuff, but not '\xHH' hex character constants.
3519   These don't provoke an error unfortunately, instead are silently treated
3520   as 'x'.  The following induces an error, until -std is added to get
3521   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3522   array size at least.  It's necessary to write '\x00'==0 to get something
3523   that's true only with -std.  */
3524int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3525
3526/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3527   inside strings and character constants.  */
3528#define FOO(x) 'x'
3529int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3530
3531int test (int i, double x);
3532struct s1 {int (*f) (int a);};
3533struct s2 {int (*f) (double a);};
3534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535int argc;
3536char **argv;
3537int
3538main ()
3539{
3540return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3546	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3547do
3548  CC="$ac_save_CC $ac_arg"
3549  if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_c89=$ac_arg
3551fi
3552rm -f core conftest.err conftest.$ac_objext
3553  test "x$ac_cv_prog_cc_c89" != "xno" && break
3554done
3555rm -f conftest.$ac_ext
3556CC=$ac_save_CC
3557
3558fi
3559# AC_CACHE_VAL
3560case "x$ac_cv_prog_cc_c89" in
3561  x)
3562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3563$as_echo "none needed" >&6; } ;;
3564  xno)
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566$as_echo "unsupported" >&6; } ;;
3567  *)
3568    CC="$CC $ac_cv_prog_cc_c89"
3569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3570$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3571esac
3572if test "x$ac_cv_prog_cc_c89" != xno; then :
3573
3574fi
3575
3576ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582
3583ac_ext=c
3584ac_cpp='$CPP $CPPFLAGS'
3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3589$as_echo_n "checking how to run the C preprocessor... " >&6; }
3590# On Suns, sometimes $CPP names a directory.
3591if test -n "$CPP" && test -d "$CPP"; then
3592  CPP=
3593fi
3594if test -z "$CPP"; then
3595  if ${ac_cv_prog_CPP+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598      # Double quotes because CPP needs to be expanded
3599    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600    do
3601      ac_preproc_ok=false
3602for ac_c_preproc_warn_flag in '' yes
3603do
3604  # Use a header file that comes with gcc, so configuring glibc
3605  # with a fresh cross-compiler works.
3606  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607  # <limits.h> exists even on freestanding compilers.
3608  # On the NeXT, cc -E runs the code through the compiler's parser,
3609  # not just through cpp. "Syntax error" is here to catch this case.
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#ifdef __STDC__
3613# include <limits.h>
3614#else
3615# include <assert.h>
3616#endif
3617		     Syntax error
3618_ACEOF
3619if ac_fn_c_try_cpp "$LINENO"; then :
3620
3621else
3622  # Broken: fails on valid input.
3623continue
3624fi
3625rm -f conftest.err conftest.i conftest.$ac_ext
3626
3627  # OK, works on sane cases.  Now check whether nonexistent headers
3628  # can be detected and how.
3629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631#include <ac_nonexistent.h>
3632_ACEOF
3633if ac_fn_c_try_cpp "$LINENO"; then :
3634  # Broken: success on invalid input.
3635continue
3636else
3637  # Passes both tests.
3638ac_preproc_ok=:
3639break
3640fi
3641rm -f conftest.err conftest.i conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.i conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then :
3647  break
3648fi
3649
3650    done
3651    ac_cv_prog_CPP=$CPP
3652
3653fi
3654  CPP=$ac_cv_prog_CPP
3655else
3656  ac_cv_prog_CPP=$CPP
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3659$as_echo "$CPP" >&6; }
3660ac_preproc_ok=false
3661for ac_c_preproc_warn_flag in '' yes
3662do
3663  # Use a header file that comes with gcc, so configuring glibc
3664  # with a fresh cross-compiler works.
3665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3666  # <limits.h> exists even on freestanding compilers.
3667  # On the NeXT, cc -E runs the code through the compiler's parser,
3668  # not just through cpp. "Syntax error" is here to catch this case.
3669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671#ifdef __STDC__
3672# include <limits.h>
3673#else
3674# include <assert.h>
3675#endif
3676		     Syntax error
3677_ACEOF
3678if ac_fn_c_try_cpp "$LINENO"; then :
3679
3680else
3681  # Broken: fails on valid input.
3682continue
3683fi
3684rm -f conftest.err conftest.i conftest.$ac_ext
3685
3686  # OK, works on sane cases.  Now check whether nonexistent headers
3687  # can be detected and how.
3688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690#include <ac_nonexistent.h>
3691_ACEOF
3692if ac_fn_c_try_cpp "$LINENO"; then :
3693  # Broken: success on invalid input.
3694continue
3695else
3696  # Passes both tests.
3697ac_preproc_ok=:
3698break
3699fi
3700rm -f conftest.err conftest.i conftest.$ac_ext
3701
3702done
3703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704rm -f conftest.i conftest.err conftest.$ac_ext
3705if $ac_preproc_ok; then :
3706
3707else
3708  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3711See \`config.log' for more details" "$LINENO" 5; }
3712fi
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3722$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3723if ${ac_cv_path_GREP+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  if test -z "$GREP"; then
3727  ac_path_GREP_found=false
3728  # Loop through the user's path and test for each of PROGNAME-LIST
3729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731do
3732  IFS=$as_save_IFS
3733  test -z "$as_dir" && as_dir=.
3734    for ac_prog in grep ggrep; do
3735    for ac_exec_ext in '' $ac_executable_extensions; do
3736      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3737      as_fn_executable_p "$ac_path_GREP" || continue
3738# Check for GNU ac_path_GREP and select it if it is found.
3739  # Check for GNU $ac_path_GREP
3740case `"$ac_path_GREP" --version 2>&1` in
3741*GNU*)
3742  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3743*)
3744  ac_count=0
3745  $as_echo_n 0123456789 >"conftest.in"
3746  while :
3747  do
3748    cat "conftest.in" "conftest.in" >"conftest.tmp"
3749    mv "conftest.tmp" "conftest.in"
3750    cp "conftest.in" "conftest.nl"
3751    $as_echo 'GREP' >> "conftest.nl"
3752    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754    as_fn_arith $ac_count + 1 && ac_count=$as_val
3755    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3756      # Best one so far, save it but keep looking for a better one
3757      ac_cv_path_GREP="$ac_path_GREP"
3758      ac_path_GREP_max=$ac_count
3759    fi
3760    # 10*(2^10) chars as input seems more than enough
3761    test $ac_count -gt 10 && break
3762  done
3763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764esac
3765
3766      $ac_path_GREP_found && break 3
3767    done
3768  done
3769  done
3770IFS=$as_save_IFS
3771  if test -z "$ac_cv_path_GREP"; then
3772    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3773  fi
3774else
3775  ac_cv_path_GREP=$GREP
3776fi
3777
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3780$as_echo "$ac_cv_path_GREP" >&6; }
3781 GREP="$ac_cv_path_GREP"
3782
3783
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3785$as_echo_n "checking for egrep... " >&6; }
3786if ${ac_cv_path_EGREP+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3790   then ac_cv_path_EGREP="$GREP -E"
3791   else
3792     if test -z "$EGREP"; then
3793  ac_path_EGREP_found=false
3794  # Loop through the user's path and test for each of PROGNAME-LIST
3795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_prog in egrep; do
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3803      as_fn_executable_p "$ac_path_EGREP" || continue
3804# Check for GNU ac_path_EGREP and select it if it is found.
3805  # Check for GNU $ac_path_EGREP
3806case `"$ac_path_EGREP" --version 2>&1` in
3807*GNU*)
3808  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809*)
3810  ac_count=0
3811  $as_echo_n 0123456789 >"conftest.in"
3812  while :
3813  do
3814    cat "conftest.in" "conftest.in" >"conftest.tmp"
3815    mv "conftest.tmp" "conftest.in"
3816    cp "conftest.in" "conftest.nl"
3817    $as_echo 'EGREP' >> "conftest.nl"
3818    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820    as_fn_arith $ac_count + 1 && ac_count=$as_val
3821    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3822      # Best one so far, save it but keep looking for a better one
3823      ac_cv_path_EGREP="$ac_path_EGREP"
3824      ac_path_EGREP_max=$ac_count
3825    fi
3826    # 10*(2^10) chars as input seems more than enough
3827    test $ac_count -gt 10 && break
3828  done
3829  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830esac
3831
3832      $ac_path_EGREP_found && break 3
3833    done
3834  done
3835  done
3836IFS=$as_save_IFS
3837  if test -z "$ac_cv_path_EGREP"; then
3838    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3839  fi
3840else
3841  ac_cv_path_EGREP=$EGREP
3842fi
3843
3844   fi
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3847$as_echo "$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3849
3850
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3852$as_echo_n "checking for ANSI C header files... " >&6; }
3853if ${ac_cv_header_stdc+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858#include <stdlib.h>
3859#include <stdarg.h>
3860#include <string.h>
3861#include <float.h>
3862
3863int
3864main ()
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_cv_header_stdc=yes
3873else
3874  ac_cv_header_stdc=no
3875fi
3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877
3878if test $ac_cv_header_stdc = yes; then
3879  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882#include <string.h>
3883
3884_ACEOF
3885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886  $EGREP "memchr" >/dev/null 2>&1; then :
3887
3888else
3889  ac_cv_header_stdc=no
3890fi
3891rm -f conftest*
3892
3893fi
3894
3895if test $ac_cv_header_stdc = yes; then
3896  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899#include <stdlib.h>
3900
3901_ACEOF
3902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903  $EGREP "free" >/dev/null 2>&1; then :
3904
3905else
3906  ac_cv_header_stdc=no
3907fi
3908rm -f conftest*
3909
3910fi
3911
3912if test $ac_cv_header_stdc = yes; then
3913  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914  if test "$cross_compiling" = yes; then :
3915  :
3916else
3917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h.  */
3919#include <ctype.h>
3920#include <stdlib.h>
3921#if ((' ' & 0x0FF) == 0x020)
3922# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3923# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3924#else
3925# define ISLOWER(c) \
3926		   (('a' <= (c) && (c) <= 'i') \
3927		     || ('j' <= (c) && (c) <= 'r') \
3928		     || ('s' <= (c) && (c) <= 'z'))
3929# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3930#endif
3931
3932#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3933int
3934main ()
3935{
3936  int i;
3937  for (i = 0; i < 256; i++)
3938    if (XOR (islower (i), ISLOWER (i))
3939	|| toupper (i) != TOUPPER (i))
3940      return 2;
3941  return 0;
3942}
3943_ACEOF
3944if ac_fn_c_try_run "$LINENO"; then :
3945
3946else
3947  ac_cv_header_stdc=no
3948fi
3949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3950  conftest.$ac_objext conftest.beam conftest.$ac_ext
3951fi
3952
3953fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3956$as_echo "$ac_cv_header_stdc" >&6; }
3957if test $ac_cv_header_stdc = yes; then
3958
3959$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3960
3961fi
3962
3963# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3964for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3965		  inttypes.h stdint.h unistd.h
3966do :
3967  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3969"
3970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3971  cat >>confdefs.h <<_ACEOF
3972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973_ACEOF
3974
3975fi
3976
3977done
3978
3979
3980
3981  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3982if test "x$ac_cv_header_minix_config_h" = xyes; then :
3983  MINIX=yes
3984else
3985  MINIX=
3986fi
3987
3988
3989  if test "$MINIX" = yes; then
3990
3991$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3992
3993
3994$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3995
3996
3997$as_echo "#define _MINIX 1" >>confdefs.h
3998
3999  fi
4000
4001
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4003$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4004if ${ac_cv_safe_to_define___extensions__+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009
4010#         define __EXTENSIONS__ 1
4011          $ac_includes_default
4012int
4013main ()
4014{
4015
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020if ac_fn_c_try_compile "$LINENO"; then :
4021  ac_cv_safe_to_define___extensions__=yes
4022else
4023  ac_cv_safe_to_define___extensions__=no
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4028$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4029  test $ac_cv_safe_to_define___extensions__ = yes &&
4030    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4031
4032  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4033
4034  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4035
4036  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4037
4038  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4039
4040
4041
4042if test "$ac_cv_header_minix_config_h" = "yes"; then
4043
4044$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4045
4046fi
4047
4048case "$prefix" in
4049        NONE)
4050		prefix="/usr/local"
4051        ;;
4052esac
4053
4054# are we on MinGW?
4055if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4056else
4057	if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4058	else on_mingw="no"; fi
4059fi
4060
4061#
4062# Determine configuration file
4063# the eval is to evaluate shell expansion twice
4064if test $on_mingw = "no"; then
4065  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4066else
4067  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4068fi
4069
4070# Check whether --with-conf_file was given.
4071if test "${with_conf_file+set}" = set; then :
4072  withval=$with_conf_file; ub_conf_file="$withval"
4073fi
4074
4075
4076hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4077
4078
4079cat >>confdefs.h <<_ACEOF
4080#define CONFIGFILE "$hdr_config"
4081_ACEOF
4082
4083ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4084$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4085	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4086	 X"$ub_conf_file" : 'X\(//\)$' \| \
4087	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4088$as_echo X"$ub_conf_file" |
4089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4090	    s//\1/
4091	    q
4092	  }
4093	  /^X\(\/\/\)[^/].*/{
4094	    s//\1/
4095	    q
4096	  }
4097	  /^X\(\/\/\)$/{
4098	    s//\1/
4099	    q
4100	  }
4101	  /^X\(\/\).*/{
4102	    s//\1/
4103	    q
4104	  }
4105	  s/.*/./; q'`
4106
4107
4108# Determine run, chroot directory and pidfile locations
4109
4110# Check whether --with-run-dir was given.
4111if test "${with_run_dir+set}" = set; then :
4112  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4113else
4114  if test $on_mingw = no; then
4115    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4116else
4117    UNBOUND_RUN_DIR=""
4118fi
4119
4120fi
4121
4122
4123hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4124
4125
4126cat >>confdefs.h <<_ACEOF
4127#define RUN_DIR "$hdr_run"
4128_ACEOF
4129
4130
4131
4132# Check whether --with-chroot-dir was given.
4133if test "${with_chroot_dir+set}" = set; then :
4134  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4135else
4136  if test $on_mingw = no; then
4137    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4138else
4139    UNBOUND_CHROOT_DIR=""
4140fi
4141
4142fi
4143
4144
4145hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4146
4147
4148cat >>confdefs.h <<_ACEOF
4149#define CHROOT_DIR "$hdr_chroot"
4150_ACEOF
4151
4152
4153
4154# Check whether --with-share-dir was given.
4155if test "${with_share_dir+set}" = set; then :
4156  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4157else
4158  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4159fi
4160
4161
4162
4163cat >>confdefs.h <<_ACEOF
4164#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4165_ACEOF
4166
4167
4168
4169# Check whether --with-pidfile was given.
4170if test "${with_pidfile+set}" = set; then :
4171  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4172else
4173  if test $on_mingw = no; then
4174    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4175else
4176    UNBOUND_PIDFILE=""
4177fi
4178
4179fi
4180
4181
4182hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4183
4184
4185cat >>confdefs.h <<_ACEOF
4186#define PIDFILE "$hdr_pid"
4187_ACEOF
4188
4189
4190
4191# Check whether --with-rootkey-file was given.
4192if test "${with_rootkey_file+set}" = set; then :
4193  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4194else
4195  if test $on_mingw = no; then
4196    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4197else
4198    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4199fi
4200
4201fi
4202
4203
4204hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4205
4206
4207cat >>confdefs.h <<_ACEOF
4208#define ROOT_ANCHOR_FILE "$hdr_rkey"
4209_ACEOF
4210
4211
4212
4213# Check whether --with-rootcert-file was given.
4214if test "${with_rootcert_file+set}" = set; then :
4215  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4216else
4217  if test $on_mingw = no; then
4218    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4219else
4220    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4221fi
4222
4223fi
4224
4225
4226hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4227
4228
4229cat >>confdefs.h <<_ACEOF
4230#define ROOT_CERT_FILE "$hdr_rpem"
4231_ACEOF
4232
4233
4234
4235# Check whether --with-username was given.
4236if test "${with_username+set}" = set; then :
4237  withval=$with_username; UNBOUND_USERNAME="$withval"
4238else
4239  UNBOUND_USERNAME="unbound"
4240fi
4241
4242
4243
4244cat >>confdefs.h <<_ACEOF
4245#define UB_USERNAME "$UNBOUND_USERNAME"
4246_ACEOF
4247
4248
4249
4250$as_echo "#define WINVER 0x0502" >>confdefs.h
4251
4252wnvs=`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/' `
4253
4254
4255cat >>confdefs.h <<_ACEOF
4256#define RSRC_PACKAGE_VERSION $wnvs
4257_ACEOF
4258
4259
4260# Checks for typedefs, structures, and compiler characteristics.
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4262$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4263if ${ac_cv_c_const+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268
4269int
4270main ()
4271{
4272
4273#ifndef __cplusplus
4274  /* Ultrix mips cc rejects this sort of thing.  */
4275  typedef int charset[2];
4276  const charset cs = { 0, 0 };
4277  /* SunOS 4.1.1 cc rejects this.  */
4278  char const *const *pcpcc;
4279  char **ppc;
4280  /* NEC SVR4.0.2 mips cc rejects this.  */
4281  struct point {int x, y;};
4282  static struct point const zero = {0,0};
4283  /* AIX XL C 1.02.0.0 rejects this.
4284     It does not let you subtract one const X* pointer from another in
4285     an arm of an if-expression whose if-part is not a constant
4286     expression */
4287  const char *g = "string";
4288  pcpcc = &g + (g ? g-g : 0);
4289  /* HPUX 7.0 cc rejects these. */
4290  ++pcpcc;
4291  ppc = (char**) pcpcc;
4292  pcpcc = (char const *const *) ppc;
4293  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4294    char tx;
4295    char *t = &tx;
4296    char const *s = 0 ? (char *) 0 : (char const *) 0;
4297
4298    *t++ = 0;
4299    if (s) return 0;
4300  }
4301  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4302    int x[] = {25, 17};
4303    const int *foo = &x[0];
4304    ++foo;
4305  }
4306  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4307    typedef const int *iptr;
4308    iptr p = 0;
4309    ++p;
4310  }
4311  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4312       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4313    struct s { int j; const int *ap[3]; } bx;
4314    struct s *b = &bx; b->j = 5;
4315  }
4316  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4317    const int foo = 10;
4318    if (!foo) return 0;
4319  }
4320  return !cs[0] && !zero.x;
4321#endif
4322
4323  ;
4324  return 0;
4325}
4326_ACEOF
4327if ac_fn_c_try_compile "$LINENO"; then :
4328  ac_cv_c_const=yes
4329else
4330  ac_cv_c_const=no
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4335$as_echo "$ac_cv_c_const" >&6; }
4336if test $ac_cv_c_const = no; then
4337
4338$as_echo "#define const /**/" >>confdefs.h
4339
4340fi
4341
4342ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347
4348# allow user to override the -g -O2 flags.
4349if test "x$CFLAGS" = "x" ; then
4350
4351
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4353$as_echo_n "checking whether $CC supports -g... " >&6; }
4354cache=`echo g | sed 'y%.=/+-%___p_%'`
4355if eval \${cv_prog_cc_flag_$cache+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358
4359echo 'void f(void){}' >conftest.c
4360if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4361eval "cv_prog_cc_flag_$cache=yes"
4362else
4363eval "cv_prog_cc_flag_$cache=no"
4364fi
4365rm -f conftest conftest.o conftest.c
4366
4367fi
4368
4369if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371$as_echo "yes" >&6; }
4372:
4373CFLAGS="$CFLAGS -g"
4374else
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377:
4378
4379fi
4380
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4384$as_echo_n "checking whether $CC supports -O2... " >&6; }
4385cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4386if eval \${cv_prog_cc_flag_$cache+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389
4390echo 'void f(void){}' >conftest.c
4391if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4392eval "cv_prog_cc_flag_$cache=yes"
4393else
4394eval "cv_prog_cc_flag_$cache=no"
4395fi
4396rm -f conftest conftest.o conftest.c
4397
4398fi
4399
4400if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402$as_echo "yes" >&6; }
4403:
4404CFLAGS="$CFLAGS -O2"
4405else
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
4408:
4409
4410fi
4411
4412fi
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418if test -n "$ac_tool_prefix"; then
4419  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4420set dummy ${ac_tool_prefix}gcc; ac_word=$2
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422$as_echo_n "checking for $ac_word... " >&6; }
4423if ${ac_cv_prog_CC+:} false; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  if test -n "$CC"; then
4427  ac_cv_prog_CC="$CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432  IFS=$as_save_IFS
4433  test -z "$as_dir" && as_dir=.
4434    for ac_exec_ext in '' $ac_executable_extensions; do
4435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438    break 2
4439  fi
4440done
4441  done
4442IFS=$as_save_IFS
4443
4444fi
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449$as_echo "$CC" >&6; }
4450else
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
4453fi
4454
4455
4456fi
4457if test -z "$ac_cv_prog_CC"; then
4458  ac_ct_CC=$CC
4459  # Extract the first word of "gcc", so it can be a program name with args.
4460set dummy gcc; ac_word=$2
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
4463if ${ac_cv_prog_ac_ct_CC+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466  if test -n "$ac_ct_CC"; then
4467  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  test -z "$as_dir" && as_dir=.
4474    for ac_exec_ext in '' $ac_executable_extensions; do
4475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476    ac_cv_prog_ac_ct_CC="gcc"
4477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481  done
4482IFS=$as_save_IFS
4483
4484fi
4485fi
4486ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487if test -n "$ac_ct_CC"; then
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4489$as_echo "$ac_ct_CC" >&6; }
4490else
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492$as_echo "no" >&6; }
4493fi
4494
4495  if test "x$ac_ct_CC" = x; then
4496    CC=""
4497  else
4498    case $cross_compiling:$ac_tool_warned in
4499yes:)
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502ac_tool_warned=yes ;;
4503esac
4504    CC=$ac_ct_CC
4505  fi
4506else
4507  CC="$ac_cv_prog_CC"
4508fi
4509
4510if test -z "$CC"; then
4511          if test -n "$ac_tool_prefix"; then
4512    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}cc; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if ${ac_cv_prog_CC+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -n "$CC"; then
4520  ac_cv_prog_CC="$CC" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_CC="${ac_tool_prefix}cc"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539CC=$ac_cv_prog_CC
4540if test -n "$CC"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4542$as_echo "$CC" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548
4549  fi
4550fi
4551if test -z "$CC"; then
4552  # Extract the first word of "cc", so it can be a program name with args.
4553set dummy cc; ac_word=$2
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if ${ac_cv_prog_CC+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -n "$CC"; then
4560  ac_cv_prog_CC="$CC" # Let the user override the test.
4561else
4562  ac_prog_rejected=no
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4571       ac_prog_rejected=yes
4572       continue
4573     fi
4574    ac_cv_prog_CC="cc"
4575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582if test $ac_prog_rejected = yes; then
4583  # We found a bogon in the path, so make sure we never use it.
4584  set dummy $ac_cv_prog_CC
4585  shift
4586  if test $# != 0; then
4587    # We chose a different compiler from the bogus one.
4588    # However, it has the same basename, so the bogon will be chosen
4589    # first if we set CC to just the basename; use the full file name.
4590    shift
4591    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4592  fi
4593fi
4594fi
4595fi
4596CC=$ac_cv_prog_CC
4597if test -n "$CC"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4599$as_echo "$CC" >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604
4605
4606fi
4607if test -z "$CC"; then
4608  if test -n "$ac_tool_prefix"; then
4609  for ac_prog in cl.exe
4610  do
4611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if ${ac_cv_prog_CC+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if test -n "$CC"; then
4619  ac_cv_prog_CC="$CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_exec_ext in '' $ac_executable_extensions; do
4627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630    break 2
4631  fi
4632done
4633  done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638CC=$ac_cv_prog_CC
4639if test -n "$CC"; then
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641$as_echo "$CC" >&6; }
4642else
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648    test -n "$CC" && break
4649  done
4650fi
4651if test -z "$CC"; then
4652  ac_ct_CC=$CC
4653  for ac_prog in cl.exe
4654do
4655  # Extract the first word of "$ac_prog", so it can be a program name with args.
4656set dummy $ac_prog; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if ${ac_cv_prog_ac_ct_CC+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test -n "$ac_ct_CC"; then
4663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672    ac_cv_prog_ac_ct_CC="$ac_prog"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682ac_ct_CC=$ac_cv_prog_ac_ct_CC
4683if test -n "$ac_ct_CC"; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4685$as_echo "$ac_ct_CC" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691
4692  test -n "$ac_ct_CC" && break
4693done
4694
4695  if test "x$ac_ct_CC" = x; then
4696    CC=""
4697  else
4698    case $cross_compiling:$ac_tool_warned in
4699yes:)
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704    CC=$ac_ct_CC
4705  fi
4706fi
4707
4708fi
4709
4710
4711test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4713as_fn_error $? "no acceptable C compiler found in \$PATH
4714See \`config.log' for more details" "$LINENO" 5; }
4715
4716# Provide some information about the compiler.
4717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4718set X $ac_compile
4719ac_compiler=$2
4720for ac_option in --version -v -V -qversion; do
4721  { { ac_try="$ac_compiler $ac_option >&5"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727$as_echo "$ac_try_echo"; } >&5
4728  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4729  ac_status=$?
4730  if test -s conftest.err; then
4731    sed '10a\
4732... rest of stderr output deleted ...
4733         10q' conftest.err >conftest.er1
4734    cat conftest.er1 >&5
4735  fi
4736  rm -f conftest.er1 conftest.err
4737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738  test $ac_status = 0; }
4739done
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4743if ${ac_cv_c_compiler_gnu+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748
4749int
4750main ()
4751{
4752#ifndef __GNUC__
4753       choke me
4754#endif
4755
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760if ac_fn_c_try_compile "$LINENO"; then :
4761  ac_compiler_gnu=yes
4762else
4763  ac_compiler_gnu=no
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4771if test $ac_compiler_gnu = yes; then
4772  GCC=yes
4773else
4774  GCC=
4775fi
4776ac_test_CFLAGS=${CFLAGS+set}
4777ac_save_CFLAGS=$CFLAGS
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4779$as_echo_n "checking whether $CC accepts -g... " >&6; }
4780if ${ac_cv_prog_cc_g+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  ac_save_c_werror_flag=$ac_c_werror_flag
4784   ac_c_werror_flag=yes
4785   ac_cv_prog_cc_g=no
4786   CFLAGS="-g"
4787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h.  */
4789
4790int
4791main ()
4792{
4793
4794  ;
4795  return 0;
4796}
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"; then :
4799  ac_cv_prog_cc_g=yes
4800else
4801  CFLAGS=""
4802      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808
4809  ;
4810  return 0;
4811}
4812_ACEOF
4813if ac_fn_c_try_compile "$LINENO"; then :
4814
4815else
4816  ac_c_werror_flag=$ac_save_c_werror_flag
4817	 CFLAGS="-g"
4818	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820
4821int
4822main ()
4823{
4824
4825  ;
4826  return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_compile "$LINENO"; then :
4830  ac_cv_prog_cc_g=yes
4831fi
4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833fi
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837   ac_c_werror_flag=$ac_save_c_werror_flag
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4840$as_echo "$ac_cv_prog_cc_g" >&6; }
4841if test "$ac_test_CFLAGS" = set; then
4842  CFLAGS=$ac_save_CFLAGS
4843elif test $ac_cv_prog_cc_g = yes; then
4844  if test "$GCC" = yes; then
4845    CFLAGS="-g -O2"
4846  else
4847    CFLAGS="-g"
4848  fi
4849else
4850  if test "$GCC" = yes; then
4851    CFLAGS="-O2"
4852  else
4853    CFLAGS=
4854  fi
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4858if ${ac_cv_prog_cc_c89+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  ac_cv_prog_cc_c89=no
4862ac_save_CC=$CC
4863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h.  */
4865#include <stdarg.h>
4866#include <stdio.h>
4867struct stat;
4868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4869struct buf { int x; };
4870FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871static char *e (p, i)
4872     char **p;
4873     int i;
4874{
4875  return p[i];
4876}
4877static char *f (char * (*g) (char **, int), char **p, ...)
4878{
4879  char *s;
4880  va_list v;
4881  va_start (v,p);
4882  s = g (p, va_arg (v,int));
4883  va_end (v);
4884  return s;
4885}
4886
4887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4888   function prototypes and stuff, but not '\xHH' hex character constants.
4889   These don't provoke an error unfortunately, instead are silently treated
4890   as 'x'.  The following induces an error, until -std is added to get
4891   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4892   array size at least.  It's necessary to write '\x00'==0 to get something
4893   that's true only with -std.  */
4894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
4896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897   inside strings and character constants.  */
4898#define FOO(x) 'x'
4899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900
4901int test (int i, double x);
4902struct s1 {int (*f) (int a);};
4903struct s2 {int (*f) (double a);};
4904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905int argc;
4906char **argv;
4907int
4908main ()
4909{
4910return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4911  ;
4912  return 0;
4913}
4914_ACEOF
4915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4917do
4918  CC="$ac_save_CC $ac_arg"
4919  if ac_fn_c_try_compile "$LINENO"; then :
4920  ac_cv_prog_cc_c89=$ac_arg
4921fi
4922rm -f core conftest.err conftest.$ac_objext
4923  test "x$ac_cv_prog_cc_c89" != "xno" && break
4924done
4925rm -f conftest.$ac_ext
4926CC=$ac_save_CC
4927
4928fi
4929# AC_CACHE_VAL
4930case "x$ac_cv_prog_cc_c89" in
4931  x)
4932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933$as_echo "none needed" >&6; } ;;
4934  xno)
4935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936$as_echo "unsupported" >&6; } ;;
4937  *)
4938    CC="$CC $ac_cv_prog_cc_c89"
4939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941esac
4942if test "x$ac_cv_prog_cc_c89" != xno; then :
4943
4944fi
4945
4946ac_ext=c
4947ac_cpp='$CPP $CPPFLAGS'
4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4954$as_echo_n "checking $CC dependency flag... " >&6; }
4955echo 'void f(){}' >conftest.c
4956if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4957	DEPFLAG="-MM"
4958else
4959  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4960	DEPFLAG="-xM1"
4961  else
4962	DEPFLAG="-MM"  # dunno do something
4963  fi
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4966$as_echo "$DEPFLAG" >&6; }
4967rm -f conftest.c
4968
4969
4970
4971
4972
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4974$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4975cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4976if eval \${cv_prog_cc_flag_$cache+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979
4980echo 'void f(void){}' >conftest.c
4981if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4982eval "cv_prog_cc_flag_$cache=yes"
4983else
4984eval "cv_prog_cc_flag_$cache=no"
4985fi
4986rm -f conftest conftest.o conftest.c
4987
4988fi
4989
4990if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992$as_echo "yes" >&6; }
4993:
4994ERRFLAG="-Werror"
4995else
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998:
4999ERRFLAG="-errwarn"
5000fi
5001
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5005$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5006cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5007if eval \${cv_prog_cc_flag_$cache+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010
5011echo 'void f(void){}' >conftest.c
5012if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5013eval "cv_prog_cc_flag_$cache=yes"
5014else
5015eval "cv_prog_cc_flag_$cache=no"
5016fi
5017rm -f conftest conftest.o conftest.c
5018
5019fi
5020
5021if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5023$as_echo "yes" >&6; }
5024:
5025ERRFLAG="$ERRFLAG -Wall"
5026else
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029:
5030ERRFLAG="$ERRFLAG -errfmt"
5031fi
5032
5033
5034
5035
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5038$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5039cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5040if eval \${cv_prog_cc_flag_$cache+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043
5044echo 'void f(void){}' >conftest.c
5045if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5046eval "cv_prog_cc_flag_$cache=yes"
5047else
5048eval "cv_prog_cc_flag_$cache=no"
5049fi
5050rm -f conftest conftest.o conftest.c
5051
5052fi
5053
5054if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056$as_echo "yes" >&6; }
5057:
5058C99FLAG="-std=c99"
5059else
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062:
5063
5064fi
5065
5066
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5069$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5070cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5071if eval \${cv_prog_cc_flag_$cache+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074
5075echo 'void f(void){}' >conftest.c
5076if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5077eval "cv_prog_cc_flag_$cache=yes"
5078else
5079eval "cv_prog_cc_flag_$cache=no"
5080fi
5081rm -f conftest conftest.o conftest.c
5082
5083fi
5084
5085if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087$as_echo "yes" >&6; }
5088:
5089C99FLAG="-xc99"
5090else
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092$as_echo "no" >&6; }
5093:
5094
5095fi
5096
5097
5098for ac_header in getopt.h time.h
5099do :
5100  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5102"
5103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5104  cat >>confdefs.h <<_ACEOF
5105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106_ACEOF
5107
5108fi
5109
5110done
5111
5112
5113
5114
5115
5116{ $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
5117$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; }
5118cache=`$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`
5119if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122
5123echo '
5124#include "confdefs.h"
5125#include <stdlib.h>
5126#include <ctype.h>
5127#include <sys/time.h>
5128#ifdef HAVE_TIME_H
5129#include <time.h>
5130#endif
5131#include <unistd.h>
5132#include <netdb.h>
5133#ifdef HAVE_GETOPT_H
5134#include <getopt.h>
5135#endif
5136
5137int test() {
5138	int a;
5139	char **opts = NULL;
5140	struct timeval tv;
5141	char *t;
5142	time_t time = 0;
5143	char *buf = NULL;
5144	const char* str = NULL;
5145	struct msghdr msg;
5146	msg.msg_control = 0;
5147	t = ctime_r(&time, buf);
5148	tv.tv_usec = 10;
5149	srandom(32);
5150	a = getopt(2, opts, "a");
5151	a = isascii(32);
5152	str = gai_strerror(0);
5153	if(str && t && tv.tv_usec && msg.msg_control)
5154		a = 0;
5155	return a;
5156}
5157' > conftest.c
5158echo 'void f(){}' >>conftest.c
5159if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5160eval "cv_prog_cc_flag_needed_$cache=no"
5161else
5162
5163if 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
5164eval "cv_prog_cc_flag_needed_$cache=yes"
5165else
5166eval "cv_prog_cc_flag_needed_$cache=fail"
5167#echo 'Test with flag fails too!'
5168#cat conftest.c
5169#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"
5170#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`
5171#exit 1
5172fi
5173
5174fi
5175rm -f conftest conftest.c conftest.o
5176
5177fi
5178
5179if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5181$as_echo "yes" >&6; }
5182:
5183CFLAGS="$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"
5184else
5185if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188#echo 'Test with flag is no!'
5189#cat conftest.c
5190#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"
5191#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`
5192#exit 1
5193:
5194
5195else
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5197$as_echo "failed" >&6; }
5198:
5199
5200fi
5201fi
5202
5203
5204
5205
5206
5207{ $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
5208$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; }
5209cache=`$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`
5210if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213
5214echo '
5215#include "confdefs.h"
5216#include <stdlib.h>
5217#include <ctype.h>
5218#include <sys/time.h>
5219#ifdef HAVE_TIME_H
5220#include <time.h>
5221#endif
5222#include <unistd.h>
5223#include <netdb.h>
5224#ifdef HAVE_GETOPT_H
5225#include <getopt.h>
5226#endif
5227
5228int test() {
5229	int a;
5230	char **opts = NULL;
5231	struct timeval tv;
5232	char *t;
5233	time_t time = 0;
5234	char *buf = NULL;
5235	const char* str = NULL;
5236	struct msghdr msg;
5237	msg.msg_control = 0;
5238	t = ctime_r(&time, buf);
5239	tv.tv_usec = 10;
5240	srandom(32);
5241	a = getopt(2, opts, "a");
5242	a = isascii(32);
5243	str = gai_strerror(0);
5244	if(str && t && tv.tv_usec && msg.msg_control)
5245		a = 0;
5246	return a;
5247}
5248' > conftest.c
5249echo 'void f(){}' >>conftest.c
5250if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5251eval "cv_prog_cc_flag_needed_$cache=no"
5252else
5253
5254if test -z "`$CC $CPPFLAGS $CFLAGS $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
5255eval "cv_prog_cc_flag_needed_$cache=yes"
5256else
5257eval "cv_prog_cc_flag_needed_$cache=fail"
5258#echo 'Test with flag fails too!'
5259#cat conftest.c
5260#echo "$CC $CPPFLAGS $CFLAGS $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"
5261#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`
5262#exit 1
5263fi
5264
5265fi
5266rm -f conftest conftest.c conftest.o
5267
5268fi
5269
5270if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272$as_echo "yes" >&6; }
5273:
5274CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5275else
5276if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279#echo 'Test with flag is no!'
5280#cat conftest.c
5281#echo "$CC $CPPFLAGS $CFLAGS $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"
5282#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`
5283#exit 1
5284:
5285
5286else
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5288$as_echo "failed" >&6; }
5289:
5290
5291fi
5292fi
5293
5294
5295
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5299$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5300cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5301if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304
5305echo '
5306#include <stdbool.h>
5307#include <ctype.h>
5308int test() {
5309        int a = 0;
5310        return a;
5311}
5312' > conftest.c
5313echo 'void f(){}' >>conftest.c
5314if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5315eval "cv_prog_cc_flag_needed_$cache=no"
5316else
5317
5318if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5319eval "cv_prog_cc_flag_needed_$cache=yes"
5320else
5321eval "cv_prog_cc_flag_needed_$cache=fail"
5322#echo 'Test with flag fails too!'
5323#cat conftest.c
5324#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5325#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5326#exit 1
5327fi
5328
5329fi
5330rm -f conftest conftest.c conftest.o
5331
5332fi
5333
5334if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
5337:
5338CFLAGS="$CFLAGS $C99FLAG"
5339else
5340if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343#echo 'Test with flag is no!'
5344#cat conftest.c
5345#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5346#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5347#exit 1
5348:
5349
5350else
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5352$as_echo "failed" >&6; }
5353:
5354
5355fi
5356fi
5357
5358
5359
5360
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5363$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5364cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5365if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368
5369echo '
5370#include <ctype.h>
5371
5372int test() {
5373        int a;
5374        a = isascii(32);
5375        return a;
5376}
5377' > conftest.c
5378echo 'void f(){}' >>conftest.c
5379if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5380eval "cv_prog_cc_flag_needed_$cache=no"
5381else
5382
5383if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5384eval "cv_prog_cc_flag_needed_$cache=yes"
5385else
5386eval "cv_prog_cc_flag_needed_$cache=fail"
5387#echo 'Test with flag fails too!'
5388#cat conftest.c
5389#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5390#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5391#exit 1
5392fi
5393
5394fi
5395rm -f conftest conftest.c conftest.o
5396
5397fi
5398
5399if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401$as_echo "yes" >&6; }
5402:
5403CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5404else
5405if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408#echo 'Test with flag is no!'
5409#cat conftest.c
5410#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5411#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5412#exit 1
5413:
5414
5415else
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5417$as_echo "failed" >&6; }
5418:
5419
5420fi
5421fi
5422
5423
5424
5425
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5428$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5429cache=_D_GNU_SOURCE
5430if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433
5434echo '
5435#include <netinet/in.h>
5436
5437int test() {
5438        struct in6_pktinfo inf;
5439	int a = (int)sizeof(inf);
5440        return a;
5441}
5442' > conftest.c
5443echo 'void f(){}' >>conftest.c
5444if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5445eval "cv_prog_cc_flag_needed_$cache=no"
5446else
5447
5448if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5449eval "cv_prog_cc_flag_needed_$cache=yes"
5450else
5451eval "cv_prog_cc_flag_needed_$cache=fail"
5452#echo 'Test with flag fails too!'
5453#cat conftest.c
5454#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5455#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5456#exit 1
5457fi
5458
5459fi
5460rm -f conftest conftest.c conftest.o
5461
5462fi
5463
5464if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466$as_echo "yes" >&6; }
5467:
5468CFLAGS="$CFLAGS -D_GNU_SOURCE"
5469else
5470if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473#echo 'Test with flag is no!'
5474#cat conftest.c
5475#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5476#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5477#exit 1
5478:
5479
5480else
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5482$as_echo "failed" >&6; }
5483:
5484
5485fi
5486fi
5487
5488
5489# check again for GNU_SOURCE for setresgid. May fail if setresgid
5490# is not available at all. -D_FRSRESGID is to make this check unique.
5491# otherwise we would get the previous cached result.
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5496$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5497cache=_D_GNU_SOURCE__D_FRSRESGID
5498if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5499  $as_echo_n "(cached) " >&6
5500else
5501
5502echo '
5503#include <unistd.h>
5504
5505int test() {
5506	int a = setresgid(0,0,0);
5507	a = setresuid(0,0,0);
5508        return a;
5509}
5510' > conftest.c
5511echo 'void f(){}' >>conftest.c
5512if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5513eval "cv_prog_cc_flag_needed_$cache=no"
5514else
5515
5516if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5517eval "cv_prog_cc_flag_needed_$cache=yes"
5518else
5519eval "cv_prog_cc_flag_needed_$cache=fail"
5520#echo 'Test with flag fails too!'
5521#cat conftest.c
5522#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5523#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5524#exit 1
5525fi
5526
5527fi
5528rm -f conftest conftest.c conftest.o
5529
5530fi
5531
5532if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5534$as_echo "yes" >&6; }
5535:
5536CFLAGS="$CFLAGS -D_GNU_SOURCE"
5537else
5538if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5541#echo 'Test with flag is no!'
5542#cat conftest.c
5543#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5544#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5545#exit 1
5546:
5547
5548else
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5550$as_echo "failed" >&6; }
5551:
5552
5553fi
5554fi
5555
5556
5557
5558
5559
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5561$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5562cache=_D_POSIX_C_SOURCE_200112
5563if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566
5567echo '
5568#include "confdefs.h"
5569#ifdef HAVE_TIME_H
5570#include <time.h>
5571#endif
5572#include <netdb.h>
5573
5574int test() {
5575        int a = 0;
5576        char *t;
5577        time_t time = 0;
5578        char *buf = NULL;
5579	const char* str = NULL;
5580        t = ctime_r(&time, buf);
5581	str = gai_strerror(0);
5582	if(t && str)
5583		a = 0;
5584        return a;
5585}
5586' > conftest.c
5587echo 'void f(){}' >>conftest.c
5588if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5589eval "cv_prog_cc_flag_needed_$cache=no"
5590else
5591
5592if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5593eval "cv_prog_cc_flag_needed_$cache=yes"
5594else
5595eval "cv_prog_cc_flag_needed_$cache=fail"
5596#echo 'Test with flag fails too!'
5597#cat conftest.c
5598#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5599#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5600#exit 1
5601fi
5602
5603fi
5604rm -f conftest conftest.c conftest.o
5605
5606fi
5607
5608if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610$as_echo "yes" >&6; }
5611:
5612CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5613else
5614if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617#echo 'Test with flag is no!'
5618#cat conftest.c
5619#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5620#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5621#exit 1
5622:
5623
5624else
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5626$as_echo "failed" >&6; }
5627:
5628
5629fi
5630fi
5631
5632
5633
5634
5635
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5637$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5638cache=_D__EXTENSIONS__
5639if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642
5643echo '
5644#include "confdefs.h"
5645#include <stdlib.h>
5646#include <ctype.h>
5647#include <sys/time.h>
5648#ifdef HAVE_TIME_H
5649#include <time.h>
5650#endif
5651#include <unistd.h>
5652#ifdef HAVE_GETOPT_H
5653#include <getopt.h>
5654#endif
5655
5656int test() {
5657        int a;
5658        char **opts = NULL;
5659        struct timeval tv;
5660        tv.tv_usec = 10;
5661        srandom(32);
5662        a = getopt(2, opts, "a");
5663        a = isascii(32);
5664	if(tv.tv_usec)
5665		a = 0;
5666        return a;
5667}
5668' > conftest.c
5669echo 'void f(){}' >>conftest.c
5670if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5671eval "cv_prog_cc_flag_needed_$cache=no"
5672else
5673
5674if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5675eval "cv_prog_cc_flag_needed_$cache=yes"
5676else
5677eval "cv_prog_cc_flag_needed_$cache=fail"
5678#echo 'Test with flag fails too!'
5679#cat conftest.c
5680#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5681#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5682#exit 1
5683fi
5684
5685fi
5686rm -f conftest conftest.c conftest.o
5687
5688fi
5689
5690if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692$as_echo "yes" >&6; }
5693:
5694CFLAGS="$CFLAGS -D__EXTENSIONS__"
5695else
5696if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699#echo 'Test with flag is no!'
5700#cat conftest.c
5701#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5702#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5703#exit 1
5704:
5705
5706else
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5708$as_echo "failed" >&6; }
5709:
5710
5711fi
5712fi
5713
5714
5715
5716
5717# debug mode flags warnings
5718# Check whether --enable-checking was given.
5719if test "${enable_checking+set}" = set; then :
5720  enableval=$enable_checking;
5721fi
5722
5723# Check whether --enable-debug was given.
5724if test "${enable_debug+set}" = set; then :
5725  enableval=$enable_debug;
5726fi
5727
5728if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5729else debug_enabled="$enable_checking"; fi
5730
5731case "$debug_enabled" in
5732        yes)
5733
5734
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5736$as_echo_n "checking whether $CC supports -W... " >&6; }
5737cache=`echo W | sed 'y%.=/+-%___p_%'`
5738if eval \${cv_prog_cc_flag_$cache+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741
5742echo 'void f(void){}' >conftest.c
5743if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5744eval "cv_prog_cc_flag_$cache=yes"
5745else
5746eval "cv_prog_cc_flag_$cache=no"
5747fi
5748rm -f conftest conftest.o conftest.c
5749
5750fi
5751
5752if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754$as_echo "yes" >&6; }
5755:
5756CFLAGS="$CFLAGS -W"
5757else
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760:
5761
5762fi
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5767$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5768cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5769if eval \${cv_prog_cc_flag_$cache+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772
5773echo 'void f(void){}' >conftest.c
5774if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5775eval "cv_prog_cc_flag_$cache=yes"
5776else
5777eval "cv_prog_cc_flag_$cache=no"
5778fi
5779rm -f conftest conftest.o conftest.c
5780
5781fi
5782
5783if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785$as_echo "yes" >&6; }
5786:
5787CFLAGS="$CFLAGS -Wall"
5788else
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791:
5792
5793fi
5794
5795
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5798$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5799cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5800if eval \${cv_prog_cc_flag_$cache+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803
5804echo 'void f(void){}' >conftest.c
5805if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5806eval "cv_prog_cc_flag_$cache=yes"
5807else
5808eval "cv_prog_cc_flag_$cache=no"
5809fi
5810rm -f conftest conftest.o conftest.c
5811
5812fi
5813
5814if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5816$as_echo "yes" >&6; }
5817:
5818CFLAGS="$CFLAGS -Wextra"
5819else
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
5822:
5823
5824fi
5825
5826
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5829$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5830cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5831if eval \${cv_prog_cc_flag_$cache+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834
5835echo 'void f(void){}' >conftest.c
5836if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5837eval "cv_prog_cc_flag_$cache=yes"
5838else
5839eval "cv_prog_cc_flag_$cache=no"
5840fi
5841rm -f conftest conftest.o conftest.c
5842
5843fi
5844
5845if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847$as_echo "yes" >&6; }
5848:
5849CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5850else
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853:
5854
5855fi
5856
5857
5858$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5859
5860		;;
5861	no|*)
5862		# nothing to do.
5863		;;
5864esac
5865
5866    # Check whether --enable-flto was given.
5867if test "${enable_flto+set}" = set; then :
5868  enableval=$enable_flto;
5869fi
5870
5871    if test "x$enable_flto" != "xno"; then :
5872
5873        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5874$as_echo_n "checking if $CC supports -flto... " >&6; }
5875        BAKCFLAGS="$CFLAGS"
5876        CFLAGS="$CFLAGS -flto"
5877        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879
5880int
5881main ()
5882{
5883
5884  ;
5885  return 0;
5886}
5887_ACEOF
5888if ac_fn_c_try_link "$LINENO"; then :
5889
5890            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5891                CFLAGS="$BAKCFLAGS"
5892                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894            else
5895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896$as_echo "yes" >&6; }
5897            fi
5898            rm -f conftest conftest.c conftest.o
5899
5900else
5901  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904rm -f core conftest.err conftest.$ac_objext \
5905    conftest$ac_exeext conftest.$ac_ext
5906
5907fi
5908
5909
5910    # Check whether --enable-pie was given.
5911if test "${enable_pie+set}" = set; then :
5912  enableval=$enable_pie;
5913fi
5914
5915    if test "x$enable_pie" = "xyes"; then :
5916
5917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5918$as_echo_n "checking if $CC supports PIE... " >&6; }
5919	BAKLDFLAGS="$LDFLAGS"
5920	BAKCFLAGS="$CFLAGS"
5921	LDFLAGS="$LDFLAGS -pie"
5922	CFLAGS="$CFLAGS -fPIE"
5923	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925
5926int
5927main ()
5928{
5929
5930  ;
5931  return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
5935
5936	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5937		LDFLAGS="$BAKLDFLAGS"
5938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940	    else
5941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5942$as_echo "yes" >&6; }
5943	    fi
5944	    rm -f conftest conftest.c conftest.o
5945
5946else
5947  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950rm -f core conftest.err conftest.$ac_objext \
5951    conftest$ac_exeext conftest.$ac_ext
5952
5953fi
5954
5955
5956    # Check whether --enable-relro_now was given.
5957if test "${enable_relro_now+set}" = set; then :
5958  enableval=$enable_relro_now;
5959fi
5960
5961    if test "x$enable_relro_now" = "xyes"; then :
5962
5963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5964$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5965	BAKLDFLAGS="$LDFLAGS"
5966	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5967	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969
5970int
5971main ()
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"; then :
5979
5980	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5981		LDFLAGS="$BAKLDFLAGS"
5982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984	    else
5985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5986$as_echo "yes" >&6; }
5987	    fi
5988	    rm -f conftest conftest.c conftest.o
5989
5990else
5991  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994rm -f core conftest.err conftest.$ac_objext \
5995    conftest$ac_exeext conftest.$ac_ext
5996
5997fi
5998
5999
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6001$as_echo_n "checking for inline... " >&6; }
6002if ${ac_cv_c_inline+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  ac_cv_c_inline=no
6006for ac_kw in inline __inline__ __inline; do
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009#ifndef __cplusplus
6010typedef int foo_t;
6011static $ac_kw foo_t static_foo () {return 0; }
6012$ac_kw foo_t foo () {return 0; }
6013#endif
6014
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017  ac_cv_c_inline=$ac_kw
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020  test "$ac_cv_c_inline" != no && break
6021done
6022
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6025$as_echo "$ac_cv_c_inline" >&6; }
6026
6027case $ac_cv_c_inline in
6028  inline | yes) ;;
6029  *)
6030    case $ac_cv_c_inline in
6031      no) ac_val=;;
6032      *) ac_val=$ac_cv_c_inline;;
6033    esac
6034    cat >>confdefs.h <<_ACEOF
6035#ifndef __cplusplus
6036#define inline $ac_val
6037#endif
6038_ACEOF
6039    ;;
6040esac
6041
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6044$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6045if ${ac_cv_c_format_attribute+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  ac_cv_c_format_attribute=no
6049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051#include <stdio.h>
6052void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6053void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6054
6055int
6056main ()
6057{
6058
6059   f ("%s", "str");
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  ac_cv_c_format_attribute="yes"
6067else
6068  ac_cv_c_format_attribute="no"
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072fi
6073
6074
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6076$as_echo "$ac_cv_c_format_attribute" >&6; }
6077if test $ac_cv_c_format_attribute = yes; then
6078
6079$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6080
6081fi
6082
6083
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6085$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6086if ${ac_cv_c_unused_attribute+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  ac_cv_c_unused_attribute=no
6090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092#include <stdio.h>
6093void f (char *u __attribute__((unused)));
6094
6095int
6096main ()
6097{
6098
6099   f ("x");
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"; then :
6106  ac_cv_c_unused_attribute="yes"
6107else
6108  ac_cv_c_unused_attribute="no"
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112fi
6113
6114
6115
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6118$as_echo "$ac_cv_c_unused_attribute" >&6; }
6119if test $ac_cv_c_unused_attribute = yes; then
6120
6121$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6122
6123fi
6124
6125
6126
6127
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6129$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6130if ${ac_cv_c_weak_attribute+:} false; then :
6131  $as_echo_n "(cached) " >&6
6132else
6133  ac_cv_c_weak_attribute=no
6134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h.  */
6136 #include <stdio.h>
6137__attribute__((weak)) void f(int x) { printf("%d", x); }
6138
6139int
6140main ()
6141{
6142
6143   f(1);
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then :
6150  ac_cv_c_weak_attribute="yes"
6151else
6152  ac_cv_c_weak_attribute="no"
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
6156fi
6157
6158
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6160$as_echo "$ac_cv_c_weak_attribute" >&6; }
6161if test $ac_cv_c_weak_attribute = yes; then
6162
6163$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6164
6165fi
6166
6167
6168if test "$srcdir" != "."; then
6169	CPPFLAGS="$CPPFLAGS -I$srcdir"
6170fi
6171
6172
6173
6174for ac_prog in flex lex
6175do
6176  # Extract the first word of "$ac_prog", so it can be a program name with args.
6177set dummy $ac_prog; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if ${ac_cv_prog_LEX+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$LEX"; then
6184  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193    ac_cv_prog_LEX="$ac_prog"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203LEX=$ac_cv_prog_LEX
6204if test -n "$LEX"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6206$as_echo "$LEX" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212
6213  test -n "$LEX" && break
6214done
6215test -n "$LEX" || LEX=":"
6216
6217if test "x$LEX" != "x:"; then
6218  cat >conftest.l <<_ACEOF
6219%%
6220a { ECHO; }
6221b { REJECT; }
6222c { yymore (); }
6223d { yyless (1); }
6224e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6225    yyless ((input () != 0)); }
6226f { unput (yytext[0]); }
6227. { BEGIN INITIAL; }
6228%%
6229#ifdef YYTEXT_POINTER
6230extern char *yytext;
6231#endif
6232int
6233main (void)
6234{
6235  return ! yylex () + ! yywrap ();
6236}
6237_ACEOF
6238{ { ac_try="$LEX conftest.l"
6239case "(($ac_try" in
6240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241  *) ac_try_echo=$ac_try;;
6242esac
6243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6244$as_echo "$ac_try_echo"; } >&5
6245  (eval "$LEX conftest.l") 2>&5
6246  ac_status=$?
6247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248  test $ac_status = 0; }
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6250$as_echo_n "checking lex output file root... " >&6; }
6251if ${ac_cv_prog_lex_root+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254
6255if test -f lex.yy.c; then
6256  ac_cv_prog_lex_root=lex.yy
6257elif test -f lexyy.c; then
6258  ac_cv_prog_lex_root=lexyy
6259else
6260  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6261fi
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6264$as_echo "$ac_cv_prog_lex_root" >&6; }
6265LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6266
6267if test -z "${LEXLIB+set}"; then
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6269$as_echo_n "checking lex library... " >&6; }
6270if ${ac_cv_lib_lex+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273
6274    ac_save_LIBS=$LIBS
6275    ac_cv_lib_lex='none needed'
6276    for ac_lib in '' -lfl -ll; do
6277      LIBS="$ac_lib $ac_save_LIBS"
6278      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280`cat $LEX_OUTPUT_ROOT.c`
6281_ACEOF
6282if ac_fn_c_try_link "$LINENO"; then :
6283  ac_cv_lib_lex=$ac_lib
6284fi
6285rm -f core conftest.err conftest.$ac_objext \
6286    conftest$ac_exeext conftest.$ac_ext
6287      test "$ac_cv_lib_lex" != 'none needed' && break
6288    done
6289    LIBS=$ac_save_LIBS
6290
6291fi
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6293$as_echo "$ac_cv_lib_lex" >&6; }
6294  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6295fi
6296
6297
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6299$as_echo_n "checking whether yytext is a pointer... " >&6; }
6300if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  # POSIX says lex can declare yytext either as a pointer or an array; the
6304# default is implementation-dependent.  Figure out which it is, since
6305# not all implementations provide the %pointer and %array declarations.
6306ac_cv_prog_lex_yytext_pointer=no
6307ac_save_LIBS=$LIBS
6308LIBS="$LEXLIB $ac_save_LIBS"
6309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311
6312  #define YYTEXT_POINTER 1
6313`cat $LEX_OUTPUT_ROOT.c`
6314_ACEOF
6315if ac_fn_c_try_link "$LINENO"; then :
6316  ac_cv_prog_lex_yytext_pointer=yes
6317fi
6318rm -f core conftest.err conftest.$ac_objext \
6319    conftest$ac_exeext conftest.$ac_ext
6320LIBS=$ac_save_LIBS
6321
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6324$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6325if test $ac_cv_prog_lex_yytext_pointer = yes; then
6326
6327$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6328
6329fi
6330rm -f conftest.l $LEX_OUTPUT_ROOT.c
6331
6332fi
6333
6334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6335$as_echo_n "checking for yylex_destroy... " >&6; }
6336	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6337
6338$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6339
6340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6341$as_echo "yes" >&6; }
6342	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }; fi
6344
6345for ac_prog in 'bison -y' byacc
6346do
6347  # Extract the first word of "$ac_prog", so it can be a program name with args.
6348set dummy $ac_prog; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if ${ac_cv_prog_YACC+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$YACC"; then
6355  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364    ac_cv_prog_YACC="$ac_prog"
6365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369  done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374YACC=$ac_cv_prog_YACC
6375if test -n "$YACC"; then
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6377$as_echo "$YACC" >&6; }
6378else
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384  test -n "$YACC" && break
6385done
6386test -n "$YACC" || YACC="yacc"
6387
6388# Extract the first word of "doxygen", so it can be a program name with args.
6389set dummy doxygen; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if ${ac_cv_prog_doxygen+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -n "$doxygen"; then
6396  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401  IFS=$as_save_IFS
6402  test -z "$as_dir" && as_dir=.
6403    for ac_exec_ext in '' $ac_executable_extensions; do
6404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405    ac_cv_prog_doxygen="doxygen"
6406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407    break 2
6408  fi
6409done
6410  done
6411IFS=$as_save_IFS
6412
6413fi
6414fi
6415doxygen=$ac_cv_prog_doxygen
6416if test -n "$doxygen"; then
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6418$as_echo "$doxygen" >&6; }
6419else
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425if test -n "$ac_tool_prefix"; then
6426  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6427set dummy ${ac_tool_prefix}strip; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
6430if ${ac_cv_prog_STRIP+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  if test -n "$STRIP"; then
6434  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439  IFS=$as_save_IFS
6440  test -z "$as_dir" && as_dir=.
6441    for ac_exec_ext in '' $ac_executable_extensions; do
6442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445    break 2
6446  fi
6447done
6448  done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453STRIP=$ac_cv_prog_STRIP
6454if test -n "$STRIP"; then
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6456$as_echo "$STRIP" >&6; }
6457else
6458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462
6463fi
6464if test -z "$ac_cv_prog_STRIP"; then
6465  ac_ct_STRIP=$STRIP
6466  # Extract the first word of "strip", so it can be a program name with args.
6467set dummy strip; ac_word=$2
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469$as_echo_n "checking for $ac_word... " >&6; }
6470if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  if test -n "$ac_ct_STRIP"; then
6474  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479  IFS=$as_save_IFS
6480  test -z "$as_dir" && as_dir=.
6481    for ac_exec_ext in '' $ac_executable_extensions; do
6482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483    ac_cv_prog_ac_ct_STRIP="strip"
6484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485    break 2
6486  fi
6487done
6488  done
6489IFS=$as_save_IFS
6490
6491fi
6492fi
6493ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6494if test -n "$ac_ct_STRIP"; then
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6496$as_echo "$ac_ct_STRIP" >&6; }
6497else
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500fi
6501
6502  if test "x$ac_ct_STRIP" = x; then
6503    STRIP=""
6504  else
6505    case $cross_compiling:$ac_tool_warned in
6506yes:)
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509ac_tool_warned=yes ;;
6510esac
6511    STRIP=$ac_ct_STRIP
6512  fi
6513else
6514  STRIP="$ac_cv_prog_STRIP"
6515fi
6516
6517ac_aux_dir=
6518for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6519  if test -f "$ac_dir/install-sh"; then
6520    ac_aux_dir=$ac_dir
6521    ac_install_sh="$ac_aux_dir/install-sh -c"
6522    break
6523  elif test -f "$ac_dir/install.sh"; then
6524    ac_aux_dir=$ac_dir
6525    ac_install_sh="$ac_aux_dir/install.sh -c"
6526    break
6527  elif test -f "$ac_dir/shtool"; then
6528    ac_aux_dir=$ac_dir
6529    ac_install_sh="$ac_aux_dir/shtool install -c"
6530    break
6531  fi
6532done
6533if test -z "$ac_aux_dir"; then
6534  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6535fi
6536
6537# These three variables are undocumented and unsupported,
6538# and are intended to be withdrawn in a future Autoconf release.
6539# They can cause serious problems if a builder's source tree is in a directory
6540# whose full name contains unusual characters.
6541ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6542ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6543ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6544
6545
6546# Make sure we can run config.sub.
6547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6548  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6551$as_echo_n "checking build system type... " >&6; }
6552if ${ac_cv_build+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  ac_build_alias=$build_alias
6556test "x$ac_build_alias" = x &&
6557  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6558test "x$ac_build_alias" = x &&
6559  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6560ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6561  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6565$as_echo "$ac_cv_build" >&6; }
6566case $ac_cv_build in
6567*-*-*) ;;
6568*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6569esac
6570build=$ac_cv_build
6571ac_save_IFS=$IFS; IFS='-'
6572set x $ac_cv_build
6573shift
6574build_cpu=$1
6575build_vendor=$2
6576shift; shift
6577# Remember, the first character of IFS is used to create $*,
6578# except with old shells:
6579build_os=$*
6580IFS=$ac_save_IFS
6581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6582
6583
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6585$as_echo_n "checking host system type... " >&6; }
6586if ${ac_cv_host+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  if test "x$host_alias" = x; then
6590  ac_cv_host=$ac_cv_build
6591else
6592  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6593    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6594fi
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6598$as_echo "$ac_cv_host" >&6; }
6599case $ac_cv_host in
6600*-*-*) ;;
6601*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6602esac
6603host=$ac_cv_host
6604ac_save_IFS=$IFS; IFS='-'
6605set x $ac_cv_host
6606shift
6607host_cpu=$1
6608host_vendor=$2
6609shift; shift
6610# Remember, the first character of IFS is used to create $*,
6611# except with old shells:
6612host_os=$*
6613IFS=$ac_save_IFS
6614case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6615
6616
6617
6618# skip these tests, we do not need them.
6619
6620
6621
6622
6623
6624
6625
6626
6627# always use ./libtool unless override from commandline (libtool=mylibtool)
6628if test -z "$libtool"; then
6629	libtool="./libtool"
6630fi
6631
6632# avoid libtool max commandline length test on systems that fork slowly.
6633
6634if echo "$host_os" | grep "sunos4" >/dev/null; then
6635	lt_cv_sys_max_cmd_len=32750;
6636fi
6637if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}ar; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_path_AR+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  case $AR in
6646  [\\/]* | ?:[\\/]*)
6647  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6648  ;;
6649  *)
6650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653  IFS=$as_save_IFS
6654  test -z "$as_dir" && as_dir=.
6655    for ac_exec_ext in '' $ac_executable_extensions; do
6656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659    break 2
6660  fi
6661done
6662  done
6663IFS=$as_save_IFS
6664
6665  ;;
6666esac
6667fi
6668AR=$ac_cv_path_AR
6669if test -n "$AR"; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671$as_echo "$AR" >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677
6678fi
6679if test -z "$ac_cv_path_AR"; then
6680  ac_pt_AR=$AR
6681  # Extract the first word of "ar", so it can be a program name with args.
6682set dummy ar; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_path_ac_pt_AR+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  case $ac_pt_AR in
6689  [\\/]* | ?:[\\/]*)
6690  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6691  ;;
6692  *)
6693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708  ;;
6709esac
6710fi
6711ac_pt_AR=$ac_cv_path_ac_pt_AR
6712if test -n "$ac_pt_AR"; then
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6714$as_echo "$ac_pt_AR" >&6; }
6715else
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720  if test "x$ac_pt_AR" = x; then
6721    AR="false"
6722  else
6723    case $cross_compiling:$ac_tool_warned in
6724yes:)
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727ac_tool_warned=yes ;;
6728esac
6729    AR=$ac_pt_AR
6730  fi
6731else
6732  AR="$ac_cv_path_AR"
6733fi
6734
6735if test $AR = false; then
6736	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6737fi
6738
6739case `pwd` in
6740  *\ * | *\	*)
6741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6742$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6743esac
6744
6745
6746
6747macro_version='2.4.6'
6748macro_revision='2.4.6'
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762ltmain=$ac_aux_dir/ltmain.sh
6763
6764# Backslashify metacharacters that are still active within
6765# double-quoted strings.
6766sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6767
6768# Same as above, but do not quote variable references.
6769double_quote_subst='s/\(["`\\]\)/\\\1/g'
6770
6771# Sed substitution to delay expansion of an escaped shell variable in a
6772# double_quote_subst'ed string.
6773delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6774
6775# Sed substitution to delay expansion of an escaped single quote.
6776delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6777
6778# Sed substitution to avoid accidental globbing in evaled expressions
6779no_glob_subst='s/\*/\\\*/g'
6780
6781ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6782ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6783ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6784
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6786$as_echo_n "checking how to print strings... " >&6; }
6787# Test print first, because it will be a builtin if present.
6788if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6789   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6790  ECHO='print -r --'
6791elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6792  ECHO='printf %s\n'
6793else
6794  # Use this function as a fallback that always works.
6795  func_fallback_echo ()
6796  {
6797    eval 'cat <<_LTECHO_EOF
6798$1
6799_LTECHO_EOF'
6800  }
6801  ECHO='func_fallback_echo'
6802fi
6803
6804# func_echo_all arg...
6805# Invoke $ECHO with all args, space-separated.
6806func_echo_all ()
6807{
6808    $ECHO ""
6809}
6810
6811case $ECHO in
6812  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6813$as_echo "printf" >&6; } ;;
6814  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6815$as_echo "print -r" >&6; } ;;
6816  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6817$as_echo "cat" >&6; } ;;
6818esac
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6834$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6835if ${ac_cv_path_SED+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6839     for ac_i in 1 2 3 4 5 6 7; do
6840       ac_script="$ac_script$as_nl$ac_script"
6841     done
6842     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6843     { ac_script=; unset ac_script;}
6844     if test -z "$SED"; then
6845  ac_path_SED_found=false
6846  # Loop through the user's path and test for each of PROGNAME-LIST
6847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852    for ac_prog in sed gsed; do
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6855      as_fn_executable_p "$ac_path_SED" || continue
6856# Check for GNU ac_path_SED and select it if it is found.
6857  # Check for GNU $ac_path_SED
6858case `"$ac_path_SED" --version 2>&1` in
6859*GNU*)
6860  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6861*)
6862  ac_count=0
6863  $as_echo_n 0123456789 >"conftest.in"
6864  while :
6865  do
6866    cat "conftest.in" "conftest.in" >"conftest.tmp"
6867    mv "conftest.tmp" "conftest.in"
6868    cp "conftest.in" "conftest.nl"
6869    $as_echo '' >> "conftest.nl"
6870    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6871    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6872    as_fn_arith $ac_count + 1 && ac_count=$as_val
6873    if test $ac_count -gt ${ac_path_SED_max-0}; then
6874      # Best one so far, save it but keep looking for a better one
6875      ac_cv_path_SED="$ac_path_SED"
6876      ac_path_SED_max=$ac_count
6877    fi
6878    # 10*(2^10) chars as input seems more than enough
6879    test $ac_count -gt 10 && break
6880  done
6881  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6882esac
6883
6884      $ac_path_SED_found && break 3
6885    done
6886  done
6887  done
6888IFS=$as_save_IFS
6889  if test -z "$ac_cv_path_SED"; then
6890    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6891  fi
6892else
6893  ac_cv_path_SED=$SED
6894fi
6895
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6898$as_echo "$ac_cv_path_SED" >&6; }
6899 SED="$ac_cv_path_SED"
6900  rm -f conftest.sed
6901
6902test -z "$SED" && SED=sed
6903Xsed="$SED -e 1s/^X//"
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6916$as_echo_n "checking for fgrep... " >&6; }
6917if ${ac_cv_path_FGREP+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6921   then ac_cv_path_FGREP="$GREP -F"
6922   else
6923     if test -z "$FGREP"; then
6924  ac_path_FGREP_found=false
6925  # Loop through the user's path and test for each of PROGNAME-LIST
6926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931    for ac_prog in fgrep; do
6932    for ac_exec_ext in '' $ac_executable_extensions; do
6933      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6934      as_fn_executable_p "$ac_path_FGREP" || continue
6935# Check for GNU ac_path_FGREP and select it if it is found.
6936  # Check for GNU $ac_path_FGREP
6937case `"$ac_path_FGREP" --version 2>&1` in
6938*GNU*)
6939  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6940*)
6941  ac_count=0
6942  $as_echo_n 0123456789 >"conftest.in"
6943  while :
6944  do
6945    cat "conftest.in" "conftest.in" >"conftest.tmp"
6946    mv "conftest.tmp" "conftest.in"
6947    cp "conftest.in" "conftest.nl"
6948    $as_echo 'FGREP' >> "conftest.nl"
6949    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6950    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6951    as_fn_arith $ac_count + 1 && ac_count=$as_val
6952    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6953      # Best one so far, save it but keep looking for a better one
6954      ac_cv_path_FGREP="$ac_path_FGREP"
6955      ac_path_FGREP_max=$ac_count
6956    fi
6957    # 10*(2^10) chars as input seems more than enough
6958    test $ac_count -gt 10 && break
6959  done
6960  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6961esac
6962
6963      $ac_path_FGREP_found && break 3
6964    done
6965  done
6966  done
6967IFS=$as_save_IFS
6968  if test -z "$ac_cv_path_FGREP"; then
6969    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6970  fi
6971else
6972  ac_cv_path_FGREP=$FGREP
6973fi
6974
6975   fi
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6978$as_echo "$ac_cv_path_FGREP" >&6; }
6979 FGREP="$ac_cv_path_FGREP"
6980
6981
6982test -z "$GREP" && GREP=grep
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002# Check whether --with-gnu-ld was given.
7003if test "${with_gnu_ld+set}" = set; then :
7004  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7005else
7006  with_gnu_ld=no
7007fi
7008
7009ac_prog=ld
7010if test yes = "$GCC"; then
7011  # Check if gcc -print-prog-name=ld gives a path.
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7013$as_echo_n "checking for ld used by $CC... " >&6; }
7014  case $host in
7015  *-*-mingw*)
7016    # gcc leaves a trailing carriage return, which upsets mingw
7017    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7018  *)
7019    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7020  esac
7021  case $ac_prog in
7022    # Accept absolute paths.
7023    [\\/]* | ?:[\\/]*)
7024      re_direlt='/[^/][^/]*/\.\./'
7025      # Canonicalize the pathname of ld
7026      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7027      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7028	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7029      done
7030      test -z "$LD" && LD=$ac_prog
7031      ;;
7032  "")
7033    # If it fails, then pretend we aren't using GCC.
7034    ac_prog=ld
7035    ;;
7036  *)
7037    # If it is relative, then search for the first ld in PATH.
7038    with_gnu_ld=unknown
7039    ;;
7040  esac
7041elif test yes = "$with_gnu_ld"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7043$as_echo_n "checking for GNU ld... " >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7046$as_echo_n "checking for non-GNU ld... " >&6; }
7047fi
7048if ${lt_cv_path_LD+:} false; then :
7049  $as_echo_n "(cached) " >&6
7050else
7051  if test -z "$LD"; then
7052  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7053  for ac_dir in $PATH; do
7054    IFS=$lt_save_ifs
7055    test -z "$ac_dir" && ac_dir=.
7056    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7057      lt_cv_path_LD=$ac_dir/$ac_prog
7058      # Check to see if the program is GNU ld.  I'd rather use --version,
7059      # but apparently some variants of GNU ld only accept -v.
7060      # Break only if it was the GNU/non-GNU ld that we prefer.
7061      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7062      *GNU* | *'with BFD'*)
7063	test no != "$with_gnu_ld" && break
7064	;;
7065      *)
7066	test yes != "$with_gnu_ld" && break
7067	;;
7068      esac
7069    fi
7070  done
7071  IFS=$lt_save_ifs
7072else
7073  lt_cv_path_LD=$LD # Let the user override the test with a path.
7074fi
7075fi
7076
7077LD=$lt_cv_path_LD
7078if test -n "$LD"; then
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7080$as_echo "$LD" >&6; }
7081else
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7087$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7088if ${lt_cv_prog_gnu_ld+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7092case `$LD -v 2>&1 </dev/null` in
7093*GNU* | *'with BFD'*)
7094  lt_cv_prog_gnu_ld=yes
7095  ;;
7096*)
7097  lt_cv_prog_gnu_ld=no
7098  ;;
7099esac
7100fi
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7102$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7103with_gnu_ld=$lt_cv_prog_gnu_ld
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7114$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7115if ${lt_cv_path_NM+:} false; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  if test -n "$NM"; then
7119  # Let the user override the test.
7120  lt_cv_path_NM=$NM
7121else
7122  lt_nm_to_check=${ac_tool_prefix}nm
7123  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7124    lt_nm_to_check="$lt_nm_to_check nm"
7125  fi
7126  for lt_tmp_nm in $lt_nm_to_check; do
7127    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7128    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7129      IFS=$lt_save_ifs
7130      test -z "$ac_dir" && ac_dir=.
7131      tmp_nm=$ac_dir/$lt_tmp_nm
7132      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7133	# Check to see if the nm accepts a BSD-compat flag.
7134	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7135	#   nm: unknown option "B" ignored
7136	# Tru64's nm complains that /dev/null is an invalid object file
7137	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7138	case $build_os in
7139	mingw*) lt_bad_file=conftest.nm/nofile ;;
7140	*) lt_bad_file=/dev/null ;;
7141	esac
7142	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7143	*$lt_bad_file* | *'Invalid file or object type'*)
7144	  lt_cv_path_NM="$tmp_nm -B"
7145	  break 2
7146	  ;;
7147	*)
7148	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7149	  */dev/null*)
7150	    lt_cv_path_NM="$tmp_nm -p"
7151	    break 2
7152	    ;;
7153	  *)
7154	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7155	    continue # so that we can try to find one that supports BSD flags
7156	    ;;
7157	  esac
7158	  ;;
7159	esac
7160      fi
7161    done
7162    IFS=$lt_save_ifs
7163  done
7164  : ${lt_cv_path_NM=no}
7165fi
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7168$as_echo "$lt_cv_path_NM" >&6; }
7169if test no != "$lt_cv_path_NM"; then
7170  NM=$lt_cv_path_NM
7171else
7172  # Didn't find any BSD compatible name lister, look for dumpbin.
7173  if test -n "$DUMPBIN"; then :
7174    # Let the user override the test.
7175  else
7176    if test -n "$ac_tool_prefix"; then
7177  for ac_prog in dumpbin "link -dump"
7178  do
7179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_DUMPBIN+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  if test -n "$DUMPBIN"; then
7187  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206DUMPBIN=$ac_cv_prog_DUMPBIN
7207if test -n "$DUMPBIN"; then
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7209$as_echo "$DUMPBIN" >&6; }
7210else
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215
7216    test -n "$DUMPBIN" && break
7217  done
7218fi
7219if test -z "$DUMPBIN"; then
7220  ac_ct_DUMPBIN=$DUMPBIN
7221  for ac_prog in dumpbin "link -dump"
7222do
7223  # Extract the first word of "$ac_prog", so it can be a program name with args.
7224set dummy $ac_prog; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -n "$ac_ct_DUMPBIN"; then
7231  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238    for ac_exec_ext in '' $ac_executable_extensions; do
7239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245  done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7251if test -n "$ac_ct_DUMPBIN"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7253$as_echo "$ac_ct_DUMPBIN" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259
7260  test -n "$ac_ct_DUMPBIN" && break
7261done
7262
7263  if test "x$ac_ct_DUMPBIN" = x; then
7264    DUMPBIN=":"
7265  else
7266    case $cross_compiling:$ac_tool_warned in
7267yes:)
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270ac_tool_warned=yes ;;
7271esac
7272    DUMPBIN=$ac_ct_DUMPBIN
7273  fi
7274fi
7275
7276    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7277    *COFF*)
7278      DUMPBIN="$DUMPBIN -symbols -headers"
7279      ;;
7280    *)
7281      DUMPBIN=:
7282      ;;
7283    esac
7284  fi
7285
7286  if test : != "$DUMPBIN"; then
7287    NM=$DUMPBIN
7288  fi
7289fi
7290test -z "$NM" && NM=nm
7291
7292
7293
7294
7295
7296
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7298$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7299if ${lt_cv_nm_interface+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  lt_cv_nm_interface="BSD nm"
7303  echo "int some_variable = 0;" > conftest.$ac_ext
7304  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7305  (eval "$ac_compile" 2>conftest.err)
7306  cat conftest.err >&5
7307  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7308  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7309  cat conftest.err >&5
7310  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7311  cat conftest.out >&5
7312  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7313    lt_cv_nm_interface="MS dumpbin"
7314  fi
7315  rm -f conftest*
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7318$as_echo "$lt_cv_nm_interface" >&6; }
7319
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7321$as_echo_n "checking whether ln -s works... " >&6; }
7322LN_S=$as_ln_s
7323if test "$LN_S" = "ln -s"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325$as_echo "yes" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7328$as_echo "no, using $LN_S" >&6; }
7329fi
7330
7331# find the maximum length of command line arguments
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7333$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7334if ${lt_cv_sys_max_cmd_len+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337    i=0
7338  teststring=ABCD
7339
7340  case $build_os in
7341  msdosdjgpp*)
7342    # On DJGPP, this test can blow up pretty badly due to problems in libc
7343    # (any single argument exceeding 2000 bytes causes a buffer overrun
7344    # during glob expansion).  Even if it were fixed, the result of this
7345    # check would be larger than it should be.
7346    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7347    ;;
7348
7349  gnu*)
7350    # Under GNU Hurd, this test is not required because there is
7351    # no limit to the length of command line arguments.
7352    # Libtool will interpret -1 as no limit whatsoever
7353    lt_cv_sys_max_cmd_len=-1;
7354    ;;
7355
7356  cygwin* | mingw* | cegcc*)
7357    # On Win9x/ME, this test blows up -- it succeeds, but takes
7358    # about 5 minutes as the teststring grows exponentially.
7359    # Worse, since 9x/ME are not pre-emptively multitasking,
7360    # you end up with a "frozen" computer, even though with patience
7361    # the test eventually succeeds (with a max line length of 256k).
7362    # Instead, let's just punt: use the minimum linelength reported by
7363    # all of the supported platforms: 8192 (on NT/2K/XP).
7364    lt_cv_sys_max_cmd_len=8192;
7365    ;;
7366
7367  mint*)
7368    # On MiNT this can take a long time and run out of memory.
7369    lt_cv_sys_max_cmd_len=8192;
7370    ;;
7371
7372  amigaos*)
7373    # On AmigaOS with pdksh, this test takes hours, literally.
7374    # So we just punt and use a minimum line length of 8192.
7375    lt_cv_sys_max_cmd_len=8192;
7376    ;;
7377
7378  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7379    # This has been around since 386BSD, at least.  Likely further.
7380    if test -x /sbin/sysctl; then
7381      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7382    elif test -x /usr/sbin/sysctl; then
7383      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7384    else
7385      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7386    fi
7387    # And add a safety zone
7388    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7389    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7390    ;;
7391
7392  interix*)
7393    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7394    lt_cv_sys_max_cmd_len=196608
7395    ;;
7396
7397  os2*)
7398    # The test takes a long time on OS/2.
7399    lt_cv_sys_max_cmd_len=8192
7400    ;;
7401
7402  osf*)
7403    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7404    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7405    # nice to cause kernel panics so lets avoid the loop below.
7406    # First set a reasonable default.
7407    lt_cv_sys_max_cmd_len=16384
7408    #
7409    if test -x /sbin/sysconfig; then
7410      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7411        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7412      esac
7413    fi
7414    ;;
7415  sco3.2v5*)
7416    lt_cv_sys_max_cmd_len=102400
7417    ;;
7418  sysv5* | sco5v6* | sysv4.2uw2*)
7419    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7420    if test -n "$kargmax"; then
7421      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7422    else
7423      lt_cv_sys_max_cmd_len=32768
7424    fi
7425    ;;
7426  *)
7427    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7428    if test -n "$lt_cv_sys_max_cmd_len" && \
7429       test undefined != "$lt_cv_sys_max_cmd_len"; then
7430      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7431      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7432    else
7433      # Make teststring a little bigger before we do anything with it.
7434      # a 1K string should be a reasonable start.
7435      for i in 1 2 3 4 5 6 7 8; do
7436        teststring=$teststring$teststring
7437      done
7438      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7439      # If test is not a shell built-in, we'll probably end up computing a
7440      # maximum length that is only half of the actual maximum length, but
7441      # we can't tell.
7442      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7443	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7444	      test 17 != "$i" # 1/2 MB should be enough
7445      do
7446        i=`expr $i + 1`
7447        teststring=$teststring$teststring
7448      done
7449      # Only check the string length outside the loop.
7450      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7451      teststring=
7452      # Add a significant safety factor because C++ compilers can tack on
7453      # massive amounts of additional arguments before passing them to the
7454      # linker.  It appears as though 1/2 is a usable value.
7455      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7456    fi
7457    ;;
7458  esac
7459
7460fi
7461
7462if test -n "$lt_cv_sys_max_cmd_len"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7464$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7467$as_echo "none" >&6; }
7468fi
7469max_cmd_len=$lt_cv_sys_max_cmd_len
7470
7471
7472
7473
7474
7475
7476: ${CP="cp -f"}
7477: ${MV="mv -f"}
7478: ${RM="rm -f"}
7479
7480if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7481  lt_unset=unset
7482else
7483  lt_unset=false
7484fi
7485
7486
7487
7488
7489
7490# test EBCDIC or ASCII
7491case `echo X|tr X '\101'` in
7492 A) # ASCII based system
7493    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7494  lt_SP2NL='tr \040 \012'
7495  lt_NL2SP='tr \015\012 \040\040'
7496  ;;
7497 *) # EBCDIC based system
7498  lt_SP2NL='tr \100 \n'
7499  lt_NL2SP='tr \r\n \100\100'
7500  ;;
7501esac
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7512$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7513if ${lt_cv_to_host_file_cmd+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  case $host in
7517  *-*-mingw* )
7518    case $build in
7519      *-*-mingw* ) # actually msys
7520        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7521        ;;
7522      *-*-cygwin* )
7523        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7524        ;;
7525      * ) # otherwise, assume *nix
7526        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7527        ;;
7528    esac
7529    ;;
7530  *-*-cygwin* )
7531    case $build in
7532      *-*-mingw* ) # actually msys
7533        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7534        ;;
7535      *-*-cygwin* )
7536        lt_cv_to_host_file_cmd=func_convert_file_noop
7537        ;;
7538      * ) # otherwise, assume *nix
7539        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7540        ;;
7541    esac
7542    ;;
7543  * ) # unhandled hosts (and "normal" native builds)
7544    lt_cv_to_host_file_cmd=func_convert_file_noop
7545    ;;
7546esac
7547
7548fi
7549
7550to_host_file_cmd=$lt_cv_to_host_file_cmd
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7552$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7553
7554
7555
7556
7557
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7559$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7560if ${lt_cv_to_tool_file_cmd+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  #assume ordinary cross tools, or native build.
7564lt_cv_to_tool_file_cmd=func_convert_file_noop
7565case $host in
7566  *-*-mingw* )
7567    case $build in
7568      *-*-mingw* ) # actually msys
7569        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7570        ;;
7571    esac
7572    ;;
7573esac
7574
7575fi
7576
7577to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7579$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7580
7581
7582
7583
7584
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7586$as_echo_n "checking for $LD option to reload object files... " >&6; }
7587if ${lt_cv_ld_reload_flag+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  lt_cv_ld_reload_flag='-r'
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7593$as_echo "$lt_cv_ld_reload_flag" >&6; }
7594reload_flag=$lt_cv_ld_reload_flag
7595case $reload_flag in
7596"" | " "*) ;;
7597*) reload_flag=" $reload_flag" ;;
7598esac
7599reload_cmds='$LD$reload_flag -o $output$reload_objs'
7600case $host_os in
7601  cygwin* | mingw* | pw32* | cegcc*)
7602    if test yes != "$GCC"; then
7603      reload_cmds=false
7604    fi
7605    ;;
7606  darwin*)
7607    if test yes = "$GCC"; then
7608      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7609    else
7610      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7611    fi
7612    ;;
7613esac
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623if test -n "$ac_tool_prefix"; then
7624  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7625set dummy ${ac_tool_prefix}objdump; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_prog_OBJDUMP+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  if test -n "$OBJDUMP"; then
7632  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639    for ac_exec_ext in '' $ac_executable_extensions; do
7640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646  done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651OBJDUMP=$ac_cv_prog_OBJDUMP
7652if test -n "$OBJDUMP"; then
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7654$as_echo "$OBJDUMP" >&6; }
7655else
7656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
7659
7660
7661fi
7662if test -z "$ac_cv_prog_OBJDUMP"; then
7663  ac_ct_OBJDUMP=$OBJDUMP
7664  # Extract the first word of "objdump", so it can be a program name with args.
7665set dummy objdump; ac_word=$2
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
7668if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  if test -n "$ac_ct_OBJDUMP"; then
7672  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677  IFS=$as_save_IFS
7678  test -z "$as_dir" && as_dir=.
7679    for ac_exec_ext in '' $ac_executable_extensions; do
7680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683    break 2
7684  fi
7685done
7686  done
7687IFS=$as_save_IFS
7688
7689fi
7690fi
7691ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7692if test -n "$ac_ct_OBJDUMP"; then
7693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7694$as_echo "$ac_ct_OBJDUMP" >&6; }
7695else
7696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698fi
7699
7700  if test "x$ac_ct_OBJDUMP" = x; then
7701    OBJDUMP="false"
7702  else
7703    case $cross_compiling:$ac_tool_warned in
7704yes:)
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707ac_tool_warned=yes ;;
7708esac
7709    OBJDUMP=$ac_ct_OBJDUMP
7710  fi
7711else
7712  OBJDUMP="$ac_cv_prog_OBJDUMP"
7713fi
7714
7715test -z "$OBJDUMP" && OBJDUMP=objdump
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7726$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7727if ${lt_cv_deplibs_check_method+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  lt_cv_file_magic_cmd='$MAGIC_CMD'
7731lt_cv_file_magic_test_file=
7732lt_cv_deplibs_check_method='unknown'
7733# Need to set the preceding variable on all platforms that support
7734# interlibrary dependencies.
7735# 'none' -- dependencies not supported.
7736# 'unknown' -- same as none, but documents that we really don't know.
7737# 'pass_all' -- all dependencies passed with no checks.
7738# 'test_compile' -- check by making test program.
7739# 'file_magic [[regex]]' -- check by looking for files in library path
7740# that responds to the $file_magic_cmd with a given extended regex.
7741# If you have 'file' or equivalent on your system and you're not sure
7742# whether 'pass_all' will *always* work, you probably want this one.
7743
7744case $host_os in
7745aix[4-9]*)
7746  lt_cv_deplibs_check_method=pass_all
7747  ;;
7748
7749beos*)
7750  lt_cv_deplibs_check_method=pass_all
7751  ;;
7752
7753bsdi[45]*)
7754  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7755  lt_cv_file_magic_cmd='/usr/bin/file -L'
7756  lt_cv_file_magic_test_file=/shlib/libc.so
7757  ;;
7758
7759cygwin*)
7760  # func_win32_libid is a shell function defined in ltmain.sh
7761  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7762  lt_cv_file_magic_cmd='func_win32_libid'
7763  ;;
7764
7765mingw* | pw32*)
7766  # Base MSYS/MinGW do not provide the 'file' command needed by
7767  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7768  # unless we find 'file', for example because we are cross-compiling.
7769  if ( file / ) >/dev/null 2>&1; then
7770    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7771    lt_cv_file_magic_cmd='func_win32_libid'
7772  else
7773    # Keep this pattern in sync with the one in func_win32_libid.
7774    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7775    lt_cv_file_magic_cmd='$OBJDUMP -f'
7776  fi
7777  ;;
7778
7779cegcc*)
7780  # use the weaker test based on 'objdump'. See mingw*.
7781  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7782  lt_cv_file_magic_cmd='$OBJDUMP -f'
7783  ;;
7784
7785darwin* | rhapsody*)
7786  lt_cv_deplibs_check_method=pass_all
7787  ;;
7788
7789freebsd* | dragonfly*)
7790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7791    case $host_cpu in
7792    i*86 )
7793      # Not sure whether the presence of OpenBSD here was a mistake.
7794      # Let's accept both of them until this is cleared up.
7795      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7796      lt_cv_file_magic_cmd=/usr/bin/file
7797      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7798      ;;
7799    esac
7800  else
7801    lt_cv_deplibs_check_method=pass_all
7802  fi
7803  ;;
7804
7805haiku*)
7806  lt_cv_deplibs_check_method=pass_all
7807  ;;
7808
7809hpux10.20* | hpux11*)
7810  lt_cv_file_magic_cmd=/usr/bin/file
7811  case $host_cpu in
7812  ia64*)
7813    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7814    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7815    ;;
7816  hppa*64*)
7817    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]'
7818    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7819    ;;
7820  *)
7821    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7822    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7823    ;;
7824  esac
7825  ;;
7826
7827interix[3-9]*)
7828  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7829  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7830  ;;
7831
7832irix5* | irix6* | nonstopux*)
7833  case $LD in
7834  *-32|*"-32 ") libmagic=32-bit;;
7835  *-n32|*"-n32 ") libmagic=N32;;
7836  *-64|*"-64 ") libmagic=64-bit;;
7837  *) libmagic=never-match;;
7838  esac
7839  lt_cv_deplibs_check_method=pass_all
7840  ;;
7841
7842# This must be glibc/ELF.
7843linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7844  lt_cv_deplibs_check_method=pass_all
7845  ;;
7846
7847netbsd*)
7848  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7849    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7850  else
7851    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7852  fi
7853  ;;
7854
7855newos6*)
7856  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7857  lt_cv_file_magic_cmd=/usr/bin/file
7858  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7859  ;;
7860
7861*nto* | *qnx*)
7862  lt_cv_deplibs_check_method=pass_all
7863  ;;
7864
7865openbsd* | bitrig*)
7866  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7867    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7868  else
7869    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7870  fi
7871  ;;
7872
7873osf3* | osf4* | osf5*)
7874  lt_cv_deplibs_check_method=pass_all
7875  ;;
7876
7877rdos*)
7878  lt_cv_deplibs_check_method=pass_all
7879  ;;
7880
7881solaris*)
7882  lt_cv_deplibs_check_method=pass_all
7883  ;;
7884
7885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7886  lt_cv_deplibs_check_method=pass_all
7887  ;;
7888
7889sysv4 | sysv4.3*)
7890  case $host_vendor in
7891  motorola)
7892    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]'
7893    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7894    ;;
7895  ncr)
7896    lt_cv_deplibs_check_method=pass_all
7897    ;;
7898  sequent)
7899    lt_cv_file_magic_cmd='/bin/file'
7900    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7901    ;;
7902  sni)
7903    lt_cv_file_magic_cmd='/bin/file'
7904    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7905    lt_cv_file_magic_test_file=/lib/libc.so
7906    ;;
7907  siemens)
7908    lt_cv_deplibs_check_method=pass_all
7909    ;;
7910  pc)
7911    lt_cv_deplibs_check_method=pass_all
7912    ;;
7913  esac
7914  ;;
7915
7916tpf*)
7917  lt_cv_deplibs_check_method=pass_all
7918  ;;
7919os2*)
7920  lt_cv_deplibs_check_method=pass_all
7921  ;;
7922esac
7923
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7926$as_echo "$lt_cv_deplibs_check_method" >&6; }
7927
7928file_magic_glob=
7929want_nocaseglob=no
7930if test "$build" = "$host"; then
7931  case $host_os in
7932  mingw* | pw32*)
7933    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7934      want_nocaseglob=yes
7935    else
7936      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7937    fi
7938    ;;
7939  esac
7940fi
7941
7942file_magic_cmd=$lt_cv_file_magic_cmd
7943deplibs_check_method=$lt_cv_deplibs_check_method
7944test -z "$deplibs_check_method" && deplibs_check_method=unknown
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967if test -n "$ac_tool_prefix"; then
7968  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7969set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if ${ac_cv_prog_DLLTOOL+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  if test -n "$DLLTOOL"; then
7976  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983    for ac_exec_ext in '' $ac_executable_extensions; do
7984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987    break 2
7988  fi
7989done
7990  done
7991IFS=$as_save_IFS
7992
7993fi
7994fi
7995DLLTOOL=$ac_cv_prog_DLLTOOL
7996if test -n "$DLLTOOL"; then
7997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7998$as_echo "$DLLTOOL" >&6; }
7999else
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002fi
8003
8004
8005fi
8006if test -z "$ac_cv_prog_DLLTOOL"; then
8007  ac_ct_DLLTOOL=$DLLTOOL
8008  # Extract the first word of "dlltool", so it can be a program name with args.
8009set dummy dlltool; ac_word=$2
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
8012if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  if test -n "$ac_ct_DLLTOOL"; then
8016  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021  IFS=$as_save_IFS
8022  test -z "$as_dir" && as_dir=.
8023    for ac_exec_ext in '' $ac_executable_extensions; do
8024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027    break 2
8028  fi
8029done
8030  done
8031IFS=$as_save_IFS
8032
8033fi
8034fi
8035ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8036if test -n "$ac_ct_DLLTOOL"; then
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8038$as_echo "$ac_ct_DLLTOOL" >&6; }
8039else
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044  if test "x$ac_ct_DLLTOOL" = x; then
8045    DLLTOOL="false"
8046  else
8047    case $cross_compiling:$ac_tool_warned in
8048yes:)
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051ac_tool_warned=yes ;;
8052esac
8053    DLLTOOL=$ac_ct_DLLTOOL
8054  fi
8055else
8056  DLLTOOL="$ac_cv_prog_DLLTOOL"
8057fi
8058
8059test -z "$DLLTOOL" && DLLTOOL=dlltool
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8071$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8072if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  lt_cv_sharedlib_from_linklib_cmd='unknown'
8076
8077case $host_os in
8078cygwin* | mingw* | pw32* | cegcc*)
8079  # two different shell functions defined in ltmain.sh;
8080  # decide which one to use based on capabilities of $DLLTOOL
8081  case `$DLLTOOL --help 2>&1` in
8082  *--identify-strict*)
8083    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8084    ;;
8085  *)
8086    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8087    ;;
8088  esac
8089  ;;
8090*)
8091  # fallback: assume linklib IS sharedlib
8092  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8093  ;;
8094esac
8095
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8098$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8099sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8100test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8101
8102
8103
8104
8105
8106
8107
8108if test -n "$ac_tool_prefix"; then
8109  for ac_prog in ar
8110  do
8111    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if ${ac_cv_prog_AR+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  if test -n "$AR"; then
8119  ac_cv_prog_AR="$AR" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136fi
8137fi
8138AR=$ac_cv_prog_AR
8139if test -n "$AR"; then
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141$as_echo "$AR" >&6; }
8142else
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
8147
8148    test -n "$AR" && break
8149  done
8150fi
8151if test -z "$AR"; then
8152  ac_ct_AR=$AR
8153  for ac_prog in ar
8154do
8155  # Extract the first word of "$ac_prog", so it can be a program name with args.
8156set dummy $ac_prog; ac_word=$2
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158$as_echo_n "checking for $ac_word... " >&6; }
8159if ${ac_cv_prog_ac_ct_AR+:} false; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  if test -n "$ac_ct_AR"; then
8163  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8164else
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168  IFS=$as_save_IFS
8169  test -z "$as_dir" && as_dir=.
8170    for ac_exec_ext in '' $ac_executable_extensions; do
8171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172    ac_cv_prog_ac_ct_AR="$ac_prog"
8173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174    break 2
8175  fi
8176done
8177  done
8178IFS=$as_save_IFS
8179
8180fi
8181fi
8182ac_ct_AR=$ac_cv_prog_ac_ct_AR
8183if test -n "$ac_ct_AR"; then
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8185$as_echo "$ac_ct_AR" >&6; }
8186else
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
8189fi
8190
8191
8192  test -n "$ac_ct_AR" && break
8193done
8194
8195  if test "x$ac_ct_AR" = x; then
8196    AR="false"
8197  else
8198    case $cross_compiling:$ac_tool_warned in
8199yes:)
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202ac_tool_warned=yes ;;
8203esac
8204    AR=$ac_ct_AR
8205  fi
8206fi
8207
8208: ${AR=ar}
8209: ${AR_FLAGS=cru}
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8222$as_echo_n "checking for archiver @FILE support... " >&6; }
8223if ${lt_cv_ar_at_file+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  lt_cv_ar_at_file=no
8227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"; then :
8239  echo conftest.$ac_objext > conftest.lst
8240      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8241      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8242  (eval $lt_ar_try) 2>&5
8243  ac_status=$?
8244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245  test $ac_status = 0; }
8246      if test 0 -eq "$ac_status"; then
8247	# Ensure the archiver fails upon bogus file names.
8248	rm -f conftest.$ac_objext libconftest.a
8249	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8250  (eval $lt_ar_try) 2>&5
8251  ac_status=$?
8252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253  test $ac_status = 0; }
8254	if test 0 -ne "$ac_status"; then
8255          lt_cv_ar_at_file=@
8256        fi
8257      fi
8258      rm -f conftest.* libconftest.a
8259
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8265$as_echo "$lt_cv_ar_at_file" >&6; }
8266
8267if test no = "$lt_cv_ar_at_file"; then
8268  archiver_list_spec=
8269else
8270  archiver_list_spec=$lt_cv_ar_at_file
8271fi
8272
8273
8274
8275
8276
8277
8278
8279if test -n "$ac_tool_prefix"; then
8280  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8281set dummy ${ac_tool_prefix}strip; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if ${ac_cv_prog_STRIP+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  if test -n "$STRIP"; then
8288  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293  IFS=$as_save_IFS
8294  test -z "$as_dir" && as_dir=.
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307STRIP=$ac_cv_prog_STRIP
8308if test -n "$STRIP"; then
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8310$as_echo "$STRIP" >&6; }
8311else
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316
8317fi
8318if test -z "$ac_cv_prog_STRIP"; then
8319  ac_ct_STRIP=$STRIP
8320  # Extract the first word of "strip", so it can be a program name with args.
8321set dummy strip; ac_word=$2
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323$as_echo_n "checking for $ac_word... " >&6; }
8324if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  if test -n "$ac_ct_STRIP"; then
8328  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8329else
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333  IFS=$as_save_IFS
8334  test -z "$as_dir" && as_dir=.
8335    for ac_exec_ext in '' $ac_executable_extensions; do
8336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337    ac_cv_prog_ac_ct_STRIP="strip"
8338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339    break 2
8340  fi
8341done
8342  done
8343IFS=$as_save_IFS
8344
8345fi
8346fi
8347ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8348if test -n "$ac_ct_STRIP"; then
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8350$as_echo "$ac_ct_STRIP" >&6; }
8351else
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
8354fi
8355
8356  if test "x$ac_ct_STRIP" = x; then
8357    STRIP=":"
8358  else
8359    case $cross_compiling:$ac_tool_warned in
8360yes:)
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363ac_tool_warned=yes ;;
8364esac
8365    STRIP=$ac_ct_STRIP
8366  fi
8367else
8368  STRIP="$ac_cv_prog_STRIP"
8369fi
8370
8371test -z "$STRIP" && STRIP=:
8372
8373
8374
8375
8376
8377
8378if test -n "$ac_tool_prefix"; then
8379  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if ${ac_cv_prog_RANLIB+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  if test -n "$RANLIB"; then
8387  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392  IFS=$as_save_IFS
8393  test -z "$as_dir" && as_dir=.
8394    for ac_exec_ext in '' $ac_executable_extensions; do
8395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398    break 2
8399  fi
8400done
8401  done
8402IFS=$as_save_IFS
8403
8404fi
8405fi
8406RANLIB=$ac_cv_prog_RANLIB
8407if test -n "$RANLIB"; then
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8409$as_echo "$RANLIB" >&6; }
8410else
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416fi
8417if test -z "$ac_cv_prog_RANLIB"; then
8418  ac_ct_RANLIB=$RANLIB
8419  # Extract the first word of "ranlib", so it can be a program name with args.
8420set dummy ranlib; ac_word=$2
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422$as_echo_n "checking for $ac_word... " >&6; }
8423if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  if test -n "$ac_ct_RANLIB"; then
8427  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432  IFS=$as_save_IFS
8433  test -z "$as_dir" && as_dir=.
8434    for ac_exec_ext in '' $ac_executable_extensions; do
8435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436    ac_cv_prog_ac_ct_RANLIB="ranlib"
8437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441  done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8447if test -n "$ac_ct_RANLIB"; then
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8449$as_echo "$ac_ct_RANLIB" >&6; }
8450else
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455  if test "x$ac_ct_RANLIB" = x; then
8456    RANLIB=":"
8457  else
8458    case $cross_compiling:$ac_tool_warned in
8459yes:)
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462ac_tool_warned=yes ;;
8463esac
8464    RANLIB=$ac_ct_RANLIB
8465  fi
8466else
8467  RANLIB="$ac_cv_prog_RANLIB"
8468fi
8469
8470test -z "$RANLIB" && RANLIB=:
8471
8472
8473
8474
8475
8476
8477# Determine commands to create old-style static archives.
8478old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8479old_postinstall_cmds='chmod 644 $oldlib'
8480old_postuninstall_cmds=
8481
8482if test -n "$RANLIB"; then
8483  case $host_os in
8484  bitrig* | openbsd*)
8485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8486    ;;
8487  *)
8488    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8489    ;;
8490  esac
8491  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8492fi
8493
8494case $host_os in
8495  darwin*)
8496    lock_old_archive_extraction=yes ;;
8497  *)
8498    lock_old_archive_extraction=no ;;
8499esac
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521for ac_prog in gawk mawk nawk awk
8522do
8523  # Extract the first word of "$ac_prog", so it can be a program name with args.
8524set dummy $ac_prog; ac_word=$2
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526$as_echo_n "checking for $ac_word... " >&6; }
8527if ${ac_cv_prog_AWK+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  if test -n "$AWK"; then
8531  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8532else
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536  IFS=$as_save_IFS
8537  test -z "$as_dir" && as_dir=.
8538    for ac_exec_ext in '' $ac_executable_extensions; do
8539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540    ac_cv_prog_AWK="$ac_prog"
8541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542    break 2
8543  fi
8544done
8545  done
8546IFS=$as_save_IFS
8547
8548fi
8549fi
8550AWK=$ac_cv_prog_AWK
8551if test -n "$AWK"; then
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8553$as_echo "$AWK" >&6; }
8554else
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556$as_echo "no" >&6; }
8557fi
8558
8559
8560  test -n "$AWK" && break
8561done
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581# If no C compiler was specified, use CC.
8582LTCC=${LTCC-"$CC"}
8583
8584# If no C compiler flags were specified, use CFLAGS.
8585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8586
8587# Allow CC to be a program name with arguments.
8588compiler=$CC
8589
8590
8591# Check for command to grab the raw symbol name followed by C symbol from nm.
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8593$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8594if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597
8598# These are sane defaults that work on at least a few old systems.
8599# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8600
8601# Character class describing NM global symbol codes.
8602symcode='[BCDEGRST]'
8603
8604# Regexp to match symbols that can be accessed directly from C.
8605sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8606
8607# Define system-specific variables.
8608case $host_os in
8609aix*)
8610  symcode='[BCDT]'
8611  ;;
8612cygwin* | mingw* | pw32* | cegcc*)
8613  symcode='[ABCDGISTW]'
8614  ;;
8615hpux*)
8616  if test ia64 = "$host_cpu"; then
8617    symcode='[ABCDEGRST]'
8618  fi
8619  ;;
8620irix* | nonstopux*)
8621  symcode='[BCDEGRST]'
8622  ;;
8623osf*)
8624  symcode='[BCDEGQRST]'
8625  ;;
8626solaris*)
8627  symcode='[BDRT]'
8628  ;;
8629sco3.2v5*)
8630  symcode='[DT]'
8631  ;;
8632sysv4.2uw2*)
8633  symcode='[DT]'
8634  ;;
8635sysv5* | sco5v6* | unixware* | OpenUNIX*)
8636  symcode='[ABDT]'
8637  ;;
8638sysv4)
8639  symcode='[DFNSTU]'
8640  ;;
8641esac
8642
8643# If we're using GNU nm, then use its standard symbol codes.
8644case `$NM -V 2>&1` in
8645*GNU* | *'with BFD'*)
8646  symcode='[ABCDGIRSTW]' ;;
8647esac
8648
8649if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8650  # Gets list of data symbols to import.
8651  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8652  # Adjust the below global symbol transforms to fixup imported variables.
8653  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8654  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8655  lt_c_name_lib_hook="\
8656  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8657  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8658else
8659  # Disable hooks by default.
8660  lt_cv_sys_global_symbol_to_import=
8661  lt_cdecl_hook=
8662  lt_c_name_hook=
8663  lt_c_name_lib_hook=
8664fi
8665
8666# Transform an extracted symbol line into a proper C declaration.
8667# Some systems (esp. on ia64) link data and code symbols differently,
8668# so use this general approach.
8669lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8670$lt_cdecl_hook\
8671" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8672" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8673
8674# Transform an extracted symbol line into symbol name and symbol address
8675lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8676$lt_c_name_hook\
8677" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8678" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8679
8680# Transform an extracted symbol line into symbol name with lib prefix and
8681# symbol address.
8682lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8683$lt_c_name_lib_hook\
8684" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8685" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8686" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8687
8688# Handle CRLF in mingw tool chain
8689opt_cr=
8690case $build_os in
8691mingw*)
8692  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8693  ;;
8694esac
8695
8696# Try without a prefix underscore, then with it.
8697for ac_symprfx in "" "_"; do
8698
8699  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8700  symxfrm="\\1 $ac_symprfx\\2 \\2"
8701
8702  # Write the raw and C identifiers.
8703  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8704    # Fake it for dumpbin and say T for any non-static function,
8705    # D for any global variable and I for any imported variable.
8706    # Also find C++ and __fastcall symbols from MSVC++,
8707    # which start with @ or ?.
8708    lt_cv_sys_global_symbol_pipe="$AWK '"\
8709"     {last_section=section; section=\$ 3};"\
8710"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8711"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8712"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8713"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8714"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8715"     \$ 0!~/External *\|/{next};"\
8716"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8717"     {if(hide[section]) next};"\
8718"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8719"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8720"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8721"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8722"     ' prfx=^$ac_symprfx"
8723  else
8724    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8725  fi
8726  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8727
8728  # Check to see that the pipe works correctly.
8729  pipe_works=no
8730
8731  rm -f conftest*
8732  cat > conftest.$ac_ext <<_LT_EOF
8733#ifdef __cplusplus
8734extern "C" {
8735#endif
8736char nm_test_var;
8737void nm_test_func(void);
8738void nm_test_func(void){}
8739#ifdef __cplusplus
8740}
8741#endif
8742int main(){nm_test_var='a';nm_test_func();return(0);}
8743_LT_EOF
8744
8745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8746  (eval $ac_compile) 2>&5
8747  ac_status=$?
8748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8749  test $ac_status = 0; }; then
8750    # Now try to grab the symbols.
8751    nlist=conftest.nm
8752    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8753  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8754  ac_status=$?
8755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8756  test $ac_status = 0; } && test -s "$nlist"; then
8757      # Try sorting and uniquifying the output.
8758      if sort "$nlist" | uniq > "$nlist"T; then
8759	mv -f "$nlist"T "$nlist"
8760      else
8761	rm -f "$nlist"T
8762      fi
8763
8764      # Make sure that we snagged all the symbols we need.
8765      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8766	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8767	  cat <<_LT_EOF > conftest.$ac_ext
8768/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8769#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8770/* DATA imports from DLLs on WIN32 can't be const, because runtime
8771   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8772# define LT_DLSYM_CONST
8773#elif defined __osf__
8774/* This system does not cope well with relocations in const data.  */
8775# define LT_DLSYM_CONST
8776#else
8777# define LT_DLSYM_CONST const
8778#endif
8779
8780#ifdef __cplusplus
8781extern "C" {
8782#endif
8783
8784_LT_EOF
8785	  # Now generate the symbol file.
8786	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8787
8788	  cat <<_LT_EOF >> conftest.$ac_ext
8789
8790/* The mapping between symbol names and symbols.  */
8791LT_DLSYM_CONST struct {
8792  const char *name;
8793  void       *address;
8794}
8795lt__PROGRAM__LTX_preloaded_symbols[] =
8796{
8797  { "@PROGRAM@", (void *) 0 },
8798_LT_EOF
8799	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8800	  cat <<\_LT_EOF >> conftest.$ac_ext
8801  {0, (void *) 0}
8802};
8803
8804/* This works around a problem in FreeBSD linker */
8805#ifdef FREEBSD_WORKAROUND
8806static const void *lt_preloaded_setup() {
8807  return lt__PROGRAM__LTX_preloaded_symbols;
8808}
8809#endif
8810
8811#ifdef __cplusplus
8812}
8813#endif
8814_LT_EOF
8815	  # Now try linking the two files.
8816	  mv conftest.$ac_objext conftstm.$ac_objext
8817	  lt_globsym_save_LIBS=$LIBS
8818	  lt_globsym_save_CFLAGS=$CFLAGS
8819	  LIBS=conftstm.$ac_objext
8820	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8821	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8822  (eval $ac_link) 2>&5
8823  ac_status=$?
8824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8826	    pipe_works=yes
8827	  fi
8828	  LIBS=$lt_globsym_save_LIBS
8829	  CFLAGS=$lt_globsym_save_CFLAGS
8830	else
8831	  echo "cannot find nm_test_func in $nlist" >&5
8832	fi
8833      else
8834	echo "cannot find nm_test_var in $nlist" >&5
8835      fi
8836    else
8837      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8838    fi
8839  else
8840    echo "$progname: failed program was:" >&5
8841    cat conftest.$ac_ext >&5
8842  fi
8843  rm -rf conftest* conftst*
8844
8845  # Do not use the global_symbol_pipe unless it works.
8846  if test yes = "$pipe_works"; then
8847    break
8848  else
8849    lt_cv_sys_global_symbol_pipe=
8850  fi
8851done
8852
8853fi
8854
8855if test -z "$lt_cv_sys_global_symbol_pipe"; then
8856  lt_cv_sys_global_symbol_to_cdecl=
8857fi
8858if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8860$as_echo "failed" >&6; }
8861else
8862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8863$as_echo "ok" >&6; }
8864fi
8865
8866# Response file support.
8867if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8868  nm_file_list_spec='@'
8869elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8870  nm_file_list_spec='@'
8871fi
8872
8873
8874
8875
8876
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8910$as_echo_n "checking for sysroot... " >&6; }
8911
8912# Check whether --with-sysroot was given.
8913if test "${with_sysroot+set}" = set; then :
8914  withval=$with_sysroot;
8915else
8916  with_sysroot=no
8917fi
8918
8919
8920lt_sysroot=
8921case $with_sysroot in #(
8922 yes)
8923   if test yes = "$GCC"; then
8924     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8925   fi
8926   ;; #(
8927 /*)
8928   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8929   ;; #(
8930 no|'')
8931   ;; #(
8932 *)
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8934$as_echo "$with_sysroot" >&6; }
8935   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8936   ;;
8937esac
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8940$as_echo "${lt_sysroot:-no}" >&6; }
8941
8942
8943
8944
8945
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8947$as_echo_n "checking for a working dd... " >&6; }
8948if ${ac_cv_path_lt_DD+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  printf 0123456789abcdef0123456789abcdef >conftest.i
8952cat conftest.i conftest.i >conftest2.i
8953: ${lt_DD:=$DD}
8954if test -z "$lt_DD"; then
8955  ac_path_lt_DD_found=false
8956  # Loop through the user's path and test for each of PROGNAME-LIST
8957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960  IFS=$as_save_IFS
8961  test -z "$as_dir" && as_dir=.
8962    for ac_prog in dd; do
8963    for ac_exec_ext in '' $ac_executable_extensions; do
8964      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8965      as_fn_executable_p "$ac_path_lt_DD" || continue
8966if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8967  cmp -s conftest.i conftest.out \
8968  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8969fi
8970      $ac_path_lt_DD_found && break 3
8971    done
8972  done
8973  done
8974IFS=$as_save_IFS
8975  if test -z "$ac_cv_path_lt_DD"; then
8976    :
8977  fi
8978else
8979  ac_cv_path_lt_DD=$lt_DD
8980fi
8981
8982rm -f conftest.i conftest2.i conftest.out
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8985$as_echo "$ac_cv_path_lt_DD" >&6; }
8986
8987
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8989$as_echo_n "checking how to truncate binary pipes... " >&6; }
8990if ${lt_cv_truncate_bin+:} false; then :
8991  $as_echo_n "(cached) " >&6
8992else
8993  printf 0123456789abcdef0123456789abcdef >conftest.i
8994cat conftest.i conftest.i >conftest2.i
8995lt_cv_truncate_bin=
8996if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8997  cmp -s conftest.i conftest.out \
8998  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8999fi
9000rm -f conftest.i conftest2.i conftest.out
9001test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9004$as_echo "$lt_cv_truncate_bin" >&6; }
9005
9006
9007
9008
9009
9010
9011
9012# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9013func_cc_basename ()
9014{
9015    for cc_temp in $*""; do
9016      case $cc_temp in
9017        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9018        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9019        \-*) ;;
9020        *) break;;
9021      esac
9022    done
9023    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9024}
9025
9026# Check whether --enable-libtool-lock was given.
9027if test "${enable_libtool_lock+set}" = set; then :
9028  enableval=$enable_libtool_lock;
9029fi
9030
9031test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9032
9033# Some flags need to be propagated to the compiler or linker for good
9034# libtool support.
9035case $host in
9036ia64-*-hpux*)
9037  # Find out what ABI is being produced by ac_compile, and set mode
9038  # options accordingly.
9039  echo 'int i;' > conftest.$ac_ext
9040  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9041  (eval $ac_compile) 2>&5
9042  ac_status=$?
9043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044  test $ac_status = 0; }; then
9045    case `/usr/bin/file conftest.$ac_objext` in
9046      *ELF-32*)
9047	HPUX_IA64_MODE=32
9048	;;
9049      *ELF-64*)
9050	HPUX_IA64_MODE=64
9051	;;
9052    esac
9053  fi
9054  rm -rf conftest*
9055  ;;
9056*-*-irix6*)
9057  # Find out what ABI is being produced by ac_compile, and set linker
9058  # options accordingly.
9059  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9061  (eval $ac_compile) 2>&5
9062  ac_status=$?
9063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9064  test $ac_status = 0; }; then
9065    if test yes = "$lt_cv_prog_gnu_ld"; then
9066      case `/usr/bin/file conftest.$ac_objext` in
9067	*32-bit*)
9068	  LD="${LD-ld} -melf32bsmip"
9069	  ;;
9070	*N32*)
9071	  LD="${LD-ld} -melf32bmipn32"
9072	  ;;
9073	*64-bit*)
9074	  LD="${LD-ld} -melf64bmip"
9075	;;
9076      esac
9077    else
9078      case `/usr/bin/file conftest.$ac_objext` in
9079	*32-bit*)
9080	  LD="${LD-ld} -32"
9081	  ;;
9082	*N32*)
9083	  LD="${LD-ld} -n32"
9084	  ;;
9085	*64-bit*)
9086	  LD="${LD-ld} -64"
9087	  ;;
9088      esac
9089    fi
9090  fi
9091  rm -rf conftest*
9092  ;;
9093
9094mips64*-*linux*)
9095  # Find out what ABI is being produced by ac_compile, and set linker
9096  # options accordingly.
9097  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9098  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9099  (eval $ac_compile) 2>&5
9100  ac_status=$?
9101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9102  test $ac_status = 0; }; then
9103    emul=elf
9104    case `/usr/bin/file conftest.$ac_objext` in
9105      *32-bit*)
9106	emul="${emul}32"
9107	;;
9108      *64-bit*)
9109	emul="${emul}64"
9110	;;
9111    esac
9112    case `/usr/bin/file conftest.$ac_objext` in
9113      *MSB*)
9114	emul="${emul}btsmip"
9115	;;
9116      *LSB*)
9117	emul="${emul}ltsmip"
9118	;;
9119    esac
9120    case `/usr/bin/file conftest.$ac_objext` in
9121      *N32*)
9122	emul="${emul}n32"
9123	;;
9124    esac
9125    LD="${LD-ld} -m $emul"
9126  fi
9127  rm -rf conftest*
9128  ;;
9129
9130x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9131s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9132  # Find out what ABI is being produced by ac_compile, and set linker
9133  # options accordingly.  Note that the listed cases only cover the
9134  # situations where additional linker options are needed (such as when
9135  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9136  # vice versa); the common cases where no linker options are needed do
9137  # not appear in the list.
9138  echo 'int i;' > conftest.$ac_ext
9139  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9140  (eval $ac_compile) 2>&5
9141  ac_status=$?
9142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9143  test $ac_status = 0; }; then
9144    case `/usr/bin/file conftest.o` in
9145      *32-bit*)
9146	case $host in
9147	  x86_64-*kfreebsd*-gnu)
9148	    LD="${LD-ld} -m elf_i386_fbsd"
9149	    ;;
9150	  x86_64-*linux*)
9151	    case `/usr/bin/file conftest.o` in
9152	      *x86-64*)
9153		LD="${LD-ld} -m elf32_x86_64"
9154		;;
9155	      *)
9156		LD="${LD-ld} -m elf_i386"
9157		;;
9158	    esac
9159	    ;;
9160	  powerpc64le-*linux*)
9161	    LD="${LD-ld} -m elf32lppclinux"
9162	    ;;
9163	  powerpc64-*linux*)
9164	    LD="${LD-ld} -m elf32ppclinux"
9165	    ;;
9166	  s390x-*linux*)
9167	    LD="${LD-ld} -m elf_s390"
9168	    ;;
9169	  sparc64-*linux*)
9170	    LD="${LD-ld} -m elf32_sparc"
9171	    ;;
9172	esac
9173	;;
9174      *64-bit*)
9175	case $host in
9176	  x86_64-*kfreebsd*-gnu)
9177	    LD="${LD-ld} -m elf_x86_64_fbsd"
9178	    ;;
9179	  x86_64-*linux*)
9180	    LD="${LD-ld} -m elf_x86_64"
9181	    ;;
9182	  powerpcle-*linux*)
9183	    LD="${LD-ld} -m elf64lppc"
9184	    ;;
9185	  powerpc-*linux*)
9186	    LD="${LD-ld} -m elf64ppc"
9187	    ;;
9188	  s390*-*linux*|s390*-*tpf*)
9189	    LD="${LD-ld} -m elf64_s390"
9190	    ;;
9191	  sparc*-*linux*)
9192	    LD="${LD-ld} -m elf64_sparc"
9193	    ;;
9194	esac
9195	;;
9196    esac
9197  fi
9198  rm -rf conftest*
9199  ;;
9200
9201*-*-sco3.2v5*)
9202  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9203  SAVE_CFLAGS=$CFLAGS
9204  CFLAGS="$CFLAGS -belf"
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9206$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9207if ${lt_cv_cc_needs_belf+:} false; then :
9208  $as_echo_n "(cached) " >&6
9209else
9210  ac_ext=c
9211ac_cpp='$CPP $CPPFLAGS'
9212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214ac_compiler_gnu=$ac_cv_c_compiler_gnu
9215
9216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218
9219int
9220main ()
9221{
9222
9223  ;
9224  return 0;
9225}
9226_ACEOF
9227if ac_fn_c_try_link "$LINENO"; then :
9228  lt_cv_cc_needs_belf=yes
9229else
9230  lt_cv_cc_needs_belf=no
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233    conftest$ac_exeext conftest.$ac_ext
9234     ac_ext=c
9235ac_cpp='$CPP $CPPFLAGS'
9236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9238ac_compiler_gnu=$ac_cv_c_compiler_gnu
9239
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9242$as_echo "$lt_cv_cc_needs_belf" >&6; }
9243  if test yes != "$lt_cv_cc_needs_belf"; then
9244    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9245    CFLAGS=$SAVE_CFLAGS
9246  fi
9247  ;;
9248*-*solaris*)
9249  # Find out what ABI is being produced by ac_compile, and set linker
9250  # options accordingly.
9251  echo 'int i;' > conftest.$ac_ext
9252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9253  (eval $ac_compile) 2>&5
9254  ac_status=$?
9255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9256  test $ac_status = 0; }; then
9257    case `/usr/bin/file conftest.o` in
9258    *64-bit*)
9259      case $lt_cv_prog_gnu_ld in
9260      yes*)
9261        case $host in
9262        i?86-*-solaris*|x86_64-*-solaris*)
9263          LD="${LD-ld} -m elf_x86_64"
9264          ;;
9265        sparc*-*-solaris*)
9266          LD="${LD-ld} -m elf64_sparc"
9267          ;;
9268        esac
9269        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9270        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9271          LD=${LD-ld}_sol2
9272        fi
9273        ;;
9274      *)
9275	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9276	  LD="${LD-ld} -64"
9277	fi
9278	;;
9279      esac
9280      ;;
9281    esac
9282  fi
9283  rm -rf conftest*
9284  ;;
9285esac
9286
9287need_locks=$enable_libtool_lock
9288
9289if test -n "$ac_tool_prefix"; then
9290  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9291set dummy ${ac_tool_prefix}mt; ac_word=$2
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  if test -n "$MANIFEST_TOOL"; then
9298  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9299else
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303  IFS=$as_save_IFS
9304  test -z "$as_dir" && as_dir=.
9305    for ac_exec_ext in '' $ac_executable_extensions; do
9306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309    break 2
9310  fi
9311done
9312  done
9313IFS=$as_save_IFS
9314
9315fi
9316fi
9317MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9318if test -n "$MANIFEST_TOOL"; then
9319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9320$as_echo "$MANIFEST_TOOL" >&6; }
9321else
9322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
9324fi
9325
9326
9327fi
9328if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9329  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9330  # Extract the first word of "mt", so it can be a program name with args.
9331set dummy mt; ac_word=$2
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333$as_echo_n "checking for $ac_word... " >&6; }
9334if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9335  $as_echo_n "(cached) " >&6
9336else
9337  if test -n "$ac_ct_MANIFEST_TOOL"; then
9338  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9339else
9340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341for as_dir in $PATH
9342do
9343  IFS=$as_save_IFS
9344  test -z "$as_dir" && as_dir=.
9345    for ac_exec_ext in '' $ac_executable_extensions; do
9346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349    break 2
9350  fi
9351done
9352  done
9353IFS=$as_save_IFS
9354
9355fi
9356fi
9357ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9358if test -n "$ac_ct_MANIFEST_TOOL"; then
9359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9360$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9361else
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363$as_echo "no" >&6; }
9364fi
9365
9366  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9367    MANIFEST_TOOL=":"
9368  else
9369    case $cross_compiling:$ac_tool_warned in
9370yes:)
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373ac_tool_warned=yes ;;
9374esac
9375    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9376  fi
9377else
9378  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9379fi
9380
9381test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9383$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9384if ${lt_cv_path_mainfest_tool+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  lt_cv_path_mainfest_tool=no
9388  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9389  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9390  cat conftest.err >&5
9391  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9392    lt_cv_path_mainfest_tool=yes
9393  fi
9394  rm -f conftest*
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9397$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9398if test yes != "$lt_cv_path_mainfest_tool"; then
9399  MANIFEST_TOOL=:
9400fi
9401
9402
9403
9404
9405
9406
9407  case $host_os in
9408    rhapsody* | darwin*)
9409    if test -n "$ac_tool_prefix"; then
9410  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9411set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413$as_echo_n "checking for $ac_word... " >&6; }
9414if ${ac_cv_prog_DSYMUTIL+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  if test -n "$DSYMUTIL"; then
9418  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9419else
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423  IFS=$as_save_IFS
9424  test -z "$as_dir" && as_dir=.
9425    for ac_exec_ext in '' $ac_executable_extensions; do
9426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429    break 2
9430  fi
9431done
9432  done
9433IFS=$as_save_IFS
9434
9435fi
9436fi
9437DSYMUTIL=$ac_cv_prog_DSYMUTIL
9438if test -n "$DSYMUTIL"; then
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9440$as_echo "$DSYMUTIL" >&6; }
9441else
9442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
9444fi
9445
9446
9447fi
9448if test -z "$ac_cv_prog_DSYMUTIL"; then
9449  ac_ct_DSYMUTIL=$DSYMUTIL
9450  # Extract the first word of "dsymutil", so it can be a program name with args.
9451set dummy dsymutil; ac_word=$2
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453$as_echo_n "checking for $ac_word... " >&6; }
9454if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457  if test -n "$ac_ct_DSYMUTIL"; then
9458  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9459else
9460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461for as_dir in $PATH
9462do
9463  IFS=$as_save_IFS
9464  test -z "$as_dir" && as_dir=.
9465    for ac_exec_ext in '' $ac_executable_extensions; do
9466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469    break 2
9470  fi
9471done
9472  done
9473IFS=$as_save_IFS
9474
9475fi
9476fi
9477ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9478if test -n "$ac_ct_DSYMUTIL"; then
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9480$as_echo "$ac_ct_DSYMUTIL" >&6; }
9481else
9482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483$as_echo "no" >&6; }
9484fi
9485
9486  if test "x$ac_ct_DSYMUTIL" = x; then
9487    DSYMUTIL=":"
9488  else
9489    case $cross_compiling:$ac_tool_warned in
9490yes:)
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9493ac_tool_warned=yes ;;
9494esac
9495    DSYMUTIL=$ac_ct_DSYMUTIL
9496  fi
9497else
9498  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9499fi
9500
9501    if test -n "$ac_tool_prefix"; then
9502  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9503set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505$as_echo_n "checking for $ac_word... " >&6; }
9506if ${ac_cv_prog_NMEDIT+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  if test -n "$NMEDIT"; then
9510  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9511else
9512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513for as_dir in $PATH
9514do
9515  IFS=$as_save_IFS
9516  test -z "$as_dir" && as_dir=.
9517    for ac_exec_ext in '' $ac_executable_extensions; do
9518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521    break 2
9522  fi
9523done
9524  done
9525IFS=$as_save_IFS
9526
9527fi
9528fi
9529NMEDIT=$ac_cv_prog_NMEDIT
9530if test -n "$NMEDIT"; then
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9532$as_echo "$NMEDIT" >&6; }
9533else
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535$as_echo "no" >&6; }
9536fi
9537
9538
9539fi
9540if test -z "$ac_cv_prog_NMEDIT"; then
9541  ac_ct_NMEDIT=$NMEDIT
9542  # Extract the first word of "nmedit", so it can be a program name with args.
9543set dummy nmedit; ac_word=$2
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545$as_echo_n "checking for $ac_word... " >&6; }
9546if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9547  $as_echo_n "(cached) " >&6
9548else
9549  if test -n "$ac_ct_NMEDIT"; then
9550  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9551else
9552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553for as_dir in $PATH
9554do
9555  IFS=$as_save_IFS
9556  test -z "$as_dir" && as_dir=.
9557    for ac_exec_ext in '' $ac_executable_extensions; do
9558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561    break 2
9562  fi
9563done
9564  done
9565IFS=$as_save_IFS
9566
9567fi
9568fi
9569ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9570if test -n "$ac_ct_NMEDIT"; then
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9572$as_echo "$ac_ct_NMEDIT" >&6; }
9573else
9574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575$as_echo "no" >&6; }
9576fi
9577
9578  if test "x$ac_ct_NMEDIT" = x; then
9579    NMEDIT=":"
9580  else
9581    case $cross_compiling:$ac_tool_warned in
9582yes:)
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9585ac_tool_warned=yes ;;
9586esac
9587    NMEDIT=$ac_ct_NMEDIT
9588  fi
9589else
9590  NMEDIT="$ac_cv_prog_NMEDIT"
9591fi
9592
9593    if test -n "$ac_tool_prefix"; then
9594  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9595set dummy ${ac_tool_prefix}lipo; ac_word=$2
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597$as_echo_n "checking for $ac_word... " >&6; }
9598if ${ac_cv_prog_LIPO+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  if test -n "$LIPO"; then
9602  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9603else
9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607  IFS=$as_save_IFS
9608  test -z "$as_dir" && as_dir=.
9609    for ac_exec_ext in '' $ac_executable_extensions; do
9610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613    break 2
9614  fi
9615done
9616  done
9617IFS=$as_save_IFS
9618
9619fi
9620fi
9621LIPO=$ac_cv_prog_LIPO
9622if test -n "$LIPO"; then
9623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9624$as_echo "$LIPO" >&6; }
9625else
9626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627$as_echo "no" >&6; }
9628fi
9629
9630
9631fi
9632if test -z "$ac_cv_prog_LIPO"; then
9633  ac_ct_LIPO=$LIPO
9634  # Extract the first word of "lipo", so it can be a program name with args.
9635set dummy lipo; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9639  $as_echo_n "(cached) " >&6
9640else
9641  if test -n "$ac_ct_LIPO"; then
9642  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647  IFS=$as_save_IFS
9648  test -z "$as_dir" && as_dir=.
9649    for ac_exec_ext in '' $ac_executable_extensions; do
9650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651    ac_cv_prog_ac_ct_LIPO="lipo"
9652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653    break 2
9654  fi
9655done
9656  done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9662if test -n "$ac_ct_LIPO"; then
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9664$as_echo "$ac_ct_LIPO" >&6; }
9665else
9666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670  if test "x$ac_ct_LIPO" = x; then
9671    LIPO=":"
9672  else
9673    case $cross_compiling:$ac_tool_warned in
9674yes:)
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677ac_tool_warned=yes ;;
9678esac
9679    LIPO=$ac_ct_LIPO
9680  fi
9681else
9682  LIPO="$ac_cv_prog_LIPO"
9683fi
9684
9685    if test -n "$ac_tool_prefix"; then
9686  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9687set dummy ${ac_tool_prefix}otool; ac_word=$2
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689$as_echo_n "checking for $ac_word... " >&6; }
9690if ${ac_cv_prog_OTOOL+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  if test -n "$OTOOL"; then
9694  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9695else
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
9698do
9699  IFS=$as_save_IFS
9700  test -z "$as_dir" && as_dir=.
9701    for ac_exec_ext in '' $ac_executable_extensions; do
9702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705    break 2
9706  fi
9707done
9708  done
9709IFS=$as_save_IFS
9710
9711fi
9712fi
9713OTOOL=$ac_cv_prog_OTOOL
9714if test -n "$OTOOL"; then
9715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9716$as_echo "$OTOOL" >&6; }
9717else
9718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719$as_echo "no" >&6; }
9720fi
9721
9722
9723fi
9724if test -z "$ac_cv_prog_OTOOL"; then
9725  ac_ct_OTOOL=$OTOOL
9726  # Extract the first word of "otool", so it can be a program name with args.
9727set dummy otool; ac_word=$2
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729$as_echo_n "checking for $ac_word... " >&6; }
9730if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  if test -n "$ac_ct_OTOOL"; then
9734  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9735else
9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737for as_dir in $PATH
9738do
9739  IFS=$as_save_IFS
9740  test -z "$as_dir" && as_dir=.
9741    for ac_exec_ext in '' $ac_executable_extensions; do
9742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743    ac_cv_prog_ac_ct_OTOOL="otool"
9744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745    break 2
9746  fi
9747done
9748  done
9749IFS=$as_save_IFS
9750
9751fi
9752fi
9753ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9754if test -n "$ac_ct_OTOOL"; then
9755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9756$as_echo "$ac_ct_OTOOL" >&6; }
9757else
9758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759$as_echo "no" >&6; }
9760fi
9761
9762  if test "x$ac_ct_OTOOL" = x; then
9763    OTOOL=":"
9764  else
9765    case $cross_compiling:$ac_tool_warned in
9766yes:)
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9769ac_tool_warned=yes ;;
9770esac
9771    OTOOL=$ac_ct_OTOOL
9772  fi
9773else
9774  OTOOL="$ac_cv_prog_OTOOL"
9775fi
9776
9777    if test -n "$ac_tool_prefix"; then
9778  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9779set dummy ${ac_tool_prefix}otool64; ac_word=$2
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
9782if ${ac_cv_prog_OTOOL64+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  if test -n "$OTOOL64"; then
9786  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791  IFS=$as_save_IFS
9792  test -z "$as_dir" && as_dir=.
9793    for ac_exec_ext in '' $ac_executable_extensions; do
9794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797    break 2
9798  fi
9799done
9800  done
9801IFS=$as_save_IFS
9802
9803fi
9804fi
9805OTOOL64=$ac_cv_prog_OTOOL64
9806if test -n "$OTOOL64"; then
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9808$as_echo "$OTOOL64" >&6; }
9809else
9810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811$as_echo "no" >&6; }
9812fi
9813
9814
9815fi
9816if test -z "$ac_cv_prog_OTOOL64"; then
9817  ac_ct_OTOOL64=$OTOOL64
9818  # Extract the first word of "otool64", so it can be a program name with args.
9819set dummy otool64; ac_word=$2
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821$as_echo_n "checking for $ac_word... " >&6; }
9822if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  if test -n "$ac_ct_OTOOL64"; then
9826  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9827else
9828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829for as_dir in $PATH
9830do
9831  IFS=$as_save_IFS
9832  test -z "$as_dir" && as_dir=.
9833    for ac_exec_ext in '' $ac_executable_extensions; do
9834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9835    ac_cv_prog_ac_ct_OTOOL64="otool64"
9836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837    break 2
9838  fi
9839done
9840  done
9841IFS=$as_save_IFS
9842
9843fi
9844fi
9845ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9846if test -n "$ac_ct_OTOOL64"; then
9847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9848$as_echo "$ac_ct_OTOOL64" >&6; }
9849else
9850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851$as_echo "no" >&6; }
9852fi
9853
9854  if test "x$ac_ct_OTOOL64" = x; then
9855    OTOOL64=":"
9856  else
9857    case $cross_compiling:$ac_tool_warned in
9858yes:)
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9861ac_tool_warned=yes ;;
9862esac
9863    OTOOL64=$ac_ct_OTOOL64
9864  fi
9865else
9866  OTOOL64="$ac_cv_prog_OTOOL64"
9867fi
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9896$as_echo_n "checking for -single_module linker flag... " >&6; }
9897if ${lt_cv_apple_cc_single_mod+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  lt_cv_apple_cc_single_mod=no
9901      if test -z "$LT_MULTI_MODULE"; then
9902	# By default we will add the -single_module flag. You can override
9903	# by either setting the environment variable LT_MULTI_MODULE
9904	# non-empty at configure time, or by adding -multi_module to the
9905	# link flags.
9906	rm -rf libconftest.dylib*
9907	echo "int foo(void){return 1;}" > conftest.c
9908	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9909-dynamiclib -Wl,-single_module conftest.c" >&5
9910	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9911	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9912        _lt_result=$?
9913	# If there is a non-empty error log, and "single_module"
9914	# appears in it, assume the flag caused a linker warning
9915        if test -s conftest.err && $GREP single_module conftest.err; then
9916	  cat conftest.err >&5
9917	# Otherwise, if the output was created with a 0 exit code from
9918	# the compiler, it worked.
9919	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9920	  lt_cv_apple_cc_single_mod=yes
9921	else
9922	  cat conftest.err >&5
9923	fi
9924	rm -rf libconftest.dylib*
9925	rm -f conftest.*
9926      fi
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9929$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9930
9931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9932$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9933if ${lt_cv_ld_exported_symbols_list+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  lt_cv_ld_exported_symbols_list=no
9937      save_LDFLAGS=$LDFLAGS
9938      echo "_main" > conftest.sym
9939      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942
9943int
9944main ()
9945{
9946
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952  lt_cv_ld_exported_symbols_list=yes
9953else
9954  lt_cv_ld_exported_symbols_list=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext \
9957    conftest$ac_exeext conftest.$ac_ext
9958	LDFLAGS=$save_LDFLAGS
9959
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9962$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9963
9964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9965$as_echo_n "checking for -force_load linker flag... " >&6; }
9966if ${lt_cv_ld_force_load+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  lt_cv_ld_force_load=no
9970      cat > conftest.c << _LT_EOF
9971int forced_loaded() { return 2;}
9972_LT_EOF
9973      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9974      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9975      echo "$AR cru libconftest.a conftest.o" >&5
9976      $AR cru libconftest.a conftest.o 2>&5
9977      echo "$RANLIB libconftest.a" >&5
9978      $RANLIB libconftest.a 2>&5
9979      cat > conftest.c << _LT_EOF
9980int main() { return 0;}
9981_LT_EOF
9982      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9983      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9984      _lt_result=$?
9985      if test -s conftest.err && $GREP force_load conftest.err; then
9986	cat conftest.err >&5
9987      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9988	lt_cv_ld_force_load=yes
9989      else
9990	cat conftest.err >&5
9991      fi
9992        rm -f conftest.err libconftest.a conftest conftest.c
9993        rm -rf conftest.dSYM
9994
9995fi
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9997$as_echo "$lt_cv_ld_force_load" >&6; }
9998    case $host_os in
9999    rhapsody* | darwin1.[012])
10000      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10001    darwin1.*)
10002      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10003    darwin*) # darwin 5.x on
10004      # if running on 10.5 or later, the deployment target defaults
10005      # to the OS version, if on x86, and 10.4, the deployment
10006      # target defaults to 10.4. Don't you love it?
10007      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10008	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10009	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10010	10.[012][,.]*)
10011	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10012	10.*)
10013	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10014      esac
10015    ;;
10016  esac
10017    if test yes = "$lt_cv_apple_cc_single_mod"; then
10018      _lt_dar_single_mod='$single_module'
10019    fi
10020    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10021      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10022    else
10023      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10024    fi
10025    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10026      _lt_dsymutil='~$DSYMUTIL $lib || :'
10027    else
10028      _lt_dsymutil=
10029    fi
10030    ;;
10031  esac
10032
10033# func_munge_path_list VARIABLE PATH
10034# -----------------------------------
10035# VARIABLE is name of variable containing _space_ separated list of
10036# directories to be munged by the contents of PATH, which is string
10037# having a format:
10038# "DIR[:DIR]:"
10039#       string "DIR[ DIR]" will be prepended to VARIABLE
10040# ":DIR[:DIR]"
10041#       string "DIR[ DIR]" will be appended to VARIABLE
10042# "DIRP[:DIRP]::[DIRA:]DIRA"
10043#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10044#       "DIRA[ DIRA]" will be appended to VARIABLE
10045# "DIR[:DIR]"
10046#       VARIABLE will be replaced by "DIR[ DIR]"
10047func_munge_path_list ()
10048{
10049    case x$2 in
10050    x)
10051        ;;
10052    *:)
10053        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10054        ;;
10055    x:*)
10056        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10057        ;;
10058    *::*)
10059        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10060        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10061        ;;
10062    *)
10063        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10064        ;;
10065    esac
10066}
10067
10068for ac_header in dlfcn.h
10069do :
10070  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10071"
10072if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10073  cat >>confdefs.h <<_ACEOF
10074#define HAVE_DLFCN_H 1
10075_ACEOF
10076
10077fi
10078
10079done
10080
10081
10082
10083
10084
10085
10086
10087# Set options
10088
10089
10090
10091        enable_dlopen=no
10092
10093
10094  enable_win32_dll=no
10095
10096
10097            # Check whether --enable-shared was given.
10098if test "${enable_shared+set}" = set; then :
10099  enableval=$enable_shared; p=${PACKAGE-default}
10100    case $enableval in
10101    yes) enable_shared=yes ;;
10102    no) enable_shared=no ;;
10103    *)
10104      enable_shared=no
10105      # Look at the argument we got.  We use all the common list separators.
10106      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10107      for pkg in $enableval; do
10108	IFS=$lt_save_ifs
10109	if test "X$pkg" = "X$p"; then
10110	  enable_shared=yes
10111	fi
10112      done
10113      IFS=$lt_save_ifs
10114      ;;
10115    esac
10116else
10117  enable_shared=yes
10118fi
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128  # Check whether --enable-static was given.
10129if test "${enable_static+set}" = set; then :
10130  enableval=$enable_static; p=${PACKAGE-default}
10131    case $enableval in
10132    yes) enable_static=yes ;;
10133    no) enable_static=no ;;
10134    *)
10135     enable_static=no
10136      # Look at the argument we got.  We use all the common list separators.
10137      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10138      for pkg in $enableval; do
10139	IFS=$lt_save_ifs
10140	if test "X$pkg" = "X$p"; then
10141	  enable_static=yes
10142	fi
10143      done
10144      IFS=$lt_save_ifs
10145      ;;
10146    esac
10147else
10148  enable_static=yes
10149fi
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160# Check whether --with-pic was given.
10161if test "${with_pic+set}" = set; then :
10162  withval=$with_pic; lt_p=${PACKAGE-default}
10163    case $withval in
10164    yes|no) pic_mode=$withval ;;
10165    *)
10166      pic_mode=default
10167      # Look at the argument we got.  We use all the common list separators.
10168      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10169      for lt_pkg in $withval; do
10170	IFS=$lt_save_ifs
10171	if test "X$lt_pkg" = "X$lt_p"; then
10172	  pic_mode=yes
10173	fi
10174      done
10175      IFS=$lt_save_ifs
10176      ;;
10177    esac
10178else
10179  pic_mode=default
10180fi
10181
10182
10183
10184
10185
10186
10187
10188
10189  # Check whether --enable-fast-install was given.
10190if test "${enable_fast_install+set}" = set; then :
10191  enableval=$enable_fast_install; p=${PACKAGE-default}
10192    case $enableval in
10193    yes) enable_fast_install=yes ;;
10194    no) enable_fast_install=no ;;
10195    *)
10196      enable_fast_install=no
10197      # Look at the argument we got.  We use all the common list separators.
10198      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10199      for pkg in $enableval; do
10200	IFS=$lt_save_ifs
10201	if test "X$pkg" = "X$p"; then
10202	  enable_fast_install=yes
10203	fi
10204      done
10205      IFS=$lt_save_ifs
10206      ;;
10207    esac
10208else
10209  enable_fast_install=yes
10210fi
10211
10212
10213
10214
10215
10216
10217
10218
10219  shared_archive_member_spec=
10220case $host,$enable_shared in
10221power*-*-aix[5-9]*,yes)
10222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10223$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10224
10225# Check whether --with-aix-soname was given.
10226if test "${with_aix_soname+set}" = set; then :
10227  withval=$with_aix_soname; case $withval in
10228    aix|svr4|both)
10229      ;;
10230    *)
10231      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10232      ;;
10233    esac
10234    lt_cv_with_aix_soname=$with_aix_soname
10235else
10236  if ${lt_cv_with_aix_soname+:} false; then :
10237  $as_echo_n "(cached) " >&6
10238else
10239  lt_cv_with_aix_soname=aix
10240fi
10241
10242    with_aix_soname=$lt_cv_with_aix_soname
10243fi
10244
10245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10246$as_echo "$with_aix_soname" >&6; }
10247  if test aix != "$with_aix_soname"; then
10248    # For the AIX way of multilib, we name the shared archive member
10249    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10250    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10251    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10252    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10253    if test 64 = "${OBJECT_MODE-32}"; then
10254      shared_archive_member_spec=shr_64
10255    else
10256      shared_archive_member_spec=shr
10257    fi
10258  fi
10259  ;;
10260*)
10261  with_aix_soname=aix
10262  ;;
10263esac
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274# This can be used to rebuild libtool when needed
10275LIBTOOL_DEPS=$ltmain
10276
10277# Always use our own libtool.
10278LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10279
10280
10281
10282
10283
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
10309test -z "$LN_S" && LN_S="ln -s"
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324if test -n "${ZSH_VERSION+set}"; then
10325   setopt NO_GLOB_SUBST
10326fi
10327
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10329$as_echo_n "checking for objdir... " >&6; }
10330if ${lt_cv_objdir+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  rm -f .libs 2>/dev/null
10334mkdir .libs 2>/dev/null
10335if test -d .libs; then
10336  lt_cv_objdir=.libs
10337else
10338  # MS-DOS does not allow filenames that begin with a dot.
10339  lt_cv_objdir=_libs
10340fi
10341rmdir .libs 2>/dev/null
10342fi
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10344$as_echo "$lt_cv_objdir" >&6; }
10345objdir=$lt_cv_objdir
10346
10347
10348
10349
10350
10351cat >>confdefs.h <<_ACEOF
10352#define LT_OBJDIR "$lt_cv_objdir/"
10353_ACEOF
10354
10355
10356
10357
10358case $host_os in
10359aix3*)
10360  # AIX sometimes has problems with the GCC collect2 program.  For some
10361  # reason, if we set the COLLECT_NAMES environment variable, the problems
10362  # vanish in a puff of smoke.
10363  if test set != "${COLLECT_NAMES+set}"; then
10364    COLLECT_NAMES=
10365    export COLLECT_NAMES
10366  fi
10367  ;;
10368esac
10369
10370# Global variables:
10371ofile=libtool
10372can_build_shared=yes
10373
10374# All known linkers require a '.a' archive for static linking (except MSVC,
10375# which needs '.lib').
10376libext=a
10377
10378with_gnu_ld=$lt_cv_prog_gnu_ld
10379
10380old_CC=$CC
10381old_CFLAGS=$CFLAGS
10382
10383# Set sane defaults for various variables
10384test -z "$CC" && CC=cc
10385test -z "$LTCC" && LTCC=$CC
10386test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10387test -z "$LD" && LD=ld
10388test -z "$ac_objext" && ac_objext=o
10389
10390func_cc_basename $compiler
10391cc_basename=$func_cc_basename_result
10392
10393
10394# Only perform the check for file, if the check method requires it
10395test -z "$MAGIC_CMD" && MAGIC_CMD=file
10396case $deplibs_check_method in
10397file_magic*)
10398  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10400$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10401if ${lt_cv_path_MAGIC_CMD+:} false; then :
10402  $as_echo_n "(cached) " >&6
10403else
10404  case $MAGIC_CMD in
10405[\\/*] |  ?:[\\/]*)
10406  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10407  ;;
10408*)
10409  lt_save_MAGIC_CMD=$MAGIC_CMD
10410  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10411  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10412  for ac_dir in $ac_dummy; do
10413    IFS=$lt_save_ifs
10414    test -z "$ac_dir" && ac_dir=.
10415    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10416      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10417      if test -n "$file_magic_test_file"; then
10418	case $deplibs_check_method in
10419	"file_magic "*)
10420	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10421	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10422	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10423	    $EGREP "$file_magic_regex" > /dev/null; then
10424	    :
10425	  else
10426	    cat <<_LT_EOF 1>&2
10427
10428*** Warning: the command libtool uses to detect shared libraries,
10429*** $file_magic_cmd, produces output that libtool cannot recognize.
10430*** The result is that libtool may fail to recognize shared libraries
10431*** as such.  This will affect the creation of libtool libraries that
10432*** depend on shared libraries, but programs linked with such libtool
10433*** libraries will work regardless of this problem.  Nevertheless, you
10434*** may want to report the problem to your system manager and/or to
10435*** bug-libtool@gnu.org
10436
10437_LT_EOF
10438	  fi ;;
10439	esac
10440      fi
10441      break
10442    fi
10443  done
10444  IFS=$lt_save_ifs
10445  MAGIC_CMD=$lt_save_MAGIC_CMD
10446  ;;
10447esac
10448fi
10449
10450MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10451if test -n "$MAGIC_CMD"; then
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10453$as_echo "$MAGIC_CMD" >&6; }
10454else
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456$as_echo "no" >&6; }
10457fi
10458
10459
10460
10461
10462
10463if test -z "$lt_cv_path_MAGIC_CMD"; then
10464  if test -n "$ac_tool_prefix"; then
10465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10466$as_echo_n "checking for file... " >&6; }
10467if ${lt_cv_path_MAGIC_CMD+:} false; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  case $MAGIC_CMD in
10471[\\/*] |  ?:[\\/]*)
10472  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10473  ;;
10474*)
10475  lt_save_MAGIC_CMD=$MAGIC_CMD
10476  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10477  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10478  for ac_dir in $ac_dummy; do
10479    IFS=$lt_save_ifs
10480    test -z "$ac_dir" && ac_dir=.
10481    if test -f "$ac_dir/file"; then
10482      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10483      if test -n "$file_magic_test_file"; then
10484	case $deplibs_check_method in
10485	"file_magic "*)
10486	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10487	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10488	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10489	    $EGREP "$file_magic_regex" > /dev/null; then
10490	    :
10491	  else
10492	    cat <<_LT_EOF 1>&2
10493
10494*** Warning: the command libtool uses to detect shared libraries,
10495*** $file_magic_cmd, produces output that libtool cannot recognize.
10496*** The result is that libtool may fail to recognize shared libraries
10497*** as such.  This will affect the creation of libtool libraries that
10498*** depend on shared libraries, but programs linked with such libtool
10499*** libraries will work regardless of this problem.  Nevertheless, you
10500*** may want to report the problem to your system manager and/or to
10501*** bug-libtool@gnu.org
10502
10503_LT_EOF
10504	  fi ;;
10505	esac
10506      fi
10507      break
10508    fi
10509  done
10510  IFS=$lt_save_ifs
10511  MAGIC_CMD=$lt_save_MAGIC_CMD
10512  ;;
10513esac
10514fi
10515
10516MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10517if test -n "$MAGIC_CMD"; then
10518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10519$as_echo "$MAGIC_CMD" >&6; }
10520else
10521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525
10526  else
10527    MAGIC_CMD=:
10528  fi
10529fi
10530
10531  fi
10532  ;;
10533esac
10534
10535# Use C for the default configuration in the libtool script
10536
10537lt_save_CC=$CC
10538ac_ext=c
10539ac_cpp='$CPP $CPPFLAGS'
10540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543
10544
10545# Source file extension for C test sources.
10546ac_ext=c
10547
10548# Object file extension for compiled C test sources.
10549objext=o
10550objext=$objext
10551
10552# Code to be used in simple compile tests
10553lt_simple_compile_test_code="int some_variable = 0;"
10554
10555# Code to be used in simple link tests
10556lt_simple_link_test_code='int main(){return(0);}'
10557
10558
10559
10560
10561
10562
10563
10564# If no C compiler was specified, use CC.
10565LTCC=${LTCC-"$CC"}
10566
10567# If no C compiler flags were specified, use CFLAGS.
10568LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10569
10570# Allow CC to be a program name with arguments.
10571compiler=$CC
10572
10573# Save the default compiler, since it gets overwritten when the other
10574# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10575compiler_DEFAULT=$CC
10576
10577# save warnings/boilerplate of simple test code
10578ac_outfile=conftest.$ac_objext
10579echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10581_lt_compiler_boilerplate=`cat conftest.err`
10582$RM conftest*
10583
10584ac_outfile=conftest.$ac_objext
10585echo "$lt_simple_link_test_code" >conftest.$ac_ext
10586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10587_lt_linker_boilerplate=`cat conftest.err`
10588$RM -r conftest*
10589
10590
10591if test -n "$compiler"; then
10592
10593lt_prog_compiler_no_builtin_flag=
10594
10595if test yes = "$GCC"; then
10596  case $cc_basename in
10597  nvcc*)
10598    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10599  *)
10600    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10601  esac
10602
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10604$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10605if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10606  $as_echo_n "(cached) " >&6
10607else
10608  lt_cv_prog_compiler_rtti_exceptions=no
10609   ac_outfile=conftest.$ac_objext
10610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10611   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10612   # Insert the option either (1) after the last *FLAGS variable, or
10613   # (2) before a word containing "conftest.", or (3) at the end.
10614   # Note that $ac_compile itself does not contain backslashes and begins
10615   # with a dollar sign (not a hyphen), so the echo should work correctly.
10616   # The option is referenced via a variable to avoid confusing sed.
10617   lt_compile=`echo "$ac_compile" | $SED \
10618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10620   -e 's:$: $lt_compiler_flag:'`
10621   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10622   (eval "$lt_compile" 2>conftest.err)
10623   ac_status=$?
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   if (exit $ac_status) && test -s "$ac_outfile"; then
10627     # The compiler can only warn and ignore the option if not recognized
10628     # So say no if there are warnings other than the usual output.
10629     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10630     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10631     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10632       lt_cv_prog_compiler_rtti_exceptions=yes
10633     fi
10634   fi
10635   $RM conftest*
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10639$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10640
10641if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10642    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10643else
10644    :
10645fi
10646
10647fi
10648
10649
10650
10651
10652
10653
10654  lt_prog_compiler_wl=
10655lt_prog_compiler_pic=
10656lt_prog_compiler_static=
10657
10658
10659  if test yes = "$GCC"; then
10660    lt_prog_compiler_wl='-Wl,'
10661    lt_prog_compiler_static='-static'
10662
10663    case $host_os in
10664      aix*)
10665      # All AIX code is PIC.
10666      if test ia64 = "$host_cpu"; then
10667	# AIX 5 now supports IA64 processor
10668	lt_prog_compiler_static='-Bstatic'
10669      fi
10670      lt_prog_compiler_pic='-fPIC'
10671      ;;
10672
10673    amigaos*)
10674      case $host_cpu in
10675      powerpc)
10676            # see comment about AmigaOS4 .so support
10677            lt_prog_compiler_pic='-fPIC'
10678        ;;
10679      m68k)
10680            # FIXME: we need at least 68020 code to build shared libraries, but
10681            # adding the '-m68020' flag to GCC prevents building anything better,
10682            # like '-m68040'.
10683            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10684        ;;
10685      esac
10686      ;;
10687
10688    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10689      # PIC is the default for these OSes.
10690      ;;
10691
10692    mingw* | cygwin* | pw32* | os2* | cegcc*)
10693      # This hack is so that the source file can tell whether it is being
10694      # built for inclusion in a dll (and should export symbols for example).
10695      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10696      # (--disable-auto-import) libraries
10697      lt_prog_compiler_pic='-DDLL_EXPORT'
10698      case $host_os in
10699      os2*)
10700	lt_prog_compiler_static='$wl-static'
10701	;;
10702      esac
10703      ;;
10704
10705    darwin* | rhapsody*)
10706      # PIC is the default on this platform
10707      # Common symbols not allowed in MH_DYLIB files
10708      lt_prog_compiler_pic='-fno-common'
10709      ;;
10710
10711    haiku*)
10712      # PIC is the default for Haiku.
10713      # The "-static" flag exists, but is broken.
10714      lt_prog_compiler_static=
10715      ;;
10716
10717    hpux*)
10718      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10719      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10720      # sets the default TLS model and affects inlining.
10721      case $host_cpu in
10722      hppa*64*)
10723	# +Z the default
10724	;;
10725      *)
10726	lt_prog_compiler_pic='-fPIC'
10727	;;
10728      esac
10729      ;;
10730
10731    interix[3-9]*)
10732      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10733      # Instead, we relocate shared libraries at runtime.
10734      ;;
10735
10736    msdosdjgpp*)
10737      # Just because we use GCC doesn't mean we suddenly get shared libraries
10738      # on systems that don't support them.
10739      lt_prog_compiler_can_build_shared=no
10740      enable_shared=no
10741      ;;
10742
10743    *nto* | *qnx*)
10744      # QNX uses GNU C++, but need to define -shared option too, otherwise
10745      # it will coredump.
10746      lt_prog_compiler_pic='-fPIC -shared'
10747      ;;
10748
10749    sysv4*MP*)
10750      if test -d /usr/nec; then
10751	lt_prog_compiler_pic=-Kconform_pic
10752      fi
10753      ;;
10754
10755    *)
10756      lt_prog_compiler_pic='-fPIC'
10757      ;;
10758    esac
10759
10760    case $cc_basename in
10761    nvcc*) # Cuda Compiler Driver 2.2
10762      lt_prog_compiler_wl='-Xlinker '
10763      if test -n "$lt_prog_compiler_pic"; then
10764        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10765      fi
10766      ;;
10767    esac
10768  else
10769    # PORTME Check for flag to pass linker flags through the system compiler.
10770    case $host_os in
10771    aix*)
10772      lt_prog_compiler_wl='-Wl,'
10773      if test ia64 = "$host_cpu"; then
10774	# AIX 5 now supports IA64 processor
10775	lt_prog_compiler_static='-Bstatic'
10776      else
10777	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10778      fi
10779      ;;
10780
10781    darwin* | rhapsody*)
10782      # PIC is the default on this platform
10783      # Common symbols not allowed in MH_DYLIB files
10784      lt_prog_compiler_pic='-fno-common'
10785      case $cc_basename in
10786      nagfor*)
10787        # NAG Fortran compiler
10788        lt_prog_compiler_wl='-Wl,-Wl,,'
10789        lt_prog_compiler_pic='-PIC'
10790        lt_prog_compiler_static='-Bstatic'
10791        ;;
10792      esac
10793      ;;
10794
10795    mingw* | cygwin* | pw32* | os2* | cegcc*)
10796      # This hack is so that the source file can tell whether it is being
10797      # built for inclusion in a dll (and should export symbols for example).
10798      lt_prog_compiler_pic='-DDLL_EXPORT'
10799      case $host_os in
10800      os2*)
10801	lt_prog_compiler_static='$wl-static'
10802	;;
10803      esac
10804      ;;
10805
10806    hpux9* | hpux10* | hpux11*)
10807      lt_prog_compiler_wl='-Wl,'
10808      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10809      # not for PA HP-UX.
10810      case $host_cpu in
10811      hppa*64*|ia64*)
10812	# +Z the default
10813	;;
10814      *)
10815	lt_prog_compiler_pic='+Z'
10816	;;
10817      esac
10818      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10819      lt_prog_compiler_static='$wl-a ${wl}archive'
10820      ;;
10821
10822    irix5* | irix6* | nonstopux*)
10823      lt_prog_compiler_wl='-Wl,'
10824      # PIC (with -KPIC) is the default.
10825      lt_prog_compiler_static='-non_shared'
10826      ;;
10827
10828    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10829      case $cc_basename in
10830      # old Intel for x86_64, which still supported -KPIC.
10831      ecc*)
10832	lt_prog_compiler_wl='-Wl,'
10833	lt_prog_compiler_pic='-KPIC'
10834	lt_prog_compiler_static='-static'
10835        ;;
10836      # icc used to be incompatible with GCC.
10837      # ICC 10 doesn't accept -KPIC any more.
10838      icc* | ifort*)
10839	lt_prog_compiler_wl='-Wl,'
10840	lt_prog_compiler_pic='-fPIC'
10841	lt_prog_compiler_static='-static'
10842        ;;
10843      # Lahey Fortran 8.1.
10844      lf95*)
10845	lt_prog_compiler_wl='-Wl,'
10846	lt_prog_compiler_pic='--shared'
10847	lt_prog_compiler_static='--static'
10848	;;
10849      nagfor*)
10850	# NAG Fortran compiler
10851	lt_prog_compiler_wl='-Wl,-Wl,,'
10852	lt_prog_compiler_pic='-PIC'
10853	lt_prog_compiler_static='-Bstatic'
10854	;;
10855      tcc*)
10856	# Fabrice Bellard et al's Tiny C Compiler
10857	lt_prog_compiler_wl='-Wl,'
10858	lt_prog_compiler_pic='-fPIC'
10859	lt_prog_compiler_static='-static'
10860	;;
10861      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10862        # Portland Group compilers (*not* the Pentium gcc compiler,
10863	# which looks to be a dead project)
10864	lt_prog_compiler_wl='-Wl,'
10865	lt_prog_compiler_pic='-fpic'
10866	lt_prog_compiler_static='-Bstatic'
10867        ;;
10868      ccc*)
10869        lt_prog_compiler_wl='-Wl,'
10870        # All Alpha code is PIC.
10871        lt_prog_compiler_static='-non_shared'
10872        ;;
10873      xl* | bgxl* | bgf* | mpixl*)
10874	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10875	lt_prog_compiler_wl='-Wl,'
10876	lt_prog_compiler_pic='-qpic'
10877	lt_prog_compiler_static='-qstaticlink'
10878	;;
10879      *)
10880	case `$CC -V 2>&1 | sed 5q` in
10881	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10882	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10883	  lt_prog_compiler_pic='-KPIC'
10884	  lt_prog_compiler_static='-Bstatic'
10885	  lt_prog_compiler_wl=''
10886	  ;;
10887	*Sun\ F* | *Sun*Fortran*)
10888	  lt_prog_compiler_pic='-KPIC'
10889	  lt_prog_compiler_static='-Bstatic'
10890	  lt_prog_compiler_wl='-Qoption ld '
10891	  ;;
10892	*Sun\ C*)
10893	  # Sun C 5.9
10894	  lt_prog_compiler_pic='-KPIC'
10895	  lt_prog_compiler_static='-Bstatic'
10896	  lt_prog_compiler_wl='-Wl,'
10897	  ;;
10898        *Intel*\ [CF]*Compiler*)
10899	  lt_prog_compiler_wl='-Wl,'
10900	  lt_prog_compiler_pic='-fPIC'
10901	  lt_prog_compiler_static='-static'
10902	  ;;
10903	*Portland\ Group*)
10904	  lt_prog_compiler_wl='-Wl,'
10905	  lt_prog_compiler_pic='-fpic'
10906	  lt_prog_compiler_static='-Bstatic'
10907	  ;;
10908	esac
10909	;;
10910      esac
10911      ;;
10912
10913    newsos6)
10914      lt_prog_compiler_pic='-KPIC'
10915      lt_prog_compiler_static='-Bstatic'
10916      ;;
10917
10918    *nto* | *qnx*)
10919      # QNX uses GNU C++, but need to define -shared option too, otherwise
10920      # it will coredump.
10921      lt_prog_compiler_pic='-fPIC -shared'
10922      ;;
10923
10924    osf3* | osf4* | osf5*)
10925      lt_prog_compiler_wl='-Wl,'
10926      # All OSF/1 code is PIC.
10927      lt_prog_compiler_static='-non_shared'
10928      ;;
10929
10930    rdos*)
10931      lt_prog_compiler_static='-non_shared'
10932      ;;
10933
10934    solaris*)
10935      lt_prog_compiler_pic='-KPIC'
10936      lt_prog_compiler_static='-Bstatic'
10937      case $cc_basename in
10938      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10939	lt_prog_compiler_wl='-Qoption ld ';;
10940      *)
10941	lt_prog_compiler_wl='-Wl,';;
10942      esac
10943      ;;
10944
10945    sunos4*)
10946      lt_prog_compiler_wl='-Qoption ld '
10947      lt_prog_compiler_pic='-PIC'
10948      lt_prog_compiler_static='-Bstatic'
10949      ;;
10950
10951    sysv4 | sysv4.2uw2* | sysv4.3*)
10952      lt_prog_compiler_wl='-Wl,'
10953      lt_prog_compiler_pic='-KPIC'
10954      lt_prog_compiler_static='-Bstatic'
10955      ;;
10956
10957    sysv4*MP*)
10958      if test -d /usr/nec; then
10959	lt_prog_compiler_pic='-Kconform_pic'
10960	lt_prog_compiler_static='-Bstatic'
10961      fi
10962      ;;
10963
10964    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10965      lt_prog_compiler_wl='-Wl,'
10966      lt_prog_compiler_pic='-KPIC'
10967      lt_prog_compiler_static='-Bstatic'
10968      ;;
10969
10970    unicos*)
10971      lt_prog_compiler_wl='-Wl,'
10972      lt_prog_compiler_can_build_shared=no
10973      ;;
10974
10975    uts4*)
10976      lt_prog_compiler_pic='-pic'
10977      lt_prog_compiler_static='-Bstatic'
10978      ;;
10979
10980    *)
10981      lt_prog_compiler_can_build_shared=no
10982      ;;
10983    esac
10984  fi
10985
10986case $host_os in
10987  # For platforms that do not support PIC, -DPIC is meaningless:
10988  *djgpp*)
10989    lt_prog_compiler_pic=
10990    ;;
10991  *)
10992    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10993    ;;
10994esac
10995
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10997$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10998if ${lt_cv_prog_compiler_pic+:} false; then :
10999  $as_echo_n "(cached) " >&6
11000else
11001  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11004$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11005lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11006
11007#
11008# Check to make sure the PIC flag actually works.
11009#
11010if test -n "$lt_prog_compiler_pic"; then
11011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11012$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11013if ${lt_cv_prog_compiler_pic_works+:} false; then :
11014  $as_echo_n "(cached) " >&6
11015else
11016  lt_cv_prog_compiler_pic_works=no
11017   ac_outfile=conftest.$ac_objext
11018   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11019   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11020   # Insert the option either (1) after the last *FLAGS variable, or
11021   # (2) before a word containing "conftest.", or (3) at the end.
11022   # Note that $ac_compile itself does not contain backslashes and begins
11023   # with a dollar sign (not a hyphen), so the echo should work correctly.
11024   # The option is referenced via a variable to avoid confusing sed.
11025   lt_compile=`echo "$ac_compile" | $SED \
11026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11028   -e 's:$: $lt_compiler_flag:'`
11029   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11030   (eval "$lt_compile" 2>conftest.err)
11031   ac_status=$?
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   if (exit $ac_status) && test -s "$ac_outfile"; then
11035     # The compiler can only warn and ignore the option if not recognized
11036     # So say no if there are warnings other than the usual output.
11037     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11038     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11039     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11040       lt_cv_prog_compiler_pic_works=yes
11041     fi
11042   fi
11043   $RM conftest*
11044
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11047$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11048
11049if test yes = "$lt_cv_prog_compiler_pic_works"; then
11050    case $lt_prog_compiler_pic in
11051     "" | " "*) ;;
11052     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11053     esac
11054else
11055    lt_prog_compiler_pic=
11056     lt_prog_compiler_can_build_shared=no
11057fi
11058
11059fi
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071#
11072# Check to make sure the static flag actually works.
11073#
11074wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11076$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11077if ${lt_cv_prog_compiler_static_works+:} false; then :
11078  $as_echo_n "(cached) " >&6
11079else
11080  lt_cv_prog_compiler_static_works=no
11081   save_LDFLAGS=$LDFLAGS
11082   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11083   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11084   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11085     # The linker can only warn and ignore the option if not recognized
11086     # So say no if there are warnings
11087     if test -s conftest.err; then
11088       # Append any errors to the config.log.
11089       cat conftest.err 1>&5
11090       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11091       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11092       if diff conftest.exp conftest.er2 >/dev/null; then
11093         lt_cv_prog_compiler_static_works=yes
11094       fi
11095     else
11096       lt_cv_prog_compiler_static_works=yes
11097     fi
11098   fi
11099   $RM -r conftest*
11100   LDFLAGS=$save_LDFLAGS
11101
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11104$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11105
11106if test yes = "$lt_cv_prog_compiler_static_works"; then
11107    :
11108else
11109    lt_prog_compiler_static=
11110fi
11111
11112
11113
11114
11115
11116
11117
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11119$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11120if ${lt_cv_prog_compiler_c_o+:} false; then :
11121  $as_echo_n "(cached) " >&6
11122else
11123  lt_cv_prog_compiler_c_o=no
11124   $RM -r conftest 2>/dev/null
11125   mkdir conftest
11126   cd conftest
11127   mkdir out
11128   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129
11130   lt_compiler_flag="-o out/conftest2.$ac_objext"
11131   # Insert the option either (1) after the last *FLAGS variable, or
11132   # (2) before a word containing "conftest.", or (3) at the end.
11133   # Note that $ac_compile itself does not contain backslashes and begins
11134   # with a dollar sign (not a hyphen), so the echo should work correctly.
11135   lt_compile=`echo "$ac_compile" | $SED \
11136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11138   -e 's:$: $lt_compiler_flag:'`
11139   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11140   (eval "$lt_compile" 2>out/conftest.err)
11141   ac_status=$?
11142   cat out/conftest.err >&5
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11145   then
11146     # The compiler can only warn and ignore the option if not recognized
11147     # So say no if there are warnings
11148     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11149     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11150     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11151       lt_cv_prog_compiler_c_o=yes
11152     fi
11153   fi
11154   chmod u+w . 2>&5
11155   $RM conftest*
11156   # SGI C++ compiler will create directory out/ii_files/ for
11157   # template instantiation
11158   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11159   $RM out/* && rmdir out
11160   cd ..
11161   $RM -r conftest
11162   $RM conftest*
11163
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11166$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11167
11168
11169
11170
11171
11172
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11175if ${lt_cv_prog_compiler_c_o+:} false; then :
11176  $as_echo_n "(cached) " >&6
11177else
11178  lt_cv_prog_compiler_c_o=no
11179   $RM -r conftest 2>/dev/null
11180   mkdir conftest
11181   cd conftest
11182   mkdir out
11183   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11184
11185   lt_compiler_flag="-o out/conftest2.$ac_objext"
11186   # Insert the option either (1) after the last *FLAGS variable, or
11187   # (2) before a word containing "conftest.", or (3) at the end.
11188   # Note that $ac_compile itself does not contain backslashes and begins
11189   # with a dollar sign (not a hyphen), so the echo should work correctly.
11190   lt_compile=`echo "$ac_compile" | $SED \
11191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11193   -e 's:$: $lt_compiler_flag:'`
11194   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11195   (eval "$lt_compile" 2>out/conftest.err)
11196   ac_status=$?
11197   cat out/conftest.err >&5
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11200   then
11201     # The compiler can only warn and ignore the option if not recognized
11202     # So say no if there are warnings
11203     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11204     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11205     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11206       lt_cv_prog_compiler_c_o=yes
11207     fi
11208   fi
11209   chmod u+w . 2>&5
11210   $RM conftest*
11211   # SGI C++ compiler will create directory out/ii_files/ for
11212   # template instantiation
11213   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11214   $RM out/* && rmdir out
11215   cd ..
11216   $RM -r conftest
11217   $RM conftest*
11218
11219fi
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11221$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11222
11223
11224
11225
11226hard_links=nottested
11227if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11228  # do not overwrite the value of need_locks provided by the user
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11230$as_echo_n "checking if we can lock with hard links... " >&6; }
11231  hard_links=yes
11232  $RM conftest*
11233  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11234  touch conftest.a
11235  ln conftest.a conftest.b 2>&5 || hard_links=no
11236  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11238$as_echo "$hard_links" >&6; }
11239  if test no = "$hard_links"; then
11240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11241$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11242    need_locks=warn
11243  fi
11244else
11245  need_locks=no
11246fi
11247
11248
11249
11250
11251
11252
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11254$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11255
11256  runpath_var=
11257  allow_undefined_flag=
11258  always_export_symbols=no
11259  archive_cmds=
11260  archive_expsym_cmds=
11261  compiler_needs_object=no
11262  enable_shared_with_static_runtimes=no
11263  export_dynamic_flag_spec=
11264  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11265  hardcode_automatic=no
11266  hardcode_direct=no
11267  hardcode_direct_absolute=no
11268  hardcode_libdir_flag_spec=
11269  hardcode_libdir_separator=
11270  hardcode_minus_L=no
11271  hardcode_shlibpath_var=unsupported
11272  inherit_rpath=no
11273  link_all_deplibs=unknown
11274  module_cmds=
11275  module_expsym_cmds=
11276  old_archive_from_new_cmds=
11277  old_archive_from_expsyms_cmds=
11278  thread_safe_flag_spec=
11279  whole_archive_flag_spec=
11280  # include_expsyms should be a list of space-separated symbols to be *always*
11281  # included in the symbol list
11282  include_expsyms=
11283  # exclude_expsyms can be an extended regexp of symbols to exclude
11284  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11285  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11286  # as well as any symbol that contains 'd'.
11287  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11288  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11289  # platforms (ab)use it in PIC code, but their linkers get confused if
11290  # the symbol is explicitly referenced.  Since portable code cannot
11291  # rely on this symbol name, it's probably fine to never include it in
11292  # preloaded symbol tables.
11293  # Exclude shared library initialization/finalization symbols.
11294  extract_expsyms_cmds=
11295
11296  case $host_os in
11297  cygwin* | mingw* | pw32* | cegcc*)
11298    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11299    # When not using gcc, we currently assume that we are using
11300    # Microsoft Visual C++.
11301    if test yes != "$GCC"; then
11302      with_gnu_ld=no
11303    fi
11304    ;;
11305  interix*)
11306    # we just hope/assume this is gcc and not c89 (= MSVC++)
11307    with_gnu_ld=yes
11308    ;;
11309  openbsd* | bitrig*)
11310    with_gnu_ld=no
11311    ;;
11312  esac
11313
11314  ld_shlibs=yes
11315
11316  # On some targets, GNU ld is compatible enough with the native linker
11317  # that we're better off using the native interface for both.
11318  lt_use_gnu_ld_interface=no
11319  if test yes = "$with_gnu_ld"; then
11320    case $host_os in
11321      aix*)
11322	# The AIX port of GNU ld has always aspired to compatibility
11323	# with the native linker.  However, as the warning in the GNU ld
11324	# block says, versions before 2.19.5* couldn't really create working
11325	# shared libraries, regardless of the interface used.
11326	case `$LD -v 2>&1` in
11327	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11328	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11329	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11330	  *)
11331	    lt_use_gnu_ld_interface=yes
11332	    ;;
11333	esac
11334	;;
11335      *)
11336	lt_use_gnu_ld_interface=yes
11337	;;
11338    esac
11339  fi
11340
11341  if test yes = "$lt_use_gnu_ld_interface"; then
11342    # If archive_cmds runs LD, not CC, wlarc should be empty
11343    wlarc='$wl'
11344
11345    # Set some defaults for GNU ld with shared library support. These
11346    # are reset later if shared libraries are not supported. Putting them
11347    # here allows them to be overridden if necessary.
11348    runpath_var=LD_RUN_PATH
11349    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11350    export_dynamic_flag_spec='$wl--export-dynamic'
11351    # ancient GNU ld didn't support --whole-archive et. al.
11352    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11353      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11354    else
11355      whole_archive_flag_spec=
11356    fi
11357    supports_anon_versioning=no
11358    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11359      *GNU\ gold*) supports_anon_versioning=yes ;;
11360      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11361      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11362      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11363      *\ 2.11.*) ;; # other 2.11 versions
11364      *) supports_anon_versioning=yes ;;
11365    esac
11366
11367    # See if GNU ld supports shared libraries.
11368    case $host_os in
11369    aix[3-9]*)
11370      # On AIX/PPC, the GNU linker is very broken
11371      if test ia64 != "$host_cpu"; then
11372	ld_shlibs=no
11373	cat <<_LT_EOF 1>&2
11374
11375*** Warning: the GNU linker, at least up to release 2.19, is reported
11376*** to be unable to reliably create shared libraries on AIX.
11377*** Therefore, libtool is disabling shared libraries support.  If you
11378*** really care for shared libraries, you may want to install binutils
11379*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11380*** You will then need to restart the configuration process.
11381
11382_LT_EOF
11383      fi
11384      ;;
11385
11386    amigaos*)
11387      case $host_cpu in
11388      powerpc)
11389            # see comment about AmigaOS4 .so support
11390            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11391            archive_expsym_cmds=''
11392        ;;
11393      m68k)
11394            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)'
11395            hardcode_libdir_flag_spec='-L$libdir'
11396            hardcode_minus_L=yes
11397        ;;
11398      esac
11399      ;;
11400
11401    beos*)
11402      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11403	allow_undefined_flag=unsupported
11404	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11405	# support --undefined.  This deserves some investigation.  FIXME
11406	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11407      else
11408	ld_shlibs=no
11409      fi
11410      ;;
11411
11412    cygwin* | mingw* | pw32* | cegcc*)
11413      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11414      # as there is no search path for DLLs.
11415      hardcode_libdir_flag_spec='-L$libdir'
11416      export_dynamic_flag_spec='$wl--export-all-symbols'
11417      allow_undefined_flag=unsupported
11418      always_export_symbols=no
11419      enable_shared_with_static_runtimes=yes
11420      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'
11421      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11422
11423      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11424        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11425	# If the export-symbols file already is a .def file, use it as
11426	# is; otherwise, prepend EXPORTS...
11427	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11428          cp $export_symbols $output_objdir/$soname.def;
11429        else
11430          echo EXPORTS > $output_objdir/$soname.def;
11431          cat $export_symbols >> $output_objdir/$soname.def;
11432        fi~
11433        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11434      else
11435	ld_shlibs=no
11436      fi
11437      ;;
11438
11439    haiku*)
11440      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11441      link_all_deplibs=yes
11442      ;;
11443
11444    os2*)
11445      hardcode_libdir_flag_spec='-L$libdir'
11446      hardcode_minus_L=yes
11447      allow_undefined_flag=unsupported
11448      shrext_cmds=.dll
11449      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11450	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11451	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11452	$ECHO EXPORTS >> $output_objdir/$libname.def~
11453	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11454	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11455	emximp -o $lib $output_objdir/$libname.def'
11456      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11457	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11458	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11459	$ECHO EXPORTS >> $output_objdir/$libname.def~
11460	prefix_cmds="$SED"~
11461	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11462	  prefix_cmds="$prefix_cmds -e 1d";
11463	fi~
11464	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11465	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11466	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11467	emximp -o $lib $output_objdir/$libname.def'
11468      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11469      enable_shared_with_static_runtimes=yes
11470      ;;
11471
11472    interix[3-9]*)
11473      hardcode_direct=no
11474      hardcode_shlibpath_var=no
11475      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11476      export_dynamic_flag_spec='$wl-E'
11477      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11478      # Instead, shared libraries are loaded at an image base (0x10000000 by
11479      # default) and relocated if they conflict, which is a slow very memory
11480      # consuming and fragmenting process.  To avoid this, we pick a random,
11481      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11482      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11483      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11484      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'
11485      ;;
11486
11487    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11488      tmp_diet=no
11489      if test linux-dietlibc = "$host_os"; then
11490	case $cc_basename in
11491	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11492	esac
11493      fi
11494      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11495	 && test no = "$tmp_diet"
11496      then
11497	tmp_addflag=' $pic_flag'
11498	tmp_sharedflag='-shared'
11499	case $cc_basename,$host_cpu in
11500        pgcc*)				# Portland Group C compiler
11501	  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'
11502	  tmp_addflag=' $pic_flag'
11503	  ;;
11504	pgf77* | pgf90* | pgf95* | pgfortran*)
11505					# Portland Group f77 and f90 compilers
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 -Mnomain' ;;
11508	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11509	  tmp_addflag=' -i_dynamic' ;;
11510	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11511	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11512	ifc* | ifort*)			# Intel Fortran compiler
11513	  tmp_addflag=' -nofor_main' ;;
11514	lf95*)				# Lahey Fortran 8.1
11515	  whole_archive_flag_spec=
11516	  tmp_sharedflag='--shared' ;;
11517        nagfor*)                        # NAGFOR 5.3
11518          tmp_sharedflag='-Wl,-shared' ;;
11519	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11520	  tmp_sharedflag='-qmkshrobj'
11521	  tmp_addflag= ;;
11522	nvcc*)	# Cuda Compiler Driver 2.2
11523	  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'
11524	  compiler_needs_object=yes
11525	  ;;
11526	esac
11527	case `$CC -V 2>&1 | sed 5q` in
11528	*Sun\ C*)			# Sun C 5.9
11529	  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'
11530	  compiler_needs_object=yes
11531	  tmp_sharedflag='-G' ;;
11532	*Sun\ F*)			# Sun Fortran 8.3
11533	  tmp_sharedflag='-G' ;;
11534	esac
11535	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11536
11537        if test yes = "$supports_anon_versioning"; then
11538          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11539            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11540            echo "local: *; };" >> $output_objdir/$libname.ver~
11541            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11542        fi
11543
11544	case $cc_basename in
11545	tcc*)
11546	  export_dynamic_flag_spec='-rdynamic'
11547	  ;;
11548	xlf* | bgf* | bgxlf* | mpixlf*)
11549	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11550	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11551	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11552	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11553	  if test yes = "$supports_anon_versioning"; then
11554	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11555              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11556              echo "local: *; };" >> $output_objdir/$libname.ver~
11557              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11558	  fi
11559	  ;;
11560	esac
11561      else
11562        ld_shlibs=no
11563      fi
11564      ;;
11565
11566    netbsd*)
11567      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11568	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11569	wlarc=
11570      else
11571	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11572	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11573      fi
11574      ;;
11575
11576    solaris*)
11577      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11578	ld_shlibs=no
11579	cat <<_LT_EOF 1>&2
11580
11581*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11582*** create shared libraries on Solaris systems.  Therefore, libtool
11583*** is disabling shared libraries support.  We urge you to upgrade GNU
11584*** binutils to release 2.9.1 or newer.  Another option is to modify
11585*** your PATH or compiler configuration so that the native linker is
11586*** used, and then restart.
11587
11588_LT_EOF
11589      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11590	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11591	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11592      else
11593	ld_shlibs=no
11594      fi
11595      ;;
11596
11597    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11598      case `$LD -v 2>&1` in
11599        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11600	ld_shlibs=no
11601	cat <<_LT_EOF 1>&2
11602
11603*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11604*** reliably create shared libraries on SCO systems.  Therefore, libtool
11605*** is disabling shared libraries support.  We urge you to upgrade GNU
11606*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11607*** your PATH or compiler configuration so that the native linker is
11608*** used, and then restart.
11609
11610_LT_EOF
11611	;;
11612	*)
11613	  # For security reasons, it is highly recommended that you always
11614	  # use absolute paths for naming shared libraries, and exclude the
11615	  # DT_RUNPATH tag from executables and libraries.  But doing so
11616	  # requires that you compile everything twice, which is a pain.
11617	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11618	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11619	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11620	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11621	  else
11622	    ld_shlibs=no
11623	  fi
11624	;;
11625      esac
11626      ;;
11627
11628    sunos4*)
11629      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11630      wlarc=
11631      hardcode_direct=yes
11632      hardcode_shlibpath_var=no
11633      ;;
11634
11635    *)
11636      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11637	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11638	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11639      else
11640	ld_shlibs=no
11641      fi
11642      ;;
11643    esac
11644
11645    if test no = "$ld_shlibs"; then
11646      runpath_var=
11647      hardcode_libdir_flag_spec=
11648      export_dynamic_flag_spec=
11649      whole_archive_flag_spec=
11650    fi
11651  else
11652    # PORTME fill in a description of your system's linker (not GNU ld)
11653    case $host_os in
11654    aix3*)
11655      allow_undefined_flag=unsupported
11656      always_export_symbols=yes
11657      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'
11658      # Note: this linker hardcodes the directories in LIBPATH if there
11659      # are no directories specified by -L.
11660      hardcode_minus_L=yes
11661      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11662	# Neither direct hardcoding nor static linking is supported with a
11663	# broken collect2.
11664	hardcode_direct=unsupported
11665      fi
11666      ;;
11667
11668    aix[4-9]*)
11669      if test ia64 = "$host_cpu"; then
11670	# On IA64, the linker does run time linking by default, so we don't
11671	# have to do anything special.
11672	aix_use_runtimelinking=no
11673	exp_sym_flag='-Bexport'
11674	no_entry_flag=
11675      else
11676	# If we're using GNU nm, then we don't want the "-C" option.
11677	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11678	# Without the "-l" option, or with the "-B" option, AIX nm treats
11679	# weak defined symbols like other global defined symbols, whereas
11680	# GNU nm marks them as "W".
11681	# While the 'weak' keyword is ignored in the Export File, we need
11682	# it in the Import File for the 'aix-soname' feature, so we have
11683	# to replace the "-B" option with "-P" for AIX nm.
11684	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11685	  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'
11686	else
11687	  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'
11688	fi
11689	aix_use_runtimelinking=no
11690
11691	# Test if we are trying to use run time linking or normal
11692	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11693	# have runtime linking enabled, and use it for executables.
11694	# For shared libraries, we enable/disable runtime linking
11695	# depending on the kind of the shared library created -
11696	# when "with_aix_soname,aix_use_runtimelinking" is:
11697	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11698	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11699	#            lib.a           static archive
11700	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11701	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11702	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11703	#            lib.a(lib.so.V) shared, rtl:no
11704	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11705	#            lib.a           static archive
11706	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11707	  for ld_flag in $LDFLAGS; do
11708	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11709	    aix_use_runtimelinking=yes
11710	    break
11711	  fi
11712	  done
11713	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11714	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11715	    # so we don't have lib.a shared libs to link our executables.
11716	    # We have to force runtime linking in this case.
11717	    aix_use_runtimelinking=yes
11718	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11719	  fi
11720	  ;;
11721	esac
11722
11723	exp_sym_flag='-bexport'
11724	no_entry_flag='-bnoentry'
11725      fi
11726
11727      # When large executables or shared objects are built, AIX ld can
11728      # have problems creating the table of contents.  If linking a library
11729      # or program results in "error TOC overflow" add -mminimal-toc to
11730      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11731      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11732
11733      archive_cmds=''
11734      hardcode_direct=yes
11735      hardcode_direct_absolute=yes
11736      hardcode_libdir_separator=':'
11737      link_all_deplibs=yes
11738      file_list_spec='$wl-f,'
11739      case $with_aix_soname,$aix_use_runtimelinking in
11740      aix,*) ;; # traditional, no import file
11741      svr4,* | *,yes) # use import file
11742	# The Import File defines what to hardcode.
11743	hardcode_direct=no
11744	hardcode_direct_absolute=no
11745	;;
11746      esac
11747
11748      if test yes = "$GCC"; then
11749	case $host_os in aix4.[012]|aix4.[012].*)
11750	# We only want to do this on AIX 4.2 and lower, the check
11751	# below for broken collect2 doesn't work under 4.3+
11752	  collect2name=`$CC -print-prog-name=collect2`
11753	  if test -f "$collect2name" &&
11754	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11755	  then
11756	  # We have reworked collect2
11757	  :
11758	  else
11759	  # We have old collect2
11760	  hardcode_direct=unsupported
11761	  # It fails to find uninstalled libraries when the uninstalled
11762	  # path is not listed in the libpath.  Setting hardcode_minus_L
11763	  # to unsupported forces relinking
11764	  hardcode_minus_L=yes
11765	  hardcode_libdir_flag_spec='-L$libdir'
11766	  hardcode_libdir_separator=
11767	  fi
11768	  ;;
11769	esac
11770	shared_flag='-shared'
11771	if test yes = "$aix_use_runtimelinking"; then
11772	  shared_flag="$shared_flag "'$wl-G'
11773	fi
11774	# Need to ensure runtime linking is disabled for the traditional
11775	# shared library, or the linker may eventually find shared libraries
11776	# /with/ Import File - we do not want to mix them.
11777	shared_flag_aix='-shared'
11778	shared_flag_svr4='-shared $wl-G'
11779      else
11780	# not using gcc
11781	if test ia64 = "$host_cpu"; then
11782	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11783	# chokes on -Wl,-G. The following line is correct:
11784	  shared_flag='-G'
11785	else
11786	  if test yes = "$aix_use_runtimelinking"; then
11787	    shared_flag='$wl-G'
11788	  else
11789	    shared_flag='$wl-bM:SRE'
11790	  fi
11791	  shared_flag_aix='$wl-bM:SRE'
11792	  shared_flag_svr4='$wl-G'
11793	fi
11794      fi
11795
11796      export_dynamic_flag_spec='$wl-bexpall'
11797      # It seems that -bexpall does not export symbols beginning with
11798      # underscore (_), so it is better to generate a list of symbols to export.
11799      always_export_symbols=yes
11800      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11801	# Warning - without using the other runtime loading flags (-brtl),
11802	# -berok will link without error, but may produce a broken library.
11803	allow_undefined_flag='-berok'
11804        # Determine the default libpath from the value encoded in an
11805        # empty executable.
11806        if test set = "${lt_cv_aix_libpath+set}"; then
11807  aix_libpath=$lt_cv_aix_libpath
11808else
11809  if ${lt_cv_aix_libpath_+:} false; then :
11810  $as_echo_n "(cached) " >&6
11811else
11812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h.  */
11814
11815int
11816main ()
11817{
11818
11819  ;
11820  return 0;
11821}
11822_ACEOF
11823if ac_fn_c_try_link "$LINENO"; then :
11824
11825  lt_aix_libpath_sed='
11826      /Import File Strings/,/^$/ {
11827	  /^0/ {
11828	      s/^0  *\([^ ]*\) *$/\1/
11829	      p
11830	  }
11831      }'
11832  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11833  # Check for a 64-bit object if we didn't find anything.
11834  if test -z "$lt_cv_aix_libpath_"; then
11835    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11836  fi
11837fi
11838rm -f core conftest.err conftest.$ac_objext \
11839    conftest$ac_exeext conftest.$ac_ext
11840  if test -z "$lt_cv_aix_libpath_"; then
11841    lt_cv_aix_libpath_=/usr/lib:/lib
11842  fi
11843
11844fi
11845
11846  aix_libpath=$lt_cv_aix_libpath_
11847fi
11848
11849        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11850        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
11851      else
11852	if test ia64 = "$host_cpu"; then
11853	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11854	  allow_undefined_flag="-z nodefs"
11855	  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"
11856	else
11857	 # Determine the default libpath from the value encoded in an
11858	 # empty executable.
11859	 if test set = "${lt_cv_aix_libpath+set}"; then
11860  aix_libpath=$lt_cv_aix_libpath
11861else
11862  if ${lt_cv_aix_libpath_+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h.  */
11867
11868int
11869main ()
11870{
11871
11872  ;
11873  return 0;
11874}
11875_ACEOF
11876if ac_fn_c_try_link "$LINENO"; then :
11877
11878  lt_aix_libpath_sed='
11879      /Import File Strings/,/^$/ {
11880	  /^0/ {
11881	      s/^0  *\([^ ]*\) *$/\1/
11882	      p
11883	  }
11884      }'
11885  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11886  # Check for a 64-bit object if we didn't find anything.
11887  if test -z "$lt_cv_aix_libpath_"; then
11888    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11889  fi
11890fi
11891rm -f core conftest.err conftest.$ac_objext \
11892    conftest$ac_exeext conftest.$ac_ext
11893  if test -z "$lt_cv_aix_libpath_"; then
11894    lt_cv_aix_libpath_=/usr/lib:/lib
11895  fi
11896
11897fi
11898
11899  aix_libpath=$lt_cv_aix_libpath_
11900fi
11901
11902	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11903	  # Warning - without using the other run time loading flags,
11904	  # -berok will link without error, but may produce a broken library.
11905	  no_undefined_flag=' $wl-bernotok'
11906	  allow_undefined_flag=' $wl-berok'
11907	  if test yes = "$with_gnu_ld"; then
11908	    # We only use this code for GNU lds that support --whole-archive.
11909	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11910	  else
11911	    # Exported symbols can be pulled into shared objects from archives
11912	    whole_archive_flag_spec='$convenience'
11913	  fi
11914	  archive_cmds_need_lc=yes
11915	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11916	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11917	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11918	  if test svr4 != "$with_aix_soname"; then
11919	    # This is similar to how AIX traditionally builds its shared libraries.
11920	    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'
11921	  fi
11922	  if test aix != "$with_aix_soname"; then
11923	    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'
11924	  else
11925	    # used by -dlpreopen to get the symbols
11926	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11927	  fi
11928	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11929	fi
11930      fi
11931      ;;
11932
11933    amigaos*)
11934      case $host_cpu in
11935      powerpc)
11936            # see comment about AmigaOS4 .so support
11937            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11938            archive_expsym_cmds=''
11939        ;;
11940      m68k)
11941            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)'
11942            hardcode_libdir_flag_spec='-L$libdir'
11943            hardcode_minus_L=yes
11944        ;;
11945      esac
11946      ;;
11947
11948    bsdi[45]*)
11949      export_dynamic_flag_spec=-rdynamic
11950      ;;
11951
11952    cygwin* | mingw* | pw32* | cegcc*)
11953      # When not using gcc, we currently assume that we are using
11954      # Microsoft Visual C++.
11955      # hardcode_libdir_flag_spec is actually meaningless, as there is
11956      # no search path for DLLs.
11957      case $cc_basename in
11958      cl*)
11959	# Native MSVC
11960	hardcode_libdir_flag_spec=' '
11961	allow_undefined_flag=unsupported
11962	always_export_symbols=yes
11963	file_list_spec='@'
11964	# Tell ltmain to make .lib files, not .a files.
11965	libext=lib
11966	# Tell ltmain to make .dll files, not .so files.
11967	shrext_cmds=.dll
11968	# FIXME: Setting linknames here is a bad hack.
11969	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11970	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11971            cp "$export_symbols" "$output_objdir/$soname.def";
11972            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11973          else
11974            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11975          fi~
11976          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11977          linknames='
11978	# The linker will not automatically build a static lib if we build a DLL.
11979	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11980	enable_shared_with_static_runtimes=yes
11981	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11982	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11983	# Don't use ranlib
11984	old_postinstall_cmds='chmod 644 $oldlib'
11985	postlink_cmds='lt_outputfile="@OUTPUT@"~
11986          lt_tool_outputfile="@TOOL_OUTPUT@"~
11987          case $lt_outputfile in
11988            *.exe|*.EXE) ;;
11989            *)
11990              lt_outputfile=$lt_outputfile.exe
11991              lt_tool_outputfile=$lt_tool_outputfile.exe
11992              ;;
11993          esac~
11994          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11995            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11996            $RM "$lt_outputfile.manifest";
11997          fi'
11998	;;
11999      *)
12000	# Assume MSVC wrapper
12001	hardcode_libdir_flag_spec=' '
12002	allow_undefined_flag=unsupported
12003	# Tell ltmain to make .lib files, not .a files.
12004	libext=lib
12005	# Tell ltmain to make .dll files, not .so files.
12006	shrext_cmds=.dll
12007	# FIXME: Setting linknames here is a bad hack.
12008	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12009	# The linker will automatically build a .lib file if we build a DLL.
12010	old_archive_from_new_cmds='true'
12011	# FIXME: Should let the user specify the lib program.
12012	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12013	enable_shared_with_static_runtimes=yes
12014	;;
12015      esac
12016      ;;
12017
12018    darwin* | rhapsody*)
12019
12020
12021  archive_cmds_need_lc=no
12022  hardcode_direct=no
12023  hardcode_automatic=yes
12024  hardcode_shlibpath_var=unsupported
12025  if test yes = "$lt_cv_ld_force_load"; then
12026    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\"`'
12027
12028  else
12029    whole_archive_flag_spec=''
12030  fi
12031  link_all_deplibs=yes
12032  allow_undefined_flag=$_lt_dar_allow_undefined
12033  case $cc_basename in
12034     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12035     *) _lt_dar_can_shared=$GCC ;;
12036  esac
12037  if test yes = "$_lt_dar_can_shared"; then
12038    output_verbose_link_cmd=func_echo_all
12039    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12040    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12041    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"
12042    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"
12043
12044  else
12045  ld_shlibs=no
12046  fi
12047
12048      ;;
12049
12050    dgux*)
12051      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052      hardcode_libdir_flag_spec='-L$libdir'
12053      hardcode_shlibpath_var=no
12054      ;;
12055
12056    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12057    # support.  Future versions do this automatically, but an explicit c++rt0.o
12058    # does not break anything, and helps significantly (at the cost of a little
12059    # extra space).
12060    freebsd2.2*)
12061      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12062      hardcode_libdir_flag_spec='-R$libdir'
12063      hardcode_direct=yes
12064      hardcode_shlibpath_var=no
12065      ;;
12066
12067    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12068    freebsd2.*)
12069      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12070      hardcode_direct=yes
12071      hardcode_minus_L=yes
12072      hardcode_shlibpath_var=no
12073      ;;
12074
12075    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12076    freebsd* | dragonfly*)
12077      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12078      hardcode_libdir_flag_spec='-R$libdir'
12079      hardcode_direct=yes
12080      hardcode_shlibpath_var=no
12081      ;;
12082
12083    hpux9*)
12084      if test yes = "$GCC"; then
12085	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'
12086      else
12087	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'
12088      fi
12089      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12090      hardcode_libdir_separator=:
12091      hardcode_direct=yes
12092
12093      # hardcode_minus_L: Not really in the search PATH,
12094      # but as the default location of the library.
12095      hardcode_minus_L=yes
12096      export_dynamic_flag_spec='$wl-E'
12097      ;;
12098
12099    hpux10*)
12100      if test yes,no = "$GCC,$with_gnu_ld"; then
12101	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12102      else
12103	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12104      fi
12105      if test no = "$with_gnu_ld"; then
12106	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12107	hardcode_libdir_separator=:
12108	hardcode_direct=yes
12109	hardcode_direct_absolute=yes
12110	export_dynamic_flag_spec='$wl-E'
12111	# hardcode_minus_L: Not really in the search PATH,
12112	# but as the default location of the library.
12113	hardcode_minus_L=yes
12114      fi
12115      ;;
12116
12117    hpux11*)
12118      if test yes,no = "$GCC,$with_gnu_ld"; then
12119	case $host_cpu in
12120	hppa*64*)
12121	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12122	  ;;
12123	ia64*)
12124	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12125	  ;;
12126	*)
12127	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12128	  ;;
12129	esac
12130      else
12131	case $host_cpu in
12132	hppa*64*)
12133	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12134	  ;;
12135	ia64*)
12136	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12137	  ;;
12138	*)
12139
12140	  # Older versions of the 11.00 compiler do not understand -b yet
12141	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12142	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12143$as_echo_n "checking if $CC understands -b... " >&6; }
12144if ${lt_cv_prog_compiler__b+:} false; then :
12145  $as_echo_n "(cached) " >&6
12146else
12147  lt_cv_prog_compiler__b=no
12148   save_LDFLAGS=$LDFLAGS
12149   LDFLAGS="$LDFLAGS -b"
12150   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12151   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12152     # The linker can only warn and ignore the option if not recognized
12153     # So say no if there are warnings
12154     if test -s conftest.err; then
12155       # Append any errors to the config.log.
12156       cat conftest.err 1>&5
12157       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12158       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12159       if diff conftest.exp conftest.er2 >/dev/null; then
12160         lt_cv_prog_compiler__b=yes
12161       fi
12162     else
12163       lt_cv_prog_compiler__b=yes
12164     fi
12165   fi
12166   $RM -r conftest*
12167   LDFLAGS=$save_LDFLAGS
12168
12169fi
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12171$as_echo "$lt_cv_prog_compiler__b" >&6; }
12172
12173if test yes = "$lt_cv_prog_compiler__b"; then
12174    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12175else
12176    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12177fi
12178
12179	  ;;
12180	esac
12181      fi
12182      if test no = "$with_gnu_ld"; then
12183	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12184	hardcode_libdir_separator=:
12185
12186	case $host_cpu in
12187	hppa*64*|ia64*)
12188	  hardcode_direct=no
12189	  hardcode_shlibpath_var=no
12190	  ;;
12191	*)
12192	  hardcode_direct=yes
12193	  hardcode_direct_absolute=yes
12194	  export_dynamic_flag_spec='$wl-E'
12195
12196	  # hardcode_minus_L: Not really in the search PATH,
12197	  # but as the default location of the library.
12198	  hardcode_minus_L=yes
12199	  ;;
12200	esac
12201      fi
12202      ;;
12203
12204    irix5* | irix6* | nonstopux*)
12205      if test yes = "$GCC"; then
12206	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'
12207	# Try to use the -exported_symbol ld option, if it does not
12208	# work, assume that -exports_file does not work either and
12209	# implicitly export all symbols.
12210	# This should be the same for all languages, so no per-tag cache variable.
12211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12212$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12213if ${lt_cv_irix_exported_symbol+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216  save_LDFLAGS=$LDFLAGS
12217	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12218	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219/* end confdefs.h.  */
12220int foo (void) { return 0; }
12221_ACEOF
12222if ac_fn_c_try_link "$LINENO"; then :
12223  lt_cv_irix_exported_symbol=yes
12224else
12225  lt_cv_irix_exported_symbol=no
12226fi
12227rm -f core conftest.err conftest.$ac_objext \
12228    conftest$ac_exeext conftest.$ac_ext
12229           LDFLAGS=$save_LDFLAGS
12230fi
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12232$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12233	if test yes = "$lt_cv_irix_exported_symbol"; then
12234          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'
12235	fi
12236      else
12237	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'
12238	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'
12239      fi
12240      archive_cmds_need_lc='no'
12241      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12242      hardcode_libdir_separator=:
12243      inherit_rpath=yes
12244      link_all_deplibs=yes
12245      ;;
12246
12247    linux*)
12248      case $cc_basename in
12249      tcc*)
12250	# Fabrice Bellard et al's Tiny C Compiler
12251	ld_shlibs=yes
12252	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12253	;;
12254      esac
12255      ;;
12256
12257    netbsd*)
12258      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12259	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12260      else
12261	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12262      fi
12263      hardcode_libdir_flag_spec='-R$libdir'
12264      hardcode_direct=yes
12265      hardcode_shlibpath_var=no
12266      ;;
12267
12268    newsos6)
12269      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270      hardcode_direct=yes
12271      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12272      hardcode_libdir_separator=:
12273      hardcode_shlibpath_var=no
12274      ;;
12275
12276    *nto* | *qnx*)
12277      ;;
12278
12279    openbsd* | bitrig*)
12280      if test -f /usr/libexec/ld.so; then
12281	hardcode_direct=yes
12282	hardcode_shlibpath_var=no
12283	hardcode_direct_absolute=yes
12284	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12285	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12286	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12287	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12288	  export_dynamic_flag_spec='$wl-E'
12289	else
12290	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12291	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12292	fi
12293      else
12294	ld_shlibs=no
12295      fi
12296      ;;
12297
12298    os2*)
12299      hardcode_libdir_flag_spec='-L$libdir'
12300      hardcode_minus_L=yes
12301      allow_undefined_flag=unsupported
12302      shrext_cmds=.dll
12303      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12304	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12305	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12306	$ECHO EXPORTS >> $output_objdir/$libname.def~
12307	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12308	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12309	emximp -o $lib $output_objdir/$libname.def'
12310      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12311	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12312	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12313	$ECHO EXPORTS >> $output_objdir/$libname.def~
12314	prefix_cmds="$SED"~
12315	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12316	  prefix_cmds="$prefix_cmds -e 1d";
12317	fi~
12318	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12319	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12320	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12321	emximp -o $lib $output_objdir/$libname.def'
12322      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12323      enable_shared_with_static_runtimes=yes
12324      ;;
12325
12326    osf3*)
12327      if test yes = "$GCC"; then
12328	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12329	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'
12330      else
12331	allow_undefined_flag=' -expect_unresolved \*'
12332	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'
12333      fi
12334      archive_cmds_need_lc='no'
12335      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12336      hardcode_libdir_separator=:
12337      ;;
12338
12339    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12340      if test yes = "$GCC"; then
12341	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12342	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'
12343	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12344      else
12345	allow_undefined_flag=' -expect_unresolved \*'
12346	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'
12347	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~
12348          $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'
12349
12350	# Both c and cxx compiler support -rpath directly
12351	hardcode_libdir_flag_spec='-rpath $libdir'
12352      fi
12353      archive_cmds_need_lc='no'
12354      hardcode_libdir_separator=:
12355      ;;
12356
12357    solaris*)
12358      no_undefined_flag=' -z defs'
12359      if test yes = "$GCC"; then
12360	wlarc='$wl'
12361	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12362	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12363          $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'
12364      else
12365	case `$CC -V 2>&1` in
12366	*"Compilers 5.0"*)
12367	  wlarc=''
12368	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12369	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12370            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12371	  ;;
12372	*)
12373	  wlarc='$wl'
12374	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12375	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12376            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12377	  ;;
12378	esac
12379      fi
12380      hardcode_libdir_flag_spec='-R$libdir'
12381      hardcode_shlibpath_var=no
12382      case $host_os in
12383      solaris2.[0-5] | solaris2.[0-5].*) ;;
12384      *)
12385	# The compiler driver will combine and reorder linker options,
12386	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12387	# but is careful enough not to reorder.
12388	# Supported since Solaris 2.6 (maybe 2.5.1?)
12389	if test yes = "$GCC"; then
12390	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12391	else
12392	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12393	fi
12394	;;
12395      esac
12396      link_all_deplibs=yes
12397      ;;
12398
12399    sunos4*)
12400      if test sequent = "$host_vendor"; then
12401	# Use $CC to link under sequent, because it throws in some extra .o
12402	# files that make .init and .fini sections work.
12403	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12404      else
12405	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12406      fi
12407      hardcode_libdir_flag_spec='-L$libdir'
12408      hardcode_direct=yes
12409      hardcode_minus_L=yes
12410      hardcode_shlibpath_var=no
12411      ;;
12412
12413    sysv4)
12414      case $host_vendor in
12415	sni)
12416	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12417	  hardcode_direct=yes # is this really true???
12418	;;
12419	siemens)
12420	  ## LD is ld it makes a PLAMLIB
12421	  ## CC just makes a GrossModule.
12422	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12423	  reload_cmds='$CC -r -o $output$reload_objs'
12424	  hardcode_direct=no
12425        ;;
12426	motorola)
12427	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12428	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12429	;;
12430      esac
12431      runpath_var='LD_RUN_PATH'
12432      hardcode_shlibpath_var=no
12433      ;;
12434
12435    sysv4.3*)
12436      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12437      hardcode_shlibpath_var=no
12438      export_dynamic_flag_spec='-Bexport'
12439      ;;
12440
12441    sysv4*MP*)
12442      if test -d /usr/nec; then
12443	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12444	hardcode_shlibpath_var=no
12445	runpath_var=LD_RUN_PATH
12446	hardcode_runpath_var=yes
12447	ld_shlibs=yes
12448      fi
12449      ;;
12450
12451    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12452      no_undefined_flag='$wl-z,text'
12453      archive_cmds_need_lc=no
12454      hardcode_shlibpath_var=no
12455      runpath_var='LD_RUN_PATH'
12456
12457      if test yes = "$GCC"; then
12458	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12459	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12460      else
12461	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12462	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12463      fi
12464      ;;
12465
12466    sysv5* | sco3.2v5* | sco5v6*)
12467      # Note: We CANNOT use -z defs as we might desire, because we do not
12468      # link with -lc, and that would cause any symbols used from libc to
12469      # always be unresolved, which means just about no library would
12470      # ever link correctly.  If we're not using GNU ld we use -z text
12471      # though, which does catch some bad symbols but isn't as heavy-handed
12472      # as -z defs.
12473      no_undefined_flag='$wl-z,text'
12474      allow_undefined_flag='$wl-z,nodefs'
12475      archive_cmds_need_lc=no
12476      hardcode_shlibpath_var=no
12477      hardcode_libdir_flag_spec='$wl-R,$libdir'
12478      hardcode_libdir_separator=':'
12479      link_all_deplibs=yes
12480      export_dynamic_flag_spec='$wl-Bexport'
12481      runpath_var='LD_RUN_PATH'
12482
12483      if test yes = "$GCC"; then
12484	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12485	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486      else
12487	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12488	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12489      fi
12490      ;;
12491
12492    uts4*)
12493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12494      hardcode_libdir_flag_spec='-L$libdir'
12495      hardcode_shlibpath_var=no
12496      ;;
12497
12498    *)
12499      ld_shlibs=no
12500      ;;
12501    esac
12502
12503    if test sni = "$host_vendor"; then
12504      case $host in
12505      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12506	export_dynamic_flag_spec='$wl-Blargedynsym'
12507	;;
12508      esac
12509    fi
12510  fi
12511
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12513$as_echo "$ld_shlibs" >&6; }
12514test no = "$ld_shlibs" && can_build_shared=no
12515
12516with_gnu_ld=$with_gnu_ld
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532#
12533# Do we need to explicitly link libc?
12534#
12535case "x$archive_cmds_need_lc" in
12536x|xyes)
12537  # Assume -lc should be added
12538  archive_cmds_need_lc=yes
12539
12540  if test yes,yes = "$GCC,$enable_shared"; then
12541    case $archive_cmds in
12542    *'~'*)
12543      # FIXME: we may have to deal with multi-command sequences.
12544      ;;
12545    '$CC '*)
12546      # Test whether the compiler implicitly links with -lc since on some
12547      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12548      # to ld, don't add -lc before -lgcc.
12549      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12550$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12551if ${lt_cv_archive_cmds_need_lc+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  $RM conftest*
12555	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12556
12557	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12558  (eval $ac_compile) 2>&5
12559  ac_status=$?
12560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561  test $ac_status = 0; } 2>conftest.err; then
12562	  soname=conftest
12563	  lib=conftest
12564	  libobjs=conftest.$ac_objext
12565	  deplibs=
12566	  wl=$lt_prog_compiler_wl
12567	  pic_flag=$lt_prog_compiler_pic
12568	  compiler_flags=-v
12569	  linker_flags=-v
12570	  verstring=
12571	  output_objdir=.
12572	  libname=conftest
12573	  lt_save_allow_undefined_flag=$allow_undefined_flag
12574	  allow_undefined_flag=
12575	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12576  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12577  ac_status=$?
12578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579  test $ac_status = 0; }
12580	  then
12581	    lt_cv_archive_cmds_need_lc=no
12582	  else
12583	    lt_cv_archive_cmds_need_lc=yes
12584	  fi
12585	  allow_undefined_flag=$lt_save_allow_undefined_flag
12586	else
12587	  cat conftest.err 1>&5
12588	fi
12589	$RM conftest*
12590
12591fi
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12593$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12594      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12595      ;;
12596    esac
12597  fi
12598  ;;
12599esac
12600
12601
12602
12603
12604
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12753$as_echo_n "checking dynamic linker characteristics... " >&6; }
12754
12755if test yes = "$GCC"; then
12756  case $host_os in
12757    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12758    *) lt_awk_arg='/^libraries:/' ;;
12759  esac
12760  case $host_os in
12761    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12762    *) lt_sed_strip_eq='s|=/|/|g' ;;
12763  esac
12764  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12765  case $lt_search_path_spec in
12766  *\;*)
12767    # if the path contains ";" then we assume it to be the separator
12768    # otherwise default to the standard path separator (i.e. ":") - it is
12769    # assumed that no part of a normal pathname contains ";" but that should
12770    # okay in the real world where ";" in dirpaths is itself problematic.
12771    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12772    ;;
12773  *)
12774    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12775    ;;
12776  esac
12777  # Ok, now we have the path, separated by spaces, we can step through it
12778  # and add multilib dir if necessary...
12779  lt_tmp_lt_search_path_spec=
12780  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12781  # ...but if some path component already ends with the multilib dir we assume
12782  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12783  case "$lt_multi_os_dir; $lt_search_path_spec " in
12784  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12785    lt_multi_os_dir=
12786    ;;
12787  esac
12788  for lt_sys_path in $lt_search_path_spec; do
12789    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12790      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12791    elif test -n "$lt_multi_os_dir"; then
12792      test -d "$lt_sys_path" && \
12793	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12794    fi
12795  done
12796  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12797BEGIN {RS = " "; FS = "/|\n";} {
12798  lt_foo = "";
12799  lt_count = 0;
12800  for (lt_i = NF; lt_i > 0; lt_i--) {
12801    if ($lt_i != "" && $lt_i != ".") {
12802      if ($lt_i == "..") {
12803        lt_count++;
12804      } else {
12805        if (lt_count == 0) {
12806          lt_foo = "/" $lt_i lt_foo;
12807        } else {
12808          lt_count--;
12809        }
12810      }
12811    }
12812  }
12813  if (lt_foo != "") { lt_freq[lt_foo]++; }
12814  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12815}'`
12816  # AWK program above erroneously prepends '/' to C:/dos/paths
12817  # for these hosts.
12818  case $host_os in
12819    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12820      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12821  esac
12822  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12823else
12824  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12825fi
12826library_names_spec=
12827libname_spec='lib$name'
12828soname_spec=
12829shrext_cmds=.so
12830postinstall_cmds=
12831postuninstall_cmds=
12832finish_cmds=
12833finish_eval=
12834shlibpath_var=
12835shlibpath_overrides_runpath=unknown
12836version_type=none
12837dynamic_linker="$host_os ld.so"
12838sys_lib_dlsearch_path_spec="/lib /usr/lib"
12839need_lib_prefix=unknown
12840hardcode_into_libs=no
12841
12842# when you set need_version to no, make sure it does not cause -set_version
12843# flags to be left without arguments
12844need_version=unknown
12845
12846
12847
12848case $host_os in
12849aix3*)
12850  version_type=linux # correct to gnu/linux during the next big refactor
12851  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12852  shlibpath_var=LIBPATH
12853
12854  # AIX 3 has no versioning support, so we append a major version to the name.
12855  soname_spec='$libname$release$shared_ext$major'
12856  ;;
12857
12858aix[4-9]*)
12859  version_type=linux # correct to gnu/linux during the next big refactor
12860  need_lib_prefix=no
12861  need_version=no
12862  hardcode_into_libs=yes
12863  if test ia64 = "$host_cpu"; then
12864    # AIX 5 supports IA64
12865    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12866    shlibpath_var=LD_LIBRARY_PATH
12867  else
12868    # With GCC up to 2.95.x, collect2 would create an import file
12869    # for dependence libraries.  The import file would start with
12870    # the line '#! .'.  This would cause the generated library to
12871    # depend on '.', always an invalid library.  This was fixed in
12872    # development snapshots of GCC prior to 3.0.
12873    case $host_os in
12874      aix4 | aix4.[01] | aix4.[01].*)
12875      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12876	   echo ' yes '
12877	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12878	:
12879      else
12880	can_build_shared=no
12881      fi
12882      ;;
12883    esac
12884    # Using Import Files as archive members, it is possible to support
12885    # filename-based versioning of shared library archives on AIX. While
12886    # this would work for both with and without runtime linking, it will
12887    # prevent static linking of such archives. So we do filename-based
12888    # shared library versioning with .so extension only, which is used
12889    # when both runtime linking and shared linking is enabled.
12890    # Unfortunately, runtime linking may impact performance, so we do
12891    # not want this to be the default eventually. Also, we use the
12892    # versioned .so libs for executables only if there is the -brtl
12893    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12894    # To allow for filename-based versioning support, we need to create
12895    # libNAME.so.V as an archive file, containing:
12896    # *) an Import File, referring to the versioned filename of the
12897    #    archive as well as the shared archive member, telling the
12898    #    bitwidth (32 or 64) of that shared object, and providing the
12899    #    list of exported symbols of that shared object, eventually
12900    #    decorated with the 'weak' keyword
12901    # *) the shared object with the F_LOADONLY flag set, to really avoid
12902    #    it being seen by the linker.
12903    # At run time we better use the real file rather than another symlink,
12904    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12905
12906    case $with_aix_soname,$aix_use_runtimelinking in
12907    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12908    # soname into executable. Probably we can add versioning support to
12909    # collect2, so additional links can be useful in future.
12910    aix,yes) # traditional libtool
12911      dynamic_linker='AIX unversionable lib.so'
12912      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12913      # instead of lib<name>.a to let people know that these are not
12914      # typical AIX shared libraries.
12915      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12916      ;;
12917    aix,no) # traditional AIX only
12918      dynamic_linker='AIX lib.a(lib.so.V)'
12919      # We preserve .a as extension for shared libraries through AIX4.2
12920      # and later when we are not doing run time linking.
12921      library_names_spec='$libname$release.a $libname.a'
12922      soname_spec='$libname$release$shared_ext$major'
12923      ;;
12924    svr4,*) # full svr4 only
12925      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12926      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12927      # We do not specify a path in Import Files, so LIBPATH fires.
12928      shlibpath_overrides_runpath=yes
12929      ;;
12930    *,yes) # both, prefer svr4
12931      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12932      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12933      # unpreferred sharedlib libNAME.a needs extra handling
12934      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"'
12935      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"'
12936      # We do not specify a path in Import Files, so LIBPATH fires.
12937      shlibpath_overrides_runpath=yes
12938      ;;
12939    *,no) # both, prefer aix
12940      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12941      library_names_spec='$libname$release.a $libname.a'
12942      soname_spec='$libname$release$shared_ext$major'
12943      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12944      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)'
12945      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"'
12946      ;;
12947    esac
12948    shlibpath_var=LIBPATH
12949  fi
12950  ;;
12951
12952amigaos*)
12953  case $host_cpu in
12954  powerpc)
12955    # Since July 2007 AmigaOS4 officially supports .so libraries.
12956    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12957    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12958    ;;
12959  m68k)
12960    library_names_spec='$libname.ixlibrary $libname.a'
12961    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12962    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'
12963    ;;
12964  esac
12965  ;;
12966
12967beos*)
12968  library_names_spec='$libname$shared_ext'
12969  dynamic_linker="$host_os ld.so"
12970  shlibpath_var=LIBRARY_PATH
12971  ;;
12972
12973bsdi[45]*)
12974  version_type=linux # correct to gnu/linux during the next big refactor
12975  need_version=no
12976  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12977  soname_spec='$libname$release$shared_ext$major'
12978  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12979  shlibpath_var=LD_LIBRARY_PATH
12980  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12981  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12982  # the default ld.so.conf also contains /usr/contrib/lib and
12983  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12984  # libtool to hard-code these into programs
12985  ;;
12986
12987cygwin* | mingw* | pw32* | cegcc*)
12988  version_type=windows
12989  shrext_cmds=.dll
12990  need_version=no
12991  need_lib_prefix=no
12992
12993  case $GCC,$cc_basename in
12994  yes,*)
12995    # gcc
12996    library_names_spec='$libname.dll.a'
12997    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12998    postinstall_cmds='base_file=`basename \$file`~
12999      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13000      dldir=$destdir/`dirname \$dlpath`~
13001      test -d \$dldir || mkdir -p \$dldir~
13002      $install_prog $dir/$dlname \$dldir/$dlname~
13003      chmod a+x \$dldir/$dlname~
13004      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13005        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13006      fi'
13007    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13008      dlpath=$dir/\$dldll~
13009       $RM \$dlpath'
13010    shlibpath_overrides_runpath=yes
13011
13012    case $host_os in
13013    cygwin*)
13014      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13015      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13016
13017      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13018      ;;
13019    mingw* | cegcc*)
13020      # MinGW DLLs use traditional 'lib' prefix
13021      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13022      ;;
13023    pw32*)
13024      # pw32 DLLs use 'pw' prefix rather than 'lib'
13025      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13026      ;;
13027    esac
13028    dynamic_linker='Win32 ld.exe'
13029    ;;
13030
13031  *,cl*)
13032    # Native MSVC
13033    libname_spec='$name'
13034    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13035    library_names_spec='$libname.dll.lib'
13036
13037    case $build_os in
13038    mingw*)
13039      sys_lib_search_path_spec=
13040      lt_save_ifs=$IFS
13041      IFS=';'
13042      for lt_path in $LIB
13043      do
13044        IFS=$lt_save_ifs
13045        # Let DOS variable expansion print the short 8.3 style file name.
13046        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13047        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13048      done
13049      IFS=$lt_save_ifs
13050      # Convert to MSYS style.
13051      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13052      ;;
13053    cygwin*)
13054      # Convert to unix form, then to dos form, then back to unix form
13055      # but this time dos style (no spaces!) so that the unix form looks
13056      # like /cygdrive/c/PROGRA~1:/cygdr...
13057      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13058      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13059      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13060      ;;
13061    *)
13062      sys_lib_search_path_spec=$LIB
13063      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13064        # It is most probably a Windows format PATH.
13065        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13066      else
13067        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13068      fi
13069      # FIXME: find the short name or the path components, as spaces are
13070      # common. (e.g. "Program Files" -> "PROGRA~1")
13071      ;;
13072    esac
13073
13074    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13075    postinstall_cmds='base_file=`basename \$file`~
13076      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13077      dldir=$destdir/`dirname \$dlpath`~
13078      test -d \$dldir || mkdir -p \$dldir~
13079      $install_prog $dir/$dlname \$dldir/$dlname'
13080    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13081      dlpath=$dir/\$dldll~
13082       $RM \$dlpath'
13083    shlibpath_overrides_runpath=yes
13084    dynamic_linker='Win32 link.exe'
13085    ;;
13086
13087  *)
13088    # Assume MSVC wrapper
13089    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13090    dynamic_linker='Win32 ld.exe'
13091    ;;
13092  esac
13093  # FIXME: first we should search . and the directory the executable is in
13094  shlibpath_var=PATH
13095  ;;
13096
13097darwin* | rhapsody*)
13098  dynamic_linker="$host_os dyld"
13099  version_type=darwin
13100  need_lib_prefix=no
13101  need_version=no
13102  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13103  soname_spec='$libname$release$major$shared_ext'
13104  shlibpath_overrides_runpath=yes
13105  shlibpath_var=DYLD_LIBRARY_PATH
13106  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13107
13108  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13110  ;;
13111
13112dgux*)
13113  version_type=linux # correct to gnu/linux during the next big refactor
13114  need_lib_prefix=no
13115  need_version=no
13116  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13117  soname_spec='$libname$release$shared_ext$major'
13118  shlibpath_var=LD_LIBRARY_PATH
13119  ;;
13120
13121freebsd* | dragonfly*)
13122  # DragonFly does not have aout.  When/if they implement a new
13123  # versioning mechanism, adjust this.
13124  if test -x /usr/bin/objformat; then
13125    objformat=`/usr/bin/objformat`
13126  else
13127    case $host_os in
13128    freebsd[23].*) objformat=aout ;;
13129    *) objformat=elf ;;
13130    esac
13131  fi
13132  version_type=freebsd-$objformat
13133  case $version_type in
13134    freebsd-elf*)
13135      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13136      soname_spec='$libname$release$shared_ext$major'
13137      need_version=no
13138      need_lib_prefix=no
13139      ;;
13140    freebsd-*)
13141      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13142      need_version=yes
13143      ;;
13144  esac
13145  shlibpath_var=LD_LIBRARY_PATH
13146  case $host_os in
13147  freebsd2.*)
13148    shlibpath_overrides_runpath=yes
13149    ;;
13150  freebsd3.[01]* | freebsdelf3.[01]*)
13151    shlibpath_overrides_runpath=yes
13152    hardcode_into_libs=yes
13153    ;;
13154  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13155  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13156    shlibpath_overrides_runpath=no
13157    hardcode_into_libs=yes
13158    ;;
13159  *) # from 4.6 on, and DragonFly
13160    shlibpath_overrides_runpath=yes
13161    hardcode_into_libs=yes
13162    ;;
13163  esac
13164  ;;
13165
13166haiku*)
13167  version_type=linux # correct to gnu/linux during the next big refactor
13168  need_lib_prefix=no
13169  need_version=no
13170  dynamic_linker="$host_os runtime_loader"
13171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13172  soname_spec='$libname$release$shared_ext$major'
13173  shlibpath_var=LIBRARY_PATH
13174  shlibpath_overrides_runpath=no
13175  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13176  hardcode_into_libs=yes
13177  ;;
13178
13179hpux9* | hpux10* | hpux11*)
13180  # Give a soname corresponding to the major version so that dld.sl refuses to
13181  # link against other versions.
13182  version_type=sunos
13183  need_lib_prefix=no
13184  need_version=no
13185  case $host_cpu in
13186  ia64*)
13187    shrext_cmds='.so'
13188    hardcode_into_libs=yes
13189    dynamic_linker="$host_os dld.so"
13190    shlibpath_var=LD_LIBRARY_PATH
13191    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13192    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13193    soname_spec='$libname$release$shared_ext$major'
13194    if test 32 = "$HPUX_IA64_MODE"; then
13195      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13196      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13197    else
13198      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13199      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13200    fi
13201    ;;
13202  hppa*64*)
13203    shrext_cmds='.sl'
13204    hardcode_into_libs=yes
13205    dynamic_linker="$host_os dld.sl"
13206    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13207    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13208    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13209    soname_spec='$libname$release$shared_ext$major'
13210    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212    ;;
13213  *)
13214    shrext_cmds='.sl'
13215    dynamic_linker="$host_os dld.sl"
13216    shlibpath_var=SHLIB_PATH
13217    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13218    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13219    soname_spec='$libname$release$shared_ext$major'
13220    ;;
13221  esac
13222  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13223  postinstall_cmds='chmod 555 $lib'
13224  # or fails outright, so override atomically:
13225  install_override_mode=555
13226  ;;
13227
13228interix[3-9]*)
13229  version_type=linux # correct to gnu/linux during the next big refactor
13230  need_lib_prefix=no
13231  need_version=no
13232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13233  soname_spec='$libname$release$shared_ext$major'
13234  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13235  shlibpath_var=LD_LIBRARY_PATH
13236  shlibpath_overrides_runpath=no
13237  hardcode_into_libs=yes
13238  ;;
13239
13240irix5* | irix6* | nonstopux*)
13241  case $host_os in
13242    nonstopux*) version_type=nonstopux ;;
13243    *)
13244	if test yes = "$lt_cv_prog_gnu_ld"; then
13245		version_type=linux # correct to gnu/linux during the next big refactor
13246	else
13247		version_type=irix
13248	fi ;;
13249  esac
13250  need_lib_prefix=no
13251  need_version=no
13252  soname_spec='$libname$release$shared_ext$major'
13253  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13254  case $host_os in
13255  irix5* | nonstopux*)
13256    libsuff= shlibsuff=
13257    ;;
13258  *)
13259    case $LD in # libtool.m4 will add one of these switches to LD
13260    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13261      libsuff= shlibsuff= libmagic=32-bit;;
13262    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13263      libsuff=32 shlibsuff=N32 libmagic=N32;;
13264    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13265      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13266    *) libsuff= shlibsuff= libmagic=never-match;;
13267    esac
13268    ;;
13269  esac
13270  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13271  shlibpath_overrides_runpath=no
13272  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13273  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13274  hardcode_into_libs=yes
13275  ;;
13276
13277# No shared lib support for Linux oldld, aout, or coff.
13278linux*oldld* | linux*aout* | linux*coff*)
13279  dynamic_linker=no
13280  ;;
13281
13282linux*android*)
13283  version_type=none # Android doesn't support versioned libraries.
13284  need_lib_prefix=no
13285  need_version=no
13286  library_names_spec='$libname$release$shared_ext'
13287  soname_spec='$libname$release$shared_ext'
13288  finish_cmds=
13289  shlibpath_var=LD_LIBRARY_PATH
13290  shlibpath_overrides_runpath=yes
13291
13292  # This implies no fast_install, which is unacceptable.
13293  # Some rework will be needed to allow for fast_install
13294  # before this can be enabled.
13295  hardcode_into_libs=yes
13296
13297  dynamic_linker='Android linker'
13298  # Don't embed -rpath directories since the linker doesn't support them.
13299  hardcode_libdir_flag_spec='-L$libdir'
13300  ;;
13301
13302# This must be glibc/ELF.
13303linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13304  version_type=linux # correct to gnu/linux during the next big refactor
13305  need_lib_prefix=no
13306  need_version=no
13307  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13308  soname_spec='$libname$release$shared_ext$major'
13309  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13310  shlibpath_var=LD_LIBRARY_PATH
13311  shlibpath_overrides_runpath=no
13312
13313  # Some binutils ld are patched to set DT_RUNPATH
13314  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  lt_cv_shlibpath_overrides_runpath=no
13318    save_LDFLAGS=$LDFLAGS
13319    save_libdir=$libdir
13320    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13321	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324
13325int
13326main ()
13327{
13328
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333if ac_fn_c_try_link "$LINENO"; then :
13334  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13335  lt_cv_shlibpath_overrides_runpath=yes
13336fi
13337fi
13338rm -f core conftest.err conftest.$ac_objext \
13339    conftest$ac_exeext conftest.$ac_ext
13340    LDFLAGS=$save_LDFLAGS
13341    libdir=$save_libdir
13342
13343fi
13344
13345  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13346
13347  # This implies no fast_install, which is unacceptable.
13348  # Some rework will be needed to allow for fast_install
13349  # before this can be enabled.
13350  hardcode_into_libs=yes
13351
13352  # Add ABI-specific directories to the system library path.
13353  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13354
13355  # Ideally, we could use ldconfig to report *all* directores which are
13356  # searched for libraries, however this is still not possible.  Aside from not
13357  # being certain /sbin/ldconfig is available, command
13358  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13359  # even though it is searched at run-time.  Try to do the best guess by
13360  # appending ld.so.conf contents (and includes) to the search path.
13361  if test -f /etc/ld.so.conf; then
13362    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' ' '`
13363    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13364  fi
13365
13366  # We used to test for /lib/ld.so.1 and disable shared libraries on
13367  # powerpc, because MkLinux only supported shared libraries with the
13368  # GNU dynamic linker.  Since this was broken with cross compilers,
13369  # most powerpc-linux boxes support dynamic linking these days and
13370  # people can always --disable-shared, the test was removed, and we
13371  # assume the GNU/Linux dynamic linker is in use.
13372  dynamic_linker='GNU/Linux ld.so'
13373  ;;
13374
13375netbsd*)
13376  version_type=sunos
13377  need_lib_prefix=no
13378  need_version=no
13379  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13380    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13381    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13382    dynamic_linker='NetBSD (a.out) ld.so'
13383  else
13384    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13385    soname_spec='$libname$release$shared_ext$major'
13386    dynamic_linker='NetBSD ld.elf_so'
13387  fi
13388  shlibpath_var=LD_LIBRARY_PATH
13389  shlibpath_overrides_runpath=yes
13390  hardcode_into_libs=yes
13391  ;;
13392
13393newsos6)
13394  version_type=linux # correct to gnu/linux during the next big refactor
13395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396  shlibpath_var=LD_LIBRARY_PATH
13397  shlibpath_overrides_runpath=yes
13398  ;;
13399
13400*nto* | *qnx*)
13401  version_type=qnx
13402  need_lib_prefix=no
13403  need_version=no
13404  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13405  soname_spec='$libname$release$shared_ext$major'
13406  shlibpath_var=LD_LIBRARY_PATH
13407  shlibpath_overrides_runpath=no
13408  hardcode_into_libs=yes
13409  dynamic_linker='ldqnx.so'
13410  ;;
13411
13412openbsd* | bitrig*)
13413  version_type=sunos
13414  sys_lib_dlsearch_path_spec=/usr/lib
13415  need_lib_prefix=no
13416  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13417    need_version=no
13418  else
13419    need_version=yes
13420  fi
13421  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13422  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  shlibpath_overrides_runpath=yes
13425  ;;
13426
13427os2*)
13428  libname_spec='$name'
13429  version_type=windows
13430  shrext_cmds=.dll
13431  need_version=no
13432  need_lib_prefix=no
13433  # OS/2 can only load a DLL with a base name of 8 characters or less.
13434  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13435    v=$($ECHO $release$versuffix | tr -d .-);
13436    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13437    $ECHO $n$v`$shared_ext'
13438  library_names_spec='${libname}_dll.$libext'
13439  dynamic_linker='OS/2 ld.exe'
13440  shlibpath_var=BEGINLIBPATH
13441  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13442  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13443  postinstall_cmds='base_file=`basename \$file`~
13444    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13445    dldir=$destdir/`dirname \$dlpath`~
13446    test -d \$dldir || mkdir -p \$dldir~
13447    $install_prog $dir/$dlname \$dldir/$dlname~
13448    chmod a+x \$dldir/$dlname~
13449    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13450      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13451    fi'
13452  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13453    dlpath=$dir/\$dldll~
13454    $RM \$dlpath'
13455  ;;
13456
13457osf3* | osf4* | osf5*)
13458  version_type=osf
13459  need_lib_prefix=no
13460  need_version=no
13461  soname_spec='$libname$release$shared_ext$major'
13462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13463  shlibpath_var=LD_LIBRARY_PATH
13464  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13465  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13466  ;;
13467
13468rdos*)
13469  dynamic_linker=no
13470  ;;
13471
13472solaris*)
13473  version_type=linux # correct to gnu/linux during the next big refactor
13474  need_lib_prefix=no
13475  need_version=no
13476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477  soname_spec='$libname$release$shared_ext$major'
13478  shlibpath_var=LD_LIBRARY_PATH
13479  shlibpath_overrides_runpath=yes
13480  hardcode_into_libs=yes
13481  # ldd complains unless libraries are executable
13482  postinstall_cmds='chmod +x $lib'
13483  ;;
13484
13485sunos4*)
13486  version_type=sunos
13487  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13488  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13489  shlibpath_var=LD_LIBRARY_PATH
13490  shlibpath_overrides_runpath=yes
13491  if test yes = "$with_gnu_ld"; then
13492    need_lib_prefix=no
13493  fi
13494  need_version=yes
13495  ;;
13496
13497sysv4 | sysv4.3*)
13498  version_type=linux # correct to gnu/linux during the next big refactor
13499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500  soname_spec='$libname$release$shared_ext$major'
13501  shlibpath_var=LD_LIBRARY_PATH
13502  case $host_vendor in
13503    sni)
13504      shlibpath_overrides_runpath=no
13505      need_lib_prefix=no
13506      runpath_var=LD_RUN_PATH
13507      ;;
13508    siemens)
13509      need_lib_prefix=no
13510      ;;
13511    motorola)
13512      need_lib_prefix=no
13513      need_version=no
13514      shlibpath_overrides_runpath=no
13515      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13516      ;;
13517  esac
13518  ;;
13519
13520sysv4*MP*)
13521  if test -d /usr/nec; then
13522    version_type=linux # correct to gnu/linux during the next big refactor
13523    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13524    soname_spec='$libname$shared_ext.$major'
13525    shlibpath_var=LD_LIBRARY_PATH
13526  fi
13527  ;;
13528
13529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13530  version_type=sco
13531  need_lib_prefix=no
13532  need_version=no
13533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13534  soname_spec='$libname$release$shared_ext$major'
13535  shlibpath_var=LD_LIBRARY_PATH
13536  shlibpath_overrides_runpath=yes
13537  hardcode_into_libs=yes
13538  if test yes = "$with_gnu_ld"; then
13539    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540  else
13541    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13542    case $host_os in
13543      sco3.2v5*)
13544        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13545	;;
13546    esac
13547  fi
13548  sys_lib_dlsearch_path_spec='/usr/lib'
13549  ;;
13550
13551tpf*)
13552  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13553  version_type=linux # correct to gnu/linux during the next big refactor
13554  need_lib_prefix=no
13555  need_version=no
13556  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13557  shlibpath_var=LD_LIBRARY_PATH
13558  shlibpath_overrides_runpath=no
13559  hardcode_into_libs=yes
13560  ;;
13561
13562uts4*)
13563  version_type=linux # correct to gnu/linux during the next big refactor
13564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13565  soname_spec='$libname$release$shared_ext$major'
13566  shlibpath_var=LD_LIBRARY_PATH
13567  ;;
13568
13569*)
13570  dynamic_linker=no
13571  ;;
13572esac
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13574$as_echo "$dynamic_linker" >&6; }
13575test no = "$dynamic_linker" && can_build_shared=no
13576
13577variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13578if test yes = "$GCC"; then
13579  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13580fi
13581
13582if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13583  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13584fi
13585
13586if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13587  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13588fi
13589
13590# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13591configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13592
13593# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13594func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13595
13596# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13597configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13598
13599
13600
13601
13602
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13696$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13697hardcode_action=
13698if test -n "$hardcode_libdir_flag_spec" ||
13699   test -n "$runpath_var" ||
13700   test yes = "$hardcode_automatic"; then
13701
13702  # We can hardcode non-existent directories.
13703  if test no != "$hardcode_direct" &&
13704     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13705     # have to relink, otherwise we might link with an installed library
13706     # when we should be linking with a yet-to-be-installed one
13707     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13708     test no != "$hardcode_minus_L"; then
13709    # Linking always hardcodes the temporary library directory.
13710    hardcode_action=relink
13711  else
13712    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13713    hardcode_action=immediate
13714  fi
13715else
13716  # We cannot hardcode anything, or else we can only hardcode existing
13717  # directories.
13718  hardcode_action=unsupported
13719fi
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13721$as_echo "$hardcode_action" >&6; }
13722
13723if test relink = "$hardcode_action" ||
13724   test yes = "$inherit_rpath"; then
13725  # Fast installation is not supported
13726  enable_fast_install=no
13727elif test yes = "$shlibpath_overrides_runpath" ||
13728     test no = "$enable_shared"; then
13729  # Fast installation is not necessary
13730  enable_fast_install=needless
13731fi
13732
13733
13734
13735
13736
13737
13738  if test yes != "$enable_dlopen"; then
13739  enable_dlopen=unknown
13740  enable_dlopen_self=unknown
13741  enable_dlopen_self_static=unknown
13742else
13743  lt_cv_dlopen=no
13744  lt_cv_dlopen_libs=
13745
13746  case $host_os in
13747  beos*)
13748    lt_cv_dlopen=load_add_on
13749    lt_cv_dlopen_libs=
13750    lt_cv_dlopen_self=yes
13751    ;;
13752
13753  mingw* | pw32* | cegcc*)
13754    lt_cv_dlopen=LoadLibrary
13755    lt_cv_dlopen_libs=
13756    ;;
13757
13758  cygwin*)
13759    lt_cv_dlopen=dlopen
13760    lt_cv_dlopen_libs=
13761    ;;
13762
13763  darwin*)
13764    # if libdl is installed we need to link against it
13765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13766$as_echo_n "checking for dlopen in -ldl... " >&6; }
13767if ${ac_cv_lib_dl_dlopen+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  ac_check_lib_save_LIBS=$LIBS
13771LIBS="-ldl  $LIBS"
13772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774
13775/* Override any GCC internal prototype to avoid an error.
13776   Use char because int might match the return type of a GCC
13777   builtin and then its argument prototype would still apply.  */
13778#ifdef __cplusplus
13779extern "C"
13780#endif
13781char dlopen ();
13782int
13783main ()
13784{
13785return dlopen ();
13786  ;
13787  return 0;
13788}
13789_ACEOF
13790if ac_fn_c_try_link "$LINENO"; then :
13791  ac_cv_lib_dl_dlopen=yes
13792else
13793  ac_cv_lib_dl_dlopen=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext \
13796    conftest$ac_exeext conftest.$ac_ext
13797LIBS=$ac_check_lib_save_LIBS
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13800$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13801if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13802  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13803else
13804
13805    lt_cv_dlopen=dyld
13806    lt_cv_dlopen_libs=
13807    lt_cv_dlopen_self=yes
13808
13809fi
13810
13811    ;;
13812
13813  tpf*)
13814    # Don't try to run any link tests for TPF.  We know it's impossible
13815    # because TPF is a cross-compiler, and we know how we open DSOs.
13816    lt_cv_dlopen=dlopen
13817    lt_cv_dlopen_libs=
13818    lt_cv_dlopen_self=no
13819    ;;
13820
13821  *)
13822    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13823if test "x$ac_cv_func_shl_load" = xyes; then :
13824  lt_cv_dlopen=shl_load
13825else
13826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13827$as_echo_n "checking for shl_load in -ldld... " >&6; }
13828if ${ac_cv_lib_dld_shl_load+:} false; then :
13829  $as_echo_n "(cached) " >&6
13830else
13831  ac_check_lib_save_LIBS=$LIBS
13832LIBS="-ldld  $LIBS"
13833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h.  */
13835
13836/* Override any GCC internal prototype to avoid an error.
13837   Use char because int might match the return type of a GCC
13838   builtin and then its argument prototype would still apply.  */
13839#ifdef __cplusplus
13840extern "C"
13841#endif
13842char shl_load ();
13843int
13844main ()
13845{
13846return shl_load ();
13847  ;
13848  return 0;
13849}
13850_ACEOF
13851if ac_fn_c_try_link "$LINENO"; then :
13852  ac_cv_lib_dld_shl_load=yes
13853else
13854  ac_cv_lib_dld_shl_load=no
13855fi
13856rm -f core conftest.err conftest.$ac_objext \
13857    conftest$ac_exeext conftest.$ac_ext
13858LIBS=$ac_check_lib_save_LIBS
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13861$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13862if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13863  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13864else
13865  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13866if test "x$ac_cv_func_dlopen" = xyes; then :
13867  lt_cv_dlopen=dlopen
13868else
13869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13870$as_echo_n "checking for dlopen in -ldl... " >&6; }
13871if ${ac_cv_lib_dl_dlopen+:} false; then :
13872  $as_echo_n "(cached) " >&6
13873else
13874  ac_check_lib_save_LIBS=$LIBS
13875LIBS="-ldl  $LIBS"
13876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877/* end confdefs.h.  */
13878
13879/* Override any GCC internal prototype to avoid an error.
13880   Use char because int might match the return type of a GCC
13881   builtin and then its argument prototype would still apply.  */
13882#ifdef __cplusplus
13883extern "C"
13884#endif
13885char dlopen ();
13886int
13887main ()
13888{
13889return dlopen ();
13890  ;
13891  return 0;
13892}
13893_ACEOF
13894if ac_fn_c_try_link "$LINENO"; then :
13895  ac_cv_lib_dl_dlopen=yes
13896else
13897  ac_cv_lib_dl_dlopen=no
13898fi
13899rm -f core conftest.err conftest.$ac_objext \
13900    conftest$ac_exeext conftest.$ac_ext
13901LIBS=$ac_check_lib_save_LIBS
13902fi
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13904$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13905if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13906  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13907else
13908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13909$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13910if ${ac_cv_lib_svld_dlopen+:} false; then :
13911  $as_echo_n "(cached) " >&6
13912else
13913  ac_check_lib_save_LIBS=$LIBS
13914LIBS="-lsvld  $LIBS"
13915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916/* end confdefs.h.  */
13917
13918/* Override any GCC internal prototype to avoid an error.
13919   Use char because int might match the return type of a GCC
13920   builtin and then its argument prototype would still apply.  */
13921#ifdef __cplusplus
13922extern "C"
13923#endif
13924char dlopen ();
13925int
13926main ()
13927{
13928return dlopen ();
13929  ;
13930  return 0;
13931}
13932_ACEOF
13933if ac_fn_c_try_link "$LINENO"; then :
13934  ac_cv_lib_svld_dlopen=yes
13935else
13936  ac_cv_lib_svld_dlopen=no
13937fi
13938rm -f core conftest.err conftest.$ac_objext \
13939    conftest$ac_exeext conftest.$ac_ext
13940LIBS=$ac_check_lib_save_LIBS
13941fi
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13943$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13944if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13945  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13946else
13947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13948$as_echo_n "checking for dld_link in -ldld... " >&6; }
13949if ${ac_cv_lib_dld_dld_link+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  ac_check_lib_save_LIBS=$LIBS
13953LIBS="-ldld  $LIBS"
13954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955/* end confdefs.h.  */
13956
13957/* Override any GCC internal prototype to avoid an error.
13958   Use char because int might match the return type of a GCC
13959   builtin and then its argument prototype would still apply.  */
13960#ifdef __cplusplus
13961extern "C"
13962#endif
13963char dld_link ();
13964int
13965main ()
13966{
13967return dld_link ();
13968  ;
13969  return 0;
13970}
13971_ACEOF
13972if ac_fn_c_try_link "$LINENO"; then :
13973  ac_cv_lib_dld_dld_link=yes
13974else
13975  ac_cv_lib_dld_dld_link=no
13976fi
13977rm -f core conftest.err conftest.$ac_objext \
13978    conftest$ac_exeext conftest.$ac_ext
13979LIBS=$ac_check_lib_save_LIBS
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13982$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13983if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13984  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13985fi
13986
13987
13988fi
13989
13990
13991fi
13992
13993
13994fi
13995
13996
13997fi
13998
13999
14000fi
14001
14002    ;;
14003  esac
14004
14005  if test no = "$lt_cv_dlopen"; then
14006    enable_dlopen=no
14007  else
14008    enable_dlopen=yes
14009  fi
14010
14011  case $lt_cv_dlopen in
14012  dlopen)
14013    save_CPPFLAGS=$CPPFLAGS
14014    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14015
14016    save_LDFLAGS=$LDFLAGS
14017    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14018
14019    save_LIBS=$LIBS
14020    LIBS="$lt_cv_dlopen_libs $LIBS"
14021
14022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14023$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14024if ${lt_cv_dlopen_self+:} false; then :
14025  $as_echo_n "(cached) " >&6
14026else
14027  	  if test yes = "$cross_compiling"; then :
14028  lt_cv_dlopen_self=cross
14029else
14030  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14031  lt_status=$lt_dlunknown
14032  cat > conftest.$ac_ext <<_LT_EOF
14033#line $LINENO "configure"
14034#include "confdefs.h"
14035
14036#if HAVE_DLFCN_H
14037#include <dlfcn.h>
14038#endif
14039
14040#include <stdio.h>
14041
14042#ifdef RTLD_GLOBAL
14043#  define LT_DLGLOBAL		RTLD_GLOBAL
14044#else
14045#  ifdef DL_GLOBAL
14046#    define LT_DLGLOBAL		DL_GLOBAL
14047#  else
14048#    define LT_DLGLOBAL		0
14049#  endif
14050#endif
14051
14052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14053   find out it does not work in some platform. */
14054#ifndef LT_DLLAZY_OR_NOW
14055#  ifdef RTLD_LAZY
14056#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14057#  else
14058#    ifdef DL_LAZY
14059#      define LT_DLLAZY_OR_NOW		DL_LAZY
14060#    else
14061#      ifdef RTLD_NOW
14062#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14063#      else
14064#        ifdef DL_NOW
14065#          define LT_DLLAZY_OR_NOW	DL_NOW
14066#        else
14067#          define LT_DLLAZY_OR_NOW	0
14068#        endif
14069#      endif
14070#    endif
14071#  endif
14072#endif
14073
14074/* When -fvisibility=hidden is used, assume the code has been annotated
14075   correspondingly for the symbols needed.  */
14076#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14077int fnord () __attribute__((visibility("default")));
14078#endif
14079
14080int fnord () { return 42; }
14081int main ()
14082{
14083  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14084  int status = $lt_dlunknown;
14085
14086  if (self)
14087    {
14088      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14089      else
14090        {
14091	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14092          else puts (dlerror ());
14093	}
14094      /* dlclose (self); */
14095    }
14096  else
14097    puts (dlerror ());
14098
14099  return status;
14100}
14101_LT_EOF
14102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14103  (eval $ac_link) 2>&5
14104  ac_status=$?
14105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14107    (./conftest; exit; ) >&5 2>/dev/null
14108    lt_status=$?
14109    case x$lt_status in
14110      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14111      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14112      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14113    esac
14114  else :
14115    # compilation failed
14116    lt_cv_dlopen_self=no
14117  fi
14118fi
14119rm -fr conftest*
14120
14121
14122fi
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14124$as_echo "$lt_cv_dlopen_self" >&6; }
14125
14126    if test yes = "$lt_cv_dlopen_self"; then
14127      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14129$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14130if ${lt_cv_dlopen_self_static+:} false; then :
14131  $as_echo_n "(cached) " >&6
14132else
14133  	  if test yes = "$cross_compiling"; then :
14134  lt_cv_dlopen_self_static=cross
14135else
14136  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14137  lt_status=$lt_dlunknown
14138  cat > conftest.$ac_ext <<_LT_EOF
14139#line $LINENO "configure"
14140#include "confdefs.h"
14141
14142#if HAVE_DLFCN_H
14143#include <dlfcn.h>
14144#endif
14145
14146#include <stdio.h>
14147
14148#ifdef RTLD_GLOBAL
14149#  define LT_DLGLOBAL		RTLD_GLOBAL
14150#else
14151#  ifdef DL_GLOBAL
14152#    define LT_DLGLOBAL		DL_GLOBAL
14153#  else
14154#    define LT_DLGLOBAL		0
14155#  endif
14156#endif
14157
14158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14159   find out it does not work in some platform. */
14160#ifndef LT_DLLAZY_OR_NOW
14161#  ifdef RTLD_LAZY
14162#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14163#  else
14164#    ifdef DL_LAZY
14165#      define LT_DLLAZY_OR_NOW		DL_LAZY
14166#    else
14167#      ifdef RTLD_NOW
14168#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14169#      else
14170#        ifdef DL_NOW
14171#          define LT_DLLAZY_OR_NOW	DL_NOW
14172#        else
14173#          define LT_DLLAZY_OR_NOW	0
14174#        endif
14175#      endif
14176#    endif
14177#  endif
14178#endif
14179
14180/* When -fvisibility=hidden is used, assume the code has been annotated
14181   correspondingly for the symbols needed.  */
14182#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14183int fnord () __attribute__((visibility("default")));
14184#endif
14185
14186int fnord () { return 42; }
14187int main ()
14188{
14189  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14190  int status = $lt_dlunknown;
14191
14192  if (self)
14193    {
14194      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14195      else
14196        {
14197	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14198          else puts (dlerror ());
14199	}
14200      /* dlclose (self); */
14201    }
14202  else
14203    puts (dlerror ());
14204
14205  return status;
14206}
14207_LT_EOF
14208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14209  (eval $ac_link) 2>&5
14210  ac_status=$?
14211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14213    (./conftest; exit; ) >&5 2>/dev/null
14214    lt_status=$?
14215    case x$lt_status in
14216      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14217      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14218      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14219    esac
14220  else :
14221    # compilation failed
14222    lt_cv_dlopen_self_static=no
14223  fi
14224fi
14225rm -fr conftest*
14226
14227
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14230$as_echo "$lt_cv_dlopen_self_static" >&6; }
14231    fi
14232
14233    CPPFLAGS=$save_CPPFLAGS
14234    LDFLAGS=$save_LDFLAGS
14235    LIBS=$save_LIBS
14236    ;;
14237  esac
14238
14239  case $lt_cv_dlopen_self in
14240  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14241  *) enable_dlopen_self=unknown ;;
14242  esac
14243
14244  case $lt_cv_dlopen_self_static in
14245  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14246  *) enable_dlopen_self_static=unknown ;;
14247  esac
14248fi
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266striplib=
14267old_striplib=
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14269$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14270if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14271  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14272  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14274$as_echo "yes" >&6; }
14275else
14276# FIXME - insert some real tests, host_os isn't really good enough
14277  case $host_os in
14278  darwin*)
14279    if test -n "$STRIP"; then
14280      striplib="$STRIP -x"
14281      old_striplib="$STRIP -S"
14282      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283$as_echo "yes" >&6; }
14284    else
14285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286$as_echo "no" >&6; }
14287    fi
14288    ;;
14289  *)
14290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
14292    ;;
14293  esac
14294fi
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307  # Report what library types will actually be built
14308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14309$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14311$as_echo "$can_build_shared" >&6; }
14312
14313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14314$as_echo_n "checking whether to build shared libraries... " >&6; }
14315  test no = "$can_build_shared" && enable_shared=no
14316
14317  # On AIX, shared libraries and static libraries use the same namespace, and
14318  # are all built from PIC.
14319  case $host_os in
14320  aix3*)
14321    test yes = "$enable_shared" && enable_static=no
14322    if test -n "$RANLIB"; then
14323      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14324      postinstall_cmds='$RANLIB $lib'
14325    fi
14326    ;;
14327
14328  aix[4-9]*)
14329    if test ia64 != "$host_cpu"; then
14330      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14331      yes,aix,yes) ;;			# shared object as lib.so file only
14332      yes,svr4,*) ;;			# shared object as lib.so archive member only
14333      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14334      esac
14335    fi
14336    ;;
14337  esac
14338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14339$as_echo "$enable_shared" >&6; }
14340
14341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14342$as_echo_n "checking whether to build static libraries... " >&6; }
14343  # Make sure either enable_shared or enable_static is yes.
14344  test yes = "$enable_shared" || enable_static=yes
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14346$as_echo "$enable_static" >&6; }
14347
14348
14349
14350
14351fi
14352ac_ext=c
14353ac_cpp='$CPP $CPPFLAGS'
14354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356ac_compiler_gnu=$ac_cv_c_compiler_gnu
14357
14358CC=$lt_save_CC
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374        ac_config_commands="$ac_config_commands libtool"
14375
14376
14377
14378
14379# Only expand once:
14380
14381
14382
14383
14384# Checks for header files.
14385for 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
14386do :
14387  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14388ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14389"
14390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14391  cat >>confdefs.h <<_ACEOF
14392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14393_ACEOF
14394
14395fi
14396
14397done
14398
14399
14400# check for types.
14401# Using own tests for int64* because autoconf builtin only give 32bit.
14402ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14403if test "x$ac_cv_type_int8_t" = xyes; then :
14404
14405else
14406
14407cat >>confdefs.h <<_ACEOF
14408#define int8_t signed char
14409_ACEOF
14410
14411fi
14412
14413ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14414if test "x$ac_cv_type_int16_t" = xyes; then :
14415
14416else
14417
14418cat >>confdefs.h <<_ACEOF
14419#define int16_t short
14420_ACEOF
14421
14422fi
14423
14424ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14425if test "x$ac_cv_type_int32_t" = xyes; then :
14426
14427else
14428
14429cat >>confdefs.h <<_ACEOF
14430#define int32_t int
14431_ACEOF
14432
14433fi
14434
14435ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14436if test "x$ac_cv_type_int64_t" = xyes; then :
14437
14438else
14439
14440cat >>confdefs.h <<_ACEOF
14441#define int64_t long long
14442_ACEOF
14443
14444fi
14445
14446ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14447if test "x$ac_cv_type_uint8_t" = xyes; then :
14448
14449else
14450
14451cat >>confdefs.h <<_ACEOF
14452#define uint8_t unsigned char
14453_ACEOF
14454
14455fi
14456
14457ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14458if test "x$ac_cv_type_uint16_t" = xyes; then :
14459
14460else
14461
14462cat >>confdefs.h <<_ACEOF
14463#define uint16_t unsigned short
14464_ACEOF
14465
14466fi
14467
14468ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14469if test "x$ac_cv_type_uint32_t" = xyes; then :
14470
14471else
14472
14473cat >>confdefs.h <<_ACEOF
14474#define uint32_t unsigned int
14475_ACEOF
14476
14477fi
14478
14479ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14480if test "x$ac_cv_type_uint64_t" = xyes; then :
14481
14482else
14483
14484cat >>confdefs.h <<_ACEOF
14485#define uint64_t unsigned long long
14486_ACEOF
14487
14488fi
14489
14490ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14491if test "x$ac_cv_type_size_t" = xyes; then :
14492
14493else
14494
14495cat >>confdefs.h <<_ACEOF
14496#define size_t unsigned int
14497_ACEOF
14498
14499fi
14500
14501ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14502if test "x$ac_cv_type_ssize_t" = xyes; then :
14503
14504else
14505
14506cat >>confdefs.h <<_ACEOF
14507#define ssize_t int
14508_ACEOF
14509
14510fi
14511
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14513$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14514if ${ac_cv_type_uid_t+:} false; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518/* end confdefs.h.  */
14519#include <sys/types.h>
14520
14521_ACEOF
14522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523  $EGREP "uid_t" >/dev/null 2>&1; then :
14524  ac_cv_type_uid_t=yes
14525else
14526  ac_cv_type_uid_t=no
14527fi
14528rm -f conftest*
14529
14530fi
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14532$as_echo "$ac_cv_type_uid_t" >&6; }
14533if test $ac_cv_type_uid_t = no; then
14534
14535$as_echo "#define uid_t int" >>confdefs.h
14536
14537
14538$as_echo "#define gid_t int" >>confdefs.h
14539
14540fi
14541
14542ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14543if test "x$ac_cv_type_pid_t" = xyes; then :
14544
14545else
14546
14547cat >>confdefs.h <<_ACEOF
14548#define pid_t int
14549_ACEOF
14550
14551fi
14552
14553ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14554if test "x$ac_cv_type_off_t" = xyes; then :
14555
14556else
14557
14558cat >>confdefs.h <<_ACEOF
14559#define off_t long int
14560_ACEOF
14561
14562fi
14563
14564ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14565$ac_includes_default
14566#ifdef HAVE_WINSOCK2_H
14567#  include <winsock2.h>
14568#endif
14569
14570"
14571if test "x$ac_cv_type_u_char" = xyes; then :
14572
14573else
14574
14575$as_echo "#define u_char unsigned char" >>confdefs.h
14576
14577fi
14578
14579ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14580$ac_includes_default
14581#ifdef HAVE_SYS_RESOURCE_H
14582#  include <sys/resource.h>
14583#endif
14584
14585"
14586if test "x$ac_cv_type_rlim_t" = xyes; then :
14587
14588else
14589
14590$as_echo "#define rlim_t unsigned long" >>confdefs.h
14591
14592fi
14593
14594
14595ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14596$ac_includes_default
14597#ifdef HAVE_SYS_SOCKET_H
14598#  include <sys/socket.h>
14599#endif
14600#ifdef HAVE_WS2TCPIP_H
14601#  include <ws2tcpip.h>
14602#endif
14603
14604"
14605if test "x$ac_cv_type_socklen_t" = xyes; then :
14606
14607else
14608
14609$as_echo "#define socklen_t int" >>confdefs.h
14610
14611fi
14612
14613 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14614$ac_includes_default
14615#ifdef HAVE_SYS_TYPES_H
14616# include <sys/types.h>
14617#endif
14618#ifdef HAVE_NETINET_IN_H
14619# include <netinet/in.h>
14620#endif
14621
14622"
14623if test "x$ac_cv_type_in_addr_t" = xyes; then :
14624
14625else
14626
14627$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14628
14629fi
14630
14631 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14632$ac_includes_default
14633#ifdef HAVE_SYS_TYPES_H
14634# include <sys/types.h>
14635#endif
14636#ifdef HAVE_NETINET_IN_H
14637# include <netinet/in.h>
14638#endif
14639
14640"
14641if test "x$ac_cv_type_in_port_t" = xyes; then :
14642
14643else
14644
14645$as_echo "#define in_port_t uint16_t" >>confdefs.h
14646
14647fi
14648
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14650$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14651if test "$cross_compiling" = yes; then :
14652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14653$as_echo "cross-compile no" >&6; }
14654
14655$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14656
14657  case " $LIBOBJS " in
14658  *" memcmp.$ac_objext "* ) ;;
14659  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14660 ;;
14661esac
14662
14663
14664else
14665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666/* end confdefs.h.  */
14667
14668#include <stdio.h>
14669#include <stdlib.h>
14670#include <string.h>
14671int main(void)
14672{
14673	char a = 255, b = 0;
14674	if(memcmp(&a, &b, 1) < 0)
14675		return 1;
14676	return 0;
14677}
14678
14679_ACEOF
14680if ac_fn_c_try_run "$LINENO"; then :
14681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682$as_echo "yes" >&6; }
14683else
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685$as_echo "no" >&6; }
14686
14687$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14688
14689  case " $LIBOBJS " in
14690  *" memcmp.$ac_objext "* ) ;;
14691  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14692 ;;
14693esac
14694
14695
14696fi
14697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14698  conftest.$ac_objext conftest.beam conftest.$ac_ext
14699fi
14700
14701
14702# The cast to long int works around a bug in the HP C Compiler
14703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14705# This bug is HP SR number 8606223364.
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14707$as_echo_n "checking size of time_t... " >&6; }
14708if ${ac_cv_sizeof_time_t+:} false; then :
14709  $as_echo_n "(cached) " >&6
14710else
14711  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14712$ac_includes_default
14713#ifdef TIME_WITH_SYS_TIME
14714# include <sys/time.h>
14715# include <time.h>
14716#else
14717# ifdef HAVE_SYS_TIME_H
14718#  include <sys/time.h>
14719# else
14720#  include <time.h>
14721# endif
14722#endif
14723
14724"; then :
14725
14726else
14727  if test "$ac_cv_type_time_t" = yes; then
14728     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14730as_fn_error 77 "cannot compute sizeof (time_t)
14731See \`config.log' for more details" "$LINENO" 5; }
14732   else
14733     ac_cv_sizeof_time_t=0
14734   fi
14735fi
14736
14737fi
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14739$as_echo "$ac_cv_sizeof_time_t" >&6; }
14740
14741
14742
14743cat >>confdefs.h <<_ACEOF
14744#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14745_ACEOF
14746
14747
14748
14749# add option to disable the evil rpath
14750
14751# Check whether --enable-rpath was given.
14752if test "${enable_rpath+set}" = set; then :
14753  enableval=$enable_rpath; enable_rpath=$enableval
14754else
14755  enable_rpath=yes
14756fi
14757
14758if test "x$enable_rpath" = xno; then
14759		ac_config_commands="$ac_config_commands disable-rpath"
14760
14761fi
14762
14763
14764
14765# check to see if libraries are needed for these functions.
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14767$as_echo_n "checking for library containing inet_pton... " >&6; }
14768if ${ac_cv_search_inet_pton+:} false; then :
14769  $as_echo_n "(cached) " >&6
14770else
14771  ac_func_search_save_LIBS=$LIBS
14772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h.  */
14774
14775/* Override any GCC internal prototype to avoid an error.
14776   Use char because int might match the return type of a GCC
14777   builtin and then its argument prototype would still apply.  */
14778#ifdef __cplusplus
14779extern "C"
14780#endif
14781char inet_pton ();
14782int
14783main ()
14784{
14785return inet_pton ();
14786  ;
14787  return 0;
14788}
14789_ACEOF
14790for ac_lib in '' nsl; do
14791  if test -z "$ac_lib"; then
14792    ac_res="none required"
14793  else
14794    ac_res=-l$ac_lib
14795    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14796  fi
14797  if ac_fn_c_try_link "$LINENO"; then :
14798  ac_cv_search_inet_pton=$ac_res
14799fi
14800rm -f core conftest.err conftest.$ac_objext \
14801    conftest$ac_exeext
14802  if ${ac_cv_search_inet_pton+:} false; then :
14803  break
14804fi
14805done
14806if ${ac_cv_search_inet_pton+:} false; then :
14807
14808else
14809  ac_cv_search_inet_pton=no
14810fi
14811rm conftest.$ac_ext
14812LIBS=$ac_func_search_save_LIBS
14813fi
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14815$as_echo "$ac_cv_search_inet_pton" >&6; }
14816ac_res=$ac_cv_search_inet_pton
14817if test "$ac_res" != no; then :
14818  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14819
14820fi
14821
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14823$as_echo_n "checking for library containing socket... " >&6; }
14824if ${ac_cv_search_socket+:} false; then :
14825  $as_echo_n "(cached) " >&6
14826else
14827  ac_func_search_save_LIBS=$LIBS
14828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h.  */
14830
14831/* Override any GCC internal prototype to avoid an error.
14832   Use char because int might match the return type of a GCC
14833   builtin and then its argument prototype would still apply.  */
14834#ifdef __cplusplus
14835extern "C"
14836#endif
14837char socket ();
14838int
14839main ()
14840{
14841return socket ();
14842  ;
14843  return 0;
14844}
14845_ACEOF
14846for ac_lib in '' socket; do
14847  if test -z "$ac_lib"; then
14848    ac_res="none required"
14849  else
14850    ac_res=-l$ac_lib
14851    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14852  fi
14853  if ac_fn_c_try_link "$LINENO"; then :
14854  ac_cv_search_socket=$ac_res
14855fi
14856rm -f core conftest.err conftest.$ac_objext \
14857    conftest$ac_exeext
14858  if ${ac_cv_search_socket+:} false; then :
14859  break
14860fi
14861done
14862if ${ac_cv_search_socket+:} false; then :
14863
14864else
14865  ac_cv_search_socket=no
14866fi
14867rm conftest.$ac_ext
14868LIBS=$ac_func_search_save_LIBS
14869fi
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14871$as_echo "$ac_cv_search_socket" >&6; }
14872ac_res=$ac_cv_search_socket
14873if test "$ac_res" != no; then :
14874  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14875
14876fi
14877
14878
14879# check wether strptime also works
14880
14881# check some functions of the OS before linking libs (while still runnable).
14882for ac_header in unistd.h
14883do :
14884  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14885if test "x$ac_cv_header_unistd_h" = xyes; then :
14886  cat >>confdefs.h <<_ACEOF
14887#define HAVE_UNISTD_H 1
14888_ACEOF
14889
14890fi
14891
14892done
14893
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14895$as_echo_n "checking for working chown... " >&6; }
14896if ${ac_cv_func_chown_works+:} false; then :
14897  $as_echo_n "(cached) " >&6
14898else
14899  if test "$cross_compiling" = yes; then :
14900  ac_cv_func_chown_works=no
14901else
14902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904$ac_includes_default
14905#include <fcntl.h>
14906
14907int
14908main ()
14909{
14910  char *f = "conftest.chown";
14911  struct stat before, after;
14912
14913  if (creat (f, 0600) < 0)
14914    return 1;
14915  if (stat (f, &before) < 0)
14916    return 1;
14917  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14918    return 1;
14919  if (stat (f, &after) < 0)
14920    return 1;
14921  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14922
14923  ;
14924  return 0;
14925}
14926_ACEOF
14927if ac_fn_c_try_run "$LINENO"; then :
14928  ac_cv_func_chown_works=yes
14929else
14930  ac_cv_func_chown_works=no
14931fi
14932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14933  conftest.$ac_objext conftest.beam conftest.$ac_ext
14934fi
14935
14936rm -f conftest.chown
14937
14938fi
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14940$as_echo "$ac_cv_func_chown_works" >&6; }
14941if test $ac_cv_func_chown_works = yes; then
14942
14943$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14944
14945fi
14946
14947for ac_header in vfork.h
14948do :
14949  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14950if test "x$ac_cv_header_vfork_h" = xyes; then :
14951  cat >>confdefs.h <<_ACEOF
14952#define HAVE_VFORK_H 1
14953_ACEOF
14954
14955fi
14956
14957done
14958
14959for ac_func in fork vfork
14960do :
14961  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14964  cat >>confdefs.h <<_ACEOF
14965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14966_ACEOF
14967
14968fi
14969done
14970
14971if test "x$ac_cv_func_fork" = xyes; then
14972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14973$as_echo_n "checking for working fork... " >&6; }
14974if ${ac_cv_func_fork_works+:} false; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  if test "$cross_compiling" = yes; then :
14978  ac_cv_func_fork_works=cross
14979else
14980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981/* end confdefs.h.  */
14982$ac_includes_default
14983int
14984main ()
14985{
14986
14987	  /* By Ruediger Kuhlmann. */
14988	  return fork () < 0;
14989
14990  ;
14991  return 0;
14992}
14993_ACEOF
14994if ac_fn_c_try_run "$LINENO"; then :
14995  ac_cv_func_fork_works=yes
14996else
14997  ac_cv_func_fork_works=no
14998fi
14999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15000  conftest.$ac_objext conftest.beam conftest.$ac_ext
15001fi
15002
15003fi
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15005$as_echo "$ac_cv_func_fork_works" >&6; }
15006
15007else
15008  ac_cv_func_fork_works=$ac_cv_func_fork
15009fi
15010if test "x$ac_cv_func_fork_works" = xcross; then
15011  case $host in
15012    *-*-amigaos* | *-*-msdosdjgpp*)
15013      # Override, as these systems have only a dummy fork() stub
15014      ac_cv_func_fork_works=no
15015      ;;
15016    *)
15017      ac_cv_func_fork_works=yes
15018      ;;
15019  esac
15020  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15021$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15022fi
15023ac_cv_func_vfork_works=$ac_cv_func_vfork
15024if test "x$ac_cv_func_vfork" = xyes; then
15025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15026$as_echo_n "checking for working vfork... " >&6; }
15027if ${ac_cv_func_vfork_works+:} false; then :
15028  $as_echo_n "(cached) " >&6
15029else
15030  if test "$cross_compiling" = yes; then :
15031  ac_cv_func_vfork_works=cross
15032else
15033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034/* end confdefs.h.  */
15035/* Thanks to Paul Eggert for this test.  */
15036$ac_includes_default
15037#include <sys/wait.h>
15038#ifdef HAVE_VFORK_H
15039# include <vfork.h>
15040#endif
15041/* On some sparc systems, changes by the child to local and incoming
15042   argument registers are propagated back to the parent.  The compiler
15043   is told about this with #include <vfork.h>, but some compilers
15044   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15045   static variable whose address is put into a register that is
15046   clobbered by the vfork.  */
15047static void
15048#ifdef __cplusplus
15049sparc_address_test (int arg)
15050# else
15051sparc_address_test (arg) int arg;
15052#endif
15053{
15054  static pid_t child;
15055  if (!child) {
15056    child = vfork ();
15057    if (child < 0) {
15058      perror ("vfork");
15059      _exit(2);
15060    }
15061    if (!child) {
15062      arg = getpid();
15063      write(-1, "", 0);
15064      _exit (arg);
15065    }
15066  }
15067}
15068
15069int
15070main ()
15071{
15072  pid_t parent = getpid ();
15073  pid_t child;
15074
15075  sparc_address_test (0);
15076
15077  child = vfork ();
15078
15079  if (child == 0) {
15080    /* Here is another test for sparc vfork register problems.  This
15081       test uses lots of local variables, at least as many local
15082       variables as main has allocated so far including compiler
15083       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15084       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15085       reuse the register of parent for one of the local variables,
15086       since it will think that parent can't possibly be used any more
15087       in this routine.  Assigning to the local variable will thus
15088       munge parent in the parent process.  */
15089    pid_t
15090      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15091      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15092    /* Convince the compiler that p..p7 are live; otherwise, it might
15093       use the same hardware register for all 8 local variables.  */
15094    if (p != p1 || p != p2 || p != p3 || p != p4
15095	|| p != p5 || p != p6 || p != p7)
15096      _exit(1);
15097
15098    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15099       from child file descriptors.  If the child closes a descriptor
15100       before it execs or exits, this munges the parent's descriptor
15101       as well.  Test for this by closing stdout in the child.  */
15102    _exit(close(fileno(stdout)) != 0);
15103  } else {
15104    int status;
15105    struct stat st;
15106
15107    while (wait(&status) != child)
15108      ;
15109    return (
15110	 /* Was there some problem with vforking?  */
15111	 child < 0
15112
15113	 /* Did the child fail?  (This shouldn't happen.)  */
15114	 || status
15115
15116	 /* Did the vfork/compiler bug occur?  */
15117	 || parent != getpid()
15118
15119	 /* Did the file descriptor bug occur?  */
15120	 || fstat(fileno(stdout), &st) != 0
15121	 );
15122  }
15123}
15124_ACEOF
15125if ac_fn_c_try_run "$LINENO"; then :
15126  ac_cv_func_vfork_works=yes
15127else
15128  ac_cv_func_vfork_works=no
15129fi
15130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15131  conftest.$ac_objext conftest.beam conftest.$ac_ext
15132fi
15133
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15136$as_echo "$ac_cv_func_vfork_works" >&6; }
15137
15138fi;
15139if test "x$ac_cv_func_fork_works" = xcross; then
15140  ac_cv_func_vfork_works=$ac_cv_func_vfork
15141  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15142$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15143fi
15144
15145if test "x$ac_cv_func_vfork_works" = xyes; then
15146
15147$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15148
15149else
15150
15151$as_echo "#define vfork fork" >>confdefs.h
15152
15153fi
15154if test "x$ac_cv_func_fork_works" = xyes; then
15155
15156$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15157
15158fi
15159
15160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15161$as_echo_n "checking return type of signal handlers... " >&6; }
15162if ${ac_cv_type_signal+:} false; then :
15163  $as_echo_n "(cached) " >&6
15164else
15165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h.  */
15167#include <sys/types.h>
15168#include <signal.h>
15169
15170int
15171main ()
15172{
15173return *(signal (0, 0)) (0) == 1;
15174  ;
15175  return 0;
15176}
15177_ACEOF
15178if ac_fn_c_try_compile "$LINENO"; then :
15179  ac_cv_type_signal=int
15180else
15181  ac_cv_type_signal=void
15182fi
15183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184fi
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15186$as_echo "$ac_cv_type_signal" >&6; }
15187
15188cat >>confdefs.h <<_ACEOF
15189#define RETSIGTYPE $ac_cv_type_signal
15190_ACEOF
15191
15192
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15194$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15195if ${ac_cv_sys_largefile_source+:} false; then :
15196  $as_echo_n "(cached) " >&6
15197else
15198  while :; do
15199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200/* end confdefs.h.  */
15201#include <sys/types.h> /* for off_t */
15202     #include <stdio.h>
15203int
15204main ()
15205{
15206int (*fp) (FILE *, off_t, int) = fseeko;
15207     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15208  ;
15209  return 0;
15210}
15211_ACEOF
15212if ac_fn_c_try_link "$LINENO"; then :
15213  ac_cv_sys_largefile_source=no; break
15214fi
15215rm -f core conftest.err conftest.$ac_objext \
15216    conftest$ac_exeext conftest.$ac_ext
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219#define _LARGEFILE_SOURCE 1
15220#include <sys/types.h> /* for off_t */
15221     #include <stdio.h>
15222int
15223main ()
15224{
15225int (*fp) (FILE *, off_t, int) = fseeko;
15226     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15227  ;
15228  return 0;
15229}
15230_ACEOF
15231if ac_fn_c_try_link "$LINENO"; then :
15232  ac_cv_sys_largefile_source=1; break
15233fi
15234rm -f core conftest.err conftest.$ac_objext \
15235    conftest$ac_exeext conftest.$ac_ext
15236  ac_cv_sys_largefile_source=unknown
15237  break
15238done
15239fi
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15241$as_echo "$ac_cv_sys_largefile_source" >&6; }
15242case $ac_cv_sys_largefile_source in #(
15243  no | unknown) ;;
15244  *)
15245cat >>confdefs.h <<_ACEOF
15246#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15247_ACEOF
15248;;
15249esac
15250rm -rf conftest*
15251
15252# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15253# in glibc 2.1.3, but that breaks too many other things.
15254# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15255if test $ac_cv_sys_largefile_source != unknown; then
15256
15257$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15258
15259fi
15260
15261
15262# Check whether --enable-largefile was given.
15263if test "${enable_largefile+set}" = set; then :
15264  enableval=$enable_largefile;
15265fi
15266
15267if test "$enable_largefile" != no; then
15268
15269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15270$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15271if ${ac_cv_sys_largefile_CC+:} false; then :
15272  $as_echo_n "(cached) " >&6
15273else
15274  ac_cv_sys_largefile_CC=no
15275     if test "$GCC" != yes; then
15276       ac_save_CC=$CC
15277       while :; do
15278	 # IRIX 6.2 and later do not support large files by default,
15279	 # so use the C compiler's -n32 option if that helps.
15280	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281/* end confdefs.h.  */
15282#include <sys/types.h>
15283 /* Check that off_t can represent 2**63 - 1 correctly.
15284    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15285    since some C++ compilers masquerading as C compilers
15286    incorrectly reject 9223372036854775807.  */
15287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15288  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15289		       && LARGE_OFF_T % 2147483647 == 1)
15290		      ? 1 : -1];
15291int
15292main ()
15293{
15294
15295  ;
15296  return 0;
15297}
15298_ACEOF
15299	 if ac_fn_c_try_compile "$LINENO"; then :
15300  break
15301fi
15302rm -f core conftest.err conftest.$ac_objext
15303	 CC="$CC -n32"
15304	 if ac_fn_c_try_compile "$LINENO"; then :
15305  ac_cv_sys_largefile_CC=' -n32'; break
15306fi
15307rm -f core conftest.err conftest.$ac_objext
15308	 break
15309       done
15310       CC=$ac_save_CC
15311       rm -f conftest.$ac_ext
15312    fi
15313fi
15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15315$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15316  if test "$ac_cv_sys_largefile_CC" != no; then
15317    CC=$CC$ac_cv_sys_largefile_CC
15318  fi
15319
15320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15321$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15322if ${ac_cv_sys_file_offset_bits+:} false; then :
15323  $as_echo_n "(cached) " >&6
15324else
15325  while :; do
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328#include <sys/types.h>
15329 /* Check that off_t can represent 2**63 - 1 correctly.
15330    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15331    since some C++ compilers masquerading as C compilers
15332    incorrectly reject 9223372036854775807.  */
15333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15334  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15335		       && LARGE_OFF_T % 2147483647 == 1)
15336		      ? 1 : -1];
15337int
15338main ()
15339{
15340
15341  ;
15342  return 0;
15343}
15344_ACEOF
15345if ac_fn_c_try_compile "$LINENO"; then :
15346  ac_cv_sys_file_offset_bits=no; break
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350/* end confdefs.h.  */
15351#define _FILE_OFFSET_BITS 64
15352#include <sys/types.h>
15353 /* Check that off_t can represent 2**63 - 1 correctly.
15354    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15355    since some C++ compilers masquerading as C compilers
15356    incorrectly reject 9223372036854775807.  */
15357#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15358  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15359		       && LARGE_OFF_T % 2147483647 == 1)
15360		      ? 1 : -1];
15361int
15362main ()
15363{
15364
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369if ac_fn_c_try_compile "$LINENO"; then :
15370  ac_cv_sys_file_offset_bits=64; break
15371fi
15372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373  ac_cv_sys_file_offset_bits=unknown
15374  break
15375done
15376fi
15377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15378$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15379case $ac_cv_sys_file_offset_bits in #(
15380  no | unknown) ;;
15381  *)
15382cat >>confdefs.h <<_ACEOF
15383#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15384_ACEOF
15385;;
15386esac
15387rm -rf conftest*
15388  if test $ac_cv_sys_file_offset_bits = unknown; then
15389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15390$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15391if ${ac_cv_sys_large_files+:} false; then :
15392  $as_echo_n "(cached) " >&6
15393else
15394  while :; do
15395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396/* end confdefs.h.  */
15397#include <sys/types.h>
15398 /* Check that off_t can represent 2**63 - 1 correctly.
15399    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15400    since some C++ compilers masquerading as C compilers
15401    incorrectly reject 9223372036854775807.  */
15402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15403  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15404		       && LARGE_OFF_T % 2147483647 == 1)
15405		      ? 1 : -1];
15406int
15407main ()
15408{
15409
15410  ;
15411  return 0;
15412}
15413_ACEOF
15414if ac_fn_c_try_compile "$LINENO"; then :
15415  ac_cv_sys_large_files=no; break
15416fi
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419/* end confdefs.h.  */
15420#define _LARGE_FILES 1
15421#include <sys/types.h>
15422 /* Check that off_t can represent 2**63 - 1 correctly.
15423    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15424    since some C++ compilers masquerading as C compilers
15425    incorrectly reject 9223372036854775807.  */
15426#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15427  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15428		       && LARGE_OFF_T % 2147483647 == 1)
15429		      ? 1 : -1];
15430int
15431main ()
15432{
15433
15434  ;
15435  return 0;
15436}
15437_ACEOF
15438if ac_fn_c_try_compile "$LINENO"; then :
15439  ac_cv_sys_large_files=1; break
15440fi
15441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442  ac_cv_sys_large_files=unknown
15443  break
15444done
15445fi
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15447$as_echo "$ac_cv_sys_large_files" >&6; }
15448case $ac_cv_sys_large_files in #(
15449  no | unknown) ;;
15450  *)
15451cat >>confdefs.h <<_ACEOF
15452#define _LARGE_FILES $ac_cv_sys_large_files
15453_ACEOF
15454;;
15455esac
15456rm -rf conftest*
15457  fi
15458
15459
15460fi
15461
15462
15463
15464
15465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15466$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15467cache=_D_LARGEFILE_SOURCE_1
15468if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15469  $as_echo_n "(cached) " >&6
15470else
15471
15472echo '
15473#include <stdio.h>
15474int test() {
15475        int a = fseeko(stdin, 0, 0);
15476        return a;
15477}
15478' > conftest.c
15479echo 'void f(){}' >>conftest.c
15480if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15481eval "cv_prog_cc_flag_needed_$cache=no"
15482else
15483
15484if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15485eval "cv_prog_cc_flag_needed_$cache=yes"
15486else
15487eval "cv_prog_cc_flag_needed_$cache=fail"
15488#echo 'Test with flag fails too!'
15489#cat conftest.c
15490#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15491#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15492#exit 1
15493fi
15494
15495fi
15496rm -f conftest conftest.c conftest.o
15497
15498fi
15499
15500if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15502$as_echo "yes" >&6; }
15503:
15504CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15505else
15506if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508$as_echo "no" >&6; }
15509#echo 'Test with flag is no!'
15510#cat conftest.c
15511#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15512#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15513#exit 1
15514:
15515
15516else
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15518$as_echo "failed" >&6; }
15519:
15520
15521fi
15522fi
15523
15524
15525
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15527$as_echo_n "checking if nonblocking sockets work... " >&6; }
15528if echo $target | grep mingw32 >/dev/null; then
15529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15530$as_echo "no (windows)" >&6; }
15531
15532$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15533
15534else
15535if test "$cross_compiling" = yes; then :
15536
15537	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15538$as_echo "crosscompile(yes)" >&6; }
15539
15540else
15541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h.  */
15543
15544
15545#include <stdio.h>
15546#include <string.h>
15547#include <stdlib.h>
15548#include <fcntl.h>
15549#include <errno.h>
15550#ifdef HAVE_SYS_TYPES_H
15551#include <sys/types.h>
15552#endif
15553#ifdef HAVE_SYS_SOCKET_H
15554#include <sys/socket.h>
15555#endif
15556#ifdef HAVE_NETINET_IN_H
15557#include <netinet/in.h>
15558#endif
15559#ifdef HAVE_ARPA_INET_H
15560#include <arpa/inet.h>
15561#endif
15562#ifdef HAVE_UNISTD_H
15563#include <unistd.h>
15564#endif
15565#ifdef HAVE_TIME_H
15566#include <time.h>
15567#endif
15568
15569int main(void)
15570{
15571	int port;
15572	int sfd, cfd;
15573	int num = 10;
15574	int i, p;
15575	struct sockaddr_in a;
15576	/* test if select and nonblocking reads work well together */
15577	/* open port.
15578	   fork child to send 10 messages.
15579	   select to read.
15580	   then try to nonblocking read the 10 messages
15581	   then, nonblocking read must give EAGAIN
15582	*/
15583
15584	port = 12345 + (time(0)%32);
15585	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15586	if(sfd == -1) {
15587		perror("socket");
15588		return 1;
15589	}
15590	memset(&a, 0, sizeof(a));
15591	a.sin_family = AF_INET;
15592	a.sin_port = htons(port);
15593	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15594	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15595		perror("bind");
15596		return 1;
15597	}
15598	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15599		perror("fcntl");
15600		return 1;
15601	}
15602
15603	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15604	if(cfd == -1) {
15605		perror("client socket");
15606		return 1;
15607	}
15608	a.sin_port = 0;
15609	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15610		perror("client bind");
15611		return 1;
15612	}
15613	a.sin_port = htons(port);
15614
15615	/* no handler, causes exit in 10 seconds */
15616	alarm(10);
15617
15618	/* send and receive on the socket */
15619	if((p=fork()) == 0) {
15620		for(i=0; i<num; i++) {
15621			if(sendto(cfd, &i, sizeof(i), 0,
15622				(struct sockaddr*)&a, sizeof(a)) < 0) {
15623				perror("sendto");
15624				return 1;
15625			}
15626		}
15627	} else {
15628		/* parent */
15629		fd_set rset;
15630		int x;
15631		if(p == -1) {
15632			perror("fork");
15633			return 1;
15634		}
15635		FD_ZERO(&rset);
15636		FD_SET(sfd, &rset);
15637		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15638			perror("select");
15639			return 1;
15640		}
15641		i = 0;
15642		while(i < num) {
15643			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15644				if(errno == EAGAIN)
15645					continue;
15646				perror("recv");
15647				return 1;
15648			}
15649			i++;
15650		}
15651		/* now we want to get EAGAIN: nonblocking goodness */
15652		errno = 0;
15653		recv(sfd, &x, sizeof(x), 0);
15654		if(errno != EAGAIN) {
15655			perror("trying to recv again");
15656			return 1;
15657		}
15658		/* EAGAIN encountered */
15659	}
15660
15661	close(sfd);
15662	close(cfd);
15663	return 0;
15664}
15665
15666_ACEOF
15667if ac_fn_c_try_run "$LINENO"; then :
15668
15669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670$as_echo "yes" >&6; }
15671
15672else
15673
15674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675$as_echo "no" >&6; }
15676
15677$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15678
15679
15680fi
15681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15682  conftest.$ac_objext conftest.beam conftest.$ac_ext
15683fi
15684
15685fi
15686
15687
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15689$as_echo_n "checking whether mkdir has one arg... " >&6; }
15690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691/* end confdefs.h.  */
15692
15693#include <stdio.h>
15694#include <unistd.h>
15695#ifdef HAVE_WINSOCK2_H
15696#include <winsock2.h>
15697#endif
15698#ifdef HAVE_SYS_STAT_H
15699#include <sys/stat.h>
15700#endif
15701
15702int
15703main ()
15704{
15705
15706	(void)mkdir("directory");
15707
15708  ;
15709  return 0;
15710}
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"; then :
15713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15714$as_echo "yes" >&6; }
15715
15716$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15717
15718
15719else
15720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721$as_echo "no" >&6; }
15722
15723fi
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725
15726for ac_func in strptime
15727do :
15728  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15729if test "x$ac_cv_func_strptime" = xyes; then :
15730  cat >>confdefs.h <<_ACEOF
15731#define HAVE_STRPTIME 1
15732_ACEOF
15733
15734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15735$as_echo_n "checking whether strptime works... " >&6; }
15736if test c${cross_compiling} = cno; then
15737if test "$cross_compiling" = yes; then :
15738  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15740as_fn_error $? "cannot run test program while cross compiling
15741See \`config.log' for more details" "$LINENO" 5; }
15742else
15743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744/* end confdefs.h.  */
15745
15746#define _XOPEN_SOURCE 600
15747#include <time.h>
15748int main(void) { struct tm tm; char *res;
15749res = 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);
15750if (!res) return 2;
15751res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15752if (!res) return 1; return 0; }
15753
15754_ACEOF
15755if ac_fn_c_try_run "$LINENO"; then :
15756  eval "ac_cv_c_strptime_works=yes"
15757else
15758  eval "ac_cv_c_strptime_works=no"
15759fi
15760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15761  conftest.$ac_objext conftest.beam conftest.$ac_ext
15762fi
15763
15764else
15765eval "ac_cv_c_strptime_works=maybe"
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15768$as_echo "$ac_cv_c_strptime_works" >&6; }
15769if test $ac_cv_c_strptime_works = no; then
15770case " $LIBOBJS " in
15771  *" strptime.$ac_objext "* ) ;;
15772  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15773 ;;
15774esac
15775
15776else
15777
15778cat >>confdefs.h <<_ACEOF
15779#define STRPTIME_WORKS 1
15780_ACEOF
15781
15782fi
15783
15784else
15785  case " $LIBOBJS " in
15786  *" strptime.$ac_objext "* ) ;;
15787  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15788 ;;
15789esac
15790
15791fi
15792done
15793
15794
15795# set memory allocation checking if requested
15796# Check whether --enable-alloc-checks was given.
15797if test "${enable_alloc_checks+set}" = set; then :
15798  enableval=$enable_alloc_checks;
15799fi
15800
15801# Check whether --enable-alloc-lite was given.
15802if test "${enable_alloc_lite+set}" = set; then :
15803  enableval=$enable_alloc_lite;
15804fi
15805
15806# Check whether --enable-alloc-nonregional was given.
15807if test "${enable_alloc_nonregional+set}" = set; then :
15808  enableval=$enable_alloc_nonregional;
15809fi
15810
15811if test x_$enable_alloc_nonregional = x_yes; then
15812
15813$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15814
15815fi
15816if test x_$enable_alloc_checks = x_yes; then
15817
15818$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15819
15820else
15821	if test x_$enable_alloc_lite = x_yes; then
15822
15823$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15824
15825	else
15826
15827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15828$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15829	if test "$cross_compiling" = yes; then :
15830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15831$as_echo "no (crosscompile)" >&6; }
15832	case " $LIBOBJS " in
15833  *" malloc.$ac_objext "* ) ;;
15834  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15835 ;;
15836esac
15837
15838
15839cat >>confdefs.h <<_ACEOF
15840#define malloc rpl_malloc_unbound
15841_ACEOF
15842
15843else
15844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845/* end confdefs.h.  */
15846#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15847#include <stdlib.h>
15848#else
15849char *malloc ();
15850#endif
15851
15852int
15853main ()
15854{
15855 if(malloc(0) != 0) return 1;
15856  ;
15857  return 0;
15858}
15859
15860_ACEOF
15861if ac_fn_c_try_run "$LINENO"; then :
15862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863$as_echo "no" >&6; }
15864	case " $LIBOBJS " in
15865  *" malloc.$ac_objext "* ) ;;
15866  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15867 ;;
15868esac
15869
15870
15871cat >>confdefs.h <<_ACEOF
15872#define malloc rpl_malloc_unbound
15873_ACEOF
15874
15875else
15876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15877$as_echo "yes" >&6; }
15878
15879$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15880
15881fi
15882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15883  conftest.$ac_objext conftest.beam conftest.$ac_ext
15884fi
15885
15886
15887	fi
15888fi
15889
15890# check windows threads (we use them, not pthreads, on windows).
15891if test "$on_mingw" = "yes"; then
15892# check windows threads
15893	for ac_header in windows.h
15894do :
15895  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15896"
15897if test "x$ac_cv_header_windows_h" = xyes; then :
15898  cat >>confdefs.h <<_ACEOF
15899#define HAVE_WINDOWS_H 1
15900_ACEOF
15901
15902fi
15903
15904done
15905
15906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15907$as_echo_n "checking for CreateThread... " >&6; }
15908	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909/* end confdefs.h.  */
15910
15911#ifdef HAVE_WINDOWS_H
15912#include <windows.h>
15913#endif
15914
15915int
15916main ()
15917{
15918
15919	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15920
15921  ;
15922  return 0;
15923}
15924_ACEOF
15925if ac_fn_c_try_compile "$LINENO"; then :
15926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927$as_echo "yes" >&6; }
15928
15929$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15930
15931
15932else
15933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15934$as_echo "no" >&6; }
15935
15936fi
15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938
15939else
15940# not on mingw, check thread libraries.
15941
15942# check for thread library.
15943# check this first, so that the pthread lib does not get linked in via
15944# libssl or libpython, and thus distorts the tests, and we end up using
15945# the non-threadsafe C libraries.
15946
15947# Check whether --with-pthreads was given.
15948if test "${with_pthreads+set}" = set; then :
15949  withval=$with_pthreads;
15950else
15951   withval="yes"
15952fi
15953
15954ub_have_pthreads=no
15955if test x_$withval != x_no; then
15956
15957
15958ac_ext=c
15959ac_cpp='$CPP $CPPFLAGS'
15960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963
15964ax_pthread_ok=no
15965
15966# We used to check for pthread.h first, but this fails if pthread.h
15967# requires special compiler flags (e.g. on True64 or Sequent).
15968# It gets checked for in the link test anyway.
15969
15970# First of all, check if the user has set any of the PTHREAD_LIBS,
15971# etcetera environment variables, and if threads linking works using
15972# them:
15973if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15974        save_CFLAGS="$CFLAGS"
15975        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15976        save_LIBS="$LIBS"
15977        LIBS="$PTHREAD_LIBS $LIBS"
15978        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15979$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982
15983/* Override any GCC internal prototype to avoid an error.
15984   Use char because int might match the return type of a GCC
15985   builtin and then its argument prototype would still apply.  */
15986#ifdef __cplusplus
15987extern "C"
15988#endif
15989char pthread_join ();
15990int
15991main ()
15992{
15993return pthread_join ();
15994  ;
15995  return 0;
15996}
15997_ACEOF
15998if ac_fn_c_try_link "$LINENO"; then :
15999  ax_pthread_ok=yes
16000fi
16001rm -f core conftest.err conftest.$ac_objext \
16002    conftest$ac_exeext conftest.$ac_ext
16003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16004$as_echo "$ax_pthread_ok" >&6; }
16005        if test x"$ax_pthread_ok" = xno; then
16006                PTHREAD_LIBS=""
16007                PTHREAD_CFLAGS=""
16008        fi
16009        LIBS="$save_LIBS"
16010        CFLAGS="$save_CFLAGS"
16011fi
16012
16013# We must check for the threads library under a number of different
16014# names; the ordering is very important because some systems
16015# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16016# libraries is broken (non-POSIX).
16017
16018# Create a list of thread flags to try.  Items starting with a "-" are
16019# C compiler flags, and other items are library names, except for "none"
16020# which indicates that we try without any flags at all, and "pthread-config"
16021# which is a program returning the flags for the Pth emulation library.
16022
16023ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16024
16025# The ordering *is* (sometimes) important.  Some notes on the
16026# individual items follow:
16027
16028# pthreads: AIX (must check this before -lpthread)
16029# none: in case threads are in libc; should be tried before -Kthread and
16030#       other compiler flags to prevent continual compiler warnings
16031# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16032# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16033# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16034# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16035# -pthreads: Solaris/gcc
16036# -mthreads: Mingw32/gcc, Lynx/gcc
16037# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16038#      doesn't hurt to check since this sometimes defines pthreads too;
16039#      also defines -D_REENTRANT)
16040#      ... -mt is also the pthreads flag for HP/aCC
16041# pthread: Linux, etcetera
16042# --thread-safe: KAI C++
16043# pthread-config: use pthread-config program (for GNU Pth library)
16044
16045case ${host_os} in
16046        solaris*)
16047
16048        # On Solaris (at least, for some versions), libc contains stubbed
16049        # (non-functional) versions of the pthreads routines, so link-based
16050        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16051        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16052        # a function called by this macro, so we could check for that, but
16053        # who knows whether they'll stub that too in a future libc.)  So,
16054        # we'll just look for -pthreads and -lpthread first:
16055
16056        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16057        ;;
16058
16059        darwin*)
16060        ax_pthread_flags="-pthread $ax_pthread_flags"
16061        ;;
16062esac
16063
16064# Clang doesn't consider unrecognized options an error unless we specify
16065# -Werror. We throw in some extra Clang-specific options to ensure that
16066# this doesn't happen for GCC, which also accepts -Werror.
16067
16068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16069$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16070save_CFLAGS="$CFLAGS"
16071ax_pthread_extra_flags="-Werror"
16072CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074/* end confdefs.h.  */
16075int foo(void);
16076int
16077main ()
16078{
16079foo()
16080  ;
16081  return 0;
16082}
16083_ACEOF
16084if ac_fn_c_try_compile "$LINENO"; then :
16085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16086$as_echo "yes" >&6; }
16087else
16088  ax_pthread_extra_flags=
16089                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090$as_echo "no" >&6; }
16091fi
16092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093CFLAGS="$save_CFLAGS"
16094
16095if test x"$ax_pthread_ok" = xno; then
16096for flag in $ax_pthread_flags; do
16097
16098        case $flag in
16099                none)
16100                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16101$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16102                ;;
16103
16104                -*)
16105                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16106$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16107                PTHREAD_CFLAGS="$flag"
16108                ;;
16109
16110                pthread-config)
16111                # Extract the first word of "pthread-config", so it can be a program name with args.
16112set dummy pthread-config; ac_word=$2
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114$as_echo_n "checking for $ac_word... " >&6; }
16115if ${ac_cv_prog_ax_pthread_config+:} false; then :
16116  $as_echo_n "(cached) " >&6
16117else
16118  if test -n "$ax_pthread_config"; then
16119  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16120else
16121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122for as_dir in $PATH
16123do
16124  IFS=$as_save_IFS
16125  test -z "$as_dir" && as_dir=.
16126    for ac_exec_ext in '' $ac_executable_extensions; do
16127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16128    ac_cv_prog_ax_pthread_config="yes"
16129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16130    break 2
16131  fi
16132done
16133  done
16134IFS=$as_save_IFS
16135
16136  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16137fi
16138fi
16139ax_pthread_config=$ac_cv_prog_ax_pthread_config
16140if test -n "$ax_pthread_config"; then
16141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16142$as_echo "$ax_pthread_config" >&6; }
16143else
16144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145$as_echo "no" >&6; }
16146fi
16147
16148
16149                if test x"$ax_pthread_config" = xno; then continue; fi
16150                PTHREAD_CFLAGS="`pthread-config --cflags`"
16151                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16152                ;;
16153
16154                *)
16155                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16156$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16157                PTHREAD_LIBS="-l$flag"
16158                ;;
16159        esac
16160
16161        save_LIBS="$LIBS"
16162        save_CFLAGS="$CFLAGS"
16163        LIBS="$PTHREAD_LIBS $LIBS"
16164        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16165
16166        # Check for various functions.  We must include pthread.h,
16167        # since some functions may be macros.  (On the Sequent, we
16168        # need a special flag -Kthread to make this header compile.)
16169        # We check for pthread_join because it is in -lpthread on IRIX
16170        # while pthread_create is in libc.  We check for pthread_attr_init
16171        # due to DEC craziness with -lpthreads.  We check for
16172        # pthread_cleanup_push because it is one of the few pthread
16173        # functions on Solaris that doesn't have a non-functional libc stub.
16174        # We try pthread_create on general principles.
16175        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177#include <pthread.h>
16178                        static void routine(void *a) { *((int*)a) = 0; }
16179                        static void *start_routine(void *a) { return a; }
16180int
16181main ()
16182{
16183pthread_t th; pthread_attr_t attr;
16184                        pthread_create(&th, 0, start_routine, 0);
16185                        pthread_join(th, 0);
16186                        pthread_attr_init(&attr);
16187                        pthread_cleanup_push(routine, 0);
16188                        pthread_cleanup_pop(0) /* ; */
16189  ;
16190  return 0;
16191}
16192_ACEOF
16193if ac_fn_c_try_link "$LINENO"; then :
16194  ax_pthread_ok=yes
16195fi
16196rm -f core conftest.err conftest.$ac_objext \
16197    conftest$ac_exeext conftest.$ac_ext
16198
16199        LIBS="$save_LIBS"
16200        CFLAGS="$save_CFLAGS"
16201
16202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16203$as_echo "$ax_pthread_ok" >&6; }
16204        if test "x$ax_pthread_ok" = xyes; then
16205                break;
16206        fi
16207
16208        PTHREAD_LIBS=""
16209        PTHREAD_CFLAGS=""
16210done
16211fi
16212
16213# Various other checks:
16214if test "x$ax_pthread_ok" = xyes; then
16215        save_LIBS="$LIBS"
16216        LIBS="$PTHREAD_LIBS $LIBS"
16217        save_CFLAGS="$CFLAGS"
16218        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16219
16220        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16221        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16222$as_echo_n "checking for joinable pthread attribute... " >&6; }
16223        attr_name=unknown
16224        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16225            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226/* end confdefs.h.  */
16227#include <pthread.h>
16228int
16229main ()
16230{
16231int attr = $attr; return attr /* ; */
16232  ;
16233  return 0;
16234}
16235_ACEOF
16236if ac_fn_c_try_link "$LINENO"; then :
16237  attr_name=$attr; break
16238fi
16239rm -f core conftest.err conftest.$ac_objext \
16240    conftest$ac_exeext conftest.$ac_ext
16241        done
16242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16243$as_echo "$attr_name" >&6; }
16244        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16245
16246cat >>confdefs.h <<_ACEOF
16247#define PTHREAD_CREATE_JOINABLE $attr_name
16248_ACEOF
16249
16250        fi
16251
16252        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16253$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16254        flag=no
16255        case ${host_os} in
16256            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16257            osf* | hpux*) flag="-D_REENTRANT";;
16258            solaris*)
16259            if test "$GCC" = "yes"; then
16260                flag="-D_REENTRANT"
16261            else
16262                # TODO: What about Clang on Solaris?
16263                flag="-mt -D_REENTRANT"
16264            fi
16265            ;;
16266        esac
16267        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16268$as_echo "$flag" >&6; }
16269        if test "x$flag" != xno; then
16270            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16271        fi
16272
16273        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16274$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16275if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16276  $as_echo_n "(cached) " >&6
16277else
16278
16279                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281#include <pthread.h>
16282int
16283main ()
16284{
16285int i = PTHREAD_PRIO_INHERIT;
16286  ;
16287  return 0;
16288}
16289_ACEOF
16290if ac_fn_c_try_link "$LINENO"; then :
16291  ax_cv_PTHREAD_PRIO_INHERIT=yes
16292else
16293  ax_cv_PTHREAD_PRIO_INHERIT=no
16294fi
16295rm -f core conftest.err conftest.$ac_objext \
16296    conftest$ac_exeext conftest.$ac_ext
16297
16298fi
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16300$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16301        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16302
16303$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16304
16305fi
16306
16307        LIBS="$save_LIBS"
16308        CFLAGS="$save_CFLAGS"
16309
16310        # More AIX lossage: compile with *_r variant
16311        if test "x$GCC" != xyes; then
16312            case $host_os in
16313                aix*)
16314                case "x/$CC" in #(
16315  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16316    #handle absolute path differently from PATH based program lookup
16317                   case "x$CC" in #(
16318  x/*) :
16319    if as_fn_executable_p ${CC}_r; then :
16320  PTHREAD_CC="${CC}_r"
16321fi ;; #(
16322  *) :
16323    for ac_prog in ${CC}_r
16324do
16325  # Extract the first word of "$ac_prog", so it can be a program name with args.
16326set dummy $ac_prog; ac_word=$2
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16328$as_echo_n "checking for $ac_word... " >&6; }
16329if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16330  $as_echo_n "(cached) " >&6
16331else
16332  if test -n "$PTHREAD_CC"; then
16333  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16334else
16335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16336for as_dir in $PATH
16337do
16338  IFS=$as_save_IFS
16339  test -z "$as_dir" && as_dir=.
16340    for ac_exec_ext in '' $ac_executable_extensions; do
16341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16342    ac_cv_prog_PTHREAD_CC="$ac_prog"
16343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16344    break 2
16345  fi
16346done
16347  done
16348IFS=$as_save_IFS
16349
16350fi
16351fi
16352PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16353if test -n "$PTHREAD_CC"; then
16354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16355$as_echo "$PTHREAD_CC" >&6; }
16356else
16357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359fi
16360
16361
16362  test -n "$PTHREAD_CC" && break
16363done
16364test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16365 ;;
16366esac ;; #(
16367  *) :
16368     ;;
16369esac
16370                ;;
16371            esac
16372        fi
16373fi
16374
16375test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16376
16377
16378
16379
16380
16381# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16382if test x"$ax_pthread_ok" = xyes; then
16383
16384
16385$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16386
16387		LIBS="$PTHREAD_LIBS $LIBS"
16388		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16389		CC="$PTHREAD_CC"
16390		ub_have_pthreads=yes
16391		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16392"
16393if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16394
16395cat >>confdefs.h <<_ACEOF
16396#define HAVE_PTHREAD_SPINLOCK_T 1
16397_ACEOF
16398
16399
16400fi
16401ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16402"
16403if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16404
16405cat >>confdefs.h <<_ACEOF
16406#define HAVE_PTHREAD_RWLOCK_T 1
16407_ACEOF
16408
16409
16410fi
16411
16412
16413		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16415$as_echo_n "checking if -pthread unused during linking... " >&6; }
16416		# catch clang warning 'argument unused during compilation'
16417		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h.  */
16419$ac_includes_default
16420
16421int main(void) {return 0;}
16422
16423_ACEOF
16424		pthread_unused="yes"
16425		# first compile
16426		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16427		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16428		if test $? = 0; then
16429			# then link
16430			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16431			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16432			if test $? -ne 0; then
16433				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434$as_echo "yes" >&6; }
16435				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16436				PTHREAD_CFLAGS_ONLY="-pthread"
16437
16438			else
16439				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440$as_echo "no" >&6; }
16441			fi
16442		else
16443			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
16445		fi # endif cc successful
16446		rm -f conftest conftest.c conftest.o
16447		fi # endif -pthread in CFLAGS
16448
16449
16450        :
16451else
16452        ax_pthread_ok=no
16453
16454fi
16455ac_ext=c
16456ac_cpp='$CPP $CPPFLAGS'
16457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16459ac_compiler_gnu=$ac_cv_c_compiler_gnu
16460
16461
16462fi
16463
16464# check solaris thread library
16465
16466# Check whether --with-solaris-threads was given.
16467if test "${with_solaris_threads+set}" = set; then :
16468  withval=$with_solaris_threads;
16469else
16470   withval="no"
16471fi
16472
16473ub_have_sol_threads=no
16474if test x_$withval != x_no; then
16475	if test x_$ub_have_pthreads != x_no; then
16476	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16477$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16478	else
16479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16480$as_echo_n "checking for library containing thr_create... " >&6; }
16481if ${ac_cv_search_thr_create+:} false; then :
16482  $as_echo_n "(cached) " >&6
16483else
16484  ac_func_search_save_LIBS=$LIBS
16485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h.  */
16487
16488/* Override any GCC internal prototype to avoid an error.
16489   Use char because int might match the return type of a GCC
16490   builtin and then its argument prototype would still apply.  */
16491#ifdef __cplusplus
16492extern "C"
16493#endif
16494char thr_create ();
16495int
16496main ()
16497{
16498return thr_create ();
16499  ;
16500  return 0;
16501}
16502_ACEOF
16503for ac_lib in '' thread; do
16504  if test -z "$ac_lib"; then
16505    ac_res="none required"
16506  else
16507    ac_res=-l$ac_lib
16508    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16509  fi
16510  if ac_fn_c_try_link "$LINENO"; then :
16511  ac_cv_search_thr_create=$ac_res
16512fi
16513rm -f core conftest.err conftest.$ac_objext \
16514    conftest$ac_exeext
16515  if ${ac_cv_search_thr_create+:} false; then :
16516  break
16517fi
16518done
16519if ${ac_cv_search_thr_create+:} false; then :
16520
16521else
16522  ac_cv_search_thr_create=no
16523fi
16524rm conftest.$ac_ext
16525LIBS=$ac_func_search_save_LIBS
16526fi
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16528$as_echo "$ac_cv_search_thr_create" >&6; }
16529ac_res=$ac_cv_search_thr_create
16530if test "$ac_res" != no; then :
16531  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16532
16533
16534$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16535
16536
16537
16538
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16540$as_echo_n "checking whether $CC supports -mt... " >&6; }
16541cache=`echo mt | sed 'y%.=/+-%___p_%'`
16542if eval \${cv_prog_cc_flag_$cache+:} false; then :
16543  $as_echo_n "(cached) " >&6
16544else
16545
16546echo 'void f(void){}' >conftest.c
16547if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16548eval "cv_prog_cc_flag_$cache=yes"
16549else
16550eval "cv_prog_cc_flag_$cache=no"
16551fi
16552rm -f conftest conftest.o conftest.c
16553
16554fi
16555
16556if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16558$as_echo "yes" >&6; }
16559:
16560CFLAGS="$CFLAGS -mt"
16561else
16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563$as_echo "no" >&6; }
16564:
16565CFLAGS="$CFLAGS -D_REENTRANT"
16566fi
16567
16568		ub_have_sol_threads=yes
16569
16570else
16571
16572		as_fn_error $? "no solaris threads found." "$LINENO" 5
16573
16574fi
16575
16576	fi
16577fi
16578
16579fi # end of non-mingw check of thread libraries
16580
16581# Check for PyUnbound
16582
16583# Check whether --with-pyunbound was given.
16584if test "${with_pyunbound+set}" = set; then :
16585  withval=$with_pyunbound;
16586else
16587   withval="no"
16588fi
16589
16590
16591ub_test_python=no
16592ub_with_pyunbound=no
16593if test x_$withval != x_no; then
16594   ub_with_pyunbound=yes
16595   ub_test_python=yes
16596fi
16597
16598# Check for Python module
16599
16600# Check whether --with-pythonmodule was given.
16601if test "${with_pythonmodule+set}" = set; then :
16602  withval=$with_pythonmodule;
16603else
16604   withval="no"
16605fi
16606
16607
16608ub_with_pythonmod=no
16609if test x_$withval != x_no; then
16610   ub_with_pythonmod=yes
16611   ub_test_python=yes
16612fi
16613
16614# Check for Python & SWIG only on PyUnbound or PyModule
16615if test x_$ub_test_python != x_no; then
16616
16617   # Check for Python
16618   ub_have_python=no
16619   ac_save_LIBS="$LIBS"
16620        #
16621        # Allow the use of a (user set) custom python version
16622        #
16623
16624
16625        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16626set dummy python$PYTHON_VERSION; ac_word=$2
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16628$as_echo_n "checking for $ac_word... " >&6; }
16629if ${ac_cv_path_PYTHON+:} false; then :
16630  $as_echo_n "(cached) " >&6
16631else
16632  case $PYTHON in
16633  [\\/]* | ?:[\\/]*)
16634  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16635  ;;
16636  *)
16637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638for as_dir in $PATH
16639do
16640  IFS=$as_save_IFS
16641  test -z "$as_dir" && as_dir=.
16642    for ac_exec_ext in '' $ac_executable_extensions; do
16643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16646    break 2
16647  fi
16648done
16649  done
16650IFS=$as_save_IFS
16651
16652  ;;
16653esac
16654fi
16655PYTHON=$ac_cv_path_PYTHON
16656if test -n "$PYTHON"; then
16657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16658$as_echo "$PYTHON" >&6; }
16659else
16660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661$as_echo "no" >&6; }
16662fi
16663
16664
16665        if test -z "$PYTHON"; then
16666           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16667           PYTHON_VERSION=""
16668        fi
16669
16670        if test -z "$PYTHON_VERSION"; then
16671		PYTHON_VERSION=`$PYTHON -c "import sys; \
16672			print(sys.version.split()[0])"`
16673	fi
16674
16675        #
16676        # Check if you have distutils, else fail
16677        #
16678        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16679$as_echo_n "checking for the distutils Python package... " >&6; }
16680        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16681        if test -z "$ac_distutils_result"; then
16682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683$as_echo "yes" >&6; }
16684        else
16685                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686$as_echo "no" >&6; }
16687                as_fn_error $? "cannot import Python module \"distutils\".
16688Please check your Python installation. The error was:
16689$ac_distutils_result" "$LINENO" 5
16690                PYTHON_VERSION=""
16691        fi
16692
16693        #
16694        # Check for Python include path
16695        #
16696        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16697$as_echo_n "checking for Python include path... " >&6; }
16698        if test -z "$PYTHON_CPPFLAGS"; then
16699                python_path=`$PYTHON -c "import distutils.sysconfig; \
16700                        print(distutils.sysconfig.get_python_inc());"`
16701                if test -n "${python_path}"; then
16702                        python_path="-I$python_path"
16703                fi
16704                PYTHON_CPPFLAGS=$python_path
16705        fi
16706        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16707$as_echo "$PYTHON_CPPFLAGS" >&6; }
16708
16709
16710        #
16711        # Check for Python library path
16712        #
16713        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16714$as_echo_n "checking for Python library path... " >&6; }
16715        if test -z "$PYTHON_LDFLAGS"; then
16716                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16717                        print(get_config_var('BLDLIBRARY'));"`
16718        fi
16719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16720$as_echo "$PYTHON_LDFLAGS" >&6; }
16721
16722
16723        #
16724        # Check for site packages
16725        #
16726        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16727$as_echo_n "checking for Python site-packages path... " >&6; }
16728        if test -z "$PYTHON_SITE_PKG"; then
16729                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16730                        print(distutils.sysconfig.get_python_lib(1,0));"`
16731        fi
16732        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16733$as_echo "$PYTHON_SITE_PKG" >&6; }
16734
16735
16736        #
16737        # final check to see if everything compiles alright
16738        #
16739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16740$as_echo_n "checking consistency of all components of python development environment... " >&6; }
16741        ac_ext=c
16742ac_cpp='$CPP $CPPFLAGS'
16743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745ac_compiler_gnu=$ac_cv_c_compiler_gnu
16746
16747        # save current global flags
16748        ac_save_LIBS="$LIBS"
16749        ac_save_CPPFLAGS="$CPPFLAGS"
16750
16751        LIBS="$LIBS $PYTHON_LDFLAGS"
16752        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16753        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754/* end confdefs.h.  */
16755
16756                #include <Python.h>
16757
16758int
16759main ()
16760{
16761
16762                Py_Initialize();
16763
16764  ;
16765  return 0;
16766}
16767_ACEOF
16768if ac_fn_c_try_link "$LINENO"; then :
16769  pythonexists=yes
16770else
16771  pythonexists=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext \
16774    conftest$ac_exeext conftest.$ac_ext
16775
16776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16777$as_echo "$pythonexists" >&6; }
16778
16779        if test ! "$pythonexists" = "yes"; then
16780           as_fn_error $? "
16781  Could not link test program to Python. Maybe the main Python library has been
16782  installed in some non-standard library path. If so, pass it to configure,
16783  via the LDFLAGS environment variable.
16784  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16785  ============================================================================
16786   ERROR!
16787   You probably have to install the development version of the Python package
16788   for your distribution.  The exact name of this package varies among them.
16789  ============================================================================
16790           " "$LINENO" 5
16791          PYTHON_VERSION=""
16792        fi
16793        ac_ext=c
16794ac_cpp='$CPP $CPPFLAGS'
16795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16797ac_compiler_gnu=$ac_cv_c_compiler_gnu
16798
16799        # turn back to default flags
16800        CPPFLAGS="$ac_save_CPPFLAGS"
16801        LIBS="$ac_save_LIBS"
16802
16803        #
16804        # all done!
16805        #
16806
16807   if test ! -z "$PYTHON_VERSION"; then
16808	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16809		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16810	fi
16811
16812      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16813
16814      # Have Python
16815
16816$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16817
16818      LIBS="$PYTHON_LDFLAGS $LIBS"
16819      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16820      ub_have_python=yes
16821
16822      # Check for SWIG
16823      ub_have_swig=no
16824
16825        # Extract the first word of "swig", so it can be a program name with args.
16826set dummy swig; ac_word=$2
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16828$as_echo_n "checking for $ac_word... " >&6; }
16829if ${ac_cv_path_SWIG+:} false; then :
16830  $as_echo_n "(cached) " >&6
16831else
16832  case $SWIG in
16833  [\\/]* | ?:[\\/]*)
16834  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16835  ;;
16836  *)
16837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838for as_dir in $PATH
16839do
16840  IFS=$as_save_IFS
16841  test -z "$as_dir" && as_dir=.
16842    for ac_exec_ext in '' $ac_executable_extensions; do
16843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16846    break 2
16847  fi
16848done
16849  done
16850IFS=$as_save_IFS
16851
16852  ;;
16853esac
16854fi
16855SWIG=$ac_cv_path_SWIG
16856if test -n "$SWIG"; then
16857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16858$as_echo "$SWIG" >&6; }
16859else
16860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861$as_echo "no" >&6; }
16862fi
16863
16864
16865        if test -z "$SWIG" ; then
16866                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16867$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16868                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16869        elif test -n "" ; then
16870                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16871$as_echo_n "checking for SWIG version... " >&6; }
16872                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'`
16873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16874$as_echo "$swig_version" >&6; }
16875                if test -n "$swig_version" ; then
16876                        # Calculate the required version number components
16877                        required=
16878                        required_major=`echo $required | sed 's/[^0-9].*//'`
16879                        if test -z "$required_major" ; then
16880                                required_major=0
16881                        fi
16882                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16883                        required_minor=`echo $required | sed 's/[^0-9].*//'`
16884                        if test -z "$required_minor" ; then
16885                                required_minor=0
16886                        fi
16887                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16888                        required_patch=`echo $required | sed 's/[^0-9].*//'`
16889                        if test -z "$required_patch" ; then
16890                                required_patch=0
16891                        fi
16892                        # Calculate the available version number components
16893                        available=$swig_version
16894                        available_major=`echo $available | sed 's/[^0-9].*//'`
16895                        if test -z "$available_major" ; then
16896                                available_major=0
16897                        fi
16898                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16899                        available_minor=`echo $available | sed 's/[^0-9].*//'`
16900                        if test -z "$available_minor" ; then
16901                                available_minor=0
16902                        fi
16903                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16904                        available_patch=`echo $available | sed 's/[^0-9].*//'`
16905                        if test -z "$available_patch" ; then
16906                                available_patch=0
16907                        fi
16908                        if test $available_major -ne $required_major \
16909                                -o $available_minor -ne $required_minor \
16910                                -o $available_patch -lt $required_patch ; then
16911                                { $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
16912$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
16913                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
16914                        else
16915                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16916$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16917                                SWIG_LIB=`$SWIG -swiglib`
16918                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16919$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16920                        fi
16921                else
16922                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16923$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16924                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16925                fi
16926        fi
16927
16928
16929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16930$as_echo_n "checking SWIG... " >&6; }
16931      if test ! -x "$SWIG"; then
16932         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16933      else
16934
16935$as_echo "#define HAVE_SWIG 1" >>confdefs.h
16936
16937         swig="$SWIG"
16938
16939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16940$as_echo "present" >&6; }
16941
16942         # If have Python & SWIG
16943         # Declare PythonMod
16944         if test x_$ub_with_pythonmod != x_no; then
16945
16946$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16947
16948            WITH_PYTHONMODULE=yes
16949
16950	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16951
16952	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16953
16954	    PYTHONMOD_INSTALL=pythonmod-install
16955
16956	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
16957
16958         fi
16959
16960         # Declare PyUnbound
16961         if test x_$ub_with_pyunbound != x_no; then
16962
16963$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16964
16965            WITH_PYUNBOUND=yes
16966
16967	    PYUNBOUND_OBJ="libunbound_wrap.lo"
16968
16969	    PYUNBOUND_TARGET="_unbound.la"
16970
16971	    PYUNBOUND_INSTALL=pyunbound-install
16972
16973	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
16974
16975         fi
16976      fi
16977   else
16978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16979$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16980      ub_with_pyunbound=no
16981      ub_with_pythonmod=no
16982   fi
16983fi
16984
16985if test "`uname`" = "NetBSD"; then
16986	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16987
16988fi
16989CONFIG_DATE=`date +%Y%m%d`
16990
16991
16992# Checks for libraries.
16993
16994# libnss
16995USE_NSS="no"
16996
16997# Check whether --with-nss was given.
16998if test "${with_nss+set}" = set; then :
16999  withval=$with_nss;
17000	USE_NSS="yes"
17001
17002$as_echo "#define HAVE_NSS 1" >>confdefs.h
17003
17004	if test "$withval" != "" -a "$withval" != "yes"; then
17005		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17006		LDFLAGS="$LDFLAGS -L$withval/lib"
17007
17008	if test "x$enable_rpath" = xyes; then
17009		if echo "$withval/lib" | grep "^/" >/dev/null; then
17010			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17011		fi
17012	fi
17013
17014		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17015	else
17016		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17017		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17018	fi
17019        LIBS="$LIBS -lnss3 -lnspr4"
17020	SSLLIB=""
17021
17022
17023fi
17024
17025
17026# libnettle
17027USE_NETTLE="no"
17028
17029# Check whether --with-nettle was given.
17030if test "${with_nettle+set}" = set; then :
17031  withval=$with_nettle;
17032	USE_NETTLE="yes"
17033
17034$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17035
17036	if test "$withval" != "" -a "$withval" != "yes"; then
17037		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17038		LDFLAGS="$LDFLAGS -L$withval/lib"
17039
17040	if test "x$enable_rpath" = xyes; then
17041		if echo "$withval/lib" | grep "^/" >/dev/null; then
17042			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17043		fi
17044	fi
17045
17046	else
17047		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17048	fi
17049        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17050	SSLLIB=""
17051
17052
17053fi
17054
17055
17056# openssl
17057if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17058
17059
17060# Check whether --with-ssl was given.
17061if test "${with_ssl+set}" = set; then :
17062  withval=$with_ssl;
17063
17064else
17065
17066            withval="yes"
17067
17068fi
17069
17070    if test x_$withval = x_no; then
17071	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17072    fi
17073
17074    withval=$withval
17075    if test x_$withval != x_no; then
17076        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17077$as_echo_n "checking for SSL... " >&6; }
17078        if test x_$withval = x_ -o x_$withval = x_yes; then
17079            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17080        fi
17081        for dir in $withval; do
17082            ssldir="$dir"
17083            if test -f "$dir/include/openssl/ssl.h"; then
17084                found_ssl="yes"
17085
17086cat >>confdefs.h <<_ACEOF
17087#define HAVE_SSL /**/
17088_ACEOF
17089
17090                                if test "$ssldir" != "/usr"; then
17091                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17092                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17093                fi
17094                break;
17095            fi
17096        done
17097        if test x_$found_ssl != x_yes; then
17098            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17099        else
17100            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17101$as_echo "found in $ssldir" >&6; }
17102            HAVE_SSL=yes
17103                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17104                LDFLAGS="$LDFLAGS -L$ssldir/lib"
17105                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17106
17107	if test "x$enable_rpath" = xyes; then
17108		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17109			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17110		fi
17111	fi
17112
17113            fi
17114
17115            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17116$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17117            LIBS="$LIBS -lcrypto"
17118            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17119            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120/* end confdefs.h.  */
17121
17122int
17123main ()
17124{
17125
17126                int HMAC_Update(void);
17127                (void)HMAC_Update();
17128
17129  ;
17130  return 0;
17131}
17132_ACEOF
17133if ac_fn_c_try_link "$LINENO"; then :
17134
17135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17136$as_echo "yes" >&6; }
17137
17138$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17139
17140
17141else
17142
17143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17144$as_echo "no" >&6; }
17145                # check if -lwsock32 or -lgdi32 are needed.
17146                BAKLIBS="$LIBS"
17147                BAKSSLLIBS="$LIBSSL_LIBS"
17148                LIBS="$LIBS -lgdi32"
17149                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
17150                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17151$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17152                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154
17155int
17156main ()
17157{
17158
17159                    int HMAC_Update(void);
17160                    (void)HMAC_Update();
17161
17162  ;
17163  return 0;
17164}
17165_ACEOF
17166if ac_fn_c_try_link "$LINENO"; then :
17167
17168
17169$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17170
17171                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17172$as_echo "yes" >&6; }
17173
17174else
17175
17176                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177$as_echo "no" >&6; }
17178                    LIBS="$BAKLIBS"
17179                    LIBSSL_LIBS="$BAKSSLLIBS"
17180                    LIBS="$LIBS -ldl"
17181                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17182                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17183$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17184                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186
17187int
17188main ()
17189{
17190
17191                        int HMAC_Update(void);
17192                        (void)HMAC_Update();
17193
17194  ;
17195  return 0;
17196}
17197_ACEOF
17198if ac_fn_c_try_link "$LINENO"; then :
17199
17200
17201$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17202
17203                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204$as_echo "yes" >&6; }
17205
17206else
17207
17208                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17209$as_echo "no" >&6; }
17210                        LIBS="$BAKLIBS"
17211                        LIBSSL_LIBS="$BAKSSLLIBS"
17212                        LIBS="$LIBS -ldl -pthread"
17213                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17214                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17215$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17216                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218
17219int
17220main ()
17221{
17222
17223                            int HMAC_Update(void);
17224                            (void)HMAC_Update();
17225
17226  ;
17227  return 0;
17228}
17229_ACEOF
17230if ac_fn_c_try_link "$LINENO"; then :
17231
17232
17233$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17234
17235                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17236$as_echo "yes" >&6; }
17237
17238else
17239
17240                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241$as_echo "no" >&6; }
17242                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17243
17244fi
17245rm -f core conftest.err conftest.$ac_objext \
17246    conftest$ac_exeext conftest.$ac_ext
17247
17248fi
17249rm -f core conftest.err conftest.$ac_objext \
17250    conftest$ac_exeext conftest.$ac_ext
17251
17252fi
17253rm -f core conftest.err conftest.$ac_objext \
17254    conftest$ac_exeext conftest.$ac_ext
17255
17256fi
17257rm -f core conftest.err conftest.$ac_objext \
17258    conftest$ac_exeext conftest.$ac_ext
17259        fi
17260
17261
17262    fi
17263for ac_header in openssl/ssl.h
17264do :
17265  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17266"
17267if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17268  cat >>confdefs.h <<_ACEOF
17269#define HAVE_OPENSSL_SSL_H 1
17270_ACEOF
17271
17272fi
17273
17274done
17275
17276for ac_header in openssl/err.h
17277do :
17278  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17279"
17280if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17281  cat >>confdefs.h <<_ACEOF
17282#define HAVE_OPENSSL_ERR_H 1
17283_ACEOF
17284
17285fi
17286
17287done
17288
17289for ac_header in openssl/rand.h
17290do :
17291  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17292"
17293if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17294  cat >>confdefs.h <<_ACEOF
17295#define HAVE_OPENSSL_RAND_H 1
17296_ACEOF
17297
17298fi
17299
17300done
17301
17302
17303
17304
17305# check if libssl needs libdl
17306BAKLIBS="$LIBS"
17307LIBS="-lssl $LIBS"
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17309$as_echo_n "checking if libssl needs libdl... " >&6; }
17310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312
17313/* Override any GCC internal prototype to avoid an error.
17314   Use char because int might match the return type of a GCC
17315   builtin and then its argument prototype would still apply.  */
17316#ifdef __cplusplus
17317extern "C"
17318#endif
17319char SSL_CTX_new ();
17320int
17321main ()
17322{
17323return SSL_CTX_new ();
17324  ;
17325  return 0;
17326}
17327_ACEOF
17328if ac_fn_c_try_link "$LINENO"; then :
17329
17330	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331$as_echo "no" >&6; }
17332	LIBS="$BAKLIBS"
17333
17334else
17335
17336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337$as_echo "yes" >&6; }
17338	LIBS="$BAKLIBS"
17339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17340$as_echo_n "checking for library containing dlopen... " >&6; }
17341if ${ac_cv_search_dlopen+:} false; then :
17342  $as_echo_n "(cached) " >&6
17343else
17344  ac_func_search_save_LIBS=$LIBS
17345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347
17348/* Override any GCC internal prototype to avoid an error.
17349   Use char because int might match the return type of a GCC
17350   builtin and then its argument prototype would still apply.  */
17351#ifdef __cplusplus
17352extern "C"
17353#endif
17354char dlopen ();
17355int
17356main ()
17357{
17358return dlopen ();
17359  ;
17360  return 0;
17361}
17362_ACEOF
17363for ac_lib in '' dl; do
17364  if test -z "$ac_lib"; then
17365    ac_res="none required"
17366  else
17367    ac_res=-l$ac_lib
17368    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17369  fi
17370  if ac_fn_c_try_link "$LINENO"; then :
17371  ac_cv_search_dlopen=$ac_res
17372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374    conftest$ac_exeext
17375  if ${ac_cv_search_dlopen+:} false; then :
17376  break
17377fi
17378done
17379if ${ac_cv_search_dlopen+:} false; then :
17380
17381else
17382  ac_cv_search_dlopen=no
17383fi
17384rm conftest.$ac_ext
17385LIBS=$ac_func_search_save_LIBS
17386fi
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17388$as_echo "$ac_cv_search_dlopen" >&6; }
17389ac_res=$ac_cv_search_dlopen
17390if test "$ac_res" != no; then :
17391  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17392
17393fi
17394
17395
17396fi
17397rm -f core conftest.err conftest.$ac_objext \
17398    conftest$ac_exeext conftest.$ac_ext
17399SSLLIB="-lssl"
17400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17401$as_echo_n "checking for LibreSSL... " >&6; }
17402if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17404$as_echo "yes" >&6; }
17405
17406$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17407
17408	# libressl provides these compat functions, but they may also be
17409	# declared by the OS in libc.  See if they have been declared.
17410	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17411if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17412  ac_have_decl=1
17413else
17414  ac_have_decl=0
17415fi
17416
17417cat >>confdefs.h <<_ACEOF
17418#define HAVE_DECL_STRLCPY $ac_have_decl
17419_ACEOF
17420ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17421if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17422  ac_have_decl=1
17423else
17424  ac_have_decl=0
17425fi
17426
17427cat >>confdefs.h <<_ACEOF
17428#define HAVE_DECL_STRLCAT $ac_have_decl
17429_ACEOF
17430ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17431if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17432  ac_have_decl=1
17433else
17434  ac_have_decl=0
17435fi
17436
17437cat >>confdefs.h <<_ACEOF
17438#define HAVE_DECL_ARC4RANDOM $ac_have_decl
17439_ACEOF
17440ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17441if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17442  ac_have_decl=1
17443else
17444  ac_have_decl=0
17445fi
17446
17447cat >>confdefs.h <<_ACEOF
17448#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17449_ACEOF
17450ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17451if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17452  ac_have_decl=1
17453else
17454  ac_have_decl=0
17455fi
17456
17457cat >>confdefs.h <<_ACEOF
17458#define HAVE_DECL_REALLOCARRAY $ac_have_decl
17459_ACEOF
17460
17461else
17462	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17463$as_echo "no" >&6; }
17464fi
17465for ac_header in openssl/conf.h
17466do :
17467  ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
17468"
17469if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
17470  cat >>confdefs.h <<_ACEOF
17471#define HAVE_OPENSSL_CONF_H 1
17472_ACEOF
17473
17474fi
17475
17476done
17477
17478for ac_header in openssl/engine.h
17479do :
17480  ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
17481"
17482if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
17483  cat >>confdefs.h <<_ACEOF
17484#define HAVE_OPENSSL_ENGINE_H 1
17485_ACEOF
17486
17487fi
17488
17489done
17490
17491for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new
17492do :
17493  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17494ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17495if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17496  cat >>confdefs.h <<_ACEOF
17497#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17498_ACEOF
17499
17500fi
17501done
17502
17503ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17504$ac_includes_default
17505#ifdef HAVE_OPENSSL_ERR_H
17506#include <openssl/err.h>
17507#endif
17508
17509#ifdef HAVE_OPENSSL_RAND_H
17510#include <openssl/rand.h>
17511#endif
17512
17513#ifdef HAVE_OPENSSL_CONF_H
17514#include <openssl/conf.h>
17515#endif
17516
17517#ifdef HAVE_OPENSSL_ENGINE_H
17518#include <openssl/engine.h>
17519#endif
17520#include <openssl/ssl.h>
17521#include <openssl/evp.h>
17522
17523"
17524if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17525  ac_have_decl=1
17526else
17527  ac_have_decl=0
17528fi
17529
17530cat >>confdefs.h <<_ACEOF
17531#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17532_ACEOF
17533ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17534$ac_includes_default
17535#ifdef HAVE_OPENSSL_ERR_H
17536#include <openssl/err.h>
17537#endif
17538
17539#ifdef HAVE_OPENSSL_RAND_H
17540#include <openssl/rand.h>
17541#endif
17542
17543#ifdef HAVE_OPENSSL_CONF_H
17544#include <openssl/conf.h>
17545#endif
17546
17547#ifdef HAVE_OPENSSL_ENGINE_H
17548#include <openssl/engine.h>
17549#endif
17550#include <openssl/ssl.h>
17551#include <openssl/evp.h>
17552
17553"
17554if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17555  ac_have_decl=1
17556else
17557  ac_have_decl=0
17558fi
17559
17560cat >>confdefs.h <<_ACEOF
17561#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17562_ACEOF
17563ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17564$ac_includes_default
17565#ifdef HAVE_OPENSSL_ERR_H
17566#include <openssl/err.h>
17567#endif
17568
17569#ifdef HAVE_OPENSSL_RAND_H
17570#include <openssl/rand.h>
17571#endif
17572
17573#ifdef HAVE_OPENSSL_CONF_H
17574#include <openssl/conf.h>
17575#endif
17576
17577#ifdef HAVE_OPENSSL_ENGINE_H
17578#include <openssl/engine.h>
17579#endif
17580#include <openssl/ssl.h>
17581#include <openssl/evp.h>
17582
17583"
17584if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17585  ac_have_decl=1
17586else
17587  ac_have_decl=0
17588fi
17589
17590cat >>confdefs.h <<_ACEOF
17591#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17592_ACEOF
17593
17594fi
17595
17596
17597
17598# Check whether --enable-sha2 was given.
17599if test "${enable_sha2+set}" = set; then :
17600  enableval=$enable_sha2;
17601fi
17602
17603case "$enable_sha2" in
17604	no)
17605	;;
17606	yes|*)
17607
17608$as_echo "#define USE_SHA2 1" >>confdefs.h
17609
17610	;;
17611esac
17612
17613# check wether gost also works
17614
17615# Check whether --enable-gost was given.
17616if test "${enable_gost+set}" = set; then :
17617  enableval=$enable_gost;
17618fi
17619
17620use_gost="no"
17621if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17622case "$enable_gost" in
17623	no)
17624	;;
17625	*)
17626	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17627if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17628  :
17629else
17630  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17631fi
17632
17633	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17634if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17635
17636else
17637  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17638fi
17639
17640
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17642$as_echo_n "checking if GOST works... " >&6; }
17643if test c${cross_compiling} = cno; then
17644BAKCFLAGS="$CFLAGS"
17645if test -n "$ssldir"; then
17646	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17647fi
17648if test "$cross_compiling" = yes; then :
17649  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17651as_fn_error $? "cannot run test program while cross compiling
17652See \`config.log' for more details" "$LINENO" 5; }
17653else
17654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655/* end confdefs.h.  */
17656
17657#include <string.h>
17658#include <openssl/ssl.h>
17659#include <openssl/evp.h>
17660#include <openssl/engine.h>
17661#include <openssl/conf.h>
17662/* routine to load gost (from sldns) */
17663int load_gost_id(void)
17664{
17665	static int gost_id = 0;
17666	const EVP_PKEY_ASN1_METHOD* meth;
17667	ENGINE* e;
17668
17669	if(gost_id) return gost_id;
17670
17671	/* see if configuration loaded gost implementation from other engine*/
17672	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17673	if(meth) {
17674		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17675		return gost_id;
17676	}
17677
17678	/* see if engine can be loaded already */
17679	e = ENGINE_by_id("gost");
17680	if(!e) {
17681		/* load it ourself, in case statically linked */
17682		ENGINE_load_builtin_engines();
17683		ENGINE_load_dynamic();
17684		e = ENGINE_by_id("gost");
17685	}
17686	if(!e) {
17687		/* no gost engine in openssl */
17688		return 0;
17689	}
17690	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17691		ENGINE_finish(e);
17692		ENGINE_free(e);
17693		return 0;
17694	}
17695
17696	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17697	if(!meth) {
17698		/* algo not found */
17699		ENGINE_finish(e);
17700		ENGINE_free(e);
17701		return 0;
17702	}
17703	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17704	return gost_id;
17705}
17706int main(void) {
17707	EVP_MD_CTX* ctx;
17708	const EVP_MD* md;
17709	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17710	const char* str = "Hello world";
17711	const unsigned char check[] = {
17712		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17713		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17714		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17715		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17716	};
17717	OPENSSL_config(NULL);
17718	(void)load_gost_id();
17719	md = EVP_get_digestbyname("md_gost94");
17720	if(!md) return 1;
17721	memset(digest, 0, sizeof(digest));
17722	ctx = EVP_MD_CTX_create();
17723	if(!ctx) return 2;
17724	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17725	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17726	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17727	/* uncomment to see the hash calculated.
17728		{int i;
17729		for(i=0; i<32; i++)
17730			printf(" %2.2x", (int)digest[i]);
17731		printf("\n");}
17732	*/
17733	if(memcmp(digest, check, sizeof(check)) != 0)
17734		return 6;
17735	return 0;
17736}
17737
17738_ACEOF
17739if ac_fn_c_try_run "$LINENO"; then :
17740  eval "ac_cv_c_gost_works=yes"
17741else
17742  eval "ac_cv_c_gost_works=no"
17743fi
17744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17745  conftest.$ac_objext conftest.beam conftest.$ac_ext
17746fi
17747
17748CFLAGS="$BAKCFLAGS"
17749else
17750eval "ac_cv_c_gost_works=maybe"
17751fi
17752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17753$as_echo "$ac_cv_c_gost_works" >&6; }
17754
17755	if test "$ac_cv_c_gost_works" != no; then
17756		use_gost="yes"
17757
17758$as_echo "#define USE_GOST 1" >>confdefs.h
17759
17760	fi
17761	;;
17762esac
17763fi
17764# Check whether --enable-ecdsa was given.
17765if test "${enable_ecdsa+set}" = set; then :
17766  enableval=$enable_ecdsa;
17767fi
17768
17769use_ecdsa="no"
17770case "$enable_ecdsa" in
17771    no)
17772      ;;
17773    *)
17774      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17775	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17776if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17777
17778else
17779  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17780fi
17781
17782	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17783if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17784
17785else
17786  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17787fi
17788
17789	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17790#include <openssl/evp.h>
17791
17792"
17793if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17794  ac_have_decl=1
17795else
17796  ac_have_decl=0
17797fi
17798
17799cat >>confdefs.h <<_ACEOF
17800#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17801_ACEOF
17802if test $ac_have_decl = 1; then :
17803
17804else
17805  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17806fi
17807ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17808#include <openssl/evp.h>
17809
17810"
17811if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17812  ac_have_decl=1
17813else
17814  ac_have_decl=0
17815fi
17816
17817cat >>confdefs.h <<_ACEOF
17818#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17819_ACEOF
17820if test $ac_have_decl = 1; then :
17821
17822else
17823  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17824fi
17825
17826	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17827	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17828$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17829	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17830		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17831		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832$as_echo "no" >&6; }
17833
17834cat >>confdefs.h <<_ACEOF
17835#define USE_ECDSA_EVP_WORKAROUND 1
17836_ACEOF
17837
17838		else
17839		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17840$as_echo "yes" >&6; }
17841		fi
17842	      else
17843		# not OpenSSL, thus likely LibreSSL, which supports it
17844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17845$as_echo "yes" >&6; }
17846	      fi
17847      fi
17848      # we now know we have ECDSA and the required curves.
17849
17850cat >>confdefs.h <<_ACEOF
17851#define USE_ECDSA 1
17852_ACEOF
17853
17854      use_ecdsa="yes"
17855      ;;
17856esac
17857
17858# Check whether --enable-dsa was given.
17859if test "${enable_dsa+set}" = set; then :
17860  enableval=$enable_dsa;
17861fi
17862
17863use_dsa="no"
17864case "$enable_ecdsa" in
17865    no)
17866      ;;
17867    *)
17868      # detect if DSA is supported, and turn it off if not.
17869      ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
17870if test "x$ac_cv_func_EVP_dss1" = xyes; then :
17871
17872
17873cat >>confdefs.h <<_ACEOF
17874#define USE_DSA 1
17875_ACEOF
17876
17877
17878else
17879  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
17880               fi
17881fi
17882
17883      ;;
17884esac
17885
17886
17887# Check whether --enable-event-api was given.
17888if test "${enable_event_api+set}" = set; then :
17889  enableval=$enable_event_api;
17890fi
17891
17892case "$enable_event_api" in
17893    yes)
17894      UNBOUND_EVENT_INSTALL=unbound-event-install
17895
17896      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17897
17898      ;;
17899    *)
17900      ;;
17901esac
17902
17903# check for libevent
17904
17905# Check whether --with-libevent was given.
17906if test "${with_libevent+set}" = set; then :
17907  withval=$with_libevent;
17908else
17909   withval="no"
17910fi
17911
17912if test x_$withval = x_yes -o x_$withval != x_no; then
17913        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17914$as_echo_n "checking for libevent... " >&6; }
17915        if test x_$withval = x_ -o x_$withval = x_yes; then
17916            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17917        fi
17918        for dir in $withval; do
17919            thedir="$dir"
17920            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17921                found_libevent="yes"
17922				if test "$thedir" != "/usr"; then
17923                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
17924		fi
17925                break;
17926            fi
17927        done
17928        if test x_$found_libevent != x_yes; then
17929		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17930			# libevent source directory
17931            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17932$as_echo "found in $thedir" >&6; }
17933                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17934			BAK_LDFLAGS_SET="1"
17935			BAK_LDFLAGS="$LDFLAGS"
17936			# remove evdns from linking
17937			mkdir build >/dev/null 2>&1
17938			mkdir build/libevent >/dev/null 2>&1
17939			mkdir build/libevent/.libs >/dev/null 2>&1
17940			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17941			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17942			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17943			cp $ev_files_o build/libevent
17944			cp $ev_files_lo build/libevent
17945			cp $ev_files_libso build/libevent/.libs
17946            		LATE_LDFLAGS="build/libevent/*.lo -lm"
17947			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17948		else
17949            		as_fn_error $? "Cannot find the libevent library in $withval
17950You can restart ./configure --with-libevent=no to use a builtin alternative.
17951Please note that this alternative is not as capable as libevent when using
17952large outgoing port ranges.  " "$LINENO" 5
17953		fi
17954        else
17955            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17956$as_echo "found in $thedir" >&6; }
17957	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17958		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17959
17960	if test "x$enable_rpath" = xyes; then
17961		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17962			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17963		fi
17964	fi
17965
17966	    else
17967		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
17968			LDFLAGS="$LDFLAGS -L$thedir/lib"
17969
17970	if test "x$enable_rpath" = xyes; then
17971		if echo "$thedir/lib" | grep "^/" >/dev/null; then
17972			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17973		fi
17974	fi
17975
17976		    fi
17977	    fi
17978        fi
17979	# check for library used by libevent after 1.3c
17980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17981$as_echo_n "checking for library containing clock_gettime... " >&6; }
17982if ${ac_cv_search_clock_gettime+:} false; then :
17983  $as_echo_n "(cached) " >&6
17984else
17985  ac_func_search_save_LIBS=$LIBS
17986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987/* end confdefs.h.  */
17988
17989/* Override any GCC internal prototype to avoid an error.
17990   Use char because int might match the return type of a GCC
17991   builtin and then its argument prototype would still apply.  */
17992#ifdef __cplusplus
17993extern "C"
17994#endif
17995char clock_gettime ();
17996int
17997main ()
17998{
17999return clock_gettime ();
18000  ;
18001  return 0;
18002}
18003_ACEOF
18004for ac_lib in '' rt; do
18005  if test -z "$ac_lib"; then
18006    ac_res="none required"
18007  else
18008    ac_res=-l$ac_lib
18009    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18010  fi
18011  if ac_fn_c_try_link "$LINENO"; then :
18012  ac_cv_search_clock_gettime=$ac_res
18013fi
18014rm -f core conftest.err conftest.$ac_objext \
18015    conftest$ac_exeext
18016  if ${ac_cv_search_clock_gettime+:} false; then :
18017  break
18018fi
18019done
18020if ${ac_cv_search_clock_gettime+:} false; then :
18021
18022else
18023  ac_cv_search_clock_gettime=no
18024fi
18025rm conftest.$ac_ext
18026LIBS=$ac_func_search_save_LIBS
18027fi
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18029$as_echo "$ac_cv_search_clock_gettime" >&6; }
18030ac_res=$ac_cv_search_clock_gettime
18031if test "$ac_res" != no; then :
18032  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18033
18034fi
18035
18036
18037	# is the event.h header libev or libevent?
18038	for ac_header in event.h
18039do :
18040  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18041"
18042if test "x$ac_cv_header_event_h" = xyes; then :
18043  cat >>confdefs.h <<_ACEOF
18044#define HAVE_EVENT_H 1
18045_ACEOF
18046
18047fi
18048
18049done
18050
18051	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18052#include <event.h>
18053
18054"
18055if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18056
18057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18058$as_echo_n "checking for library containing event_set... " >&6; }
18059if ${ac_cv_search_event_set+:} false; then :
18060  $as_echo_n "(cached) " >&6
18061else
18062  ac_func_search_save_LIBS=$LIBS
18063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064/* end confdefs.h.  */
18065
18066/* Override any GCC internal prototype to avoid an error.
18067   Use char because int might match the return type of a GCC
18068   builtin and then its argument prototype would still apply.  */
18069#ifdef __cplusplus
18070extern "C"
18071#endif
18072char event_set ();
18073int
18074main ()
18075{
18076return event_set ();
18077  ;
18078  return 0;
18079}
18080_ACEOF
18081for ac_lib in '' ev; do
18082  if test -z "$ac_lib"; then
18083    ac_res="none required"
18084  else
18085    ac_res=-l$ac_lib
18086    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18087  fi
18088  if ac_fn_c_try_link "$LINENO"; then :
18089  ac_cv_search_event_set=$ac_res
18090fi
18091rm -f core conftest.err conftest.$ac_objext \
18092    conftest$ac_exeext
18093  if ${ac_cv_search_event_set+:} false; then :
18094  break
18095fi
18096done
18097if ${ac_cv_search_event_set+:} false; then :
18098
18099else
18100  ac_cv_search_event_set=no
18101fi
18102rm conftest.$ac_ext
18103LIBS=$ac_func_search_save_LIBS
18104fi
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18106$as_echo "$ac_cv_search_event_set" >&6; }
18107ac_res=$ac_cv_search_event_set
18108if test "$ac_res" != no; then :
18109  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18110
18111fi
18112
18113
18114else
18115
18116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18117$as_echo_n "checking for library containing event_set... " >&6; }
18118if ${ac_cv_search_event_set+:} false; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  ac_func_search_save_LIBS=$LIBS
18122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123/* end confdefs.h.  */
18124
18125/* Override any GCC internal prototype to avoid an error.
18126   Use char because int might match the return type of a GCC
18127   builtin and then its argument prototype would still apply.  */
18128#ifdef __cplusplus
18129extern "C"
18130#endif
18131char event_set ();
18132int
18133main ()
18134{
18135return event_set ();
18136  ;
18137  return 0;
18138}
18139_ACEOF
18140for ac_lib in '' event; do
18141  if test -z "$ac_lib"; then
18142    ac_res="none required"
18143  else
18144    ac_res=-l$ac_lib
18145    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18146  fi
18147  if ac_fn_c_try_link "$LINENO"; then :
18148  ac_cv_search_event_set=$ac_res
18149fi
18150rm -f core conftest.err conftest.$ac_objext \
18151    conftest$ac_exeext
18152  if ${ac_cv_search_event_set+:} false; then :
18153  break
18154fi
18155done
18156if ${ac_cv_search_event_set+:} false; then :
18157
18158else
18159  ac_cv_search_event_set=no
18160fi
18161rm conftest.$ac_ext
18162LIBS=$ac_func_search_save_LIBS
18163fi
18164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18165$as_echo "$ac_cv_search_event_set" >&6; }
18166ac_res=$ac_cv_search_event_set
18167if test "$ac_res" != no; then :
18168  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18169
18170fi
18171
18172
18173fi
18174
18175	for ac_func in event_base_free
18176do :
18177  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18178if test "x$ac_cv_func_event_base_free" = xyes; then :
18179  cat >>confdefs.h <<_ACEOF
18180#define HAVE_EVENT_BASE_FREE 1
18181_ACEOF
18182
18183fi
18184done
18185 # only in libevent 1.2 and later
18186	for ac_func in event_base_once
18187do :
18188  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18189if test "x$ac_cv_func_event_base_once" = xyes; then :
18190  cat >>confdefs.h <<_ACEOF
18191#define HAVE_EVENT_BASE_ONCE 1
18192_ACEOF
18193
18194fi
18195done
18196 # only in libevent 1.4.1 and later
18197	for ac_func in event_base_new
18198do :
18199  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18200if test "x$ac_cv_func_event_base_new" = xyes; then :
18201  cat >>confdefs.h <<_ACEOF
18202#define HAVE_EVENT_BASE_NEW 1
18203_ACEOF
18204
18205fi
18206done
18207 # only in libevent 1.4.1 and later
18208	for ac_func in event_base_get_method
18209do :
18210  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18211if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18212  cat >>confdefs.h <<_ACEOF
18213#define HAVE_EVENT_BASE_GET_METHOD 1
18214_ACEOF
18215
18216fi
18217done
18218 # only in libevent 1.4.3 and later
18219	for ac_func in ev_loop
18220do :
18221  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18222if test "x$ac_cv_func_ev_loop" = xyes; then :
18223  cat >>confdefs.h <<_ACEOF
18224#define HAVE_EV_LOOP 1
18225_ACEOF
18226
18227fi
18228done
18229 # only in libev. (tested on 3.51)
18230	for ac_func in ev_default_loop
18231do :
18232  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18233if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18234  cat >>confdefs.h <<_ACEOF
18235#define HAVE_EV_DEFAULT_LOOP 1
18236_ACEOF
18237
18238fi
18239done
18240 # only in libev. (tested on 4.00)
18241	if test -n "$BAK_LDFLAGS_SET"; then
18242		LDFLAGS="$BAK_LDFLAGS"
18243	fi
18244else
18245
18246$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18247
18248fi
18249
18250# check for libexpat
18251
18252# Check whether --with-libexpat was given.
18253if test "${with_libexpat+set}" = set; then :
18254  withval=$with_libexpat;
18255else
18256   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18257fi
18258
18259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18260$as_echo_n "checking for libexpat... " >&6; }
18261found_libexpat="no"
18262for dir in $withval ; do
18263            if test -f "$dir/include/expat.h"; then
18264		found_libexpat="yes"
18265				if test "$dir" != "/usr"; then
18266                    CPPFLAGS="$CPPFLAGS -I$dir/include"
18267		    LDFLAGS="$LDFLAGS -L$dir/lib"
18268		fi
18269            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18270$as_echo "found in $dir" >&6; }
18271                break;
18272            fi
18273done
18274if test x_$found_libexpat != x_yes; then
18275	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18276fi
18277for ac_header in expat.h
18278do :
18279  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18280"
18281if test "x$ac_cv_header_expat_h" = xyes; then :
18282  cat >>confdefs.h <<_ACEOF
18283#define HAVE_EXPAT_H 1
18284_ACEOF
18285
18286fi
18287
18288done
18289
18290ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18291#include <expat.h>
18292
18293"
18294if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18295  ac_have_decl=1
18296else
18297  ac_have_decl=0
18298fi
18299
18300cat >>confdefs.h <<_ACEOF
18301#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18302_ACEOF
18303
18304
18305# set static linking if requested
18306
18307staticexe=""
18308# Check whether --enable-static-exe was given.
18309if test "${enable_static_exe+set}" = set; then :
18310  enableval=$enable_static_exe;
18311fi
18312
18313if test x_$enable_static_exe = x_yes; then
18314	staticexe="-static"
18315	if test "$on_mingw" = yes; then
18316		staticexe="-all-static"
18317		# for static crosscompile, include gdi32 and zlib here.
18318		if test "`uname`" = "Linux"; then
18319			LIBS="$LIBS -lgdi32 -lz"
18320		fi
18321	fi
18322fi
18323
18324# set lock checking if requested
18325# Check whether --enable-lock_checks was given.
18326if test "${enable_lock_checks+set}" = set; then :
18327  enableval=$enable_lock_checks;
18328fi
18329
18330if test x_$enable_lock_checks = x_yes; then
18331
18332$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18333
18334	CHECKLOCK_OBJ="checklocks.lo"
18335
18336fi
18337
18338
18339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18340$as_echo_n "checking for getaddrinfo... " >&6; }
18341ac_cv_func_getaddrinfo=no
18342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h.  */
18344
18345#ifdef __cplusplus
18346extern "C"
18347{
18348#endif
18349char* getaddrinfo();
18350char* (*f) () = getaddrinfo;
18351#ifdef __cplusplus
18352}
18353#endif
18354int main() {
18355        ;
18356        return 0;
18357}
18358
18359_ACEOF
18360if ac_fn_c_try_link "$LINENO"; then :
18361  ac_cv_func_getaddrinfo="yes"
18362if test "$ac_cv_header_windows_h" = "yes"; then
18363
18364$as_echo "#define USE_WINSOCK 1" >>confdefs.h
18365
18366	USE_WINSOCK="1"
18367	LIBS="$LIBS -lws2_32"
18368fi
18369
18370else
18371  ORIGLIBS="$LIBS"
18372LIBS="$LIBS -lws2_32"
18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374/* end confdefs.h.  */
18375
18376#ifdef HAVE_WS2TCPIP_H
18377#include <ws2tcpip.h>
18378#endif
18379
18380int
18381main ()
18382{
18383
18384        (void)getaddrinfo(NULL, NULL, NULL, NULL);
18385
18386
18387  ;
18388  return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_link "$LINENO"; then :
18392
18393ac_cv_func_getaddrinfo="yes"
18394
18395$as_echo "#define USE_WINSOCK 1" >>confdefs.h
18396
18397USE_WINSOCK="1"
18398
18399else
18400
18401ac_cv_func_getaddrinfo="no"
18402LIBS="$ORIGLIBS"
18403
18404fi
18405rm -f core conftest.err conftest.$ac_objext \
18406    conftest$ac_exeext conftest.$ac_ext
18407
18408fi
18409rm -f core conftest.err conftest.$ac_objext \
18410    conftest$ac_exeext conftest.$ac_ext
18411
18412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
18413$as_echo "$ac_cv_func_getaddrinfo" >&6; }
18414if test $ac_cv_func_getaddrinfo = yes; then
18415
18416$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18417
18418fi
18419
18420if test "$USE_WINSOCK" = 1; then
18421
18422$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
18423
18424	for ac_header in iphlpapi.h
18425do :
18426  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
18427#include <windows.h>
18428
18429"
18430if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
18431  cat >>confdefs.h <<_ACEOF
18432#define HAVE_IPHLPAPI_H 1
18433_ACEOF
18434
18435fi
18436
18437done
18438
18439	if test -n "$ac_tool_prefix"; then
18440  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18441set dummy ${ac_tool_prefix}windres; ac_word=$2
18442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18443$as_echo_n "checking for $ac_word... " >&6; }
18444if ${ac_cv_prog_WINDRES+:} false; then :
18445  $as_echo_n "(cached) " >&6
18446else
18447  if test -n "$WINDRES"; then
18448  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18449else
18450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451for as_dir in $PATH
18452do
18453  IFS=$as_save_IFS
18454  test -z "$as_dir" && as_dir=.
18455    for ac_exec_ext in '' $ac_executable_extensions; do
18456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18457    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18459    break 2
18460  fi
18461done
18462  done
18463IFS=$as_save_IFS
18464
18465fi
18466fi
18467WINDRES=$ac_cv_prog_WINDRES
18468if test -n "$WINDRES"; then
18469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18470$as_echo "$WINDRES" >&6; }
18471else
18472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18473$as_echo "no" >&6; }
18474fi
18475
18476
18477fi
18478if test -z "$ac_cv_prog_WINDRES"; then
18479  ac_ct_WINDRES=$WINDRES
18480  # Extract the first word of "windres", so it can be a program name with args.
18481set dummy windres; ac_word=$2
18482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18483$as_echo_n "checking for $ac_word... " >&6; }
18484if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18485  $as_echo_n "(cached) " >&6
18486else
18487  if test -n "$ac_ct_WINDRES"; then
18488  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18489else
18490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18491for as_dir in $PATH
18492do
18493  IFS=$as_save_IFS
18494  test -z "$as_dir" && as_dir=.
18495    for ac_exec_ext in '' $ac_executable_extensions; do
18496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18497    ac_cv_prog_ac_ct_WINDRES="windres"
18498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18499    break 2
18500  fi
18501done
18502  done
18503IFS=$as_save_IFS
18504
18505fi
18506fi
18507ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18508if test -n "$ac_ct_WINDRES"; then
18509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18510$as_echo "$ac_ct_WINDRES" >&6; }
18511else
18512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513$as_echo "no" >&6; }
18514fi
18515
18516  if test "x$ac_ct_WINDRES" = x; then
18517    WINDRES=""
18518  else
18519    case $cross_compiling:$ac_tool_warned in
18520yes:)
18521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18523ac_tool_warned=yes ;;
18524esac
18525    WINDRES=$ac_ct_WINDRES
18526  fi
18527else
18528  WINDRES="$ac_cv_prog_WINDRES"
18529fi
18530
18531	LIBS="$LIBS -liphlpapi"
18532	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
18533
18534	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
18535
18536	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
18537
18538	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
18539
18540	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
18541
18542	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
18543
18544	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
18545
18546	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
18547
18548fi
18549if test $ac_cv_func_getaddrinfo = no; then
18550	case " $LIBOBJS " in
18551  *" fake-rfc2553.$ac_objext "* ) ;;
18552  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
18553 ;;
18554esac
18555
18556fi
18557# check after getaddrinfo for its libraries
18558
18559# check ioctlsocket
18560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
18561$as_echo_n "checking for ioctlsocket... " >&6; }
18562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563/* end confdefs.h.  */
18564
18565#ifdef HAVE_WINSOCK2_H
18566#include <winsock2.h>
18567#endif
18568
18569int
18570main ()
18571{
18572
18573	(void)ioctlsocket(0, 0, NULL);
18574
18575  ;
18576  return 0;
18577}
18578_ACEOF
18579if ac_fn_c_try_link "$LINENO"; then :
18580
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582$as_echo "yes" >&6; }
18583
18584$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
18585
18586
18587else
18588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18589$as_echo "no" >&6; }
18590fi
18591rm -f core conftest.err conftest.$ac_objext \
18592    conftest$ac_exeext conftest.$ac_ext
18593
18594
18595# see if daemon(3) exists, and if it is deprecated.
18596for ac_func in daemon
18597do :
18598  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
18599if test "x$ac_cv_func_daemon" = xyes; then :
18600  cat >>confdefs.h <<_ACEOF
18601#define HAVE_DAEMON 1
18602_ACEOF
18603
18604fi
18605done
18606
18607if test $ac_cv_func_daemon = yes; then
18608
18609
18610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
18611$as_echo_n "checking if daemon is deprecated... " >&6; }
18612cache=`echo daemon | sed 'y%.=/+-%___p_%'`
18613if eval \${cv_cc_deprecated_$cache+:} false; then :
18614  $as_echo_n "(cached) " >&6
18615else
18616
18617echo '
18618#include <stdlib.h>
18619' >conftest.c
18620echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
18621if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
18622eval "cv_cc_deprecated_$cache=no"
18623else
18624eval "cv_cc_deprecated_$cache=yes"
18625fi
18626rm -f conftest conftest.o conftest.c
18627
18628fi
18629
18630if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
18631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18632$as_echo "yes" >&6; }
18633
18634cat >>confdefs.h <<_ACEOF
18635#define DEPRECATED_DAEMON 1
18636_ACEOF
18637
18638:
18639
18640else
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642$as_echo "no" >&6; }
18643:
18644
18645fi
18646
18647fi
18648
18649ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
18650$ac_includes_default
18651#ifdef HAVE_SYS_UN_H
18652#include <sys/un.h>
18653#endif
18654
18655"
18656if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
18657
18658cat >>confdefs.h <<_ACEOF
18659#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18660_ACEOF
18661
18662
18663fi
18664
18665ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
18666$ac_includes_default
18667#if HAVE_SYS_PARAM_H
18668#include <sys/param.h>
18669#endif
18670
18671#ifdef HAVE_SYS_SOCKET_H
18672#include <sys/socket.h>
18673#endif
18674
18675#ifdef HAVE_SYS_UIO_H
18676#include <sys/uio.h>
18677#endif
18678
18679#ifdef HAVE_NETINET_IN_H
18680#include <netinet/in.h>
18681#endif
18682
18683#ifdef HAVE_NETINET_TCP_H
18684#include <netinet/tcp.h>
18685#endif
18686
18687#ifdef HAVE_ARPA_INET_H
18688#include <arpa/inet.h>
18689#endif
18690
18691#ifdef HAVE_WINSOCK2_H
18692#include <winsock2.h>
18693#endif
18694
18695#ifdef HAVE_WS2TCPIP_H
18696#include <ws2tcpip.h>
18697#endif
18698
18699"
18700if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
18701
18702cat >>confdefs.h <<_ACEOF
18703#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
18704_ACEOF
18705
18706
18707fi
18708
18709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
18710$as_echo_n "checking for library containing setusercontext... " >&6; }
18711if ${ac_cv_search_setusercontext+:} false; then :
18712  $as_echo_n "(cached) " >&6
18713else
18714  ac_func_search_save_LIBS=$LIBS
18715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716/* end confdefs.h.  */
18717
18718/* Override any GCC internal prototype to avoid an error.
18719   Use char because int might match the return type of a GCC
18720   builtin and then its argument prototype would still apply.  */
18721#ifdef __cplusplus
18722extern "C"
18723#endif
18724char setusercontext ();
18725int
18726main ()
18727{
18728return setusercontext ();
18729  ;
18730  return 0;
18731}
18732_ACEOF
18733for ac_lib in '' util; do
18734  if test -z "$ac_lib"; then
18735    ac_res="none required"
18736  else
18737    ac_res=-l$ac_lib
18738    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18739  fi
18740  if ac_fn_c_try_link "$LINENO"; then :
18741  ac_cv_search_setusercontext=$ac_res
18742fi
18743rm -f core conftest.err conftest.$ac_objext \
18744    conftest$ac_exeext
18745  if ${ac_cv_search_setusercontext+:} false; then :
18746  break
18747fi
18748done
18749if ${ac_cv_search_setusercontext+:} false; then :
18750
18751else
18752  ac_cv_search_setusercontext=no
18753fi
18754rm conftest.$ac_ext
18755LIBS=$ac_func_search_save_LIBS
18756fi
18757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
18758$as_echo "$ac_cv_search_setusercontext" >&6; }
18759ac_res=$ac_cv_search_setusercontext
18760if test "$ac_res" != no; then :
18761  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18762
18763fi
18764
18765for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync
18766do :
18767  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18768ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18769if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18770  cat >>confdefs.h <<_ACEOF
18771#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18772_ACEOF
18773
18774fi
18775done
18776
18777for ac_func in setresuid
18778do :
18779  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18780if test "x$ac_cv_func_setresuid" = xyes; then :
18781  cat >>confdefs.h <<_ACEOF
18782#define HAVE_SETRESUID 1
18783_ACEOF
18784
18785else
18786  for ac_func in setreuid
18787do :
18788  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18789if test "x$ac_cv_func_setreuid" = xyes; then :
18790  cat >>confdefs.h <<_ACEOF
18791#define HAVE_SETREUID 1
18792_ACEOF
18793
18794fi
18795done
18796
18797fi
18798done
18799
18800for ac_func in setresgid
18801do :
18802  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18803if test "x$ac_cv_func_setresgid" = xyes; then :
18804  cat >>confdefs.h <<_ACEOF
18805#define HAVE_SETRESGID 1
18806_ACEOF
18807
18808else
18809  for ac_func in setregid
18810do :
18811  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18812if test "x$ac_cv_func_setregid" = xyes; then :
18813  cat >>confdefs.h <<_ACEOF
18814#define HAVE_SETREGID 1
18815_ACEOF
18816
18817fi
18818done
18819
18820fi
18821done
18822
18823
18824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18825$as_echo_n "checking for sbrk... " >&6; }
18826# catch the warning of deprecated sbrk
18827old_cflags="$CFLAGS"
18828CFLAGS="$CFLAGS -Werror"
18829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831$ac_includes_default
18832
18833int main(void) { void* cur = sbrk(0); printf("%u\n", (unsigned)(size_t)((char*)cur - (char*)sbrk(0))); return 0; }
18834
18835_ACEOF
18836if ac_fn_c_try_compile "$LINENO"; then :
18837
18838	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839$as_echo "yes" >&6; }
18840
18841$as_echo "#define HAVE_SBRK 1" >>confdefs.h
18842
18843
18844else
18845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846$as_echo "no" >&6; }
18847fi
18848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849CFLAGS="$old_cflags"
18850
18851# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18852if echo $build_os | grep darwin8 > /dev/null; then
18853
18854$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18855
18856fi
18857ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18858if test "x$ac_cv_func_inet_aton" = xyes; then :
18859  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18860
18861else
18862  case " $LIBOBJS " in
18863  *" inet_aton.$ac_objext "* ) ;;
18864  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18865 ;;
18866esac
18867
18868fi
18869
18870
18871ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18872if test "x$ac_cv_func_inet_pton" = xyes; then :
18873  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18874
18875else
18876  case " $LIBOBJS " in
18877  *" inet_pton.$ac_objext "* ) ;;
18878  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18879 ;;
18880esac
18881
18882fi
18883
18884
18885ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18886if test "x$ac_cv_func_inet_ntop" = xyes; then :
18887  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18888
18889else
18890  case " $LIBOBJS " in
18891  *" inet_ntop.$ac_objext "* ) ;;
18892  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18893 ;;
18894esac
18895
18896fi
18897
18898
18899ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18900if test "x$ac_cv_func_snprintf" = xyes; then :
18901  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18902
18903else
18904  case " $LIBOBJS " in
18905  *" snprintf.$ac_objext "* ) ;;
18906  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18907 ;;
18908esac
18909
18910fi
18911
18912
18913# test if snprintf return the proper length
18914if test "x$ac_cv_func_snprintf" = xyes; then
18915    if test c${cross_compiling} = cno; then
18916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
18917$as_echo_n "checking for correct snprintf return value... " >&6; }
18918	if test "$cross_compiling" = yes; then :
18919  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18921as_fn_error $? "cannot run test program while cross compiling
18922See \`config.log' for more details" "$LINENO" 5; }
18923else
18924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925/* end confdefs.h.  */
18926$ac_includes_default
18927
18928int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
18929
18930_ACEOF
18931if ac_fn_c_try_run "$LINENO"; then :
18932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18933$as_echo "yes" >&6; }
18934else
18935
18936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18937$as_echo "no" >&6; }
18938
18939$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
18940
18941		case " $LIBOBJS " in
18942  *" snprintf.$ac_objext "* ) ;;
18943  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18944 ;;
18945esac
18946
18947
18948fi
18949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18950  conftest.$ac_objext conftest.beam conftest.$ac_ext
18951fi
18952
18953    fi
18954fi
18955ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18956if test "x$ac_cv_func_strlcat" = xyes; then :
18957  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18958
18959else
18960  case " $LIBOBJS " in
18961  *" strlcat.$ac_objext "* ) ;;
18962  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18963 ;;
18964esac
18965
18966fi
18967
18968
18969ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18970if test "x$ac_cv_func_strlcpy" = xyes; then :
18971  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18972
18973else
18974  case " $LIBOBJS " in
18975  *" strlcpy.$ac_objext "* ) ;;
18976  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18977 ;;
18978esac
18979
18980fi
18981
18982
18983ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18984if test "x$ac_cv_func_memmove" = xyes; then :
18985  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18986
18987else
18988  case " $LIBOBJS " in
18989  *" memmove.$ac_objext "* ) ;;
18990  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18991 ;;
18992esac
18993
18994fi
18995
18996
18997ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18998if test "x$ac_cv_func_gmtime_r" = xyes; then :
18999  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19000
19001else
19002  case " $LIBOBJS " in
19003  *" gmtime_r.$ac_objext "* ) ;;
19004  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19005 ;;
19006esac
19007
19008fi
19009
19010
19011ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19012if test "x$ac_cv_func_isblank" = xyes; then :
19013  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19014
19015else
19016  case " $LIBOBJS " in
19017  *" isblank.$ac_objext "* ) ;;
19018  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19019 ;;
19020esac
19021
19022fi
19023
19024
19025LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19026
19027ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19028if test "x$ac_cv_func_reallocarray" = xyes; then :
19029  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19030
19031else
19032  case " $LIBOBJS " in
19033  *" reallocarray.$ac_objext "* ) ;;
19034  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19035 ;;
19036esac
19037
19038fi
19039
19040
19041if test "$USE_NSS" = "no"; then
19042	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19043if test "x$ac_cv_func_arc4random" = xyes; then :
19044  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19045
19046else
19047  case " $LIBOBJS " in
19048  *" arc4random.$ac_objext "* ) ;;
19049  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19050 ;;
19051esac
19052
19053fi
19054
19055
19056	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19057if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19058  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19059
19060else
19061  case " $LIBOBJS " in
19062  *" arc4random_uniform.$ac_objext "* ) ;;
19063  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19064 ;;
19065esac
19066
19067fi
19068
19069
19070	if test "$ac_cv_func_arc4random" = "no"; then
19071		case " $LIBOBJS " in
19072  *" explicit_bzero.$ac_objext "* ) ;;
19073  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19074 ;;
19075esac
19076
19077		case " $LIBOBJS " in
19078  *" arc4_lock.$ac_objext "* ) ;;
19079  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19080 ;;
19081esac
19082
19083		for ac_func in getentropy
19084do :
19085  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19086if test "x$ac_cv_func_getentropy" = xyes; then :
19087  cat >>confdefs.h <<_ACEOF
19088#define HAVE_GETENTROPY 1
19089_ACEOF
19090
19091else
19092
19093		    if test "$USE_WINSOCK" = 1; then
19094			case " $LIBOBJS " in
19095  *" getentropy_win.$ac_objext "* ) ;;
19096  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19097 ;;
19098esac
19099
19100		    else
19101			case `uname` in
19102			Darwin)
19103				case " $LIBOBJS " in
19104  *" getentropy_osx.$ac_objext "* ) ;;
19105  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19106 ;;
19107esac
19108
19109			;;
19110			SunOS)
19111				case " $LIBOBJS " in
19112  *" getentropy_solaris.$ac_objext "* ) ;;
19113  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19114 ;;
19115esac
19116
19117				for ac_header in sys/sha2.h
19118do :
19119  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19120"
19121if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19122  cat >>confdefs.h <<_ACEOF
19123#define HAVE_SYS_SHA2_H 1
19124_ACEOF
19125
19126else
19127
19128					for ac_func in SHA512_Update
19129do :
19130  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19131if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19132  cat >>confdefs.h <<_ACEOF
19133#define HAVE_SHA512_UPDATE 1
19134_ACEOF
19135
19136else
19137
19138						case " $LIBOBJS " in
19139  *" sha512.$ac_objext "* ) ;;
19140  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19141 ;;
19142esac
19143
19144
19145fi
19146done
19147
19148
19149fi
19150
19151done
19152
19153				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19154					# this lib needed for sha2 on solaris
19155					LIBS="$LIBS -lmd"
19156				fi
19157				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19158$as_echo_n "checking for library containing clock_gettime... " >&6; }
19159if ${ac_cv_search_clock_gettime+:} false; then :
19160  $as_echo_n "(cached) " >&6
19161else
19162  ac_func_search_save_LIBS=$LIBS
19163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164/* end confdefs.h.  */
19165
19166/* Override any GCC internal prototype to avoid an error.
19167   Use char because int might match the return type of a GCC
19168   builtin and then its argument prototype would still apply.  */
19169#ifdef __cplusplus
19170extern "C"
19171#endif
19172char clock_gettime ();
19173int
19174main ()
19175{
19176return clock_gettime ();
19177  ;
19178  return 0;
19179}
19180_ACEOF
19181for ac_lib in '' rt; do
19182  if test -z "$ac_lib"; then
19183    ac_res="none required"
19184  else
19185    ac_res=-l$ac_lib
19186    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19187  fi
19188  if ac_fn_c_try_link "$LINENO"; then :
19189  ac_cv_search_clock_gettime=$ac_res
19190fi
19191rm -f core conftest.err conftest.$ac_objext \
19192    conftest$ac_exeext
19193  if ${ac_cv_search_clock_gettime+:} false; then :
19194  break
19195fi
19196done
19197if ${ac_cv_search_clock_gettime+:} false; then :
19198
19199else
19200  ac_cv_search_clock_gettime=no
19201fi
19202rm conftest.$ac_ext
19203LIBS=$ac_func_search_save_LIBS
19204fi
19205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19206$as_echo "$ac_cv_search_clock_gettime" >&6; }
19207ac_res=$ac_cv_search_clock_gettime
19208if test "$ac_res" != no; then :
19209  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19210
19211fi
19212
19213			;;
19214			Linux|*)
19215				case " $LIBOBJS " in
19216  *" getentropy_linux.$ac_objext "* ) ;;
19217  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19218 ;;
19219esac
19220
19221				for ac_func in SHA512_Update
19222do :
19223  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19224if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19225  cat >>confdefs.h <<_ACEOF
19226#define HAVE_SHA512_UPDATE 1
19227_ACEOF
19228
19229else
19230
19231
19232$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19233
19234					case " $LIBOBJS " in
19235  *" sha512.$ac_objext "* ) ;;
19236  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19237 ;;
19238esac
19239
19240
19241fi
19242done
19243
19244				for ac_header in sys/sysctl.h
19245do :
19246  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19247"
19248if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19249  cat >>confdefs.h <<_ACEOF
19250#define HAVE_SYS_SYSCTL_H 1
19251_ACEOF
19252
19253fi
19254
19255done
19256
19257				for ac_func in getauxval
19258do :
19259  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19260if test "x$ac_cv_func_getauxval" = xyes; then :
19261  cat >>confdefs.h <<_ACEOF
19262#define HAVE_GETAUXVAL 1
19263_ACEOF
19264
19265fi
19266done
19267
19268				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19269$as_echo_n "checking for library containing clock_gettime... " >&6; }
19270if ${ac_cv_search_clock_gettime+:} false; then :
19271  $as_echo_n "(cached) " >&6
19272else
19273  ac_func_search_save_LIBS=$LIBS
19274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275/* end confdefs.h.  */
19276
19277/* Override any GCC internal prototype to avoid an error.
19278   Use char because int might match the return type of a GCC
19279   builtin and then its argument prototype would still apply.  */
19280#ifdef __cplusplus
19281extern "C"
19282#endif
19283char clock_gettime ();
19284int
19285main ()
19286{
19287return clock_gettime ();
19288  ;
19289  return 0;
19290}
19291_ACEOF
19292for ac_lib in '' rt; do
19293  if test -z "$ac_lib"; then
19294    ac_res="none required"
19295  else
19296    ac_res=-l$ac_lib
19297    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19298  fi
19299  if ac_fn_c_try_link "$LINENO"; then :
19300  ac_cv_search_clock_gettime=$ac_res
19301fi
19302rm -f core conftest.err conftest.$ac_objext \
19303    conftest$ac_exeext
19304  if ${ac_cv_search_clock_gettime+:} false; then :
19305  break
19306fi
19307done
19308if ${ac_cv_search_clock_gettime+:} false; then :
19309
19310else
19311  ac_cv_search_clock_gettime=no
19312fi
19313rm conftest.$ac_ext
19314LIBS=$ac_func_search_save_LIBS
19315fi
19316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19317$as_echo "$ac_cv_search_clock_gettime" >&6; }
19318ac_res=$ac_cv_search_clock_gettime
19319if test "$ac_res" != no; then :
19320  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19321
19322fi
19323
19324			;;
19325			esac
19326		    fi
19327
19328fi
19329done
19330
19331	fi
19332fi
19333LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
19334
19335ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
19336if test "x$ac_cv_func_ctime_r" = xyes; then :
19337  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
19338
19339else
19340  case " $LIBOBJS " in
19341  *" ctime_r.$ac_objext "* ) ;;
19342  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
19343 ;;
19344esac
19345
19346fi
19347
19348
19349ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
19350if test "x$ac_cv_func_strsep" = xyes; then :
19351  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
19352
19353else
19354  case " $LIBOBJS " in
19355  *" strsep.$ac_objext "* ) ;;
19356  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
19357 ;;
19358esac
19359
19360fi
19361
19362
19363
19364# Check whether --enable-allsymbols was given.
19365if test "${enable_allsymbols+set}" = set; then :
19366  enableval=$enable_allsymbols;
19367fi
19368
19369case "$enable_allsymbols" in
19370	yes)
19371	COMMON_OBJ_ALL_SYMBOLS=""
19372	UBSYMS=""
19373	EXTRALINK="-L. -L.libs -lunbound"
19374
19375$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
19376
19377	;;
19378	no|*)
19379	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
19380	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
19381	EXTRALINK=""
19382	;;
19383esac
19384
19385
19386
19387if test x_$enable_lock_checks = x_yes; then
19388	UBSYMS="-export-symbols clubsyms.def"
19389	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
19390	echo lock_protect >> clubsyms.def
19391	echo lock_unprotect >> clubsyms.def
19392	echo lock_get_mem >> clubsyms.def
19393	echo checklock_start >> clubsyms.def
19394	echo checklock_stop >> clubsyms.def
19395	echo checklock_lock >> clubsyms.def
19396	echo checklock_unlock >> clubsyms.def
19397	echo checklock_init >> clubsyms.def
19398	echo checklock_thrcreate >> clubsyms.def
19399	echo checklock_thrjoin >> clubsyms.def
19400fi
19401
19402# check for dnstap if requested
19403
19404  # Check whether --enable-dnstap was given.
19405if test "${enable_dnstap+set}" = set; then :
19406  enableval=$enable_dnstap; opt_dnstap=$enableval
19407else
19408  opt_dnstap=no
19409fi
19410
19411
19412
19413# Check whether --with-dnstap-socket-path was given.
19414if test "${with_dnstap_socket_path+set}" = set; then :
19415  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
19416else
19417  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
19418fi
19419
19420
19421  if test "x$opt_dnstap" != "xno"; then
19422    # Extract the first word of "protoc-c", so it can be a program name with args.
19423set dummy protoc-c; ac_word=$2
19424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19425$as_echo_n "checking for $ac_word... " >&6; }
19426if ${ac_cv_path_PROTOC_C+:} false; then :
19427  $as_echo_n "(cached) " >&6
19428else
19429  case $PROTOC_C in
19430  [\\/]* | ?:[\\/]*)
19431  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
19432  ;;
19433  *)
19434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435for as_dir in $PATH
19436do
19437  IFS=$as_save_IFS
19438  test -z "$as_dir" && as_dir=.
19439    for ac_exec_ext in '' $ac_executable_extensions; do
19440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19441    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
19442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19443    break 2
19444  fi
19445done
19446  done
19447IFS=$as_save_IFS
19448
19449  ;;
19450esac
19451fi
19452PROTOC_C=$ac_cv_path_PROTOC_C
19453if test -n "$PROTOC_C"; then
19454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
19455$as_echo "$PROTOC_C" >&6; }
19456else
19457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458$as_echo "no" >&6; }
19459fi
19460
19461
19462    if test -z "$PROTOC_C"; then
19463      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
19464    fi
19465
19466# Check whether --with-protobuf-c was given.
19467if test "${with_protobuf_c+set}" = set; then :
19468  withval=$with_protobuf_c;
19469	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19470	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
19471	    CFLAGS="$CFLAGS -I$withval/include/google"
19472	  else
19473	    CFLAGS="$CFLAGS -I$withval/include"
19474	  fi
19475	  LDFLAGS="$LDFLAGS -L$withval/lib"
19476
19477else
19478
19479	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19480	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
19481	    CFLAGS="$CFLAGS -I/usr/include/google"
19482	  else
19483	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
19484	      CFLAGS="$CFLAGS -I/usr/local/include/google"
19485	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
19486	    fi
19487	  fi
19488
19489fi
19490
19491
19492# Check whether --with-libfstrm was given.
19493if test "${with_libfstrm+set}" = set; then :
19494  withval=$with_libfstrm;
19495	CFLAGS="$CFLAGS -I$withval/include"
19496	LDFLAGS="$LDFLAGS -L$withval/lib"
19497
19498fi
19499
19500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
19501$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
19502if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19503  $as_echo_n "(cached) " >&6
19504else
19505  ac_func_search_save_LIBS=$LIBS
19506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507/* end confdefs.h.  */
19508
19509/* Override any GCC internal prototype to avoid an error.
19510   Use char because int might match the return type of a GCC
19511   builtin and then its argument prototype would still apply.  */
19512#ifdef __cplusplus
19513extern "C"
19514#endif
19515char fstrm_iothr_init ();
19516int
19517main ()
19518{
19519return fstrm_iothr_init ();
19520  ;
19521  return 0;
19522}
19523_ACEOF
19524for ac_lib in '' fstrm; do
19525  if test -z "$ac_lib"; then
19526    ac_res="none required"
19527  else
19528    ac_res=-l$ac_lib
19529    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19530  fi
19531  if ac_fn_c_try_link "$LINENO"; then :
19532  ac_cv_search_fstrm_iothr_init=$ac_res
19533fi
19534rm -f core conftest.err conftest.$ac_objext \
19535    conftest$ac_exeext
19536  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19537  break
19538fi
19539done
19540if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19541
19542else
19543  ac_cv_search_fstrm_iothr_init=no
19544fi
19545rm conftest.$ac_ext
19546LIBS=$ac_func_search_save_LIBS
19547fi
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
19549$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
19550ac_res=$ac_cv_search_fstrm_iothr_init
19551if test "$ac_res" != no; then :
19552  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19553
19554else
19555  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
19556fi
19557
19558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
19559$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
19560if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19561  $as_echo_n "(cached) " >&6
19562else
19563  ac_func_search_save_LIBS=$LIBS
19564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565/* end confdefs.h.  */
19566
19567/* Override any GCC internal prototype to avoid an error.
19568   Use char because int might match the return type of a GCC
19569   builtin and then its argument prototype would still apply.  */
19570#ifdef __cplusplus
19571extern "C"
19572#endif
19573char protobuf_c_message_pack ();
19574int
19575main ()
19576{
19577return protobuf_c_message_pack ();
19578  ;
19579  return 0;
19580}
19581_ACEOF
19582for ac_lib in '' protobuf-c; do
19583  if test -z "$ac_lib"; then
19584    ac_res="none required"
19585  else
19586    ac_res=-l$ac_lib
19587    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19588  fi
19589  if ac_fn_c_try_link "$LINENO"; then :
19590  ac_cv_search_protobuf_c_message_pack=$ac_res
19591fi
19592rm -f core conftest.err conftest.$ac_objext \
19593    conftest$ac_exeext
19594  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19595  break
19596fi
19597done
19598if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19599
19600else
19601  ac_cv_search_protobuf_c_message_pack=no
19602fi
19603rm conftest.$ac_ext
19604LIBS=$ac_func_search_save_LIBS
19605fi
19606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
19607$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
19608ac_res=$ac_cv_search_protobuf_c_message_pack
19609if test "$ac_res" != no; then :
19610  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19611
19612else
19613  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
19614fi
19615
19616
19617
19618$as_echo "#define USE_DNSTAP 1" >>confdefs.h
19619
19620        ENABLE_DNSTAP=1
19621
19622
19623
19624        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
19625
19626
19627cat >>confdefs.h <<_ACEOF
19628#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
19629_ACEOF
19630
19631
19632        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
19633
19634        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
19635
19636
19637  else
19638
19639        ENABLE_DNSTAP=0
19640
19641
19642
19643  fi
19644
19645
19646# check for cachedb if requested
19647# Check whether --enable-cachedb was given.
19648if test "${enable_cachedb+set}" = set; then :
19649  enableval=$enable_cachedb;
19650fi
19651
19652case "$enable_cachedb" in
19653    yes)
19654
19655$as_echo "#define USE_CACHEDB 1" >>confdefs.h
19656
19657    	;;
19658    no|*)
19659    	# nothing
19660    	;;
19661esac
19662
19663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
19664$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
19665# on openBSD, the implicit rule make $< work.
19666# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
19667# gmake works.
19668cat >conftest.make <<EOF
19669all:	conftest.lo
19670
19671conftest.lo foo.lo bla.lo:
19672	if test -f "\$<"; then touch \$@; fi
19673
19674.SUFFIXES: .lo
19675.c.lo:
19676	if test -f "\$<"; then touch \$@; fi
19677
19678conftest.lo:        conftest.dir/conftest.c
19679EOF
19680mkdir conftest.dir
19681touch conftest.dir/conftest.c
19682rm -f conftest.lo conftest.c
19683${MAKE:-make} -f conftest.make >/dev/null
19684rm -f conftest.make conftest.c conftest.dir/conftest.c
19685rm -rf conftest.dir
19686if test ! -f conftest.lo; then
19687	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688$as_echo "no" >&6; }
19689	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
19690	SOURCEFILE='`cat .source`'
19691else
19692	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19693$as_echo "yes" >&6; }
19694	SOURCEDETERMINE=':'
19695	SOURCEFILE='$<'
19696fi
19697rm -f conftest.lo
19698
19699
19700
19701# see if we want to build the library or everything
19702ALLTARGET="alltargets"
19703INSTALLTARGET="install-all"
19704
19705# Check whether --with-libunbound-only was given.
19706if test "${with_libunbound_only+set}" = set; then :
19707  withval=$with_libunbound_only;
19708	if test "$withval" = "yes"; then
19709		ALLTARGET="lib"
19710		INSTALLTARGET="install-lib"
19711	fi
19712
19713fi
19714
19715
19716
19717
19718
19719  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
19720$as_echo "$as_me: Stripping extension flags..." >&6;}
19721
19722  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
19723    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
19724
19725$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
19726
19727  fi
19728
19729
19730  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
19731    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
19732
19733$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
19734
19735  fi
19736
19737
19738  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
19739    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
19740
19741$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
19742
19743  fi
19744
19745
19746  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
19747    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
19748
19749$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
19750
19751  fi
19752
19753
19754  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
19755    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
19756
19757$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
19758
19759  fi
19760
19761
19762  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
19763    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
19764
19765$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
19766
19767  fi
19768
19769
19770  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
19771    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
19772
19773$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
19774
19775  fi
19776
19777
19778  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
19779    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
19780
19781$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
19782
19783  fi
19784
19785
19786  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
19787    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
19788
19789$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
19790
19791  fi
19792
19793
19794LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
19795
19796
19797cat >>confdefs.h <<_ACEOF
19798#define MAXSYSLOGMSGLEN 10240
19799_ACEOF
19800
19801
19802
19803
19804version=1.5.9
19805
19806date=`date +'%b %e, %Y'`
19807
19808
19809ac_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"
19810
19811ac_config_headers="$ac_config_headers config.h"
19812
19813cat >confcache <<\_ACEOF
19814# This file is a shell script that caches the results of configure
19815# tests run on this system so they can be shared between configure
19816# scripts and configure runs, see configure's option --config-cache.
19817# It is not useful on other systems.  If it contains results you don't
19818# want to keep, you may remove or edit it.
19819#
19820# config.status only pays attention to the cache file if you give it
19821# the --recheck option to rerun configure.
19822#
19823# `ac_cv_env_foo' variables (set or unset) will be overridden when
19824# loading this file, other *unset* `ac_cv_foo' will be assigned the
19825# following values.
19826
19827_ACEOF
19828
19829# The following way of writing the cache mishandles newlines in values,
19830# but we know of no workaround that is simple, portable, and efficient.
19831# So, we kill variables containing newlines.
19832# Ultrix sh set writes to stderr and can't be redirected directly,
19833# and sets the high bit in the cache file unless we assign to the vars.
19834(
19835  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19836    eval ac_val=\$$ac_var
19837    case $ac_val in #(
19838    *${as_nl}*)
19839      case $ac_var in #(
19840      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19842      esac
19843      case $ac_var in #(
19844      _ | IFS | as_nl) ;; #(
19845      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19846      *) { eval $ac_var=; unset $ac_var;} ;;
19847      esac ;;
19848    esac
19849  done
19850
19851  (set) 2>&1 |
19852    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19853    *${as_nl}ac_space=\ *)
19854      # `set' does not quote correctly, so add quotes: double-quote
19855      # substitution turns \\\\ into \\, and sed turns \\ into \.
19856      sed -n \
19857	"s/'/'\\\\''/g;
19858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19859      ;; #(
19860    *)
19861      # `set' quotes correctly as required by POSIX, so do not add quotes.
19862      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19863      ;;
19864    esac |
19865    sort
19866) |
19867  sed '
19868     /^ac_cv_env_/b end
19869     t clear
19870     :clear
19871     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19872     t end
19873     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19874     :end' >>confcache
19875if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19876  if test -w "$cache_file"; then
19877    if test "x$cache_file" != "x/dev/null"; then
19878      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19879$as_echo "$as_me: updating cache $cache_file" >&6;}
19880      if test ! -f "$cache_file" || test -h "$cache_file"; then
19881	cat confcache >"$cache_file"
19882      else
19883        case $cache_file in #(
19884        */* | ?:*)
19885	  mv -f confcache "$cache_file"$$ &&
19886	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19887        *)
19888	  mv -f confcache "$cache_file" ;;
19889	esac
19890      fi
19891    fi
19892  else
19893    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19894$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19895  fi
19896fi
19897rm -f confcache
19898
19899test "x$prefix" = xNONE && prefix=$ac_default_prefix
19900# Let make expand exec_prefix.
19901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19902
19903DEFS=-DHAVE_CONFIG_H
19904
19905ac_libobjs=
19906ac_ltlibobjs=
19907U=
19908for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19909  # 1. Remove the extension, and $U if already installed.
19910  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19911  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19912  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19913  #    will be set to the directory where LIBOBJS objects are built.
19914  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19915  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19916done
19917LIBOBJS=$ac_libobjs
19918
19919LTLIBOBJS=$ac_ltlibobjs
19920
19921
19922
19923: "${CONFIG_STATUS=./config.status}"
19924ac_write_fail=0
19925ac_clean_files_save=$ac_clean_files
19926ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19927{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19928$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19929as_write_fail=0
19930cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19931#! $SHELL
19932# Generated by $as_me.
19933# Run this file to recreate the current configuration.
19934# Compiler output produced by configure, useful for debugging
19935# configure, is in config.log if it exists.
19936
19937debug=false
19938ac_cs_recheck=false
19939ac_cs_silent=false
19940
19941SHELL=\${CONFIG_SHELL-$SHELL}
19942export SHELL
19943_ASEOF
19944cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19945## -------------------- ##
19946## M4sh Initialization. ##
19947## -------------------- ##
19948
19949# Be more Bourne compatible
19950DUALCASE=1; export DUALCASE # for MKS sh
19951if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19952  emulate sh
19953  NULLCMD=:
19954  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19955  # is contrary to our usage.  Disable this feature.
19956  alias -g '${1+"$@"}'='"$@"'
19957  setopt NO_GLOB_SUBST
19958else
19959  case `(set -o) 2>/dev/null` in #(
19960  *posix*) :
19961    set -o posix ;; #(
19962  *) :
19963     ;;
19964esac
19965fi
19966
19967
19968as_nl='
19969'
19970export as_nl
19971# Printing a long string crashes Solaris 7 /usr/bin/printf.
19972as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19974as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19975# Prefer a ksh shell builtin over an external printf program on Solaris,
19976# but without wasting forks for bash or zsh.
19977if test -z "$BASH_VERSION$ZSH_VERSION" \
19978    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19979  as_echo='print -r --'
19980  as_echo_n='print -rn --'
19981elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19982  as_echo='printf %s\n'
19983  as_echo_n='printf %s'
19984else
19985  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19986    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19987    as_echo_n='/usr/ucb/echo -n'
19988  else
19989    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19990    as_echo_n_body='eval
19991      arg=$1;
19992      case $arg in #(
19993      *"$as_nl"*)
19994	expr "X$arg" : "X\\(.*\\)$as_nl";
19995	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19996      esac;
19997      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19998    '
19999    export as_echo_n_body
20000    as_echo_n='sh -c $as_echo_n_body as_echo'
20001  fi
20002  export as_echo_body
20003  as_echo='sh -c $as_echo_body as_echo'
20004fi
20005
20006# The user is always right.
20007if test "${PATH_SEPARATOR+set}" != set; then
20008  PATH_SEPARATOR=:
20009  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20010    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20011      PATH_SEPARATOR=';'
20012  }
20013fi
20014
20015
20016# IFS
20017# We need space, tab and new line, in precisely that order.  Quoting is
20018# there to prevent editors from complaining about space-tab.
20019# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20020# splitting by setting IFS to empty value.)
20021IFS=" ""	$as_nl"
20022
20023# Find who we are.  Look in the path if we contain no directory separator.
20024as_myself=
20025case $0 in #((
20026  *[\\/]* ) as_myself=$0 ;;
20027  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028for as_dir in $PATH
20029do
20030  IFS=$as_save_IFS
20031  test -z "$as_dir" && as_dir=.
20032    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20033  done
20034IFS=$as_save_IFS
20035
20036     ;;
20037esac
20038# We did not find ourselves, most probably we were run as `sh COMMAND'
20039# in which case we are not to be found in the path.
20040if test "x$as_myself" = x; then
20041  as_myself=$0
20042fi
20043if test ! -f "$as_myself"; then
20044  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20045  exit 1
20046fi
20047
20048# Unset variables that we do not need and which cause bugs (e.g. in
20049# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20050# suppresses any "Segmentation fault" message there.  '((' could
20051# trigger a bug in pdksh 5.2.14.
20052for as_var in BASH_ENV ENV MAIL MAILPATH
20053do eval test x\${$as_var+set} = xset \
20054  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20055done
20056PS1='$ '
20057PS2='> '
20058PS4='+ '
20059
20060# NLS nuisances.
20061LC_ALL=C
20062export LC_ALL
20063LANGUAGE=C
20064export LANGUAGE
20065
20066# CDPATH.
20067(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20068
20069
20070# as_fn_error STATUS ERROR [LINENO LOG_FD]
20071# ----------------------------------------
20072# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20073# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20074# script with STATUS, using 1 if that was 0.
20075as_fn_error ()
20076{
20077  as_status=$1; test $as_status -eq 0 && as_status=1
20078  if test "$4"; then
20079    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20080    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20081  fi
20082  $as_echo "$as_me: error: $2" >&2
20083  as_fn_exit $as_status
20084} # as_fn_error
20085
20086
20087# as_fn_set_status STATUS
20088# -----------------------
20089# Set $? to STATUS, without forking.
20090as_fn_set_status ()
20091{
20092  return $1
20093} # as_fn_set_status
20094
20095# as_fn_exit STATUS
20096# -----------------
20097# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20098as_fn_exit ()
20099{
20100  set +e
20101  as_fn_set_status $1
20102  exit $1
20103} # as_fn_exit
20104
20105# as_fn_unset VAR
20106# ---------------
20107# Portably unset VAR.
20108as_fn_unset ()
20109{
20110  { eval $1=; unset $1;}
20111}
20112as_unset=as_fn_unset
20113# as_fn_append VAR VALUE
20114# ----------------------
20115# Append the text in VALUE to the end of the definition contained in VAR. Take
20116# advantage of any shell optimizations that allow amortized linear growth over
20117# repeated appends, instead of the typical quadratic growth present in naive
20118# implementations.
20119if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20120  eval 'as_fn_append ()
20121  {
20122    eval $1+=\$2
20123  }'
20124else
20125  as_fn_append ()
20126  {
20127    eval $1=\$$1\$2
20128  }
20129fi # as_fn_append
20130
20131# as_fn_arith ARG...
20132# ------------------
20133# Perform arithmetic evaluation on the ARGs, and store the result in the
20134# global $as_val. Take advantage of shells that can avoid forks. The arguments
20135# must be portable across $(()) and expr.
20136if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20137  eval 'as_fn_arith ()
20138  {
20139    as_val=$(( $* ))
20140  }'
20141else
20142  as_fn_arith ()
20143  {
20144    as_val=`expr "$@" || test $? -eq 1`
20145  }
20146fi # as_fn_arith
20147
20148
20149if expr a : '\(a\)' >/dev/null 2>&1 &&
20150   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20151  as_expr=expr
20152else
20153  as_expr=false
20154fi
20155
20156if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20157  as_basename=basename
20158else
20159  as_basename=false
20160fi
20161
20162if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20163  as_dirname=dirname
20164else
20165  as_dirname=false
20166fi
20167
20168as_me=`$as_basename -- "$0" ||
20169$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20170	 X"$0" : 'X\(//\)$' \| \
20171	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20172$as_echo X/"$0" |
20173    sed '/^.*\/\([^/][^/]*\)\/*$/{
20174	    s//\1/
20175	    q
20176	  }
20177	  /^X\/\(\/\/\)$/{
20178	    s//\1/
20179	    q
20180	  }
20181	  /^X\/\(\/\).*/{
20182	    s//\1/
20183	    q
20184	  }
20185	  s/.*/./; q'`
20186
20187# Avoid depending upon Character Ranges.
20188as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20189as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20190as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20191as_cr_digits='0123456789'
20192as_cr_alnum=$as_cr_Letters$as_cr_digits
20193
20194ECHO_C= ECHO_N= ECHO_T=
20195case `echo -n x` in #(((((
20196-n*)
20197  case `echo 'xy\c'` in
20198  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20199  xy)  ECHO_C='\c';;
20200  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20201       ECHO_T='	';;
20202  esac;;
20203*)
20204  ECHO_N='-n';;
20205esac
20206
20207rm -f conf$$ conf$$.exe conf$$.file
20208if test -d conf$$.dir; then
20209  rm -f conf$$.dir/conf$$.file
20210else
20211  rm -f conf$$.dir
20212  mkdir conf$$.dir 2>/dev/null
20213fi
20214if (echo >conf$$.file) 2>/dev/null; then
20215  if ln -s conf$$.file conf$$ 2>/dev/null; then
20216    as_ln_s='ln -s'
20217    # ... but there are two gotchas:
20218    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20219    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20220    # In both cases, we have to default to `cp -pR'.
20221    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20222      as_ln_s='cp -pR'
20223  elif ln conf$$.file conf$$ 2>/dev/null; then
20224    as_ln_s=ln
20225  else
20226    as_ln_s='cp -pR'
20227  fi
20228else
20229  as_ln_s='cp -pR'
20230fi
20231rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20232rmdir conf$$.dir 2>/dev/null
20233
20234
20235# as_fn_mkdir_p
20236# -------------
20237# Create "$as_dir" as a directory, including parents if necessary.
20238as_fn_mkdir_p ()
20239{
20240
20241  case $as_dir in #(
20242  -*) as_dir=./$as_dir;;
20243  esac
20244  test -d "$as_dir" || eval $as_mkdir_p || {
20245    as_dirs=
20246    while :; do
20247      case $as_dir in #(
20248      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20249      *) as_qdir=$as_dir;;
20250      esac
20251      as_dirs="'$as_qdir' $as_dirs"
20252      as_dir=`$as_dirname -- "$as_dir" ||
20253$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20254	 X"$as_dir" : 'X\(//\)[^/]' \| \
20255	 X"$as_dir" : 'X\(//\)$' \| \
20256	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20257$as_echo X"$as_dir" |
20258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20259	    s//\1/
20260	    q
20261	  }
20262	  /^X\(\/\/\)[^/].*/{
20263	    s//\1/
20264	    q
20265	  }
20266	  /^X\(\/\/\)$/{
20267	    s//\1/
20268	    q
20269	  }
20270	  /^X\(\/\).*/{
20271	    s//\1/
20272	    q
20273	  }
20274	  s/.*/./; q'`
20275      test -d "$as_dir" && break
20276    done
20277    test -z "$as_dirs" || eval "mkdir $as_dirs"
20278  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20279
20280
20281} # as_fn_mkdir_p
20282if mkdir -p . 2>/dev/null; then
20283  as_mkdir_p='mkdir -p "$as_dir"'
20284else
20285  test -d ./-p && rmdir ./-p
20286  as_mkdir_p=false
20287fi
20288
20289
20290# as_fn_executable_p FILE
20291# -----------------------
20292# Test if FILE is an executable regular file.
20293as_fn_executable_p ()
20294{
20295  test -f "$1" && test -x "$1"
20296} # as_fn_executable_p
20297as_test_x='test -x'
20298as_executable_p=as_fn_executable_p
20299
20300# Sed expression to map a string onto a valid CPP name.
20301as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20302
20303# Sed expression to map a string onto a valid variable name.
20304as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20305
20306
20307exec 6>&1
20308## ----------------------------------- ##
20309## Main body of $CONFIG_STATUS script. ##
20310## ----------------------------------- ##
20311_ASEOF
20312test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20313
20314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20315# Save the log message, to keep $0 and so on meaningful, and to
20316# report actual input values of CONFIG_FILES etc. instead of their
20317# values after options handling.
20318ac_log="
20319This file was extended by unbound $as_me 1.5.9, which was
20320generated by GNU Autoconf 2.69.  Invocation command line was
20321
20322  CONFIG_FILES    = $CONFIG_FILES
20323  CONFIG_HEADERS  = $CONFIG_HEADERS
20324  CONFIG_LINKS    = $CONFIG_LINKS
20325  CONFIG_COMMANDS = $CONFIG_COMMANDS
20326  $ $0 $@
20327
20328on `(hostname || uname -n) 2>/dev/null | sed 1q`
20329"
20330
20331_ACEOF
20332
20333case $ac_config_files in *"
20334"*) set x $ac_config_files; shift; ac_config_files=$*;;
20335esac
20336
20337case $ac_config_headers in *"
20338"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20339esac
20340
20341
20342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20343# Files that config.status was made for.
20344config_files="$ac_config_files"
20345config_headers="$ac_config_headers"
20346config_commands="$ac_config_commands"
20347
20348_ACEOF
20349
20350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20351ac_cs_usage="\
20352\`$as_me' instantiates files and other configuration actions
20353from templates according to the current configuration.  Unless the files
20354and actions are specified as TAGs, all are instantiated by default.
20355
20356Usage: $0 [OPTION]... [TAG]...
20357
20358  -h, --help       print this help, then exit
20359  -V, --version    print version number and configuration settings, then exit
20360      --config     print configuration, then exit
20361  -q, --quiet, --silent
20362                   do not print progress messages
20363  -d, --debug      don't remove temporary files
20364      --recheck    update $as_me by reconfiguring in the same conditions
20365      --file=FILE[:TEMPLATE]
20366                   instantiate the configuration file FILE
20367      --header=FILE[:TEMPLATE]
20368                   instantiate the configuration header FILE
20369
20370Configuration files:
20371$config_files
20372
20373Configuration headers:
20374$config_headers
20375
20376Configuration commands:
20377$config_commands
20378
20379Report bugs to <unbound-bugs@nlnetlabs.nl>."
20380
20381_ACEOF
20382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20383ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20384ac_cs_version="\\
20385unbound config.status 1.5.9
20386configured by $0, generated by GNU Autoconf 2.69,
20387  with options \\"\$ac_cs_config\\"
20388
20389Copyright (C) 2012 Free Software Foundation, Inc.
20390This config.status script is free software; the Free Software Foundation
20391gives unlimited permission to copy, distribute and modify it."
20392
20393ac_pwd='$ac_pwd'
20394srcdir='$srcdir'
20395AWK='$AWK'
20396test -n "\$AWK" || AWK=awk
20397_ACEOF
20398
20399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20400# The default lists apply if the user does not specify any file.
20401ac_need_defaults=:
20402while test $# != 0
20403do
20404  case $1 in
20405  --*=?*)
20406    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20407    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20408    ac_shift=:
20409    ;;
20410  --*=)
20411    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20412    ac_optarg=
20413    ac_shift=:
20414    ;;
20415  *)
20416    ac_option=$1
20417    ac_optarg=$2
20418    ac_shift=shift
20419    ;;
20420  esac
20421
20422  case $ac_option in
20423  # Handling of the options.
20424  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20425    ac_cs_recheck=: ;;
20426  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20427    $as_echo "$ac_cs_version"; exit ;;
20428  --config | --confi | --conf | --con | --co | --c )
20429    $as_echo "$ac_cs_config"; exit ;;
20430  --debug | --debu | --deb | --de | --d | -d )
20431    debug=: ;;
20432  --file | --fil | --fi | --f )
20433    $ac_shift
20434    case $ac_optarg in
20435    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20436    '') as_fn_error $? "missing file argument" ;;
20437    esac
20438    as_fn_append CONFIG_FILES " '$ac_optarg'"
20439    ac_need_defaults=false;;
20440  --header | --heade | --head | --hea )
20441    $ac_shift
20442    case $ac_optarg in
20443    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20444    esac
20445    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20446    ac_need_defaults=false;;
20447  --he | --h)
20448    # Conflict between --help and --header
20449    as_fn_error $? "ambiguous option: \`$1'
20450Try \`$0 --help' for more information.";;
20451  --help | --hel | -h )
20452    $as_echo "$ac_cs_usage"; exit ;;
20453  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20454  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20455    ac_cs_silent=: ;;
20456
20457  # This is an error.
20458  -*) as_fn_error $? "unrecognized option: \`$1'
20459Try \`$0 --help' for more information." ;;
20460
20461  *) as_fn_append ac_config_targets " $1"
20462     ac_need_defaults=false ;;
20463
20464  esac
20465  shift
20466done
20467
20468ac_configure_extra_args=
20469
20470if $ac_cs_silent; then
20471  exec 6>/dev/null
20472  ac_configure_extra_args="$ac_configure_extra_args --silent"
20473fi
20474
20475_ACEOF
20476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20477if \$ac_cs_recheck; then
20478  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20479  shift
20480  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20481  CONFIG_SHELL='$SHELL'
20482  export CONFIG_SHELL
20483  exec "\$@"
20484fi
20485
20486_ACEOF
20487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20488exec 5>>config.log
20489{
20490  echo
20491  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20492## Running $as_me. ##
20493_ASBOX
20494  $as_echo "$ac_log"
20495} >&5
20496
20497_ACEOF
20498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20499#
20500# INIT-COMMANDS
20501#
20502
20503
20504# The HP-UX ksh and POSIX shell print the target directory to stdout
20505# if CDPATH is set.
20506(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20507
20508sed_quote_subst='$sed_quote_subst'
20509double_quote_subst='$double_quote_subst'
20510delay_variable_subst='$delay_variable_subst'
20511macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20512macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20513enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20514enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20515pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20516enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20517shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20518SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20519ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20520PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20521host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20522host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20523host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20524build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20525build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20526build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20527SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20528Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20529GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20530EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20531FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20532LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20533NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20534LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20535max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20536ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20537exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20538lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20539lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20540lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20541lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20542lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20543reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20544reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20545OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20546deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20547file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20548file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20549want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20550DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20551sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20552AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20553AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20554archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20555STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20556RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20557old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20558old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20559old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20560lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20561CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20562CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20563compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20564GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20565lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20566lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20567lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20568lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20569lt_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"`'
20570lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20571nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20572lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20573lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20574objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20575MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20576lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20577lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20578lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20579lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20580lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20581need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20582MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20583DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20584NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20585LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20586OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20587OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20588libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20589shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20590extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20591archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20592enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20593export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20594whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20595compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20596old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20597old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20598archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20599archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20600module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20601module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20602with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20603allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20604no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20605hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20606hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20607hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20608hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20609hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20610hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20611hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20612inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20613link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20614always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20615export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20616exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20617include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20618prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20619postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20620file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20621variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20622need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20623need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20624version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20625runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20626shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20627shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20628libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20629library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20630soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20631install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20632postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20633postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20634finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20635finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20636hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20637sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20638configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20639configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20640hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20641enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20642enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20643enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20644old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20645striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20646
20647LTCC='$LTCC'
20648LTCFLAGS='$LTCFLAGS'
20649compiler='$compiler_DEFAULT'
20650
20651# A function that is used when there is no print builtin or printf.
20652func_fallback_echo ()
20653{
20654  eval 'cat <<_LTECHO_EOF
20655\$1
20656_LTECHO_EOF'
20657}
20658
20659# Quote evaled strings.
20660for var in SHELL \
20661ECHO \
20662PATH_SEPARATOR \
20663SED \
20664GREP \
20665EGREP \
20666FGREP \
20667LD \
20668NM \
20669LN_S \
20670lt_SP2NL \
20671lt_NL2SP \
20672reload_flag \
20673OBJDUMP \
20674deplibs_check_method \
20675file_magic_cmd \
20676file_magic_glob \
20677want_nocaseglob \
20678DLLTOOL \
20679sharedlib_from_linklib_cmd \
20680AR \
20681AR_FLAGS \
20682archiver_list_spec \
20683STRIP \
20684RANLIB \
20685CC \
20686CFLAGS \
20687compiler \
20688lt_cv_sys_global_symbol_pipe \
20689lt_cv_sys_global_symbol_to_cdecl \
20690lt_cv_sys_global_symbol_to_import \
20691lt_cv_sys_global_symbol_to_c_name_address \
20692lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20693lt_cv_nm_interface \
20694nm_file_list_spec \
20695lt_cv_truncate_bin \
20696lt_prog_compiler_no_builtin_flag \
20697lt_prog_compiler_pic \
20698lt_prog_compiler_wl \
20699lt_prog_compiler_static \
20700lt_cv_prog_compiler_c_o \
20701need_locks \
20702MANIFEST_TOOL \
20703DSYMUTIL \
20704NMEDIT \
20705LIPO \
20706OTOOL \
20707OTOOL64 \
20708shrext_cmds \
20709export_dynamic_flag_spec \
20710whole_archive_flag_spec \
20711compiler_needs_object \
20712with_gnu_ld \
20713allow_undefined_flag \
20714no_undefined_flag \
20715hardcode_libdir_flag_spec \
20716hardcode_libdir_separator \
20717exclude_expsyms \
20718include_expsyms \
20719file_list_spec \
20720variables_saved_for_relink \
20721libname_spec \
20722library_names_spec \
20723soname_spec \
20724install_override_mode \
20725finish_eval \
20726old_striplib \
20727striplib; do
20728    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20729    *[\\\\\\\`\\"\\\$]*)
20730      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20731      ;;
20732    *)
20733      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20734      ;;
20735    esac
20736done
20737
20738# Double-quote double-evaled strings.
20739for var in reload_cmds \
20740old_postinstall_cmds \
20741old_postuninstall_cmds \
20742old_archive_cmds \
20743extract_expsyms_cmds \
20744old_archive_from_new_cmds \
20745old_archive_from_expsyms_cmds \
20746archive_cmds \
20747archive_expsym_cmds \
20748module_cmds \
20749module_expsym_cmds \
20750export_symbols_cmds \
20751prelink_cmds \
20752postlink_cmds \
20753postinstall_cmds \
20754postuninstall_cmds \
20755finish_cmds \
20756sys_lib_search_path_spec \
20757configure_time_dlsearch_path \
20758configure_time_lt_sys_library_path; do
20759    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20760    *[\\\\\\\`\\"\\\$]*)
20761      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20762      ;;
20763    *)
20764      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20765      ;;
20766    esac
20767done
20768
20769ac_aux_dir='$ac_aux_dir'
20770
20771# See if we are running on zsh, and set the options that allow our
20772# commands through without removal of \ escapes INIT.
20773if test -n "\${ZSH_VERSION+set}"; then
20774   setopt NO_GLOB_SUBST
20775fi
20776
20777
20778    PACKAGE='$PACKAGE'
20779    VERSION='$VERSION'
20780    RM='$RM'
20781    ofile='$ofile'
20782
20783
20784
20785
20786_ACEOF
20787
20788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20789
20790# Handling of arguments.
20791for ac_config_target in $ac_config_targets
20792do
20793  case $ac_config_target in
20794    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20795    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20796    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20797    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
20798    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
20799    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
20800    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
20801    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
20802    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
20803    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
20804    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
20805    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
20806    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
20807    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20808
20809  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20810  esac
20811done
20812
20813
20814# If the user did not use the arguments to specify the items to instantiate,
20815# then the envvar interface is used.  Set only those that are not.
20816# We use the long form for the default assignment because of an extremely
20817# bizarre bug on SunOS 4.1.3.
20818if $ac_need_defaults; then
20819  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20820  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20821  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20822fi
20823
20824# Have a temporary directory for convenience.  Make it in the build tree
20825# simply because there is no reason against having it here, and in addition,
20826# creating and moving files from /tmp can sometimes cause problems.
20827# Hook for its removal unless debugging.
20828# Note that there is a small window in which the directory will not be cleaned:
20829# after its creation but before its name has been assigned to `$tmp'.
20830$debug ||
20831{
20832  tmp= ac_tmp=
20833  trap 'exit_status=$?
20834  : "${ac_tmp:=$tmp}"
20835  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20836' 0
20837  trap 'as_fn_exit 1' 1 2 13 15
20838}
20839# Create a (secure) tmp directory for tmp files.
20840
20841{
20842  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20843  test -d "$tmp"
20844}  ||
20845{
20846  tmp=./conf$$-$RANDOM
20847  (umask 077 && mkdir "$tmp")
20848} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20849ac_tmp=$tmp
20850
20851# Set up the scripts for CONFIG_FILES section.
20852# No need to generate them if there are no CONFIG_FILES.
20853# This happens for instance with `./config.status config.h'.
20854if test -n "$CONFIG_FILES"; then
20855
20856
20857ac_cr=`echo X | tr X '\015'`
20858# On cygwin, bash can eat \r inside `` if the user requested igncr.
20859# But we know of no other shell where ac_cr would be empty at this
20860# point, so we can use a bashism as a fallback.
20861if test "x$ac_cr" = x; then
20862  eval ac_cr=\$\'\\r\'
20863fi
20864ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20865if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20866  ac_cs_awk_cr='\\r'
20867else
20868  ac_cs_awk_cr=$ac_cr
20869fi
20870
20871echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20872_ACEOF
20873
20874
20875{
20876  echo "cat >conf$$subs.awk <<_ACEOF" &&
20877  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20878  echo "_ACEOF"
20879} >conf$$subs.sh ||
20880  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20881ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20882ac_delim='%!_!# '
20883for ac_last_try in false false false false false :; do
20884  . ./conf$$subs.sh ||
20885    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20886
20887  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20888  if test $ac_delim_n = $ac_delim_num; then
20889    break
20890  elif $ac_last_try; then
20891    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20892  else
20893    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20894  fi
20895done
20896rm -f conf$$subs.sh
20897
20898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20899cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20900_ACEOF
20901sed -n '
20902h
20903s/^/S["/; s/!.*/"]=/
20904p
20905g
20906s/^[^!]*!//
20907:repl
20908t repl
20909s/'"$ac_delim"'$//
20910t delim
20911:nl
20912h
20913s/\(.\{148\}\)..*/\1/
20914t more1
20915s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20916p
20917n
20918b repl
20919:more1
20920s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20921p
20922g
20923s/.\{148\}//
20924t nl
20925:delim
20926h
20927s/\(.\{148\}\)..*/\1/
20928t more2
20929s/["\\]/\\&/g; s/^/"/; s/$/"/
20930p
20931b
20932:more2
20933s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20934p
20935g
20936s/.\{148\}//
20937t delim
20938' <conf$$subs.awk | sed '
20939/^[^""]/{
20940  N
20941  s/\n//
20942}
20943' >>$CONFIG_STATUS || ac_write_fail=1
20944rm -f conf$$subs.awk
20945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20946_ACAWK
20947cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20948  for (key in S) S_is_set[key] = 1
20949  FS = ""
20950
20951}
20952{
20953  line = $ 0
20954  nfields = split(line, field, "@")
20955  substed = 0
20956  len = length(field[1])
20957  for (i = 2; i < nfields; i++) {
20958    key = field[i]
20959    keylen = length(key)
20960    if (S_is_set[key]) {
20961      value = S[key]
20962      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20963      len += length(value) + length(field[++i])
20964      substed = 1
20965    } else
20966      len += 1 + keylen
20967  }
20968
20969  print line
20970}
20971
20972_ACAWK
20973_ACEOF
20974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20976  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20977else
20978  cat
20979fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20980  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20981_ACEOF
20982
20983# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20984# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20985# trailing colons and then remove the whole line if VPATH becomes empty
20986# (actually we leave an empty line to preserve line numbers).
20987if test "x$srcdir" = x.; then
20988  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20989h
20990s///
20991s/^/:/
20992s/[	 ]*$/:/
20993s/:\$(srcdir):/:/g
20994s/:\${srcdir}:/:/g
20995s/:@srcdir@:/:/g
20996s/^:*//
20997s/:*$//
20998x
20999s/\(=[	 ]*\).*/\1/
21000G
21001s/\n//
21002s/^[^=]*=[	 ]*$//
21003}'
21004fi
21005
21006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21007fi # test -n "$CONFIG_FILES"
21008
21009# Set up the scripts for CONFIG_HEADERS section.
21010# No need to generate them if there are no CONFIG_HEADERS.
21011# This happens for instance with `./config.status Makefile'.
21012if test -n "$CONFIG_HEADERS"; then
21013cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21014BEGIN {
21015_ACEOF
21016
21017# Transform confdefs.h into an awk script `defines.awk', embedded as
21018# here-document in config.status, that substitutes the proper values into
21019# config.h.in to produce config.h.
21020
21021# Create a delimiter string that does not exist in confdefs.h, to ease
21022# handling of long lines.
21023ac_delim='%!_!# '
21024for ac_last_try in false false :; do
21025  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21026  if test -z "$ac_tt"; then
21027    break
21028  elif $ac_last_try; then
21029    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21030  else
21031    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21032  fi
21033done
21034
21035# For the awk script, D is an array of macro values keyed by name,
21036# likewise P contains macro parameters if any.  Preserve backslash
21037# newline sequences.
21038
21039ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21040sed -n '
21041s/.\{148\}/&'"$ac_delim"'/g
21042t rset
21043:rset
21044s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21045t def
21046d
21047:def
21048s/\\$//
21049t bsnl
21050s/["\\]/\\&/g
21051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21052D["\1"]=" \3"/p
21053s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21054d
21055:bsnl
21056s/["\\]/\\&/g
21057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21058D["\1"]=" \3\\\\\\n"\\/p
21059t cont
21060s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21061t cont
21062d
21063:cont
21064n
21065s/.\{148\}/&'"$ac_delim"'/g
21066t clear
21067:clear
21068s/\\$//
21069t bsnlc
21070s/["\\]/\\&/g; s/^/"/; s/$/"/p
21071d
21072:bsnlc
21073s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21074b cont
21075' <confdefs.h | sed '
21076s/'"$ac_delim"'/"\\\
21077"/g' >>$CONFIG_STATUS || ac_write_fail=1
21078
21079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21080  for (key in D) D_is_set[key] = 1
21081  FS = ""
21082}
21083/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21084  line = \$ 0
21085  split(line, arg, " ")
21086  if (arg[1] == "#") {
21087    defundef = arg[2]
21088    mac1 = arg[3]
21089  } else {
21090    defundef = substr(arg[1], 2)
21091    mac1 = arg[2]
21092  }
21093  split(mac1, mac2, "(") #)
21094  macro = mac2[1]
21095  prefix = substr(line, 1, index(line, defundef) - 1)
21096  if (D_is_set[macro]) {
21097    # Preserve the white space surrounding the "#".
21098    print prefix "define", macro P[macro] D[macro]
21099    next
21100  } else {
21101    # Replace #undef with comments.  This is necessary, for example,
21102    # in the case of _POSIX_SOURCE, which is predefined and required
21103    # on some systems where configure will not decide to define it.
21104    if (defundef == "undef") {
21105      print "/*", prefix defundef, macro, "*/"
21106      next
21107    }
21108  }
21109}
21110{ print }
21111_ACAWK
21112_ACEOF
21113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21114  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21115fi # test -n "$CONFIG_HEADERS"
21116
21117
21118eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21119shift
21120for ac_tag
21121do
21122  case $ac_tag in
21123  :[FHLC]) ac_mode=$ac_tag; continue;;
21124  esac
21125  case $ac_mode$ac_tag in
21126  :[FHL]*:*);;
21127  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21128  :[FH]-) ac_tag=-:-;;
21129  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21130  esac
21131  ac_save_IFS=$IFS
21132  IFS=:
21133  set x $ac_tag
21134  IFS=$ac_save_IFS
21135  shift
21136  ac_file=$1
21137  shift
21138
21139  case $ac_mode in
21140  :L) ac_source=$1;;
21141  :[FH])
21142    ac_file_inputs=
21143    for ac_f
21144    do
21145      case $ac_f in
21146      -) ac_f="$ac_tmp/stdin";;
21147      *) # Look for the file first in the build tree, then in the source tree
21148	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21149	 # because $ac_f cannot contain `:'.
21150	 test -f "$ac_f" ||
21151	   case $ac_f in
21152	   [\\/$]*) false;;
21153	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21154	   esac ||
21155	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21156      esac
21157      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21158      as_fn_append ac_file_inputs " '$ac_f'"
21159    done
21160
21161    # Let's still pretend it is `configure' which instantiates (i.e., don't
21162    # use $as_me), people would be surprised to read:
21163    #    /* config.h.  Generated by config.status.  */
21164    configure_input='Generated from '`
21165	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21166	`' by configure.'
21167    if test x"$ac_file" != x-; then
21168      configure_input="$ac_file.  $configure_input"
21169      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21170$as_echo "$as_me: creating $ac_file" >&6;}
21171    fi
21172    # Neutralize special characters interpreted by sed in replacement strings.
21173    case $configure_input in #(
21174    *\&* | *\|* | *\\* )
21175       ac_sed_conf_input=`$as_echo "$configure_input" |
21176       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21177    *) ac_sed_conf_input=$configure_input;;
21178    esac
21179
21180    case $ac_tag in
21181    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21182      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21183    esac
21184    ;;
21185  esac
21186
21187  ac_dir=`$as_dirname -- "$ac_file" ||
21188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21189	 X"$ac_file" : 'X\(//\)[^/]' \| \
21190	 X"$ac_file" : 'X\(//\)$' \| \
21191	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21192$as_echo X"$ac_file" |
21193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21194	    s//\1/
21195	    q
21196	  }
21197	  /^X\(\/\/\)[^/].*/{
21198	    s//\1/
21199	    q
21200	  }
21201	  /^X\(\/\/\)$/{
21202	    s//\1/
21203	    q
21204	  }
21205	  /^X\(\/\).*/{
21206	    s//\1/
21207	    q
21208	  }
21209	  s/.*/./; q'`
21210  as_dir="$ac_dir"; as_fn_mkdir_p
21211  ac_builddir=.
21212
21213case "$ac_dir" in
21214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21215*)
21216  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21217  # A ".." for each directory in $ac_dir_suffix.
21218  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21219  case $ac_top_builddir_sub in
21220  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21221  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21222  esac ;;
21223esac
21224ac_abs_top_builddir=$ac_pwd
21225ac_abs_builddir=$ac_pwd$ac_dir_suffix
21226# for backward compatibility:
21227ac_top_builddir=$ac_top_build_prefix
21228
21229case $srcdir in
21230  .)  # We are building in place.
21231    ac_srcdir=.
21232    ac_top_srcdir=$ac_top_builddir_sub
21233    ac_abs_top_srcdir=$ac_pwd ;;
21234  [\\/]* | ?:[\\/]* )  # Absolute name.
21235    ac_srcdir=$srcdir$ac_dir_suffix;
21236    ac_top_srcdir=$srcdir
21237    ac_abs_top_srcdir=$srcdir ;;
21238  *) # Relative name.
21239    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21240    ac_top_srcdir=$ac_top_build_prefix$srcdir
21241    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21242esac
21243ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21244
21245
21246  case $ac_mode in
21247  :F)
21248  #
21249  # CONFIG_FILE
21250  #
21251
21252_ACEOF
21253
21254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21255# If the template does not know about datarootdir, expand it.
21256# FIXME: This hack should be removed a few years after 2.60.
21257ac_datarootdir_hack=; ac_datarootdir_seen=
21258ac_sed_dataroot='
21259/datarootdir/ {
21260  p
21261  q
21262}
21263/@datadir@/p
21264/@docdir@/p
21265/@infodir@/p
21266/@localedir@/p
21267/@mandir@/p'
21268case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21269*datarootdir*) ac_datarootdir_seen=yes;;
21270*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21271  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21272$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21273_ACEOF
21274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21275  ac_datarootdir_hack='
21276  s&@datadir@&$datadir&g
21277  s&@docdir@&$docdir&g
21278  s&@infodir@&$infodir&g
21279  s&@localedir@&$localedir&g
21280  s&@mandir@&$mandir&g
21281  s&\\\${datarootdir}&$datarootdir&g' ;;
21282esac
21283_ACEOF
21284
21285# Neutralize VPATH when `$srcdir' = `.'.
21286# Shell code in configure.ac might set extrasub.
21287# FIXME: do we really want to maintain this feature?
21288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21289ac_sed_extra="$ac_vpsub
21290$extrasub
21291_ACEOF
21292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293:t
21294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21295s|@configure_input@|$ac_sed_conf_input|;t t
21296s&@top_builddir@&$ac_top_builddir_sub&;t t
21297s&@top_build_prefix@&$ac_top_build_prefix&;t t
21298s&@srcdir@&$ac_srcdir&;t t
21299s&@abs_srcdir@&$ac_abs_srcdir&;t t
21300s&@top_srcdir@&$ac_top_srcdir&;t t
21301s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21302s&@builddir@&$ac_builddir&;t t
21303s&@abs_builddir@&$ac_abs_builddir&;t t
21304s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21305$ac_datarootdir_hack
21306"
21307eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21308  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21309
21310test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21311  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21312  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21313      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21314  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21315which seems to be undefined.  Please make sure it is defined" >&5
21316$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21317which seems to be undefined.  Please make sure it is defined" >&2;}
21318
21319  rm -f "$ac_tmp/stdin"
21320  case $ac_file in
21321  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21322  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21323  esac \
21324  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21325 ;;
21326  :H)
21327  #
21328  # CONFIG_HEADER
21329  #
21330  if test x"$ac_file" != x-; then
21331    {
21332      $as_echo "/* $configure_input  */" \
21333      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21334    } >"$ac_tmp/config.h" \
21335      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21336    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21337      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21338$as_echo "$as_me: $ac_file is unchanged" >&6;}
21339    else
21340      rm -f "$ac_file"
21341      mv "$ac_tmp/config.h" "$ac_file" \
21342	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21343    fi
21344  else
21345    $as_echo "/* $configure_input  */" \
21346      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21347      || as_fn_error $? "could not create -" "$LINENO" 5
21348  fi
21349 ;;
21350
21351  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21352$as_echo "$as_me: executing $ac_file commands" >&6;}
21353 ;;
21354  esac
21355
21356
21357  case $ac_file$ac_mode in
21358    "libtool":C)
21359
21360    # See if we are running on zsh, and set the options that allow our
21361    # commands through without removal of \ escapes.
21362    if test -n "${ZSH_VERSION+set}"; then
21363      setopt NO_GLOB_SUBST
21364    fi
21365
21366    cfgfile=${ofile}T
21367    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21368    $RM "$cfgfile"
21369
21370    cat <<_LT_EOF >> "$cfgfile"
21371#! $SHELL
21372# Generated automatically by $as_me ($PACKAGE) $VERSION
21373# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21374# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21375
21376# Provide generalized library-building support services.
21377# Written by Gordon Matzigkeit, 1996
21378
21379# Copyright (C) 2014 Free Software Foundation, Inc.
21380# This is free software; see the source for copying conditions.  There is NO
21381# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21382
21383# GNU Libtool is free software; you can redistribute it and/or modify
21384# it under the terms of the GNU General Public License as published by
21385# the Free Software Foundation; either version 2 of of the License, or
21386# (at your option) any later version.
21387#
21388# As a special exception to the GNU General Public License, if you
21389# distribute this file as part of a program or library that is built
21390# using GNU Libtool, you may include this file under the  same
21391# distribution terms that you use for the rest of that program.
21392#
21393# GNU Libtool is distributed in the hope that it will be useful, but
21394# WITHOUT ANY WARRANTY; without even the implied warranty of
21395# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21396# GNU General Public License for more details.
21397#
21398# You should have received a copy of the GNU General Public License
21399# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21400
21401
21402# The names of the tagged configurations supported by this script.
21403available_tags=''
21404
21405# Configured defaults for sys_lib_dlsearch_path munging.
21406: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21407
21408# ### BEGIN LIBTOOL CONFIG
21409
21410# Which release of libtool.m4 was used?
21411macro_version=$macro_version
21412macro_revision=$macro_revision
21413
21414# Whether or not to build shared libraries.
21415build_libtool_libs=$enable_shared
21416
21417# Whether or not to build static libraries.
21418build_old_libs=$enable_static
21419
21420# What type of objects to build.
21421pic_mode=$pic_mode
21422
21423# Whether or not to optimize for fast installation.
21424fast_install=$enable_fast_install
21425
21426# Shared archive member basename,for filename based shared library versioning on AIX.
21427shared_archive_member_spec=$shared_archive_member_spec
21428
21429# Shell to use when invoking shell scripts.
21430SHELL=$lt_SHELL
21431
21432# An echo program that protects backslashes.
21433ECHO=$lt_ECHO
21434
21435# The PATH separator for the build system.
21436PATH_SEPARATOR=$lt_PATH_SEPARATOR
21437
21438# The host system.
21439host_alias=$host_alias
21440host=$host
21441host_os=$host_os
21442
21443# The build system.
21444build_alias=$build_alias
21445build=$build
21446build_os=$build_os
21447
21448# A sed program that does not truncate output.
21449SED=$lt_SED
21450
21451# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21452Xsed="\$SED -e 1s/^X//"
21453
21454# A grep program that handles long lines.
21455GREP=$lt_GREP
21456
21457# An ERE matcher.
21458EGREP=$lt_EGREP
21459
21460# A literal string matcher.
21461FGREP=$lt_FGREP
21462
21463# A BSD- or MS-compatible name lister.
21464NM=$lt_NM
21465
21466# Whether we need soft or hard links.
21467LN_S=$lt_LN_S
21468
21469# What is the maximum length of a command?
21470max_cmd_len=$max_cmd_len
21471
21472# Object file suffix (normally "o").
21473objext=$ac_objext
21474
21475# Executable file suffix (normally "").
21476exeext=$exeext
21477
21478# whether the shell understands "unset".
21479lt_unset=$lt_unset
21480
21481# turn spaces into newlines.
21482SP2NL=$lt_lt_SP2NL
21483
21484# turn newlines into spaces.
21485NL2SP=$lt_lt_NL2SP
21486
21487# convert \$build file names to \$host format.
21488to_host_file_cmd=$lt_cv_to_host_file_cmd
21489
21490# convert \$build files to toolchain format.
21491to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21492
21493# An object symbol dumper.
21494OBJDUMP=$lt_OBJDUMP
21495
21496# Method to check whether dependent libraries are shared objects.
21497deplibs_check_method=$lt_deplibs_check_method
21498
21499# Command to use when deplibs_check_method = "file_magic".
21500file_magic_cmd=$lt_file_magic_cmd
21501
21502# How to find potential files when deplibs_check_method = "file_magic".
21503file_magic_glob=$lt_file_magic_glob
21504
21505# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21506want_nocaseglob=$lt_want_nocaseglob
21507
21508# DLL creation program.
21509DLLTOOL=$lt_DLLTOOL
21510
21511# Command to associate shared and link libraries.
21512sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21513
21514# The archiver.
21515AR=$lt_AR
21516
21517# Flags to create an archive.
21518AR_FLAGS=$lt_AR_FLAGS
21519
21520# How to feed a file listing to the archiver.
21521archiver_list_spec=$lt_archiver_list_spec
21522
21523# A symbol stripping program.
21524STRIP=$lt_STRIP
21525
21526# Commands used to install an old-style archive.
21527RANLIB=$lt_RANLIB
21528old_postinstall_cmds=$lt_old_postinstall_cmds
21529old_postuninstall_cmds=$lt_old_postuninstall_cmds
21530
21531# Whether to use a lock for old archive extraction.
21532lock_old_archive_extraction=$lock_old_archive_extraction
21533
21534# A C compiler.
21535LTCC=$lt_CC
21536
21537# LTCC compiler flags.
21538LTCFLAGS=$lt_CFLAGS
21539
21540# Take the output of nm and produce a listing of raw symbols and C names.
21541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21542
21543# Transform the output of nm in a proper C declaration.
21544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21545
21546# Transform the output of nm into a list of symbols to manually relocate.
21547global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21548
21549# Transform the output of nm in a C name address pair.
21550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21551
21552# Transform the output of nm in a C name address pair when lib prefix is needed.
21553global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21554
21555# The name lister interface.
21556nm_interface=$lt_lt_cv_nm_interface
21557
21558# Specify filename containing input files for \$NM.
21559nm_file_list_spec=$lt_nm_file_list_spec
21560
21561# The root where to search for dependent libraries,and where our libraries should be installed.
21562lt_sysroot=$lt_sysroot
21563
21564# Command to truncate a binary pipe.
21565lt_truncate_bin=$lt_lt_cv_truncate_bin
21566
21567# The name of the directory that contains temporary libtool files.
21568objdir=$objdir
21569
21570# Used to examine libraries when file_magic_cmd begins with "file".
21571MAGIC_CMD=$MAGIC_CMD
21572
21573# Must we lock files when doing compilation?
21574need_locks=$lt_need_locks
21575
21576# Manifest tool.
21577MANIFEST_TOOL=$lt_MANIFEST_TOOL
21578
21579# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21580DSYMUTIL=$lt_DSYMUTIL
21581
21582# Tool to change global to local symbols on Mac OS X.
21583NMEDIT=$lt_NMEDIT
21584
21585# Tool to manipulate fat objects and archives on Mac OS X.
21586LIPO=$lt_LIPO
21587
21588# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21589OTOOL=$lt_OTOOL
21590
21591# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21592OTOOL64=$lt_OTOOL64
21593
21594# Old archive suffix (normally "a").
21595libext=$libext
21596
21597# Shared library suffix (normally ".so").
21598shrext_cmds=$lt_shrext_cmds
21599
21600# The commands to extract the exported symbol list from a shared archive.
21601extract_expsyms_cmds=$lt_extract_expsyms_cmds
21602
21603# Variables whose values should be saved in libtool wrapper scripts and
21604# restored at link time.
21605variables_saved_for_relink=$lt_variables_saved_for_relink
21606
21607# Do we need the "lib" prefix for modules?
21608need_lib_prefix=$need_lib_prefix
21609
21610# Do we need a version for libraries?
21611need_version=$need_version
21612
21613# Library versioning type.
21614version_type=$version_type
21615
21616# Shared library runtime path variable.
21617runpath_var=$runpath_var
21618
21619# Shared library path variable.
21620shlibpath_var=$shlibpath_var
21621
21622# Is shlibpath searched before the hard-coded library search path?
21623shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21624
21625# Format of library name prefix.
21626libname_spec=$lt_libname_spec
21627
21628# List of archive names.  First name is the real one, the rest are links.
21629# The last name is the one that the linker finds with -lNAME
21630library_names_spec=$lt_library_names_spec
21631
21632# The coded name of the library, if different from the real name.
21633soname_spec=$lt_soname_spec
21634
21635# Permission mode override for installation of shared libraries.
21636install_override_mode=$lt_install_override_mode
21637
21638# Command to use after installation of a shared archive.
21639postinstall_cmds=$lt_postinstall_cmds
21640
21641# Command to use after uninstallation of a shared archive.
21642postuninstall_cmds=$lt_postuninstall_cmds
21643
21644# Commands used to finish a libtool library installation in a directory.
21645finish_cmds=$lt_finish_cmds
21646
21647# As "finish_cmds", except a single script fragment to be evaled but
21648# not shown.
21649finish_eval=$lt_finish_eval
21650
21651# Whether we should hardcode library paths into libraries.
21652hardcode_into_libs=$hardcode_into_libs
21653
21654# Compile-time system search path for libraries.
21655sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21656
21657# Detected run-time system search path for libraries.
21658sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21659
21660# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21661configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21662
21663# Whether dlopen is supported.
21664dlopen_support=$enable_dlopen
21665
21666# Whether dlopen of programs is supported.
21667dlopen_self=$enable_dlopen_self
21668
21669# Whether dlopen of statically linked programs is supported.
21670dlopen_self_static=$enable_dlopen_self_static
21671
21672# Commands to strip libraries.
21673old_striplib=$lt_old_striplib
21674striplib=$lt_striplib
21675
21676
21677# The linker used to build libraries.
21678LD=$lt_LD
21679
21680# How to create reloadable object files.
21681reload_flag=$lt_reload_flag
21682reload_cmds=$lt_reload_cmds
21683
21684# Commands used to build an old-style archive.
21685old_archive_cmds=$lt_old_archive_cmds
21686
21687# A language specific compiler.
21688CC=$lt_compiler
21689
21690# Is the compiler the GNU compiler?
21691with_gcc=$GCC
21692
21693# Compiler flag to turn off builtin functions.
21694no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21695
21696# Additional compiler flags for building library objects.
21697pic_flag=$lt_lt_prog_compiler_pic
21698
21699# How to pass a linker flag through the compiler.
21700wl=$lt_lt_prog_compiler_wl
21701
21702# Compiler flag to prevent dynamic linking.
21703link_static_flag=$lt_lt_prog_compiler_static
21704
21705# Does compiler simultaneously support -c and -o options?
21706compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21707
21708# Whether or not to add -lc for building shared libraries.
21709build_libtool_need_lc=$archive_cmds_need_lc
21710
21711# Whether or not to disallow shared libs when runtime libs are static.
21712allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21713
21714# Compiler flag to allow reflexive dlopens.
21715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21716
21717# Compiler flag to generate shared objects directly from archives.
21718whole_archive_flag_spec=$lt_whole_archive_flag_spec
21719
21720# Whether the compiler copes with passing no objects directly.
21721compiler_needs_object=$lt_compiler_needs_object
21722
21723# Create an old-style archive from a shared archive.
21724old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21725
21726# Create a temporary old-style archive to link instead of a shared archive.
21727old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21728
21729# Commands used to build a shared archive.
21730archive_cmds=$lt_archive_cmds
21731archive_expsym_cmds=$lt_archive_expsym_cmds
21732
21733# Commands used to build a loadable module if different from building
21734# a shared archive.
21735module_cmds=$lt_module_cmds
21736module_expsym_cmds=$lt_module_expsym_cmds
21737
21738# Whether we are building with GNU ld or not.
21739with_gnu_ld=$lt_with_gnu_ld
21740
21741# Flag that allows shared libraries with undefined symbols to be built.
21742allow_undefined_flag=$lt_allow_undefined_flag
21743
21744# Flag that enforces no undefined symbols.
21745no_undefined_flag=$lt_no_undefined_flag
21746
21747# Flag to hardcode \$libdir into a binary during linking.
21748# This must work even if \$libdir does not exist
21749hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21750
21751# Whether we need a single "-rpath" flag with a separated argument.
21752hardcode_libdir_separator=$lt_hardcode_libdir_separator
21753
21754# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21755# DIR into the resulting binary.
21756hardcode_direct=$hardcode_direct
21757
21758# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21759# DIR into the resulting binary and the resulting library dependency is
21760# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21761# library is relocated.
21762hardcode_direct_absolute=$hardcode_direct_absolute
21763
21764# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21765# into the resulting binary.
21766hardcode_minus_L=$hardcode_minus_L
21767
21768# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21769# into the resulting binary.
21770hardcode_shlibpath_var=$hardcode_shlibpath_var
21771
21772# Set to "yes" if building a shared library automatically hardcodes DIR
21773# into the library and all subsequent libraries and executables linked
21774# against it.
21775hardcode_automatic=$hardcode_automatic
21776
21777# Set to yes if linker adds runtime paths of dependent libraries
21778# to runtime path list.
21779inherit_rpath=$inherit_rpath
21780
21781# Whether libtool must link a program against all its dependency libraries.
21782link_all_deplibs=$link_all_deplibs
21783
21784# Set to "yes" if exported symbols are required.
21785always_export_symbols=$always_export_symbols
21786
21787# The commands to list exported symbols.
21788export_symbols_cmds=$lt_export_symbols_cmds
21789
21790# Symbols that should not be listed in the preloaded symbols.
21791exclude_expsyms=$lt_exclude_expsyms
21792
21793# Symbols that must always be exported.
21794include_expsyms=$lt_include_expsyms
21795
21796# Commands necessary for linking programs (against libraries) with templates.
21797prelink_cmds=$lt_prelink_cmds
21798
21799# Commands necessary for finishing linking programs.
21800postlink_cmds=$lt_postlink_cmds
21801
21802# Specify filename containing input files.
21803file_list_spec=$lt_file_list_spec
21804
21805# How to hardcode a shared library path into an executable.
21806hardcode_action=$hardcode_action
21807
21808# ### END LIBTOOL CONFIG
21809
21810_LT_EOF
21811
21812    cat <<'_LT_EOF' >> "$cfgfile"
21813
21814# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21815
21816# func_munge_path_list VARIABLE PATH
21817# -----------------------------------
21818# VARIABLE is name of variable containing _space_ separated list of
21819# directories to be munged by the contents of PATH, which is string
21820# having a format:
21821# "DIR[:DIR]:"
21822#       string "DIR[ DIR]" will be prepended to VARIABLE
21823# ":DIR[:DIR]"
21824#       string "DIR[ DIR]" will be appended to VARIABLE
21825# "DIRP[:DIRP]::[DIRA:]DIRA"
21826#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21827#       "DIRA[ DIRA]" will be appended to VARIABLE
21828# "DIR[:DIR]"
21829#       VARIABLE will be replaced by "DIR[ DIR]"
21830func_munge_path_list ()
21831{
21832    case x$2 in
21833    x)
21834        ;;
21835    *:)
21836        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21837        ;;
21838    x:*)
21839        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21840        ;;
21841    *::*)
21842        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21843        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21844        ;;
21845    *)
21846        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21847        ;;
21848    esac
21849}
21850
21851
21852# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21853func_cc_basename ()
21854{
21855    for cc_temp in $*""; do
21856      case $cc_temp in
21857        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21858        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21859        \-*) ;;
21860        *) break;;
21861      esac
21862    done
21863    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21864}
21865
21866
21867# ### END FUNCTIONS SHARED WITH CONFIGURE
21868
21869_LT_EOF
21870
21871  case $host_os in
21872  aix3*)
21873    cat <<\_LT_EOF >> "$cfgfile"
21874# AIX sometimes has problems with the GCC collect2 program.  For some
21875# reason, if we set the COLLECT_NAMES environment variable, the problems
21876# vanish in a puff of smoke.
21877if test set != "${COLLECT_NAMES+set}"; then
21878  COLLECT_NAMES=
21879  export COLLECT_NAMES
21880fi
21881_LT_EOF
21882    ;;
21883  esac
21884
21885
21886ltmain=$ac_aux_dir/ltmain.sh
21887
21888
21889  # We use sed instead of cat because bash on DJGPP gets confused if
21890  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21891  # text mode, it properly converts lines to CR/LF.  This bash problem
21892  # is reportedly fixed, but why not run on old versions too?
21893  sed '$q' "$ltmain" >> "$cfgfile" \
21894     || (rm -f "$cfgfile"; exit 1)
21895
21896   mv -f "$cfgfile" "$ofile" ||
21897    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21898  chmod +x "$ofile"
21899
21900 ;;
21901    "disable-rpath":C)
21902	sed < libtool > libtool-2 \
21903	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21904	mv libtool-2 libtool
21905	chmod 755 libtool
21906	libtool="./libtool"
21907	 ;;
21908
21909  esac
21910done # for ac_tag
21911
21912
21913as_fn_exit 0
21914_ACEOF
21915ac_clean_files=$ac_clean_files_save
21916
21917test $ac_write_fail = 0 ||
21918  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21919
21920
21921# configure is writing to config.log, and then calls config.status.
21922# config.status does its own redirection, appending to config.log.
21923# Unfortunately, on DOS this fails, as config.log is still kept open
21924# by configure, so config.status won't be able to write to it; its
21925# output is simply discarded.  So we exec the FD to /dev/null,
21926# effectively closing config.log, so it can be properly (re)opened and
21927# appended to by config.status.  When coming back to configure, we
21928# need to make the FD available again.
21929if test "$no_create" != yes; then
21930  ac_cs_success=:
21931  ac_config_status_args=
21932  test "$silent" = yes &&
21933    ac_config_status_args="$ac_config_status_args --quiet"
21934  exec 5>/dev/null
21935  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21936  exec 5>>config.log
21937  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21938  # would make configure fail if this is the last instruction.
21939  $ac_cs_success || as_fn_exit 1
21940fi
21941if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21942  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21943$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21944fi
21945
21946