xref: /freebsd/contrib/unbound/configure (revision f05cddf9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.4.20.
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.4.20'
594PACKAGE_STRING='unbound 1.4.20'
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
635ldnsdir
636ALLTARGET
637SOURCEFILE
638SOURCEDETERMINE
639UBSYMS
640EXTRALINK
641COMMON_OBJ_ALL_SYMBOLS
642LIBOBJ_WITHOUT_CTIME
643WIN_CHECKCONF_OBJ_LINK
644WIN_CONTROL_OBJ_LINK
645WIN_UBANCHOR_OBJ_LINK
646WIN_HOST_OBJ_LINK
647WIN_DAEMON_OBJ_LINK
648WIN_DAEMON_OBJ
649WIN_DAEMON_SRC
650WINAPPS
651WINDRES
652CHECKLOCK_OBJ
653staticexe
654HAVE_SSL
655CONFIG_DATE
656NETBSD_LINTFLAGS
657PYUNBOUND_UNINSTALL
658PYUNBOUND_INSTALL
659PYUNBOUND_TARGET
660PYUNBOUND_OBJ
661WITH_PYUNBOUND
662PYTHONMOD_UNINSTALL
663PYTHONMOD_INSTALL
664PYTHONMOD_HEADER
665PYTHONMOD_OBJ
666WITH_PYTHONMODULE
667swig
668SWIG_LIB
669SWIG
670PYTHON_EXTRA_LDFLAGS
671PYTHON_EXTRA_LIBS
672PYTHON_SITE_PKG
673PYTHON_LDFLAGS
674PYTHON_CPPFLAGS
675PYTHON
676PYTHON_VERSION
677PTHREAD_CFLAGS
678PTHREAD_LIBS
679PTHREAD_CC
680acx_pthread_config
681RUNTIME_PATH
682LIBOBJS
683OTOOL64
684OTOOL
685LIPO
686NMEDIT
687DSYMUTIL
688MANIFEST_TOOL
689AWK
690RANLIB
691ac_ct_AR
692DLLTOOL
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700SED
701LIBTOOL
702AR
703libtool
704STRIP
705doxygen
706YFLAGS
707YACC
708LEXLIB
709LEX_OUTPUT_ROOT
710LEX
711debug_enabled
712DEPFLAG
713UNBOUND_USERNAME
714UNBOUND_ROOTCERT_FILE
715UNBOUND_ROOTKEY_FILE
716UNBOUND_PIDFILE
717UNBOUND_SHARE_DIR
718UNBOUND_CHROOT_DIR
719UNBOUND_RUN_DIR
720ub_conf_file
721EGREP
722GREP
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743LIBUNBOUND_AGE
744LIBUNBOUND_REVISION
745LIBUNBOUND_CURRENT
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787with_conf_file
788with_run_dir
789with_chroot_dir
790with_share_dir
791with_pidfile
792with_rootkey_file
793with_rootcert_file
794with_username
795enable_checking
796enable_debug
797enable_shared
798enable_static
799with_pic
800enable_fast_install
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804enable_rpath
805enable_largefile
806enable_alloc_checks
807enable_alloc_lite
808enable_alloc_nonregional
809with_pthreads
810with_solaris_threads
811with_pyunbound
812with_pythonmodule
813with_nss
814with_ssl
815enable_sha2
816enable_gost
817enable_ecdsa
818with_libevent
819with_libexpat
820enable_static_exe
821enable_lock_checks
822enable_allsymbols
823with_libunbound_only
824with_ldns
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CPP
835YACC
836YFLAGS
837PYTHON_VERSION'
838
839
840# Initialize some variables set by options.
841ac_init_help=
842ac_init_version=false
843ac_unrecognized_opts=
844ac_unrecognized_sep=
845# The variables have the same names as the options, with
846# dashes changed to underlines.
847cache_file=/dev/null
848exec_prefix=NONE
849no_create=
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
858verbose=
859x_includes=NONE
860x_libraries=NONE
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
867# (The list follows the same order as the GNU Coding Standards.)
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
887
888ac_prev=
889ac_dashdash=
890for ac_option
891do
892  # If the previous option needs an argument, assign it.
893  if test -n "$ac_prev"; then
894    eval $ac_prev=\$ac_option
895    ac_prev=
896    continue
897  fi
898
899  case $ac_option in
900  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901  *=)   ac_optarg= ;;
902  *)    ac_optarg=yes ;;
903  esac
904
905  # Accept the important Cygnus configure options, so we can diagnose typos.
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129    ac_prev=sbindir ;;
1130  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131  | --sbi=* | --sb=*)
1132    sbindir=$ac_optarg ;;
1133
1134  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136  | --sharedst | --shareds | --shared | --share | --shar \
1137  | --sha | --sh)
1138    ac_prev=sharedstatedir ;;
1139  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142  | --sha=* | --sh=*)
1143    sharedstatedir=$ac_optarg ;;
1144
1145  -site | --site | --sit)
1146    ac_prev=site ;;
1147  -site=* | --site=* | --sit=*)
1148    site=$ac_optarg ;;
1149
1150  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151    ac_prev=srcdir ;;
1152  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153    srcdir=$ac_optarg ;;
1154
1155  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156  | --syscon | --sysco | --sysc | --sys | --sy)
1157    ac_prev=sysconfdir ;;
1158  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160    sysconfdir=$ac_optarg ;;
1161
1162  -target | --target | --targe | --targ | --tar | --ta | --t)
1163    ac_prev=target_alias ;;
1164  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165    target_alias=$ac_optarg ;;
1166
1167  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168    verbose=yes ;;
1169
1170  -version | --version | --versio | --versi | --vers | -V)
1171    ac_init_version=: ;;
1172
1173  -with-* | --with-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      as_fn_error $? "invalid package name: $ac_useropt"
1178    ac_useropt_orig=$ac_useropt
1179    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180    case $ac_user_opts in
1181      *"
1182"with_$ac_useropt"
1183"*) ;;
1184      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185	 ac_unrecognized_sep=', ';;
1186    esac
1187    eval with_$ac_useropt=\$ac_optarg ;;
1188
1189  -without-* | --without-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      as_fn_error $? "invalid package name: $ac_useropt"
1194    ac_useropt_orig=$ac_useropt
1195    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196    case $ac_user_opts in
1197      *"
1198"with_$ac_useropt"
1199"*) ;;
1200      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201	 ac_unrecognized_sep=', ';;
1202    esac
1203    eval with_$ac_useropt=no ;;
1204
1205  --x)
1206    # Obsolete; use --with-x.
1207    with_x=yes ;;
1208
1209  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210  | --x-incl | --x-inc | --x-in | --x-i)
1211    ac_prev=x_includes ;;
1212  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214    x_includes=$ac_optarg ;;
1215
1216  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218    ac_prev=x_libraries ;;
1219  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221    x_libraries=$ac_optarg ;;
1222
1223  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information"
1225    ;;
1226
1227  *=*)
1228    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229    # Reject names that are not valid shell variable names.
1230    case $ac_envvar in #(
1231      '' | [0-9]* | *[!_$as_cr_alnum]* )
1232      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233    esac
1234    eval $ac_envvar=\$ac_optarg
1235    export $ac_envvar ;;
1236
1237  *)
1238    # FIXME: should be removed in autoconf 3.0.
1239    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243    ;;
1244
1245  esac
1246done
1247
1248if test -n "$ac_prev"; then
1249  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250  as_fn_error $? "missing argument to $ac_option"
1251fi
1252
1253if test -n "$ac_unrecognized_opts"; then
1254  case $enable_option_checking in
1255    no) ;;
1256    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258  esac
1259fi
1260
1261# Check all directory arguments for consistency.
1262for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263		datadir sysconfdir sharedstatedir localstatedir includedir \
1264		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265		libdir localedir mandir
1266do
1267  eval ac_val=\$$ac_var
1268  # Remove trailing slashes.
1269  case $ac_val in
1270    */ )
1271      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272      eval $ac_var=\$ac_val;;
1273  esac
1274  # Be sure to have absolute directory names.
1275  case $ac_val in
1276    [\\/$]* | ?:[\\/]* )  continue;;
1277    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278  esac
1279  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280done
1281
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
1288
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291  if test "x$build_alias" = x; then
1292    cross_compiling=maybe
1293  elif test "x$build_alias" != "x$host_alias"; then
1294    cross_compiling=yes
1295  fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
1302
1303
1304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307  as_fn_error $? "working directory cannot be determined"
1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309  as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314  ac_srcdir_defaulted=yes
1315  # Try the directory containing this script, then the parent directory.
1316  ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318	 X"$as_myself" : 'X\(//\)[^/]' \| \
1319	 X"$as_myself" : 'X\(//\)$' \| \
1320	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
1322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)[^/].*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\).*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  s/.*/./; q'`
1339  srcdir=$ac_confdir
1340  if test ! -r "$srcdir/$ac_unique_file"; then
1341    srcdir=..
1342  fi
1343else
1344  ac_srcdir_defaulted=no
1345fi
1346if test ! -r "$srcdir/$ac_unique_file"; then
1347  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349fi
1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
1352	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353	pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356  srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366  eval ac_env_${ac_var}_value=\$${ac_var}
1367  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375  # Omit some internal or obsolete options to make the list less imposing.
1376  # This message is too long to be a string in the A/UX 3.1 sh.
1377  cat <<_ACEOF
1378\`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388  -h, --help              display this help and exit
1389      --help=short        display options specific to this package
1390      --help=recursive    display the short help of all the included packages
1391  -V, --version           display version information and exit
1392  -q, --quiet, --silent   do not print \`checking ...' messages
1393      --cache-file=FILE   cache test results in FILE [disabled]
1394  -C, --config-cache      alias for \`--cache-file=config.cache'
1395  -n, --no-create         do not create output files
1396      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398Installation directories:
1399  --prefix=PREFIX         install architecture-independent files in PREFIX
1400                          [$ac_default_prefix]
1401  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                          [PREFIX]
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
1412  --bindir=DIR            user executables [EPREFIX/bin]
1413  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414  --libexecdir=DIR        program executables [EPREFIX/libexec]
1415  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418  --libdir=DIR            object code libraries [EPREFIX/lib]
1419  --includedir=DIR        C header files [PREFIX/include]
1420  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR           info documentation [DATAROOTDIR/info]
1424  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR            man documentation [DATAROOTDIR/man]
1426  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1427  --htmldir=DIR           html documentation [DOCDIR]
1428  --dvidir=DIR            dvi documentation [DOCDIR]
1429  --pdfdir=DIR            pdf documentation [DOCDIR]
1430  --psdir=DIR             ps documentation [DOCDIR]
1431_ACEOF
1432
1433  cat <<\_ACEOF
1434
1435System types:
1436  --build=BUILD     configure for building on BUILD [guessed]
1437  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438  --target=TARGET   configure for building compilers for TARGET [HOST]
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443  case $ac_init_help in
1444     short | recursive ) echo "Configuration of unbound 1.4.20:";;
1445   esac
1446  cat <<\_ACEOF
1447
1448Optional Features:
1449  --disable-option-checking  ignore unrecognized --enable/--with options
1450  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452  --enable-checking       Enable warnings, asserts, makefile-dependencies
1453  --enable-debug          same as enable-checking
1454  --enable-shared[=PKGS]  build shared libraries [default=yes]
1455  --enable-static[=PKGS]  build static libraries [default=yes]
1456  --enable-fast-install[=PKGS]
1457                          optimize for fast installation [default=yes]
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --disable-rpath         disable hardcoded rpath (default=enabled)
1460  --disable-largefile     omit support for large files
1461  --enable-alloc-checks   enable to memory allocation statistics, for debug
1462                          purposes
1463  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1464                          purposes
1465  --enable-alloc-nonregional
1466                          enable nonregional allocs, slow but exposes regional
1467                          allocations to other memory purifiers, for debug
1468                          purposes
1469  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1470  --disable-gost          Disable GOST support
1471  --disable-ecdsa         Disable ECDSA support
1472  --enable-static-exe     enable to compile executables statically against
1473                          event, ldns libs, for debug purposes
1474  --enable-lock-checks    enable to check lock and unlock calls, for debug
1475                          purposes
1476  --enable-allsymbols     export all symbols from libunbound and link binaries
1477                          to it, smaller install size but libunbound export
1478                          table is polluted by internal symbols
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-conf-file=path   Pathname to the Unbound configuration file
1484  --with-run-dir=path     set default directory to chdir to (by default dir
1485                          part of cfg file)
1486  --with-chroot-dir=path  set default directory to chroot to (by default same
1487                          as run-dir)
1488  --with-share-dir=path   set default directory with shared data (by default
1489                          same as share/unbound)
1490  --with-pidfile=filename set default pathname to unbound pidfile (default
1491                          run-dir/unbound.pid)
1492  --with-rootkey-file=filename
1493                          set default pathname to root key file (default
1494                          run-dir/root.key). This file is read and written.
1495  --with-rootcert-file=filename
1496                          set default pathname to root update certificate file
1497                          (default run-dir/icannbundle.pem). This file need
1498                          not exist if you are content with the builtin.
1499  --with-username=user    set default user that unbound changes to (default
1500                          user is unbound)
1501  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                          both]
1503  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1504  --with-sysroot=DIR Search for dependent libraries within DIR
1505                        (or the compiler's sysroot if not specified).
1506  --with-pthreads         use pthreads library, or --without-pthreads to
1507                          disable threading support.
1508  --with-solaris-threads  use solaris native thread library.
1509  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1510                          (default=no)
1511  --with-pythonmodule     build Python module, or --without-pythonmodule to
1512                          disable script engine. (default=no)
1513  --with-nss=path         use libnss instead of openssl, installed at path.
1514  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1515                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1516                          /usr)
1517  --with-libevent=pathname
1518                          use libevent (will check /usr/local /opt/local
1519                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1520                          an explicit path). Slower, but allows use of large
1521                          outgoing port ranges.
1522  --with-libexpat=path    specify explicit path for libexpat.
1523  --with-libunbound-only  do not build daemon and tool programs
1524  --with-ldns=PATH        specify prefix of path of ldns library to use
1525
1526Some influential environment variables:
1527  CC          C compiler command
1528  CFLAGS      C compiler flags
1529  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530              nonstandard directory <lib dir>
1531  LIBS        libraries to pass to the linker, e.g. -l<library>
1532  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533              you have headers in a nonstandard directory <include dir>
1534  CPP         C preprocessor
1535  YACC        The `Yet Another Compiler Compiler' implementation to use.
1536              Defaults to the first program found out of: `bison -y', `byacc',
1537              `yacc'.
1538  YFLAGS      The list of arguments that will be passed by default to $YACC.
1539              This script will default YFLAGS to the empty string to avoid a
1540              default value of `-d' given by some make applications.
1541  PYTHON_VERSION
1542              The installed Python version to use, for example '2.3'. This
1543              string will be appended to the Python interpreter canonical
1544              name.
1545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
1549Report bugs to <unbound-bugs@nlnetlabs.nl>.
1550_ACEOF
1551ac_status=$?
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555  # If there are subdirs, report their specific --help.
1556  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557    test -d "$ac_dir" ||
1558      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559      continue
1560    ac_builddir=.
1561
1562case "$ac_dir" in
1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564*)
1565  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566  # A ".." for each directory in $ac_dir_suffix.
1567  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568  case $ac_top_builddir_sub in
1569  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571  esac ;;
1572esac
1573ac_abs_top_builddir=$ac_pwd
1574ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575# for backward compatibility:
1576ac_top_builddir=$ac_top_build_prefix
1577
1578case $srcdir in
1579  .)  # We are building in place.
1580    ac_srcdir=.
1581    ac_top_srcdir=$ac_top_builddir_sub
1582    ac_abs_top_srcdir=$ac_pwd ;;
1583  [\\/]* | ?:[\\/]* )  # Absolute name.
1584    ac_srcdir=$srcdir$ac_dir_suffix;
1585    ac_top_srcdir=$srcdir
1586    ac_abs_top_srcdir=$srcdir ;;
1587  *) # Relative name.
1588    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589    ac_top_srcdir=$ac_top_build_prefix$srcdir
1590    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591esac
1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594    cd "$ac_dir" || { ac_status=$?; continue; }
1595    # Check for guested configure.
1596    if test -f "$ac_srcdir/configure.gnu"; then
1597      echo &&
1598      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599    elif test -f "$ac_srcdir/configure"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure" --help=recursive
1602    else
1603      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604    fi || ac_status=$?
1605    cd "$ac_pwd" || { ac_status=$?; break; }
1606  done
1607fi
1608
1609test -n "$ac_init_help" && exit $ac_status
1610if $ac_init_version; then
1611  cat <<\_ACEOF
1612unbound configure 1.4.20
1613generated by GNU Autoconf 2.69
1614
1615Copyright (C) 2012 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649	 test -z "$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       } && test -s conftest.$ac_objext; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657	ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_cpp LINENO
1665# ----------------------
1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_cpp ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  if { { ac_try="$ac_cpp conftest.$ac_ext"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } > conftest.i && {
1686	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694    ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_cpp
1700
1701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704# the include files in INCLUDES and setting the cache variable VAR
1705# accordingly.
1706ac_fn_c_check_header_mongrel ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if eval \${$3+:} false; then :
1710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713  $as_echo_n "(cached) " >&6
1714fi
1715eval ac_res=\$$3
1716	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718else
1719  # Is the header compilable?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721$as_echo_n "checking $2 usability... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h.  */
1724$4
1725#include <$2>
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728  ac_header_compiler=yes
1729else
1730  ac_header_compiler=no
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734$as_echo "$ac_header_compiler" >&6; }
1735
1736# Is the header present?
1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738$as_echo_n "checking $2 presence... " >&6; }
1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_cpp "$LINENO"; then :
1744  ac_header_preproc=yes
1745else
1746  ac_header_preproc=no
1747fi
1748rm -f conftest.err conftest.i conftest.$ac_ext
1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750$as_echo "$ac_header_preproc" >&6; }
1751
1752# So?  What about this header?
1753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754  yes:no: )
1755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759    ;;
1760  no:yes:* )
1761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1764$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1768$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771( $as_echo "## ---------------------------------------- ##
1772## Report this to unbound-bugs@nlnetlabs.nl ##
1773## ---------------------------------------- ##"
1774     ) | sed "s/^/$as_me: WARNING:     /" >&2
1775    ;;
1776esac
1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780  $as_echo_n "(cached) " >&6
1781else
1782  eval "$3=\$ac_header_compiler"
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787fi
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_mongrel
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810  { { case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_try") 2>&5
1817  ac_status=$?
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; }; }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: program exited with status $ac_status" >&5
1823       $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826       ac_retval=$ac_status
1827fi
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_run
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  eval "$3=yes"
1853else
1854  eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_compile
1864
1865# ac_fn_c_try_link LINENO
1866# -----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_link ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  rm -f conftest.$ac_objext conftest$ac_exeext
1872  if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875  *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879  (eval "$ac_link") 2>conftest.err
1880  ac_status=$?
1881  if test -s conftest.err; then
1882    grep -v '^ *+' conftest.err >conftest.er1
1883    cat conftest.er1 >&5
1884    mv -f conftest.er1 conftest.err
1885  fi
1886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887  test $ac_status = 0; } && {
1888	 test -z "$ac_c_werror_flag" ||
1889	 test ! -s conftest.err
1890       } && test -s conftest$ac_exeext && {
1891	 test "$cross_compiling" = yes ||
1892	 test -x conftest$ac_exeext
1893       }; then :
1894  ac_retval=0
1895else
1896  $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899	ac_retval=1
1900fi
1901  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903  # interfere with the next link command; also delete a directory that is
1904  # left behind by Apple's compiler.  We do this before executing the actions.
1905  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907  as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_link
1910
1911# ac_fn_c_check_func LINENO FUNC VAR
1912# ----------------------------------
1913# Tests whether FUNC exists, setting the cache variable VAR accordingly
1914ac_fn_c_check_func ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if eval \${$3+:} false; then :
1920  $as_echo_n "(cached) " >&6
1921else
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926#define $2 innocuous_$2
1927
1928/* System header to define __stub macros and hopefully few prototypes,
1929    which can conflict with char $2 (); below.
1930    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931    <limits.h> exists even on freestanding compilers.  */
1932
1933#ifdef __STDC__
1934# include <limits.h>
1935#else
1936# include <assert.h>
1937#endif
1938
1939#undef $2
1940
1941/* Override any GCC internal prototype to avoid an error.
1942   Use char because int might match the return type of a GCC
1943   builtin and then its argument prototype would still apply.  */
1944#ifdef __cplusplus
1945extern "C"
1946#endif
1947char $2 ();
1948/* The GNU C library defines this for functions which it implements
1949    to always fail with ENOSYS.  Some functions are actually named
1950    something starting with __ and the normal name is an alias.  */
1951#if defined __stub_$2 || defined __stub___$2
1952choke me
1953#endif
1954
1955int
1956main ()
1957{
1958return $2 ();
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_link "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext \
1969    conftest$ac_exeext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_func
1977
1978# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979# -------------------------------------------
1980# Tests whether TYPE exists after having included INCLUDES, setting cache
1981# variable VAR accordingly.
1982ac_fn_c_check_type ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988  $as_echo_n "(cached) " >&6
1989else
1990  eval "$3=no"
1991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$4
1994int
1995main ()
1996{
1997if (sizeof ($2))
1998	 return 0;
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010if (sizeof (($2)))
2011	    return 0;
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017
2018else
2019  eval "$3=yes"
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024fi
2025eval ac_res=\$$3
2026	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027$as_echo "$ac_res" >&6; }
2028  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030} # ac_fn_c_check_type
2031
2032# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2033# ---------------------------------------------
2034# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2035# accordingly.
2036ac_fn_c_check_decl ()
2037{
2038  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039  as_decl_name=`echo $2|sed 's/ *(.*//'`
2040  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2042$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2043if eval \${$3+:} false; then :
2044  $as_echo_n "(cached) " >&6
2045else
2046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h.  */
2048$4
2049int
2050main ()
2051{
2052#ifndef $as_decl_name
2053#ifdef __cplusplus
2054  (void) $as_decl_use;
2055#else
2056  (void) $as_decl_name;
2057#endif
2058#endif
2059
2060  ;
2061  return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065  eval "$3=yes"
2066else
2067  eval "$3=no"
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070fi
2071eval ac_res=\$$3
2072	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076} # ac_fn_c_check_decl
2077
2078# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079# ----------------------------------------------------
2080# Tries to find if the field MEMBER exists in type AGGR, after including
2081# INCLUDES, setting cache variable VAR accordingly.
2082ac_fn_c_check_member ()
2083{
2084  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086$as_echo_n "checking for $2.$3... " >&6; }
2087if eval \${$4+:} false; then :
2088  $as_echo_n "(cached) " >&6
2089else
2090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$5
2093int
2094main ()
2095{
2096static $2 ac_aggr;
2097if (ac_aggr.$3)
2098return 0;
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  eval "$4=yes"
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$5
2109int
2110main ()
2111{
2112static $2 ac_aggr;
2113if (sizeof ac_aggr.$3)
2114return 0;
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  eval "$4=yes"
2121else
2122  eval "$4=no"
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128eval ac_res=\$$4
2129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133} # ac_fn_c_check_member
2134cat >config.log <<_ACEOF
2135This file contains any messages produced by compilers while
2136running configure, to aid debugging if configure makes a mistake.
2137
2138It was created by unbound $as_me 1.4.20, which was
2139generated by GNU Autoconf 2.69.  Invocation command line was
2140
2141  $ $0 $@
2142
2143_ACEOF
2144exec 5>>config.log
2145{
2146cat <<_ASUNAME
2147## --------- ##
2148## Platform. ##
2149## --------- ##
2150
2151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2159
2160/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2161/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2164/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2165/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2166/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2167
2168_ASUNAME
2169
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175    $as_echo "PATH: $as_dir"
2176  done
2177IFS=$as_save_IFS
2178
2179} >&5
2180
2181cat >&5 <<_ACEOF
2182
2183
2184## ----------- ##
2185## Core tests. ##
2186## ----------- ##
2187
2188_ACEOF
2189
2190
2191# Keep a trace of the command line.
2192# Strip out --no-create and --no-recursion so they do not pile up.
2193# Strip out --silent because we don't want to record it for future runs.
2194# Also quote any args containing shell meta-characters.
2195# Make two passes to allow for proper duplicate-argument suppression.
2196ac_configure_args=
2197ac_configure_args0=
2198ac_configure_args1=
2199ac_must_keep_next=false
2200for ac_pass in 1 2
2201do
2202  for ac_arg
2203  do
2204    case $ac_arg in
2205    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207    | -silent | --silent | --silen | --sile | --sil)
2208      continue ;;
2209    *\'*)
2210      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211    esac
2212    case $ac_pass in
2213    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214    2)
2215      as_fn_append ac_configure_args1 " '$ac_arg'"
2216      if test $ac_must_keep_next = true; then
2217	ac_must_keep_next=false # Got value, back to normal.
2218      else
2219	case $ac_arg in
2220	  *=* | --config-cache | -C | -disable-* | --disable-* \
2221	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223	  | -with-* | --with-* | -without-* | --without-* | --x)
2224	    case "$ac_configure_args0 " in
2225	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226	    esac
2227	    ;;
2228	  -* ) ac_must_keep_next=true ;;
2229	esac
2230      fi
2231      as_fn_append ac_configure_args " '$ac_arg'"
2232      ;;
2233    esac
2234  done
2235done
2236{ ac_configure_args0=; unset ac_configure_args0;}
2237{ ac_configure_args1=; unset ac_configure_args1;}
2238
2239# When interrupted or exit'd, cleanup temporary files, and complete
2240# config.log.  We remove comments because anyway the quotes in there
2241# would cause problems or look ugly.
2242# WARNING: Use '\'' to represent an apostrophe within the trap.
2243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244trap 'exit_status=$?
2245  # Save into config.log some information that might help in debugging.
2246  {
2247    echo
2248
2249    $as_echo "## ---------------- ##
2250## Cache variables. ##
2251## ---------------- ##"
2252    echo
2253    # The following way of writing the cache mishandles newlines in values,
2254(
2255  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256    eval ac_val=\$$ac_var
2257    case $ac_val in #(
2258    *${as_nl}*)
2259      case $ac_var in #(
2260      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262      esac
2263      case $ac_var in #(
2264      _ | IFS | as_nl) ;; #(
2265      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266      *) { eval $ac_var=; unset $ac_var;} ;;
2267      esac ;;
2268    esac
2269  done
2270  (set) 2>&1 |
2271    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272    *${as_nl}ac_space=\ *)
2273      sed -n \
2274	"s/'\''/'\''\\\\'\'''\''/g;
2275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276      ;; #(
2277    *)
2278      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279      ;;
2280    esac |
2281    sort
2282)
2283    echo
2284
2285    $as_echo "## ----------------- ##
2286## Output variables. ##
2287## ----------------- ##"
2288    echo
2289    for ac_var in $ac_subst_vars
2290    do
2291      eval ac_val=\$$ac_var
2292      case $ac_val in
2293      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294      esac
2295      $as_echo "$ac_var='\''$ac_val'\''"
2296    done | sort
2297    echo
2298
2299    if test -n "$ac_subst_files"; then
2300      $as_echo "## ------------------- ##
2301## File substitutions. ##
2302## ------------------- ##"
2303      echo
2304      for ac_var in $ac_subst_files
2305      do
2306	eval ac_val=\$$ac_var
2307	case $ac_val in
2308	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309	esac
2310	$as_echo "$ac_var='\''$ac_val'\''"
2311      done | sort
2312      echo
2313    fi
2314
2315    if test -s confdefs.h; then
2316      $as_echo "## ----------- ##
2317## confdefs.h. ##
2318## ----------- ##"
2319      echo
2320      cat confdefs.h
2321      echo
2322    fi
2323    test "$ac_signal" != 0 &&
2324      $as_echo "$as_me: caught signal $ac_signal"
2325    $as_echo "$as_me: exit $exit_status"
2326  } >&5
2327  rm -f core *.core core.conftest.* &&
2328    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329    exit $exit_status
2330' 0
2331for ac_signal in 1 2 13 15; do
2332  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333done
2334ac_signal=0
2335
2336# confdefs.h avoids OS command line length limits that DEFS can exceed.
2337rm -f -r conftest* confdefs.h
2338
2339$as_echo "/* confdefs.h */" > confdefs.h
2340
2341# Predefined preprocessor variables.
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_NAME "$PACKAGE_NAME"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_VERSION "$PACKAGE_VERSION"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_STRING "$PACKAGE_STRING"
2357_ACEOF
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361_ACEOF
2362
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_URL "$PACKAGE_URL"
2365_ACEOF
2366
2367
2368# Let the site file select an alternate cache file if it wants to.
2369# Prefer an explicitly selected file to automatically selected ones.
2370ac_site_file1=NONE
2371ac_site_file2=NONE
2372if test -n "$CONFIG_SITE"; then
2373  # We do not want a PATH search for config.site.
2374  case $CONFIG_SITE in #((
2375    -*)  ac_site_file1=./$CONFIG_SITE;;
2376    */*) ac_site_file1=$CONFIG_SITE;;
2377    *)   ac_site_file1=./$CONFIG_SITE;;
2378  esac
2379elif test "x$prefix" != xNONE; then
2380  ac_site_file1=$prefix/share/config.site
2381  ac_site_file2=$prefix/etc/config.site
2382else
2383  ac_site_file1=$ac_default_prefix/share/config.site
2384  ac_site_file2=$ac_default_prefix/etc/config.site
2385fi
2386for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387do
2388  test "x$ac_site_file" = xNONE && continue
2389  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392    sed 's/^/| /' "$ac_site_file" >&5
2393    . "$ac_site_file" \
2394      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396as_fn_error $? "failed to load site script $ac_site_file
2397See \`config.log' for more details" "$LINENO" 5; }
2398  fi
2399done
2400
2401if test -r "$cache_file"; then
2402  # Some versions of bash will fail to source /dev/null (special files
2403  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2404  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406$as_echo "$as_me: loading cache $cache_file" >&6;}
2407    case $cache_file in
2408      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409      *)                      . "./$cache_file";;
2410    esac
2411  fi
2412else
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414$as_echo "$as_me: creating cache $cache_file" >&6;}
2415  >$cache_file
2416fi
2417
2418# Check that the precious variables saved in the cache have kept the same
2419# value.
2420ac_cache_corrupted=false
2421for ac_var in $ac_precious_vars; do
2422  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423  eval ac_new_set=\$ac_env_${ac_var}_set
2424  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425  eval ac_new_val=\$ac_env_${ac_var}_value
2426  case $ac_old_set,$ac_new_set in
2427    set,)
2428      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430      ac_cache_corrupted=: ;;
2431    ,set)
2432      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434      ac_cache_corrupted=: ;;
2435    ,);;
2436    *)
2437      if test "x$ac_old_val" != "x$ac_new_val"; then
2438	# differences in whitespace do not lead to failure.
2439	ac_old_val_w=`echo x $ac_old_val`
2440	ac_new_val_w=`echo x $ac_new_val`
2441	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444	  ac_cache_corrupted=:
2445	else
2446	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448	  eval $ac_var=\$ac_old_val
2449	fi
2450	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2451$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2452	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2453$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2454      fi;;
2455  esac
2456  # Pass precious variables to config.status.
2457  if test "$ac_new_set" = set; then
2458    case $ac_new_val in
2459    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460    *) ac_arg=$ac_var=$ac_new_val ;;
2461    esac
2462    case " $ac_configure_args " in
2463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2464      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465    esac
2466  fi
2467done
2468if $ac_cache_corrupted; then
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474fi
2475## -------------------- ##
2476## Main body of script. ##
2477## -------------------- ##
2478
2479ac_ext=c
2480ac_cpp='$CPP $CPPFLAGS'
2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484
2485
2486
2487LIBUNBOUND_CURRENT=3
2488LIBUNBOUND_REVISION=5
2489LIBUNBOUND_AGE=1
2490# 1.0.0 had 0:12:0
2491# 1.0.1 had 0:13:0
2492# 1.0.2 had 0:14:0
2493# 1.1.0 had 0:15:0
2494# 1.1.1 had 0:16:0
2495# 1.2.0 had 0:17:0
2496# 1.2.1 had 0:18:0
2497# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2498# 1.3.1 had 1:1:0
2499# 1.3.2 had 1:2:0
2500# 1.3.3 had 1:3:0
2501# 1.3.4 had 1:4:0
2502# 1.4.0-snapshots had 1:5:0
2503# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2504# 1.4.1 had 2:1:0
2505# 1.4.2 had 2:2:0
2506# 1.4.3 had 2:3:0
2507# 1.4.4 had 2:4:0
2508# 1.4.5 had 2:5:0
2509# 1.4.6 had 2:6:0
2510# 1.4.7 had 2:7:0
2511# 1.4.8 had 2:8:0
2512# 1.4.9 had 2:9:0
2513# 1.4.10 had 2:10:0
2514# 1.4.11 had 2:11:0
2515# 1.4.12 had 2:12:0
2516# 1.4.13 had 2:13:0
2517# and 1.4.13p1 and 1.4.13.p2
2518# 1.4.14 had 2:14:0
2519# 1.4.15 had 3:0:1 # adds ub_version()
2520# 1.4.16 had 3:1:1
2521# 1.4.17 had 3:2:1
2522# 1.4.18 had 3:3:1
2523# 1.4.19 had 3:4:1
2524# 1.4.20 had 4:0:2 # adds libunbound.ttl
2525
2526#   Current  -- the number of the binary API that we're implementing
2527#   Revision -- which iteration of the implementation of the binary
2528#               API are we supplying?
2529#   Age      -- How many previous binary API versions do we also
2530#               support?
2531#
2532# If we release a new version that does not change the binary API,
2533# increment Revision.
2534#
2535# If we release a new version that changes the binary API, but does
2536# not break programs compiled against the old binary API, increment
2537# Current and Age.  Set Revision to 0, since this is the first
2538# implementation of the new API.
2539#
2540# Otherwise, we're changing the binary API and breaking bakward
2541# compatibility with old binaries.  Increment Current.  Set Age to 0,
2542# since we're backward compatible with no previous APIs.  Set Revision
2543# to 0 too.
2544
2545
2546
2547
2548pretty_cmdline() {
2549	cmdline=""
2550	while test -n "$1"; do
2551		cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'"
2552		shift
2553	done
2554}
2555pretty_cmdline $@
2556
2557cat >>confdefs.h <<_ACEOF
2558#define CONFIGURE_BUILD_WITH "$cmdline"
2559_ACEOF
2560
2561ac_aux_dir=
2562for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563  if test -f "$ac_dir/install-sh"; then
2564    ac_aux_dir=$ac_dir
2565    ac_install_sh="$ac_aux_dir/install-sh -c"
2566    break
2567  elif test -f "$ac_dir/install.sh"; then
2568    ac_aux_dir=$ac_dir
2569    ac_install_sh="$ac_aux_dir/install.sh -c"
2570    break
2571  elif test -f "$ac_dir/shtool"; then
2572    ac_aux_dir=$ac_dir
2573    ac_install_sh="$ac_aux_dir/shtool install -c"
2574    break
2575  fi
2576done
2577if test -z "$ac_aux_dir"; then
2578  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579fi
2580
2581# These three variables are undocumented and unsupported,
2582# and are intended to be withdrawn in a future Autoconf release.
2583# They can cause serious problems if a builder's source tree is in a directory
2584# whose full name contains unusual characters.
2585ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2586ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2587ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2588
2589
2590# Make sure we can run config.sub.
2591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2592  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595$as_echo_n "checking build system type... " >&6; }
2596if ${ac_cv_build+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  ac_build_alias=$build_alias
2600test "x$ac_build_alias" = x &&
2601  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602test "x$ac_build_alias" = x &&
2603  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2605  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2606
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609$as_echo "$ac_cv_build" >&6; }
2610case $ac_cv_build in
2611*-*-*) ;;
2612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2613esac
2614build=$ac_cv_build
2615ac_save_IFS=$IFS; IFS='-'
2616set x $ac_cv_build
2617shift
2618build_cpu=$1
2619build_vendor=$2
2620shift; shift
2621# Remember, the first character of IFS is used to create $*,
2622# except with old shells:
2623build_os=$*
2624IFS=$ac_save_IFS
2625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2626
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629$as_echo_n "checking host system type... " >&6; }
2630if ${ac_cv_host+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test "x$host_alias" = x; then
2634  ac_cv_host=$ac_cv_build
2635else
2636  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2637    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2638fi
2639
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642$as_echo "$ac_cv_host" >&6; }
2643case $ac_cv_host in
2644*-*-*) ;;
2645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2646esac
2647host=$ac_cv_host
2648ac_save_IFS=$IFS; IFS='-'
2649set x $ac_cv_host
2650shift
2651host_cpu=$1
2652host_vendor=$2
2653shift; shift
2654# Remember, the first character of IFS is used to create $*,
2655# except with old shells:
2656host_os=$*
2657IFS=$ac_save_IFS
2658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2659
2660
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662$as_echo_n "checking target system type... " >&6; }
2663if ${ac_cv_target+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test "x$target_alias" = x; then
2667  ac_cv_target=$ac_cv_host
2668else
2669  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2670    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2671fi
2672
2673fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675$as_echo "$ac_cv_target" >&6; }
2676case $ac_cv_target in
2677*-*-*) ;;
2678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2679esac
2680target=$ac_cv_target
2681ac_save_IFS=$IFS; IFS='-'
2682set x $ac_cv_target
2683shift
2684target_cpu=$1
2685target_vendor=$2
2686shift; shift
2687# Remember, the first character of IFS is used to create $*,
2688# except with old shells:
2689target_os=$*
2690IFS=$ac_save_IFS
2691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2692
2693
2694# The aliases save the names the user supplied, while $host etc.
2695# will get canonicalized.
2696test -n "$target_alias" &&
2697  test "$program_prefix$program_suffix$program_transform_name" = \
2698    NONENONEs,x,x, &&
2699  program_prefix=${target_alias}-
2700
2701cat >>confdefs.h <<_ACEOF
2702#define CONFIGURE_TARGET "$target"
2703_ACEOF
2704
2705
2706cat >>confdefs.h <<_ACEOF
2707#define CONFIGURE_DATE "`date`"
2708_ACEOF
2709
2710
2711CFLAGS="$CFLAGS"
2712ac_ext=c
2713ac_cpp='$CPP $CPPFLAGS'
2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717if test -n "$ac_tool_prefix"; then
2718  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if ${ac_cv_prog_CC+:} false; then :
2723  $as_echo_n "(cached) " >&6
2724else
2725  if test -n "$CC"; then
2726  ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731  IFS=$as_save_IFS
2732  test -z "$as_dir" && as_dir=.
2733    for ac_exec_ext in '' $ac_executable_extensions; do
2734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737    break 2
2738  fi
2739done
2740  done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748$as_echo "$CC" >&6; }
2749else
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
2752fi
2753
2754
2755fi
2756if test -z "$ac_cv_prog_CC"; then
2757  ac_ct_CC=$CC
2758  # Extract the first word of "gcc", so it can be a program name with args.
2759set dummy gcc; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763  $as_echo_n "(cached) " >&6
2764else
2765  if test -n "$ac_ct_CC"; then
2766  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771  IFS=$as_save_IFS
2772  test -z "$as_dir" && as_dir=.
2773    for ac_exec_ext in '' $ac_executable_extensions; do
2774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775    ac_cv_prog_ac_ct_CC="gcc"
2776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777    break 2
2778  fi
2779done
2780  done
2781IFS=$as_save_IFS
2782
2783fi
2784fi
2785ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786if test -n "$ac_ct_CC"; then
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788$as_echo "$ac_ct_CC" >&6; }
2789else
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794  if test "x$ac_ct_CC" = x; then
2795    CC=""
2796  else
2797    case $cross_compiling:$ac_tool_warned in
2798yes:)
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801ac_tool_warned=yes ;;
2802esac
2803    CC=$ac_ct_CC
2804  fi
2805else
2806  CC="$ac_cv_prog_CC"
2807fi
2808
2809if test -z "$CC"; then
2810          if test -n "$ac_tool_prefix"; then
2811    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812set dummy ${ac_tool_prefix}cc; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
2815if ${ac_cv_prog_CC+:} false; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  if test -n "$CC"; then
2819  ac_cv_prog_CC="$CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826    for ac_exec_ext in '' $ac_executable_extensions; do
2827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_CC="${ac_tool_prefix}cc"
2829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833  done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841$as_echo "$CC" >&6; }
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
2848  fi
2849fi
2850if test -z "$CC"; then
2851  # Extract the first word of "cc", so it can be a program name with args.
2852set dummy cc; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_CC+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$CC"; then
2859  ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
2861  ac_prog_rejected=no
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865  IFS=$as_save_IFS
2866  test -z "$as_dir" && as_dir=.
2867    for ac_exec_ext in '' $ac_executable_extensions; do
2868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870       ac_prog_rejected=yes
2871       continue
2872     fi
2873    ac_cv_prog_CC="cc"
2874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875    break 2
2876  fi
2877done
2878  done
2879IFS=$as_save_IFS
2880
2881if test $ac_prog_rejected = yes; then
2882  # We found a bogon in the path, so make sure we never use it.
2883  set dummy $ac_cv_prog_CC
2884  shift
2885  if test $# != 0; then
2886    # We chose a different compiler from the bogus one.
2887    # However, it has the same basename, so the bogon will be chosen
2888    # first if we set CC to just the basename; use the full file name.
2889    shift
2890    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891  fi
2892fi
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898$as_echo "$CC" >&6; }
2899else
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904
2905fi
2906if test -z "$CC"; then
2907  if test -n "$ac_tool_prefix"; then
2908  for ac_prog in cl.exe
2909  do
2910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if ${ac_cv_prog_CC+:} false; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$CC"; then
2918  ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937CC=$ac_cv_prog_CC
2938if test -n "$CC"; then
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940$as_echo "$CC" >&6; }
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947    test -n "$CC" && break
2948  done
2949fi
2950if test -z "$CC"; then
2951  ac_ct_CC=$CC
2952  for ac_prog in cl.exe
2953do
2954  # Extract the first word of "$ac_prog", so it can be a program name with args.
2955set dummy $ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if ${ac_cv_prog_ac_ct_CC+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$ac_ct_CC"; then
2962  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971    ac_cv_prog_ac_ct_CC="$ac_prog"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982if test -n "$ac_ct_CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984$as_echo "$ac_ct_CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991  test -n "$ac_ct_CC" && break
2992done
2993
2994  if test "x$ac_ct_CC" = x; then
2995    CC=""
2996  else
2997    case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
3002esac
3003    CC=$ac_ct_CC
3004  fi
3005fi
3006
3007fi
3008
3009
3010test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012as_fn_error $? "no acceptable C compiler found in \$PATH
3013See \`config.log' for more details" "$LINENO" 5; }
3014
3015# Provide some information about the compiler.
3016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017set X $ac_compile
3018ac_compiler=$2
3019for ac_option in --version -v -V -qversion; do
3020  { { ac_try="$ac_compiler $ac_option >&5"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3028  ac_status=$?
3029  if test -s conftest.err; then
3030    sed '10a\
3031... rest of stderr output deleted ...
3032         10q' conftest.err >conftest.er1
3033    cat conftest.er1 >&5
3034  fi
3035  rm -f conftest.er1 conftest.err
3036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037  test $ac_status = 0; }
3038done
3039
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h.  */
3042
3043int
3044main ()
3045{
3046
3047  ;
3048  return 0;
3049}
3050_ACEOF
3051ac_clean_files_save=$ac_clean_files
3052ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3053# Try to create an executable without -o first, disregard a.out.
3054# It will help us diagnose broken compilers, and finding out an intuition
3055# of exeext.
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057$as_echo_n "checking whether the C compiler works... " >&6; }
3058ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3059
3060# The possible output files:
3061ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3062
3063ac_rmfiles=
3064for ac_file in $ac_files
3065do
3066  case $ac_file in
3067    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069  esac
3070done
3071rm -f $ac_rmfiles
3072
3073if { { ac_try="$ac_link_default"
3074case "(($ac_try" in
3075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076  *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080  (eval "$ac_link_default") 2>&5
3081  ac_status=$?
3082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083  test $ac_status = 0; }; then :
3084  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3087# so that the user can short-circuit this test for compilers unknown to
3088# Autoconf.
3089for ac_file in $ac_files ''
3090do
3091  test -f "$ac_file" || continue
3092  case $ac_file in
3093    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094	;;
3095    [ab].out )
3096	# We found the default executable, but exeext='' is most
3097	# certainly right.
3098	break;;
3099    *.* )
3100	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3101	then :; else
3102	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103	fi
3104	# We set ac_cv_exeext here because the later test for it is not
3105	# safe: cross compilers may not add the suffix if given an `-o'
3106	# argument, so we may need to know it at that point already.
3107	# Even if this section looks crufty: it has the advantage of
3108	# actually working.
3109	break;;
3110    * )
3111	break;;
3112  esac
3113done
3114test "$ac_cv_exeext" = no && ac_cv_exeext=
3115
3116else
3117  ac_file=''
3118fi
3119if test -z "$ac_file"; then :
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122$as_echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127as_fn_error 77 "C compiler cannot create executables
3128See \`config.log' for more details" "$LINENO" 5; }
3129else
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131$as_echo "yes" >&6; }
3132fi
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134$as_echo_n "checking for C compiler default output file name... " >&6; }
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136$as_echo "$ac_file" >&6; }
3137ac_exeext=$ac_cv_exeext
3138
3139rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3140ac_clean_files=$ac_clean_files_save
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { { ac_try="$ac_link"
3144case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150  (eval "$ac_link") 2>&5
3151  ac_status=$?
3152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153  test $ac_status = 0; }; then :
3154  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159  test -f "$ac_file" || continue
3160  case $ac_file in
3161    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163	  break;;
3164    * ) break;;
3165  esac
3166done
3167else
3168  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171See \`config.log' for more details" "$LINENO" 5; }
3172fi
3173rm -f conftest conftest$ac_cv_exeext
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175$as_echo "$ac_cv_exeext" >&6; }
3176
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182#include <stdio.h>
3183int
3184main ()
3185{
3186FILE *f = fopen ("conftest.out", "w");
3187 return ferror (f) || fclose (f) != 0;
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193ac_clean_files="$ac_clean_files conftest.out"
3194# Check that the compiler produces executables we can run.  If not, either
3195# the compiler is broken, or we cross compile.
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197$as_echo_n "checking whether we are cross compiling... " >&6; }
3198if test "$cross_compiling" != yes; then
3199  { { ac_try="$ac_link"
3200case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205$as_echo "$ac_try_echo"; } >&5
3206  (eval "$ac_link") 2>&5
3207  ac_status=$?
3208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209  test $ac_status = 0; }
3210  if { ac_try='./conftest$ac_cv_exeext'
3211  { { case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217  (eval "$ac_try") 2>&5
3218  ac_status=$?
3219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220  test $ac_status = 0; }; }; then
3221    cross_compiling=no
3222  else
3223    if test "$cross_compiling" = maybe; then
3224	cross_compiling=yes
3225    else
3226	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228as_fn_error $? "cannot run C compiled programs.
3229If you meant to cross compile, use \`--host'.
3230See \`config.log' for more details" "$LINENO" 5; }
3231    fi
3232  fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235$as_echo "$cross_compiling" >&6; }
3236
3237rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238ac_clean_files=$ac_clean_files_save
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240$as_echo_n "checking for suffix of object files... " >&6; }
3241if ${ac_cv_objext+:} false; then :
3242  $as_echo_n "(cached) " >&6
3243else
3244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246
3247int
3248main ()
3249{
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.o conftest.obj
3256if { { ac_try="$ac_compile"
3257case "(($ac_try" in
3258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259  *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263  (eval "$ac_compile") 2>&5
3264  ac_status=$?
3265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266  test $ac_status = 0; }; then :
3267  for ac_file in conftest.o conftest.obj conftest.*; do
3268  test -f "$ac_file" || continue;
3269  case $ac_file in
3270    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3271    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272       break;;
3273  esac
3274done
3275else
3276  $as_echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281as_fn_error $? "cannot compute suffix of object files: cannot compile
3282See \`config.log' for more details" "$LINENO" 5; }
3283fi
3284rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287$as_echo "$ac_cv_objext" >&6; }
3288OBJEXT=$ac_cv_objext
3289ac_objext=$OBJEXT
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3292if ${ac_cv_c_compiler_gnu+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h.  */
3297
3298int
3299main ()
3300{
3301#ifndef __GNUC__
3302       choke me
3303#endif
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310  ac_compiler_gnu=yes
3311else
3312  ac_compiler_gnu=no
3313fi
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315ac_cv_c_compiler_gnu=$ac_compiler_gnu
3316
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320if test $ac_compiler_gnu = yes; then
3321  GCC=yes
3322else
3323  GCC=
3324fi
3325ac_test_CFLAGS=${CFLAGS+set}
3326ac_save_CFLAGS=$CFLAGS
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328$as_echo_n "checking whether $CC accepts -g... " >&6; }
3329if ${ac_cv_prog_cc_g+:} false; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  ac_save_c_werror_flag=$ac_c_werror_flag
3333   ac_c_werror_flag=yes
3334   ac_cv_prog_cc_g=no
3335   CFLAGS="-g"
3336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347if ac_fn_c_try_compile "$LINENO"; then :
3348  ac_cv_prog_cc_g=yes
3349else
3350  CFLAGS=""
3351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h.  */
3353
3354int
3355main ()
3356{
3357
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
3363
3364else
3365  ac_c_werror_flag=$ac_save_c_werror_flag
3366	 CFLAGS="-g"
3367	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h.  */
3369
3370int
3371main ()
3372{
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"; then :
3379  ac_cv_prog_cc_g=yes
3380fi
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382fi
3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384fi
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386   ac_c_werror_flag=$ac_save_c_werror_flag
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389$as_echo "$ac_cv_prog_cc_g" >&6; }
3390if test "$ac_test_CFLAGS" = set; then
3391  CFLAGS=$ac_save_CFLAGS
3392elif test $ac_cv_prog_cc_g = yes; then
3393  if test "$GCC" = yes; then
3394    CFLAGS="-g -O2"
3395  else
3396    CFLAGS="-g"
3397  fi
3398else
3399  if test "$GCC" = yes; then
3400    CFLAGS="-O2"
3401  else
3402    CFLAGS=
3403  fi
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407if ${ac_cv_prog_cc_c89+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  ac_cv_prog_cc_c89=no
3411ac_save_CC=$CC
3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414#include <stdarg.h>
3415#include <stdio.h>
3416struct stat;
3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3418struct buf { int x; };
3419FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421     char **p;
3422     int i;
3423{
3424  return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428  char *s;
3429  va_list v;
3430  va_start (v,p);
3431  s = g (p, va_arg (v,int));
3432  va_end (v);
3433  return s;
3434}
3435
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3437   function prototypes and stuff, but not '\xHH' hex character constants.
3438   These don't provoke an error unfortunately, instead are silently treated
3439   as 'x'.  The following induces an error, until -std is added to get
3440   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3441   array size at least.  It's necessary to write '\x00'==0 to get something
3442   that's true only with -std.  */
3443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446   inside strings and character constants.  */
3447#define FOO(x) 'x'
3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466do
3467  CC="$ac_save_CC $ac_arg"
3468  if ac_fn_c_try_compile "$LINENO"; then :
3469  ac_cv_prog_cc_c89=$ac_arg
3470fi
3471rm -f core conftest.err conftest.$ac_objext
3472  test "x$ac_cv_prog_cc_c89" != "xno" && break
3473done
3474rm -f conftest.$ac_ext
3475CC=$ac_save_CC
3476
3477fi
3478# AC_CACHE_VAL
3479case "x$ac_cv_prog_cc_c89" in
3480  x)
3481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482$as_echo "none needed" >&6; } ;;
3483  xno)
3484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485$as_echo "unsupported" >&6; } ;;
3486  *)
3487    CC="$CC $ac_cv_prog_cc_c89"
3488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3490esac
3491if test "x$ac_cv_prog_cc_c89" != xno; then :
3492
3493fi
3494
3495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508$as_echo_n "checking how to run the C preprocessor... " >&6; }
3509# On Suns, sometimes $CPP names a directory.
3510if test -n "$CPP" && test -d "$CPP"; then
3511  CPP=
3512fi
3513if test -z "$CPP"; then
3514  if ${ac_cv_prog_CPP+:} false; then :
3515  $as_echo_n "(cached) " >&6
3516else
3517      # Double quotes because CPP needs to be expanded
3518    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3519    do
3520      ac_preproc_ok=false
3521for ac_c_preproc_warn_flag in '' yes
3522do
3523  # Use a header file that comes with gcc, so configuring glibc
3524  # with a fresh cross-compiler works.
3525  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526  # <limits.h> exists even on freestanding compilers.
3527  # On the NeXT, cc -E runs the code through the compiler's parser,
3528  # not just through cpp. "Syntax error" is here to catch this case.
3529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531#ifdef __STDC__
3532# include <limits.h>
3533#else
3534# include <assert.h>
3535#endif
3536		     Syntax error
3537_ACEOF
3538if ac_fn_c_try_cpp "$LINENO"; then :
3539
3540else
3541  # Broken: fails on valid input.
3542continue
3543fi
3544rm -f conftest.err conftest.i conftest.$ac_ext
3545
3546  # OK, works on sane cases.  Now check whether nonexistent headers
3547  # can be detected and how.
3548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550#include <ac_nonexistent.h>
3551_ACEOF
3552if ac_fn_c_try_cpp "$LINENO"; then :
3553  # Broken: success on invalid input.
3554continue
3555else
3556  # Passes both tests.
3557ac_preproc_ok=:
3558break
3559fi
3560rm -f conftest.err conftest.i conftest.$ac_ext
3561
3562done
3563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564rm -f conftest.i conftest.err conftest.$ac_ext
3565if $ac_preproc_ok; then :
3566  break
3567fi
3568
3569    done
3570    ac_cv_prog_CPP=$CPP
3571
3572fi
3573  CPP=$ac_cv_prog_CPP
3574else
3575  ac_cv_prog_CPP=$CPP
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578$as_echo "$CPP" >&6; }
3579ac_preproc_ok=false
3580for ac_c_preproc_warn_flag in '' yes
3581do
3582  # Use a header file that comes with gcc, so configuring glibc
3583  # with a fresh cross-compiler works.
3584  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585  # <limits.h> exists even on freestanding compilers.
3586  # On the NeXT, cc -E runs the code through the compiler's parser,
3587  # not just through cpp. "Syntax error" is here to catch this case.
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590#ifdef __STDC__
3591# include <limits.h>
3592#else
3593# include <assert.h>
3594#endif
3595		     Syntax error
3596_ACEOF
3597if ac_fn_c_try_cpp "$LINENO"; then :
3598
3599else
3600  # Broken: fails on valid input.
3601continue
3602fi
3603rm -f conftest.err conftest.i conftest.$ac_ext
3604
3605  # OK, works on sane cases.  Now check whether nonexistent headers
3606  # can be detected and how.
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609#include <ac_nonexistent.h>
3610_ACEOF
3611if ac_fn_c_try_cpp "$LINENO"; then :
3612  # Broken: success on invalid input.
3613continue
3614else
3615  # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
3619rm -f conftest.err conftest.i conftest.$ac_ext
3620
3621done
3622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623rm -f conftest.i conftest.err conftest.$ac_ext
3624if $ac_preproc_ok; then :
3625
3626else
3627  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3630See \`config.log' for more details" "$LINENO" 5; }
3631fi
3632
3633ac_ext=c
3634ac_cpp='$CPP $CPPFLAGS'
3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642if ${ac_cv_path_GREP+:} false; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  if test -z "$GREP"; then
3646  ac_path_GREP_found=false
3647  # Loop through the user's path and test for each of PROGNAME-LIST
3648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650do
3651  IFS=$as_save_IFS
3652  test -z "$as_dir" && as_dir=.
3653    for ac_prog in grep ggrep; do
3654    for ac_exec_ext in '' $ac_executable_extensions; do
3655      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3656      as_fn_executable_p "$ac_path_GREP" || continue
3657# Check for GNU ac_path_GREP and select it if it is found.
3658  # Check for GNU $ac_path_GREP
3659case `"$ac_path_GREP" --version 2>&1` in
3660*GNU*)
3661  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3662*)
3663  ac_count=0
3664  $as_echo_n 0123456789 >"conftest.in"
3665  while :
3666  do
3667    cat "conftest.in" "conftest.in" >"conftest.tmp"
3668    mv "conftest.tmp" "conftest.in"
3669    cp "conftest.in" "conftest.nl"
3670    $as_echo 'GREP' >> "conftest.nl"
3671    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673    as_fn_arith $ac_count + 1 && ac_count=$as_val
3674    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675      # Best one so far, save it but keep looking for a better one
3676      ac_cv_path_GREP="$ac_path_GREP"
3677      ac_path_GREP_max=$ac_count
3678    fi
3679    # 10*(2^10) chars as input seems more than enough
3680    test $ac_count -gt 10 && break
3681  done
3682  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683esac
3684
3685      $ac_path_GREP_found && break 3
3686    done
3687  done
3688  done
3689IFS=$as_save_IFS
3690  if test -z "$ac_cv_path_GREP"; then
3691    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3692  fi
3693else
3694  ac_cv_path_GREP=$GREP
3695fi
3696
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699$as_echo "$ac_cv_path_GREP" >&6; }
3700 GREP="$ac_cv_path_GREP"
3701
3702
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704$as_echo_n "checking for egrep... " >&6; }
3705if ${ac_cv_path_EGREP+:} false; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3709   then ac_cv_path_EGREP="$GREP -E"
3710   else
3711     if test -z "$EGREP"; then
3712  ac_path_EGREP_found=false
3713  # Loop through the user's path and test for each of PROGNAME-LIST
3714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716do
3717  IFS=$as_save_IFS
3718  test -z "$as_dir" && as_dir=.
3719    for ac_prog in egrep; do
3720    for ac_exec_ext in '' $ac_executable_extensions; do
3721      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722      as_fn_executable_p "$ac_path_EGREP" || continue
3723# Check for GNU ac_path_EGREP and select it if it is found.
3724  # Check for GNU $ac_path_EGREP
3725case `"$ac_path_EGREP" --version 2>&1` in
3726*GNU*)
3727  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728*)
3729  ac_count=0
3730  $as_echo_n 0123456789 >"conftest.in"
3731  while :
3732  do
3733    cat "conftest.in" "conftest.in" >"conftest.tmp"
3734    mv "conftest.tmp" "conftest.in"
3735    cp "conftest.in" "conftest.nl"
3736    $as_echo 'EGREP' >> "conftest.nl"
3737    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739    as_fn_arith $ac_count + 1 && ac_count=$as_val
3740    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741      # Best one so far, save it but keep looking for a better one
3742      ac_cv_path_EGREP="$ac_path_EGREP"
3743      ac_path_EGREP_max=$ac_count
3744    fi
3745    # 10*(2^10) chars as input seems more than enough
3746    test $ac_count -gt 10 && break
3747  done
3748  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749esac
3750
3751      $ac_path_EGREP_found && break 3
3752    done
3753  done
3754  done
3755IFS=$as_save_IFS
3756  if test -z "$ac_cv_path_EGREP"; then
3757    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3758  fi
3759else
3760  ac_cv_path_EGREP=$EGREP
3761fi
3762
3763   fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766$as_echo "$ac_cv_path_EGREP" >&6; }
3767 EGREP="$ac_cv_path_EGREP"
3768
3769
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771$as_echo_n "checking for ANSI C header files... " >&6; }
3772if ${ac_cv_header_stdc+:} false; then :
3773  $as_echo_n "(cached) " >&6
3774else
3775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777#include <stdlib.h>
3778#include <stdarg.h>
3779#include <string.h>
3780#include <float.h>
3781
3782int
3783main ()
3784{
3785
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790if ac_fn_c_try_compile "$LINENO"; then :
3791  ac_cv_header_stdc=yes
3792else
3793  ac_cv_header_stdc=no
3794fi
3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
3797if test $ac_cv_header_stdc = yes; then
3798  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801#include <string.h>
3802
3803_ACEOF
3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805  $EGREP "memchr" >/dev/null 2>&1; then :
3806
3807else
3808  ac_cv_header_stdc=no
3809fi
3810rm -f conftest*
3811
3812fi
3813
3814if test $ac_cv_header_stdc = yes; then
3815  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818#include <stdlib.h>
3819
3820_ACEOF
3821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822  $EGREP "free" >/dev/null 2>&1; then :
3823
3824else
3825  ac_cv_header_stdc=no
3826fi
3827rm -f conftest*
3828
3829fi
3830
3831if test $ac_cv_header_stdc = yes; then
3832  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833  if test "$cross_compiling" = yes; then :
3834  :
3835else
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838#include <ctype.h>
3839#include <stdlib.h>
3840#if ((' ' & 0x0FF) == 0x020)
3841# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3843#else
3844# define ISLOWER(c) \
3845		   (('a' <= (c) && (c) <= 'i') \
3846		     || ('j' <= (c) && (c) <= 'r') \
3847		     || ('s' <= (c) && (c) <= 'z'))
3848# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849#endif
3850
3851#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3852int
3853main ()
3854{
3855  int i;
3856  for (i = 0; i < 256; i++)
3857    if (XOR (islower (i), ISLOWER (i))
3858	|| toupper (i) != TOUPPER (i))
3859      return 2;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_run "$LINENO"; then :
3864
3865else
3866  ac_cv_header_stdc=no
3867fi
3868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3869  conftest.$ac_objext conftest.beam conftest.$ac_ext
3870fi
3871
3872fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875$as_echo "$ac_cv_header_stdc" >&6; }
3876if test $ac_cv_header_stdc = yes; then
3877
3878$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3879
3880fi
3881
3882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884		  inttypes.h stdint.h unistd.h
3885do :
3886  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3888"
3889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3890  cat >>confdefs.h <<_ACEOF
3891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3892_ACEOF
3893
3894fi
3895
3896done
3897
3898
3899
3900  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901if test "x$ac_cv_header_minix_config_h" = xyes; then :
3902  MINIX=yes
3903else
3904  MINIX=
3905fi
3906
3907
3908  if test "$MINIX" = yes; then
3909
3910$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3911
3912
3913$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3914
3915
3916$as_echo "#define _MINIX 1" >>confdefs.h
3917
3918  fi
3919
3920
3921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923if ${ac_cv_safe_to_define___extensions__+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928
3929#         define __EXTENSIONS__ 1
3930          $ac_includes_default
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940  ac_cv_safe_to_define___extensions__=yes
3941else
3942  ac_cv_safe_to_define___extensions__=no
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948  test $ac_cv_safe_to_define___extensions__ = yes &&
3949    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3950
3951  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3952
3953  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3954
3955  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3956
3957  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3958
3959
3960
3961
3962case "$prefix" in
3963        NONE)
3964		prefix="/usr/local"
3965        ;;
3966esac
3967
3968# are we on MinGW?
3969if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3970else
3971	if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3972	else on_mingw="no"; fi
3973fi
3974
3975#
3976# Determine configuration file
3977# the eval is to evaluate shell expansion twice
3978if test $on_mingw = "no"; then
3979  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3980else
3981  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3982fi
3983
3984# Check whether --with-conf_file was given.
3985if test "${with_conf_file+set}" = set; then :
3986  withval=$with_conf_file; ub_conf_file="$withval"
3987fi
3988
3989
3990hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3991
3992
3993cat >>confdefs.h <<_ACEOF
3994#define CONFIGFILE "$hdr_config"
3995_ACEOF
3996
3997
3998# Determine run, chroot directory and pidfile locations
3999
4000# Check whether --with-run-dir was given.
4001if test "${with_run_dir+set}" = set; then :
4002  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4003else
4004  if test $on_mingw = no; then
4005    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4006else
4007    UNBOUND_RUN_DIR=""
4008fi
4009
4010fi
4011
4012
4013hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4014
4015
4016cat >>confdefs.h <<_ACEOF
4017#define RUN_DIR "$hdr_run"
4018_ACEOF
4019
4020
4021
4022# Check whether --with-chroot-dir was given.
4023if test "${with_chroot_dir+set}" = set; then :
4024  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4025else
4026  if test $on_mingw = no; then
4027    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4028else
4029    UNBOUND_CHROOT_DIR=""
4030fi
4031
4032fi
4033
4034
4035hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4036
4037
4038cat >>confdefs.h <<_ACEOF
4039#define CHROOT_DIR "$hdr_chroot"
4040_ACEOF
4041
4042
4043
4044# Check whether --with-share-dir was given.
4045if test "${with_share_dir+set}" = set; then :
4046  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4047else
4048  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4049fi
4050
4051
4052
4053cat >>confdefs.h <<_ACEOF
4054#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4055_ACEOF
4056
4057
4058
4059# Check whether --with-pidfile was given.
4060if test "${with_pidfile+set}" = set; then :
4061  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4062else
4063  if test $on_mingw = no; then
4064    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4065else
4066    UNBOUND_PIDFILE=""
4067fi
4068
4069fi
4070
4071
4072hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4073
4074
4075cat >>confdefs.h <<_ACEOF
4076#define PIDFILE "$hdr_pid"
4077_ACEOF
4078
4079
4080
4081# Check whether --with-rootkey-file was given.
4082if test "${with_rootkey_file+set}" = set; then :
4083  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4084else
4085  if test $on_mingw = no; then
4086    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4087else
4088    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4089fi
4090
4091fi
4092
4093
4094hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4095
4096
4097cat >>confdefs.h <<_ACEOF
4098#define ROOT_ANCHOR_FILE "$hdr_rkey"
4099_ACEOF
4100
4101
4102
4103# Check whether --with-rootcert-file was given.
4104if test "${with_rootcert_file+set}" = set; then :
4105  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4106else
4107  if test $on_mingw = no; then
4108    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4109else
4110    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4111fi
4112
4113fi
4114
4115
4116hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4117
4118
4119cat >>confdefs.h <<_ACEOF
4120#define ROOT_CERT_FILE "$hdr_rpem"
4121_ACEOF
4122
4123
4124
4125# Check whether --with-username was given.
4126if test "${with_username+set}" = set; then :
4127  withval=$with_username; UNBOUND_USERNAME="$withval"
4128else
4129  UNBOUND_USERNAME="unbound"
4130fi
4131
4132
4133
4134cat >>confdefs.h <<_ACEOF
4135#define UB_USERNAME "$UNBOUND_USERNAME"
4136_ACEOF
4137
4138
4139
4140$as_echo "#define WINVER 0x0502" >>confdefs.h
4141
4142wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' `
4143
4144
4145cat >>confdefs.h <<_ACEOF
4146#define RSRC_PACKAGE_VERSION $wnvs
4147_ACEOF
4148
4149
4150# Checks for typedefs, structures, and compiler characteristics.
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4152$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4153if ${ac_cv_c_const+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main ()
4161{
4162
4163#ifndef __cplusplus
4164  /* Ultrix mips cc rejects this sort of thing.  */
4165  typedef int charset[2];
4166  const charset cs = { 0, 0 };
4167  /* SunOS 4.1.1 cc rejects this.  */
4168  char const *const *pcpcc;
4169  char **ppc;
4170  /* NEC SVR4.0.2 mips cc rejects this.  */
4171  struct point {int x, y;};
4172  static struct point const zero = {0,0};
4173  /* AIX XL C 1.02.0.0 rejects this.
4174     It does not let you subtract one const X* pointer from another in
4175     an arm of an if-expression whose if-part is not a constant
4176     expression */
4177  const char *g = "string";
4178  pcpcc = &g + (g ? g-g : 0);
4179  /* HPUX 7.0 cc rejects these. */
4180  ++pcpcc;
4181  ppc = (char**) pcpcc;
4182  pcpcc = (char const *const *) ppc;
4183  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4184    char tx;
4185    char *t = &tx;
4186    char const *s = 0 ? (char *) 0 : (char const *) 0;
4187
4188    *t++ = 0;
4189    if (s) return 0;
4190  }
4191  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4192    int x[] = {25, 17};
4193    const int *foo = &x[0];
4194    ++foo;
4195  }
4196  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4197    typedef const int *iptr;
4198    iptr p = 0;
4199    ++p;
4200  }
4201  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4202       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4203    struct s { int j; const int *ap[3]; } bx;
4204    struct s *b = &bx; b->j = 5;
4205  }
4206  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4207    const int foo = 10;
4208    if (!foo) return 0;
4209  }
4210  return !cs[0] && !zero.x;
4211#endif
4212
4213  ;
4214  return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_compile "$LINENO"; then :
4218  ac_cv_c_const=yes
4219else
4220  ac_cv_c_const=no
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4225$as_echo "$ac_cv_c_const" >&6; }
4226if test $ac_cv_c_const = no; then
4227
4228$as_echo "#define const /**/" >>confdefs.h
4229
4230fi
4231
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238# allow user to override the -g -O2 flags.
4239if test "x$CFLAGS" = "x" ; then
4240
4241
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4243$as_echo_n "checking whether $CC supports -g... " >&6; }
4244cache=`echo g | sed 'y%.=/+-%___p_%'`
4245if eval \${cv_prog_cc_flag_$cache+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248
4249echo 'void f(){}' >conftest.c
4250if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4251eval "cv_prog_cc_flag_$cache=yes"
4252else
4253eval "cv_prog_cc_flag_$cache=no"
4254fi
4255rm -f conftest conftest.o conftest.c
4256
4257fi
4258
4259if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261$as_echo "yes" >&6; }
4262:
4263CFLAGS="$CFLAGS -g"
4264else
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
4267:
4268
4269fi
4270
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4274$as_echo_n "checking whether $CC supports -O2... " >&6; }
4275cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4276if eval \${cv_prog_cc_flag_$cache+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279
4280echo 'void f(){}' >conftest.c
4281if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4282eval "cv_prog_cc_flag_$cache=yes"
4283else
4284eval "cv_prog_cc_flag_$cache=no"
4285fi
4286rm -f conftest conftest.o conftest.c
4287
4288fi
4289
4290if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292$as_echo "yes" >&6; }
4293:
4294CFLAGS="$CFLAGS -O2"
4295else
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
4298:
4299
4300fi
4301
4302fi
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308if test -n "$ac_tool_prefix"; then
4309  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310set dummy ${ac_tool_prefix}gcc; ac_word=$2
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if ${ac_cv_prog_CC+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -n "$CC"; then
4317  ac_cv_prog_CC="$CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322  IFS=$as_save_IFS
4323  test -z "$as_dir" && as_dir=.
4324    for ac_exec_ext in '' $ac_executable_extensions; do
4325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328    break 2
4329  fi
4330done
4331  done
4332IFS=$as_save_IFS
4333
4334fi
4335fi
4336CC=$ac_cv_prog_CC
4337if test -n "$CC"; then
4338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339$as_echo "$CC" >&6; }
4340else
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343fi
4344
4345
4346fi
4347if test -z "$ac_cv_prog_CC"; then
4348  ac_ct_CC=$CC
4349  # Extract the first word of "gcc", so it can be a program name with args.
4350set dummy gcc; ac_word=$2
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352$as_echo_n "checking for $ac_word... " >&6; }
4353if ${ac_cv_prog_ac_ct_CC+:} false; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  if test -n "$ac_ct_CC"; then
4357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362  IFS=$as_save_IFS
4363  test -z "$as_dir" && as_dir=.
4364    for ac_exec_ext in '' $ac_executable_extensions; do
4365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366    ac_cv_prog_ac_ct_CC="gcc"
4367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368    break 2
4369  fi
4370done
4371  done
4372IFS=$as_save_IFS
4373
4374fi
4375fi
4376ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377if test -n "$ac_ct_CC"; then
4378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4379$as_echo "$ac_ct_CC" >&6; }
4380else
4381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
4384
4385  if test "x$ac_ct_CC" = x; then
4386    CC=""
4387  else
4388    case $cross_compiling:$ac_tool_warned in
4389yes:)
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392ac_tool_warned=yes ;;
4393esac
4394    CC=$ac_ct_CC
4395  fi
4396else
4397  CC="$ac_cv_prog_CC"
4398fi
4399
4400if test -z "$CC"; then
4401          if test -n "$ac_tool_prefix"; then
4402    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}cc; ac_word=$2
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
4406if ${ac_cv_prog_CC+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$CC"; then
4410  ac_cv_prog_CC="$CC" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419    ac_cv_prog_CC="${ac_tool_prefix}cc"
4420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424  done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429CC=$ac_cv_prog_CC
4430if test -n "$CC"; then
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432$as_echo "$CC" >&6; }
4433else
4434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435$as_echo "no" >&6; }
4436fi
4437
4438
4439  fi
4440fi
4441if test -z "$CC"; then
4442  # Extract the first word of "cc", so it can be a program name with args.
4443set dummy cc; ac_word=$2
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445$as_echo_n "checking for $ac_word... " >&6; }
4446if ${ac_cv_prog_CC+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  if test -n "$CC"; then
4450  ac_cv_prog_CC="$CC" # Let the user override the test.
4451else
4452  ac_prog_rejected=no
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  test -z "$as_dir" && as_dir=.
4458    for ac_exec_ext in '' $ac_executable_extensions; do
4459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461       ac_prog_rejected=yes
4462       continue
4463     fi
4464    ac_cv_prog_CC="cc"
4465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469  done
4470IFS=$as_save_IFS
4471
4472if test $ac_prog_rejected = yes; then
4473  # We found a bogon in the path, so make sure we never use it.
4474  set dummy $ac_cv_prog_CC
4475  shift
4476  if test $# != 0; then
4477    # We chose a different compiler from the bogus one.
4478    # However, it has the same basename, so the bogon will be chosen
4479    # first if we set CC to just the basename; use the full file name.
4480    shift
4481    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4482  fi
4483fi
4484fi
4485fi
4486CC=$ac_cv_prog_CC
4487if test -n "$CC"; then
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489$as_echo "$CC" >&6; }
4490else
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492$as_echo "no" >&6; }
4493fi
4494
4495
4496fi
4497if test -z "$CC"; then
4498  if test -n "$ac_tool_prefix"; then
4499  for ac_prog in cl.exe
4500  do
4501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504$as_echo_n "checking for $ac_word... " >&6; }
4505if ${ac_cv_prog_CC+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  if test -n "$CC"; then
4509  ac_cv_prog_CC="$CC" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516    for ac_exec_ext in '' $ac_executable_extensions; do
4517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523  done
4524IFS=$as_save_IFS
4525
4526fi
4527fi
4528CC=$ac_cv_prog_CC
4529if test -n "$CC"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531$as_echo "$CC" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537
4538    test -n "$CC" && break
4539  done
4540fi
4541if test -z "$CC"; then
4542  ac_ct_CC=$CC
4543  for ac_prog in cl.exe
4544do
4545  # Extract the first word of "$ac_prog", so it can be a program name with args.
4546set dummy $ac_prog; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if ${ac_cv_prog_ac_ct_CC+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -n "$ac_ct_CC"; then
4553  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562    ac_cv_prog_ac_ct_CC="$ac_prog"
4563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564    break 2
4565  fi
4566done
4567  done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572ac_ct_CC=$ac_cv_prog_ac_ct_CC
4573if test -n "$ac_ct_CC"; then
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4575$as_echo "$ac_ct_CC" >&6; }
4576else
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582  test -n "$ac_ct_CC" && break
4583done
4584
4585  if test "x$ac_ct_CC" = x; then
4586    CC=""
4587  else
4588    case $cross_compiling:$ac_tool_warned in
4589yes:)
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592ac_tool_warned=yes ;;
4593esac
4594    CC=$ac_ct_CC
4595  fi
4596fi
4597
4598fi
4599
4600
4601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603as_fn_error $? "no acceptable C compiler found in \$PATH
4604See \`config.log' for more details" "$LINENO" 5; }
4605
4606# Provide some information about the compiler.
4607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4608set X $ac_compile
4609ac_compiler=$2
4610for ac_option in --version -v -V -qversion; do
4611  { { ac_try="$ac_compiler $ac_option >&5"
4612case "(($ac_try" in
4613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614  *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619  ac_status=$?
4620  if test -s conftest.err; then
4621    sed '10a\
4622... rest of stderr output deleted ...
4623         10q' conftest.err >conftest.er1
4624    cat conftest.er1 >&5
4625  fi
4626  rm -f conftest.er1 conftest.err
4627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628  test $ac_status = 0; }
4629done
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633if ${ac_cv_c_compiler_gnu+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h.  */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643       choke me
4644#endif
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650if ac_fn_c_try_compile "$LINENO"; then :
4651  ac_compiler_gnu=yes
4652else
4653  ac_compiler_gnu=no
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661if test $ac_compiler_gnu = yes; then
4662  GCC=yes
4663else
4664  GCC=
4665fi
4666ac_test_CFLAGS=${CFLAGS+set}
4667ac_save_CFLAGS=$CFLAGS
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669$as_echo_n "checking whether $CC accepts -g... " >&6; }
4670if ${ac_cv_prog_cc_g+:} false; then :
4671  $as_echo_n "(cached) " >&6
4672else
4673  ac_save_c_werror_flag=$ac_c_werror_flag
4674   ac_c_werror_flag=yes
4675   ac_cv_prog_cc_g=no
4676   CFLAGS="-g"
4677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h.  */
4679
4680int
4681main ()
4682{
4683
4684  ;
4685  return 0;
4686}
4687_ACEOF
4688if ac_fn_c_try_compile "$LINENO"; then :
4689  ac_cv_prog_cc_g=yes
4690else
4691  CFLAGS=""
4692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694
4695int
4696main ()
4697{
4698
4699  ;
4700  return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_compile "$LINENO"; then :
4704
4705else
4706  ac_c_werror_flag=$ac_save_c_werror_flag
4707	 CFLAGS="-g"
4708	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_compile "$LINENO"; then :
4720  ac_cv_prog_cc_g=yes
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723fi
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725fi
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727   ac_c_werror_flag=$ac_save_c_werror_flag
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730$as_echo "$ac_cv_prog_cc_g" >&6; }
4731if test "$ac_test_CFLAGS" = set; then
4732  CFLAGS=$ac_save_CFLAGS
4733elif test $ac_cv_prog_cc_g = yes; then
4734  if test "$GCC" = yes; then
4735    CFLAGS="-g -O2"
4736  else
4737    CFLAGS="-g"
4738  fi
4739else
4740  if test "$GCC" = yes; then
4741    CFLAGS="-O2"
4742  else
4743    CFLAGS=
4744  fi
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748if ${ac_cv_prog_cc_c89+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  ac_cv_prog_cc_c89=no
4752ac_save_CC=$CC
4753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h.  */
4755#include <stdarg.h>
4756#include <stdio.h>
4757struct stat;
4758/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4759struct buf { int x; };
4760FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761static char *e (p, i)
4762     char **p;
4763     int i;
4764{
4765  return p[i];
4766}
4767static char *f (char * (*g) (char **, int), char **p, ...)
4768{
4769  char *s;
4770  va_list v;
4771  va_start (v,p);
4772  s = g (p, va_arg (v,int));
4773  va_end (v);
4774  return s;
4775}
4776
4777/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4778   function prototypes and stuff, but not '\xHH' hex character constants.
4779   These don't provoke an error unfortunately, instead are silently treated
4780   as 'x'.  The following induces an error, until -std is added to get
4781   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4782   array size at least.  It's necessary to write '\x00'==0 to get something
4783   that's true only with -std.  */
4784int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785
4786/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787   inside strings and character constants.  */
4788#define FOO(x) 'x'
4789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790
4791int test (int i, double x);
4792struct s1 {int (*f) (int a);};
4793struct s2 {int (*f) (double a);};
4794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795int argc;
4796char **argv;
4797int
4798main ()
4799{
4800return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4807do
4808  CC="$ac_save_CC $ac_arg"
4809  if ac_fn_c_try_compile "$LINENO"; then :
4810  ac_cv_prog_cc_c89=$ac_arg
4811fi
4812rm -f core conftest.err conftest.$ac_objext
4813  test "x$ac_cv_prog_cc_c89" != "xno" && break
4814done
4815rm -f conftest.$ac_ext
4816CC=$ac_save_CC
4817
4818fi
4819# AC_CACHE_VAL
4820case "x$ac_cv_prog_cc_c89" in
4821  x)
4822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823$as_echo "none needed" >&6; } ;;
4824  xno)
4825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826$as_echo "unsupported" >&6; } ;;
4827  *)
4828    CC="$CC $ac_cv_prog_cc_c89"
4829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4831esac
4832if test "x$ac_cv_prog_cc_c89" != xno; then :
4833
4834fi
4835
4836ac_ext=c
4837ac_cpp='$CPP $CPPFLAGS'
4838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4844$as_echo_n "checking $CC dependency flag... " >&6; }
4845echo 'void f(){}' >conftest.c
4846if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4847	DEPFLAG="-MM"
4848else
4849  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4850	DEPFLAG="-xM1"
4851  else
4852	DEPFLAG="-MM"  # dunno do something
4853  fi
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4856$as_echo "$DEPFLAG" >&6; }
4857rm -f conftest.c
4858
4859
4860
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4864$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4865cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4866if eval \${cv_prog_cc_flag_$cache+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869
4870echo 'void f(){}' >conftest.c
4871if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4872eval "cv_prog_cc_flag_$cache=yes"
4873else
4874eval "cv_prog_cc_flag_$cache=no"
4875fi
4876rm -f conftest conftest.o conftest.c
4877
4878fi
4879
4880if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882$as_echo "yes" >&6; }
4883:
4884ERRFLAG="-Werror"
4885else
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888:
4889ERRFLAG="-errwarn"
4890fi
4891
4892
4893
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4895$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4896cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4897if eval \${cv_prog_cc_flag_$cache+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900
4901echo 'void f(){}' >conftest.c
4902if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4903eval "cv_prog_cc_flag_$cache=yes"
4904else
4905eval "cv_prog_cc_flag_$cache=no"
4906fi
4907rm -f conftest conftest.o conftest.c
4908
4909fi
4910
4911if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913$as_echo "yes" >&6; }
4914:
4915ERRFLAG="$ERRFLAG -Wall"
4916else
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919:
4920ERRFLAG="$ERRFLAG -errfmt"
4921fi
4922
4923
4924
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4928$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4929cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4930if eval \${cv_prog_cc_flag_$cache+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933
4934echo 'void f(){}' >conftest.c
4935if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4936eval "cv_prog_cc_flag_$cache=yes"
4937else
4938eval "cv_prog_cc_flag_$cache=no"
4939fi
4940rm -f conftest conftest.o conftest.c
4941
4942fi
4943
4944if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946$as_echo "yes" >&6; }
4947:
4948C99FLAG="-std=c99"
4949else
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952:
4953
4954fi
4955
4956
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4959$as_echo_n "checking whether $CC supports -xc99... " >&6; }
4960cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4961if eval \${cv_prog_cc_flag_$cache+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964
4965echo 'void f(){}' >conftest.c
4966if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4967eval "cv_prog_cc_flag_$cache=yes"
4968else
4969eval "cv_prog_cc_flag_$cache=no"
4970fi
4971rm -f conftest conftest.o conftest.c
4972
4973fi
4974
4975if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977$as_echo "yes" >&6; }
4978:
4979C99FLAG="-xc99"
4980else
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983:
4984
4985fi
4986
4987
4988for ac_header in getopt.h time.h
4989do :
4990  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4992"
4993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4994  cat >>confdefs.h <<_ACEOF
4995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4996_ACEOF
4997
4998fi
4999
5000done
5001
5002
5003
5004
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5007$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5008cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5009if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012
5013echo '
5014#include "confdefs.h"
5015#include <stdlib.h>
5016#include <ctype.h>
5017#include <sys/time.h>
5018#ifdef HAVE_TIME_H
5019#include <time.h>
5020#endif
5021#include <unistd.h>
5022#include <netdb.h>
5023#ifdef HAVE_GETOPT_H
5024#include <getopt.h>
5025#endif
5026
5027int test() {
5028	int a;
5029	char **opts = NULL;
5030	struct timeval tv;
5031	char *t;
5032	time_t time = 0;
5033	char *buf = NULL;
5034	const char* str = NULL;
5035	struct msghdr msg;
5036	msg.msg_control = 0;
5037	t = ctime_r(&time, buf);
5038	tv.tv_usec = 10;
5039	srandom(32);
5040	a = getopt(2, opts, "a");
5041	a = isascii(32);
5042	str = gai_strerror(0);
5043	if(str && t && tv.tv_usec && msg.msg_control)
5044		a = 0;
5045	return a;
5046}
5047' > conftest.c
5048echo 'void f(){}' >>conftest.c
5049if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5050eval "cv_prog_cc_flag_needed_$cache=no"
5051else
5052
5053if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5054eval "cv_prog_cc_flag_needed_$cache=yes"
5055else
5056eval "cv_prog_cc_flag_needed_$cache=fail"
5057#echo 'Test with flag fails too!'
5058#cat conftest.c
5059#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5060#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5061#exit 1
5062fi
5063
5064fi
5065rm -f conftest conftest.c conftest.o
5066
5067fi
5068
5069if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071$as_echo "yes" >&6; }
5072:
5073CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5074else
5075if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078#echo 'Test with flag is no!'
5079#cat conftest.c
5080#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5081#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5082#exit 1
5083:
5084
5085else
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5087$as_echo "failed" >&6; }
5088:
5089
5090fi
5091fi
5092
5093
5094
5095
5096
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5098$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5099cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5100if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103
5104echo '
5105#include "confdefs.h"
5106#include <stdlib.h>
5107#include <ctype.h>
5108#include <sys/time.h>
5109#ifdef HAVE_TIME_H
5110#include <time.h>
5111#endif
5112#include <unistd.h>
5113#include <netdb.h>
5114#ifdef HAVE_GETOPT_H
5115#include <getopt.h>
5116#endif
5117
5118int test() {
5119	int a;
5120	char **opts = NULL;
5121	struct timeval tv;
5122	char *t;
5123	time_t time = 0;
5124	char *buf = NULL;
5125	const char* str = NULL;
5126	struct msghdr msg;
5127	msg.msg_control = 0;
5128	t = ctime_r(&time, buf);
5129	tv.tv_usec = 10;
5130	srandom(32);
5131	a = getopt(2, opts, "a");
5132	a = isascii(32);
5133	str = gai_strerror(0);
5134	if(str && t && tv.tv_usec && msg.msg_control)
5135		a = 0;
5136	return a;
5137}
5138' > conftest.c
5139echo 'void f(){}' >>conftest.c
5140if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5141eval "cv_prog_cc_flag_needed_$cache=no"
5142else
5143
5144if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5145eval "cv_prog_cc_flag_needed_$cache=yes"
5146else
5147eval "cv_prog_cc_flag_needed_$cache=fail"
5148#echo 'Test with flag fails too!'
5149#cat conftest.c
5150#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5151#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5152#exit 1
5153fi
5154
5155fi
5156rm -f conftest conftest.c conftest.o
5157
5158fi
5159
5160if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162$as_echo "yes" >&6; }
5163:
5164CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5165else
5166if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169#echo 'Test with flag is no!'
5170#cat conftest.c
5171#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5172#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5173#exit 1
5174:
5175
5176else
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5178$as_echo "failed" >&6; }
5179:
5180
5181fi
5182fi
5183
5184
5185
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5189$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5190cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5191if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194
5195echo '
5196#include <stdbool.h>
5197#include <ctype.h>
5198int test() {
5199        int a = 0;
5200        return a;
5201}
5202' > conftest.c
5203echo 'void f(){}' >>conftest.c
5204if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5205eval "cv_prog_cc_flag_needed_$cache=no"
5206else
5207
5208if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5209eval "cv_prog_cc_flag_needed_$cache=yes"
5210else
5211eval "cv_prog_cc_flag_needed_$cache=fail"
5212#echo 'Test with flag fails too!'
5213#cat conftest.c
5214#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5215#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5216#exit 1
5217fi
5218
5219fi
5220rm -f conftest conftest.c conftest.o
5221
5222fi
5223
5224if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226$as_echo "yes" >&6; }
5227:
5228CFLAGS="$CFLAGS $C99FLAG"
5229else
5230if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233#echo 'Test with flag is no!'
5234#cat conftest.c
5235#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5236#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5237#exit 1
5238:
5239
5240else
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5242$as_echo "failed" >&6; }
5243:
5244
5245fi
5246fi
5247
5248
5249
5250
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5253$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5254cache=_D_BSD_SOURCE
5255if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258
5259echo '
5260#include <ctype.h>
5261
5262int test() {
5263        int a;
5264        a = isascii(32);
5265        return a;
5266}
5267' > conftest.c
5268echo 'void f(){}' >>conftest.c
5269if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5270eval "cv_prog_cc_flag_needed_$cache=no"
5271else
5272
5273if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5274eval "cv_prog_cc_flag_needed_$cache=yes"
5275else
5276eval "cv_prog_cc_flag_needed_$cache=fail"
5277#echo 'Test with flag fails too!'
5278#cat conftest.c
5279#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5280#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5281#exit 1
5282fi
5283
5284fi
5285rm -f conftest conftest.c conftest.o
5286
5287fi
5288
5289if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291$as_echo "yes" >&6; }
5292:
5293CFLAGS="$CFLAGS -D_BSD_SOURCE"
5294else
5295if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298#echo 'Test with flag is no!'
5299#cat conftest.c
5300#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5301#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5302#exit 1
5303:
5304
5305else
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5307$as_echo "failed" >&6; }
5308:
5309
5310fi
5311fi
5312
5313
5314
5315
5316
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5318$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5319cache=_D_GNU_SOURCE
5320if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323
5324echo '
5325#include <netinet/in.h>
5326
5327int test() {
5328        struct in6_pktinfo inf;
5329	int a = (int)sizeof(inf);
5330        return a;
5331}
5332' > conftest.c
5333echo 'void f(){}' >>conftest.c
5334if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5335eval "cv_prog_cc_flag_needed_$cache=no"
5336else
5337
5338if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5339eval "cv_prog_cc_flag_needed_$cache=yes"
5340else
5341eval "cv_prog_cc_flag_needed_$cache=fail"
5342#echo 'Test with flag fails too!'
5343#cat conftest.c
5344#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5345#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5346#exit 1
5347fi
5348
5349fi
5350rm -f conftest conftest.c conftest.o
5351
5352fi
5353
5354if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
5357:
5358CFLAGS="$CFLAGS -D_GNU_SOURCE"
5359else
5360if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362$as_echo "no" >&6; }
5363#echo 'Test with flag is no!'
5364#cat conftest.c
5365#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5366#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5367#exit 1
5368:
5369
5370else
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5372$as_echo "failed" >&6; }
5373:
5374
5375fi
5376fi
5377
5378
5379# check again for GNU_SOURCE for setresgid. May fail if setresgid
5380# is not available at all. -D_FRSRESGID is to make this check unique.
5381# otherwise we would get the previous cached result.
5382
5383
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5386$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5387cache=_D_GNU_SOURCE__D_FRSRESGID
5388if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391
5392echo '
5393#include <unistd.h>
5394
5395int test() {
5396	int a = setresgid(0,0,0);
5397	a = setresuid(0,0,0);
5398        return a;
5399}
5400' > conftest.c
5401echo 'void f(){}' >>conftest.c
5402if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5403eval "cv_prog_cc_flag_needed_$cache=no"
5404else
5405
5406if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5407eval "cv_prog_cc_flag_needed_$cache=yes"
5408else
5409eval "cv_prog_cc_flag_needed_$cache=fail"
5410#echo 'Test with flag fails too!'
5411#cat conftest.c
5412#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5413#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5414#exit 1
5415fi
5416
5417fi
5418rm -f conftest conftest.c conftest.o
5419
5420fi
5421
5422if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424$as_echo "yes" >&6; }
5425:
5426CFLAGS="$CFLAGS -D_GNU_SOURCE"
5427else
5428if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431#echo 'Test with flag is no!'
5432#cat conftest.c
5433#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5434#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5435#exit 1
5436:
5437
5438else
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5440$as_echo "failed" >&6; }
5441:
5442
5443fi
5444fi
5445
5446
5447
5448
5449
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5451$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5452cache=_D_POSIX_C_SOURCE_200112
5453if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456
5457echo '
5458#include "confdefs.h"
5459#ifdef HAVE_TIME_H
5460#include <time.h>
5461#endif
5462#include <netdb.h>
5463
5464int test() {
5465        int a = 0;
5466        char *t;
5467        time_t time = 0;
5468        char *buf = NULL;
5469	const char* str = NULL;
5470        t = ctime_r(&time, buf);
5471	str = gai_strerror(0);
5472	if(t && str)
5473		a = 0;
5474        return a;
5475}
5476' > conftest.c
5477echo 'void f(){}' >>conftest.c
5478if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5479eval "cv_prog_cc_flag_needed_$cache=no"
5480else
5481
5482if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5483eval "cv_prog_cc_flag_needed_$cache=yes"
5484else
5485eval "cv_prog_cc_flag_needed_$cache=fail"
5486#echo 'Test with flag fails too!'
5487#cat conftest.c
5488#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5489#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5490#exit 1
5491fi
5492
5493fi
5494rm -f conftest conftest.c conftest.o
5495
5496fi
5497
5498if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500$as_echo "yes" >&6; }
5501:
5502CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5503else
5504if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507#echo 'Test with flag is no!'
5508#cat conftest.c
5509#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5510#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5511#exit 1
5512:
5513
5514else
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5516$as_echo "failed" >&6; }
5517:
5518
5519fi
5520fi
5521
5522
5523
5524
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5527$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5528cache=_D__EXTENSIONS__
5529if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532
5533echo '
5534#include "confdefs.h"
5535#include <stdlib.h>
5536#include <ctype.h>
5537#include <sys/time.h>
5538#ifdef HAVE_TIME_H
5539#include <time.h>
5540#endif
5541#include <unistd.h>
5542#ifdef HAVE_GETOPT_H
5543#include <getopt.h>
5544#endif
5545
5546int test() {
5547        int a;
5548        char **opts = NULL;
5549        struct timeval tv;
5550        tv.tv_usec = 10;
5551        srandom(32);
5552        a = getopt(2, opts, "a");
5553        a = isascii(32);
5554	if(tv.tv_usec)
5555		a = 0;
5556        return a;
5557}
5558' > conftest.c
5559echo 'void f(){}' >>conftest.c
5560if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5561eval "cv_prog_cc_flag_needed_$cache=no"
5562else
5563
5564if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5565eval "cv_prog_cc_flag_needed_$cache=yes"
5566else
5567eval "cv_prog_cc_flag_needed_$cache=fail"
5568#echo 'Test with flag fails too!'
5569#cat conftest.c
5570#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5571#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5572#exit 1
5573fi
5574
5575fi
5576rm -f conftest conftest.c conftest.o
5577
5578fi
5579
5580if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582$as_echo "yes" >&6; }
5583:
5584CFLAGS="$CFLAGS -D__EXTENSIONS__"
5585else
5586if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589#echo 'Test with flag is no!'
5590#cat conftest.c
5591#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5592#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5593#exit 1
5594:
5595
5596else
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5598$as_echo "failed" >&6; }
5599:
5600
5601fi
5602fi
5603
5604
5605
5606
5607# debug mode flags warnings
5608# Check whether --enable-checking was given.
5609if test "${enable_checking+set}" = set; then :
5610  enableval=$enable_checking;
5611fi
5612
5613# Check whether --enable-debug was given.
5614if test "${enable_debug+set}" = set; then :
5615  enableval=$enable_debug;
5616fi
5617
5618if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5619else debug_enabled="$enable_checking"; fi
5620
5621case "$debug_enabled" in
5622        yes)
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5626$as_echo_n "checking whether $CC supports -W... " >&6; }
5627cache=`echo W | sed 'y%.=/+-%___p_%'`
5628if eval \${cv_prog_cc_flag_$cache+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631
5632echo 'void f(){}' >conftest.c
5633if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5634eval "cv_prog_cc_flag_$cache=yes"
5635else
5636eval "cv_prog_cc_flag_$cache=no"
5637fi
5638rm -f conftest conftest.o conftest.c
5639
5640fi
5641
5642if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644$as_echo "yes" >&6; }
5645:
5646CFLAGS="$CFLAGS -W"
5647else
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650:
5651
5652fi
5653
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5657$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5658cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5659if eval \${cv_prog_cc_flag_$cache+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662
5663echo 'void f(){}' >conftest.c
5664if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5665eval "cv_prog_cc_flag_$cache=yes"
5666else
5667eval "cv_prog_cc_flag_$cache=no"
5668fi
5669rm -f conftest conftest.o conftest.c
5670
5671fi
5672
5673if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675$as_echo "yes" >&6; }
5676:
5677CFLAGS="$CFLAGS -Wall"
5678else
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681:
5682
5683fi
5684
5685
5686
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5688$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5689cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5690if eval \${cv_prog_cc_flag_$cache+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693
5694echo 'void f(){}' >conftest.c
5695if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5696eval "cv_prog_cc_flag_$cache=yes"
5697else
5698eval "cv_prog_cc_flag_$cache=no"
5699fi
5700rm -f conftest conftest.o conftest.c
5701
5702fi
5703
5704if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706$as_echo "yes" >&6; }
5707:
5708CFLAGS="$CFLAGS -Wextra"
5709else
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711$as_echo "no" >&6; }
5712:
5713
5714fi
5715
5716
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5719$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5720cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5721if eval \${cv_prog_cc_flag_$cache+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724
5725echo 'void f(){}' >conftest.c
5726if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5727eval "cv_prog_cc_flag_$cache=yes"
5728else
5729eval "cv_prog_cc_flag_$cache=no"
5730fi
5731rm -f conftest conftest.o conftest.c
5732
5733fi
5734
5735if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737$as_echo "yes" >&6; }
5738:
5739CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5740else
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743:
5744
5745fi
5746
5747
5748$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5749
5750		;;
5751	no|*)
5752		# nothing to do.
5753		;;
5754esac
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5756$as_echo_n "checking if $CC supports -flto... " >&6; }
5757BAKCFLAGS="$CFLAGS"
5758CFLAGS="$CFLAGS -flto"
5759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761
5762int
5763main ()
5764{
5765
5766  ;
5767  return 0;
5768}
5769_ACEOF
5770if ac_fn_c_try_link "$LINENO"; then :
5771
5772    if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5773	CFLAGS="$BAKCFLAGS"
5774	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }
5776    else
5777	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778$as_echo "yes" >&6; }
5779    fi
5780    rm -f conftest conftest.c conftest.o
5781
5782else
5783  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786rm -f core conftest.err conftest.$ac_objext \
5787    conftest$ac_exeext conftest.$ac_ext
5788
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5791$as_echo_n "checking for inline... " >&6; }
5792if ${ac_cv_c_inline+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  ac_cv_c_inline=no
5796for ac_kw in inline __inline__ __inline; do
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799#ifndef __cplusplus
5800typedef int foo_t;
5801static $ac_kw foo_t static_foo () {return 0; }
5802$ac_kw foo_t foo () {return 0; }
5803#endif
5804
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807  ac_cv_c_inline=$ac_kw
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810  test "$ac_cv_c_inline" != no && break
5811done
5812
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5815$as_echo "$ac_cv_c_inline" >&6; }
5816
5817case $ac_cv_c_inline in
5818  inline | yes) ;;
5819  *)
5820    case $ac_cv_c_inline in
5821      no) ac_val=;;
5822      *) ac_val=$ac_cv_c_inline;;
5823    esac
5824    cat >>confdefs.h <<_ACEOF
5825#ifndef __cplusplus
5826#define inline $ac_val
5827#endif
5828_ACEOF
5829    ;;
5830esac
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5834$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5835if ${ac_cv_c_format_attribute+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  ac_cv_c_format_attribute=no
5839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841#include <stdio.h>
5842void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5843void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5844
5845int
5846main ()
5847{
5848
5849   f ("%s", "str");
5850
5851  ;
5852  return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856  ac_cv_c_format_attribute="yes"
5857else
5858  ac_cv_c_format_attribute="no"
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861
5862fi
5863
5864
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5866$as_echo "$ac_cv_c_format_attribute" >&6; }
5867if test $ac_cv_c_format_attribute = yes; then
5868
5869$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5870
5871fi
5872
5873
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5875$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5876if ${ac_cv_c_unused_attribute+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  ac_cv_c_unused_attribute=no
5880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h.  */
5882#include <stdio.h>
5883void f (char *u __attribute__((unused)));
5884
5885int
5886main ()
5887{
5888
5889   f ("x");
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896  ac_cv_c_unused_attribute="yes"
5897else
5898  ac_cv_c_unused_attribute="no"
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902fi
5903
5904
5905
5906
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5908$as_echo "$ac_cv_c_unused_attribute" >&6; }
5909if test $ac_cv_c_unused_attribute = yes; then
5910
5911$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5912
5913fi
5914
5915
5916if test "$srcdir" != "."; then
5917	CPPFLAGS="$CPPFLAGS -I$srcdir"
5918fi
5919
5920
5921
5922for ac_prog in flex lex
5923do
5924  # Extract the first word of "$ac_prog", so it can be a program name with args.
5925set dummy $ac_prog; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_LEX+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$LEX"; then
5932  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_LEX="$ac_prog"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951LEX=$ac_cv_prog_LEX
5952if test -n "$LEX"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5954$as_echo "$LEX" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961  test -n "$LEX" && break
5962done
5963test -n "$LEX" || LEX=":"
5964
5965if test "x$LEX" != "x:"; then
5966  cat >conftest.l <<_ACEOF
5967%%
5968a { ECHO; }
5969b { REJECT; }
5970c { yymore (); }
5971d { yyless (1); }
5972e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5973    yyless ((input () != 0)); }
5974f { unput (yytext[0]); }
5975. { BEGIN INITIAL; }
5976%%
5977#ifdef YYTEXT_POINTER
5978extern char *yytext;
5979#endif
5980int
5981main (void)
5982{
5983  return ! yylex () + ! yywrap ();
5984}
5985_ACEOF
5986{ { ac_try="$LEX conftest.l"
5987case "(($ac_try" in
5988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989  *) ac_try_echo=$ac_try;;
5990esac
5991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5992$as_echo "$ac_try_echo"; } >&5
5993  (eval "$LEX conftest.l") 2>&5
5994  ac_status=$?
5995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996  test $ac_status = 0; }
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5998$as_echo_n "checking lex output file root... " >&6; }
5999if ${ac_cv_prog_lex_root+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002
6003if test -f lex.yy.c; then
6004  ac_cv_prog_lex_root=lex.yy
6005elif test -f lexyy.c; then
6006  ac_cv_prog_lex_root=lexyy
6007else
6008  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6009fi
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6012$as_echo "$ac_cv_prog_lex_root" >&6; }
6013LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6014
6015if test -z "${LEXLIB+set}"; then
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6017$as_echo_n "checking lex library... " >&6; }
6018if ${ac_cv_lib_lex+:} false; then :
6019  $as_echo_n "(cached) " >&6
6020else
6021
6022    ac_save_LIBS=$LIBS
6023    ac_cv_lib_lex='none needed'
6024    for ac_lib in '' -lfl -ll; do
6025      LIBS="$ac_lib $ac_save_LIBS"
6026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028`cat $LEX_OUTPUT_ROOT.c`
6029_ACEOF
6030if ac_fn_c_try_link "$LINENO"; then :
6031  ac_cv_lib_lex=$ac_lib
6032fi
6033rm -f core conftest.err conftest.$ac_objext \
6034    conftest$ac_exeext conftest.$ac_ext
6035      test "$ac_cv_lib_lex" != 'none needed' && break
6036    done
6037    LIBS=$ac_save_LIBS
6038
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6041$as_echo "$ac_cv_lib_lex" >&6; }
6042  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6043fi
6044
6045
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6047$as_echo_n "checking whether yytext is a pointer... " >&6; }
6048if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  # POSIX says lex can declare yytext either as a pointer or an array; the
6052# default is implementation-dependent.  Figure out which it is, since
6053# not all implementations provide the %pointer and %array declarations.
6054ac_cv_prog_lex_yytext_pointer=no
6055ac_save_LIBS=$LIBS
6056LIBS="$LEXLIB $ac_save_LIBS"
6057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059
6060  #define YYTEXT_POINTER 1
6061`cat $LEX_OUTPUT_ROOT.c`
6062_ACEOF
6063if ac_fn_c_try_link "$LINENO"; then :
6064  ac_cv_prog_lex_yytext_pointer=yes
6065fi
6066rm -f core conftest.err conftest.$ac_objext \
6067    conftest$ac_exeext conftest.$ac_ext
6068LIBS=$ac_save_LIBS
6069
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6072$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6073if test $ac_cv_prog_lex_yytext_pointer = yes; then
6074
6075$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6076
6077fi
6078rm -f conftest.l $LEX_OUTPUT_ROOT.c
6079
6080fi
6081
6082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6083$as_echo_n "checking for yylex_destroy... " >&6; }
6084	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6085
6086$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6087
6088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6089$as_echo "yes" >&6; }
6090	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }; fi
6092
6093for ac_prog in 'bison -y' byacc
6094do
6095  # Extract the first word of "$ac_prog", so it can be a program name with args.
6096set dummy $ac_prog; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_YACC+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  if test -n "$YACC"; then
6103  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  test -z "$as_dir" && as_dir=.
6110    for ac_exec_ext in '' $ac_executable_extensions; do
6111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112    ac_cv_prog_YACC="$ac_prog"
6113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117  done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122YACC=$ac_cv_prog_YACC
6123if test -n "$YACC"; then
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6125$as_echo "$YACC" >&6; }
6126else
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131
6132  test -n "$YACC" && break
6133done
6134test -n "$YACC" || YACC="yacc"
6135
6136# Extract the first word of "doxygen", so it can be a program name with args.
6137set dummy doxygen; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if ${ac_cv_prog_doxygen+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$doxygen"; then
6144  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153    ac_cv_prog_doxygen="doxygen"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163doxygen=$ac_cv_prog_doxygen
6164if test -n "$doxygen"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6166$as_echo "$doxygen" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172
6173if test -n "$ac_tool_prefix"; then
6174  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}strip; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if ${ac_cv_prog_STRIP+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  if test -n "$STRIP"; then
6182  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189    for ac_exec_ext in '' $ac_executable_extensions; do
6190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196  done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201STRIP=$ac_cv_prog_STRIP
6202if test -n "$STRIP"; then
6203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6204$as_echo "$STRIP" >&6; }
6205else
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_STRIP"; then
6213  ac_ct_STRIP=$STRIP
6214  # Extract the first word of "strip", so it can be a program name with args.
6215set dummy strip; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
6218if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  if test -n "$ac_ct_STRIP"; then
6222  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227  IFS=$as_save_IFS
6228  test -z "$as_dir" && as_dir=.
6229    for ac_exec_ext in '' $ac_executable_extensions; do
6230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231    ac_cv_prog_ac_ct_STRIP="strip"
6232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233    break 2
6234  fi
6235done
6236  done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6242if test -n "$ac_ct_STRIP"; then
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6244$as_echo "$ac_ct_STRIP" >&6; }
6245else
6246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250  if test "x$ac_ct_STRIP" = x; then
6251    STRIP=""
6252  else
6253    case $cross_compiling:$ac_tool_warned in
6254yes:)
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259    STRIP=$ac_ct_STRIP
6260  fi
6261else
6262  STRIP="$ac_cv_prog_STRIP"
6263fi
6264
6265
6266# skip these tests, we do not need them.
6267
6268
6269
6270
6271
6272
6273
6274
6275# always use ./libtool unless override from commandline (libtool=mylibtool)
6276if test -z "$libtool"; then
6277	libtool="./libtool"
6278fi
6279
6280# avoid libtool max commandline length test on systems that fork slowly.
6281
6282if echo "$host_os" | grep "sunos4" >/dev/null; then
6283	lt_cv_sys_max_cmd_len=32750;
6284fi
6285if test -n "$ac_tool_prefix"; then
6286  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6287set dummy ${ac_tool_prefix}ar; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if ${ac_cv_path_AR+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  case $AR in
6294  [\\/]* | ?:[\\/]*)
6295  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6296  ;;
6297  *)
6298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301  IFS=$as_save_IFS
6302  test -z "$as_dir" && as_dir=.
6303    for ac_exec_ext in '' $ac_executable_extensions; do
6304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307    break 2
6308  fi
6309done
6310  done
6311IFS=$as_save_IFS
6312
6313  ;;
6314esac
6315fi
6316AR=$ac_cv_path_AR
6317if test -n "$AR"; then
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6319$as_echo "$AR" >&6; }
6320else
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322$as_echo "no" >&6; }
6323fi
6324
6325
6326fi
6327if test -z "$ac_cv_path_AR"; then
6328  ac_pt_AR=$AR
6329  # Extract the first word of "ar", so it can be a program name with args.
6330set dummy ar; ac_word=$2
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if ${ac_cv_path_ac_pt_AR+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  case $ac_pt_AR in
6337  [\\/]* | ?:[\\/]*)
6338  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6339  ;;
6340  *)
6341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346    for ac_exec_ext in '' $ac_executable_extensions; do
6347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353  done
6354IFS=$as_save_IFS
6355
6356  ;;
6357esac
6358fi
6359ac_pt_AR=$ac_cv_path_ac_pt_AR
6360if test -n "$ac_pt_AR"; then
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6362$as_echo "$ac_pt_AR" >&6; }
6363else
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368  if test "x$ac_pt_AR" = x; then
6369    AR="false"
6370  else
6371    case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377    AR=$ac_pt_AR
6378  fi
6379else
6380  AR="$ac_cv_path_AR"
6381fi
6382
6383if test $AR = false; then
6384	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6385fi
6386
6387case `pwd` in
6388  *\ * | *\	*)
6389    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6390$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6391esac
6392
6393
6394
6395macro_version='2.4.2'
6396macro_revision='1.3337'
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410ltmain="$ac_aux_dir/ltmain.sh"
6411
6412# Backslashify metacharacters that are still active within
6413# double-quoted strings.
6414sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6415
6416# Same as above, but do not quote variable references.
6417double_quote_subst='s/\(["`\\]\)/\\\1/g'
6418
6419# Sed substitution to delay expansion of an escaped shell variable in a
6420# double_quote_subst'ed string.
6421delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6422
6423# Sed substitution to delay expansion of an escaped single quote.
6424delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6425
6426# Sed substitution to avoid accidental globbing in evaled expressions
6427no_glob_subst='s/\*/\\\*/g'
6428
6429ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6430ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6431ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6432
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6434$as_echo_n "checking how to print strings... " >&6; }
6435# Test print first, because it will be a builtin if present.
6436if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6437   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6438  ECHO='print -r --'
6439elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6440  ECHO='printf %s\n'
6441else
6442  # Use this function as a fallback that always works.
6443  func_fallback_echo ()
6444  {
6445    eval 'cat <<_LTECHO_EOF
6446$1
6447_LTECHO_EOF'
6448  }
6449  ECHO='func_fallback_echo'
6450fi
6451
6452# func_echo_all arg...
6453# Invoke $ECHO with all args, space-separated.
6454func_echo_all ()
6455{
6456    $ECHO ""
6457}
6458
6459case "$ECHO" in
6460  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6461$as_echo "printf" >&6; } ;;
6462  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6463$as_echo "print -r" >&6; } ;;
6464  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6465$as_echo "cat" >&6; } ;;
6466esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6482$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6483if ${ac_cv_path_SED+:} false; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6487     for ac_i in 1 2 3 4 5 6 7; do
6488       ac_script="$ac_script$as_nl$ac_script"
6489     done
6490     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6491     { ac_script=; unset ac_script;}
6492     if test -z "$SED"; then
6493  ac_path_SED_found=false
6494  # Loop through the user's path and test for each of PROGNAME-LIST
6495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498  IFS=$as_save_IFS
6499  test -z "$as_dir" && as_dir=.
6500    for ac_prog in sed gsed; do
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6503      as_fn_executable_p "$ac_path_SED" || continue
6504# Check for GNU ac_path_SED and select it if it is found.
6505  # Check for GNU $ac_path_SED
6506case `"$ac_path_SED" --version 2>&1` in
6507*GNU*)
6508  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6509*)
6510  ac_count=0
6511  $as_echo_n 0123456789 >"conftest.in"
6512  while :
6513  do
6514    cat "conftest.in" "conftest.in" >"conftest.tmp"
6515    mv "conftest.tmp" "conftest.in"
6516    cp "conftest.in" "conftest.nl"
6517    $as_echo '' >> "conftest.nl"
6518    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6520    as_fn_arith $ac_count + 1 && ac_count=$as_val
6521    if test $ac_count -gt ${ac_path_SED_max-0}; then
6522      # Best one so far, save it but keep looking for a better one
6523      ac_cv_path_SED="$ac_path_SED"
6524      ac_path_SED_max=$ac_count
6525    fi
6526    # 10*(2^10) chars as input seems more than enough
6527    test $ac_count -gt 10 && break
6528  done
6529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6530esac
6531
6532      $ac_path_SED_found && break 3
6533    done
6534  done
6535  done
6536IFS=$as_save_IFS
6537  if test -z "$ac_cv_path_SED"; then
6538    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6539  fi
6540else
6541  ac_cv_path_SED=$SED
6542fi
6543
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6546$as_echo "$ac_cv_path_SED" >&6; }
6547 SED="$ac_cv_path_SED"
6548  rm -f conftest.sed
6549
6550test -z "$SED" && SED=sed
6551Xsed="$SED -e 1s/^X//"
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6564$as_echo_n "checking for fgrep... " >&6; }
6565if ${ac_cv_path_FGREP+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6569   then ac_cv_path_FGREP="$GREP -F"
6570   else
6571     if test -z "$FGREP"; then
6572  ac_path_FGREP_found=false
6573  # Loop through the user's path and test for each of PROGNAME-LIST
6574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579    for ac_prog in fgrep; do
6580    for ac_exec_ext in '' $ac_executable_extensions; do
6581      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6582      as_fn_executable_p "$ac_path_FGREP" || continue
6583# Check for GNU ac_path_FGREP and select it if it is found.
6584  # Check for GNU $ac_path_FGREP
6585case `"$ac_path_FGREP" --version 2>&1` in
6586*GNU*)
6587  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6588*)
6589  ac_count=0
6590  $as_echo_n 0123456789 >"conftest.in"
6591  while :
6592  do
6593    cat "conftest.in" "conftest.in" >"conftest.tmp"
6594    mv "conftest.tmp" "conftest.in"
6595    cp "conftest.in" "conftest.nl"
6596    $as_echo 'FGREP' >> "conftest.nl"
6597    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6598    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6599    as_fn_arith $ac_count + 1 && ac_count=$as_val
6600    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6601      # Best one so far, save it but keep looking for a better one
6602      ac_cv_path_FGREP="$ac_path_FGREP"
6603      ac_path_FGREP_max=$ac_count
6604    fi
6605    # 10*(2^10) chars as input seems more than enough
6606    test $ac_count -gt 10 && break
6607  done
6608  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6609esac
6610
6611      $ac_path_FGREP_found && break 3
6612    done
6613  done
6614  done
6615IFS=$as_save_IFS
6616  if test -z "$ac_cv_path_FGREP"; then
6617    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6618  fi
6619else
6620  ac_cv_path_FGREP=$FGREP
6621fi
6622
6623   fi
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6626$as_echo "$ac_cv_path_FGREP" >&6; }
6627 FGREP="$ac_cv_path_FGREP"
6628
6629
6630test -z "$GREP" && GREP=grep
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650# Check whether --with-gnu-ld was given.
6651if test "${with_gnu_ld+set}" = set; then :
6652  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6653else
6654  with_gnu_ld=no
6655fi
6656
6657ac_prog=ld
6658if test "$GCC" = yes; then
6659  # Check if gcc -print-prog-name=ld gives a path.
6660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6661$as_echo_n "checking for ld used by $CC... " >&6; }
6662  case $host in
6663  *-*-mingw*)
6664    # gcc leaves a trailing carriage return which upsets mingw
6665    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6666  *)
6667    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6668  esac
6669  case $ac_prog in
6670    # Accept absolute paths.
6671    [\\/]* | ?:[\\/]*)
6672      re_direlt='/[^/][^/]*/\.\./'
6673      # Canonicalize the pathname of ld
6674      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6675      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6676	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6677      done
6678      test -z "$LD" && LD="$ac_prog"
6679      ;;
6680  "")
6681    # If it fails, then pretend we aren't using GCC.
6682    ac_prog=ld
6683    ;;
6684  *)
6685    # If it is relative, then search for the first ld in PATH.
6686    with_gnu_ld=unknown
6687    ;;
6688  esac
6689elif test "$with_gnu_ld" = yes; then
6690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6691$as_echo_n "checking for GNU ld... " >&6; }
6692else
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6694$as_echo_n "checking for non-GNU ld... " >&6; }
6695fi
6696if ${lt_cv_path_LD+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  if test -z "$LD"; then
6700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701  for ac_dir in $PATH; do
6702    IFS="$lt_save_ifs"
6703    test -z "$ac_dir" && ac_dir=.
6704    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6705      lt_cv_path_LD="$ac_dir/$ac_prog"
6706      # Check to see if the program is GNU ld.  I'd rather use --version,
6707      # but apparently some variants of GNU ld only accept -v.
6708      # Break only if it was the GNU/non-GNU ld that we prefer.
6709      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6710      *GNU* | *'with BFD'*)
6711	test "$with_gnu_ld" != no && break
6712	;;
6713      *)
6714	test "$with_gnu_ld" != yes && break
6715	;;
6716      esac
6717    fi
6718  done
6719  IFS="$lt_save_ifs"
6720else
6721  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6722fi
6723fi
6724
6725LD="$lt_cv_path_LD"
6726if test -n "$LD"; then
6727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6728$as_echo "$LD" >&6; }
6729else
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731$as_echo "no" >&6; }
6732fi
6733test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6735$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6736if ${lt_cv_prog_gnu_ld+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6740case `$LD -v 2>&1 </dev/null` in
6741*GNU* | *'with BFD'*)
6742  lt_cv_prog_gnu_ld=yes
6743  ;;
6744*)
6745  lt_cv_prog_gnu_ld=no
6746  ;;
6747esac
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6750$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6751with_gnu_ld=$lt_cv_prog_gnu_ld
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6762$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6763if ${lt_cv_path_NM+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  if test -n "$NM"; then
6767  # Let the user override the test.
6768  lt_cv_path_NM="$NM"
6769else
6770  lt_nm_to_check="${ac_tool_prefix}nm"
6771  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6772    lt_nm_to_check="$lt_nm_to_check nm"
6773  fi
6774  for lt_tmp_nm in $lt_nm_to_check; do
6775    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6776    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6777      IFS="$lt_save_ifs"
6778      test -z "$ac_dir" && ac_dir=.
6779      tmp_nm="$ac_dir/$lt_tmp_nm"
6780      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6781	# Check to see if the nm accepts a BSD-compat flag.
6782	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6783	#   nm: unknown option "B" ignored
6784	# Tru64's nm complains that /dev/null is an invalid object file
6785	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6786	*/dev/null* | *'Invalid file or object type'*)
6787	  lt_cv_path_NM="$tmp_nm -B"
6788	  break
6789	  ;;
6790	*)
6791	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6792	  */dev/null*)
6793	    lt_cv_path_NM="$tmp_nm -p"
6794	    break
6795	    ;;
6796	  *)
6797	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6798	    continue # so that we can try to find one that supports BSD flags
6799	    ;;
6800	  esac
6801	  ;;
6802	esac
6803      fi
6804    done
6805    IFS="$lt_save_ifs"
6806  done
6807  : ${lt_cv_path_NM=no}
6808fi
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6811$as_echo "$lt_cv_path_NM" >&6; }
6812if test "$lt_cv_path_NM" != "no"; then
6813  NM="$lt_cv_path_NM"
6814else
6815  # Didn't find any BSD compatible name lister, look for dumpbin.
6816  if test -n "$DUMPBIN"; then :
6817    # Let the user override the test.
6818  else
6819    if test -n "$ac_tool_prefix"; then
6820  for ac_prog in dumpbin "link -dump"
6821  do
6822    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_DUMPBIN+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$DUMPBIN"; then
6830  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849DUMPBIN=$ac_cv_prog_DUMPBIN
6850if test -n "$DUMPBIN"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6852$as_echo "$DUMPBIN" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859    test -n "$DUMPBIN" && break
6860  done
6861fi
6862if test -z "$DUMPBIN"; then
6863  ac_ct_DUMPBIN=$DUMPBIN
6864  for ac_prog in dumpbin "link -dump"
6865do
6866  # Extract the first word of "$ac_prog", so it can be a program name with args.
6867set dummy $ac_prog; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$ac_ct_DUMPBIN"; then
6874  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6894if test -n "$ac_ct_DUMPBIN"; then
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6896$as_echo "$ac_ct_DUMPBIN" >&6; }
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903  test -n "$ac_ct_DUMPBIN" && break
6904done
6905
6906  if test "x$ac_ct_DUMPBIN" = x; then
6907    DUMPBIN=":"
6908  else
6909    case $cross_compiling:$ac_tool_warned in
6910yes:)
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913ac_tool_warned=yes ;;
6914esac
6915    DUMPBIN=$ac_ct_DUMPBIN
6916  fi
6917fi
6918
6919    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6920    *COFF*)
6921      DUMPBIN="$DUMPBIN -symbols"
6922      ;;
6923    *)
6924      DUMPBIN=:
6925      ;;
6926    esac
6927  fi
6928
6929  if test "$DUMPBIN" != ":"; then
6930    NM="$DUMPBIN"
6931  fi
6932fi
6933test -z "$NM" && NM=nm
6934
6935
6936
6937
6938
6939
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6941$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6942if ${lt_cv_nm_interface+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  lt_cv_nm_interface="BSD nm"
6946  echo "int some_variable = 0;" > conftest.$ac_ext
6947  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6948  (eval "$ac_compile" 2>conftest.err)
6949  cat conftest.err >&5
6950  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6951  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6952  cat conftest.err >&5
6953  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6954  cat conftest.out >&5
6955  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6956    lt_cv_nm_interface="MS dumpbin"
6957  fi
6958  rm -f conftest*
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6961$as_echo "$lt_cv_nm_interface" >&6; }
6962
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6964$as_echo_n "checking whether ln -s works... " >&6; }
6965LN_S=$as_ln_s
6966if test "$LN_S" = "ln -s"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968$as_echo "yes" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6971$as_echo "no, using $LN_S" >&6; }
6972fi
6973
6974# find the maximum length of command line arguments
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6976$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6977if ${lt_cv_sys_max_cmd_len+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980    i=0
6981  teststring="ABCD"
6982
6983  case $build_os in
6984  msdosdjgpp*)
6985    # On DJGPP, this test can blow up pretty badly due to problems in libc
6986    # (any single argument exceeding 2000 bytes causes a buffer overrun
6987    # during glob expansion).  Even if it were fixed, the result of this
6988    # check would be larger than it should be.
6989    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6990    ;;
6991
6992  gnu*)
6993    # Under GNU Hurd, this test is not required because there is
6994    # no limit to the length of command line arguments.
6995    # Libtool will interpret -1 as no limit whatsoever
6996    lt_cv_sys_max_cmd_len=-1;
6997    ;;
6998
6999  cygwin* | mingw* | cegcc*)
7000    # On Win9x/ME, this test blows up -- it succeeds, but takes
7001    # about 5 minutes as the teststring grows exponentially.
7002    # Worse, since 9x/ME are not pre-emptively multitasking,
7003    # you end up with a "frozen" computer, even though with patience
7004    # the test eventually succeeds (with a max line length of 256k).
7005    # Instead, let's just punt: use the minimum linelength reported by
7006    # all of the supported platforms: 8192 (on NT/2K/XP).
7007    lt_cv_sys_max_cmd_len=8192;
7008    ;;
7009
7010  mint*)
7011    # On MiNT this can take a long time and run out of memory.
7012    lt_cv_sys_max_cmd_len=8192;
7013    ;;
7014
7015  amigaos*)
7016    # On AmigaOS with pdksh, this test takes hours, literally.
7017    # So we just punt and use a minimum line length of 8192.
7018    lt_cv_sys_max_cmd_len=8192;
7019    ;;
7020
7021  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7022    # This has been around since 386BSD, at least.  Likely further.
7023    if test -x /sbin/sysctl; then
7024      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7025    elif test -x /usr/sbin/sysctl; then
7026      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7027    else
7028      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7029    fi
7030    # And add a safety zone
7031    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7032    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7033    ;;
7034
7035  interix*)
7036    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7037    lt_cv_sys_max_cmd_len=196608
7038    ;;
7039
7040  os2*)
7041    # The test takes a long time on OS/2.
7042    lt_cv_sys_max_cmd_len=8192
7043    ;;
7044
7045  osf*)
7046    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7047    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7048    # nice to cause kernel panics so lets avoid the loop below.
7049    # First set a reasonable default.
7050    lt_cv_sys_max_cmd_len=16384
7051    #
7052    if test -x /sbin/sysconfig; then
7053      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7054        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7055      esac
7056    fi
7057    ;;
7058  sco3.2v5*)
7059    lt_cv_sys_max_cmd_len=102400
7060    ;;
7061  sysv5* | sco5v6* | sysv4.2uw2*)
7062    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7063    if test -n "$kargmax"; then
7064      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7065    else
7066      lt_cv_sys_max_cmd_len=32768
7067    fi
7068    ;;
7069  *)
7070    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7071    if test -n "$lt_cv_sys_max_cmd_len"; then
7072      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7073      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7074    else
7075      # Make teststring a little bigger before we do anything with it.
7076      # a 1K string should be a reasonable start.
7077      for i in 1 2 3 4 5 6 7 8 ; do
7078        teststring=$teststring$teststring
7079      done
7080      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7081      # If test is not a shell built-in, we'll probably end up computing a
7082      # maximum length that is only half of the actual maximum length, but
7083      # we can't tell.
7084      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7085	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7086	      test $i != 17 # 1/2 MB should be enough
7087      do
7088        i=`expr $i + 1`
7089        teststring=$teststring$teststring
7090      done
7091      # Only check the string length outside the loop.
7092      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7093      teststring=
7094      # Add a significant safety factor because C++ compilers can tack on
7095      # massive amounts of additional arguments before passing them to the
7096      # linker.  It appears as though 1/2 is a usable value.
7097      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7098    fi
7099    ;;
7100  esac
7101
7102fi
7103
7104if test -n $lt_cv_sys_max_cmd_len ; then
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7106$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7107else
7108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7109$as_echo "none" >&6; }
7110fi
7111max_cmd_len=$lt_cv_sys_max_cmd_len
7112
7113
7114
7115
7116
7117
7118: ${CP="cp -f"}
7119: ${MV="mv -f"}
7120: ${RM="rm -f"}
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7123$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7124# Try some XSI features
7125xsi_shell=no
7126( _lt_dummy="a/b/c"
7127  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7128      = c,a/b,b/c, \
7129    && eval 'test $(( 1 + 1 )) -eq 2 \
7130    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7131  && xsi_shell=yes
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7133$as_echo "$xsi_shell" >&6; }
7134
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7137$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7138lt_shell_append=no
7139( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7140    >/dev/null 2>&1 \
7141  && lt_shell_append=yes
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7143$as_echo "$lt_shell_append" >&6; }
7144
7145
7146if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7147  lt_unset=unset
7148else
7149  lt_unset=false
7150fi
7151
7152
7153
7154
7155
7156# test EBCDIC or ASCII
7157case `echo X|tr X '\101'` in
7158 A) # ASCII based system
7159    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7160  lt_SP2NL='tr \040 \012'
7161  lt_NL2SP='tr \015\012 \040\040'
7162  ;;
7163 *) # EBCDIC based system
7164  lt_SP2NL='tr \100 \n'
7165  lt_NL2SP='tr \r\n \100\100'
7166  ;;
7167esac
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7178$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7179if ${lt_cv_to_host_file_cmd+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  case $host in
7183  *-*-mingw* )
7184    case $build in
7185      *-*-mingw* ) # actually msys
7186        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7187        ;;
7188      *-*-cygwin* )
7189        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7190        ;;
7191      * ) # otherwise, assume *nix
7192        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7193        ;;
7194    esac
7195    ;;
7196  *-*-cygwin* )
7197    case $build in
7198      *-*-mingw* ) # actually msys
7199        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7200        ;;
7201      *-*-cygwin* )
7202        lt_cv_to_host_file_cmd=func_convert_file_noop
7203        ;;
7204      * ) # otherwise, assume *nix
7205        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7206        ;;
7207    esac
7208    ;;
7209  * ) # unhandled hosts (and "normal" native builds)
7210    lt_cv_to_host_file_cmd=func_convert_file_noop
7211    ;;
7212esac
7213
7214fi
7215
7216to_host_file_cmd=$lt_cv_to_host_file_cmd
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7218$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7219
7220
7221
7222
7223
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7225$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7226if ${lt_cv_to_tool_file_cmd+:} false; then :
7227  $as_echo_n "(cached) " >&6
7228else
7229  #assume ordinary cross tools, or native build.
7230lt_cv_to_tool_file_cmd=func_convert_file_noop
7231case $host in
7232  *-*-mingw* )
7233    case $build in
7234      *-*-mingw* ) # actually msys
7235        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7236        ;;
7237    esac
7238    ;;
7239esac
7240
7241fi
7242
7243to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7245$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7246
7247
7248
7249
7250
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7252$as_echo_n "checking for $LD option to reload object files... " >&6; }
7253if ${lt_cv_ld_reload_flag+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  lt_cv_ld_reload_flag='-r'
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7259$as_echo "$lt_cv_ld_reload_flag" >&6; }
7260reload_flag=$lt_cv_ld_reload_flag
7261case $reload_flag in
7262"" | " "*) ;;
7263*) reload_flag=" $reload_flag" ;;
7264esac
7265reload_cmds='$LD$reload_flag -o $output$reload_objs'
7266case $host_os in
7267  cygwin* | mingw* | pw32* | cegcc*)
7268    if test "$GCC" != yes; then
7269      reload_cmds=false
7270    fi
7271    ;;
7272  darwin*)
7273    if test "$GCC" = yes; then
7274      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7275    else
7276      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7277    fi
7278    ;;
7279esac
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289if test -n "$ac_tool_prefix"; then
7290  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7291set dummy ${ac_tool_prefix}objdump; ac_word=$2
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if ${ac_cv_prog_OBJDUMP+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  if test -n "$OBJDUMP"; then
7298  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305    for ac_exec_ext in '' $ac_executable_extensions; do
7306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309    break 2
7310  fi
7311done
7312  done
7313IFS=$as_save_IFS
7314
7315fi
7316fi
7317OBJDUMP=$ac_cv_prog_OBJDUMP
7318if test -n "$OBJDUMP"; then
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7320$as_echo "$OBJDUMP" >&6; }
7321else
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323$as_echo "no" >&6; }
7324fi
7325
7326
7327fi
7328if test -z "$ac_cv_prog_OBJDUMP"; then
7329  ac_ct_OBJDUMP=$OBJDUMP
7330  # Extract the first word of "objdump", so it can be a program name with args.
7331set dummy objdump; ac_word=$2
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333$as_echo_n "checking for $ac_word... " >&6; }
7334if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  if test -n "$ac_ct_OBJDUMP"; then
7338  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343  IFS=$as_save_IFS
7344  test -z "$as_dir" && as_dir=.
7345    for ac_exec_ext in '' $ac_executable_extensions; do
7346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352  done
7353IFS=$as_save_IFS
7354
7355fi
7356fi
7357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7358if test -n "$ac_ct_OBJDUMP"; then
7359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7360$as_echo "$ac_ct_OBJDUMP" >&6; }
7361else
7362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363$as_echo "no" >&6; }
7364fi
7365
7366  if test "x$ac_ct_OBJDUMP" = x; then
7367    OBJDUMP="false"
7368  else
7369    case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375    OBJDUMP=$ac_ct_OBJDUMP
7376  fi
7377else
7378  OBJDUMP="$ac_cv_prog_OBJDUMP"
7379fi
7380
7381test -z "$OBJDUMP" && OBJDUMP=objdump
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7392$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7393if ${lt_cv_deplibs_check_method+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  lt_cv_file_magic_cmd='$MAGIC_CMD'
7397lt_cv_file_magic_test_file=
7398lt_cv_deplibs_check_method='unknown'
7399# Need to set the preceding variable on all platforms that support
7400# interlibrary dependencies.
7401# 'none' -- dependencies not supported.
7402# `unknown' -- same as none, but documents that we really don't know.
7403# 'pass_all' -- all dependencies passed with no checks.
7404# 'test_compile' -- check by making test program.
7405# 'file_magic [[regex]]' -- check by looking for files in library path
7406# which responds to the $file_magic_cmd with a given extended regex.
7407# If you have `file' or equivalent on your system and you're not sure
7408# whether `pass_all' will *always* work, you probably want this one.
7409
7410case $host_os in
7411aix[4-9]*)
7412  lt_cv_deplibs_check_method=pass_all
7413  ;;
7414
7415beos*)
7416  lt_cv_deplibs_check_method=pass_all
7417  ;;
7418
7419bsdi[45]*)
7420  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7421  lt_cv_file_magic_cmd='/usr/bin/file -L'
7422  lt_cv_file_magic_test_file=/shlib/libc.so
7423  ;;
7424
7425cygwin*)
7426  # func_win32_libid is a shell function defined in ltmain.sh
7427  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7428  lt_cv_file_magic_cmd='func_win32_libid'
7429  ;;
7430
7431mingw* | pw32*)
7432  # Base MSYS/MinGW do not provide the 'file' command needed by
7433  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7434  # unless we find 'file', for example because we are cross-compiling.
7435  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7436  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7437    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7438    lt_cv_file_magic_cmd='func_win32_libid'
7439  else
7440    # Keep this pattern in sync with the one in func_win32_libid.
7441    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7442    lt_cv_file_magic_cmd='$OBJDUMP -f'
7443  fi
7444  ;;
7445
7446cegcc*)
7447  # use the weaker test based on 'objdump'. See mingw*.
7448  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7449  lt_cv_file_magic_cmd='$OBJDUMP -f'
7450  ;;
7451
7452darwin* | rhapsody*)
7453  lt_cv_deplibs_check_method=pass_all
7454  ;;
7455
7456freebsd* | dragonfly*)
7457  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7458    case $host_cpu in
7459    i*86 )
7460      # Not sure whether the presence of OpenBSD here was a mistake.
7461      # Let's accept both of them until this is cleared up.
7462      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7463      lt_cv_file_magic_cmd=/usr/bin/file
7464      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7465      ;;
7466    esac
7467  else
7468    lt_cv_deplibs_check_method=pass_all
7469  fi
7470  ;;
7471
7472gnu*)
7473  lt_cv_deplibs_check_method=pass_all
7474  ;;
7475
7476haiku*)
7477  lt_cv_deplibs_check_method=pass_all
7478  ;;
7479
7480hpux10.20* | hpux11*)
7481  lt_cv_file_magic_cmd=/usr/bin/file
7482  case $host_cpu in
7483  ia64*)
7484    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7485    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7486    ;;
7487  hppa*64*)
7488    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]'
7489    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7490    ;;
7491  *)
7492    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7493    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7494    ;;
7495  esac
7496  ;;
7497
7498interix[3-9]*)
7499  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7500  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7501  ;;
7502
7503irix5* | irix6* | nonstopux*)
7504  case $LD in
7505  *-32|*"-32 ") libmagic=32-bit;;
7506  *-n32|*"-n32 ") libmagic=N32;;
7507  *-64|*"-64 ") libmagic=64-bit;;
7508  *) libmagic=never-match;;
7509  esac
7510  lt_cv_deplibs_check_method=pass_all
7511  ;;
7512
7513# This must be glibc/ELF.
7514linux* | k*bsd*-gnu | kopensolaris*-gnu)
7515  lt_cv_deplibs_check_method=pass_all
7516  ;;
7517
7518netbsd*)
7519  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7521  else
7522    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7523  fi
7524  ;;
7525
7526newos6*)
7527  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7528  lt_cv_file_magic_cmd=/usr/bin/file
7529  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7530  ;;
7531
7532*nto* | *qnx*)
7533  lt_cv_deplibs_check_method=pass_all
7534  ;;
7535
7536openbsd*)
7537  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7539  else
7540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7541  fi
7542  ;;
7543
7544osf3* | osf4* | osf5*)
7545  lt_cv_deplibs_check_method=pass_all
7546  ;;
7547
7548rdos*)
7549  lt_cv_deplibs_check_method=pass_all
7550  ;;
7551
7552solaris*)
7553  lt_cv_deplibs_check_method=pass_all
7554  ;;
7555
7556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7557  lt_cv_deplibs_check_method=pass_all
7558  ;;
7559
7560sysv4 | sysv4.3*)
7561  case $host_vendor in
7562  motorola)
7563    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]'
7564    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7565    ;;
7566  ncr)
7567    lt_cv_deplibs_check_method=pass_all
7568    ;;
7569  sequent)
7570    lt_cv_file_magic_cmd='/bin/file'
7571    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7572    ;;
7573  sni)
7574    lt_cv_file_magic_cmd='/bin/file'
7575    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7576    lt_cv_file_magic_test_file=/lib/libc.so
7577    ;;
7578  siemens)
7579    lt_cv_deplibs_check_method=pass_all
7580    ;;
7581  pc)
7582    lt_cv_deplibs_check_method=pass_all
7583    ;;
7584  esac
7585  ;;
7586
7587tpf*)
7588  lt_cv_deplibs_check_method=pass_all
7589  ;;
7590esac
7591
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7594$as_echo "$lt_cv_deplibs_check_method" >&6; }
7595
7596file_magic_glob=
7597want_nocaseglob=no
7598if test "$build" = "$host"; then
7599  case $host_os in
7600  mingw* | pw32*)
7601    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7602      want_nocaseglob=yes
7603    else
7604      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7605    fi
7606    ;;
7607  esac
7608fi
7609
7610file_magic_cmd=$lt_cv_file_magic_cmd
7611deplibs_check_method=$lt_cv_deplibs_check_method
7612test -z "$deplibs_check_method" && deplibs_check_method=unknown
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635if test -n "$ac_tool_prefix"; then
7636  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if ${ac_cv_prog_DLLTOOL+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  if test -n "$DLLTOOL"; then
7644  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649  IFS=$as_save_IFS
7650  test -z "$as_dir" && as_dir=.
7651    for ac_exec_ext in '' $ac_executable_extensions; do
7652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655    break 2
7656  fi
7657done
7658  done
7659IFS=$as_save_IFS
7660
7661fi
7662fi
7663DLLTOOL=$ac_cv_prog_DLLTOOL
7664if test -n "$DLLTOOL"; then
7665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7666$as_echo "$DLLTOOL" >&6; }
7667else
7668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
7670fi
7671
7672
7673fi
7674if test -z "$ac_cv_prog_DLLTOOL"; then
7675  ac_ct_DLLTOOL=$DLLTOOL
7676  # Extract the first word of "dlltool", so it can be a program name with args.
7677set dummy dlltool; ac_word=$2
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  if test -n "$ac_ct_DLLTOOL"; then
7684  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689  IFS=$as_save_IFS
7690  test -z "$as_dir" && as_dir=.
7691    for ac_exec_ext in '' $ac_executable_extensions; do
7692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695    break 2
7696  fi
7697done
7698  done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7704if test -n "$ac_ct_DLLTOOL"; then
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7706$as_echo "$ac_ct_DLLTOOL" >&6; }
7707else
7708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712  if test "x$ac_ct_DLLTOOL" = x; then
7713    DLLTOOL="false"
7714  else
7715    case $cross_compiling:$ac_tool_warned in
7716yes:)
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719ac_tool_warned=yes ;;
7720esac
7721    DLLTOOL=$ac_ct_DLLTOOL
7722  fi
7723else
7724  DLLTOOL="$ac_cv_prog_DLLTOOL"
7725fi
7726
7727test -z "$DLLTOOL" && DLLTOOL=dlltool
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7739$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7740if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  lt_cv_sharedlib_from_linklib_cmd='unknown'
7744
7745case $host_os in
7746cygwin* | mingw* | pw32* | cegcc*)
7747  # two different shell functions defined in ltmain.sh
7748  # decide which to use based on capabilities of $DLLTOOL
7749  case `$DLLTOOL --help 2>&1` in
7750  *--identify-strict*)
7751    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7752    ;;
7753  *)
7754    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7755    ;;
7756  esac
7757  ;;
7758*)
7759  # fallback: assume linklib IS sharedlib
7760  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7761  ;;
7762esac
7763
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7766$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7767sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7768test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7769
7770
7771
7772
7773
7774
7775
7776if test -n "$ac_tool_prefix"; then
7777  for ac_prog in ar
7778  do
7779    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if ${ac_cv_prog_AR+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  if test -n "$AR"; then
7787  ac_cv_prog_AR="$AR" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794    for ac_exec_ext in '' $ac_executable_extensions; do
7795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801  done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806AR=$ac_cv_prog_AR
7807if test -n "$AR"; then
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809$as_echo "$AR" >&6; }
7810else
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815
7816    test -n "$AR" && break
7817  done
7818fi
7819if test -z "$AR"; then
7820  ac_ct_AR=$AR
7821  for ac_prog in ar
7822do
7823  # Extract the first word of "$ac_prog", so it can be a program name with args.
7824set dummy $ac_prog; ac_word=$2
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826$as_echo_n "checking for $ac_word... " >&6; }
7827if ${ac_cv_prog_ac_ct_AR+:} false; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  if test -n "$ac_ct_AR"; then
7831  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7832else
7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836  IFS=$as_save_IFS
7837  test -z "$as_dir" && as_dir=.
7838    for ac_exec_ext in '' $ac_executable_extensions; do
7839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840    ac_cv_prog_ac_ct_AR="$ac_prog"
7841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842    break 2
7843  fi
7844done
7845  done
7846IFS=$as_save_IFS
7847
7848fi
7849fi
7850ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851if test -n "$ac_ct_AR"; then
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7853$as_echo "$ac_ct_AR" >&6; }
7854else
7855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856$as_echo "no" >&6; }
7857fi
7858
7859
7860  test -n "$ac_ct_AR" && break
7861done
7862
7863  if test "x$ac_ct_AR" = x; then
7864    AR="false"
7865  else
7866    case $cross_compiling:$ac_tool_warned in
7867yes:)
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870ac_tool_warned=yes ;;
7871esac
7872    AR=$ac_ct_AR
7873  fi
7874fi
7875
7876: ${AR=ar}
7877: ${AR_FLAGS=cru}
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7890$as_echo_n "checking for archiver @FILE support... " >&6; }
7891if ${lt_cv_ar_at_file+:} false; then :
7892  $as_echo_n "(cached) " >&6
7893else
7894  lt_cv_ar_at_file=no
7895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897
7898int
7899main ()
7900{
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"; then :
7907  echo conftest.$ac_objext > conftest.lst
7908      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7909      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7910  (eval $lt_ar_try) 2>&5
7911  ac_status=$?
7912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913  test $ac_status = 0; }
7914      if test "$ac_status" -eq 0; then
7915	# Ensure the archiver fails upon bogus file names.
7916	rm -f conftest.$ac_objext libconftest.a
7917	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7918  (eval $lt_ar_try) 2>&5
7919  ac_status=$?
7920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921  test $ac_status = 0; }
7922	if test "$ac_status" -ne 0; then
7923          lt_cv_ar_at_file=@
7924        fi
7925      fi
7926      rm -f conftest.* libconftest.a
7927
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7933$as_echo "$lt_cv_ar_at_file" >&6; }
7934
7935if test "x$lt_cv_ar_at_file" = xno; then
7936  archiver_list_spec=
7937else
7938  archiver_list_spec=$lt_cv_ar_at_file
7939fi
7940
7941
7942
7943
7944
7945
7946
7947if test -n "$ac_tool_prefix"; then
7948  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7949set dummy ${ac_tool_prefix}strip; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if ${ac_cv_prog_STRIP+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  if test -n "$STRIP"; then
7956  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963    for ac_exec_ext in '' $ac_executable_extensions; do
7964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970  done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975STRIP=$ac_cv_prog_STRIP
7976if test -n "$STRIP"; then
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7978$as_echo "$STRIP" >&6; }
7979else
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985fi
7986if test -z "$ac_cv_prog_STRIP"; then
7987  ac_ct_STRIP=$STRIP
7988  # Extract the first word of "strip", so it can be a program name with args.
7989set dummy strip; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$ac_ct_STRIP"; then
7996  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005    ac_cv_prog_ac_ct_STRIP="strip"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8016if test -n "$ac_ct_STRIP"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8018$as_echo "$ac_ct_STRIP" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024  if test "x$ac_ct_STRIP" = x; then
8025    STRIP=":"
8026  else
8027    case $cross_compiling:$ac_tool_warned in
8028yes:)
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031ac_tool_warned=yes ;;
8032esac
8033    STRIP=$ac_ct_STRIP
8034  fi
8035else
8036  STRIP="$ac_cv_prog_STRIP"
8037fi
8038
8039test -z "$STRIP" && STRIP=:
8040
8041
8042
8043
8044
8045
8046if test -n "$ac_tool_prefix"; then
8047  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8048set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050$as_echo_n "checking for $ac_word... " >&6; }
8051if ${ac_cv_prog_RANLIB+:} false; then :
8052  $as_echo_n "(cached) " >&6
8053else
8054  if test -n "$RANLIB"; then
8055  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8056else
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060  IFS=$as_save_IFS
8061  test -z "$as_dir" && as_dir=.
8062    for ac_exec_ext in '' $ac_executable_extensions; do
8063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066    break 2
8067  fi
8068done
8069  done
8070IFS=$as_save_IFS
8071
8072fi
8073fi
8074RANLIB=$ac_cv_prog_RANLIB
8075if test -n "$RANLIB"; then
8076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8077$as_echo "$RANLIB" >&6; }
8078else
8079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080$as_echo "no" >&6; }
8081fi
8082
8083
8084fi
8085if test -z "$ac_cv_prog_RANLIB"; then
8086  ac_ct_RANLIB=$RANLIB
8087  # Extract the first word of "ranlib", so it can be a program name with args.
8088set dummy ranlib; ac_word=$2
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090$as_echo_n "checking for $ac_word... " >&6; }
8091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  if test -n "$ac_ct_RANLIB"; then
8095  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8096else
8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100  IFS=$as_save_IFS
8101  test -z "$as_dir" && as_dir=.
8102    for ac_exec_ext in '' $ac_executable_extensions; do
8103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104    ac_cv_prog_ac_ct_RANLIB="ranlib"
8105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106    break 2
8107  fi
8108done
8109  done
8110IFS=$as_save_IFS
8111
8112fi
8113fi
8114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8115if test -n "$ac_ct_RANLIB"; then
8116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8117$as_echo "$ac_ct_RANLIB" >&6; }
8118else
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120$as_echo "no" >&6; }
8121fi
8122
8123  if test "x$ac_ct_RANLIB" = x; then
8124    RANLIB=":"
8125  else
8126    case $cross_compiling:$ac_tool_warned in
8127yes:)
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130ac_tool_warned=yes ;;
8131esac
8132    RANLIB=$ac_ct_RANLIB
8133  fi
8134else
8135  RANLIB="$ac_cv_prog_RANLIB"
8136fi
8137
8138test -z "$RANLIB" && RANLIB=:
8139
8140
8141
8142
8143
8144
8145# Determine commands to create old-style static archives.
8146old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8147old_postinstall_cmds='chmod 644 $oldlib'
8148old_postuninstall_cmds=
8149
8150if test -n "$RANLIB"; then
8151  case $host_os in
8152  openbsd*)
8153    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8154    ;;
8155  *)
8156    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8157    ;;
8158  esac
8159  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8160fi
8161
8162case $host_os in
8163  darwin*)
8164    lock_old_archive_extraction=yes ;;
8165  *)
8166    lock_old_archive_extraction=no ;;
8167esac
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189for ac_prog in gawk mawk nawk awk
8190do
8191  # Extract the first word of "$ac_prog", so it can be a program name with args.
8192set dummy $ac_prog; ac_word=$2
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194$as_echo_n "checking for $ac_word... " >&6; }
8195if ${ac_cv_prog_AWK+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  if test -n "$AWK"; then
8199  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204  IFS=$as_save_IFS
8205  test -z "$as_dir" && as_dir=.
8206    for ac_exec_ext in '' $ac_executable_extensions; do
8207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208    ac_cv_prog_AWK="$ac_prog"
8209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210    break 2
8211  fi
8212done
8213  done
8214IFS=$as_save_IFS
8215
8216fi
8217fi
8218AWK=$ac_cv_prog_AWK
8219if test -n "$AWK"; then
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8221$as_echo "$AWK" >&6; }
8222else
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
8225fi
8226
8227
8228  test -n "$AWK" && break
8229done
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249# If no C compiler was specified, use CC.
8250LTCC=${LTCC-"$CC"}
8251
8252# If no C compiler flags were specified, use CFLAGS.
8253LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8254
8255# Allow CC to be a program name with arguments.
8256compiler=$CC
8257
8258
8259# Check for command to grab the raw symbol name followed by C symbol from nm.
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8261$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8262if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265
8266# These are sane defaults that work on at least a few old systems.
8267# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8268
8269# Character class describing NM global symbol codes.
8270symcode='[BCDEGRST]'
8271
8272# Regexp to match symbols that can be accessed directly from C.
8273sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8274
8275# Define system-specific variables.
8276case $host_os in
8277aix*)
8278  symcode='[BCDT]'
8279  ;;
8280cygwin* | mingw* | pw32* | cegcc*)
8281  symcode='[ABCDGISTW]'
8282  ;;
8283hpux*)
8284  if test "$host_cpu" = ia64; then
8285    symcode='[ABCDEGRST]'
8286  fi
8287  ;;
8288irix* | nonstopux*)
8289  symcode='[BCDEGRST]'
8290  ;;
8291osf*)
8292  symcode='[BCDEGQRST]'
8293  ;;
8294solaris*)
8295  symcode='[BDRT]'
8296  ;;
8297sco3.2v5*)
8298  symcode='[DT]'
8299  ;;
8300sysv4.2uw2*)
8301  symcode='[DT]'
8302  ;;
8303sysv5* | sco5v6* | unixware* | OpenUNIX*)
8304  symcode='[ABDT]'
8305  ;;
8306sysv4)
8307  symcode='[DFNSTU]'
8308  ;;
8309esac
8310
8311# If we're using GNU nm, then use its standard symbol codes.
8312case `$NM -V 2>&1` in
8313*GNU* | *'with BFD'*)
8314  symcode='[ABCDGIRSTW]' ;;
8315esac
8316
8317# Transform an extracted symbol line into a proper C declaration.
8318# Some systems (esp. on ia64) link data and code symbols differently,
8319# so use this general approach.
8320lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8321
8322# Transform an extracted symbol line into symbol name and symbol address
8323lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8324lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8325
8326# Handle CRLF in mingw tool chain
8327opt_cr=
8328case $build_os in
8329mingw*)
8330  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8331  ;;
8332esac
8333
8334# Try without a prefix underscore, then with it.
8335for ac_symprfx in "" "_"; do
8336
8337  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8338  symxfrm="\\1 $ac_symprfx\\2 \\2"
8339
8340  # Write the raw and C identifiers.
8341  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8342    # Fake it for dumpbin and say T for any non-static function
8343    # and D for any global variable.
8344    # Also find C++ and __fastcall symbols from MSVC++,
8345    # which start with @ or ?.
8346    lt_cv_sys_global_symbol_pipe="$AWK '"\
8347"     {last_section=section; section=\$ 3};"\
8348"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8349"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8350"     \$ 0!~/External *\|/{next};"\
8351"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8352"     {if(hide[section]) next};"\
8353"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8354"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8355"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8356"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8357"     ' prfx=^$ac_symprfx"
8358  else
8359    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8360  fi
8361  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8362
8363  # Check to see that the pipe works correctly.
8364  pipe_works=no
8365
8366  rm -f conftest*
8367  cat > conftest.$ac_ext <<_LT_EOF
8368#ifdef __cplusplus
8369extern "C" {
8370#endif
8371char nm_test_var;
8372void nm_test_func(void);
8373void nm_test_func(void){}
8374#ifdef __cplusplus
8375}
8376#endif
8377int main(){nm_test_var='a';nm_test_func();return(0);}
8378_LT_EOF
8379
8380  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381  (eval $ac_compile) 2>&5
8382  ac_status=$?
8383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384  test $ac_status = 0; }; then
8385    # Now try to grab the symbols.
8386    nlist=conftest.nm
8387    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8388  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8389  ac_status=$?
8390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391  test $ac_status = 0; } && test -s "$nlist"; then
8392      # Try sorting and uniquifying the output.
8393      if sort "$nlist" | uniq > "$nlist"T; then
8394	mv -f "$nlist"T "$nlist"
8395      else
8396	rm -f "$nlist"T
8397      fi
8398
8399      # Make sure that we snagged all the symbols we need.
8400      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8401	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8402	  cat <<_LT_EOF > conftest.$ac_ext
8403/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8404#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8405/* DATA imports from DLLs on WIN32 con't be const, because runtime
8406   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8407# define LT_DLSYM_CONST
8408#elif defined(__osf__)
8409/* This system does not cope well with relocations in const data.  */
8410# define LT_DLSYM_CONST
8411#else
8412# define LT_DLSYM_CONST const
8413#endif
8414
8415#ifdef __cplusplus
8416extern "C" {
8417#endif
8418
8419_LT_EOF
8420	  # Now generate the symbol file.
8421	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8422
8423	  cat <<_LT_EOF >> conftest.$ac_ext
8424
8425/* The mapping between symbol names and symbols.  */
8426LT_DLSYM_CONST struct {
8427  const char *name;
8428  void       *address;
8429}
8430lt__PROGRAM__LTX_preloaded_symbols[] =
8431{
8432  { "@PROGRAM@", (void *) 0 },
8433_LT_EOF
8434	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8435	  cat <<\_LT_EOF >> conftest.$ac_ext
8436  {0, (void *) 0}
8437};
8438
8439/* This works around a problem in FreeBSD linker */
8440#ifdef FREEBSD_WORKAROUND
8441static const void *lt_preloaded_setup() {
8442  return lt__PROGRAM__LTX_preloaded_symbols;
8443}
8444#endif
8445
8446#ifdef __cplusplus
8447}
8448#endif
8449_LT_EOF
8450	  # Now try linking the two files.
8451	  mv conftest.$ac_objext conftstm.$ac_objext
8452	  lt_globsym_save_LIBS=$LIBS
8453	  lt_globsym_save_CFLAGS=$CFLAGS
8454	  LIBS="conftstm.$ac_objext"
8455	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8456	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8457  (eval $ac_link) 2>&5
8458  ac_status=$?
8459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8461	    pipe_works=yes
8462	  fi
8463	  LIBS=$lt_globsym_save_LIBS
8464	  CFLAGS=$lt_globsym_save_CFLAGS
8465	else
8466	  echo "cannot find nm_test_func in $nlist" >&5
8467	fi
8468      else
8469	echo "cannot find nm_test_var in $nlist" >&5
8470      fi
8471    else
8472      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8473    fi
8474  else
8475    echo "$progname: failed program was:" >&5
8476    cat conftest.$ac_ext >&5
8477  fi
8478  rm -rf conftest* conftst*
8479
8480  # Do not use the global_symbol_pipe unless it works.
8481  if test "$pipe_works" = yes; then
8482    break
8483  else
8484    lt_cv_sys_global_symbol_pipe=
8485  fi
8486done
8487
8488fi
8489
8490if test -z "$lt_cv_sys_global_symbol_pipe"; then
8491  lt_cv_sys_global_symbol_to_cdecl=
8492fi
8493if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8495$as_echo "failed" >&6; }
8496else
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8498$as_echo "ok" >&6; }
8499fi
8500
8501# Response file support.
8502if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8503  nm_file_list_spec='@'
8504elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8505  nm_file_list_spec='@'
8506fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8535$as_echo_n "checking for sysroot... " >&6; }
8536
8537# Check whether --with-sysroot was given.
8538if test "${with_sysroot+set}" = set; then :
8539  withval=$with_sysroot;
8540else
8541  with_sysroot=no
8542fi
8543
8544
8545lt_sysroot=
8546case ${with_sysroot} in #(
8547 yes)
8548   if test "$GCC" = yes; then
8549     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8550   fi
8551   ;; #(
8552 /*)
8553   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8554   ;; #(
8555 no|'')
8556   ;; #(
8557 *)
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8559$as_echo "${with_sysroot}" >&6; }
8560   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8561   ;;
8562esac
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8565$as_echo "${lt_sysroot:-no}" >&6; }
8566
8567
8568
8569
8570
8571# Check whether --enable-libtool-lock was given.
8572if test "${enable_libtool_lock+set}" = set; then :
8573  enableval=$enable_libtool_lock;
8574fi
8575
8576test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8577
8578# Some flags need to be propagated to the compiler or linker for good
8579# libtool support.
8580case $host in
8581ia64-*-hpux*)
8582  # Find out which ABI we are using.
8583  echo 'int i;' > conftest.$ac_ext
8584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8585  (eval $ac_compile) 2>&5
8586  ac_status=$?
8587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588  test $ac_status = 0; }; then
8589    case `/usr/bin/file conftest.$ac_objext` in
8590      *ELF-32*)
8591	HPUX_IA64_MODE="32"
8592	;;
8593      *ELF-64*)
8594	HPUX_IA64_MODE="64"
8595	;;
8596    esac
8597  fi
8598  rm -rf conftest*
8599  ;;
8600*-*-irix6*)
8601  # Find out which ABI we are using.
8602  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8603  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8604  (eval $ac_compile) 2>&5
8605  ac_status=$?
8606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8607  test $ac_status = 0; }; then
8608    if test "$lt_cv_prog_gnu_ld" = yes; then
8609      case `/usr/bin/file conftest.$ac_objext` in
8610	*32-bit*)
8611	  LD="${LD-ld} -melf32bsmip"
8612	  ;;
8613	*N32*)
8614	  LD="${LD-ld} -melf32bmipn32"
8615	  ;;
8616	*64-bit*)
8617	  LD="${LD-ld} -melf64bmip"
8618	;;
8619      esac
8620    else
8621      case `/usr/bin/file conftest.$ac_objext` in
8622	*32-bit*)
8623	  LD="${LD-ld} -32"
8624	  ;;
8625	*N32*)
8626	  LD="${LD-ld} -n32"
8627	  ;;
8628	*64-bit*)
8629	  LD="${LD-ld} -64"
8630	  ;;
8631      esac
8632    fi
8633  fi
8634  rm -rf conftest*
8635  ;;
8636
8637x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8638s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8639  # Find out which ABI we are using.
8640  echo 'int i;' > conftest.$ac_ext
8641  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8642  (eval $ac_compile) 2>&5
8643  ac_status=$?
8644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8645  test $ac_status = 0; }; then
8646    case `/usr/bin/file conftest.o` in
8647      *32-bit*)
8648	case $host in
8649	  x86_64-*kfreebsd*-gnu)
8650	    LD="${LD-ld} -m elf_i386_fbsd"
8651	    ;;
8652	  x86_64-*linux*)
8653	    LD="${LD-ld} -m elf_i386"
8654	    ;;
8655	  ppc64-*linux*|powerpc64-*linux*)
8656	    LD="${LD-ld} -m elf32ppclinux"
8657	    ;;
8658	  s390x-*linux*)
8659	    LD="${LD-ld} -m elf_s390"
8660	    ;;
8661	  sparc64-*linux*)
8662	    LD="${LD-ld} -m elf32_sparc"
8663	    ;;
8664	esac
8665	;;
8666      *64-bit*)
8667	case $host in
8668	  x86_64-*kfreebsd*-gnu)
8669	    LD="${LD-ld} -m elf_x86_64_fbsd"
8670	    ;;
8671	  x86_64-*linux*)
8672	    LD="${LD-ld} -m elf_x86_64"
8673	    ;;
8674	  ppc*-*linux*|powerpc*-*linux*)
8675	    LD="${LD-ld} -m elf64ppc"
8676	    ;;
8677	  s390*-*linux*|s390*-*tpf*)
8678	    LD="${LD-ld} -m elf64_s390"
8679	    ;;
8680	  sparc*-*linux*)
8681	    LD="${LD-ld} -m elf64_sparc"
8682	    ;;
8683	esac
8684	;;
8685    esac
8686  fi
8687  rm -rf conftest*
8688  ;;
8689
8690*-*-sco3.2v5*)
8691  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8692  SAVE_CFLAGS="$CFLAGS"
8693  CFLAGS="$CFLAGS -belf"
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8695$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8696if ${lt_cv_cc_needs_belf+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  ac_ext=c
8700ac_cpp='$CPP $CPPFLAGS'
8701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704
8705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707
8708int
8709main ()
8710{
8711
8712  ;
8713  return 0;
8714}
8715_ACEOF
8716if ac_fn_c_try_link "$LINENO"; then :
8717  lt_cv_cc_needs_belf=yes
8718else
8719  lt_cv_cc_needs_belf=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext \
8722    conftest$ac_exeext conftest.$ac_ext
8723     ac_ext=c
8724ac_cpp='$CPP $CPPFLAGS'
8725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728
8729fi
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8731$as_echo "$lt_cv_cc_needs_belf" >&6; }
8732  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8733    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8734    CFLAGS="$SAVE_CFLAGS"
8735  fi
8736  ;;
8737*-*solaris*)
8738  # Find out which ABI we are using.
8739  echo 'int i;' > conftest.$ac_ext
8740  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741  (eval $ac_compile) 2>&5
8742  ac_status=$?
8743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744  test $ac_status = 0; }; then
8745    case `/usr/bin/file conftest.o` in
8746    *64-bit*)
8747      case $lt_cv_prog_gnu_ld in
8748      yes*)
8749        case $host in
8750        i?86-*-solaris*)
8751          LD="${LD-ld} -m elf_x86_64"
8752          ;;
8753        sparc*-*-solaris*)
8754          LD="${LD-ld} -m elf64_sparc"
8755          ;;
8756        esac
8757        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8758        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8759          LD="${LD-ld}_sol2"
8760        fi
8761        ;;
8762      *)
8763	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8764	  LD="${LD-ld} -64"
8765	fi
8766	;;
8767      esac
8768      ;;
8769    esac
8770  fi
8771  rm -rf conftest*
8772  ;;
8773esac
8774
8775need_locks="$enable_libtool_lock"
8776
8777if test -n "$ac_tool_prefix"; then
8778  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8779set dummy ${ac_tool_prefix}mt; ac_word=$2
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781$as_echo_n "checking for $ac_word... " >&6; }
8782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  if test -n "$MANIFEST_TOOL"; then
8786  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8787else
8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791  IFS=$as_save_IFS
8792  test -z "$as_dir" && as_dir=.
8793    for ac_exec_ext in '' $ac_executable_extensions; do
8794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797    break 2
8798  fi
8799done
8800  done
8801IFS=$as_save_IFS
8802
8803fi
8804fi
8805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8806if test -n "$MANIFEST_TOOL"; then
8807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8808$as_echo "$MANIFEST_TOOL" >&6; }
8809else
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811$as_echo "no" >&6; }
8812fi
8813
8814
8815fi
8816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8817  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8818  # Extract the first word of "mt", so it can be a program name with args.
8819set dummy mt; ac_word=$2
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
8822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  if test -n "$ac_ct_MANIFEST_TOOL"; then
8826  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8827else
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831  IFS=$as_save_IFS
8832  test -z "$as_dir" && as_dir=.
8833    for ac_exec_ext in '' $ac_executable_extensions; do
8834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837    break 2
8838  fi
8839done
8840  done
8841IFS=$as_save_IFS
8842
8843fi
8844fi
8845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8846if test -n "$ac_ct_MANIFEST_TOOL"; then
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8849else
8850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
8852fi
8853
8854  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8855    MANIFEST_TOOL=":"
8856  else
8857    case $cross_compiling:$ac_tool_warned in
8858yes:)
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861ac_tool_warned=yes ;;
8862esac
8863    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8864  fi
8865else
8866  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8867fi
8868
8869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8872if ${lt_cv_path_mainfest_tool+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  lt_cv_path_mainfest_tool=no
8876  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8877  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8878  cat conftest.err >&5
8879  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8880    lt_cv_path_mainfest_tool=yes
8881  fi
8882  rm -f conftest*
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8885$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8886if test "x$lt_cv_path_mainfest_tool" != xyes; then
8887  MANIFEST_TOOL=:
8888fi
8889
8890
8891
8892
8893
8894
8895  case $host_os in
8896    rhapsody* | darwin*)
8897    if test -n "$ac_tool_prefix"; then
8898  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901$as_echo_n "checking for $ac_word... " >&6; }
8902if ${ac_cv_prog_DSYMUTIL+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  if test -n "$DSYMUTIL"; then
8906  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8907else
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911  IFS=$as_save_IFS
8912  test -z "$as_dir" && as_dir=.
8913    for ac_exec_ext in '' $ac_executable_extensions; do
8914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917    break 2
8918  fi
8919done
8920  done
8921IFS=$as_save_IFS
8922
8923fi
8924fi
8925DSYMUTIL=$ac_cv_prog_DSYMUTIL
8926if test -n "$DSYMUTIL"; then
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8928$as_echo "$DSYMUTIL" >&6; }
8929else
8930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931$as_echo "no" >&6; }
8932fi
8933
8934
8935fi
8936if test -z "$ac_cv_prog_DSYMUTIL"; then
8937  ac_ct_DSYMUTIL=$DSYMUTIL
8938  # Extract the first word of "dsymutil", so it can be a program name with args.
8939set dummy dsymutil; ac_word=$2
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941$as_echo_n "checking for $ac_word... " >&6; }
8942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  if test -n "$ac_ct_DSYMUTIL"; then
8946  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8947else
8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949for as_dir in $PATH
8950do
8951  IFS=$as_save_IFS
8952  test -z "$as_dir" && as_dir=.
8953    for ac_exec_ext in '' $ac_executable_extensions; do
8954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957    break 2
8958  fi
8959done
8960  done
8961IFS=$as_save_IFS
8962
8963fi
8964fi
8965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8966if test -n "$ac_ct_DSYMUTIL"; then
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8968$as_echo "$ac_ct_DSYMUTIL" >&6; }
8969else
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971$as_echo "no" >&6; }
8972fi
8973
8974  if test "x$ac_ct_DSYMUTIL" = x; then
8975    DSYMUTIL=":"
8976  else
8977    case $cross_compiling:$ac_tool_warned in
8978yes:)
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8981ac_tool_warned=yes ;;
8982esac
8983    DSYMUTIL=$ac_ct_DSYMUTIL
8984  fi
8985else
8986  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8987fi
8988
8989    if test -n "$ac_tool_prefix"; then
8990  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8991set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993$as_echo_n "checking for $ac_word... " >&6; }
8994if ${ac_cv_prog_NMEDIT+:} false; then :
8995  $as_echo_n "(cached) " >&6
8996else
8997  if test -n "$NMEDIT"; then
8998  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8999else
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003  IFS=$as_save_IFS
9004  test -z "$as_dir" && as_dir=.
9005    for ac_exec_ext in '' $ac_executable_extensions; do
9006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009    break 2
9010  fi
9011done
9012  done
9013IFS=$as_save_IFS
9014
9015fi
9016fi
9017NMEDIT=$ac_cv_prog_NMEDIT
9018if test -n "$NMEDIT"; then
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9020$as_echo "$NMEDIT" >&6; }
9021else
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023$as_echo "no" >&6; }
9024fi
9025
9026
9027fi
9028if test -z "$ac_cv_prog_NMEDIT"; then
9029  ac_ct_NMEDIT=$NMEDIT
9030  # Extract the first word of "nmedit", so it can be a program name with args.
9031set dummy nmedit; ac_word=$2
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033$as_echo_n "checking for $ac_word... " >&6; }
9034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  if test -n "$ac_ct_NMEDIT"; then
9038  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9039else
9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043  IFS=$as_save_IFS
9044  test -z "$as_dir" && as_dir=.
9045    for ac_exec_ext in '' $ac_executable_extensions; do
9046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049    break 2
9050  fi
9051done
9052  done
9053IFS=$as_save_IFS
9054
9055fi
9056fi
9057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9058if test -n "$ac_ct_NMEDIT"; then
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9060$as_echo "$ac_ct_NMEDIT" >&6; }
9061else
9062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063$as_echo "no" >&6; }
9064fi
9065
9066  if test "x$ac_ct_NMEDIT" = x; then
9067    NMEDIT=":"
9068  else
9069    case $cross_compiling:$ac_tool_warned in
9070yes:)
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073ac_tool_warned=yes ;;
9074esac
9075    NMEDIT=$ac_ct_NMEDIT
9076  fi
9077else
9078  NMEDIT="$ac_cv_prog_NMEDIT"
9079fi
9080
9081    if test -n "$ac_tool_prefix"; then
9082  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9083set dummy ${ac_tool_prefix}lipo; ac_word=$2
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085$as_echo_n "checking for $ac_word... " >&6; }
9086if ${ac_cv_prog_LIPO+:} false; then :
9087  $as_echo_n "(cached) " >&6
9088else
9089  if test -n "$LIPO"; then
9090  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9091else
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095  IFS=$as_save_IFS
9096  test -z "$as_dir" && as_dir=.
9097    for ac_exec_ext in '' $ac_executable_extensions; do
9098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101    break 2
9102  fi
9103done
9104  done
9105IFS=$as_save_IFS
9106
9107fi
9108fi
9109LIPO=$ac_cv_prog_LIPO
9110if test -n "$LIPO"; then
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9112$as_echo "$LIPO" >&6; }
9113else
9114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115$as_echo "no" >&6; }
9116fi
9117
9118
9119fi
9120if test -z "$ac_cv_prog_LIPO"; then
9121  ac_ct_LIPO=$LIPO
9122  # Extract the first word of "lipo", so it can be a program name with args.
9123set dummy lipo; ac_word=$2
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125$as_echo_n "checking for $ac_word... " >&6; }
9126if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  if test -n "$ac_ct_LIPO"; then
9130  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9131else
9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135  IFS=$as_save_IFS
9136  test -z "$as_dir" && as_dir=.
9137    for ac_exec_ext in '' $ac_executable_extensions; do
9138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139    ac_cv_prog_ac_ct_LIPO="lipo"
9140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141    break 2
9142  fi
9143done
9144  done
9145IFS=$as_save_IFS
9146
9147fi
9148fi
9149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9150if test -n "$ac_ct_LIPO"; then
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9152$as_echo "$ac_ct_LIPO" >&6; }
9153else
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155$as_echo "no" >&6; }
9156fi
9157
9158  if test "x$ac_ct_LIPO" = x; then
9159    LIPO=":"
9160  else
9161    case $cross_compiling:$ac_tool_warned in
9162yes:)
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9165ac_tool_warned=yes ;;
9166esac
9167    LIPO=$ac_ct_LIPO
9168  fi
9169else
9170  LIPO="$ac_cv_prog_LIPO"
9171fi
9172
9173    if test -n "$ac_tool_prefix"; then
9174  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9175set dummy ${ac_tool_prefix}otool; ac_word=$2
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
9178if ${ac_cv_prog_OTOOL+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  if test -n "$OTOOL"; then
9182  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187  IFS=$as_save_IFS
9188  test -z "$as_dir" && as_dir=.
9189    for ac_exec_ext in '' $ac_executable_extensions; do
9190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193    break 2
9194  fi
9195done
9196  done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201OTOOL=$ac_cv_prog_OTOOL
9202if test -n "$OTOOL"; then
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9204$as_echo "$OTOOL" >&6; }
9205else
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211fi
9212if test -z "$ac_cv_prog_OTOOL"; then
9213  ac_ct_OTOOL=$OTOOL
9214  # Extract the first word of "otool", so it can be a program name with args.
9215set dummy otool; ac_word=$2
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  if test -n "$ac_ct_OTOOL"; then
9222  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227  IFS=$as_save_IFS
9228  test -z "$as_dir" && as_dir=.
9229    for ac_exec_ext in '' $ac_executable_extensions; do
9230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231    ac_cv_prog_ac_ct_OTOOL="otool"
9232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233    break 2
9234  fi
9235done
9236  done
9237IFS=$as_save_IFS
9238
9239fi
9240fi
9241ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9242if test -n "$ac_ct_OTOOL"; then
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9244$as_echo "$ac_ct_OTOOL" >&6; }
9245else
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
9248fi
9249
9250  if test "x$ac_ct_OTOOL" = x; then
9251    OTOOL=":"
9252  else
9253    case $cross_compiling:$ac_tool_warned in
9254yes:)
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257ac_tool_warned=yes ;;
9258esac
9259    OTOOL=$ac_ct_OTOOL
9260  fi
9261else
9262  OTOOL="$ac_cv_prog_OTOOL"
9263fi
9264
9265    if test -n "$ac_tool_prefix"; then
9266  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9267set dummy ${ac_tool_prefix}otool64; ac_word=$2
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if ${ac_cv_prog_OTOOL64+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  if test -n "$OTOOL64"; then
9274  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279  IFS=$as_save_IFS
9280  test -z "$as_dir" && as_dir=.
9281    for ac_exec_ext in '' $ac_executable_extensions; do
9282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285    break 2
9286  fi
9287done
9288  done
9289IFS=$as_save_IFS
9290
9291fi
9292fi
9293OTOOL64=$ac_cv_prog_OTOOL64
9294if test -n "$OTOOL64"; then
9295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9296$as_echo "$OTOOL64" >&6; }
9297else
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9300fi
9301
9302
9303fi
9304if test -z "$ac_cv_prog_OTOOL64"; then
9305  ac_ct_OTOOL64=$OTOOL64
9306  # Extract the first word of "otool64", so it can be a program name with args.
9307set dummy otool64; ac_word=$2
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309$as_echo_n "checking for $ac_word... " >&6; }
9310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9311  $as_echo_n "(cached) " >&6
9312else
9313  if test -n "$ac_ct_OTOOL64"; then
9314  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9315else
9316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317for as_dir in $PATH
9318do
9319  IFS=$as_save_IFS
9320  test -z "$as_dir" && as_dir=.
9321    for ac_exec_ext in '' $ac_executable_extensions; do
9322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323    ac_cv_prog_ac_ct_OTOOL64="otool64"
9324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325    break 2
9326  fi
9327done
9328  done
9329IFS=$as_save_IFS
9330
9331fi
9332fi
9333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9334if test -n "$ac_ct_OTOOL64"; then
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9336$as_echo "$ac_ct_OTOOL64" >&6; }
9337else
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339$as_echo "no" >&6; }
9340fi
9341
9342  if test "x$ac_ct_OTOOL64" = x; then
9343    OTOOL64=":"
9344  else
9345    case $cross_compiling:$ac_tool_warned in
9346yes:)
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349ac_tool_warned=yes ;;
9350esac
9351    OTOOL64=$ac_ct_OTOOL64
9352  fi
9353else
9354  OTOOL64="$ac_cv_prog_OTOOL64"
9355fi
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9384$as_echo_n "checking for -single_module linker flag... " >&6; }
9385if ${lt_cv_apple_cc_single_mod+:} false; then :
9386  $as_echo_n "(cached) " >&6
9387else
9388  lt_cv_apple_cc_single_mod=no
9389      if test -z "${LT_MULTI_MODULE}"; then
9390	# By default we will add the -single_module flag. You can override
9391	# by either setting the environment variable LT_MULTI_MODULE
9392	# non-empty at configure time, or by adding -multi_module to the
9393	# link flags.
9394	rm -rf libconftest.dylib*
9395	echo "int foo(void){return 1;}" > conftest.c
9396	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9397-dynamiclib -Wl,-single_module conftest.c" >&5
9398	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9399	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9400        _lt_result=$?
9401	# If there is a non-empty error log, and "single_module"
9402	# appears in it, assume the flag caused a linker warning
9403        if test -s conftest.err && $GREP single_module conftest.err; then
9404	  cat conftest.err >&5
9405	# Otherwise, if the output was created with a 0 exit code from
9406	# the compiler, it worked.
9407	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9408	  lt_cv_apple_cc_single_mod=yes
9409	else
9410	  cat conftest.err >&5
9411	fi
9412	rm -rf libconftest.dylib*
9413	rm -f conftest.*
9414      fi
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9417$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9418
9419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9421if ${lt_cv_ld_exported_symbols_list+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  lt_cv_ld_exported_symbols_list=no
9425      save_LDFLAGS=$LDFLAGS
9426      echo "_main" > conftest.sym
9427      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429/* end confdefs.h.  */
9430
9431int
9432main ()
9433{
9434
9435  ;
9436  return 0;
9437}
9438_ACEOF
9439if ac_fn_c_try_link "$LINENO"; then :
9440  lt_cv_ld_exported_symbols_list=yes
9441else
9442  lt_cv_ld_exported_symbols_list=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext \
9445    conftest$ac_exeext conftest.$ac_ext
9446	LDFLAGS="$save_LDFLAGS"
9447
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9451
9452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9453$as_echo_n "checking for -force_load linker flag... " >&6; }
9454if ${lt_cv_ld_force_load+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457  lt_cv_ld_force_load=no
9458      cat > conftest.c << _LT_EOF
9459int forced_loaded() { return 2;}
9460_LT_EOF
9461      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9462      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9463      echo "$AR cru libconftest.a conftest.o" >&5
9464      $AR cru libconftest.a conftest.o 2>&5
9465      echo "$RANLIB libconftest.a" >&5
9466      $RANLIB libconftest.a 2>&5
9467      cat > conftest.c << _LT_EOF
9468int main() { return 0;}
9469_LT_EOF
9470      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9471      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9472      _lt_result=$?
9473      if test -s conftest.err && $GREP force_load conftest.err; then
9474	cat conftest.err >&5
9475      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9476	lt_cv_ld_force_load=yes
9477      else
9478	cat conftest.err >&5
9479      fi
9480        rm -f conftest.err libconftest.a conftest conftest.c
9481        rm -rf conftest.dSYM
9482
9483fi
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9485$as_echo "$lt_cv_ld_force_load" >&6; }
9486    case $host_os in
9487    rhapsody* | darwin1.[012])
9488      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9489    darwin1.*)
9490      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9491    darwin*) # darwin 5.x on
9492      # if running on 10.5 or later, the deployment target defaults
9493      # to the OS version, if on x86, and 10.4, the deployment
9494      # target defaults to 10.4. Don't you love it?
9495      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9496	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9497	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9498	10.[012]*)
9499	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9500	10.*)
9501	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9502      esac
9503    ;;
9504  esac
9505    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9506      _lt_dar_single_mod='$single_module'
9507    fi
9508    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9509      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9510    else
9511      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9512    fi
9513    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9514      _lt_dsymutil='~$DSYMUTIL $lib || :'
9515    else
9516      _lt_dsymutil=
9517    fi
9518    ;;
9519  esac
9520
9521for ac_header in dlfcn.h
9522do :
9523  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9524"
9525if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9526  cat >>confdefs.h <<_ACEOF
9527#define HAVE_DLFCN_H 1
9528_ACEOF
9529
9530fi
9531
9532done
9533
9534
9535
9536
9537
9538
9539
9540# Set options
9541
9542
9543
9544        enable_dlopen=no
9545
9546
9547  enable_win32_dll=no
9548
9549
9550            # Check whether --enable-shared was given.
9551if test "${enable_shared+set}" = set; then :
9552  enableval=$enable_shared; p=${PACKAGE-default}
9553    case $enableval in
9554    yes) enable_shared=yes ;;
9555    no) enable_shared=no ;;
9556    *)
9557      enable_shared=no
9558      # Look at the argument we got.  We use all the common list separators.
9559      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9560      for pkg in $enableval; do
9561	IFS="$lt_save_ifs"
9562	if test "X$pkg" = "X$p"; then
9563	  enable_shared=yes
9564	fi
9565      done
9566      IFS="$lt_save_ifs"
9567      ;;
9568    esac
9569else
9570  enable_shared=yes
9571fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581  # Check whether --enable-static was given.
9582if test "${enable_static+set}" = set; then :
9583  enableval=$enable_static; p=${PACKAGE-default}
9584    case $enableval in
9585    yes) enable_static=yes ;;
9586    no) enable_static=no ;;
9587    *)
9588     enable_static=no
9589      # Look at the argument we got.  We use all the common list separators.
9590      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9591      for pkg in $enableval; do
9592	IFS="$lt_save_ifs"
9593	if test "X$pkg" = "X$p"; then
9594	  enable_static=yes
9595	fi
9596      done
9597      IFS="$lt_save_ifs"
9598      ;;
9599    esac
9600else
9601  enable_static=yes
9602fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613# Check whether --with-pic was given.
9614if test "${with_pic+set}" = set; then :
9615  withval=$with_pic; lt_p=${PACKAGE-default}
9616    case $withval in
9617    yes|no) pic_mode=$withval ;;
9618    *)
9619      pic_mode=default
9620      # Look at the argument we got.  We use all the common list separators.
9621      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9622      for lt_pkg in $withval; do
9623	IFS="$lt_save_ifs"
9624	if test "X$lt_pkg" = "X$lt_p"; then
9625	  pic_mode=yes
9626	fi
9627      done
9628      IFS="$lt_save_ifs"
9629      ;;
9630    esac
9631else
9632  pic_mode=default
9633fi
9634
9635
9636test -z "$pic_mode" && pic_mode=default
9637
9638
9639
9640
9641
9642
9643
9644  # Check whether --enable-fast-install was given.
9645if test "${enable_fast_install+set}" = set; then :
9646  enableval=$enable_fast_install; p=${PACKAGE-default}
9647    case $enableval in
9648    yes) enable_fast_install=yes ;;
9649    no) enable_fast_install=no ;;
9650    *)
9651      enable_fast_install=no
9652      # Look at the argument we got.  We use all the common list separators.
9653      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9654      for pkg in $enableval; do
9655	IFS="$lt_save_ifs"
9656	if test "X$pkg" = "X$p"; then
9657	  enable_fast_install=yes
9658	fi
9659      done
9660      IFS="$lt_save_ifs"
9661      ;;
9662    esac
9663else
9664  enable_fast_install=yes
9665fi
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677# This can be used to rebuild libtool when needed
9678LIBTOOL_DEPS="$ltmain"
9679
9680# Always use our own libtool.
9681LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712test -z "$LN_S" && LN_S="ln -s"
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727if test -n "${ZSH_VERSION+set}" ; then
9728   setopt NO_GLOB_SUBST
9729fi
9730
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9732$as_echo_n "checking for objdir... " >&6; }
9733if ${lt_cv_objdir+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  rm -f .libs 2>/dev/null
9737mkdir .libs 2>/dev/null
9738if test -d .libs; then
9739  lt_cv_objdir=.libs
9740else
9741  # MS-DOS does not allow filenames that begin with a dot.
9742  lt_cv_objdir=_libs
9743fi
9744rmdir .libs 2>/dev/null
9745fi
9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9747$as_echo "$lt_cv_objdir" >&6; }
9748objdir=$lt_cv_objdir
9749
9750
9751
9752
9753
9754cat >>confdefs.h <<_ACEOF
9755#define LT_OBJDIR "$lt_cv_objdir/"
9756_ACEOF
9757
9758
9759
9760
9761case $host_os in
9762aix3*)
9763  # AIX sometimes has problems with the GCC collect2 program.  For some
9764  # reason, if we set the COLLECT_NAMES environment variable, the problems
9765  # vanish in a puff of smoke.
9766  if test "X${COLLECT_NAMES+set}" != Xset; then
9767    COLLECT_NAMES=
9768    export COLLECT_NAMES
9769  fi
9770  ;;
9771esac
9772
9773# Global variables:
9774ofile=libtool
9775can_build_shared=yes
9776
9777# All known linkers require a `.a' archive for static linking (except MSVC,
9778# which needs '.lib').
9779libext=a
9780
9781with_gnu_ld="$lt_cv_prog_gnu_ld"
9782
9783old_CC="$CC"
9784old_CFLAGS="$CFLAGS"
9785
9786# Set sane defaults for various variables
9787test -z "$CC" && CC=cc
9788test -z "$LTCC" && LTCC=$CC
9789test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9790test -z "$LD" && LD=ld
9791test -z "$ac_objext" && ac_objext=o
9792
9793for cc_temp in $compiler""; do
9794  case $cc_temp in
9795    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9796    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9797    \-*) ;;
9798    *) break;;
9799  esac
9800done
9801cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9802
9803
9804# Only perform the check for file, if the check method requires it
9805test -z "$MAGIC_CMD" && MAGIC_CMD=file
9806case $deplibs_check_method in
9807file_magic*)
9808  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9810$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9811if ${lt_cv_path_MAGIC_CMD+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  case $MAGIC_CMD in
9815[\\/*] |  ?:[\\/]*)
9816  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9817  ;;
9818*)
9819  lt_save_MAGIC_CMD="$MAGIC_CMD"
9820  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9821  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9822  for ac_dir in $ac_dummy; do
9823    IFS="$lt_save_ifs"
9824    test -z "$ac_dir" && ac_dir=.
9825    if test -f $ac_dir/${ac_tool_prefix}file; then
9826      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9827      if test -n "$file_magic_test_file"; then
9828	case $deplibs_check_method in
9829	"file_magic "*)
9830	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9831	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9832	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9833	    $EGREP "$file_magic_regex" > /dev/null; then
9834	    :
9835	  else
9836	    cat <<_LT_EOF 1>&2
9837
9838*** Warning: the command libtool uses to detect shared libraries,
9839*** $file_magic_cmd, produces output that libtool cannot recognize.
9840*** The result is that libtool may fail to recognize shared libraries
9841*** as such.  This will affect the creation of libtool libraries that
9842*** depend on shared libraries, but programs linked with such libtool
9843*** libraries will work regardless of this problem.  Nevertheless, you
9844*** may want to report the problem to your system manager and/or to
9845*** bug-libtool@gnu.org
9846
9847_LT_EOF
9848	  fi ;;
9849	esac
9850      fi
9851      break
9852    fi
9853  done
9854  IFS="$lt_save_ifs"
9855  MAGIC_CMD="$lt_save_MAGIC_CMD"
9856  ;;
9857esac
9858fi
9859
9860MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9861if test -n "$MAGIC_CMD"; then
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9863$as_echo "$MAGIC_CMD" >&6; }
9864else
9865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
9867fi
9868
9869
9870
9871
9872
9873if test -z "$lt_cv_path_MAGIC_CMD"; then
9874  if test -n "$ac_tool_prefix"; then
9875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9876$as_echo_n "checking for file... " >&6; }
9877if ${lt_cv_path_MAGIC_CMD+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  case $MAGIC_CMD in
9881[\\/*] |  ?:[\\/]*)
9882  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9883  ;;
9884*)
9885  lt_save_MAGIC_CMD="$MAGIC_CMD"
9886  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9888  for ac_dir in $ac_dummy; do
9889    IFS="$lt_save_ifs"
9890    test -z "$ac_dir" && ac_dir=.
9891    if test -f $ac_dir/file; then
9892      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9893      if test -n "$file_magic_test_file"; then
9894	case $deplibs_check_method in
9895	"file_magic "*)
9896	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9897	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9898	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9899	    $EGREP "$file_magic_regex" > /dev/null; then
9900	    :
9901	  else
9902	    cat <<_LT_EOF 1>&2
9903
9904*** Warning: the command libtool uses to detect shared libraries,
9905*** $file_magic_cmd, produces output that libtool cannot recognize.
9906*** The result is that libtool may fail to recognize shared libraries
9907*** as such.  This will affect the creation of libtool libraries that
9908*** depend on shared libraries, but programs linked with such libtool
9909*** libraries will work regardless of this problem.  Nevertheless, you
9910*** may want to report the problem to your system manager and/or to
9911*** bug-libtool@gnu.org
9912
9913_LT_EOF
9914	  fi ;;
9915	esac
9916      fi
9917      break
9918    fi
9919  done
9920  IFS="$lt_save_ifs"
9921  MAGIC_CMD="$lt_save_MAGIC_CMD"
9922  ;;
9923esac
9924fi
9925
9926MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9927if test -n "$MAGIC_CMD"; then
9928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9929$as_echo "$MAGIC_CMD" >&6; }
9930else
9931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
9933fi
9934
9935
9936  else
9937    MAGIC_CMD=:
9938  fi
9939fi
9940
9941  fi
9942  ;;
9943esac
9944
9945# Use C for the default configuration in the libtool script
9946
9947lt_save_CC="$CC"
9948ac_ext=c
9949ac_cpp='$CPP $CPPFLAGS'
9950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952ac_compiler_gnu=$ac_cv_c_compiler_gnu
9953
9954
9955# Source file extension for C test sources.
9956ac_ext=c
9957
9958# Object file extension for compiled C test sources.
9959objext=o
9960objext=$objext
9961
9962# Code to be used in simple compile tests
9963lt_simple_compile_test_code="int some_variable = 0;"
9964
9965# Code to be used in simple link tests
9966lt_simple_link_test_code='int main(){return(0);}'
9967
9968
9969
9970
9971
9972
9973
9974# If no C compiler was specified, use CC.
9975LTCC=${LTCC-"$CC"}
9976
9977# If no C compiler flags were specified, use CFLAGS.
9978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9979
9980# Allow CC to be a program name with arguments.
9981compiler=$CC
9982
9983# Save the default compiler, since it gets overwritten when the other
9984# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9985compiler_DEFAULT=$CC
9986
9987# save warnings/boilerplate of simple test code
9988ac_outfile=conftest.$ac_objext
9989echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9990eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9991_lt_compiler_boilerplate=`cat conftest.err`
9992$RM conftest*
9993
9994ac_outfile=conftest.$ac_objext
9995echo "$lt_simple_link_test_code" >conftest.$ac_ext
9996eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9997_lt_linker_boilerplate=`cat conftest.err`
9998$RM -r conftest*
9999
10000
10001if test -n "$compiler"; then
10002
10003lt_prog_compiler_no_builtin_flag=
10004
10005if test "$GCC" = yes; then
10006  case $cc_basename in
10007  nvcc*)
10008    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10009  *)
10010    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10011  esac
10012
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10014$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10015if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10016  $as_echo_n "(cached) " >&6
10017else
10018  lt_cv_prog_compiler_rtti_exceptions=no
10019   ac_outfile=conftest.$ac_objext
10020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021   lt_compiler_flag="-fno-rtti -fno-exceptions"
10022   # Insert the option either (1) after the last *FLAGS variable, or
10023   # (2) before a word containing "conftest.", or (3) at the end.
10024   # Note that $ac_compile itself does not contain backslashes and begins
10025   # with a dollar sign (not a hyphen), so the echo should work correctly.
10026   # The option is referenced via a variable to avoid confusing sed.
10027   lt_compile=`echo "$ac_compile" | $SED \
10028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030   -e 's:$: $lt_compiler_flag:'`
10031   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10032   (eval "$lt_compile" 2>conftest.err)
10033   ac_status=$?
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   if (exit $ac_status) && test -s "$ac_outfile"; then
10037     # The compiler can only warn and ignore the option if not recognized
10038     # So say no if there are warnings other than the usual output.
10039     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10040     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10041     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10042       lt_cv_prog_compiler_rtti_exceptions=yes
10043     fi
10044   fi
10045   $RM conftest*
10046
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10049$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10050
10051if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10052    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10053else
10054    :
10055fi
10056
10057fi
10058
10059
10060
10061
10062
10063
10064  lt_prog_compiler_wl=
10065lt_prog_compiler_pic=
10066lt_prog_compiler_static=
10067
10068
10069  if test "$GCC" = yes; then
10070    lt_prog_compiler_wl='-Wl,'
10071    lt_prog_compiler_static='-static'
10072
10073    case $host_os in
10074      aix*)
10075      # All AIX code is PIC.
10076      if test "$host_cpu" = ia64; then
10077	# AIX 5 now supports IA64 processor
10078	lt_prog_compiler_static='-Bstatic'
10079      fi
10080      ;;
10081
10082    amigaos*)
10083      case $host_cpu in
10084      powerpc)
10085            # see comment about AmigaOS4 .so support
10086            lt_prog_compiler_pic='-fPIC'
10087        ;;
10088      m68k)
10089            # FIXME: we need at least 68020 code to build shared libraries, but
10090            # adding the `-m68020' flag to GCC prevents building anything better,
10091            # like `-m68040'.
10092            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10093        ;;
10094      esac
10095      ;;
10096
10097    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098      # PIC is the default for these OSes.
10099      ;;
10100
10101    mingw* | cygwin* | pw32* | os2* | cegcc*)
10102      # This hack is so that the source file can tell whether it is being
10103      # built for inclusion in a dll (and should export symbols for example).
10104      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105      # (--disable-auto-import) libraries
10106      lt_prog_compiler_pic='-DDLL_EXPORT'
10107      ;;
10108
10109    darwin* | rhapsody*)
10110      # PIC is the default on this platform
10111      # Common symbols not allowed in MH_DYLIB files
10112      lt_prog_compiler_pic='-fno-common'
10113      ;;
10114
10115    haiku*)
10116      # PIC is the default for Haiku.
10117      # The "-static" flag exists, but is broken.
10118      lt_prog_compiler_static=
10119      ;;
10120
10121    hpux*)
10122      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10123      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10124      # sets the default TLS model and affects inlining.
10125      case $host_cpu in
10126      hppa*64*)
10127	# +Z the default
10128	;;
10129      *)
10130	lt_prog_compiler_pic='-fPIC'
10131	;;
10132      esac
10133      ;;
10134
10135    interix[3-9]*)
10136      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10137      # Instead, we relocate shared libraries at runtime.
10138      ;;
10139
10140    msdosdjgpp*)
10141      # Just because we use GCC doesn't mean we suddenly get shared libraries
10142      # on systems that don't support them.
10143      lt_prog_compiler_can_build_shared=no
10144      enable_shared=no
10145      ;;
10146
10147    *nto* | *qnx*)
10148      # QNX uses GNU C++, but need to define -shared option too, otherwise
10149      # it will coredump.
10150      lt_prog_compiler_pic='-fPIC -shared'
10151      ;;
10152
10153    sysv4*MP*)
10154      if test -d /usr/nec; then
10155	lt_prog_compiler_pic=-Kconform_pic
10156      fi
10157      ;;
10158
10159    *)
10160      lt_prog_compiler_pic='-fPIC'
10161      ;;
10162    esac
10163
10164    case $cc_basename in
10165    nvcc*) # Cuda Compiler Driver 2.2
10166      lt_prog_compiler_wl='-Xlinker '
10167      if test -n "$lt_prog_compiler_pic"; then
10168        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10169      fi
10170      ;;
10171    esac
10172  else
10173    # PORTME Check for flag to pass linker flags through the system compiler.
10174    case $host_os in
10175    aix*)
10176      lt_prog_compiler_wl='-Wl,'
10177      if test "$host_cpu" = ia64; then
10178	# AIX 5 now supports IA64 processor
10179	lt_prog_compiler_static='-Bstatic'
10180      else
10181	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10182      fi
10183      ;;
10184
10185    mingw* | cygwin* | pw32* | os2* | cegcc*)
10186      # This hack is so that the source file can tell whether it is being
10187      # built for inclusion in a dll (and should export symbols for example).
10188      lt_prog_compiler_pic='-DDLL_EXPORT'
10189      ;;
10190
10191    hpux9* | hpux10* | hpux11*)
10192      lt_prog_compiler_wl='-Wl,'
10193      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194      # not for PA HP-UX.
10195      case $host_cpu in
10196      hppa*64*|ia64*)
10197	# +Z the default
10198	;;
10199      *)
10200	lt_prog_compiler_pic='+Z'
10201	;;
10202      esac
10203      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204      lt_prog_compiler_static='${wl}-a ${wl}archive'
10205      ;;
10206
10207    irix5* | irix6* | nonstopux*)
10208      lt_prog_compiler_wl='-Wl,'
10209      # PIC (with -KPIC) is the default.
10210      lt_prog_compiler_static='-non_shared'
10211      ;;
10212
10213    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10214      case $cc_basename in
10215      # old Intel for x86_64 which still supported -KPIC.
10216      ecc*)
10217	lt_prog_compiler_wl='-Wl,'
10218	lt_prog_compiler_pic='-KPIC'
10219	lt_prog_compiler_static='-static'
10220        ;;
10221      # icc used to be incompatible with GCC.
10222      # ICC 10 doesn't accept -KPIC any more.
10223      icc* | ifort*)
10224	lt_prog_compiler_wl='-Wl,'
10225	lt_prog_compiler_pic='-fPIC'
10226	lt_prog_compiler_static='-static'
10227        ;;
10228      # Lahey Fortran 8.1.
10229      lf95*)
10230	lt_prog_compiler_wl='-Wl,'
10231	lt_prog_compiler_pic='--shared'
10232	lt_prog_compiler_static='--static'
10233	;;
10234      nagfor*)
10235	# NAG Fortran compiler
10236	lt_prog_compiler_wl='-Wl,-Wl,,'
10237	lt_prog_compiler_pic='-PIC'
10238	lt_prog_compiler_static='-Bstatic'
10239	;;
10240      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10241        # Portland Group compilers (*not* the Pentium gcc compiler,
10242	# which looks to be a dead project)
10243	lt_prog_compiler_wl='-Wl,'
10244	lt_prog_compiler_pic='-fpic'
10245	lt_prog_compiler_static='-Bstatic'
10246        ;;
10247      ccc*)
10248        lt_prog_compiler_wl='-Wl,'
10249        # All Alpha code is PIC.
10250        lt_prog_compiler_static='-non_shared'
10251        ;;
10252      xl* | bgxl* | bgf* | mpixl*)
10253	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10254	lt_prog_compiler_wl='-Wl,'
10255	lt_prog_compiler_pic='-qpic'
10256	lt_prog_compiler_static='-qstaticlink'
10257	;;
10258      *)
10259	case `$CC -V 2>&1 | sed 5q` in
10260	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10261	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10262	  lt_prog_compiler_pic='-KPIC'
10263	  lt_prog_compiler_static='-Bstatic'
10264	  lt_prog_compiler_wl=''
10265	  ;;
10266	*Sun\ F* | *Sun*Fortran*)
10267	  lt_prog_compiler_pic='-KPIC'
10268	  lt_prog_compiler_static='-Bstatic'
10269	  lt_prog_compiler_wl='-Qoption ld '
10270	  ;;
10271	*Sun\ C*)
10272	  # Sun C 5.9
10273	  lt_prog_compiler_pic='-KPIC'
10274	  lt_prog_compiler_static='-Bstatic'
10275	  lt_prog_compiler_wl='-Wl,'
10276	  ;;
10277        *Intel*\ [CF]*Compiler*)
10278	  lt_prog_compiler_wl='-Wl,'
10279	  lt_prog_compiler_pic='-fPIC'
10280	  lt_prog_compiler_static='-static'
10281	  ;;
10282	*Portland\ Group*)
10283	  lt_prog_compiler_wl='-Wl,'
10284	  lt_prog_compiler_pic='-fpic'
10285	  lt_prog_compiler_static='-Bstatic'
10286	  ;;
10287	esac
10288	;;
10289      esac
10290      ;;
10291
10292    newsos6)
10293      lt_prog_compiler_pic='-KPIC'
10294      lt_prog_compiler_static='-Bstatic'
10295      ;;
10296
10297    *nto* | *qnx*)
10298      # QNX uses GNU C++, but need to define -shared option too, otherwise
10299      # it will coredump.
10300      lt_prog_compiler_pic='-fPIC -shared'
10301      ;;
10302
10303    osf3* | osf4* | osf5*)
10304      lt_prog_compiler_wl='-Wl,'
10305      # All OSF/1 code is PIC.
10306      lt_prog_compiler_static='-non_shared'
10307      ;;
10308
10309    rdos*)
10310      lt_prog_compiler_static='-non_shared'
10311      ;;
10312
10313    solaris*)
10314      lt_prog_compiler_pic='-KPIC'
10315      lt_prog_compiler_static='-Bstatic'
10316      case $cc_basename in
10317      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10318	lt_prog_compiler_wl='-Qoption ld ';;
10319      *)
10320	lt_prog_compiler_wl='-Wl,';;
10321      esac
10322      ;;
10323
10324    sunos4*)
10325      lt_prog_compiler_wl='-Qoption ld '
10326      lt_prog_compiler_pic='-PIC'
10327      lt_prog_compiler_static='-Bstatic'
10328      ;;
10329
10330    sysv4 | sysv4.2uw2* | sysv4.3*)
10331      lt_prog_compiler_wl='-Wl,'
10332      lt_prog_compiler_pic='-KPIC'
10333      lt_prog_compiler_static='-Bstatic'
10334      ;;
10335
10336    sysv4*MP*)
10337      if test -d /usr/nec ;then
10338	lt_prog_compiler_pic='-Kconform_pic'
10339	lt_prog_compiler_static='-Bstatic'
10340      fi
10341      ;;
10342
10343    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10344      lt_prog_compiler_wl='-Wl,'
10345      lt_prog_compiler_pic='-KPIC'
10346      lt_prog_compiler_static='-Bstatic'
10347      ;;
10348
10349    unicos*)
10350      lt_prog_compiler_wl='-Wl,'
10351      lt_prog_compiler_can_build_shared=no
10352      ;;
10353
10354    uts4*)
10355      lt_prog_compiler_pic='-pic'
10356      lt_prog_compiler_static='-Bstatic'
10357      ;;
10358
10359    *)
10360      lt_prog_compiler_can_build_shared=no
10361      ;;
10362    esac
10363  fi
10364
10365case $host_os in
10366  # For platforms which do not support PIC, -DPIC is meaningless:
10367  *djgpp*)
10368    lt_prog_compiler_pic=
10369    ;;
10370  *)
10371    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10372    ;;
10373esac
10374
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10376$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10377if ${lt_cv_prog_compiler_pic+:} false; then :
10378  $as_echo_n "(cached) " >&6
10379else
10380  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10383$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10384lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10385
10386#
10387# Check to make sure the PIC flag actually works.
10388#
10389if test -n "$lt_prog_compiler_pic"; then
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10391$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10392if ${lt_cv_prog_compiler_pic_works+:} false; then :
10393  $as_echo_n "(cached) " >&6
10394else
10395  lt_cv_prog_compiler_pic_works=no
10396   ac_outfile=conftest.$ac_objext
10397   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10399   # Insert the option either (1) after the last *FLAGS variable, or
10400   # (2) before a word containing "conftest.", or (3) at the end.
10401   # Note that $ac_compile itself does not contain backslashes and begins
10402   # with a dollar sign (not a hyphen), so the echo should work correctly.
10403   # The option is referenced via a variable to avoid confusing sed.
10404   lt_compile=`echo "$ac_compile" | $SED \
10405   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10407   -e 's:$: $lt_compiler_flag:'`
10408   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10409   (eval "$lt_compile" 2>conftest.err)
10410   ac_status=$?
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   if (exit $ac_status) && test -s "$ac_outfile"; then
10414     # The compiler can only warn and ignore the option if not recognized
10415     # So say no if there are warnings other than the usual output.
10416     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10417     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10418     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10419       lt_cv_prog_compiler_pic_works=yes
10420     fi
10421   fi
10422   $RM conftest*
10423
10424fi
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10426$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10427
10428if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10429    case $lt_prog_compiler_pic in
10430     "" | " "*) ;;
10431     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10432     esac
10433else
10434    lt_prog_compiler_pic=
10435     lt_prog_compiler_can_build_shared=no
10436fi
10437
10438fi
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450#
10451# Check to make sure the static flag actually works.
10452#
10453wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10455$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10456if ${lt_cv_prog_compiler_static_works+:} false; then :
10457  $as_echo_n "(cached) " >&6
10458else
10459  lt_cv_prog_compiler_static_works=no
10460   save_LDFLAGS="$LDFLAGS"
10461   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10462   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10463   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10464     # The linker can only warn and ignore the option if not recognized
10465     # So say no if there are warnings
10466     if test -s conftest.err; then
10467       # Append any errors to the config.log.
10468       cat conftest.err 1>&5
10469       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10470       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10471       if diff conftest.exp conftest.er2 >/dev/null; then
10472         lt_cv_prog_compiler_static_works=yes
10473       fi
10474     else
10475       lt_cv_prog_compiler_static_works=yes
10476     fi
10477   fi
10478   $RM -r conftest*
10479   LDFLAGS="$save_LDFLAGS"
10480
10481fi
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10483$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10484
10485if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10486    :
10487else
10488    lt_prog_compiler_static=
10489fi
10490
10491
10492
10493
10494
10495
10496
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10499if ${lt_cv_prog_compiler_c_o+:} false; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  lt_cv_prog_compiler_c_o=no
10503   $RM -r conftest 2>/dev/null
10504   mkdir conftest
10505   cd conftest
10506   mkdir out
10507   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10508
10509   lt_compiler_flag="-o out/conftest2.$ac_objext"
10510   # Insert the option either (1) after the last *FLAGS variable, or
10511   # (2) before a word containing "conftest.", or (3) at the end.
10512   # Note that $ac_compile itself does not contain backslashes and begins
10513   # with a dollar sign (not a hyphen), so the echo should work correctly.
10514   lt_compile=`echo "$ac_compile" | $SED \
10515   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517   -e 's:$: $lt_compiler_flag:'`
10518   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10519   (eval "$lt_compile" 2>out/conftest.err)
10520   ac_status=$?
10521   cat out/conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10524   then
10525     # The compiler can only warn and ignore the option if not recognized
10526     # So say no if there are warnings
10527     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10528     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10529     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10530       lt_cv_prog_compiler_c_o=yes
10531     fi
10532   fi
10533   chmod u+w . 2>&5
10534   $RM conftest*
10535   # SGI C++ compiler will create directory out/ii_files/ for
10536   # template instantiation
10537   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10538   $RM out/* && rmdir out
10539   cd ..
10540   $RM -r conftest
10541   $RM conftest*
10542
10543fi
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10545$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10546
10547
10548
10549
10550
10551
10552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10553$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10554if ${lt_cv_prog_compiler_c_o+:} false; then :
10555  $as_echo_n "(cached) " >&6
10556else
10557  lt_cv_prog_compiler_c_o=no
10558   $RM -r conftest 2>/dev/null
10559   mkdir conftest
10560   cd conftest
10561   mkdir out
10562   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10563
10564   lt_compiler_flag="-o out/conftest2.$ac_objext"
10565   # Insert the option either (1) after the last *FLAGS variable, or
10566   # (2) before a word containing "conftest.", or (3) at the end.
10567   # Note that $ac_compile itself does not contain backslashes and begins
10568   # with a dollar sign (not a hyphen), so the echo should work correctly.
10569   lt_compile=`echo "$ac_compile" | $SED \
10570   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10571   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10572   -e 's:$: $lt_compiler_flag:'`
10573   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10574   (eval "$lt_compile" 2>out/conftest.err)
10575   ac_status=$?
10576   cat out/conftest.err >&5
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10579   then
10580     # The compiler can only warn and ignore the option if not recognized
10581     # So say no if there are warnings
10582     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10583     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10584     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10585       lt_cv_prog_compiler_c_o=yes
10586     fi
10587   fi
10588   chmod u+w . 2>&5
10589   $RM conftest*
10590   # SGI C++ compiler will create directory out/ii_files/ for
10591   # template instantiation
10592   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10593   $RM out/* && rmdir out
10594   cd ..
10595   $RM -r conftest
10596   $RM conftest*
10597
10598fi
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10600$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10601
10602
10603
10604
10605hard_links="nottested"
10606if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10607  # do not overwrite the value of need_locks provided by the user
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10609$as_echo_n "checking if we can lock with hard links... " >&6; }
10610  hard_links=yes
10611  $RM conftest*
10612  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10613  touch conftest.a
10614  ln conftest.a conftest.b 2>&5 || hard_links=no
10615  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10617$as_echo "$hard_links" >&6; }
10618  if test "$hard_links" = no; then
10619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10620$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10621    need_locks=warn
10622  fi
10623else
10624  need_locks=no
10625fi
10626
10627
10628
10629
10630
10631
10632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10633$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10634
10635  runpath_var=
10636  allow_undefined_flag=
10637  always_export_symbols=no
10638  archive_cmds=
10639  archive_expsym_cmds=
10640  compiler_needs_object=no
10641  enable_shared_with_static_runtimes=no
10642  export_dynamic_flag_spec=
10643  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10644  hardcode_automatic=no
10645  hardcode_direct=no
10646  hardcode_direct_absolute=no
10647  hardcode_libdir_flag_spec=
10648  hardcode_libdir_separator=
10649  hardcode_minus_L=no
10650  hardcode_shlibpath_var=unsupported
10651  inherit_rpath=no
10652  link_all_deplibs=unknown
10653  module_cmds=
10654  module_expsym_cmds=
10655  old_archive_from_new_cmds=
10656  old_archive_from_expsyms_cmds=
10657  thread_safe_flag_spec=
10658  whole_archive_flag_spec=
10659  # include_expsyms should be a list of space-separated symbols to be *always*
10660  # included in the symbol list
10661  include_expsyms=
10662  # exclude_expsyms can be an extended regexp of symbols to exclude
10663  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10664  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10665  # as well as any symbol that contains `d'.
10666  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10667  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10668  # platforms (ab)use it in PIC code, but their linkers get confused if
10669  # the symbol is explicitly referenced.  Since portable code cannot
10670  # rely on this symbol name, it's probably fine to never include it in
10671  # preloaded symbol tables.
10672  # Exclude shared library initialization/finalization symbols.
10673  extract_expsyms_cmds=
10674
10675  case $host_os in
10676  cygwin* | mingw* | pw32* | cegcc*)
10677    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10678    # When not using gcc, we currently assume that we are using
10679    # Microsoft Visual C++.
10680    if test "$GCC" != yes; then
10681      with_gnu_ld=no
10682    fi
10683    ;;
10684  interix*)
10685    # we just hope/assume this is gcc and not c89 (= MSVC++)
10686    with_gnu_ld=yes
10687    ;;
10688  openbsd*)
10689    with_gnu_ld=no
10690    ;;
10691  esac
10692
10693  ld_shlibs=yes
10694
10695  # On some targets, GNU ld is compatible enough with the native linker
10696  # that we're better off using the native interface for both.
10697  lt_use_gnu_ld_interface=no
10698  if test "$with_gnu_ld" = yes; then
10699    case $host_os in
10700      aix*)
10701	# The AIX port of GNU ld has always aspired to compatibility
10702	# with the native linker.  However, as the warning in the GNU ld
10703	# block says, versions before 2.19.5* couldn't really create working
10704	# shared libraries, regardless of the interface used.
10705	case `$LD -v 2>&1` in
10706	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10707	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10708	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10709	  *)
10710	    lt_use_gnu_ld_interface=yes
10711	    ;;
10712	esac
10713	;;
10714      *)
10715	lt_use_gnu_ld_interface=yes
10716	;;
10717    esac
10718  fi
10719
10720  if test "$lt_use_gnu_ld_interface" = yes; then
10721    # If archive_cmds runs LD, not CC, wlarc should be empty
10722    wlarc='${wl}'
10723
10724    # Set some defaults for GNU ld with shared library support. These
10725    # are reset later if shared libraries are not supported. Putting them
10726    # here allows them to be overridden if necessary.
10727    runpath_var=LD_RUN_PATH
10728    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729    export_dynamic_flag_spec='${wl}--export-dynamic'
10730    # ancient GNU ld didn't support --whole-archive et. al.
10731    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10732      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10733    else
10734      whole_archive_flag_spec=
10735    fi
10736    supports_anon_versioning=no
10737    case `$LD -v 2>&1` in
10738      *GNU\ gold*) supports_anon_versioning=yes ;;
10739      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10740      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10741      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10742      *\ 2.11.*) ;; # other 2.11 versions
10743      *) supports_anon_versioning=yes ;;
10744    esac
10745
10746    # See if GNU ld supports shared libraries.
10747    case $host_os in
10748    aix[3-9]*)
10749      # On AIX/PPC, the GNU linker is very broken
10750      if test "$host_cpu" != ia64; then
10751	ld_shlibs=no
10752	cat <<_LT_EOF 1>&2
10753
10754*** Warning: the GNU linker, at least up to release 2.19, is reported
10755*** to be unable to reliably create shared libraries on AIX.
10756*** Therefore, libtool is disabling shared libraries support.  If you
10757*** really care for shared libraries, you may want to install binutils
10758*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10759*** You will then need to restart the configuration process.
10760
10761_LT_EOF
10762      fi
10763      ;;
10764
10765    amigaos*)
10766      case $host_cpu in
10767      powerpc)
10768            # see comment about AmigaOS4 .so support
10769            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770            archive_expsym_cmds=''
10771        ;;
10772      m68k)
10773            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)'
10774            hardcode_libdir_flag_spec='-L$libdir'
10775            hardcode_minus_L=yes
10776        ;;
10777      esac
10778      ;;
10779
10780    beos*)
10781      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10782	allow_undefined_flag=unsupported
10783	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10784	# support --undefined.  This deserves some investigation.  FIXME
10785	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786      else
10787	ld_shlibs=no
10788      fi
10789      ;;
10790
10791    cygwin* | mingw* | pw32* | cegcc*)
10792      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10793      # as there is no search path for DLLs.
10794      hardcode_libdir_flag_spec='-L$libdir'
10795      export_dynamic_flag_spec='${wl}--export-all-symbols'
10796      allow_undefined_flag=unsupported
10797      always_export_symbols=no
10798      enable_shared_with_static_runtimes=yes
10799      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'
10800      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10801
10802      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10803        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10804	# If the export-symbols file already is a .def file (1st line
10805	# is EXPORTS), use it as is; otherwise, prepend...
10806	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10807	  cp $export_symbols $output_objdir/$soname.def;
10808	else
10809	  echo EXPORTS > $output_objdir/$soname.def;
10810	  cat $export_symbols >> $output_objdir/$soname.def;
10811	fi~
10812	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10813      else
10814	ld_shlibs=no
10815      fi
10816      ;;
10817
10818    haiku*)
10819      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820      link_all_deplibs=yes
10821      ;;
10822
10823    interix[3-9]*)
10824      hardcode_direct=no
10825      hardcode_shlibpath_var=no
10826      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10827      export_dynamic_flag_spec='${wl}-E'
10828      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10829      # Instead, shared libraries are loaded at an image base (0x10000000 by
10830      # default) and relocated if they conflict, which is a slow very memory
10831      # consuming and fragmenting process.  To avoid this, we pick a random,
10832      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10833      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10834      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10835      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'
10836      ;;
10837
10838    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10839      tmp_diet=no
10840      if test "$host_os" = linux-dietlibc; then
10841	case $cc_basename in
10842	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10843	esac
10844      fi
10845      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10846	 && test "$tmp_diet" = no
10847      then
10848	tmp_addflag=' $pic_flag'
10849	tmp_sharedflag='-shared'
10850	case $cc_basename,$host_cpu in
10851        pgcc*)				# Portland Group C compiler
10852	  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'
10853	  tmp_addflag=' $pic_flag'
10854	  ;;
10855	pgf77* | pgf90* | pgf95* | pgfortran*)
10856					# Portland Group f77 and f90 compilers
10857	  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'
10858	  tmp_addflag=' $pic_flag -Mnomain' ;;
10859	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10860	  tmp_addflag=' -i_dynamic' ;;
10861	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10862	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10863	ifc* | ifort*)			# Intel Fortran compiler
10864	  tmp_addflag=' -nofor_main' ;;
10865	lf95*)				# Lahey Fortran 8.1
10866	  whole_archive_flag_spec=
10867	  tmp_sharedflag='--shared' ;;
10868	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10869	  tmp_sharedflag='-qmkshrobj'
10870	  tmp_addflag= ;;
10871	nvcc*)	# Cuda Compiler Driver 2.2
10872	  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'
10873	  compiler_needs_object=yes
10874	  ;;
10875	esac
10876	case `$CC -V 2>&1 | sed 5q` in
10877	*Sun\ C*)			# Sun C 5.9
10878	  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'
10879	  compiler_needs_object=yes
10880	  tmp_sharedflag='-G' ;;
10881	*Sun\ F*)			# Sun Fortran 8.3
10882	  tmp_sharedflag='-G' ;;
10883	esac
10884	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885
10886        if test "x$supports_anon_versioning" = xyes; then
10887          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889	    echo "local: *; };" >> $output_objdir/$libname.ver~
10890	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10891        fi
10892
10893	case $cc_basename in
10894	xlf* | bgf* | bgxlf* | mpixlf*)
10895	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10896	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10897	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10899	  if test "x$supports_anon_versioning" = xyes; then
10900	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10901	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10902	      echo "local: *; };" >> $output_objdir/$libname.ver~
10903	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10904	  fi
10905	  ;;
10906	esac
10907      else
10908        ld_shlibs=no
10909      fi
10910      ;;
10911
10912    netbsd*)
10913      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10915	wlarc=
10916      else
10917	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10919      fi
10920      ;;
10921
10922    solaris*)
10923      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10924	ld_shlibs=no
10925	cat <<_LT_EOF 1>&2
10926
10927*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10928*** create shared libraries on Solaris systems.  Therefore, libtool
10929*** is disabling shared libraries support.  We urge you to upgrade GNU
10930*** binutils to release 2.9.1 or newer.  Another option is to modify
10931*** your PATH or compiler configuration so that the native linker is
10932*** used, and then restart.
10933
10934_LT_EOF
10935      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10936	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10938      else
10939	ld_shlibs=no
10940      fi
10941      ;;
10942
10943    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10944      case `$LD -v 2>&1` in
10945        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10946	ld_shlibs=no
10947	cat <<_LT_EOF 1>&2
10948
10949*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10950*** reliably create shared libraries on SCO systems.  Therefore, libtool
10951*** is disabling shared libraries support.  We urge you to upgrade GNU
10952*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10953*** your PATH or compiler configuration so that the native linker is
10954*** used, and then restart.
10955
10956_LT_EOF
10957	;;
10958	*)
10959	  # For security reasons, it is highly recommended that you always
10960	  # use absolute paths for naming shared libraries, and exclude the
10961	  # DT_RUNPATH tag from executables and libraries.  But doing so
10962	  # requires that you compile everything twice, which is a pain.
10963	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10967	  else
10968	    ld_shlibs=no
10969	  fi
10970	;;
10971      esac
10972      ;;
10973
10974    sunos4*)
10975      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10976      wlarc=
10977      hardcode_direct=yes
10978      hardcode_shlibpath_var=no
10979      ;;
10980
10981    *)
10982      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10983	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10985      else
10986	ld_shlibs=no
10987      fi
10988      ;;
10989    esac
10990
10991    if test "$ld_shlibs" = no; then
10992      runpath_var=
10993      hardcode_libdir_flag_spec=
10994      export_dynamic_flag_spec=
10995      whole_archive_flag_spec=
10996    fi
10997  else
10998    # PORTME fill in a description of your system's linker (not GNU ld)
10999    case $host_os in
11000    aix3*)
11001      allow_undefined_flag=unsupported
11002      always_export_symbols=yes
11003      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'
11004      # Note: this linker hardcodes the directories in LIBPATH if there
11005      # are no directories specified by -L.
11006      hardcode_minus_L=yes
11007      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11008	# Neither direct hardcoding nor static linking is supported with a
11009	# broken collect2.
11010	hardcode_direct=unsupported
11011      fi
11012      ;;
11013
11014    aix[4-9]*)
11015      if test "$host_cpu" = ia64; then
11016	# On IA64, the linker does run time linking by default, so we don't
11017	# have to do anything special.
11018	aix_use_runtimelinking=no
11019	exp_sym_flag='-Bexport'
11020	no_entry_flag=""
11021      else
11022	# If we're using GNU nm, then we don't want the "-C" option.
11023	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11024	# Also, AIX nm treats weak defined symbols like other global
11025	# defined symbols, whereas GNU nm marks them as "W".
11026	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11027	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11028	else
11029	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11030	fi
11031	aix_use_runtimelinking=no
11032
11033	# Test if we are trying to use run time linking or normal
11034	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11035	# need to do runtime linking.
11036	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11037	  for ld_flag in $LDFLAGS; do
11038	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11039	    aix_use_runtimelinking=yes
11040	    break
11041	  fi
11042	  done
11043	  ;;
11044	esac
11045
11046	exp_sym_flag='-bexport'
11047	no_entry_flag='-bnoentry'
11048      fi
11049
11050      # When large executables or shared objects are built, AIX ld can
11051      # have problems creating the table of contents.  If linking a library
11052      # or program results in "error TOC overflow" add -mminimal-toc to
11053      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11054      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11055
11056      archive_cmds=''
11057      hardcode_direct=yes
11058      hardcode_direct_absolute=yes
11059      hardcode_libdir_separator=':'
11060      link_all_deplibs=yes
11061      file_list_spec='${wl}-f,'
11062
11063      if test "$GCC" = yes; then
11064	case $host_os in aix4.[012]|aix4.[012].*)
11065	# We only want to do this on AIX 4.2 and lower, the check
11066	# below for broken collect2 doesn't work under 4.3+
11067	  collect2name=`${CC} -print-prog-name=collect2`
11068	  if test -f "$collect2name" &&
11069	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11070	  then
11071	  # We have reworked collect2
11072	  :
11073	  else
11074	  # We have old collect2
11075	  hardcode_direct=unsupported
11076	  # It fails to find uninstalled libraries when the uninstalled
11077	  # path is not listed in the libpath.  Setting hardcode_minus_L
11078	  # to unsupported forces relinking
11079	  hardcode_minus_L=yes
11080	  hardcode_libdir_flag_spec='-L$libdir'
11081	  hardcode_libdir_separator=
11082	  fi
11083	  ;;
11084	esac
11085	shared_flag='-shared'
11086	if test "$aix_use_runtimelinking" = yes; then
11087	  shared_flag="$shared_flag "'${wl}-G'
11088	fi
11089      else
11090	# not using gcc
11091	if test "$host_cpu" = ia64; then
11092	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11093	# chokes on -Wl,-G. The following line is correct:
11094	  shared_flag='-G'
11095	else
11096	  if test "$aix_use_runtimelinking" = yes; then
11097	    shared_flag='${wl}-G'
11098	  else
11099	    shared_flag='${wl}-bM:SRE'
11100	  fi
11101	fi
11102      fi
11103
11104      export_dynamic_flag_spec='${wl}-bexpall'
11105      # It seems that -bexpall does not export symbols beginning with
11106      # underscore (_), so it is better to generate a list of symbols to export.
11107      always_export_symbols=yes
11108      if test "$aix_use_runtimelinking" = yes; then
11109	# Warning - without using the other runtime loading flags (-brtl),
11110	# -berok will link without error, but may produce a broken library.
11111	allow_undefined_flag='-berok'
11112        # Determine the default libpath from the value encoded in an
11113        # empty executable.
11114        if test "${lt_cv_aix_libpath+set}" = set; then
11115  aix_libpath=$lt_cv_aix_libpath
11116else
11117  if ${lt_cv_aix_libpath_+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121/* end confdefs.h.  */
11122
11123int
11124main ()
11125{
11126
11127  ;
11128  return 0;
11129}
11130_ACEOF
11131if ac_fn_c_try_link "$LINENO"; then :
11132
11133  lt_aix_libpath_sed='
11134      /Import File Strings/,/^$/ {
11135	  /^0/ {
11136	      s/^0  *\([^ ]*\) *$/\1/
11137	      p
11138	  }
11139      }'
11140  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141  # Check for a 64-bit object if we didn't find anything.
11142  if test -z "$lt_cv_aix_libpath_"; then
11143    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11144  fi
11145fi
11146rm -f core conftest.err conftest.$ac_objext \
11147    conftest$ac_exeext conftest.$ac_ext
11148  if test -z "$lt_cv_aix_libpath_"; then
11149    lt_cv_aix_libpath_="/usr/lib:/lib"
11150  fi
11151
11152fi
11153
11154  aix_libpath=$lt_cv_aix_libpath_
11155fi
11156
11157        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11158        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11159      else
11160	if test "$host_cpu" = ia64; then
11161	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11162	  allow_undefined_flag="-z nodefs"
11163	  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"
11164	else
11165	 # Determine the default libpath from the value encoded in an
11166	 # empty executable.
11167	 if test "${lt_cv_aix_libpath+set}" = set; then
11168  aix_libpath=$lt_cv_aix_libpath
11169else
11170  if ${lt_cv_aix_libpath_+:} false; then :
11171  $as_echo_n "(cached) " >&6
11172else
11173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174/* end confdefs.h.  */
11175
11176int
11177main ()
11178{
11179
11180  ;
11181  return 0;
11182}
11183_ACEOF
11184if ac_fn_c_try_link "$LINENO"; then :
11185
11186  lt_aix_libpath_sed='
11187      /Import File Strings/,/^$/ {
11188	  /^0/ {
11189	      s/^0  *\([^ ]*\) *$/\1/
11190	      p
11191	  }
11192      }'
11193  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194  # Check for a 64-bit object if we didn't find anything.
11195  if test -z "$lt_cv_aix_libpath_"; then
11196    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197  fi
11198fi
11199rm -f core conftest.err conftest.$ac_objext \
11200    conftest$ac_exeext conftest.$ac_ext
11201  if test -z "$lt_cv_aix_libpath_"; then
11202    lt_cv_aix_libpath_="/usr/lib:/lib"
11203  fi
11204
11205fi
11206
11207  aix_libpath=$lt_cv_aix_libpath_
11208fi
11209
11210	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11211	  # Warning - without using the other run time loading flags,
11212	  # -berok will link without error, but may produce a broken library.
11213	  no_undefined_flag=' ${wl}-bernotok'
11214	  allow_undefined_flag=' ${wl}-berok'
11215	  if test "$with_gnu_ld" = yes; then
11216	    # We only use this code for GNU lds that support --whole-archive.
11217	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11218	  else
11219	    # Exported symbols can be pulled into shared objects from archives
11220	    whole_archive_flag_spec='$convenience'
11221	  fi
11222	  archive_cmds_need_lc=yes
11223	  # This is similar to how AIX traditionally builds its shared libraries.
11224	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11225	fi
11226      fi
11227      ;;
11228
11229    amigaos*)
11230      case $host_cpu in
11231      powerpc)
11232            # see comment about AmigaOS4 .so support
11233            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234            archive_expsym_cmds=''
11235        ;;
11236      m68k)
11237            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)'
11238            hardcode_libdir_flag_spec='-L$libdir'
11239            hardcode_minus_L=yes
11240        ;;
11241      esac
11242      ;;
11243
11244    bsdi[45]*)
11245      export_dynamic_flag_spec=-rdynamic
11246      ;;
11247
11248    cygwin* | mingw* | pw32* | cegcc*)
11249      # When not using gcc, we currently assume that we are using
11250      # Microsoft Visual C++.
11251      # hardcode_libdir_flag_spec is actually meaningless, as there is
11252      # no search path for DLLs.
11253      case $cc_basename in
11254      cl*)
11255	# Native MSVC
11256	hardcode_libdir_flag_spec=' '
11257	allow_undefined_flag=unsupported
11258	always_export_symbols=yes
11259	file_list_spec='@'
11260	# Tell ltmain to make .lib files, not .a files.
11261	libext=lib
11262	# Tell ltmain to make .dll files, not .so files.
11263	shrext_cmds=".dll"
11264	# FIXME: Setting linknames here is a bad hack.
11265	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11266	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11268	  else
11269	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11270	  fi~
11271	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11272	  linknames='
11273	# The linker will not automatically build a static lib if we build a DLL.
11274	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11275	enable_shared_with_static_runtimes=yes
11276	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11277	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11278	# Don't use ranlib
11279	old_postinstall_cmds='chmod 644 $oldlib'
11280	postlink_cmds='lt_outputfile="@OUTPUT@"~
11281	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11282	  case $lt_outputfile in
11283	    *.exe|*.EXE) ;;
11284	    *)
11285	      lt_outputfile="$lt_outputfile.exe"
11286	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11287	      ;;
11288	  esac~
11289	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11290	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11291	    $RM "$lt_outputfile.manifest";
11292	  fi'
11293	;;
11294      *)
11295	# Assume MSVC wrapper
11296	hardcode_libdir_flag_spec=' '
11297	allow_undefined_flag=unsupported
11298	# Tell ltmain to make .lib files, not .a files.
11299	libext=lib
11300	# Tell ltmain to make .dll files, not .so files.
11301	shrext_cmds=".dll"
11302	# FIXME: Setting linknames here is a bad hack.
11303	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11304	# The linker will automatically build a .lib file if we build a DLL.
11305	old_archive_from_new_cmds='true'
11306	# FIXME: Should let the user specify the lib program.
11307	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11308	enable_shared_with_static_runtimes=yes
11309	;;
11310      esac
11311      ;;
11312
11313    darwin* | rhapsody*)
11314
11315
11316  archive_cmds_need_lc=no
11317  hardcode_direct=no
11318  hardcode_automatic=yes
11319  hardcode_shlibpath_var=unsupported
11320  if test "$lt_cv_ld_force_load" = "yes"; then
11321    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\"`'
11322
11323  else
11324    whole_archive_flag_spec=''
11325  fi
11326  link_all_deplibs=yes
11327  allow_undefined_flag="$_lt_dar_allow_undefined"
11328  case $cc_basename in
11329     ifort*) _lt_dar_can_shared=yes ;;
11330     *) _lt_dar_can_shared=$GCC ;;
11331  esac
11332  if test "$_lt_dar_can_shared" = "yes"; then
11333    output_verbose_link_cmd=func_echo_all
11334    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11335    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11336    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}"
11337    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}"
11338
11339  else
11340  ld_shlibs=no
11341  fi
11342
11343      ;;
11344
11345    dgux*)
11346      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347      hardcode_libdir_flag_spec='-L$libdir'
11348      hardcode_shlibpath_var=no
11349      ;;
11350
11351    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11352    # support.  Future versions do this automatically, but an explicit c++rt0.o
11353    # does not break anything, and helps significantly (at the cost of a little
11354    # extra space).
11355    freebsd2.2*)
11356      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11357      hardcode_libdir_flag_spec='-R$libdir'
11358      hardcode_direct=yes
11359      hardcode_shlibpath_var=no
11360      ;;
11361
11362    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11363    freebsd2.*)
11364      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365      hardcode_direct=yes
11366      hardcode_minus_L=yes
11367      hardcode_shlibpath_var=no
11368      ;;
11369
11370    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11371    freebsd* | dragonfly*)
11372      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373      hardcode_libdir_flag_spec='-R$libdir'
11374      hardcode_direct=yes
11375      hardcode_shlibpath_var=no
11376      ;;
11377
11378    hpux9*)
11379      if test "$GCC" = yes; then
11380	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11381      else
11382	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11383      fi
11384      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11385      hardcode_libdir_separator=:
11386      hardcode_direct=yes
11387
11388      # hardcode_minus_L: Not really in the search PATH,
11389      # but as the default location of the library.
11390      hardcode_minus_L=yes
11391      export_dynamic_flag_spec='${wl}-E'
11392      ;;
11393
11394    hpux10*)
11395      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11396	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11397      else
11398	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11399      fi
11400      if test "$with_gnu_ld" = no; then
11401	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11402	hardcode_libdir_separator=:
11403	hardcode_direct=yes
11404	hardcode_direct_absolute=yes
11405	export_dynamic_flag_spec='${wl}-E'
11406	# hardcode_minus_L: Not really in the search PATH,
11407	# but as the default location of the library.
11408	hardcode_minus_L=yes
11409      fi
11410      ;;
11411
11412    hpux11*)
11413      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11414	case $host_cpu in
11415	hppa*64*)
11416	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11417	  ;;
11418	ia64*)
11419	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11420	  ;;
11421	*)
11422	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11423	  ;;
11424	esac
11425      else
11426	case $host_cpu in
11427	hppa*64*)
11428	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11429	  ;;
11430	ia64*)
11431	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11432	  ;;
11433	*)
11434
11435	  # Older versions of the 11.00 compiler do not understand -b yet
11436	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11437	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11438$as_echo_n "checking if $CC understands -b... " >&6; }
11439if ${lt_cv_prog_compiler__b+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  lt_cv_prog_compiler__b=no
11443   save_LDFLAGS="$LDFLAGS"
11444   LDFLAGS="$LDFLAGS -b"
11445   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11446   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11447     # The linker can only warn and ignore the option if not recognized
11448     # So say no if there are warnings
11449     if test -s conftest.err; then
11450       # Append any errors to the config.log.
11451       cat conftest.err 1>&5
11452       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11453       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11454       if diff conftest.exp conftest.er2 >/dev/null; then
11455         lt_cv_prog_compiler__b=yes
11456       fi
11457     else
11458       lt_cv_prog_compiler__b=yes
11459     fi
11460   fi
11461   $RM -r conftest*
11462   LDFLAGS="$save_LDFLAGS"
11463
11464fi
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11466$as_echo "$lt_cv_prog_compiler__b" >&6; }
11467
11468if test x"$lt_cv_prog_compiler__b" = xyes; then
11469    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11470else
11471    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11472fi
11473
11474	  ;;
11475	esac
11476      fi
11477      if test "$with_gnu_ld" = no; then
11478	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11479	hardcode_libdir_separator=:
11480
11481	case $host_cpu in
11482	hppa*64*|ia64*)
11483	  hardcode_direct=no
11484	  hardcode_shlibpath_var=no
11485	  ;;
11486	*)
11487	  hardcode_direct=yes
11488	  hardcode_direct_absolute=yes
11489	  export_dynamic_flag_spec='${wl}-E'
11490
11491	  # hardcode_minus_L: Not really in the search PATH,
11492	  # but as the default location of the library.
11493	  hardcode_minus_L=yes
11494	  ;;
11495	esac
11496      fi
11497      ;;
11498
11499    irix5* | irix6* | nonstopux*)
11500      if test "$GCC" = yes; then
11501	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'
11502	# Try to use the -exported_symbol ld option, if it does not
11503	# work, assume that -exports_file does not work either and
11504	# implicitly export all symbols.
11505	# This should be the same for all languages, so no per-tag cache variable.
11506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11507$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11508if ${lt_cv_irix_exported_symbol+:} false; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  save_LDFLAGS="$LDFLAGS"
11512	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11513	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h.  */
11515int foo (void) { return 0; }
11516_ACEOF
11517if ac_fn_c_try_link "$LINENO"; then :
11518  lt_cv_irix_exported_symbol=yes
11519else
11520  lt_cv_irix_exported_symbol=no
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523    conftest$ac_exeext conftest.$ac_ext
11524           LDFLAGS="$save_LDFLAGS"
11525fi
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11527$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11528	if test "$lt_cv_irix_exported_symbol" = yes; then
11529          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'
11530	fi
11531      else
11532	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'
11533	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'
11534      fi
11535      archive_cmds_need_lc='no'
11536      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11537      hardcode_libdir_separator=:
11538      inherit_rpath=yes
11539      link_all_deplibs=yes
11540      ;;
11541
11542    netbsd*)
11543      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11544	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11545      else
11546	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11547      fi
11548      hardcode_libdir_flag_spec='-R$libdir'
11549      hardcode_direct=yes
11550      hardcode_shlibpath_var=no
11551      ;;
11552
11553    newsos6)
11554      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555      hardcode_direct=yes
11556      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11557      hardcode_libdir_separator=:
11558      hardcode_shlibpath_var=no
11559      ;;
11560
11561    *nto* | *qnx*)
11562      ;;
11563
11564    openbsd*)
11565      if test -f /usr/libexec/ld.so; then
11566	hardcode_direct=yes
11567	hardcode_shlibpath_var=no
11568	hardcode_direct_absolute=yes
11569	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11572	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11573	  export_dynamic_flag_spec='${wl}-E'
11574	else
11575	  case $host_os in
11576	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11577	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578	     hardcode_libdir_flag_spec='-R$libdir'
11579	     ;;
11580	   *)
11581	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11582	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11583	     ;;
11584	  esac
11585	fi
11586      else
11587	ld_shlibs=no
11588      fi
11589      ;;
11590
11591    os2*)
11592      hardcode_libdir_flag_spec='-L$libdir'
11593      hardcode_minus_L=yes
11594      allow_undefined_flag=unsupported
11595      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11596      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11597      ;;
11598
11599    osf3*)
11600      if test "$GCC" = yes; then
11601	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11602	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'
11603      else
11604	allow_undefined_flag=' -expect_unresolved \*'
11605	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'
11606      fi
11607      archive_cmds_need_lc='no'
11608      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11609      hardcode_libdir_separator=:
11610      ;;
11611
11612    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11613      if test "$GCC" = yes; then
11614	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11615	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'
11616	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11617      else
11618	allow_undefined_flag=' -expect_unresolved \*'
11619	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'
11620	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~
11621	$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'
11622
11623	# Both c and cxx compiler support -rpath directly
11624	hardcode_libdir_flag_spec='-rpath $libdir'
11625      fi
11626      archive_cmds_need_lc='no'
11627      hardcode_libdir_separator=:
11628      ;;
11629
11630    solaris*)
11631      no_undefined_flag=' -z defs'
11632      if test "$GCC" = yes; then
11633	wlarc='${wl}'
11634	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11636	  $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'
11637      else
11638	case `$CC -V 2>&1` in
11639	*"Compilers 5.0"*)
11640	  wlarc=''
11641	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11644	  ;;
11645	*)
11646	  wlarc='${wl}'
11647	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11648	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11649	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11650	  ;;
11651	esac
11652      fi
11653      hardcode_libdir_flag_spec='-R$libdir'
11654      hardcode_shlibpath_var=no
11655      case $host_os in
11656      solaris2.[0-5] | solaris2.[0-5].*) ;;
11657      *)
11658	# The compiler driver will combine and reorder linker options,
11659	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11660	# but is careful enough not to reorder.
11661	# Supported since Solaris 2.6 (maybe 2.5.1?)
11662	if test "$GCC" = yes; then
11663	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11664	else
11665	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11666	fi
11667	;;
11668      esac
11669      link_all_deplibs=yes
11670      ;;
11671
11672    sunos4*)
11673      if test "x$host_vendor" = xsequent; then
11674	# Use $CC to link under sequent, because it throws in some extra .o
11675	# files that make .init and .fini sections work.
11676	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11677      else
11678	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11679      fi
11680      hardcode_libdir_flag_spec='-L$libdir'
11681      hardcode_direct=yes
11682      hardcode_minus_L=yes
11683      hardcode_shlibpath_var=no
11684      ;;
11685
11686    sysv4)
11687      case $host_vendor in
11688	sni)
11689	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690	  hardcode_direct=yes # is this really true???
11691	;;
11692	siemens)
11693	  ## LD is ld it makes a PLAMLIB
11694	  ## CC just makes a GrossModule.
11695	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11696	  reload_cmds='$CC -r -o $output$reload_objs'
11697	  hardcode_direct=no
11698        ;;
11699	motorola)
11700	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11701	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11702	;;
11703      esac
11704      runpath_var='LD_RUN_PATH'
11705      hardcode_shlibpath_var=no
11706      ;;
11707
11708    sysv4.3*)
11709      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710      hardcode_shlibpath_var=no
11711      export_dynamic_flag_spec='-Bexport'
11712      ;;
11713
11714    sysv4*MP*)
11715      if test -d /usr/nec; then
11716	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717	hardcode_shlibpath_var=no
11718	runpath_var=LD_RUN_PATH
11719	hardcode_runpath_var=yes
11720	ld_shlibs=yes
11721      fi
11722      ;;
11723
11724    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11725      no_undefined_flag='${wl}-z,text'
11726      archive_cmds_need_lc=no
11727      hardcode_shlibpath_var=no
11728      runpath_var='LD_RUN_PATH'
11729
11730      if test "$GCC" = yes; then
11731	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733      else
11734	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11736      fi
11737      ;;
11738
11739    sysv5* | sco3.2v5* | sco5v6*)
11740      # Note: We can NOT use -z defs as we might desire, because we do not
11741      # link with -lc, and that would cause any symbols used from libc to
11742      # always be unresolved, which means just about no library would
11743      # ever link correctly.  If we're not using GNU ld we use -z text
11744      # though, which does catch some bad symbols but isn't as heavy-handed
11745      # as -z defs.
11746      no_undefined_flag='${wl}-z,text'
11747      allow_undefined_flag='${wl}-z,nodefs'
11748      archive_cmds_need_lc=no
11749      hardcode_shlibpath_var=no
11750      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11751      hardcode_libdir_separator=':'
11752      link_all_deplibs=yes
11753      export_dynamic_flag_spec='${wl}-Bexport'
11754      runpath_var='LD_RUN_PATH'
11755
11756      if test "$GCC" = yes; then
11757	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759      else
11760	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762      fi
11763      ;;
11764
11765    uts4*)
11766      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11767      hardcode_libdir_flag_spec='-L$libdir'
11768      hardcode_shlibpath_var=no
11769      ;;
11770
11771    *)
11772      ld_shlibs=no
11773      ;;
11774    esac
11775
11776    if test x$host_vendor = xsni; then
11777      case $host in
11778      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11779	export_dynamic_flag_spec='${wl}-Blargedynsym'
11780	;;
11781      esac
11782    fi
11783  fi
11784
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11786$as_echo "$ld_shlibs" >&6; }
11787test "$ld_shlibs" = no && can_build_shared=no
11788
11789with_gnu_ld=$with_gnu_ld
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805#
11806# Do we need to explicitly link libc?
11807#
11808case "x$archive_cmds_need_lc" in
11809x|xyes)
11810  # Assume -lc should be added
11811  archive_cmds_need_lc=yes
11812
11813  if test "$enable_shared" = yes && test "$GCC" = yes; then
11814    case $archive_cmds in
11815    *'~'*)
11816      # FIXME: we may have to deal with multi-command sequences.
11817      ;;
11818    '$CC '*)
11819      # Test whether the compiler implicitly links with -lc since on some
11820      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11821      # to ld, don't add -lc before -lgcc.
11822      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11823$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11824if ${lt_cv_archive_cmds_need_lc+:} false; then :
11825  $as_echo_n "(cached) " >&6
11826else
11827  $RM conftest*
11828	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829
11830	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11831  (eval $ac_compile) 2>&5
11832  ac_status=$?
11833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834  test $ac_status = 0; } 2>conftest.err; then
11835	  soname=conftest
11836	  lib=conftest
11837	  libobjs=conftest.$ac_objext
11838	  deplibs=
11839	  wl=$lt_prog_compiler_wl
11840	  pic_flag=$lt_prog_compiler_pic
11841	  compiler_flags=-v
11842	  linker_flags=-v
11843	  verstring=
11844	  output_objdir=.
11845	  libname=conftest
11846	  lt_save_allow_undefined_flag=$allow_undefined_flag
11847	  allow_undefined_flag=
11848	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11849  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11850  ac_status=$?
11851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852  test $ac_status = 0; }
11853	  then
11854	    lt_cv_archive_cmds_need_lc=no
11855	  else
11856	    lt_cv_archive_cmds_need_lc=yes
11857	  fi
11858	  allow_undefined_flag=$lt_save_allow_undefined_flag
11859	else
11860	  cat conftest.err 1>&5
11861	fi
11862	$RM conftest*
11863
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11866$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11867      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11868      ;;
11869    esac
11870  fi
11871  ;;
11872esac
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12026$as_echo_n "checking dynamic linker characteristics... " >&6; }
12027
12028if test "$GCC" = yes; then
12029  case $host_os in
12030    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12031    *) lt_awk_arg="/^libraries:/" ;;
12032  esac
12033  case $host_os in
12034    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12035    *) lt_sed_strip_eq="s,=/,/,g" ;;
12036  esac
12037  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12038  case $lt_search_path_spec in
12039  *\;*)
12040    # if the path contains ";" then we assume it to be the separator
12041    # otherwise default to the standard path separator (i.e. ":") - it is
12042    # assumed that no part of a normal pathname contains ";" but that should
12043    # okay in the real world where ";" in dirpaths is itself problematic.
12044    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12045    ;;
12046  *)
12047    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12048    ;;
12049  esac
12050  # Ok, now we have the path, separated by spaces, we can step through it
12051  # and add multilib dir if necessary.
12052  lt_tmp_lt_search_path_spec=
12053  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12054  for lt_sys_path in $lt_search_path_spec; do
12055    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12056      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12057    else
12058      test -d "$lt_sys_path" && \
12059	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12060    fi
12061  done
12062  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12063BEGIN {RS=" "; FS="/|\n";} {
12064  lt_foo="";
12065  lt_count=0;
12066  for (lt_i = NF; lt_i > 0; lt_i--) {
12067    if ($lt_i != "" && $lt_i != ".") {
12068      if ($lt_i == "..") {
12069        lt_count++;
12070      } else {
12071        if (lt_count == 0) {
12072          lt_foo="/" $lt_i lt_foo;
12073        } else {
12074          lt_count--;
12075        }
12076      }
12077    }
12078  }
12079  if (lt_foo != "") { lt_freq[lt_foo]++; }
12080  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12081}'`
12082  # AWK program above erroneously prepends '/' to C:/dos/paths
12083  # for these hosts.
12084  case $host_os in
12085    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12086      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12087  esac
12088  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12089else
12090  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12091fi
12092library_names_spec=
12093libname_spec='lib$name'
12094soname_spec=
12095shrext_cmds=".so"
12096postinstall_cmds=
12097postuninstall_cmds=
12098finish_cmds=
12099finish_eval=
12100shlibpath_var=
12101shlibpath_overrides_runpath=unknown
12102version_type=none
12103dynamic_linker="$host_os ld.so"
12104sys_lib_dlsearch_path_spec="/lib /usr/lib"
12105need_lib_prefix=unknown
12106hardcode_into_libs=no
12107
12108# when you set need_version to no, make sure it does not cause -set_version
12109# flags to be left without arguments
12110need_version=unknown
12111
12112case $host_os in
12113aix3*)
12114  version_type=linux # correct to gnu/linux during the next big refactor
12115  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116  shlibpath_var=LIBPATH
12117
12118  # AIX 3 has no versioning support, so we append a major version to the name.
12119  soname_spec='${libname}${release}${shared_ext}$major'
12120  ;;
12121
12122aix[4-9]*)
12123  version_type=linux # correct to gnu/linux during the next big refactor
12124  need_lib_prefix=no
12125  need_version=no
12126  hardcode_into_libs=yes
12127  if test "$host_cpu" = ia64; then
12128    # AIX 5 supports IA64
12129    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130    shlibpath_var=LD_LIBRARY_PATH
12131  else
12132    # With GCC up to 2.95.x, collect2 would create an import file
12133    # for dependence libraries.  The import file would start with
12134    # the line `#! .'.  This would cause the generated library to
12135    # depend on `.', always an invalid library.  This was fixed in
12136    # development snapshots of GCC prior to 3.0.
12137    case $host_os in
12138      aix4 | aix4.[01] | aix4.[01].*)
12139      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12140	   echo ' yes '
12141	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12142	:
12143      else
12144	can_build_shared=no
12145      fi
12146      ;;
12147    esac
12148    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149    # soname into executable. Probably we can add versioning support to
12150    # collect2, so additional links can be useful in future.
12151    if test "$aix_use_runtimelinking" = yes; then
12152      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153      # instead of lib<name>.a to let people know that these are not
12154      # typical AIX shared libraries.
12155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156    else
12157      # We preserve .a as extension for shared libraries through AIX4.2
12158      # and later when we are not doing run time linking.
12159      library_names_spec='${libname}${release}.a $libname.a'
12160      soname_spec='${libname}${release}${shared_ext}$major'
12161    fi
12162    shlibpath_var=LIBPATH
12163  fi
12164  ;;
12165
12166amigaos*)
12167  case $host_cpu in
12168  powerpc)
12169    # Since July 2007 AmigaOS4 officially supports .so libraries.
12170    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172    ;;
12173  m68k)
12174    library_names_spec='$libname.ixlibrary $libname.a'
12175    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12176    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12177    ;;
12178  esac
12179  ;;
12180
12181beos*)
12182  library_names_spec='${libname}${shared_ext}'
12183  dynamic_linker="$host_os ld.so"
12184  shlibpath_var=LIBRARY_PATH
12185  ;;
12186
12187bsdi[45]*)
12188  version_type=linux # correct to gnu/linux during the next big refactor
12189  need_version=no
12190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191  soname_spec='${libname}${release}${shared_ext}$major'
12192  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12193  shlibpath_var=LD_LIBRARY_PATH
12194  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12195  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12196  # the default ld.so.conf also contains /usr/contrib/lib and
12197  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12198  # libtool to hard-code these into programs
12199  ;;
12200
12201cygwin* | mingw* | pw32* | cegcc*)
12202  version_type=windows
12203  shrext_cmds=".dll"
12204  need_version=no
12205  need_lib_prefix=no
12206
12207  case $GCC,$cc_basename in
12208  yes,*)
12209    # gcc
12210    library_names_spec='$libname.dll.a'
12211    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12212    postinstall_cmds='base_file=`basename \${file}`~
12213      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12214      dldir=$destdir/`dirname \$dlpath`~
12215      test -d \$dldir || mkdir -p \$dldir~
12216      $install_prog $dir/$dlname \$dldir/$dlname~
12217      chmod a+x \$dldir/$dlname~
12218      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12220      fi'
12221    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12222      dlpath=$dir/\$dldll~
12223       $RM \$dlpath'
12224    shlibpath_overrides_runpath=yes
12225
12226    case $host_os in
12227    cygwin*)
12228      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12229      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12230
12231      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12232      ;;
12233    mingw* | cegcc*)
12234      # MinGW DLLs use traditional 'lib' prefix
12235      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12236      ;;
12237    pw32*)
12238      # pw32 DLLs use 'pw' prefix rather than 'lib'
12239      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12240      ;;
12241    esac
12242    dynamic_linker='Win32 ld.exe'
12243    ;;
12244
12245  *,cl*)
12246    # Native MSVC
12247    libname_spec='$name'
12248    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12249    library_names_spec='${libname}.dll.lib'
12250
12251    case $build_os in
12252    mingw*)
12253      sys_lib_search_path_spec=
12254      lt_save_ifs=$IFS
12255      IFS=';'
12256      for lt_path in $LIB
12257      do
12258        IFS=$lt_save_ifs
12259        # Let DOS variable expansion print the short 8.3 style file name.
12260        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12261        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12262      done
12263      IFS=$lt_save_ifs
12264      # Convert to MSYS style.
12265      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12266      ;;
12267    cygwin*)
12268      # Convert to unix form, then to dos form, then back to unix form
12269      # but this time dos style (no spaces!) so that the unix form looks
12270      # like /cygdrive/c/PROGRA~1:/cygdr...
12271      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12272      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12273      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12274      ;;
12275    *)
12276      sys_lib_search_path_spec="$LIB"
12277      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12278        # It is most probably a Windows format PATH.
12279        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12280      else
12281        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12282      fi
12283      # FIXME: find the short name or the path components, as spaces are
12284      # common. (e.g. "Program Files" -> "PROGRA~1")
12285      ;;
12286    esac
12287
12288    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12289    postinstall_cmds='base_file=`basename \${file}`~
12290      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12291      dldir=$destdir/`dirname \$dlpath`~
12292      test -d \$dldir || mkdir -p \$dldir~
12293      $install_prog $dir/$dlname \$dldir/$dlname'
12294    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12295      dlpath=$dir/\$dldll~
12296       $RM \$dlpath'
12297    shlibpath_overrides_runpath=yes
12298    dynamic_linker='Win32 link.exe'
12299    ;;
12300
12301  *)
12302    # Assume MSVC wrapper
12303    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12304    dynamic_linker='Win32 ld.exe'
12305    ;;
12306  esac
12307  # FIXME: first we should search . and the directory the executable is in
12308  shlibpath_var=PATH
12309  ;;
12310
12311darwin* | rhapsody*)
12312  dynamic_linker="$host_os dyld"
12313  version_type=darwin
12314  need_lib_prefix=no
12315  need_version=no
12316  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12317  soname_spec='${libname}${release}${major}$shared_ext'
12318  shlibpath_overrides_runpath=yes
12319  shlibpath_var=DYLD_LIBRARY_PATH
12320  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12321
12322  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12323  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12324  ;;
12325
12326dgux*)
12327  version_type=linux # correct to gnu/linux during the next big refactor
12328  need_lib_prefix=no
12329  need_version=no
12330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12331  soname_spec='${libname}${release}${shared_ext}$major'
12332  shlibpath_var=LD_LIBRARY_PATH
12333  ;;
12334
12335freebsd* | dragonfly*)
12336  # DragonFly does not have aout.  When/if they implement a new
12337  # versioning mechanism, adjust this.
12338  if test -x /usr/bin/objformat; then
12339    objformat=`/usr/bin/objformat`
12340  else
12341    case $host_os in
12342    freebsd[23].*) objformat=aout ;;
12343    *) objformat=elf ;;
12344    esac
12345  fi
12346  version_type=freebsd-$objformat
12347  case $version_type in
12348    freebsd-elf*)
12349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12350      need_version=no
12351      need_lib_prefix=no
12352      ;;
12353    freebsd-*)
12354      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12355      need_version=yes
12356      ;;
12357  esac
12358  shlibpath_var=LD_LIBRARY_PATH
12359  case $host_os in
12360  freebsd2.*)
12361    shlibpath_overrides_runpath=yes
12362    ;;
12363  freebsd3.[01]* | freebsdelf3.[01]*)
12364    shlibpath_overrides_runpath=yes
12365    hardcode_into_libs=yes
12366    ;;
12367  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369    shlibpath_overrides_runpath=no
12370    hardcode_into_libs=yes
12371    ;;
12372  *) # from 4.6 on, and DragonFly
12373    shlibpath_overrides_runpath=yes
12374    hardcode_into_libs=yes
12375    ;;
12376  esac
12377  ;;
12378
12379gnu*)
12380  version_type=linux # correct to gnu/linux during the next big refactor
12381  need_lib_prefix=no
12382  need_version=no
12383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  shlibpath_var=LD_LIBRARY_PATH
12386  shlibpath_overrides_runpath=no
12387  hardcode_into_libs=yes
12388  ;;
12389
12390haiku*)
12391  version_type=linux # correct to gnu/linux during the next big refactor
12392  need_lib_prefix=no
12393  need_version=no
12394  dynamic_linker="$host_os runtime_loader"
12395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12396  soname_spec='${libname}${release}${shared_ext}$major'
12397  shlibpath_var=LIBRARY_PATH
12398  shlibpath_overrides_runpath=yes
12399  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12400  hardcode_into_libs=yes
12401  ;;
12402
12403hpux9* | hpux10* | hpux11*)
12404  # Give a soname corresponding to the major version so that dld.sl refuses to
12405  # link against other versions.
12406  version_type=sunos
12407  need_lib_prefix=no
12408  need_version=no
12409  case $host_cpu in
12410  ia64*)
12411    shrext_cmds='.so'
12412    hardcode_into_libs=yes
12413    dynamic_linker="$host_os dld.so"
12414    shlibpath_var=LD_LIBRARY_PATH
12415    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417    soname_spec='${libname}${release}${shared_ext}$major'
12418    if test "X$HPUX_IA64_MODE" = X32; then
12419      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12420    else
12421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12422    fi
12423    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424    ;;
12425  hppa*64*)
12426    shrext_cmds='.sl'
12427    hardcode_into_libs=yes
12428    dynamic_linker="$host_os dld.sl"
12429    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12430    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12431    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432    soname_spec='${libname}${release}${shared_ext}$major'
12433    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12435    ;;
12436  *)
12437    shrext_cmds='.sl'
12438    dynamic_linker="$host_os dld.sl"
12439    shlibpath_var=SHLIB_PATH
12440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442    soname_spec='${libname}${release}${shared_ext}$major'
12443    ;;
12444  esac
12445  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12446  postinstall_cmds='chmod 555 $lib'
12447  # or fails outright, so override atomically:
12448  install_override_mode=555
12449  ;;
12450
12451interix[3-9]*)
12452  version_type=linux # correct to gnu/linux during the next big refactor
12453  need_lib_prefix=no
12454  need_version=no
12455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12456  soname_spec='${libname}${release}${shared_ext}$major'
12457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12458  shlibpath_var=LD_LIBRARY_PATH
12459  shlibpath_overrides_runpath=no
12460  hardcode_into_libs=yes
12461  ;;
12462
12463irix5* | irix6* | nonstopux*)
12464  case $host_os in
12465    nonstopux*) version_type=nonstopux ;;
12466    *)
12467	if test "$lt_cv_prog_gnu_ld" = yes; then
12468		version_type=linux # correct to gnu/linux during the next big refactor
12469	else
12470		version_type=irix
12471	fi ;;
12472  esac
12473  need_lib_prefix=no
12474  need_version=no
12475  soname_spec='${libname}${release}${shared_ext}$major'
12476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12477  case $host_os in
12478  irix5* | nonstopux*)
12479    libsuff= shlibsuff=
12480    ;;
12481  *)
12482    case $LD in # libtool.m4 will add one of these switches to LD
12483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12484      libsuff= shlibsuff= libmagic=32-bit;;
12485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12486      libsuff=32 shlibsuff=N32 libmagic=N32;;
12487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12489    *) libsuff= shlibsuff= libmagic=never-match;;
12490    esac
12491    ;;
12492  esac
12493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12494  shlibpath_overrides_runpath=no
12495  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12496  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12497  hardcode_into_libs=yes
12498  ;;
12499
12500# No shared lib support for Linux oldld, aout, or coff.
12501linux*oldld* | linux*aout* | linux*coff*)
12502  dynamic_linker=no
12503  ;;
12504
12505# This must be glibc/ELF.
12506linux* | k*bsd*-gnu | kopensolaris*-gnu)
12507  version_type=linux # correct to gnu/linux during the next big refactor
12508  need_lib_prefix=no
12509  need_version=no
12510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511  soname_spec='${libname}${release}${shared_ext}$major'
12512  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  shlibpath_overrides_runpath=no
12515
12516  # Some binutils ld are patched to set DT_RUNPATH
12517  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  lt_cv_shlibpath_overrides_runpath=no
12521    save_LDFLAGS=$LDFLAGS
12522    save_libdir=$libdir
12523    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12524	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h.  */
12527
12528int
12529main ()
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"; then :
12537  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12538  lt_cv_shlibpath_overrides_runpath=yes
12539fi
12540fi
12541rm -f core conftest.err conftest.$ac_objext \
12542    conftest$ac_exeext conftest.$ac_ext
12543    LDFLAGS=$save_LDFLAGS
12544    libdir=$save_libdir
12545
12546fi
12547
12548  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12549
12550  # This implies no fast_install, which is unacceptable.
12551  # Some rework will be needed to allow for fast_install
12552  # before this can be enabled.
12553  hardcode_into_libs=yes
12554
12555  # Add ABI-specific directories to the system library path.
12556  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12557
12558  # Append ld.so.conf contents to the search path
12559  if test -f /etc/ld.so.conf; then
12560    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' ' '`
12561    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12562
12563  fi
12564
12565  # We used to test for /lib/ld.so.1 and disable shared libraries on
12566  # powerpc, because MkLinux only supported shared libraries with the
12567  # GNU dynamic linker.  Since this was broken with cross compilers,
12568  # most powerpc-linux boxes support dynamic linking these days and
12569  # people can always --disable-shared, the test was removed, and we
12570  # assume the GNU/Linux dynamic linker is in use.
12571  dynamic_linker='GNU/Linux ld.so'
12572  ;;
12573
12574netbsd*)
12575  version_type=sunos
12576  need_lib_prefix=no
12577  need_version=no
12578  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12580    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581    dynamic_linker='NetBSD (a.out) ld.so'
12582  else
12583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584    soname_spec='${libname}${release}${shared_ext}$major'
12585    dynamic_linker='NetBSD ld.elf_so'
12586  fi
12587  shlibpath_var=LD_LIBRARY_PATH
12588  shlibpath_overrides_runpath=yes
12589  hardcode_into_libs=yes
12590  ;;
12591
12592newsos6)
12593  version_type=linux # correct to gnu/linux during the next big refactor
12594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595  shlibpath_var=LD_LIBRARY_PATH
12596  shlibpath_overrides_runpath=yes
12597  ;;
12598
12599*nto* | *qnx*)
12600  version_type=qnx
12601  need_lib_prefix=no
12602  need_version=no
12603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604  soname_spec='${libname}${release}${shared_ext}$major'
12605  shlibpath_var=LD_LIBRARY_PATH
12606  shlibpath_overrides_runpath=no
12607  hardcode_into_libs=yes
12608  dynamic_linker='ldqnx.so'
12609  ;;
12610
12611openbsd*)
12612  version_type=sunos
12613  sys_lib_dlsearch_path_spec="/usr/lib"
12614  need_lib_prefix=no
12615  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12616  case $host_os in
12617    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12618    *)				need_version=no  ;;
12619  esac
12620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622  shlibpath_var=LD_LIBRARY_PATH
12623  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12624    case $host_os in
12625      openbsd2.[89] | openbsd2.[89].*)
12626	shlibpath_overrides_runpath=no
12627	;;
12628      *)
12629	shlibpath_overrides_runpath=yes
12630	;;
12631      esac
12632  else
12633    shlibpath_overrides_runpath=yes
12634  fi
12635  ;;
12636
12637os2*)
12638  libname_spec='$name'
12639  shrext_cmds=".dll"
12640  need_lib_prefix=no
12641  library_names_spec='$libname${shared_ext} $libname.a'
12642  dynamic_linker='OS/2 ld.exe'
12643  shlibpath_var=LIBPATH
12644  ;;
12645
12646osf3* | osf4* | osf5*)
12647  version_type=osf
12648  need_lib_prefix=no
12649  need_version=no
12650  soname_spec='${libname}${release}${shared_ext}$major'
12651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652  shlibpath_var=LD_LIBRARY_PATH
12653  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12654  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12655  ;;
12656
12657rdos*)
12658  dynamic_linker=no
12659  ;;
12660
12661solaris*)
12662  version_type=linux # correct to gnu/linux during the next big refactor
12663  need_lib_prefix=no
12664  need_version=no
12665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666  soname_spec='${libname}${release}${shared_ext}$major'
12667  shlibpath_var=LD_LIBRARY_PATH
12668  shlibpath_overrides_runpath=yes
12669  hardcode_into_libs=yes
12670  # ldd complains unless libraries are executable
12671  postinstall_cmds='chmod +x $lib'
12672  ;;
12673
12674sunos4*)
12675  version_type=sunos
12676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12677  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12678  shlibpath_var=LD_LIBRARY_PATH
12679  shlibpath_overrides_runpath=yes
12680  if test "$with_gnu_ld" = yes; then
12681    need_lib_prefix=no
12682  fi
12683  need_version=yes
12684  ;;
12685
12686sysv4 | sysv4.3*)
12687  version_type=linux # correct to gnu/linux during the next big refactor
12688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689  soname_spec='${libname}${release}${shared_ext}$major'
12690  shlibpath_var=LD_LIBRARY_PATH
12691  case $host_vendor in
12692    sni)
12693      shlibpath_overrides_runpath=no
12694      need_lib_prefix=no
12695      runpath_var=LD_RUN_PATH
12696      ;;
12697    siemens)
12698      need_lib_prefix=no
12699      ;;
12700    motorola)
12701      need_lib_prefix=no
12702      need_version=no
12703      shlibpath_overrides_runpath=no
12704      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12705      ;;
12706  esac
12707  ;;
12708
12709sysv4*MP*)
12710  if test -d /usr/nec ;then
12711    version_type=linux # correct to gnu/linux during the next big refactor
12712    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12713    soname_spec='$libname${shared_ext}.$major'
12714    shlibpath_var=LD_LIBRARY_PATH
12715  fi
12716  ;;
12717
12718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12719  version_type=freebsd-elf
12720  need_lib_prefix=no
12721  need_version=no
12722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12723  soname_spec='${libname}${release}${shared_ext}$major'
12724  shlibpath_var=LD_LIBRARY_PATH
12725  shlibpath_overrides_runpath=yes
12726  hardcode_into_libs=yes
12727  if test "$with_gnu_ld" = yes; then
12728    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12729  else
12730    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12731    case $host_os in
12732      sco3.2v5*)
12733        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12734	;;
12735    esac
12736  fi
12737  sys_lib_dlsearch_path_spec='/usr/lib'
12738  ;;
12739
12740tpf*)
12741  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12742  version_type=linux # correct to gnu/linux during the next big refactor
12743  need_lib_prefix=no
12744  need_version=no
12745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746  shlibpath_var=LD_LIBRARY_PATH
12747  shlibpath_overrides_runpath=no
12748  hardcode_into_libs=yes
12749  ;;
12750
12751uts4*)
12752  version_type=linux # correct to gnu/linux during the next big refactor
12753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754  soname_spec='${libname}${release}${shared_ext}$major'
12755  shlibpath_var=LD_LIBRARY_PATH
12756  ;;
12757
12758*)
12759  dynamic_linker=no
12760  ;;
12761esac
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12763$as_echo "$dynamic_linker" >&6; }
12764test "$dynamic_linker" = no && can_build_shared=no
12765
12766variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12767if test "$GCC" = yes; then
12768  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12769fi
12770
12771if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12772  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12773fi
12774if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12775  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12776fi
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12870$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12871hardcode_action=
12872if test -n "$hardcode_libdir_flag_spec" ||
12873   test -n "$runpath_var" ||
12874   test "X$hardcode_automatic" = "Xyes" ; then
12875
12876  # We can hardcode non-existent directories.
12877  if test "$hardcode_direct" != no &&
12878     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12879     # have to relink, otherwise we might link with an installed library
12880     # when we should be linking with a yet-to-be-installed one
12881     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12882     test "$hardcode_minus_L" != no; then
12883    # Linking always hardcodes the temporary library directory.
12884    hardcode_action=relink
12885  else
12886    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12887    hardcode_action=immediate
12888  fi
12889else
12890  # We cannot hardcode anything, or else we can only hardcode existing
12891  # directories.
12892  hardcode_action=unsupported
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12895$as_echo "$hardcode_action" >&6; }
12896
12897if test "$hardcode_action" = relink ||
12898   test "$inherit_rpath" = yes; then
12899  # Fast installation is not supported
12900  enable_fast_install=no
12901elif test "$shlibpath_overrides_runpath" = yes ||
12902     test "$enable_shared" = no; then
12903  # Fast installation is not necessary
12904  enable_fast_install=needless
12905fi
12906
12907
12908
12909
12910
12911
12912  if test "x$enable_dlopen" != xyes; then
12913  enable_dlopen=unknown
12914  enable_dlopen_self=unknown
12915  enable_dlopen_self_static=unknown
12916else
12917  lt_cv_dlopen=no
12918  lt_cv_dlopen_libs=
12919
12920  case $host_os in
12921  beos*)
12922    lt_cv_dlopen="load_add_on"
12923    lt_cv_dlopen_libs=
12924    lt_cv_dlopen_self=yes
12925    ;;
12926
12927  mingw* | pw32* | cegcc*)
12928    lt_cv_dlopen="LoadLibrary"
12929    lt_cv_dlopen_libs=
12930    ;;
12931
12932  cygwin*)
12933    lt_cv_dlopen="dlopen"
12934    lt_cv_dlopen_libs=
12935    ;;
12936
12937  darwin*)
12938  # if libdl is installed we need to link against it
12939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12940$as_echo_n "checking for dlopen in -ldl... " >&6; }
12941if ${ac_cv_lib_dl_dlopen+:} false; then :
12942  $as_echo_n "(cached) " >&6
12943else
12944  ac_check_lib_save_LIBS=$LIBS
12945LIBS="-ldl  $LIBS"
12946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948
12949/* Override any GCC internal prototype to avoid an error.
12950   Use char because int might match the return type of a GCC
12951   builtin and then its argument prototype would still apply.  */
12952#ifdef __cplusplus
12953extern "C"
12954#endif
12955char dlopen ();
12956int
12957main ()
12958{
12959return dlopen ();
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964if ac_fn_c_try_link "$LINENO"; then :
12965  ac_cv_lib_dl_dlopen=yes
12966else
12967  ac_cv_lib_dl_dlopen=no
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext conftest.$ac_ext
12971LIBS=$ac_check_lib_save_LIBS
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12974$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12975if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12976  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12977else
12978
12979    lt_cv_dlopen="dyld"
12980    lt_cv_dlopen_libs=
12981    lt_cv_dlopen_self=yes
12982
12983fi
12984
12985    ;;
12986
12987  *)
12988    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12989if test "x$ac_cv_func_shl_load" = xyes; then :
12990  lt_cv_dlopen="shl_load"
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12993$as_echo_n "checking for shl_load in -ldld... " >&6; }
12994if ${ac_cv_lib_dld_shl_load+:} false; then :
12995  $as_echo_n "(cached) " >&6
12996else
12997  ac_check_lib_save_LIBS=$LIBS
12998LIBS="-ldld  $LIBS"
12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001
13002/* Override any GCC internal prototype to avoid an error.
13003   Use char because int might match the return type of a GCC
13004   builtin and then its argument prototype would still apply.  */
13005#ifdef __cplusplus
13006extern "C"
13007#endif
13008char shl_load ();
13009int
13010main ()
13011{
13012return shl_load ();
13013  ;
13014  return 0;
13015}
13016_ACEOF
13017if ac_fn_c_try_link "$LINENO"; then :
13018  ac_cv_lib_dld_shl_load=yes
13019else
13020  ac_cv_lib_dld_shl_load=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext \
13023    conftest$ac_exeext conftest.$ac_ext
13024LIBS=$ac_check_lib_save_LIBS
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13027$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13028if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13029  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13030else
13031  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13032if test "x$ac_cv_func_dlopen" = xyes; then :
13033  lt_cv_dlopen="dlopen"
13034else
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13036$as_echo_n "checking for dlopen in -ldl... " >&6; }
13037if ${ac_cv_lib_dl_dlopen+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  ac_check_lib_save_LIBS=$LIBS
13041LIBS="-ldl  $LIBS"
13042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044
13045/* Override any GCC internal prototype to avoid an error.
13046   Use char because int might match the return type of a GCC
13047   builtin and then its argument prototype would still apply.  */
13048#ifdef __cplusplus
13049extern "C"
13050#endif
13051char dlopen ();
13052int
13053main ()
13054{
13055return dlopen ();
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060if ac_fn_c_try_link "$LINENO"; then :
13061  ac_cv_lib_dl_dlopen=yes
13062else
13063  ac_cv_lib_dl_dlopen=no
13064fi
13065rm -f core conftest.err conftest.$ac_objext \
13066    conftest$ac_exeext conftest.$ac_ext
13067LIBS=$ac_check_lib_save_LIBS
13068fi
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13070$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13071if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13073else
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13075$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13076if ${ac_cv_lib_svld_dlopen+:} false; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079  ac_check_lib_save_LIBS=$LIBS
13080LIBS="-lsvld  $LIBS"
13081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083
13084/* Override any GCC internal prototype to avoid an error.
13085   Use char because int might match the return type of a GCC
13086   builtin and then its argument prototype would still apply.  */
13087#ifdef __cplusplus
13088extern "C"
13089#endif
13090char dlopen ();
13091int
13092main ()
13093{
13094return dlopen ();
13095  ;
13096  return 0;
13097}
13098_ACEOF
13099if ac_fn_c_try_link "$LINENO"; then :
13100  ac_cv_lib_svld_dlopen=yes
13101else
13102  ac_cv_lib_svld_dlopen=no
13103fi
13104rm -f core conftest.err conftest.$ac_objext \
13105    conftest$ac_exeext conftest.$ac_ext
13106LIBS=$ac_check_lib_save_LIBS
13107fi
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13109$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13110if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13111  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13112else
13113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13114$as_echo_n "checking for dld_link in -ldld... " >&6; }
13115if ${ac_cv_lib_dld_dld_link+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  ac_check_lib_save_LIBS=$LIBS
13119LIBS="-ldld  $LIBS"
13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123/* Override any GCC internal prototype to avoid an error.
13124   Use char because int might match the return type of a GCC
13125   builtin and then its argument prototype would still apply.  */
13126#ifdef __cplusplus
13127extern "C"
13128#endif
13129char dld_link ();
13130int
13131main ()
13132{
13133return dld_link ();
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_c_try_link "$LINENO"; then :
13139  ac_cv_lib_dld_dld_link=yes
13140else
13141  ac_cv_lib_dld_dld_link=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext \
13144    conftest$ac_exeext conftest.$ac_ext
13145LIBS=$ac_check_lib_save_LIBS
13146fi
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13148$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13149if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13150  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13151fi
13152
13153
13154fi
13155
13156
13157fi
13158
13159
13160fi
13161
13162
13163fi
13164
13165
13166fi
13167
13168    ;;
13169  esac
13170
13171  if test "x$lt_cv_dlopen" != xno; then
13172    enable_dlopen=yes
13173  else
13174    enable_dlopen=no
13175  fi
13176
13177  case $lt_cv_dlopen in
13178  dlopen)
13179    save_CPPFLAGS="$CPPFLAGS"
13180    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13181
13182    save_LDFLAGS="$LDFLAGS"
13183    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13184
13185    save_LIBS="$LIBS"
13186    LIBS="$lt_cv_dlopen_libs $LIBS"
13187
13188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13189$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13190if ${lt_cv_dlopen_self+:} false; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  	  if test "$cross_compiling" = yes; then :
13194  lt_cv_dlopen_self=cross
13195else
13196  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13197  lt_status=$lt_dlunknown
13198  cat > conftest.$ac_ext <<_LT_EOF
13199#line $LINENO "configure"
13200#include "confdefs.h"
13201
13202#if HAVE_DLFCN_H
13203#include <dlfcn.h>
13204#endif
13205
13206#include <stdio.h>
13207
13208#ifdef RTLD_GLOBAL
13209#  define LT_DLGLOBAL		RTLD_GLOBAL
13210#else
13211#  ifdef DL_GLOBAL
13212#    define LT_DLGLOBAL		DL_GLOBAL
13213#  else
13214#    define LT_DLGLOBAL		0
13215#  endif
13216#endif
13217
13218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219   find out it does not work in some platform. */
13220#ifndef LT_DLLAZY_OR_NOW
13221#  ifdef RTLD_LAZY
13222#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13223#  else
13224#    ifdef DL_LAZY
13225#      define LT_DLLAZY_OR_NOW		DL_LAZY
13226#    else
13227#      ifdef RTLD_NOW
13228#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13229#      else
13230#        ifdef DL_NOW
13231#          define LT_DLLAZY_OR_NOW	DL_NOW
13232#        else
13233#          define LT_DLLAZY_OR_NOW	0
13234#        endif
13235#      endif
13236#    endif
13237#  endif
13238#endif
13239
13240/* When -fvisbility=hidden is used, assume the code has been annotated
13241   correspondingly for the symbols needed.  */
13242#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13243int fnord () __attribute__((visibility("default")));
13244#endif
13245
13246int fnord () { return 42; }
13247int main ()
13248{
13249  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13250  int status = $lt_dlunknown;
13251
13252  if (self)
13253    {
13254      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13255      else
13256        {
13257	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13258          else puts (dlerror ());
13259	}
13260      /* dlclose (self); */
13261    }
13262  else
13263    puts (dlerror ());
13264
13265  return status;
13266}
13267_LT_EOF
13268  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13269  (eval $ac_link) 2>&5
13270  ac_status=$?
13271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13272  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13273    (./conftest; exit; ) >&5 2>/dev/null
13274    lt_status=$?
13275    case x$lt_status in
13276      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13277      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13278      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13279    esac
13280  else :
13281    # compilation failed
13282    lt_cv_dlopen_self=no
13283  fi
13284fi
13285rm -fr conftest*
13286
13287
13288fi
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13290$as_echo "$lt_cv_dlopen_self" >&6; }
13291
13292    if test "x$lt_cv_dlopen_self" = xyes; then
13293      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13294      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13295$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13296if ${lt_cv_dlopen_self_static+:} false; then :
13297  $as_echo_n "(cached) " >&6
13298else
13299  	  if test "$cross_compiling" = yes; then :
13300  lt_cv_dlopen_self_static=cross
13301else
13302  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13303  lt_status=$lt_dlunknown
13304  cat > conftest.$ac_ext <<_LT_EOF
13305#line $LINENO "configure"
13306#include "confdefs.h"
13307
13308#if HAVE_DLFCN_H
13309#include <dlfcn.h>
13310#endif
13311
13312#include <stdio.h>
13313
13314#ifdef RTLD_GLOBAL
13315#  define LT_DLGLOBAL		RTLD_GLOBAL
13316#else
13317#  ifdef DL_GLOBAL
13318#    define LT_DLGLOBAL		DL_GLOBAL
13319#  else
13320#    define LT_DLGLOBAL		0
13321#  endif
13322#endif
13323
13324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13325   find out it does not work in some platform. */
13326#ifndef LT_DLLAZY_OR_NOW
13327#  ifdef RTLD_LAZY
13328#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13329#  else
13330#    ifdef DL_LAZY
13331#      define LT_DLLAZY_OR_NOW		DL_LAZY
13332#    else
13333#      ifdef RTLD_NOW
13334#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13335#      else
13336#        ifdef DL_NOW
13337#          define LT_DLLAZY_OR_NOW	DL_NOW
13338#        else
13339#          define LT_DLLAZY_OR_NOW	0
13340#        endif
13341#      endif
13342#    endif
13343#  endif
13344#endif
13345
13346/* When -fvisbility=hidden is used, assume the code has been annotated
13347   correspondingly for the symbols needed.  */
13348#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13349int fnord () __attribute__((visibility("default")));
13350#endif
13351
13352int fnord () { return 42; }
13353int main ()
13354{
13355  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13356  int status = $lt_dlunknown;
13357
13358  if (self)
13359    {
13360      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13361      else
13362        {
13363	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13364          else puts (dlerror ());
13365	}
13366      /* dlclose (self); */
13367    }
13368  else
13369    puts (dlerror ());
13370
13371  return status;
13372}
13373_LT_EOF
13374  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13375  (eval $ac_link) 2>&5
13376  ac_status=$?
13377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13379    (./conftest; exit; ) >&5 2>/dev/null
13380    lt_status=$?
13381    case x$lt_status in
13382      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13383      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13384      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13385    esac
13386  else :
13387    # compilation failed
13388    lt_cv_dlopen_self_static=no
13389  fi
13390fi
13391rm -fr conftest*
13392
13393
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13396$as_echo "$lt_cv_dlopen_self_static" >&6; }
13397    fi
13398
13399    CPPFLAGS="$save_CPPFLAGS"
13400    LDFLAGS="$save_LDFLAGS"
13401    LIBS="$save_LIBS"
13402    ;;
13403  esac
13404
13405  case $lt_cv_dlopen_self in
13406  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13407  *) enable_dlopen_self=unknown ;;
13408  esac
13409
13410  case $lt_cv_dlopen_self_static in
13411  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13412  *) enable_dlopen_self_static=unknown ;;
13413  esac
13414fi
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432striplib=
13433old_striplib=
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13435$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13436if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13437  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13438  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13440$as_echo "yes" >&6; }
13441else
13442# FIXME - insert some real tests, host_os isn't really good enough
13443  case $host_os in
13444  darwin*)
13445    if test -n "$STRIP" ; then
13446      striplib="$STRIP -x"
13447      old_striplib="$STRIP -S"
13448      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449$as_echo "yes" >&6; }
13450    else
13451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452$as_echo "no" >&6; }
13453    fi
13454    ;;
13455  *)
13456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458    ;;
13459  esac
13460fi
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473  # Report which library types will actually be built
13474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13475$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13477$as_echo "$can_build_shared" >&6; }
13478
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13480$as_echo_n "checking whether to build shared libraries... " >&6; }
13481  test "$can_build_shared" = "no" && enable_shared=no
13482
13483  # On AIX, shared libraries and static libraries use the same namespace, and
13484  # are all built from PIC.
13485  case $host_os in
13486  aix3*)
13487    test "$enable_shared" = yes && enable_static=no
13488    if test -n "$RANLIB"; then
13489      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13490      postinstall_cmds='$RANLIB $lib'
13491    fi
13492    ;;
13493
13494  aix[4-9]*)
13495    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13496      test "$enable_shared" = yes && enable_static=no
13497    fi
13498    ;;
13499  esac
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13501$as_echo "$enable_shared" >&6; }
13502
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13504$as_echo_n "checking whether to build static libraries... " >&6; }
13505  # Make sure either enable_shared or enable_static is yes.
13506  test "$enable_shared" = yes || enable_static=yes
13507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13508$as_echo "$enable_static" >&6; }
13509
13510
13511
13512
13513fi
13514ac_ext=c
13515ac_cpp='$CPP $CPPFLAGS'
13516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
13520CC="$lt_save_CC"
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536        ac_config_commands="$ac_config_commands libtool"
13537
13538
13539
13540
13541# Only expand once:
13542
13543
13544
13545
13546# Checks for header files.
13547for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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
13548do :
13549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13550ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13551"
13552if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13553  cat >>confdefs.h <<_ACEOF
13554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13555_ACEOF
13556
13557fi
13558
13559done
13560
13561
13562# check for types.
13563# Using own tests for int64* because autoconf builtin only give 32bit.
13564ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13565if test "x$ac_cv_type_int8_t" = xyes; then :
13566
13567else
13568
13569cat >>confdefs.h <<_ACEOF
13570#define int8_t signed char
13571_ACEOF
13572
13573fi
13574
13575ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13576if test "x$ac_cv_type_int16_t" = xyes; then :
13577
13578else
13579
13580cat >>confdefs.h <<_ACEOF
13581#define int16_t short
13582_ACEOF
13583
13584fi
13585
13586ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13587if test "x$ac_cv_type_int32_t" = xyes; then :
13588
13589else
13590
13591cat >>confdefs.h <<_ACEOF
13592#define int32_t int
13593_ACEOF
13594
13595fi
13596
13597ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13598if test "x$ac_cv_type_int64_t" = xyes; then :
13599
13600else
13601
13602cat >>confdefs.h <<_ACEOF
13603#define int64_t long long
13604_ACEOF
13605
13606fi
13607
13608ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13609if test "x$ac_cv_type_uint8_t" = xyes; then :
13610
13611else
13612
13613cat >>confdefs.h <<_ACEOF
13614#define uint8_t unsigned char
13615_ACEOF
13616
13617fi
13618
13619ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13620if test "x$ac_cv_type_uint16_t" = xyes; then :
13621
13622else
13623
13624cat >>confdefs.h <<_ACEOF
13625#define uint16_t unsigned short
13626_ACEOF
13627
13628fi
13629
13630ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13631if test "x$ac_cv_type_uint32_t" = xyes; then :
13632
13633else
13634
13635cat >>confdefs.h <<_ACEOF
13636#define uint32_t unsigned int
13637_ACEOF
13638
13639fi
13640
13641ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13642if test "x$ac_cv_type_uint64_t" = xyes; then :
13643
13644else
13645
13646cat >>confdefs.h <<_ACEOF
13647#define uint64_t unsigned long long
13648_ACEOF
13649
13650fi
13651
13652ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13653if test "x$ac_cv_type_size_t" = xyes; then :
13654
13655else
13656
13657cat >>confdefs.h <<_ACEOF
13658#define size_t unsigned int
13659_ACEOF
13660
13661fi
13662
13663ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13664if test "x$ac_cv_type_ssize_t" = xyes; then :
13665
13666else
13667
13668cat >>confdefs.h <<_ACEOF
13669#define ssize_t int
13670_ACEOF
13671
13672fi
13673
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13675$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13676if ${ac_cv_type_uid_t+:} false; then :
13677  $as_echo_n "(cached) " >&6
13678else
13679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h.  */
13681#include <sys/types.h>
13682
13683_ACEOF
13684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13685  $EGREP "uid_t" >/dev/null 2>&1; then :
13686  ac_cv_type_uid_t=yes
13687else
13688  ac_cv_type_uid_t=no
13689fi
13690rm -f conftest*
13691
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13694$as_echo "$ac_cv_type_uid_t" >&6; }
13695if test $ac_cv_type_uid_t = no; then
13696
13697$as_echo "#define uid_t int" >>confdefs.h
13698
13699
13700$as_echo "#define gid_t int" >>confdefs.h
13701
13702fi
13703
13704ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13705if test "x$ac_cv_type_pid_t" = xyes; then :
13706
13707else
13708
13709cat >>confdefs.h <<_ACEOF
13710#define pid_t int
13711_ACEOF
13712
13713fi
13714
13715ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13716if test "x$ac_cv_type_off_t" = xyes; then :
13717
13718else
13719
13720cat >>confdefs.h <<_ACEOF
13721#define off_t long int
13722_ACEOF
13723
13724fi
13725
13726ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13727$ac_includes_default
13728#ifdef HAVE_WINSOCK2_H
13729#  include <winsock2.h>
13730#endif
13731
13732"
13733if test "x$ac_cv_type_u_char" = xyes; then :
13734
13735else
13736
13737$as_echo "#define u_char unsigned char" >>confdefs.h
13738
13739fi
13740
13741ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13742$ac_includes_default
13743#ifdef HAVE_SYS_RESOURCE_H
13744#  include <sys/resource.h>
13745#endif
13746
13747"
13748if test "x$ac_cv_type_rlim_t" = xyes; then :
13749
13750else
13751
13752$as_echo "#define rlim_t unsigned long" >>confdefs.h
13753
13754fi
13755
13756
13757ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13758$ac_includes_default
13759#ifdef HAVE_SYS_SOCKET_H
13760#  include <sys/socket.h>
13761#endif
13762#ifdef HAVE_WS2TCPIP_H
13763#  include <ws2tcpip.h>
13764#endif
13765
13766"
13767if test "x$ac_cv_type_socklen_t" = xyes; then :
13768
13769else
13770
13771$as_echo "#define socklen_t int" >>confdefs.h
13772
13773fi
13774
13775 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13776$ac_includes_default
13777#ifdef HAVE_SYS_TYPES_H
13778# include <sys/types.h>
13779#endif
13780#ifdef HAVE_NETINET_IN_H
13781# include <netinet/in.h>
13782#endif
13783
13784"
13785if test "x$ac_cv_type_in_addr_t" = xyes; then :
13786
13787else
13788
13789$as_echo "#define in_addr_t uint32_t" >>confdefs.h
13790
13791fi
13792
13793 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13794$ac_includes_default
13795#ifdef HAVE_SYS_TYPES_H
13796# include <sys/types.h>
13797#endif
13798#ifdef HAVE_NETINET_IN_H
13799# include <netinet/in.h>
13800#endif
13801
13802"
13803if test "x$ac_cv_type_in_port_t" = xyes; then :
13804
13805else
13806
13807$as_echo "#define in_port_t uint16_t" >>confdefs.h
13808
13809fi
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13812$as_echo_n "checking if memcmp compares unsigned... " >&6; }
13813if test "$cross_compiling" = yes; then :
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13815$as_echo "cross-compile no" >&6; }
13816
13817$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13818
13819  case " $LIBOBJS " in
13820  *" memcmp.$ac_objext "* ) ;;
13821  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13822 ;;
13823esac
13824
13825
13826else
13827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828/* end confdefs.h.  */
13829
13830#include <stdio.h>
13831#include <stdlib.h>
13832#include <string.h>
13833int main(void)
13834{
13835	char a = 255, b = 0;
13836	if(memcmp(&a, &b, 1) < 0)
13837		return 1;
13838	return 0;
13839}
13840
13841_ACEOF
13842if ac_fn_c_try_run "$LINENO"; then :
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844$as_echo "yes" >&6; }
13845else
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847$as_echo "no" >&6; }
13848
13849$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13850
13851  case " $LIBOBJS " in
13852  *" memcmp.$ac_objext "* ) ;;
13853  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13854 ;;
13855esac
13856
13857
13858fi
13859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13860  conftest.$ac_objext conftest.beam conftest.$ac_ext
13861fi
13862
13863
13864# add option to disable the evil rpath
13865
13866# Check whether --enable-rpath was given.
13867if test "${enable_rpath+set}" = set; then :
13868  enableval=$enable_rpath; enable_rpath=$enableval
13869else
13870  enable_rpath=yes
13871fi
13872
13873if test "x$enable_rpath" = xno; then
13874		ac_config_commands="$ac_config_commands disable-rpath"
13875
13876fi
13877
13878
13879
13880# check to see if libraries are needed for these functions.
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13882$as_echo_n "checking for library containing inet_pton... " >&6; }
13883if ${ac_cv_search_inet_pton+:} false; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  ac_func_search_save_LIBS=$LIBS
13887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891   Use char because int might match the return type of a GCC
13892   builtin and then its argument prototype would still apply.  */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char inet_pton ();
13897int
13898main ()
13899{
13900return inet_pton ();
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905for ac_lib in '' nsl; do
13906  if test -z "$ac_lib"; then
13907    ac_res="none required"
13908  else
13909    ac_res=-l$ac_lib
13910    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13911  fi
13912  if ac_fn_c_try_link "$LINENO"; then :
13913  ac_cv_search_inet_pton=$ac_res
13914fi
13915rm -f core conftest.err conftest.$ac_objext \
13916    conftest$ac_exeext
13917  if ${ac_cv_search_inet_pton+:} false; then :
13918  break
13919fi
13920done
13921if ${ac_cv_search_inet_pton+:} false; then :
13922
13923else
13924  ac_cv_search_inet_pton=no
13925fi
13926rm conftest.$ac_ext
13927LIBS=$ac_func_search_save_LIBS
13928fi
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13930$as_echo "$ac_cv_search_inet_pton" >&6; }
13931ac_res=$ac_cv_search_inet_pton
13932if test "$ac_res" != no; then :
13933  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13934
13935fi
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13938$as_echo_n "checking for library containing socket... " >&6; }
13939if ${ac_cv_search_socket+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941else
13942  ac_func_search_save_LIBS=$LIBS
13943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944/* end confdefs.h.  */
13945
13946/* Override any GCC internal prototype to avoid an error.
13947   Use char because int might match the return type of a GCC
13948   builtin and then its argument prototype would still apply.  */
13949#ifdef __cplusplus
13950extern "C"
13951#endif
13952char socket ();
13953int
13954main ()
13955{
13956return socket ();
13957  ;
13958  return 0;
13959}
13960_ACEOF
13961for ac_lib in '' socket; do
13962  if test -z "$ac_lib"; then
13963    ac_res="none required"
13964  else
13965    ac_res=-l$ac_lib
13966    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13967  fi
13968  if ac_fn_c_try_link "$LINENO"; then :
13969  ac_cv_search_socket=$ac_res
13970fi
13971rm -f core conftest.err conftest.$ac_objext \
13972    conftest$ac_exeext
13973  if ${ac_cv_search_socket+:} false; then :
13974  break
13975fi
13976done
13977if ${ac_cv_search_socket+:} false; then :
13978
13979else
13980  ac_cv_search_socket=no
13981fi
13982rm conftest.$ac_ext
13983LIBS=$ac_func_search_save_LIBS
13984fi
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13986$as_echo "$ac_cv_search_socket" >&6; }
13987ac_res=$ac_cv_search_socket
13988if test "$ac_res" != no; then :
13989  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13990
13991fi
13992
13993
13994# check wether strptime also works
13995
13996# check some functions of the OS before linking libs (while still runnable).
13997for ac_header in unistd.h
13998do :
13999  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14000if test "x$ac_cv_header_unistd_h" = xyes; then :
14001  cat >>confdefs.h <<_ACEOF
14002#define HAVE_UNISTD_H 1
14003_ACEOF
14004
14005fi
14006
14007done
14008
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14010$as_echo_n "checking for working chown... " >&6; }
14011if ${ac_cv_func_chown_works+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  if test "$cross_compiling" = yes; then :
14015  ac_cv_func_chown_works=no
14016else
14017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018/* end confdefs.h.  */
14019$ac_includes_default
14020#include <fcntl.h>
14021
14022int
14023main ()
14024{
14025  char *f = "conftest.chown";
14026  struct stat before, after;
14027
14028  if (creat (f, 0600) < 0)
14029    return 1;
14030  if (stat (f, &before) < 0)
14031    return 1;
14032  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14033    return 1;
14034  if (stat (f, &after) < 0)
14035    return 1;
14036  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14037
14038  ;
14039  return 0;
14040}
14041_ACEOF
14042if ac_fn_c_try_run "$LINENO"; then :
14043  ac_cv_func_chown_works=yes
14044else
14045  ac_cv_func_chown_works=no
14046fi
14047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14048  conftest.$ac_objext conftest.beam conftest.$ac_ext
14049fi
14050
14051rm -f conftest.chown
14052
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14055$as_echo "$ac_cv_func_chown_works" >&6; }
14056if test $ac_cv_func_chown_works = yes; then
14057
14058$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14059
14060fi
14061
14062for ac_header in vfork.h
14063do :
14064  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14065if test "x$ac_cv_header_vfork_h" = xyes; then :
14066  cat >>confdefs.h <<_ACEOF
14067#define HAVE_VFORK_H 1
14068_ACEOF
14069
14070fi
14071
14072done
14073
14074for ac_func in fork vfork
14075do :
14076  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14078if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14079  cat >>confdefs.h <<_ACEOF
14080#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14081_ACEOF
14082
14083fi
14084done
14085
14086if test "x$ac_cv_func_fork" = xyes; then
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14088$as_echo_n "checking for working fork... " >&6; }
14089if ${ac_cv_func_fork_works+:} false; then :
14090  $as_echo_n "(cached) " >&6
14091else
14092  if test "$cross_compiling" = yes; then :
14093  ac_cv_func_fork_works=cross
14094else
14095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096/* end confdefs.h.  */
14097$ac_includes_default
14098int
14099main ()
14100{
14101
14102	  /* By Ruediger Kuhlmann. */
14103	  return fork () < 0;
14104
14105  ;
14106  return 0;
14107}
14108_ACEOF
14109if ac_fn_c_try_run "$LINENO"; then :
14110  ac_cv_func_fork_works=yes
14111else
14112  ac_cv_func_fork_works=no
14113fi
14114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14115  conftest.$ac_objext conftest.beam conftest.$ac_ext
14116fi
14117
14118fi
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14120$as_echo "$ac_cv_func_fork_works" >&6; }
14121
14122else
14123  ac_cv_func_fork_works=$ac_cv_func_fork
14124fi
14125if test "x$ac_cv_func_fork_works" = xcross; then
14126  case $host in
14127    *-*-amigaos* | *-*-msdosdjgpp*)
14128      # Override, as these systems have only a dummy fork() stub
14129      ac_cv_func_fork_works=no
14130      ;;
14131    *)
14132      ac_cv_func_fork_works=yes
14133      ;;
14134  esac
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14136$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14137fi
14138ac_cv_func_vfork_works=$ac_cv_func_vfork
14139if test "x$ac_cv_func_vfork" = xyes; then
14140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14141$as_echo_n "checking for working vfork... " >&6; }
14142if ${ac_cv_func_vfork_works+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  if test "$cross_compiling" = yes; then :
14146  ac_cv_func_vfork_works=cross
14147else
14148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149/* end confdefs.h.  */
14150/* Thanks to Paul Eggert for this test.  */
14151$ac_includes_default
14152#include <sys/wait.h>
14153#ifdef HAVE_VFORK_H
14154# include <vfork.h>
14155#endif
14156/* On some sparc systems, changes by the child to local and incoming
14157   argument registers are propagated back to the parent.  The compiler
14158   is told about this with #include <vfork.h>, but some compilers
14159   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14160   static variable whose address is put into a register that is
14161   clobbered by the vfork.  */
14162static void
14163#ifdef __cplusplus
14164sparc_address_test (int arg)
14165# else
14166sparc_address_test (arg) int arg;
14167#endif
14168{
14169  static pid_t child;
14170  if (!child) {
14171    child = vfork ();
14172    if (child < 0) {
14173      perror ("vfork");
14174      _exit(2);
14175    }
14176    if (!child) {
14177      arg = getpid();
14178      write(-1, "", 0);
14179      _exit (arg);
14180    }
14181  }
14182}
14183
14184int
14185main ()
14186{
14187  pid_t parent = getpid ();
14188  pid_t child;
14189
14190  sparc_address_test (0);
14191
14192  child = vfork ();
14193
14194  if (child == 0) {
14195    /* Here is another test for sparc vfork register problems.  This
14196       test uses lots of local variables, at least as many local
14197       variables as main has allocated so far including compiler
14198       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14199       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14200       reuse the register of parent for one of the local variables,
14201       since it will think that parent can't possibly be used any more
14202       in this routine.  Assigning to the local variable will thus
14203       munge parent in the parent process.  */
14204    pid_t
14205      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14206      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14207    /* Convince the compiler that p..p7 are live; otherwise, it might
14208       use the same hardware register for all 8 local variables.  */
14209    if (p != p1 || p != p2 || p != p3 || p != p4
14210	|| p != p5 || p != p6 || p != p7)
14211      _exit(1);
14212
14213    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14214       from child file descriptors.  If the child closes a descriptor
14215       before it execs or exits, this munges the parent's descriptor
14216       as well.  Test for this by closing stdout in the child.  */
14217    _exit(close(fileno(stdout)) != 0);
14218  } else {
14219    int status;
14220    struct stat st;
14221
14222    while (wait(&status) != child)
14223      ;
14224    return (
14225	 /* Was there some problem with vforking?  */
14226	 child < 0
14227
14228	 /* Did the child fail?  (This shouldn't happen.)  */
14229	 || status
14230
14231	 /* Did the vfork/compiler bug occur?  */
14232	 || parent != getpid()
14233
14234	 /* Did the file descriptor bug occur?  */
14235	 || fstat(fileno(stdout), &st) != 0
14236	 );
14237  }
14238}
14239_ACEOF
14240if ac_fn_c_try_run "$LINENO"; then :
14241  ac_cv_func_vfork_works=yes
14242else
14243  ac_cv_func_vfork_works=no
14244fi
14245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14246  conftest.$ac_objext conftest.beam conftest.$ac_ext
14247fi
14248
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14251$as_echo "$ac_cv_func_vfork_works" >&6; }
14252
14253fi;
14254if test "x$ac_cv_func_fork_works" = xcross; then
14255  ac_cv_func_vfork_works=$ac_cv_func_vfork
14256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14257$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14258fi
14259
14260if test "x$ac_cv_func_vfork_works" = xyes; then
14261
14262$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14263
14264else
14265
14266$as_echo "#define vfork fork" >>confdefs.h
14267
14268fi
14269if test "x$ac_cv_func_fork_works" = xyes; then
14270
14271$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14272
14273fi
14274
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14276$as_echo_n "checking return type of signal handlers... " >&6; }
14277if ${ac_cv_type_signal+:} false; then :
14278  $as_echo_n "(cached) " >&6
14279else
14280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282#include <sys/types.h>
14283#include <signal.h>
14284
14285int
14286main ()
14287{
14288return *(signal (0, 0)) (0) == 1;
14289  ;
14290  return 0;
14291}
14292_ACEOF
14293if ac_fn_c_try_compile "$LINENO"; then :
14294  ac_cv_type_signal=int
14295else
14296  ac_cv_type_signal=void
14297fi
14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299fi
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14301$as_echo "$ac_cv_type_signal" >&6; }
14302
14303cat >>confdefs.h <<_ACEOF
14304#define RETSIGTYPE $ac_cv_type_signal
14305_ACEOF
14306
14307
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14309$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14310if ${ac_cv_sys_largefile_source+:} false; then :
14311  $as_echo_n "(cached) " >&6
14312else
14313  while :; do
14314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h.  */
14316#include <sys/types.h> /* for off_t */
14317     #include <stdio.h>
14318int
14319main ()
14320{
14321int (*fp) (FILE *, off_t, int) = fseeko;
14322     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14323  ;
14324  return 0;
14325}
14326_ACEOF
14327if ac_fn_c_try_link "$LINENO"; then :
14328  ac_cv_sys_largefile_source=no; break
14329fi
14330rm -f core conftest.err conftest.$ac_objext \
14331    conftest$ac_exeext conftest.$ac_ext
14332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h.  */
14334#define _LARGEFILE_SOURCE 1
14335#include <sys/types.h> /* for off_t */
14336     #include <stdio.h>
14337int
14338main ()
14339{
14340int (*fp) (FILE *, off_t, int) = fseeko;
14341     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14342  ;
14343  return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_link "$LINENO"; then :
14347  ac_cv_sys_largefile_source=1; break
14348fi
14349rm -f core conftest.err conftest.$ac_objext \
14350    conftest$ac_exeext conftest.$ac_ext
14351  ac_cv_sys_largefile_source=unknown
14352  break
14353done
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14356$as_echo "$ac_cv_sys_largefile_source" >&6; }
14357case $ac_cv_sys_largefile_source in #(
14358  no | unknown) ;;
14359  *)
14360cat >>confdefs.h <<_ACEOF
14361#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14362_ACEOF
14363;;
14364esac
14365rm -rf conftest*
14366
14367# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14368# in glibc 2.1.3, but that breaks too many other things.
14369# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14370if test $ac_cv_sys_largefile_source != unknown; then
14371
14372$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14373
14374fi
14375
14376
14377# Check whether --enable-largefile was given.
14378if test "${enable_largefile+set}" = set; then :
14379  enableval=$enable_largefile;
14380fi
14381
14382if test "$enable_largefile" != no; then
14383
14384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14385$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14386if ${ac_cv_sys_largefile_CC+:} false; then :
14387  $as_echo_n "(cached) " >&6
14388else
14389  ac_cv_sys_largefile_CC=no
14390     if test "$GCC" != yes; then
14391       ac_save_CC=$CC
14392       while :; do
14393	 # IRIX 6.2 and later do not support large files by default,
14394	 # so use the C compiler's -n32 option if that helps.
14395	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396/* end confdefs.h.  */
14397#include <sys/types.h>
14398 /* Check that off_t can represent 2**63 - 1 correctly.
14399    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14400    since some C++ compilers masquerading as C compilers
14401    incorrectly reject 9223372036854775807.  */
14402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14403  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14404		       && LARGE_OFF_T % 2147483647 == 1)
14405		      ? 1 : -1];
14406int
14407main ()
14408{
14409
14410  ;
14411  return 0;
14412}
14413_ACEOF
14414	 if ac_fn_c_try_compile "$LINENO"; then :
14415  break
14416fi
14417rm -f core conftest.err conftest.$ac_objext
14418	 CC="$CC -n32"
14419	 if ac_fn_c_try_compile "$LINENO"; then :
14420  ac_cv_sys_largefile_CC=' -n32'; break
14421fi
14422rm -f core conftest.err conftest.$ac_objext
14423	 break
14424       done
14425       CC=$ac_save_CC
14426       rm -f conftest.$ac_ext
14427    fi
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14430$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14431  if test "$ac_cv_sys_largefile_CC" != no; then
14432    CC=$CC$ac_cv_sys_largefile_CC
14433  fi
14434
14435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14436$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14437if ${ac_cv_sys_file_offset_bits+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  while :; do
14441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h.  */
14443#include <sys/types.h>
14444 /* Check that off_t can represent 2**63 - 1 correctly.
14445    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14446    since some C++ compilers masquerading as C compilers
14447    incorrectly reject 9223372036854775807.  */
14448#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14449  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14450		       && LARGE_OFF_T % 2147483647 == 1)
14451		      ? 1 : -1];
14452int
14453main ()
14454{
14455
14456  ;
14457  return 0;
14458}
14459_ACEOF
14460if ac_fn_c_try_compile "$LINENO"; then :
14461  ac_cv_sys_file_offset_bits=no; break
14462fi
14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h.  */
14466#define _FILE_OFFSET_BITS 64
14467#include <sys/types.h>
14468 /* Check that off_t can represent 2**63 - 1 correctly.
14469    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14470    since some C++ compilers masquerading as C compilers
14471    incorrectly reject 9223372036854775807.  */
14472#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14473  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14474		       && LARGE_OFF_T % 2147483647 == 1)
14475		      ? 1 : -1];
14476int
14477main ()
14478{
14479
14480  ;
14481  return 0;
14482}
14483_ACEOF
14484if ac_fn_c_try_compile "$LINENO"; then :
14485  ac_cv_sys_file_offset_bits=64; break
14486fi
14487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488  ac_cv_sys_file_offset_bits=unknown
14489  break
14490done
14491fi
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14493$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14494case $ac_cv_sys_file_offset_bits in #(
14495  no | unknown) ;;
14496  *)
14497cat >>confdefs.h <<_ACEOF
14498#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14499_ACEOF
14500;;
14501esac
14502rm -rf conftest*
14503  if test $ac_cv_sys_file_offset_bits = unknown; then
14504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14505$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14506if ${ac_cv_sys_large_files+:} false; then :
14507  $as_echo_n "(cached) " >&6
14508else
14509  while :; do
14510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h.  */
14512#include <sys/types.h>
14513 /* Check that off_t can represent 2**63 - 1 correctly.
14514    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14515    since some C++ compilers masquerading as C compilers
14516    incorrectly reject 9223372036854775807.  */
14517#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14518  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14519		       && LARGE_OFF_T % 2147483647 == 1)
14520		      ? 1 : -1];
14521int
14522main ()
14523{
14524
14525  ;
14526  return 0;
14527}
14528_ACEOF
14529if ac_fn_c_try_compile "$LINENO"; then :
14530  ac_cv_sys_large_files=no; break
14531fi
14532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534/* end confdefs.h.  */
14535#define _LARGE_FILES 1
14536#include <sys/types.h>
14537 /* Check that off_t can represent 2**63 - 1 correctly.
14538    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14539    since some C++ compilers masquerading as C compilers
14540    incorrectly reject 9223372036854775807.  */
14541#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14542  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14543		       && LARGE_OFF_T % 2147483647 == 1)
14544		      ? 1 : -1];
14545int
14546main ()
14547{
14548
14549  ;
14550  return 0;
14551}
14552_ACEOF
14553if ac_fn_c_try_compile "$LINENO"; then :
14554  ac_cv_sys_large_files=1; break
14555fi
14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557  ac_cv_sys_large_files=unknown
14558  break
14559done
14560fi
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14562$as_echo "$ac_cv_sys_large_files" >&6; }
14563case $ac_cv_sys_large_files in #(
14564  no | unknown) ;;
14565  *)
14566cat >>confdefs.h <<_ACEOF
14567#define _LARGE_FILES $ac_cv_sys_large_files
14568_ACEOF
14569;;
14570esac
14571rm -rf conftest*
14572  fi
14573
14574
14575fi
14576
14577
14578
14579
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14581$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14582cache=_D_LARGEFILE_SOURCE_1
14583if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14584  $as_echo_n "(cached) " >&6
14585else
14586
14587echo '
14588#include <stdio.h>
14589int test() {
14590        int a = fseeko(stdin, 0, 0);
14591        return a;
14592}
14593' > conftest.c
14594echo 'void f(){}' >>conftest.c
14595if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14596eval "cv_prog_cc_flag_needed_$cache=no"
14597else
14598
14599if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14600eval "cv_prog_cc_flag_needed_$cache=yes"
14601else
14602eval "cv_prog_cc_flag_needed_$cache=fail"
14603#echo 'Test with flag fails too!'
14604#cat conftest.c
14605#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14606#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14607#exit 1
14608fi
14609
14610fi
14611rm -f conftest conftest.c conftest.o
14612
14613fi
14614
14615if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617$as_echo "yes" >&6; }
14618:
14619CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14620else
14621if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623$as_echo "no" >&6; }
14624#echo 'Test with flag is no!'
14625#cat conftest.c
14626#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14627#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14628#exit 1
14629:
14630
14631else
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14633$as_echo "failed" >&6; }
14634:
14635
14636fi
14637fi
14638
14639
14640
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14642$as_echo_n "checking if nonblocking sockets work... " >&6; }
14643if echo $target | grep mingw32 >/dev/null; then
14644	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14645$as_echo "no (windows)" >&6; }
14646
14647$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14648
14649else
14650if test "$cross_compiling" = yes; then :
14651
14652	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14653$as_echo "crosscompile(yes)" >&6; }
14654
14655else
14656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657/* end confdefs.h.  */
14658
14659
14660#include <stdio.h>
14661#include <string.h>
14662#include <stdlib.h>
14663#include <fcntl.h>
14664#include <errno.h>
14665#ifdef HAVE_SYS_TYPES_H
14666#include <sys/types.h>
14667#endif
14668#ifdef HAVE_SYS_SOCKET_H
14669#include <sys/socket.h>
14670#endif
14671#ifdef HAVE_NETINET_IN_H
14672#include <netinet/in.h>
14673#endif
14674#ifdef HAVE_ARPA_INET_H
14675#include <arpa/inet.h>
14676#endif
14677#ifdef HAVE_UNISTD_H
14678#include <unistd.h>
14679#endif
14680#ifdef HAVE_TIME_H
14681#include <time.h>
14682#endif
14683
14684int main(void)
14685{
14686	int port;
14687	int sfd, cfd;
14688	int num = 10;
14689	int i, p;
14690	struct sockaddr_in a;
14691	/* test if select and nonblocking reads work well together */
14692	/* open port.
14693	   fork child to send 10 messages.
14694	   select to read.
14695	   then try to nonblocking read the 10 messages
14696	   then, nonblocking read must give EAGAIN
14697	*/
14698
14699	port = 12345 + (time(0)%32);
14700	sfd = socket(PF_INET, SOCK_DGRAM, 0);
14701	if(sfd == -1) {
14702		perror("socket");
14703		return 1;
14704	}
14705	memset(&a, 0, sizeof(a));
14706	a.sin_family = AF_INET;
14707	a.sin_port = htons(port);
14708	a.sin_addr.s_addr = inet_addr("127.0.0.1");
14709	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14710		perror("bind");
14711		return 1;
14712	}
14713	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14714		perror("fcntl");
14715		return 1;
14716	}
14717
14718	cfd = socket(PF_INET, SOCK_DGRAM, 0);
14719	if(cfd == -1) {
14720		perror("client socket");
14721		return 1;
14722	}
14723	a.sin_port = 0;
14724	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14725		perror("client bind");
14726		return 1;
14727	}
14728	a.sin_port = htons(port);
14729
14730	/* no handler, causes exit in 10 seconds */
14731	alarm(10);
14732
14733	/* send and receive on the socket */
14734	if((p=fork()) == 0) {
14735		for(i=0; i<num; i++) {
14736			if(sendto(cfd, &i, sizeof(i), 0,
14737				(struct sockaddr*)&a, sizeof(a)) < 0) {
14738				perror("sendto");
14739				return 1;
14740			}
14741		}
14742	} else {
14743		/* parent */
14744		fd_set rset;
14745		int x;
14746		if(p == -1) {
14747			perror("fork");
14748			return 1;
14749		}
14750		FD_ZERO(&rset);
14751		FD_SET(sfd, &rset);
14752		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14753			perror("select");
14754			return 1;
14755		}
14756		i = 0;
14757		while(i < num) {
14758			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14759				if(errno == EAGAIN)
14760					continue;
14761				perror("recv");
14762				return 1;
14763			}
14764			i++;
14765		}
14766		/* now we want to get EAGAIN: nonblocking goodness */
14767		errno = 0;
14768		recv(sfd, &x, sizeof(x), 0);
14769		if(errno != EAGAIN) {
14770			perror("trying to recv again");
14771			return 1;
14772		}
14773		/* EAGAIN encountered */
14774	}
14775
14776	close(sfd);
14777	close(cfd);
14778	return 0;
14779}
14780
14781_ACEOF
14782if ac_fn_c_try_run "$LINENO"; then :
14783
14784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14785$as_echo "yes" >&6; }
14786
14787else
14788
14789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790$as_echo "no" >&6; }
14791
14792$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14793
14794
14795fi
14796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14797  conftest.$ac_objext conftest.beam conftest.$ac_ext
14798fi
14799
14800fi
14801
14802
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14804$as_echo_n "checking whether mkdir has one arg... " >&6; }
14805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h.  */
14807
14808#include <stdio.h>
14809#include <unistd.h>
14810#ifdef HAVE_WINSOCK2_H
14811#include <winsock2.h>
14812#endif
14813#ifdef HAVE_SYS_STAT_H
14814#include <sys/stat.h>
14815#endif
14816
14817int
14818main ()
14819{
14820
14821	(void)mkdir("directory");
14822
14823  ;
14824  return 0;
14825}
14826_ACEOF
14827if ac_fn_c_try_compile "$LINENO"; then :
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14829$as_echo "yes" >&6; }
14830
14831$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14832
14833
14834else
14835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836$as_echo "no" >&6; }
14837
14838fi
14839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840
14841for ac_func in strptime
14842do :
14843  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14844if test "x$ac_cv_func_strptime" = xyes; then :
14845  cat >>confdefs.h <<_ACEOF
14846#define HAVE_STRPTIME 1
14847_ACEOF
14848
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14850$as_echo_n "checking whether strptime works... " >&6; }
14851if test c${cross_compiling} = cno; then
14852if test "$cross_compiling" = yes; then :
14853  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14855as_fn_error $? "cannot run test program while cross compiling
14856See \`config.log' for more details" "$LINENO" 5; }
14857else
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860
14861#define _XOPEN_SOURCE
14862#include <time.h>
14863int main(void) { struct tm tm; char *res;
14864res = 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);
14865if (!res) return 2;
14866res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14867if (!res) return 1; return 0; }
14868
14869_ACEOF
14870if ac_fn_c_try_run "$LINENO"; then :
14871  eval "ac_cv_c_strptime_works=yes"
14872else
14873  eval "ac_cv_c_strptime_works=no"
14874fi
14875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876  conftest.$ac_objext conftest.beam conftest.$ac_ext
14877fi
14878
14879else
14880eval "ac_cv_c_strptime_works=maybe"
14881fi
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14883$as_echo "$ac_cv_c_strptime_works" >&6; }
14884if test $ac_cv_c_strptime_works = no; then
14885case " $LIBOBJS " in
14886  *" strptime.$ac_objext "* ) ;;
14887  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14888 ;;
14889esac
14890
14891else
14892
14893cat >>confdefs.h <<_ACEOF
14894#define STRPTIME_WORKS 1
14895_ACEOF
14896
14897fi
14898
14899else
14900  case " $LIBOBJS " in
14901  *" strptime.$ac_objext "* ) ;;
14902  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14903 ;;
14904esac
14905
14906fi
14907done
14908
14909
14910# set memory allocation checking if requested
14911# Check whether --enable-alloc-checks was given.
14912if test "${enable_alloc_checks+set}" = set; then :
14913  enableval=$enable_alloc_checks;
14914fi
14915
14916# Check whether --enable-alloc-lite was given.
14917if test "${enable_alloc_lite+set}" = set; then :
14918  enableval=$enable_alloc_lite;
14919fi
14920
14921# Check whether --enable-alloc-nonregional was given.
14922if test "${enable_alloc_nonregional+set}" = set; then :
14923  enableval=$enable_alloc_nonregional;
14924fi
14925
14926if test x_$enable_alloc_nonregional = x_yes; then
14927
14928$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14929
14930fi
14931if test x_$enable_alloc_checks = x_yes; then
14932
14933$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14934
14935else
14936	if test x_$enable_alloc_lite = x_yes; then
14937
14938$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14939
14940	else
14941
14942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14943$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14944	if test "$cross_compiling" = yes; then :
14945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14946$as_echo "no (crosscompile)" >&6; }
14947	case " $LIBOBJS " in
14948  *" malloc.$ac_objext "* ) ;;
14949  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14950 ;;
14951esac
14952
14953
14954cat >>confdefs.h <<_ACEOF
14955#define malloc rpl_malloc_unbound
14956_ACEOF
14957
14958else
14959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14962#include <stdlib.h>
14963#else
14964char *malloc ();
14965#endif
14966
14967int
14968main ()
14969{
14970 if(malloc(0) != 0) return 1;
14971  ;
14972  return 0;
14973}
14974
14975_ACEOF
14976if ac_fn_c_try_run "$LINENO"; then :
14977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978$as_echo "no" >&6; }
14979	case " $LIBOBJS " in
14980  *" malloc.$ac_objext "* ) ;;
14981  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14982 ;;
14983esac
14984
14985
14986cat >>confdefs.h <<_ACEOF
14987#define malloc rpl_malloc_unbound
14988_ACEOF
14989
14990else
14991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14992$as_echo "yes" >&6; }
14993
14994$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14995
14996fi
14997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14998  conftest.$ac_objext conftest.beam conftest.$ac_ext
14999fi
15000
15001
15002	fi
15003fi
15004
15005# check windows threads (we use them, not pthreads, on windows).
15006if test "$on_mingw" = "yes"; then
15007# check windows threads
15008	for ac_header in windows.h
15009do :
15010  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15011"
15012if test "x$ac_cv_header_windows_h" = xyes; then :
15013  cat >>confdefs.h <<_ACEOF
15014#define HAVE_WINDOWS_H 1
15015_ACEOF
15016
15017fi
15018
15019done
15020
15021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15022$as_echo_n "checking for CreateThread... " >&6; }
15023	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024/* end confdefs.h.  */
15025
15026#ifdef HAVE_WINDOWS_H
15027#include <windows.h>
15028#endif
15029
15030int
15031main ()
15032{
15033
15034	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15035
15036  ;
15037  return 0;
15038}
15039_ACEOF
15040if ac_fn_c_try_compile "$LINENO"; then :
15041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042$as_echo "yes" >&6; }
15043
15044$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15045
15046
15047else
15048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049$as_echo "no" >&6; }
15050
15051fi
15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053
15054else
15055# not on mingw, check thread libraries.
15056
15057# check for thread library.
15058# check this first, so that the pthread lib does not get linked in via
15059# libssl or libpython, and thus distorts the tests, and we end up using
15060# the non-threadsafe C libraries.
15061
15062# Check whether --with-pthreads was given.
15063if test "${with_pthreads+set}" = set; then :
15064  withval=$with_pthreads;
15065else
15066   withval="yes"
15067fi
15068
15069ub_have_pthreads=no
15070if test x_$withval != x_no; then
15071
15072
15073
15074ac_ext=c
15075ac_cpp='$CPP $CPPFLAGS'
15076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15078ac_compiler_gnu=$ac_cv_c_compiler_gnu
15079
15080acx_pthread_ok=no
15081
15082# We used to check for pthread.h first, but this fails if pthread.h
15083# requires special compiler flags (e.g. on True64 or Sequent).
15084# It gets checked for in the link test anyway.
15085
15086# First of all, check if the user has set any of the PTHREAD_LIBS,
15087# etcetera environment variables, and if threads linking works using
15088# them:
15089if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15090        save_CFLAGS="$CFLAGS"
15091        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15092        save_LIBS="$LIBS"
15093        LIBS="$PTHREAD_LIBS $LIBS"
15094        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15095$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15096        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098
15099/* Override any GCC internal prototype to avoid an error.
15100   Use char because int might match the return type of a GCC
15101   builtin and then its argument prototype would still apply.  */
15102#ifdef __cplusplus
15103extern "C"
15104#endif
15105char pthread_join ();
15106int
15107main ()
15108{
15109return pthread_join ();
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115  acx_pthread_ok=yes
15116fi
15117rm -f core conftest.err conftest.$ac_objext \
15118    conftest$ac_exeext conftest.$ac_ext
15119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15120$as_echo "$acx_pthread_ok" >&6; }
15121        if test x"$acx_pthread_ok" = xno; then
15122                PTHREAD_LIBS=""
15123                PTHREAD_CFLAGS=""
15124        fi
15125        LIBS="$save_LIBS"
15126        CFLAGS="$save_CFLAGS"
15127fi
15128
15129# We must check for the threads library under a number of different
15130# names; the ordering is very important because some systems
15131# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15132# libraries is broken (non-POSIX).
15133
15134# Create a list of thread flags to try.  Items starting with a "-" are
15135# C compiler flags, and other items are library names, except for "none"
15136# which indicates that we try without any flags at all, and "pthread-config"
15137# which is a program returning the flags for the Pth emulation library.
15138
15139acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15140
15141# The ordering *is* (sometimes) important.  Some notes on the
15142# individual items follow:
15143
15144# pthreads: AIX (must check this before -lpthread)
15145# none: in case threads are in libc; should be tried before -Kthread and
15146#       other compiler flags to prevent continual compiler warnings
15147# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15148# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15149# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15150# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15151# -pthreads: Solaris/gcc
15152# -mthreads: Mingw32/gcc, Lynx/gcc
15153# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15154#      doesn't hurt to check since this sometimes defines pthreads too;
15155#      also defines -D_REENTRANT)
15156#      ... -mt is also the pthreads flag for HP/aCC
15157# pthread: Linux, etcetera
15158# --thread-safe: KAI C++
15159# pthread-config: use pthread-config program (for GNU Pth library)
15160
15161case "${host_cpu}-${host_os}" in
15162        *solaris*)
15163
15164        # On Solaris (at least, for some versions), libc contains stubbed
15165        # (non-functional) versions of the pthreads routines, so link-based
15166        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15167        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15168        # a function called by this macro, so we could check for that, but
15169        # who knows whether they'll stub that too in a future libc.)  So,
15170        # we'll just look for -pthreads and -lpthread first:
15171
15172        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15173        ;;
15174esac
15175
15176if test x"$acx_pthread_ok" = xno; then
15177for flag in $acx_pthread_flags; do
15178
15179        case $flag in
15180                none)
15181                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15182$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15183                ;;
15184
15185                -*)
15186                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15187$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15188                PTHREAD_CFLAGS="$flag"
15189                ;;
15190
15191		pthread-config)
15192		# Extract the first word of "pthread-config", so it can be a program name with args.
15193set dummy pthread-config; ac_word=$2
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15195$as_echo_n "checking for $ac_word... " >&6; }
15196if ${ac_cv_prog_acx_pthread_config+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  if test -n "$acx_pthread_config"; then
15200  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15201else
15202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203for as_dir in $PATH
15204do
15205  IFS=$as_save_IFS
15206  test -z "$as_dir" && as_dir=.
15207    for ac_exec_ext in '' $ac_executable_extensions; do
15208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15209    ac_cv_prog_acx_pthread_config="yes"
15210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15211    break 2
15212  fi
15213done
15214  done
15215IFS=$as_save_IFS
15216
15217  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15218fi
15219fi
15220acx_pthread_config=$ac_cv_prog_acx_pthread_config
15221if test -n "$acx_pthread_config"; then
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15223$as_echo "$acx_pthread_config" >&6; }
15224else
15225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226$as_echo "no" >&6; }
15227fi
15228
15229
15230		if test x"$acx_pthread_config" = xno; then continue; fi
15231		PTHREAD_CFLAGS="`pthread-config --cflags`"
15232		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15233		;;
15234
15235                *)
15236                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15237$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15238                PTHREAD_LIBS="-l$flag"
15239                ;;
15240        esac
15241
15242        save_LIBS="$LIBS"
15243        save_CFLAGS="$CFLAGS"
15244        LIBS="$PTHREAD_LIBS $LIBS"
15245        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15246
15247        # Check for various functions.  We must include pthread.h,
15248        # since some functions may be macros.  (On the Sequent, we
15249        # need a special flag -Kthread to make this header compile.)
15250        # We check for pthread_join because it is in -lpthread on IRIX
15251        # while pthread_create is in libc.  We check for pthread_attr_init
15252        # due to DEC craziness with -lpthreads.  We check for
15253        # pthread_cleanup_push because it is one of the few pthread
15254        # functions on Solaris that doesn't have a non-functional libc stub.
15255        # We try pthread_create on general principles.
15256        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258#include <pthread.h>
15259int
15260main ()
15261{
15262pthread_t th; pthread_join(th, 0);
15263                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
15264                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15265  ;
15266  return 0;
15267}
15268_ACEOF
15269if ac_fn_c_try_link "$LINENO"; then :
15270  acx_pthread_ok=yes
15271fi
15272rm -f core conftest.err conftest.$ac_objext \
15273    conftest$ac_exeext conftest.$ac_ext
15274
15275        LIBS="$save_LIBS"
15276        CFLAGS="$save_CFLAGS"
15277
15278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15279$as_echo "$acx_pthread_ok" >&6; }
15280        if test "x$acx_pthread_ok" = xyes; then
15281                break;
15282        fi
15283
15284        PTHREAD_LIBS=""
15285        PTHREAD_CFLAGS=""
15286done
15287fi
15288
15289# Various other checks:
15290if test "x$acx_pthread_ok" = xyes; then
15291        save_LIBS="$LIBS"
15292        LIBS="$PTHREAD_LIBS $LIBS"
15293        save_CFLAGS="$CFLAGS"
15294        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15295
15296        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15298$as_echo_n "checking for joinable pthread attribute... " >&6; }
15299	attr_name=unknown
15300	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15301	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303#include <pthread.h>
15304int
15305main ()
15306{
15307int attr=$attr; return attr;
15308  ;
15309  return 0;
15310}
15311_ACEOF
15312if ac_fn_c_try_link "$LINENO"; then :
15313  attr_name=$attr; break
15314fi
15315rm -f core conftest.err conftest.$ac_objext \
15316    conftest$ac_exeext conftest.$ac_ext
15317	done
15318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15319$as_echo "$attr_name" >&6; }
15320        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15321
15322cat >>confdefs.h <<_ACEOF
15323#define PTHREAD_CREATE_JOINABLE $attr_name
15324_ACEOF
15325
15326        fi
15327
15328        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15329$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15330        flag=no
15331        case "${host_cpu}-${host_os}" in
15332            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15333            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15334        esac
15335        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15336$as_echo "${flag}" >&6; }
15337        if test "x$flag" != xno; then
15338            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15339        fi
15340
15341        LIBS="$save_LIBS"
15342        CFLAGS="$save_CFLAGS"
15343
15344        # More AIX lossage: must compile with xlc_r or cc_r
15345	if test x"$GCC" != xyes; then
15346          for ac_prog in xlc_r cc_r
15347do
15348  # Extract the first word of "$ac_prog", so it can be a program name with args.
15349set dummy $ac_prog; ac_word=$2
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15351$as_echo_n "checking for $ac_word... " >&6; }
15352if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15353  $as_echo_n "(cached) " >&6
15354else
15355  if test -n "$PTHREAD_CC"; then
15356  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15357else
15358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15359for as_dir in $PATH
15360do
15361  IFS=$as_save_IFS
15362  test -z "$as_dir" && as_dir=.
15363    for ac_exec_ext in '' $ac_executable_extensions; do
15364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15365    ac_cv_prog_PTHREAD_CC="$ac_prog"
15366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15367    break 2
15368  fi
15369done
15370  done
15371IFS=$as_save_IFS
15372
15373fi
15374fi
15375PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15376if test -n "$PTHREAD_CC"; then
15377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15378$as_echo "$PTHREAD_CC" >&6; }
15379else
15380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381$as_echo "no" >&6; }
15382fi
15383
15384
15385  test -n "$PTHREAD_CC" && break
15386done
15387test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15388
15389        else
15390          PTHREAD_CC=$CC
15391	fi
15392else
15393        PTHREAD_CC="$CC"
15394fi
15395
15396
15397
15398
15399
15400# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15401if test x"$acx_pthread_ok" = xyes; then
15402
15403
15404$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15405
15406		LIBS="$PTHREAD_LIBS $LIBS"
15407		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15408		CC="$PTHREAD_CC"
15409		ub_have_pthreads=yes
15410		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15411"
15412if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15413
15414cat >>confdefs.h <<_ACEOF
15415#define HAVE_PTHREAD_SPINLOCK_T 1
15416_ACEOF
15417
15418
15419fi
15420ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15421"
15422if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15423
15424cat >>confdefs.h <<_ACEOF
15425#define HAVE_PTHREAD_RWLOCK_T 1
15426_ACEOF
15427
15428
15429fi
15430
15431
15432        :
15433else
15434        acx_pthread_ok=no
15435
15436fi
15437ac_ext=c
15438ac_cpp='$CPP $CPPFLAGS'
15439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15441ac_compiler_gnu=$ac_cv_c_compiler_gnu
15442
15443
15444fi
15445
15446# check solaris thread library
15447
15448# Check whether --with-solaris-threads was given.
15449if test "${with_solaris_threads+set}" = set; then :
15450  withval=$with_solaris_threads;
15451else
15452   withval="no"
15453fi
15454
15455ub_have_sol_threads=no
15456if test x_$withval != x_no; then
15457	if test x_$ub_have_pthreads != x_no; then
15458	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15459$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15460	else
15461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15462$as_echo_n "checking for library containing thr_create... " >&6; }
15463if ${ac_cv_search_thr_create+:} false; then :
15464  $as_echo_n "(cached) " >&6
15465else
15466  ac_func_search_save_LIBS=$LIBS
15467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468/* end confdefs.h.  */
15469
15470/* Override any GCC internal prototype to avoid an error.
15471   Use char because int might match the return type of a GCC
15472   builtin and then its argument prototype would still apply.  */
15473#ifdef __cplusplus
15474extern "C"
15475#endif
15476char thr_create ();
15477int
15478main ()
15479{
15480return thr_create ();
15481  ;
15482  return 0;
15483}
15484_ACEOF
15485for ac_lib in '' thread; do
15486  if test -z "$ac_lib"; then
15487    ac_res="none required"
15488  else
15489    ac_res=-l$ac_lib
15490    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15491  fi
15492  if ac_fn_c_try_link "$LINENO"; then :
15493  ac_cv_search_thr_create=$ac_res
15494fi
15495rm -f core conftest.err conftest.$ac_objext \
15496    conftest$ac_exeext
15497  if ${ac_cv_search_thr_create+:} false; then :
15498  break
15499fi
15500done
15501if ${ac_cv_search_thr_create+:} false; then :
15502
15503else
15504  ac_cv_search_thr_create=no
15505fi
15506rm conftest.$ac_ext
15507LIBS=$ac_func_search_save_LIBS
15508fi
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15510$as_echo "$ac_cv_search_thr_create" >&6; }
15511ac_res=$ac_cv_search_thr_create
15512if test "$ac_res" != no; then :
15513  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15514
15515
15516$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15517
15518
15519
15520
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15522$as_echo_n "checking whether $CC supports -mt... " >&6; }
15523cache=`echo mt | sed 'y%.=/+-%___p_%'`
15524if eval \${cv_prog_cc_flag_$cache+:} false; then :
15525  $as_echo_n "(cached) " >&6
15526else
15527
15528echo 'void f(){}' >conftest.c
15529if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15530eval "cv_prog_cc_flag_$cache=yes"
15531else
15532eval "cv_prog_cc_flag_$cache=no"
15533fi
15534rm -f conftest conftest.o conftest.c
15535
15536fi
15537
15538if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15540$as_echo "yes" >&6; }
15541:
15542CFLAGS="$CFLAGS -mt"
15543else
15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545$as_echo "no" >&6; }
15546:
15547CFLAGS="$CFLAGS -D_REENTRANT"
15548fi
15549
15550		ub_have_sol_threads=yes
15551
15552else
15553
15554		as_fn_error $? "no solaris threads found." "$LINENO" 5
15555
15556fi
15557
15558	fi
15559fi
15560
15561fi # end of non-mingw check of thread libraries
15562
15563# Check for PyUnbound
15564
15565# Check whether --with-pyunbound was given.
15566if test "${with_pyunbound+set}" = set; then :
15567  withval=$with_pyunbound;
15568else
15569   withval="no"
15570fi
15571
15572
15573ub_test_python=no
15574ub_with_pyunbound=no
15575if test x_$withval != x_no; then
15576   ub_with_pyunbound=yes
15577   ub_test_python=yes
15578fi
15579
15580# Check for Python module
15581
15582# Check whether --with-pythonmodule was given.
15583if test "${with_pythonmodule+set}" = set; then :
15584  withval=$with_pythonmodule;
15585else
15586   withval="no"
15587fi
15588
15589
15590ub_with_pythonmod=no
15591if test x_$withval != x_no; then
15592   ub_with_pythonmod=yes
15593   ub_test_python=yes
15594fi
15595
15596# Check for Python & SWIG only on PyUnbound or PyModule
15597if test x_$ub_test_python != x_no; then
15598
15599   # Check for Python
15600   ub_have_python=no
15601   ac_save_LIBS="$LIBS"
15602        #
15603        # Allow the use of a (user set) custom python version
15604        #
15605
15606
15607        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15608set dummy python$PYTHON_VERSION; ac_word=$2
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15610$as_echo_n "checking for $ac_word... " >&6; }
15611if ${ac_cv_path_PYTHON+:} false; then :
15612  $as_echo_n "(cached) " >&6
15613else
15614  case $PYTHON in
15615  [\\/]* | ?:[\\/]*)
15616  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15617  ;;
15618  *)
15619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620for as_dir in $PATH
15621do
15622  IFS=$as_save_IFS
15623  test -z "$as_dir" && as_dir=.
15624    for ac_exec_ext in '' $ac_executable_extensions; do
15625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628    break 2
15629  fi
15630done
15631  done
15632IFS=$as_save_IFS
15633
15634  ;;
15635esac
15636fi
15637PYTHON=$ac_cv_path_PYTHON
15638if test -n "$PYTHON"; then
15639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15640$as_echo "$PYTHON" >&6; }
15641else
15642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15643$as_echo "no" >&6; }
15644fi
15645
15646
15647        if test -z "$PYTHON"; then
15648           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15649           PYTHON_VERSION=""
15650        fi
15651
15652        if test -z "$PYTHON_VERSION"; then
15653		PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15654			print string.split(sys.version)[0]"`
15655	fi
15656
15657        #
15658        # Check for a version of Python >= 2.1.0
15659        #
15660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15661$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15662        ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15663                ver = string.split(sys.version)[0]; \
15664                print ver >= '2.1.0'"`
15665        if test "$ac_supports_python_ver" != "True"; then
15666                if test -z "$PYTHON_NOVERSIONCHECK"; then
15667                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668$as_echo "no" >&6; }
15669                        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15671as_fn_error $? "
15672This version of the AC_PYTHON_DEVEL macro
15673doesn't work properly with versions of Python before
156742.1.0. You may need to re-run configure, setting the
15675variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15676PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15677Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15678to something else than an empty string.
15679
15680See \`config.log' for more details" "$LINENO" 5; }
15681                else
15682                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15683$as_echo "skip at user request" >&6; }
15684                fi
15685        else
15686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15687$as_echo "yes" >&6; }
15688        fi
15689
15690        #
15691        # if the macro parameter ``version'' is set, honour it
15692        #
15693        if test -n ""; then
15694                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15695$as_echo_n "checking for a version of Python ... " >&6; }
15696                ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15697                        ver = string.split(sys.version)[0]; \
15698                        print ver "`
15699                if test "$ac_supports_python_ver" = "True"; then
15700                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701$as_echo "yes" >&6; }
15702                else
15703                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704$as_echo "no" >&6; }
15705                        as_fn_error $? "this package requires Python .
15706If you have it installed, but it isn't the default Python
15707interpreter in your system path, please pass the PYTHON_VERSION
15708variable to configure. See \`\`configure --help'' for reference.
15709" "$LINENO" 5
15710                        PYTHON_VERSION=""
15711                fi
15712        fi
15713
15714        #
15715        # Check if you have distutils, else fail
15716        #
15717        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15718$as_echo_n "checking for the distutils Python package... " >&6; }
15719        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15720        if test -z "$ac_distutils_result"; then
15721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722$as_echo "yes" >&6; }
15723        else
15724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725$as_echo "no" >&6; }
15726                as_fn_error $? "cannot import Python module \"distutils\".
15727Please check your Python installation. The error was:
15728$ac_distutils_result" "$LINENO" 5
15729                PYTHON_VERSION=""
15730        fi
15731
15732        #
15733        # Check for Python include path
15734        #
15735        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15736$as_echo_n "checking for Python include path... " >&6; }
15737        if test -z "$PYTHON_CPPFLAGS"; then
15738                python_path=`$PYTHON -c "import distutils.sysconfig; \
15739                        print distutils.sysconfig.get_python_inc();"`
15740                if test -n "${python_path}"; then
15741                        python_path="-I$python_path"
15742                fi
15743                PYTHON_CPPFLAGS=$python_path
15744        fi
15745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15746$as_echo "$PYTHON_CPPFLAGS" >&6; }
15747
15748
15749        #
15750        # Check for Python library path
15751        #
15752        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15753$as_echo_n "checking for Python library path... " >&6; }
15754        if test -z "$PYTHON_LDFLAGS"; then
15755                # (makes two attempts to ensure we've got a version number
15756                # from the interpreter)
15757                py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15758                        from string import join; \
15759                        print join(get_config_vars('VERSION'))"`
15760                if test "$py_version" = "None"; then
15761                        if test -n "$PYTHON_VERSION"; then
15762                                py_version=$PYTHON_VERSION
15763                        else
15764                                py_version=`$PYTHON -c "import sys; \
15765                                        print sys.version[:3]"`
15766                        fi
15767                fi
15768
15769                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15770                        from string import join; \
15771                        print '-L' + get_python_lib(0,1), \
15772                        '-L' + os.path.dirname(get_python_lib(0,1)), \
15773                        '-lpython';"`$py_version
15774        fi
15775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15776$as_echo "$PYTHON_LDFLAGS" >&6; }
15777
15778
15779        #
15780        # Check for site packages
15781        #
15782        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15783$as_echo_n "checking for Python site-packages path... " >&6; }
15784        if test -z "$PYTHON_SITE_PKG"; then
15785                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15786                        print distutils.sysconfig.get_python_lib(1,0);"`
15787        fi
15788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15789$as_echo "$PYTHON_SITE_PKG" >&6; }
15790
15791
15792        #
15793        # libraries which must be linked in when embedding
15794        #
15795        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15796$as_echo_n "checking python extra libraries... " >&6; }
15797        if test -z "$PYTHON_EXTRA_LIBS"; then
15798           PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15799                conf = distutils.sysconfig.get_config_var; \
15800                print conf('LOCALMODLIBS'), conf('LIBS')"`
15801        fi
15802        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15803$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15804
15805
15806        #
15807        # linking flags needed when embedding
15808        #
15809        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15810$as_echo_n "checking python extra linking flags... " >&6; }
15811        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15812                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15813                        conf = distutils.sysconfig.get_config_var; \
15814                        print conf('LINKFORSHARED')"`
15815        fi
15816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15817$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15818
15819
15820        #
15821        # final check to see if everything compiles alright
15822        #
15823        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15824$as_echo_n "checking consistency of all components of python development environment... " >&6; }
15825        ac_ext=c
15826ac_cpp='$CPP $CPPFLAGS'
15827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
15831        # save current global flags
15832        ac_save_LIBS="$LIBS"
15833        ac_save_CPPFLAGS="$CPPFLAGS"
15834
15835        LIBS="$LIBS $PYTHON_LDFLAGS"
15836        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15837        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838/* end confdefs.h.  */
15839
15840                #include <Python.h>
15841
15842int
15843main ()
15844{
15845
15846                Py_Initialize();
15847
15848  ;
15849  return 0;
15850}
15851_ACEOF
15852if ac_fn_c_try_link "$LINENO"; then :
15853  pythonexists=yes
15854else
15855  pythonexists=no
15856fi
15857rm -f core conftest.err conftest.$ac_objext \
15858    conftest$ac_exeext conftest.$ac_ext
15859
15860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15861$as_echo "$pythonexists" >&6; }
15862
15863        if test ! "$pythonexists" = "yes"; then
15864           as_fn_error $? "
15865  Could not link test program to Python. Maybe the main Python library has been
15866  installed in some non-standard library path. If so, pass it to configure,
15867  via the LDFLAGS environment variable.
15868  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15869  ============================================================================
15870   ERROR!
15871   You probably have to install the development version of the Python package
15872   for your distribution.  The exact name of this package varies among them.
15873  ============================================================================
15874           " "$LINENO" 5
15875          PYTHON_VERSION=""
15876        fi
15877        ac_ext=c
15878ac_cpp='$CPP $CPPFLAGS'
15879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15881ac_compiler_gnu=$ac_cv_c_compiler_gnu
15882
15883        # turn back to default flags
15884        CPPFLAGS="$ac_save_CPPFLAGS"
15885        LIBS="$ac_save_LIBS"
15886
15887        #
15888        # all done!
15889        #
15890
15891   if test ! -z "$PYTHON_VERSION"; then
15892	if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15893		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15894	fi
15895
15896      # Have Python
15897
15898$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15899
15900      LIBS="$PYTHON_LDFLAGS $LIBS"
15901      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15902      ub_have_python=yes
15903
15904      # Check for SWIG
15905      ub_have_swig=no
15906
15907        # Extract the first word of "swig", so it can be a program name with args.
15908set dummy swig; ac_word=$2
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910$as_echo_n "checking for $ac_word... " >&6; }
15911if ${ac_cv_path_SWIG+:} false; then :
15912  $as_echo_n "(cached) " >&6
15913else
15914  case $SWIG in
15915  [\\/]* | ?:[\\/]*)
15916  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15917  ;;
15918  *)
15919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920for as_dir in $PATH
15921do
15922  IFS=$as_save_IFS
15923  test -z "$as_dir" && as_dir=.
15924    for ac_exec_ext in '' $ac_executable_extensions; do
15925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15928    break 2
15929  fi
15930done
15931  done
15932IFS=$as_save_IFS
15933
15934  ;;
15935esac
15936fi
15937SWIG=$ac_cv_path_SWIG
15938if test -n "$SWIG"; then
15939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15940$as_echo "$SWIG" >&6; }
15941else
15942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943$as_echo "no" >&6; }
15944fi
15945
15946
15947        if test -z "$SWIG" ; then
15948                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15949$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15950                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15951        elif test -n "" ; then
15952                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15953$as_echo_n "checking for SWIG version... " >&6; }
15954                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'`
15955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15956$as_echo "$swig_version" >&6; }
15957                if test -n "$swig_version" ; then
15958                        # Calculate the required version number components
15959                        required=
15960                        required_major=`echo $required | sed 's/[^0-9].*//'`
15961                        if test -z "$required_major" ; then
15962                                required_major=0
15963                        fi
15964                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15965                        required_minor=`echo $required | sed 's/[^0-9].*//'`
15966                        if test -z "$required_minor" ; then
15967                                required_minor=0
15968                        fi
15969                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15970                        required_patch=`echo $required | sed 's/[^0-9].*//'`
15971                        if test -z "$required_patch" ; then
15972                                required_patch=0
15973                        fi
15974                        # Calculate the available version number components
15975                        available=$swig_version
15976                        available_major=`echo $available | sed 's/[^0-9].*//'`
15977                        if test -z "$available_major" ; then
15978                                available_major=0
15979                        fi
15980                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15981                        available_minor=`echo $available | sed 's/[^0-9].*//'`
15982                        if test -z "$available_minor" ; then
15983                                available_minor=0
15984                        fi
15985                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15986                        available_patch=`echo $available | sed 's/[^0-9].*//'`
15987                        if test -z "$available_patch" ; then
15988                                available_patch=0
15989                        fi
15990                        if test $available_major -ne $required_major \
15991                                -o $available_minor -ne $required_minor \
15992                                -o $available_patch -lt $required_patch ; then
15993                                { $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
15994$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
15995                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
15996                        else
15997                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15998$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15999                                SWIG_LIB=`$SWIG -swiglib`
16000                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16001$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16002                        fi
16003                else
16004                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16005$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16006                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16007                fi
16008        fi
16009
16010
16011      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16012$as_echo_n "checking SWIG... " >&6; }
16013      if test ! -x "$SWIG"; then
16014         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16015      else
16016
16017$as_echo "#define HAVE_SWIG 1" >>confdefs.h
16018
16019         swig="$SWIG"
16020
16021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16022$as_echo "present" >&6; }
16023
16024         # If have Python & SWIG
16025         # Declare PythonMod
16026         if test x_$ub_with_pythonmod != x_no; then
16027
16028$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16029
16030            WITH_PYTHONMODULE=yes
16031
16032	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16033
16034	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16035
16036	    PYTHONMOD_INSTALL=pythonmod-install
16037
16038	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
16039
16040         fi
16041
16042         # Declare PyUnbound
16043         if test x_$ub_with_pyunbound != x_no; then
16044
16045$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16046
16047            WITH_PYUNBOUND=yes
16048
16049	    PYUNBOUND_OBJ="libunbound_wrap.lo"
16050
16051	    PYUNBOUND_TARGET="_unbound.la"
16052
16053	    PYUNBOUND_INSTALL=pyunbound-install
16054
16055	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
16056
16057         fi
16058      fi
16059   else
16060      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16061$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16062      ub_with_pyunbound=no
16063      ub_with_pythonmod=no
16064   fi
16065fi
16066
16067if test "`uname`" = "NetBSD"; then
16068	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16069
16070fi
16071CONFIG_DATE=`date +%Y%m%d`
16072
16073
16074# Checks for libraries.
16075
16076# libnss
16077USE_NSS="no"
16078
16079# Check whether --with-nss was given.
16080if test "${with_nss+set}" = set; then :
16081  withval=$with_nss;
16082	USE_NSS="yes"
16083
16084$as_echo "#define HAVE_NSS 1" >>confdefs.h
16085
16086	if test "$withval" != "" -a "$withval" != "yes"; then
16087		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16088		LDFLAGS="$LDFLAGS -L$withval/lib"
16089
16090	if test "x$enable_rpath" = xyes; then
16091		if echo "$withval/lib" | grep "^/" >/dev/null; then
16092			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16093		fi
16094	fi
16095
16096		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16097	else
16098		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16099		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16100	fi
16101        LIBS="$LIBS -lnss3 -lnspr4"
16102
16103
16104fi
16105
16106
16107# openssl
16108if test $USE_NSS = "no"; then
16109
16110
16111# Check whether --with-ssl was given.
16112if test "${with_ssl+set}" = set; then :
16113  withval=$with_ssl;
16114
16115else
16116
16117            withval="yes"
16118
16119fi
16120
16121    if test x_$withval = x_no; then
16122	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16123    fi
16124
16125    withval=$withval
16126    if test x_$withval != x_no; then
16127        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16128$as_echo_n "checking for SSL... " >&6; }
16129        if test x_$withval = x_ -o x_$withval = x_yes; then
16130            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16131        fi
16132        for dir in $withval; do
16133            ssldir="$dir"
16134            if test -f "$dir/include/openssl/ssl.h"; then
16135                found_ssl="yes"
16136
16137cat >>confdefs.h <<_ACEOF
16138#define HAVE_SSL /**/
16139_ACEOF
16140
16141                                if test "$ssldir" != "/usr"; then
16142                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16143                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16144                fi
16145                break;
16146            fi
16147        done
16148        if test x_$found_ssl != x_yes; then
16149            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16150        else
16151            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16152$as_echo "found in $ssldir" >&6; }
16153            HAVE_SSL=yes
16154                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16155                LDFLAGS="$LDFLAGS -L$ssldir/lib"
16156                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16157
16158	if test "x$enable_rpath" = xyes; then
16159		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16160			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16161		fi
16162	fi
16163
16164            fi
16165
16166            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16167$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16168            LIBS="$LIBS -lcrypto"
16169            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16170            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171/* end confdefs.h.  */
16172
16173int
16174main ()
16175{
16176
16177                int HMAC_CTX_init(void);
16178                (void)HMAC_CTX_init();
16179
16180  ;
16181  return 0;
16182}
16183_ACEOF
16184if ac_fn_c_try_link "$LINENO"; then :
16185
16186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187$as_echo "yes" >&6; }
16188
16189$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16190
16191
16192else
16193
16194                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16195$as_echo "no" >&6; }
16196                # check if -lwsock32 or -lgdi32 are needed.
16197                BAKLIBS="$LIBS"
16198                BAKSSLLIBS="$LIBSSL_LIBS"
16199                LIBS="$LIBS -lgdi32"
16200                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16201                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16202$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16203                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h.  */
16205
16206int
16207main ()
16208{
16209
16210                    int HMAC_CTX_init(void);
16211                    (void)HMAC_CTX_init();
16212
16213  ;
16214  return 0;
16215}
16216_ACEOF
16217if ac_fn_c_try_link "$LINENO"; then :
16218
16219
16220$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16221
16222                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16223$as_echo "yes" >&6; }
16224
16225else
16226
16227                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228$as_echo "no" >&6; }
16229                    LIBS="$BAKLIBS"
16230                    LIBSSL_LIBS="$BAKSSLLIBS"
16231                    LIBS="$LIBS -ldl"
16232                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16233                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16234$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16235                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236/* end confdefs.h.  */
16237
16238int
16239main ()
16240{
16241
16242                        int HMAC_CTX_init(void);
16243                        (void)HMAC_CTX_init();
16244
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250
16251
16252$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16253
16254                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16255$as_echo "yes" >&6; }
16256
16257else
16258
16259                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260$as_echo "no" >&6; }
16261                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16262
16263fi
16264rm -f core conftest.err conftest.$ac_objext \
16265    conftest$ac_exeext conftest.$ac_ext
16266
16267fi
16268rm -f core conftest.err conftest.$ac_objext \
16269    conftest$ac_exeext conftest.$ac_ext
16270
16271fi
16272rm -f core conftest.err conftest.$ac_objext \
16273    conftest$ac_exeext conftest.$ac_ext
16274        fi
16275
16276
16277	# openssl engine functionality needs dlopen().
16278	BAKLIBS="$LIBS"
16279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16280$as_echo_n "checking for library containing dlopen... " >&6; }
16281if ${ac_cv_search_dlopen+:} false; then :
16282  $as_echo_n "(cached) " >&6
16283else
16284  ac_func_search_save_LIBS=$LIBS
16285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286/* end confdefs.h.  */
16287
16288/* Override any GCC internal prototype to avoid an error.
16289   Use char because int might match the return type of a GCC
16290   builtin and then its argument prototype would still apply.  */
16291#ifdef __cplusplus
16292extern "C"
16293#endif
16294char dlopen ();
16295int
16296main ()
16297{
16298return dlopen ();
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303for ac_lib in '' dl; do
16304  if test -z "$ac_lib"; then
16305    ac_res="none required"
16306  else
16307    ac_res=-l$ac_lib
16308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16309  fi
16310  if ac_fn_c_try_link "$LINENO"; then :
16311  ac_cv_search_dlopen=$ac_res
16312fi
16313rm -f core conftest.err conftest.$ac_objext \
16314    conftest$ac_exeext
16315  if ${ac_cv_search_dlopen+:} false; then :
16316  break
16317fi
16318done
16319if ${ac_cv_search_dlopen+:} false; then :
16320
16321else
16322  ac_cv_search_dlopen=no
16323fi
16324rm conftest.$ac_ext
16325LIBS=$ac_func_search_save_LIBS
16326fi
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16328$as_echo "$ac_cv_search_dlopen" >&6; }
16329ac_res=$ac_cv_search_dlopen
16330if test "$ac_res" != no; then :
16331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16332
16333fi
16334
16335	if test "$LIBS" != "$BAKLIBS"; then
16336		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16337	fi
16338    fi
16339for ac_header in openssl/ssl.h
16340do :
16341  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16342"
16343if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16344  cat >>confdefs.h <<_ACEOF
16345#define HAVE_OPENSSL_SSL_H 1
16346_ACEOF
16347
16348fi
16349
16350done
16351
16352for ac_header in openssl/err.h
16353do :
16354  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16355"
16356if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16357  cat >>confdefs.h <<_ACEOF
16358#define HAVE_OPENSSL_ERR_H 1
16359_ACEOF
16360
16361fi
16362
16363done
16364
16365for ac_header in openssl/rand.h
16366do :
16367  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16368"
16369if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16370  cat >>confdefs.h <<_ACEOF
16371#define HAVE_OPENSSL_RAND_H 1
16372_ACEOF
16373
16374fi
16375
16376done
16377
16378
16379
16380
16381# check if libssl needs libdl
16382BAKLIBS="$LIBS"
16383LIBS="-lssl $LIBS"
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16385$as_echo_n "checking if libssl needs libdl... " >&6; }
16386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h.  */
16388
16389/* Override any GCC internal prototype to avoid an error.
16390   Use char because int might match the return type of a GCC
16391   builtin and then its argument prototype would still apply.  */
16392#ifdef __cplusplus
16393extern "C"
16394#endif
16395char SSL_CTX_new ();
16396int
16397main ()
16398{
16399return SSL_CTX_new ();
16400  ;
16401  return 0;
16402}
16403_ACEOF
16404if ac_fn_c_try_link "$LINENO"; then :
16405
16406	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407$as_echo "no" >&6; }
16408	LIBS="$BAKLIBS"
16409
16410else
16411
16412	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413$as_echo "yes" >&6; }
16414	LIBS="$BAKLIBS"
16415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16416$as_echo_n "checking for library containing dlopen... " >&6; }
16417if ${ac_cv_search_dlopen+:} false; then :
16418  $as_echo_n "(cached) " >&6
16419else
16420  ac_func_search_save_LIBS=$LIBS
16421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422/* end confdefs.h.  */
16423
16424/* Override any GCC internal prototype to avoid an error.
16425   Use char because int might match the return type of a GCC
16426   builtin and then its argument prototype would still apply.  */
16427#ifdef __cplusplus
16428extern "C"
16429#endif
16430char dlopen ();
16431int
16432main ()
16433{
16434return dlopen ();
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439for ac_lib in '' dl; do
16440  if test -z "$ac_lib"; then
16441    ac_res="none required"
16442  else
16443    ac_res=-l$ac_lib
16444    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16445  fi
16446  if ac_fn_c_try_link "$LINENO"; then :
16447  ac_cv_search_dlopen=$ac_res
16448fi
16449rm -f core conftest.err conftest.$ac_objext \
16450    conftest$ac_exeext
16451  if ${ac_cv_search_dlopen+:} false; then :
16452  break
16453fi
16454done
16455if ${ac_cv_search_dlopen+:} false; then :
16456
16457else
16458  ac_cv_search_dlopen=no
16459fi
16460rm conftest.$ac_ext
16461LIBS=$ac_func_search_save_LIBS
16462fi
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16464$as_echo "$ac_cv_search_dlopen" >&6; }
16465ac_res=$ac_cv_search_dlopen
16466if test "$ac_res" != no; then :
16467  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16468
16469fi
16470
16471
16472fi
16473rm -f core conftest.err conftest.$ac_objext \
16474    conftest$ac_exeext conftest.$ac_ext
16475for ac_header in openssl/conf.h
16476do :
16477  ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16478"
16479if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16480  cat >>confdefs.h <<_ACEOF
16481#define HAVE_OPENSSL_CONF_H 1
16482_ACEOF
16483
16484fi
16485
16486done
16487
16488for ac_header in openssl/engine.h
16489do :
16490  ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16491"
16492if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16493  cat >>confdefs.h <<_ACEOF
16494#define HAVE_OPENSSL_ENGINE_H 1
16495_ACEOF
16496
16497fi
16498
16499done
16500
16501for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16502do :
16503  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16504ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16505if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16506  cat >>confdefs.h <<_ACEOF
16507#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16508_ACEOF
16509
16510fi
16511done
16512
16513ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16514$ac_includes_default
16515#ifdef HAVE_OPENSSL_ERR_H
16516#include <openssl/err.h>
16517#endif
16518
16519#ifdef HAVE_OPENSSL_RAND_H
16520#include <openssl/rand.h>
16521#endif
16522
16523#ifdef HAVE_OPENSSL_CONF_H
16524#include <openssl/conf.h>
16525#endif
16526
16527#ifdef HAVE_OPENSSL_ENGINE_H
16528#include <openssl/engine.h>
16529#endif
16530#include <openssl/ssl.h>
16531#include <openssl/evp.h>
16532
16533"
16534if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16535  ac_have_decl=1
16536else
16537  ac_have_decl=0
16538fi
16539
16540cat >>confdefs.h <<_ACEOF
16541#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16542_ACEOF
16543ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16544$ac_includes_default
16545#ifdef HAVE_OPENSSL_ERR_H
16546#include <openssl/err.h>
16547#endif
16548
16549#ifdef HAVE_OPENSSL_RAND_H
16550#include <openssl/rand.h>
16551#endif
16552
16553#ifdef HAVE_OPENSSL_CONF_H
16554#include <openssl/conf.h>
16555#endif
16556
16557#ifdef HAVE_OPENSSL_ENGINE_H
16558#include <openssl/engine.h>
16559#endif
16560#include <openssl/ssl.h>
16561#include <openssl/evp.h>
16562
16563"
16564if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16565  ac_have_decl=1
16566else
16567  ac_have_decl=0
16568fi
16569
16570cat >>confdefs.h <<_ACEOF
16571#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16572_ACEOF
16573
16574fi
16575
16576
16577# Check whether --enable-sha2 was given.
16578if test "${enable_sha2+set}" = set; then :
16579  enableval=$enable_sha2;
16580fi
16581
16582case "$enable_sha2" in
16583	no)
16584	;;
16585	yes|*)
16586
16587$as_echo "#define USE_SHA2 1" >>confdefs.h
16588
16589	;;
16590esac
16591
16592# check wether gost also works
16593
16594# Check whether --enable-gost was given.
16595if test "${enable_gost+set}" = set; then :
16596  enableval=$enable_gost;
16597fi
16598
16599use_gost="no"
16600if test $USE_NSS = "no"; then
16601case "$enable_gost" in
16602	no)
16603	;;
16604	*)
16605	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16606if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16607  :
16608else
16609  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16610fi
16611
16612	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16613if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16614
16615else
16616  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16617fi
16618
16619
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16621$as_echo_n "checking if GOST works... " >&6; }
16622if test c${cross_compiling} = cno; then
16623BAKCFLAGS="$CFLAGS"
16624if test -n "$ssldir"; then
16625	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16626fi
16627if test "$cross_compiling" = yes; then :
16628  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16630as_fn_error $? "cannot run test program while cross compiling
16631See \`config.log' for more details" "$LINENO" 5; }
16632else
16633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634/* end confdefs.h.  */
16635
16636#include <string.h>
16637#include <openssl/ssl.h>
16638#include <openssl/evp.h>
16639#include <openssl/engine.h>
16640#include <openssl/conf.h>
16641/* routine to load gost from ldns */
16642int load_gost_id(void)
16643{
16644	static int gost_id = 0;
16645	const EVP_PKEY_ASN1_METHOD* meth;
16646	ENGINE* e;
16647
16648	if(gost_id) return gost_id;
16649
16650	/* see if configuration loaded gost implementation from other engine*/
16651	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16652	if(meth) {
16653		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16654		return gost_id;
16655	}
16656
16657	/* see if engine can be loaded already */
16658	e = ENGINE_by_id("gost");
16659	if(!e) {
16660		/* load it ourself, in case statically linked */
16661		ENGINE_load_builtin_engines();
16662		ENGINE_load_dynamic();
16663		e = ENGINE_by_id("gost");
16664	}
16665	if(!e) {
16666		/* no gost engine in openssl */
16667		return 0;
16668	}
16669	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16670		ENGINE_finish(e);
16671		ENGINE_free(e);
16672		return 0;
16673	}
16674
16675	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16676	if(!meth) {
16677		/* algo not found */
16678		ENGINE_finish(e);
16679		ENGINE_free(e);
16680		return 0;
16681	}
16682	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16683	return gost_id;
16684}
16685int main(void) {
16686	EVP_MD_CTX* ctx;
16687	const EVP_MD* md;
16688	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16689	const char* str = "Hello world";
16690	const unsigned char check[] = {
16691		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16692		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16693		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16694		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16695	};
16696	OPENSSL_config(NULL);
16697	(void)load_gost_id();
16698	md = EVP_get_digestbyname("md_gost94");
16699	if(!md) return 1;
16700	memset(digest, 0, sizeof(digest));
16701	ctx = EVP_MD_CTX_create();
16702	if(!ctx) return 2;
16703	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16704	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16705	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16706	/* uncomment to see the hash calculated.
16707		{int i;
16708		for(i=0; i<32; i++)
16709			printf(" %2.2x", (int)digest[i]);
16710		printf("\n");}
16711	*/
16712	if(memcmp(digest, check, sizeof(check)) != 0)
16713		return 6;
16714	return 0;
16715}
16716
16717_ACEOF
16718if ac_fn_c_try_run "$LINENO"; then :
16719  eval "ac_cv_c_gost_works=yes"
16720else
16721  eval "ac_cv_c_gost_works=no"
16722fi
16723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16724  conftest.$ac_objext conftest.beam conftest.$ac_ext
16725fi
16726
16727CFLAGS="$BAKCFLAGS"
16728else
16729eval "ac_cv_c_gost_works=maybe"
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16732$as_echo "$ac_cv_c_gost_works" >&6; }
16733
16734	if test "$ac_cv_c_gost_works" != no; then
16735		use_gost="yes"
16736
16737$as_echo "#define USE_GOST 1" >>confdefs.h
16738
16739	fi
16740	;;
16741esac
16742fi
16743# Check whether --enable-ecdsa was given.
16744if test "${enable_ecdsa+set}" = set; then :
16745  enableval=$enable_ecdsa;
16746fi
16747
16748use_ecdsa="no"
16749case "$enable_ecdsa" in
16750    no)
16751      ;;
16752    *)
16753      if test $USE_NSS = "no"; then
16754	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16755if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16756
16757else
16758  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16759fi
16760
16761	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16762if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16763
16764else
16765  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16766fi
16767
16768	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16769#include <openssl/evp.h>
16770
16771"
16772if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16773  ac_have_decl=1
16774else
16775  ac_have_decl=0
16776fi
16777
16778cat >>confdefs.h <<_ACEOF
16779#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16780_ACEOF
16781if test $ac_have_decl = 1; then :
16782
16783else
16784  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16785fi
16786ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16787#include <openssl/evp.h>
16788
16789"
16790if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16791  ac_have_decl=1
16792else
16793  ac_have_decl=0
16794fi
16795
16796cat >>confdefs.h <<_ACEOF
16797#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16798_ACEOF
16799if test $ac_have_decl = 1; then :
16800
16801else
16802  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16803fi
16804
16805	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16806	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16807$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16808	      if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810$as_echo "no" >&6; }
16811
16812cat >>confdefs.h <<_ACEOF
16813#define USE_ECDSA_EVP_WORKAROUND 1
16814_ACEOF
16815
16816	      else
16817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818$as_echo "yes" >&6; }
16819	      fi
16820      fi
16821      # we now know we have ECDSA and the required curves.
16822
16823cat >>confdefs.h <<_ACEOF
16824#define USE_ECDSA 1
16825_ACEOF
16826
16827      use_ecdsa="yes"
16828      ;;
16829esac
16830
16831# check for libevent
16832
16833# Check whether --with-libevent was given.
16834if test "${with_libevent+set}" = set; then :
16835  withval=$with_libevent;
16836else
16837   withval="no"
16838fi
16839
16840if test x_$withval = x_yes -o x_$withval != x_no; then
16841        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16842$as_echo_n "checking for libevent... " >&6; }
16843        if test x_$withval = x_ -o x_$withval = x_yes; then
16844            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16845        fi
16846        for dir in $withval; do
16847            thedir="$dir"
16848            if test -f "$dir/include/event.h"; then
16849                found_libevent="yes"
16850				if test "$thedir" != "/usr"; then
16851                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
16852		fi
16853                break;
16854            fi
16855        done
16856        if test x_$found_libevent != x_yes; then
16857		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16858			# libevent source directory
16859            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16860$as_echo "found in $thedir" >&6; }
16861                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16862			BAK_LDFLAGS_SET="1"
16863			BAK_LDFLAGS="$LDFLAGS"
16864			# remove evdns from linking
16865			mkdir build >/dev/null 2>&1
16866			mkdir build/libevent >/dev/null 2>&1
16867			mkdir build/libevent/.libs >/dev/null 2>&1
16868			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16869			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16870			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16871			cp $ev_files_o build/libevent
16872			cp $ev_files_lo build/libevent
16873			cp $ev_files_libso build/libevent/.libs
16874            		LATE_LDFLAGS="build/libevent/*.lo -lm"
16875			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16876		else
16877            		as_fn_error $? "Cannot find the libevent library in $withval
16878You can restart ./configure --with-libevent=no to use a builtin alternative.
16879Please note that this alternative is not as capable as libevent when using
16880large outgoing port ranges.  " "$LINENO" 5
16881		fi
16882        else
16883            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16884$as_echo "found in $thedir" >&6; }
16885	    	    if test "$thedir" != "/usr" -a "$thedir" != ""; then
16886                LDFLAGS="$LDFLAGS -L$thedir/lib"
16887
16888	if test "x$enable_rpath" = xyes; then
16889		if echo "$thedir/lib" | grep "^/" >/dev/null; then
16890			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16891		fi
16892	fi
16893
16894	    fi
16895        fi
16896	# check for library used by libevent after 1.3c
16897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16898$as_echo_n "checking for library containing clock_gettime... " >&6; }
16899if ${ac_cv_search_clock_gettime+:} false; then :
16900  $as_echo_n "(cached) " >&6
16901else
16902  ac_func_search_save_LIBS=$LIBS
16903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h.  */
16905
16906/* Override any GCC internal prototype to avoid an error.
16907   Use char because int might match the return type of a GCC
16908   builtin and then its argument prototype would still apply.  */
16909#ifdef __cplusplus
16910extern "C"
16911#endif
16912char clock_gettime ();
16913int
16914main ()
16915{
16916return clock_gettime ();
16917  ;
16918  return 0;
16919}
16920_ACEOF
16921for ac_lib in '' rt; do
16922  if test -z "$ac_lib"; then
16923    ac_res="none required"
16924  else
16925    ac_res=-l$ac_lib
16926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16927  fi
16928  if ac_fn_c_try_link "$LINENO"; then :
16929  ac_cv_search_clock_gettime=$ac_res
16930fi
16931rm -f core conftest.err conftest.$ac_objext \
16932    conftest$ac_exeext
16933  if ${ac_cv_search_clock_gettime+:} false; then :
16934  break
16935fi
16936done
16937if ${ac_cv_search_clock_gettime+:} false; then :
16938
16939else
16940  ac_cv_search_clock_gettime=no
16941fi
16942rm conftest.$ac_ext
16943LIBS=$ac_func_search_save_LIBS
16944fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16946$as_echo "$ac_cv_search_clock_gettime" >&6; }
16947ac_res=$ac_cv_search_clock_gettime
16948if test "$ac_res" != no; then :
16949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16950
16951fi
16952
16953
16954	# is the event.h header libev or libevent?
16955	for ac_header in event.h
16956do :
16957  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16958"
16959if test "x$ac_cv_header_event_h" = xyes; then :
16960  cat >>confdefs.h <<_ACEOF
16961#define HAVE_EVENT_H 1
16962_ACEOF
16963
16964fi
16965
16966done
16967
16968	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16969#include <event.h>
16970
16971"
16972if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16973
16974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16975$as_echo_n "checking for library containing event_set... " >&6; }
16976if ${ac_cv_search_event_set+:} false; then :
16977  $as_echo_n "(cached) " >&6
16978else
16979  ac_func_search_save_LIBS=$LIBS
16980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981/* end confdefs.h.  */
16982
16983/* Override any GCC internal prototype to avoid an error.
16984   Use char because int might match the return type of a GCC
16985   builtin and then its argument prototype would still apply.  */
16986#ifdef __cplusplus
16987extern "C"
16988#endif
16989char event_set ();
16990int
16991main ()
16992{
16993return event_set ();
16994  ;
16995  return 0;
16996}
16997_ACEOF
16998for ac_lib in '' ev; do
16999  if test -z "$ac_lib"; then
17000    ac_res="none required"
17001  else
17002    ac_res=-l$ac_lib
17003    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17004  fi
17005  if ac_fn_c_try_link "$LINENO"; then :
17006  ac_cv_search_event_set=$ac_res
17007fi
17008rm -f core conftest.err conftest.$ac_objext \
17009    conftest$ac_exeext
17010  if ${ac_cv_search_event_set+:} false; then :
17011  break
17012fi
17013done
17014if ${ac_cv_search_event_set+:} false; then :
17015
17016else
17017  ac_cv_search_event_set=no
17018fi
17019rm conftest.$ac_ext
17020LIBS=$ac_func_search_save_LIBS
17021fi
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17023$as_echo "$ac_cv_search_event_set" >&6; }
17024ac_res=$ac_cv_search_event_set
17025if test "$ac_res" != no; then :
17026  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17027
17028fi
17029
17030
17031else
17032
17033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17034$as_echo_n "checking for library containing event_set... " >&6; }
17035if ${ac_cv_search_event_set+:} false; then :
17036  $as_echo_n "(cached) " >&6
17037else
17038  ac_func_search_save_LIBS=$LIBS
17039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040/* end confdefs.h.  */
17041
17042/* Override any GCC internal prototype to avoid an error.
17043   Use char because int might match the return type of a GCC
17044   builtin and then its argument prototype would still apply.  */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048char event_set ();
17049int
17050main ()
17051{
17052return event_set ();
17053  ;
17054  return 0;
17055}
17056_ACEOF
17057for ac_lib in '' event; do
17058  if test -z "$ac_lib"; then
17059    ac_res="none required"
17060  else
17061    ac_res=-l$ac_lib
17062    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17063  fi
17064  if ac_fn_c_try_link "$LINENO"; then :
17065  ac_cv_search_event_set=$ac_res
17066fi
17067rm -f core conftest.err conftest.$ac_objext \
17068    conftest$ac_exeext
17069  if ${ac_cv_search_event_set+:} false; then :
17070  break
17071fi
17072done
17073if ${ac_cv_search_event_set+:} false; then :
17074
17075else
17076  ac_cv_search_event_set=no
17077fi
17078rm conftest.$ac_ext
17079LIBS=$ac_func_search_save_LIBS
17080fi
17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17082$as_echo "$ac_cv_search_event_set" >&6; }
17083ac_res=$ac_cv_search_event_set
17084if test "$ac_res" != no; then :
17085  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17086
17087fi
17088
17089
17090fi
17091
17092	for ac_func in event_base_free
17093do :
17094  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17095if test "x$ac_cv_func_event_base_free" = xyes; then :
17096  cat >>confdefs.h <<_ACEOF
17097#define HAVE_EVENT_BASE_FREE 1
17098_ACEOF
17099
17100fi
17101done
17102 # only in libevent 1.2 and later
17103	for ac_func in event_base_once
17104do :
17105  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17106if test "x$ac_cv_func_event_base_once" = xyes; then :
17107  cat >>confdefs.h <<_ACEOF
17108#define HAVE_EVENT_BASE_ONCE 1
17109_ACEOF
17110
17111fi
17112done
17113 # only in libevent 1.4.1 and later
17114	for ac_func in event_base_new
17115do :
17116  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17117if test "x$ac_cv_func_event_base_new" = xyes; then :
17118  cat >>confdefs.h <<_ACEOF
17119#define HAVE_EVENT_BASE_NEW 1
17120_ACEOF
17121
17122fi
17123done
17124 # only in libevent 1.4.1 and later
17125	for ac_func in event_base_get_method
17126do :
17127  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17128if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17129  cat >>confdefs.h <<_ACEOF
17130#define HAVE_EVENT_BASE_GET_METHOD 1
17131_ACEOF
17132
17133fi
17134done
17135 # only in libevent 1.4.3 and later
17136	for ac_func in ev_loop
17137do :
17138  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17139if test "x$ac_cv_func_ev_loop" = xyes; then :
17140  cat >>confdefs.h <<_ACEOF
17141#define HAVE_EV_LOOP 1
17142_ACEOF
17143
17144fi
17145done
17146 # only in libev. (tested on 3.51)
17147	for ac_func in ev_default_loop
17148do :
17149  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17150if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17151  cat >>confdefs.h <<_ACEOF
17152#define HAVE_EV_DEFAULT_LOOP 1
17153_ACEOF
17154
17155fi
17156done
17157 # only in libev. (tested on 4.00)
17158	if test -n "$BAK_LDFLAGS_SET"; then
17159		LDFLAGS="$BAK_LDFLAGS"
17160	fi
17161else
17162
17163$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17164
17165fi
17166
17167# check for libexpat
17168
17169# Check whether --with-libexpat was given.
17170if test "${with_libexpat+set}" = set; then :
17171  withval=$with_libexpat;
17172else
17173   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17174fi
17175
17176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17177$as_echo_n "checking for libexpat... " >&6; }
17178found_libexpat="no"
17179for dir in $withval ; do
17180            if test -f "$dir/include/expat.h"; then
17181		found_libexpat="yes"
17182				if test "$dir" != "/usr"; then
17183                    CPPFLAGS="$CPPFLAGS -I$dir/include"
17184		    LDFLAGS="$LDFLAGS -L$dir/lib"
17185		fi
17186            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17187$as_echo "found in $dir" >&6; }
17188                break;
17189            fi
17190done
17191if test x_$found_libexpat != x_yes; then
17192	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17193fi
17194for ac_header in expat.h
17195do :
17196  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17197"
17198if test "x$ac_cv_header_expat_h" = xyes; then :
17199  cat >>confdefs.h <<_ACEOF
17200#define HAVE_EXPAT_H 1
17201_ACEOF
17202
17203fi
17204
17205done
17206
17207
17208# set static linking if requested
17209
17210staticexe=""
17211# Check whether --enable-static-exe was given.
17212if test "${enable_static_exe+set}" = set; then :
17213  enableval=$enable_static_exe;
17214fi
17215
17216if test x_$enable_static_exe = x_yes; then
17217	staticexe="-static"
17218	if test "$on_mingw" = yes; then
17219		staticexe="-all-static"
17220		# for static crosscompile, include gdi32 and zlib here.
17221		if test "`uname`" = "Linux"; then
17222			LIBS="$LIBS -lgdi32 -lz"
17223		fi
17224	fi
17225fi
17226
17227# set lock checking if requested
17228# Check whether --enable-lock_checks was given.
17229if test "${enable_lock_checks+set}" = set; then :
17230  enableval=$enable_lock_checks;
17231fi
17232
17233if test x_$enable_lock_checks = x_yes; then
17234
17235$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17236
17237	CHECKLOCK_OBJ="checklocks.lo"
17238
17239fi
17240
17241
17242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17243$as_echo_n "checking for getaddrinfo... " >&6; }
17244ac_cv_func_getaddrinfo=no
17245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247
17248#ifdef __cplusplus
17249extern "C"
17250{
17251#endif
17252char* getaddrinfo();
17253char* (*f) () = getaddrinfo;
17254#ifdef __cplusplus
17255}
17256#endif
17257int main() {
17258        ;
17259        return 0;
17260}
17261
17262_ACEOF
17263if ac_fn_c_try_link "$LINENO"; then :
17264  ac_cv_func_getaddrinfo="yes"
17265if test "$ac_cv_header_windows_h" = "yes"; then
17266
17267$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17268
17269	USE_WINSOCK="1"
17270	LIBS="$LIBS -lws2_32"
17271fi
17272
17273else
17274  ORIGLIBS="$LIBS"
17275LIBS="$LIBS -lws2_32"
17276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277/* end confdefs.h.  */
17278
17279#ifdef HAVE_WS2TCPIP_H
17280#include <ws2tcpip.h>
17281#endif
17282
17283int
17284main ()
17285{
17286
17287        (void)getaddrinfo(NULL, NULL, NULL, NULL);
17288
17289
17290  ;
17291  return 0;
17292}
17293_ACEOF
17294if ac_fn_c_try_link "$LINENO"; then :
17295
17296ac_cv_func_getaddrinfo="yes"
17297
17298$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17299
17300USE_WINSOCK="1"
17301
17302else
17303
17304ac_cv_func_getaddrinfo="no"
17305LIBS="$ORIGLIBS"
17306
17307fi
17308rm -f core conftest.err conftest.$ac_objext \
17309    conftest$ac_exeext conftest.$ac_ext
17310
17311fi
17312rm -f core conftest.err conftest.$ac_objext \
17313    conftest$ac_exeext conftest.$ac_ext
17314
17315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17316$as_echo "$ac_cv_func_getaddrinfo" >&6; }
17317if test $ac_cv_func_getaddrinfo = yes; then
17318
17319$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17320
17321fi
17322
17323if test "$USE_WINSOCK" = 1; then
17324
17325$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17326
17327	for ac_header in iphlpapi.h
17328do :
17329  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17330#include <windows.h>
17331
17332"
17333if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17334  cat >>confdefs.h <<_ACEOF
17335#define HAVE_IPHLPAPI_H 1
17336_ACEOF
17337
17338fi
17339
17340done
17341
17342	if test -n "$ac_tool_prefix"; then
17343  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17344set dummy ${ac_tool_prefix}windres; ac_word=$2
17345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17346$as_echo_n "checking for $ac_word... " >&6; }
17347if ${ac_cv_prog_WINDRES+:} false; then :
17348  $as_echo_n "(cached) " >&6
17349else
17350  if test -n "$WINDRES"; then
17351  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17352else
17353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17354for as_dir in $PATH
17355do
17356  IFS=$as_save_IFS
17357  test -z "$as_dir" && as_dir=.
17358    for ac_exec_ext in '' $ac_executable_extensions; do
17359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17360    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17362    break 2
17363  fi
17364done
17365  done
17366IFS=$as_save_IFS
17367
17368fi
17369fi
17370WINDRES=$ac_cv_prog_WINDRES
17371if test -n "$WINDRES"; then
17372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17373$as_echo "$WINDRES" >&6; }
17374else
17375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376$as_echo "no" >&6; }
17377fi
17378
17379
17380fi
17381if test -z "$ac_cv_prog_WINDRES"; then
17382  ac_ct_WINDRES=$WINDRES
17383  # Extract the first word of "windres", so it can be a program name with args.
17384set dummy windres; ac_word=$2
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17386$as_echo_n "checking for $ac_word... " >&6; }
17387if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17388  $as_echo_n "(cached) " >&6
17389else
17390  if test -n "$ac_ct_WINDRES"; then
17391  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17392else
17393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394for as_dir in $PATH
17395do
17396  IFS=$as_save_IFS
17397  test -z "$as_dir" && as_dir=.
17398    for ac_exec_ext in '' $ac_executable_extensions; do
17399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400    ac_cv_prog_ac_ct_WINDRES="windres"
17401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17402    break 2
17403  fi
17404done
17405  done
17406IFS=$as_save_IFS
17407
17408fi
17409fi
17410ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17411if test -n "$ac_ct_WINDRES"; then
17412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17413$as_echo "$ac_ct_WINDRES" >&6; }
17414else
17415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416$as_echo "no" >&6; }
17417fi
17418
17419  if test "x$ac_ct_WINDRES" = x; then
17420    WINDRES=""
17421  else
17422    case $cross_compiling:$ac_tool_warned in
17423yes:)
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17426ac_tool_warned=yes ;;
17427esac
17428    WINDRES=$ac_ct_WINDRES
17429  fi
17430else
17431  WINDRES="$ac_cv_prog_WINDRES"
17432fi
17433
17434	LIBS="$LIBS -liphlpapi"
17435	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17436
17437	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17438
17439	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17440
17441	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17442
17443	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17444
17445	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17446
17447	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17448
17449	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17450
17451fi
17452if test $ac_cv_func_getaddrinfo = no; then
17453	case " $LIBOBJS " in
17454  *" fake-rfc2553.$ac_objext "* ) ;;
17455  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17456 ;;
17457esac
17458
17459fi
17460# check after getaddrinfo for its libraries
17461
17462# check ioctlsocket
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17464$as_echo_n "checking for ioctlsocket... " >&6; }
17465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467
17468#ifdef HAVE_WINSOCK2_H
17469#include <winsock2.h>
17470#endif
17471
17472int
17473main ()
17474{
17475
17476	(void)ioctlsocket(0, 0, NULL);
17477
17478  ;
17479  return 0;
17480}
17481_ACEOF
17482if ac_fn_c_try_link "$LINENO"; then :
17483
17484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17485$as_echo "yes" >&6; }
17486
17487$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17488
17489
17490else
17491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492$as_echo "no" >&6; }
17493fi
17494rm -f core conftest.err conftest.$ac_objext \
17495    conftest$ac_exeext conftest.$ac_ext
17496
17497
17498# see if daemon(3) exists, and if it is deprecated.
17499for ac_func in daemon
17500do :
17501  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17502if test "x$ac_cv_func_daemon" = xyes; then :
17503  cat >>confdefs.h <<_ACEOF
17504#define HAVE_DAEMON 1
17505_ACEOF
17506
17507fi
17508done
17509
17510if test $ac_cv_func_daemon = yes; then
17511
17512
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17514$as_echo_n "checking if daemon is deprecated... " >&6; }
17515cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17516if eval \${cv_cc_deprecated_$cache+:} false; then :
17517  $as_echo_n "(cached) " >&6
17518else
17519
17520echo '
17521#include <stdlib.h>
17522' >conftest.c
17523echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17524if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17525eval "cv_cc_deprecated_$cache=no"
17526else
17527eval "cv_cc_deprecated_$cache=yes"
17528fi
17529rm -f conftest conftest.o conftest.c
17530
17531fi
17532
17533if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17535$as_echo "yes" >&6; }
17536
17537cat >>confdefs.h <<_ACEOF
17538#define DEPRECATED_DAEMON 1
17539_ACEOF
17540
17541:
17542
17543else
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17545$as_echo "no" >&6; }
17546:
17547
17548fi
17549
17550fi
17551
17552ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17553$ac_includes_default
17554#if HAVE_SYS_PARAM_H
17555#include <sys/param.h>
17556#endif
17557
17558#ifdef HAVE_SYS_SOCKET_H
17559#include <sys/socket.h>
17560#endif
17561
17562#ifdef HAVE_SYS_UIO_H
17563#include <sys/uio.h>
17564#endif
17565
17566#ifdef HAVE_NETINET_IN_H
17567#include <netinet/in.h>
17568#endif
17569
17570#ifdef HAVE_ARPA_INET_H
17571#include <arpa/inet.h>
17572#endif
17573
17574#ifdef HAVE_WINSOCK2_H
17575#include <winsock2.h>
17576#endif
17577
17578#ifdef HAVE_WS2TCPIP_H
17579#include <ws2tcpip.h>
17580#endif
17581
17582"
17583if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17584
17585cat >>confdefs.h <<_ACEOF
17586#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17587_ACEOF
17588
17589
17590fi
17591
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17593$as_echo_n "checking for library containing setusercontext... " >&6; }
17594if ${ac_cv_search_setusercontext+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597  ac_func_search_save_LIBS=$LIBS
17598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600
17601/* Override any GCC internal prototype to avoid an error.
17602   Use char because int might match the return type of a GCC
17603   builtin and then its argument prototype would still apply.  */
17604#ifdef __cplusplus
17605extern "C"
17606#endif
17607char setusercontext ();
17608int
17609main ()
17610{
17611return setusercontext ();
17612  ;
17613  return 0;
17614}
17615_ACEOF
17616for ac_lib in '' util; do
17617  if test -z "$ac_lib"; then
17618    ac_res="none required"
17619  else
17620    ac_res=-l$ac_lib
17621    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17622  fi
17623  if ac_fn_c_try_link "$LINENO"; then :
17624  ac_cv_search_setusercontext=$ac_res
17625fi
17626rm -f core conftest.err conftest.$ac_objext \
17627    conftest$ac_exeext
17628  if ${ac_cv_search_setusercontext+:} false; then :
17629  break
17630fi
17631done
17632if ${ac_cv_search_setusercontext+:} false; then :
17633
17634else
17635  ac_cv_search_setusercontext=no
17636fi
17637rm conftest.$ac_ext
17638LIBS=$ac_func_search_save_LIBS
17639fi
17640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17641$as_echo "$ac_cv_search_setusercontext" >&6; }
17642ac_res=$ac_cv_search_setusercontext
17643if test "$ac_res" != no; then :
17644  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17645
17646fi
17647
17648for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex
17649do :
17650  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17652if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17653  cat >>confdefs.h <<_ACEOF
17654#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17655_ACEOF
17656
17657fi
17658done
17659
17660for ac_func in setresuid
17661do :
17662  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17663if test "x$ac_cv_func_setresuid" = xyes; then :
17664  cat >>confdefs.h <<_ACEOF
17665#define HAVE_SETRESUID 1
17666_ACEOF
17667
17668else
17669  for ac_func in setreuid
17670do :
17671  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17672if test "x$ac_cv_func_setreuid" = xyes; then :
17673  cat >>confdefs.h <<_ACEOF
17674#define HAVE_SETREUID 1
17675_ACEOF
17676
17677fi
17678done
17679
17680fi
17681done
17682
17683for ac_func in setresgid
17684do :
17685  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17686if test "x$ac_cv_func_setresgid" = xyes; then :
17687  cat >>confdefs.h <<_ACEOF
17688#define HAVE_SETRESGID 1
17689_ACEOF
17690
17691else
17692  for ac_func in setregid
17693do :
17694  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17695if test "x$ac_cv_func_setregid" = xyes; then :
17696  cat >>confdefs.h <<_ACEOF
17697#define HAVE_SETREGID 1
17698_ACEOF
17699
17700fi
17701done
17702
17703fi
17704done
17705
17706
17707# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17708if echo $build_os | grep darwin8 > /dev/null; then
17709
17710$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17711
17712fi
17713ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17714if test "x$ac_cv_func_inet_aton" = xyes; then :
17715  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17716
17717else
17718  case " $LIBOBJS " in
17719  *" inet_aton.$ac_objext "* ) ;;
17720  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17721 ;;
17722esac
17723
17724fi
17725
17726
17727ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17728if test "x$ac_cv_func_inet_pton" = xyes; then :
17729  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17730
17731else
17732  case " $LIBOBJS " in
17733  *" inet_pton.$ac_objext "* ) ;;
17734  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17735 ;;
17736esac
17737
17738fi
17739
17740
17741ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17742if test "x$ac_cv_func_inet_ntop" = xyes; then :
17743  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17744
17745else
17746  case " $LIBOBJS " in
17747  *" inet_ntop.$ac_objext "* ) ;;
17748  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17749 ;;
17750esac
17751
17752fi
17753
17754
17755ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17756if test "x$ac_cv_func_snprintf" = xyes; then :
17757  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17758
17759else
17760  case " $LIBOBJS " in
17761  *" snprintf.$ac_objext "* ) ;;
17762  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17763 ;;
17764esac
17765
17766fi
17767
17768
17769ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17770if test "x$ac_cv_func_strlcpy" = xyes; then :
17771  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17772
17773else
17774  case " $LIBOBJS " in
17775  *" strlcpy.$ac_objext "* ) ;;
17776  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17777 ;;
17778esac
17779
17780fi
17781
17782
17783ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17784if test "x$ac_cv_func_memmove" = xyes; then :
17785  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17786
17787else
17788  case " $LIBOBJS " in
17789  *" memmove.$ac_objext "* ) ;;
17790  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17791 ;;
17792esac
17793
17794fi
17795
17796
17797ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17798if test "x$ac_cv_func_gmtime_r" = xyes; then :
17799  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17800
17801else
17802  case " $LIBOBJS " in
17803  *" gmtime_r.$ac_objext "* ) ;;
17804  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17805 ;;
17806esac
17807
17808fi
17809
17810
17811LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17812
17813ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17814if test "x$ac_cv_func_ctime_r" = xyes; then :
17815  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17816
17817else
17818  case " $LIBOBJS " in
17819  *" ctime_r.$ac_objext "* ) ;;
17820  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17821 ;;
17822esac
17823
17824fi
17825
17826
17827
17828# Check whether --enable-allsymbols was given.
17829if test "${enable_allsymbols+set}" = set; then :
17830  enableval=$enable_allsymbols;
17831fi
17832
17833case "$enable_allsymbols" in
17834	yes)
17835	COMMON_OBJ_ALL_SYMBOLS=""
17836	UBSYMS=""
17837	EXTRALINK="-L. -L.libs -lunbound"
17838
17839$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17840
17841	;;
17842	no|*)
17843	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17844	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17845	EXTRALINK=""
17846	;;
17847esac
17848
17849
17850
17851if test x_$enable_lock_checks = x_yes; then
17852	UBSYMS="-export-symbols clubsyms.def"
17853	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17854	echo lock_protect >> clubsyms.def
17855	echo lock_unprotect >> clubsyms.def
17856	echo lock_get_mem >> clubsyms.def
17857	echo checklock_start >> clubsyms.def
17858	echo checklock_stop >> clubsyms.def
17859	echo checklock_lock >> clubsyms.def
17860	echo checklock_unlock >> clubsyms.def
17861	echo checklock_init >> clubsyms.def
17862	echo checklock_thrcreate >> clubsyms.def
17863	echo checklock_thrjoin >> clubsyms.def
17864fi
17865
17866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17867$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17868# on openBSD, the implicit rule make $< work.
17869# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17870# gmake works.
17871cat >conftest.make <<EOF
17872all:	conftest.lo
17873
17874conftest.lo foo.lo bla.lo:
17875	if test -f "\$<"; then touch \$@; fi
17876
17877.SUFFIXES: .lo
17878.c.lo:
17879	if test -f "\$<"; then touch \$@; fi
17880
17881conftest.lo:        conftest.dir/conftest.c
17882EOF
17883mkdir conftest.dir
17884touch conftest.dir/conftest.c
17885rm -f conftest.lo conftest.c
17886${MAKE:-make} -f conftest.make >/dev/null
17887rm -f conftest.make conftest.c conftest.dir/conftest.c
17888rm -rf conftest.dir
17889if test ! -f conftest.lo; then
17890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891$as_echo "no" >&6; }
17892	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17893	SOURCEFILE='`cat .source`'
17894else
17895	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17896$as_echo "yes" >&6; }
17897	SOURCEDETERMINE=':'
17898	SOURCEFILE='$<'
17899fi
17900rm -f conftest.lo
17901
17902
17903
17904# see if we want to build the library or everything
17905ALLTARGET="alltargets"
17906
17907# Check whether --with-libunbound-only was given.
17908if test "${with_libunbound_only+set}" = set; then :
17909  withval=$with_libunbound_only;
17910	if test "$withval" = "yes"; then
17911		ALLTARGET="lib"
17912	fi
17913
17914fi
17915
17916
17917
17918# check this after all other compilation checks, since the linking of the lib
17919# may break checks after this.
17920
17921# Check whether --with-ldns was given.
17922if test "${with_ldns+set}" = set; then :
17923  withval=$with_ldns;
17924	if test "$withval" != "yes"; then
17925		if test "$withval" != "/usr" -a "$withval" != ""; then
17926			CPPFLAGS="-I$withval/include $CPPFLAGS"
17927			LDFLAGS="-L$withval/lib $LDFLAGS"
17928
17929	if test "x$enable_rpath" = xyes; then
17930		if echo "$withval/lib" | grep "^/" >/dev/null; then
17931			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17932		fi
17933	fi
17934
17935		fi
17936		ldnsdir="$withval"
17937
17938	fi
17939
17940fi
17941
17942
17943# check if ldns is good enough
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17945$as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17946if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17947  $as_echo_n "(cached) " >&6
17948else
17949  ac_check_lib_save_LIBS=$LIBS
17950LIBS="-lldns  $LIBS"
17951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952/* end confdefs.h.  */
17953
17954/* Override any GCC internal prototype to avoid an error.
17955   Use char because int might match the return type of a GCC
17956   builtin and then its argument prototype would still apply.  */
17957#ifdef __cplusplus
17958extern "C"
17959#endif
17960char ldns_rr_new ();
17961int
17962main ()
17963{
17964return ldns_rr_new ();
17965  ;
17966  return 0;
17967}
17968_ACEOF
17969if ac_fn_c_try_link "$LINENO"; then :
17970  ac_cv_lib_ldns_ldns_rr_new=yes
17971else
17972  ac_cv_lib_ldns_ldns_rr_new=no
17973fi
17974rm -f core conftest.err conftest.$ac_objext \
17975    conftest$ac_exeext conftest.$ac_ext
17976LIBS=$ac_check_lib_save_LIBS
17977fi
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17979$as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17980if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17981  cat >>confdefs.h <<_ACEOF
17982#define HAVE_LIBLDNS 1
17983_ACEOF
17984
17985  LIBS="-lldns $LIBS"
17986
17987else
17988
17989	as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17990
17991fi
17992
17993ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17994if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17995
17996fi
17997
17998if test $USE_NSS = "no"; then
17999    ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
18000if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
18001
18002fi
18003
18004else
18005        ac_cv_func_ldns_key_buf2rsa_raw="yes"
18006fi
18007ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
18008if test "x$ac_cv_func_ldns_get_random" = xyes; then :
18009
18010fi
18011
18012ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
18013if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
18014
18015fi
18016
18017if test x$use_gost = xyes -a x$USE_NSS = xno; then
18018    ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
18019if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
18020
18021fi
18022
18023    for ac_func in ldns_key_EVP_unload_gost
18024do :
18025  ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
18026if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
18027  cat >>confdefs.h <<_ACEOF
18028#define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
18029_ACEOF
18030
18031fi
18032done
18033
18034else
18035        ac_cv_func_ldns_key_EVP_load_gost_id="yes"
18036fi
18037if test x$use_ecdsa = xyes; then
18038    ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
18039$ac_includes_default
18040#ifdef HAVE_SYS_SOCKET_H
18041#  include <sys/socket.h>
18042#endif
18043#ifdef HAVE_WS2TCPIP_H
18044#  include <ws2tcpip.h>
18045#endif
18046#include <ldns/ldns.h>
18047
18048"
18049if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
18050
18051fi
18052
18053else
18054    ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
18055fi
18056for ac_header in ldns/ldns.h
18057do :
18058  ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
18059#ifdef HAVE_SYS_SOCKET_H
18060#include <sys/socket.h>
18061#endif
18062
18063#ifdef HAVE_NETINET_IN_H
18064#include <netinet/in.h>
18065#endif
18066
18067#ifdef HAVE_ARPA_INET_H
18068#include <arpa/inet.h>
18069#endif
18070
18071#ifdef HAVE_WINSOCK2_H
18072#include <winsock2.h>
18073#endif
18074
18075#ifdef HAVE_WS2TCPIP_H
18076#include <ws2tcpip.h>
18077#endif
18078
18079"
18080if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18081  cat >>confdefs.h <<_ACEOF
18082#define HAVE_LDNS_LDNS_H 1
18083_ACEOF
18084
18085else
18086
18087	as_fn_error $? "No ldns include file found, install the ldns library development files.  Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18088
18089fi
18090
18091done
18092
18093if test $ac_cv_func_ldns_buffer_copy = yes \
18094    -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18095    -a $ac_cv_func_ldns_get_random = yes \
18096    -a $ac_cv_header_ldns_ldns_h = yes \
18097    -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18098    -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18099    -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18100        :
18101else
18102    as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18103fi
18104
18105
18106  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18107$as_echo "$as_me: Stripping extension flags..." >&6;}
18108
18109  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18110    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18111
18112$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18113
18114  fi
18115
18116
18117  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18118    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18119
18120$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18121
18122  fi
18123
18124
18125  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18126    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18127
18128$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18129
18130  fi
18131
18132
18133  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18134    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18135
18136$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18137
18138  fi
18139
18140
18141  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18142    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18143
18144$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18145
18146  fi
18147
18148
18149  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18150    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18151
18152$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18153
18154  fi
18155
18156
18157  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18158    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18159
18160$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18161
18162  fi
18163
18164
18165  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18166    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18167
18168$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18169
18170  fi
18171
18172
18173LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18174
18175
18176cat >>confdefs.h <<_ACEOF
18177#define MAXSYSLOGMSGLEN 10240
18178_ACEOF
18179
18180
18181
18182
18183ac_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"
18184
18185ac_config_headers="$ac_config_headers config.h"
18186
18187cat >confcache <<\_ACEOF
18188# This file is a shell script that caches the results of configure
18189# tests run on this system so they can be shared between configure
18190# scripts and configure runs, see configure's option --config-cache.
18191# It is not useful on other systems.  If it contains results you don't
18192# want to keep, you may remove or edit it.
18193#
18194# config.status only pays attention to the cache file if you give it
18195# the --recheck option to rerun configure.
18196#
18197# `ac_cv_env_foo' variables (set or unset) will be overridden when
18198# loading this file, other *unset* `ac_cv_foo' will be assigned the
18199# following values.
18200
18201_ACEOF
18202
18203# The following way of writing the cache mishandles newlines in values,
18204# but we know of no workaround that is simple, portable, and efficient.
18205# So, we kill variables containing newlines.
18206# Ultrix sh set writes to stderr and can't be redirected directly,
18207# and sets the high bit in the cache file unless we assign to the vars.
18208(
18209  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18210    eval ac_val=\$$ac_var
18211    case $ac_val in #(
18212    *${as_nl}*)
18213      case $ac_var in #(
18214      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18216      esac
18217      case $ac_var in #(
18218      _ | IFS | as_nl) ;; #(
18219      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18220      *) { eval $ac_var=; unset $ac_var;} ;;
18221      esac ;;
18222    esac
18223  done
18224
18225  (set) 2>&1 |
18226    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18227    *${as_nl}ac_space=\ *)
18228      # `set' does not quote correctly, so add quotes: double-quote
18229      # substitution turns \\\\ into \\, and sed turns \\ into \.
18230      sed -n \
18231	"s/'/'\\\\''/g;
18232	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18233      ;; #(
18234    *)
18235      # `set' quotes correctly as required by POSIX, so do not add quotes.
18236      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18237      ;;
18238    esac |
18239    sort
18240) |
18241  sed '
18242     /^ac_cv_env_/b end
18243     t clear
18244     :clear
18245     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18246     t end
18247     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18248     :end' >>confcache
18249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18250  if test -w "$cache_file"; then
18251    if test "x$cache_file" != "x/dev/null"; then
18252      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18253$as_echo "$as_me: updating cache $cache_file" >&6;}
18254      if test ! -f "$cache_file" || test -h "$cache_file"; then
18255	cat confcache >"$cache_file"
18256      else
18257        case $cache_file in #(
18258        */* | ?:*)
18259	  mv -f confcache "$cache_file"$$ &&
18260	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18261        *)
18262	  mv -f confcache "$cache_file" ;;
18263	esac
18264      fi
18265    fi
18266  else
18267    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18268$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18269  fi
18270fi
18271rm -f confcache
18272
18273test "x$prefix" = xNONE && prefix=$ac_default_prefix
18274# Let make expand exec_prefix.
18275test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18276
18277DEFS=-DHAVE_CONFIG_H
18278
18279ac_libobjs=
18280ac_ltlibobjs=
18281U=
18282for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18283  # 1. Remove the extension, and $U if already installed.
18284  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18285  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18286  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18287  #    will be set to the directory where LIBOBJS objects are built.
18288  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18289  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18290done
18291LIBOBJS=$ac_libobjs
18292
18293LTLIBOBJS=$ac_ltlibobjs
18294
18295
18296
18297: "${CONFIG_STATUS=./config.status}"
18298ac_write_fail=0
18299ac_clean_files_save=$ac_clean_files
18300ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18301{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18302$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18303as_write_fail=0
18304cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18305#! $SHELL
18306# Generated by $as_me.
18307# Run this file to recreate the current configuration.
18308# Compiler output produced by configure, useful for debugging
18309# configure, is in config.log if it exists.
18310
18311debug=false
18312ac_cs_recheck=false
18313ac_cs_silent=false
18314
18315SHELL=\${CONFIG_SHELL-$SHELL}
18316export SHELL
18317_ASEOF
18318cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18319## -------------------- ##
18320## M4sh Initialization. ##
18321## -------------------- ##
18322
18323# Be more Bourne compatible
18324DUALCASE=1; export DUALCASE # for MKS sh
18325if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18326  emulate sh
18327  NULLCMD=:
18328  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18329  # is contrary to our usage.  Disable this feature.
18330  alias -g '${1+"$@"}'='"$@"'
18331  setopt NO_GLOB_SUBST
18332else
18333  case `(set -o) 2>/dev/null` in #(
18334  *posix*) :
18335    set -o posix ;; #(
18336  *) :
18337     ;;
18338esac
18339fi
18340
18341
18342as_nl='
18343'
18344export as_nl
18345# Printing a long string crashes Solaris 7 /usr/bin/printf.
18346as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18347as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18348as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18349# Prefer a ksh shell builtin over an external printf program on Solaris,
18350# but without wasting forks for bash or zsh.
18351if test -z "$BASH_VERSION$ZSH_VERSION" \
18352    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18353  as_echo='print -r --'
18354  as_echo_n='print -rn --'
18355elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18356  as_echo='printf %s\n'
18357  as_echo_n='printf %s'
18358else
18359  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18360    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18361    as_echo_n='/usr/ucb/echo -n'
18362  else
18363    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18364    as_echo_n_body='eval
18365      arg=$1;
18366      case $arg in #(
18367      *"$as_nl"*)
18368	expr "X$arg" : "X\\(.*\\)$as_nl";
18369	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18370      esac;
18371      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18372    '
18373    export as_echo_n_body
18374    as_echo_n='sh -c $as_echo_n_body as_echo'
18375  fi
18376  export as_echo_body
18377  as_echo='sh -c $as_echo_body as_echo'
18378fi
18379
18380# The user is always right.
18381if test "${PATH_SEPARATOR+set}" != set; then
18382  PATH_SEPARATOR=:
18383  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18384    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18385      PATH_SEPARATOR=';'
18386  }
18387fi
18388
18389
18390# IFS
18391# We need space, tab and new line, in precisely that order.  Quoting is
18392# there to prevent editors from complaining about space-tab.
18393# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18394# splitting by setting IFS to empty value.)
18395IFS=" ""	$as_nl"
18396
18397# Find who we are.  Look in the path if we contain no directory separator.
18398as_myself=
18399case $0 in #((
18400  *[\\/]* ) as_myself=$0 ;;
18401  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402for as_dir in $PATH
18403do
18404  IFS=$as_save_IFS
18405  test -z "$as_dir" && as_dir=.
18406    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18407  done
18408IFS=$as_save_IFS
18409
18410     ;;
18411esac
18412# We did not find ourselves, most probably we were run as `sh COMMAND'
18413# in which case we are not to be found in the path.
18414if test "x$as_myself" = x; then
18415  as_myself=$0
18416fi
18417if test ! -f "$as_myself"; then
18418  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18419  exit 1
18420fi
18421
18422# Unset variables that we do not need and which cause bugs (e.g. in
18423# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18424# suppresses any "Segmentation fault" message there.  '((' could
18425# trigger a bug in pdksh 5.2.14.
18426for as_var in BASH_ENV ENV MAIL MAILPATH
18427do eval test x\${$as_var+set} = xset \
18428  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18429done
18430PS1='$ '
18431PS2='> '
18432PS4='+ '
18433
18434# NLS nuisances.
18435LC_ALL=C
18436export LC_ALL
18437LANGUAGE=C
18438export LANGUAGE
18439
18440# CDPATH.
18441(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18442
18443
18444# as_fn_error STATUS ERROR [LINENO LOG_FD]
18445# ----------------------------------------
18446# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18447# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18448# script with STATUS, using 1 if that was 0.
18449as_fn_error ()
18450{
18451  as_status=$1; test $as_status -eq 0 && as_status=1
18452  if test "$4"; then
18453    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18454    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18455  fi
18456  $as_echo "$as_me: error: $2" >&2
18457  as_fn_exit $as_status
18458} # as_fn_error
18459
18460
18461# as_fn_set_status STATUS
18462# -----------------------
18463# Set $? to STATUS, without forking.
18464as_fn_set_status ()
18465{
18466  return $1
18467} # as_fn_set_status
18468
18469# as_fn_exit STATUS
18470# -----------------
18471# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18472as_fn_exit ()
18473{
18474  set +e
18475  as_fn_set_status $1
18476  exit $1
18477} # as_fn_exit
18478
18479# as_fn_unset VAR
18480# ---------------
18481# Portably unset VAR.
18482as_fn_unset ()
18483{
18484  { eval $1=; unset $1;}
18485}
18486as_unset=as_fn_unset
18487# as_fn_append VAR VALUE
18488# ----------------------
18489# Append the text in VALUE to the end of the definition contained in VAR. Take
18490# advantage of any shell optimizations that allow amortized linear growth over
18491# repeated appends, instead of the typical quadratic growth present in naive
18492# implementations.
18493if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18494  eval 'as_fn_append ()
18495  {
18496    eval $1+=\$2
18497  }'
18498else
18499  as_fn_append ()
18500  {
18501    eval $1=\$$1\$2
18502  }
18503fi # as_fn_append
18504
18505# as_fn_arith ARG...
18506# ------------------
18507# Perform arithmetic evaluation on the ARGs, and store the result in the
18508# global $as_val. Take advantage of shells that can avoid forks. The arguments
18509# must be portable across $(()) and expr.
18510if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18511  eval 'as_fn_arith ()
18512  {
18513    as_val=$(( $* ))
18514  }'
18515else
18516  as_fn_arith ()
18517  {
18518    as_val=`expr "$@" || test $? -eq 1`
18519  }
18520fi # as_fn_arith
18521
18522
18523if expr a : '\(a\)' >/dev/null 2>&1 &&
18524   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18525  as_expr=expr
18526else
18527  as_expr=false
18528fi
18529
18530if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18531  as_basename=basename
18532else
18533  as_basename=false
18534fi
18535
18536if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18537  as_dirname=dirname
18538else
18539  as_dirname=false
18540fi
18541
18542as_me=`$as_basename -- "$0" ||
18543$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18544	 X"$0" : 'X\(//\)$' \| \
18545	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18546$as_echo X/"$0" |
18547    sed '/^.*\/\([^/][^/]*\)\/*$/{
18548	    s//\1/
18549	    q
18550	  }
18551	  /^X\/\(\/\/\)$/{
18552	    s//\1/
18553	    q
18554	  }
18555	  /^X\/\(\/\).*/{
18556	    s//\1/
18557	    q
18558	  }
18559	  s/.*/./; q'`
18560
18561# Avoid depending upon Character Ranges.
18562as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18563as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18564as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18565as_cr_digits='0123456789'
18566as_cr_alnum=$as_cr_Letters$as_cr_digits
18567
18568ECHO_C= ECHO_N= ECHO_T=
18569case `echo -n x` in #(((((
18570-n*)
18571  case `echo 'xy\c'` in
18572  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18573  xy)  ECHO_C='\c';;
18574  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18575       ECHO_T='	';;
18576  esac;;
18577*)
18578  ECHO_N='-n';;
18579esac
18580
18581rm -f conf$$ conf$$.exe conf$$.file
18582if test -d conf$$.dir; then
18583  rm -f conf$$.dir/conf$$.file
18584else
18585  rm -f conf$$.dir
18586  mkdir conf$$.dir 2>/dev/null
18587fi
18588if (echo >conf$$.file) 2>/dev/null; then
18589  if ln -s conf$$.file conf$$ 2>/dev/null; then
18590    as_ln_s='ln -s'
18591    # ... but there are two gotchas:
18592    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18593    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18594    # In both cases, we have to default to `cp -pR'.
18595    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18596      as_ln_s='cp -pR'
18597  elif ln conf$$.file conf$$ 2>/dev/null; then
18598    as_ln_s=ln
18599  else
18600    as_ln_s='cp -pR'
18601  fi
18602else
18603  as_ln_s='cp -pR'
18604fi
18605rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18606rmdir conf$$.dir 2>/dev/null
18607
18608
18609# as_fn_mkdir_p
18610# -------------
18611# Create "$as_dir" as a directory, including parents if necessary.
18612as_fn_mkdir_p ()
18613{
18614
18615  case $as_dir in #(
18616  -*) as_dir=./$as_dir;;
18617  esac
18618  test -d "$as_dir" || eval $as_mkdir_p || {
18619    as_dirs=
18620    while :; do
18621      case $as_dir in #(
18622      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18623      *) as_qdir=$as_dir;;
18624      esac
18625      as_dirs="'$as_qdir' $as_dirs"
18626      as_dir=`$as_dirname -- "$as_dir" ||
18627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18628	 X"$as_dir" : 'X\(//\)[^/]' \| \
18629	 X"$as_dir" : 'X\(//\)$' \| \
18630	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18631$as_echo X"$as_dir" |
18632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18633	    s//\1/
18634	    q
18635	  }
18636	  /^X\(\/\/\)[^/].*/{
18637	    s//\1/
18638	    q
18639	  }
18640	  /^X\(\/\/\)$/{
18641	    s//\1/
18642	    q
18643	  }
18644	  /^X\(\/\).*/{
18645	    s//\1/
18646	    q
18647	  }
18648	  s/.*/./; q'`
18649      test -d "$as_dir" && break
18650    done
18651    test -z "$as_dirs" || eval "mkdir $as_dirs"
18652  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18653
18654
18655} # as_fn_mkdir_p
18656if mkdir -p . 2>/dev/null; then
18657  as_mkdir_p='mkdir -p "$as_dir"'
18658else
18659  test -d ./-p && rmdir ./-p
18660  as_mkdir_p=false
18661fi
18662
18663
18664# as_fn_executable_p FILE
18665# -----------------------
18666# Test if FILE is an executable regular file.
18667as_fn_executable_p ()
18668{
18669  test -f "$1" && test -x "$1"
18670} # as_fn_executable_p
18671as_test_x='test -x'
18672as_executable_p=as_fn_executable_p
18673
18674# Sed expression to map a string onto a valid CPP name.
18675as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18676
18677# Sed expression to map a string onto a valid variable name.
18678as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18679
18680
18681exec 6>&1
18682## ----------------------------------- ##
18683## Main body of $CONFIG_STATUS script. ##
18684## ----------------------------------- ##
18685_ASEOF
18686test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18687
18688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689# Save the log message, to keep $0 and so on meaningful, and to
18690# report actual input values of CONFIG_FILES etc. instead of their
18691# values after options handling.
18692ac_log="
18693This file was extended by unbound $as_me 1.4.20, which was
18694generated by GNU Autoconf 2.69.  Invocation command line was
18695
18696  CONFIG_FILES    = $CONFIG_FILES
18697  CONFIG_HEADERS  = $CONFIG_HEADERS
18698  CONFIG_LINKS    = $CONFIG_LINKS
18699  CONFIG_COMMANDS = $CONFIG_COMMANDS
18700  $ $0 $@
18701
18702on `(hostname || uname -n) 2>/dev/null | sed 1q`
18703"
18704
18705_ACEOF
18706
18707case $ac_config_files in *"
18708"*) set x $ac_config_files; shift; ac_config_files=$*;;
18709esac
18710
18711case $ac_config_headers in *"
18712"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18713esac
18714
18715
18716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18717# Files that config.status was made for.
18718config_files="$ac_config_files"
18719config_headers="$ac_config_headers"
18720config_commands="$ac_config_commands"
18721
18722_ACEOF
18723
18724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18725ac_cs_usage="\
18726\`$as_me' instantiates files and other configuration actions
18727from templates according to the current configuration.  Unless the files
18728and actions are specified as TAGs, all are instantiated by default.
18729
18730Usage: $0 [OPTION]... [TAG]...
18731
18732  -h, --help       print this help, then exit
18733  -V, --version    print version number and configuration settings, then exit
18734      --config     print configuration, then exit
18735  -q, --quiet, --silent
18736                   do not print progress messages
18737  -d, --debug      don't remove temporary files
18738      --recheck    update $as_me by reconfiguring in the same conditions
18739      --file=FILE[:TEMPLATE]
18740                   instantiate the configuration file FILE
18741      --header=FILE[:TEMPLATE]
18742                   instantiate the configuration header FILE
18743
18744Configuration files:
18745$config_files
18746
18747Configuration headers:
18748$config_headers
18749
18750Configuration commands:
18751$config_commands
18752
18753Report bugs to <unbound-bugs@nlnetlabs.nl>."
18754
18755_ACEOF
18756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18757ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18758ac_cs_version="\\
18759unbound config.status 1.4.20
18760configured by $0, generated by GNU Autoconf 2.69,
18761  with options \\"\$ac_cs_config\\"
18762
18763Copyright (C) 2012 Free Software Foundation, Inc.
18764This config.status script is free software; the Free Software Foundation
18765gives unlimited permission to copy, distribute and modify it."
18766
18767ac_pwd='$ac_pwd'
18768srcdir='$srcdir'
18769AWK='$AWK'
18770test -n "\$AWK" || AWK=awk
18771_ACEOF
18772
18773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774# The default lists apply if the user does not specify any file.
18775ac_need_defaults=:
18776while test $# != 0
18777do
18778  case $1 in
18779  --*=?*)
18780    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18781    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18782    ac_shift=:
18783    ;;
18784  --*=)
18785    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18786    ac_optarg=
18787    ac_shift=:
18788    ;;
18789  *)
18790    ac_option=$1
18791    ac_optarg=$2
18792    ac_shift=shift
18793    ;;
18794  esac
18795
18796  case $ac_option in
18797  # Handling of the options.
18798  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18799    ac_cs_recheck=: ;;
18800  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18801    $as_echo "$ac_cs_version"; exit ;;
18802  --config | --confi | --conf | --con | --co | --c )
18803    $as_echo "$ac_cs_config"; exit ;;
18804  --debug | --debu | --deb | --de | --d | -d )
18805    debug=: ;;
18806  --file | --fil | --fi | --f )
18807    $ac_shift
18808    case $ac_optarg in
18809    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18810    '') as_fn_error $? "missing file argument" ;;
18811    esac
18812    as_fn_append CONFIG_FILES " '$ac_optarg'"
18813    ac_need_defaults=false;;
18814  --header | --heade | --head | --hea )
18815    $ac_shift
18816    case $ac_optarg in
18817    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18818    esac
18819    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18820    ac_need_defaults=false;;
18821  --he | --h)
18822    # Conflict between --help and --header
18823    as_fn_error $? "ambiguous option: \`$1'
18824Try \`$0 --help' for more information.";;
18825  --help | --hel | -h )
18826    $as_echo "$ac_cs_usage"; exit ;;
18827  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18828  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18829    ac_cs_silent=: ;;
18830
18831  # This is an error.
18832  -*) as_fn_error $? "unrecognized option: \`$1'
18833Try \`$0 --help' for more information." ;;
18834
18835  *) as_fn_append ac_config_targets " $1"
18836     ac_need_defaults=false ;;
18837
18838  esac
18839  shift
18840done
18841
18842ac_configure_extra_args=
18843
18844if $ac_cs_silent; then
18845  exec 6>/dev/null
18846  ac_configure_extra_args="$ac_configure_extra_args --silent"
18847fi
18848
18849_ACEOF
18850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851if \$ac_cs_recheck; then
18852  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18853  shift
18854  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18855  CONFIG_SHELL='$SHELL'
18856  export CONFIG_SHELL
18857  exec "\$@"
18858fi
18859
18860_ACEOF
18861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18862exec 5>>config.log
18863{
18864  echo
18865  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18866## Running $as_me. ##
18867_ASBOX
18868  $as_echo "$ac_log"
18869} >&5
18870
18871_ACEOF
18872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18873#
18874# INIT-COMMANDS
18875#
18876
18877
18878# The HP-UX ksh and POSIX shell print the target directory to stdout
18879# if CDPATH is set.
18880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18881
18882sed_quote_subst='$sed_quote_subst'
18883double_quote_subst='$double_quote_subst'
18884delay_variable_subst='$delay_variable_subst'
18885macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18886macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18887enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18888enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18889pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18890enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18891SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18892ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18893PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18894host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18895host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18896host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18897build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18898build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18899build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18900SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18901Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18902GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18903EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18904FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18905LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18906NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18907LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18908max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18909ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18910exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18911lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18912lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18913lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18914lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18915lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18916reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18917reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18918OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18919deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18920file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18921file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18922want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18923DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18924sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18925AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18926AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18927archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18928STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18929RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18930old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18931old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18932old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18933lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18934CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18935CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18936compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18937GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18938lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18939lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18940lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18941lt_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"`'
18942nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18943lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18944objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18945MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18946lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18947lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18948lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18949lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18950lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18951need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18952MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18953DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18954NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18955LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18956OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18957OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18958libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18959shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18960extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18961archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18962enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18963export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18964whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18965compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18966old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18967old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18968archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18969archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18970module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18971module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18972with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18973allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18974no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18975hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18976hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18977hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18978hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18979hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18980hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18981hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18982inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18983link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18984always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18985export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18986exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18987include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18988prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18989postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18990file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18991variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18992need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18993need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18994version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18995runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18996shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18997shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18998libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18999library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19000soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19001install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19002postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19003postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19004finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19005finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19006hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19007sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19008sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19009hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19010enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19011enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19012enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19013old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19014striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19015
19016LTCC='$LTCC'
19017LTCFLAGS='$LTCFLAGS'
19018compiler='$compiler_DEFAULT'
19019
19020# A function that is used when there is no print builtin or printf.
19021func_fallback_echo ()
19022{
19023  eval 'cat <<_LTECHO_EOF
19024\$1
19025_LTECHO_EOF'
19026}
19027
19028# Quote evaled strings.
19029for var in SHELL \
19030ECHO \
19031PATH_SEPARATOR \
19032SED \
19033GREP \
19034EGREP \
19035FGREP \
19036LD \
19037NM \
19038LN_S \
19039lt_SP2NL \
19040lt_NL2SP \
19041reload_flag \
19042OBJDUMP \
19043deplibs_check_method \
19044file_magic_cmd \
19045file_magic_glob \
19046want_nocaseglob \
19047DLLTOOL \
19048sharedlib_from_linklib_cmd \
19049AR \
19050AR_FLAGS \
19051archiver_list_spec \
19052STRIP \
19053RANLIB \
19054CC \
19055CFLAGS \
19056compiler \
19057lt_cv_sys_global_symbol_pipe \
19058lt_cv_sys_global_symbol_to_cdecl \
19059lt_cv_sys_global_symbol_to_c_name_address \
19060lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19061nm_file_list_spec \
19062lt_prog_compiler_no_builtin_flag \
19063lt_prog_compiler_pic \
19064lt_prog_compiler_wl \
19065lt_prog_compiler_static \
19066lt_cv_prog_compiler_c_o \
19067need_locks \
19068MANIFEST_TOOL \
19069DSYMUTIL \
19070NMEDIT \
19071LIPO \
19072OTOOL \
19073OTOOL64 \
19074shrext_cmds \
19075export_dynamic_flag_spec \
19076whole_archive_flag_spec \
19077compiler_needs_object \
19078with_gnu_ld \
19079allow_undefined_flag \
19080no_undefined_flag \
19081hardcode_libdir_flag_spec \
19082hardcode_libdir_separator \
19083exclude_expsyms \
19084include_expsyms \
19085file_list_spec \
19086variables_saved_for_relink \
19087libname_spec \
19088library_names_spec \
19089soname_spec \
19090install_override_mode \
19091finish_eval \
19092old_striplib \
19093striplib; do
19094    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19095    *[\\\\\\\`\\"\\\$]*)
19096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19097      ;;
19098    *)
19099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19100      ;;
19101    esac
19102done
19103
19104# Double-quote double-evaled strings.
19105for var in reload_cmds \
19106old_postinstall_cmds \
19107old_postuninstall_cmds \
19108old_archive_cmds \
19109extract_expsyms_cmds \
19110old_archive_from_new_cmds \
19111old_archive_from_expsyms_cmds \
19112archive_cmds \
19113archive_expsym_cmds \
19114module_cmds \
19115module_expsym_cmds \
19116export_symbols_cmds \
19117prelink_cmds \
19118postlink_cmds \
19119postinstall_cmds \
19120postuninstall_cmds \
19121finish_cmds \
19122sys_lib_search_path_spec \
19123sys_lib_dlsearch_path_spec; do
19124    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19125    *[\\\\\\\`\\"\\\$]*)
19126      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19127      ;;
19128    *)
19129      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19130      ;;
19131    esac
19132done
19133
19134ac_aux_dir='$ac_aux_dir'
19135xsi_shell='$xsi_shell'
19136lt_shell_append='$lt_shell_append'
19137
19138# See if we are running on zsh, and set the options which allow our
19139# commands through without removal of \ escapes INIT.
19140if test -n "\${ZSH_VERSION+set}" ; then
19141   setopt NO_GLOB_SUBST
19142fi
19143
19144
19145    PACKAGE='$PACKAGE'
19146    VERSION='$VERSION'
19147    TIMESTAMP='$TIMESTAMP'
19148    RM='$RM'
19149    ofile='$ofile'
19150
19151
19152
19153
19154_ACEOF
19155
19156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19157
19158# Handling of arguments.
19159for ac_config_target in $ac_config_targets
19160do
19161  case $ac_config_target in
19162    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19163    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19164    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19165    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19166    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19167    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19168    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19169    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19170    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19171    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19172    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19173
19174  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19175  esac
19176done
19177
19178
19179# If the user did not use the arguments to specify the items to instantiate,
19180# then the envvar interface is used.  Set only those that are not.
19181# We use the long form for the default assignment because of an extremely
19182# bizarre bug on SunOS 4.1.3.
19183if $ac_need_defaults; then
19184  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19185  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19186  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19187fi
19188
19189# Have a temporary directory for convenience.  Make it in the build tree
19190# simply because there is no reason against having it here, and in addition,
19191# creating and moving files from /tmp can sometimes cause problems.
19192# Hook for its removal unless debugging.
19193# Note that there is a small window in which the directory will not be cleaned:
19194# after its creation but before its name has been assigned to `$tmp'.
19195$debug ||
19196{
19197  tmp= ac_tmp=
19198  trap 'exit_status=$?
19199  : "${ac_tmp:=$tmp}"
19200  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19201' 0
19202  trap 'as_fn_exit 1' 1 2 13 15
19203}
19204# Create a (secure) tmp directory for tmp files.
19205
19206{
19207  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19208  test -d "$tmp"
19209}  ||
19210{
19211  tmp=./conf$$-$RANDOM
19212  (umask 077 && mkdir "$tmp")
19213} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19214ac_tmp=$tmp
19215
19216# Set up the scripts for CONFIG_FILES section.
19217# No need to generate them if there are no CONFIG_FILES.
19218# This happens for instance with `./config.status config.h'.
19219if test -n "$CONFIG_FILES"; then
19220
19221
19222ac_cr=`echo X | tr X '\015'`
19223# On cygwin, bash can eat \r inside `` if the user requested igncr.
19224# But we know of no other shell where ac_cr would be empty at this
19225# point, so we can use a bashism as a fallback.
19226if test "x$ac_cr" = x; then
19227  eval ac_cr=\$\'\\r\'
19228fi
19229ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19230if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19231  ac_cs_awk_cr='\\r'
19232else
19233  ac_cs_awk_cr=$ac_cr
19234fi
19235
19236echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19237_ACEOF
19238
19239
19240{
19241  echo "cat >conf$$subs.awk <<_ACEOF" &&
19242  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19243  echo "_ACEOF"
19244} >conf$$subs.sh ||
19245  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19246ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19247ac_delim='%!_!# '
19248for ac_last_try in false false false false false :; do
19249  . ./conf$$subs.sh ||
19250    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19251
19252  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19253  if test $ac_delim_n = $ac_delim_num; then
19254    break
19255  elif $ac_last_try; then
19256    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19257  else
19258    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19259  fi
19260done
19261rm -f conf$$subs.sh
19262
19263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19264cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19265_ACEOF
19266sed -n '
19267h
19268s/^/S["/; s/!.*/"]=/
19269p
19270g
19271s/^[^!]*!//
19272:repl
19273t repl
19274s/'"$ac_delim"'$//
19275t delim
19276:nl
19277h
19278s/\(.\{148\}\)..*/\1/
19279t more1
19280s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19281p
19282n
19283b repl
19284:more1
19285s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19286p
19287g
19288s/.\{148\}//
19289t nl
19290:delim
19291h
19292s/\(.\{148\}\)..*/\1/
19293t more2
19294s/["\\]/\\&/g; s/^/"/; s/$/"/
19295p
19296b
19297:more2
19298s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19299p
19300g
19301s/.\{148\}//
19302t delim
19303' <conf$$subs.awk | sed '
19304/^[^""]/{
19305  N
19306  s/\n//
19307}
19308' >>$CONFIG_STATUS || ac_write_fail=1
19309rm -f conf$$subs.awk
19310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19311_ACAWK
19312cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19313  for (key in S) S_is_set[key] = 1
19314  FS = ""
19315
19316}
19317{
19318  line = $ 0
19319  nfields = split(line, field, "@")
19320  substed = 0
19321  len = length(field[1])
19322  for (i = 2; i < nfields; i++) {
19323    key = field[i]
19324    keylen = length(key)
19325    if (S_is_set[key]) {
19326      value = S[key]
19327      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19328      len += length(value) + length(field[++i])
19329      substed = 1
19330    } else
19331      len += 1 + keylen
19332  }
19333
19334  print line
19335}
19336
19337_ACAWK
19338_ACEOF
19339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19340if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19341  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19342else
19343  cat
19344fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19345  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19346_ACEOF
19347
19348# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19349# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19350# trailing colons and then remove the whole line if VPATH becomes empty
19351# (actually we leave an empty line to preserve line numbers).
19352if test "x$srcdir" = x.; then
19353  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19354h
19355s///
19356s/^/:/
19357s/[	 ]*$/:/
19358s/:\$(srcdir):/:/g
19359s/:\${srcdir}:/:/g
19360s/:@srcdir@:/:/g
19361s/^:*//
19362s/:*$//
19363x
19364s/\(=[	 ]*\).*/\1/
19365G
19366s/\n//
19367s/^[^=]*=[	 ]*$//
19368}'
19369fi
19370
19371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19372fi # test -n "$CONFIG_FILES"
19373
19374# Set up the scripts for CONFIG_HEADERS section.
19375# No need to generate them if there are no CONFIG_HEADERS.
19376# This happens for instance with `./config.status Makefile'.
19377if test -n "$CONFIG_HEADERS"; then
19378cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19379BEGIN {
19380_ACEOF
19381
19382# Transform confdefs.h into an awk script `defines.awk', embedded as
19383# here-document in config.status, that substitutes the proper values into
19384# config.h.in to produce config.h.
19385
19386# Create a delimiter string that does not exist in confdefs.h, to ease
19387# handling of long lines.
19388ac_delim='%!_!# '
19389for ac_last_try in false false :; do
19390  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19391  if test -z "$ac_tt"; then
19392    break
19393  elif $ac_last_try; then
19394    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19395  else
19396    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19397  fi
19398done
19399
19400# For the awk script, D is an array of macro values keyed by name,
19401# likewise P contains macro parameters if any.  Preserve backslash
19402# newline sequences.
19403
19404ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19405sed -n '
19406s/.\{148\}/&'"$ac_delim"'/g
19407t rset
19408:rset
19409s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19410t def
19411d
19412:def
19413s/\\$//
19414t bsnl
19415s/["\\]/\\&/g
19416s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19417D["\1"]=" \3"/p
19418s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19419d
19420:bsnl
19421s/["\\]/\\&/g
19422s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19423D["\1"]=" \3\\\\\\n"\\/p
19424t cont
19425s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19426t cont
19427d
19428:cont
19429n
19430s/.\{148\}/&'"$ac_delim"'/g
19431t clear
19432:clear
19433s/\\$//
19434t bsnlc
19435s/["\\]/\\&/g; s/^/"/; s/$/"/p
19436d
19437:bsnlc
19438s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19439b cont
19440' <confdefs.h | sed '
19441s/'"$ac_delim"'/"\\\
19442"/g' >>$CONFIG_STATUS || ac_write_fail=1
19443
19444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19445  for (key in D) D_is_set[key] = 1
19446  FS = ""
19447}
19448/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19449  line = \$ 0
19450  split(line, arg, " ")
19451  if (arg[1] == "#") {
19452    defundef = arg[2]
19453    mac1 = arg[3]
19454  } else {
19455    defundef = substr(arg[1], 2)
19456    mac1 = arg[2]
19457  }
19458  split(mac1, mac2, "(") #)
19459  macro = mac2[1]
19460  prefix = substr(line, 1, index(line, defundef) - 1)
19461  if (D_is_set[macro]) {
19462    # Preserve the white space surrounding the "#".
19463    print prefix "define", macro P[macro] D[macro]
19464    next
19465  } else {
19466    # Replace #undef with comments.  This is necessary, for example,
19467    # in the case of _POSIX_SOURCE, which is predefined and required
19468    # on some systems where configure will not decide to define it.
19469    if (defundef == "undef") {
19470      print "/*", prefix defundef, macro, "*/"
19471      next
19472    }
19473  }
19474}
19475{ print }
19476_ACAWK
19477_ACEOF
19478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19480fi # test -n "$CONFIG_HEADERS"
19481
19482
19483eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19484shift
19485for ac_tag
19486do
19487  case $ac_tag in
19488  :[FHLC]) ac_mode=$ac_tag; continue;;
19489  esac
19490  case $ac_mode$ac_tag in
19491  :[FHL]*:*);;
19492  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19493  :[FH]-) ac_tag=-:-;;
19494  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19495  esac
19496  ac_save_IFS=$IFS
19497  IFS=:
19498  set x $ac_tag
19499  IFS=$ac_save_IFS
19500  shift
19501  ac_file=$1
19502  shift
19503
19504  case $ac_mode in
19505  :L) ac_source=$1;;
19506  :[FH])
19507    ac_file_inputs=
19508    for ac_f
19509    do
19510      case $ac_f in
19511      -) ac_f="$ac_tmp/stdin";;
19512      *) # Look for the file first in the build tree, then in the source tree
19513	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19514	 # because $ac_f cannot contain `:'.
19515	 test -f "$ac_f" ||
19516	   case $ac_f in
19517	   [\\/$]*) false;;
19518	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19519	   esac ||
19520	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19521      esac
19522      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19523      as_fn_append ac_file_inputs " '$ac_f'"
19524    done
19525
19526    # Let's still pretend it is `configure' which instantiates (i.e., don't
19527    # use $as_me), people would be surprised to read:
19528    #    /* config.h.  Generated by config.status.  */
19529    configure_input='Generated from '`
19530	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19531	`' by configure.'
19532    if test x"$ac_file" != x-; then
19533      configure_input="$ac_file.  $configure_input"
19534      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19535$as_echo "$as_me: creating $ac_file" >&6;}
19536    fi
19537    # Neutralize special characters interpreted by sed in replacement strings.
19538    case $configure_input in #(
19539    *\&* | *\|* | *\\* )
19540       ac_sed_conf_input=`$as_echo "$configure_input" |
19541       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19542    *) ac_sed_conf_input=$configure_input;;
19543    esac
19544
19545    case $ac_tag in
19546    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19547      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19548    esac
19549    ;;
19550  esac
19551
19552  ac_dir=`$as_dirname -- "$ac_file" ||
19553$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19554	 X"$ac_file" : 'X\(//\)[^/]' \| \
19555	 X"$ac_file" : 'X\(//\)$' \| \
19556	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19557$as_echo X"$ac_file" |
19558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19559	    s//\1/
19560	    q
19561	  }
19562	  /^X\(\/\/\)[^/].*/{
19563	    s//\1/
19564	    q
19565	  }
19566	  /^X\(\/\/\)$/{
19567	    s//\1/
19568	    q
19569	  }
19570	  /^X\(\/\).*/{
19571	    s//\1/
19572	    q
19573	  }
19574	  s/.*/./; q'`
19575  as_dir="$ac_dir"; as_fn_mkdir_p
19576  ac_builddir=.
19577
19578case "$ac_dir" in
19579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19580*)
19581  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19582  # A ".." for each directory in $ac_dir_suffix.
19583  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19584  case $ac_top_builddir_sub in
19585  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19586  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19587  esac ;;
19588esac
19589ac_abs_top_builddir=$ac_pwd
19590ac_abs_builddir=$ac_pwd$ac_dir_suffix
19591# for backward compatibility:
19592ac_top_builddir=$ac_top_build_prefix
19593
19594case $srcdir in
19595  .)  # We are building in place.
19596    ac_srcdir=.
19597    ac_top_srcdir=$ac_top_builddir_sub
19598    ac_abs_top_srcdir=$ac_pwd ;;
19599  [\\/]* | ?:[\\/]* )  # Absolute name.
19600    ac_srcdir=$srcdir$ac_dir_suffix;
19601    ac_top_srcdir=$srcdir
19602    ac_abs_top_srcdir=$srcdir ;;
19603  *) # Relative name.
19604    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19605    ac_top_srcdir=$ac_top_build_prefix$srcdir
19606    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19607esac
19608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19609
19610
19611  case $ac_mode in
19612  :F)
19613  #
19614  # CONFIG_FILE
19615  #
19616
19617_ACEOF
19618
19619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620# If the template does not know about datarootdir, expand it.
19621# FIXME: This hack should be removed a few years after 2.60.
19622ac_datarootdir_hack=; ac_datarootdir_seen=
19623ac_sed_dataroot='
19624/datarootdir/ {
19625  p
19626  q
19627}
19628/@datadir@/p
19629/@docdir@/p
19630/@infodir@/p
19631/@localedir@/p
19632/@mandir@/p'
19633case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19634*datarootdir*) ac_datarootdir_seen=yes;;
19635*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19636  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19637$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19638_ACEOF
19639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19640  ac_datarootdir_hack='
19641  s&@datadir@&$datadir&g
19642  s&@docdir@&$docdir&g
19643  s&@infodir@&$infodir&g
19644  s&@localedir@&$localedir&g
19645  s&@mandir@&$mandir&g
19646  s&\\\${datarootdir}&$datarootdir&g' ;;
19647esac
19648_ACEOF
19649
19650# Neutralize VPATH when `$srcdir' = `.'.
19651# Shell code in configure.ac might set extrasub.
19652# FIXME: do we really want to maintain this feature?
19653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19654ac_sed_extra="$ac_vpsub
19655$extrasub
19656_ACEOF
19657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19658:t
19659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19660s|@configure_input@|$ac_sed_conf_input|;t t
19661s&@top_builddir@&$ac_top_builddir_sub&;t t
19662s&@top_build_prefix@&$ac_top_build_prefix&;t t
19663s&@srcdir@&$ac_srcdir&;t t
19664s&@abs_srcdir@&$ac_abs_srcdir&;t t
19665s&@top_srcdir@&$ac_top_srcdir&;t t
19666s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19667s&@builddir@&$ac_builddir&;t t
19668s&@abs_builddir@&$ac_abs_builddir&;t t
19669s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19670$ac_datarootdir_hack
19671"
19672eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19673  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19674
19675test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19676  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19677  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19678      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19679  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19680which seems to be undefined.  Please make sure it is defined" >&5
19681$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19682which seems to be undefined.  Please make sure it is defined" >&2;}
19683
19684  rm -f "$ac_tmp/stdin"
19685  case $ac_file in
19686  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19687  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19688  esac \
19689  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19690 ;;
19691  :H)
19692  #
19693  # CONFIG_HEADER
19694  #
19695  if test x"$ac_file" != x-; then
19696    {
19697      $as_echo "/* $configure_input  */" \
19698      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19699    } >"$ac_tmp/config.h" \
19700      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19701    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19702      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19703$as_echo "$as_me: $ac_file is unchanged" >&6;}
19704    else
19705      rm -f "$ac_file"
19706      mv "$ac_tmp/config.h" "$ac_file" \
19707	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19708    fi
19709  else
19710    $as_echo "/* $configure_input  */" \
19711      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19712      || as_fn_error $? "could not create -" "$LINENO" 5
19713  fi
19714 ;;
19715
19716  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19717$as_echo "$as_me: executing $ac_file commands" >&6;}
19718 ;;
19719  esac
19720
19721
19722  case $ac_file$ac_mode in
19723    "libtool":C)
19724
19725    # See if we are running on zsh, and set the options which allow our
19726    # commands through without removal of \ escapes.
19727    if test -n "${ZSH_VERSION+set}" ; then
19728      setopt NO_GLOB_SUBST
19729    fi
19730
19731    cfgfile="${ofile}T"
19732    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19733    $RM "$cfgfile"
19734
19735    cat <<_LT_EOF >> "$cfgfile"
19736#! $SHELL
19737
19738# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19739# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19741# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19742#
19743#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19744#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19745#                 Foundation, Inc.
19746#   Written by Gordon Matzigkeit, 1996
19747#
19748#   This file is part of GNU Libtool.
19749#
19750# GNU Libtool is free software; you can redistribute it and/or
19751# modify it under the terms of the GNU General Public License as
19752# published by the Free Software Foundation; either version 2 of
19753# the License, or (at your option) any later version.
19754#
19755# As a special exception to the GNU General Public License,
19756# if you distribute this file as part of a program or library that
19757# is built using GNU Libtool, you may include this file under the
19758# same distribution terms that you use for the rest of that program.
19759#
19760# GNU Libtool is distributed in the hope that it will be useful,
19761# but WITHOUT ANY WARRANTY; without even the implied warranty of
19762# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19763# GNU General Public License for more details.
19764#
19765# You should have received a copy of the GNU General Public License
19766# along with GNU Libtool; see the file COPYING.  If not, a copy
19767# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19768# obtained by writing to the Free Software Foundation, Inc.,
19769# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19770
19771
19772# The names of the tagged configurations supported by this script.
19773available_tags=""
19774
19775# ### BEGIN LIBTOOL CONFIG
19776
19777# Which release of libtool.m4 was used?
19778macro_version=$macro_version
19779macro_revision=$macro_revision
19780
19781# Whether or not to build shared libraries.
19782build_libtool_libs=$enable_shared
19783
19784# Whether or not to build static libraries.
19785build_old_libs=$enable_static
19786
19787# What type of objects to build.
19788pic_mode=$pic_mode
19789
19790# Whether or not to optimize for fast installation.
19791fast_install=$enable_fast_install
19792
19793# Shell to use when invoking shell scripts.
19794SHELL=$lt_SHELL
19795
19796# An echo program that protects backslashes.
19797ECHO=$lt_ECHO
19798
19799# The PATH separator for the build system.
19800PATH_SEPARATOR=$lt_PATH_SEPARATOR
19801
19802# The host system.
19803host_alias=$host_alias
19804host=$host
19805host_os=$host_os
19806
19807# The build system.
19808build_alias=$build_alias
19809build=$build
19810build_os=$build_os
19811
19812# A sed program that does not truncate output.
19813SED=$lt_SED
19814
19815# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19816Xsed="\$SED -e 1s/^X//"
19817
19818# A grep program that handles long lines.
19819GREP=$lt_GREP
19820
19821# An ERE matcher.
19822EGREP=$lt_EGREP
19823
19824# A literal string matcher.
19825FGREP=$lt_FGREP
19826
19827# A BSD- or MS-compatible name lister.
19828NM=$lt_NM
19829
19830# Whether we need soft or hard links.
19831LN_S=$lt_LN_S
19832
19833# What is the maximum length of a command?
19834max_cmd_len=$max_cmd_len
19835
19836# Object file suffix (normally "o").
19837objext=$ac_objext
19838
19839# Executable file suffix (normally "").
19840exeext=$exeext
19841
19842# whether the shell understands "unset".
19843lt_unset=$lt_unset
19844
19845# turn spaces into newlines.
19846SP2NL=$lt_lt_SP2NL
19847
19848# turn newlines into spaces.
19849NL2SP=$lt_lt_NL2SP
19850
19851# convert \$build file names to \$host format.
19852to_host_file_cmd=$lt_cv_to_host_file_cmd
19853
19854# convert \$build files to toolchain format.
19855to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19856
19857# An object symbol dumper.
19858OBJDUMP=$lt_OBJDUMP
19859
19860# Method to check whether dependent libraries are shared objects.
19861deplibs_check_method=$lt_deplibs_check_method
19862
19863# Command to use when deplibs_check_method = "file_magic".
19864file_magic_cmd=$lt_file_magic_cmd
19865
19866# How to find potential files when deplibs_check_method = "file_magic".
19867file_magic_glob=$lt_file_magic_glob
19868
19869# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19870want_nocaseglob=$lt_want_nocaseglob
19871
19872# DLL creation program.
19873DLLTOOL=$lt_DLLTOOL
19874
19875# Command to associate shared and link libraries.
19876sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19877
19878# The archiver.
19879AR=$lt_AR
19880
19881# Flags to create an archive.
19882AR_FLAGS=$lt_AR_FLAGS
19883
19884# How to feed a file listing to the archiver.
19885archiver_list_spec=$lt_archiver_list_spec
19886
19887# A symbol stripping program.
19888STRIP=$lt_STRIP
19889
19890# Commands used to install an old-style archive.
19891RANLIB=$lt_RANLIB
19892old_postinstall_cmds=$lt_old_postinstall_cmds
19893old_postuninstall_cmds=$lt_old_postuninstall_cmds
19894
19895# Whether to use a lock for old archive extraction.
19896lock_old_archive_extraction=$lock_old_archive_extraction
19897
19898# A C compiler.
19899LTCC=$lt_CC
19900
19901# LTCC compiler flags.
19902LTCFLAGS=$lt_CFLAGS
19903
19904# Take the output of nm and produce a listing of raw symbols and C names.
19905global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19906
19907# Transform the output of nm in a proper C declaration.
19908global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19909
19910# Transform the output of nm in a C name address pair.
19911global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19912
19913# Transform the output of nm in a C name address pair when lib prefix is needed.
19914global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19915
19916# Specify filename containing input files for \$NM.
19917nm_file_list_spec=$lt_nm_file_list_spec
19918
19919# The root where to search for dependent libraries,and in which our libraries should be installed.
19920lt_sysroot=$lt_sysroot
19921
19922# The name of the directory that contains temporary libtool files.
19923objdir=$objdir
19924
19925# Used to examine libraries when file_magic_cmd begins with "file".
19926MAGIC_CMD=$MAGIC_CMD
19927
19928# Must we lock files when doing compilation?
19929need_locks=$lt_need_locks
19930
19931# Manifest tool.
19932MANIFEST_TOOL=$lt_MANIFEST_TOOL
19933
19934# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19935DSYMUTIL=$lt_DSYMUTIL
19936
19937# Tool to change global to local symbols on Mac OS X.
19938NMEDIT=$lt_NMEDIT
19939
19940# Tool to manipulate fat objects and archives on Mac OS X.
19941LIPO=$lt_LIPO
19942
19943# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19944OTOOL=$lt_OTOOL
19945
19946# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19947OTOOL64=$lt_OTOOL64
19948
19949# Old archive suffix (normally "a").
19950libext=$libext
19951
19952# Shared library suffix (normally ".so").
19953shrext_cmds=$lt_shrext_cmds
19954
19955# The commands to extract the exported symbol list from a shared archive.
19956extract_expsyms_cmds=$lt_extract_expsyms_cmds
19957
19958# Variables whose values should be saved in libtool wrapper scripts and
19959# restored at link time.
19960variables_saved_for_relink=$lt_variables_saved_for_relink
19961
19962# Do we need the "lib" prefix for modules?
19963need_lib_prefix=$need_lib_prefix
19964
19965# Do we need a version for libraries?
19966need_version=$need_version
19967
19968# Library versioning type.
19969version_type=$version_type
19970
19971# Shared library runtime path variable.
19972runpath_var=$runpath_var
19973
19974# Shared library path variable.
19975shlibpath_var=$shlibpath_var
19976
19977# Is shlibpath searched before the hard-coded library search path?
19978shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19979
19980# Format of library name prefix.
19981libname_spec=$lt_libname_spec
19982
19983# List of archive names.  First name is the real one, the rest are links.
19984# The last name is the one that the linker finds with -lNAME
19985library_names_spec=$lt_library_names_spec
19986
19987# The coded name of the library, if different from the real name.
19988soname_spec=$lt_soname_spec
19989
19990# Permission mode override for installation of shared libraries.
19991install_override_mode=$lt_install_override_mode
19992
19993# Command to use after installation of a shared archive.
19994postinstall_cmds=$lt_postinstall_cmds
19995
19996# Command to use after uninstallation of a shared archive.
19997postuninstall_cmds=$lt_postuninstall_cmds
19998
19999# Commands used to finish a libtool library installation in a directory.
20000finish_cmds=$lt_finish_cmds
20001
20002# As "finish_cmds", except a single script fragment to be evaled but
20003# not shown.
20004finish_eval=$lt_finish_eval
20005
20006# Whether we should hardcode library paths into libraries.
20007hardcode_into_libs=$hardcode_into_libs
20008
20009# Compile-time system search path for libraries.
20010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20011
20012# Run-time system search path for libraries.
20013sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20014
20015# Whether dlopen is supported.
20016dlopen_support=$enable_dlopen
20017
20018# Whether dlopen of programs is supported.
20019dlopen_self=$enable_dlopen_self
20020
20021# Whether dlopen of statically linked programs is supported.
20022dlopen_self_static=$enable_dlopen_self_static
20023
20024# Commands to strip libraries.
20025old_striplib=$lt_old_striplib
20026striplib=$lt_striplib
20027
20028
20029# The linker used to build libraries.
20030LD=$lt_LD
20031
20032# How to create reloadable object files.
20033reload_flag=$lt_reload_flag
20034reload_cmds=$lt_reload_cmds
20035
20036# Commands used to build an old-style archive.
20037old_archive_cmds=$lt_old_archive_cmds
20038
20039# A language specific compiler.
20040CC=$lt_compiler
20041
20042# Is the compiler the GNU compiler?
20043with_gcc=$GCC
20044
20045# Compiler flag to turn off builtin functions.
20046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20047
20048# Additional compiler flags for building library objects.
20049pic_flag=$lt_lt_prog_compiler_pic
20050
20051# How to pass a linker flag through the compiler.
20052wl=$lt_lt_prog_compiler_wl
20053
20054# Compiler flag to prevent dynamic linking.
20055link_static_flag=$lt_lt_prog_compiler_static
20056
20057# Does compiler simultaneously support -c and -o options?
20058compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20059
20060# Whether or not to add -lc for building shared libraries.
20061build_libtool_need_lc=$archive_cmds_need_lc
20062
20063# Whether or not to disallow shared libs when runtime libs are static.
20064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20065
20066# Compiler flag to allow reflexive dlopens.
20067export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20068
20069# Compiler flag to generate shared objects directly from archives.
20070whole_archive_flag_spec=$lt_whole_archive_flag_spec
20071
20072# Whether the compiler copes with passing no objects directly.
20073compiler_needs_object=$lt_compiler_needs_object
20074
20075# Create an old-style archive from a shared archive.
20076old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20077
20078# Create a temporary old-style archive to link instead of a shared archive.
20079old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20080
20081# Commands used to build a shared archive.
20082archive_cmds=$lt_archive_cmds
20083archive_expsym_cmds=$lt_archive_expsym_cmds
20084
20085# Commands used to build a loadable module if different from building
20086# a shared archive.
20087module_cmds=$lt_module_cmds
20088module_expsym_cmds=$lt_module_expsym_cmds
20089
20090# Whether we are building with GNU ld or not.
20091with_gnu_ld=$lt_with_gnu_ld
20092
20093# Flag that allows shared libraries with undefined symbols to be built.
20094allow_undefined_flag=$lt_allow_undefined_flag
20095
20096# Flag that enforces no undefined symbols.
20097no_undefined_flag=$lt_no_undefined_flag
20098
20099# Flag to hardcode \$libdir into a binary during linking.
20100# This must work even if \$libdir does not exist
20101hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20102
20103# Whether we need a single "-rpath" flag with a separated argument.
20104hardcode_libdir_separator=$lt_hardcode_libdir_separator
20105
20106# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20107# DIR into the resulting binary.
20108hardcode_direct=$hardcode_direct
20109
20110# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20111# DIR into the resulting binary and the resulting library dependency is
20112# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20113# library is relocated.
20114hardcode_direct_absolute=$hardcode_direct_absolute
20115
20116# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20117# into the resulting binary.
20118hardcode_minus_L=$hardcode_minus_L
20119
20120# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20121# into the resulting binary.
20122hardcode_shlibpath_var=$hardcode_shlibpath_var
20123
20124# Set to "yes" if building a shared library automatically hardcodes DIR
20125# into the library and all subsequent libraries and executables linked
20126# against it.
20127hardcode_automatic=$hardcode_automatic
20128
20129# Set to yes if linker adds runtime paths of dependent libraries
20130# to runtime path list.
20131inherit_rpath=$inherit_rpath
20132
20133# Whether libtool must link a program against all its dependency libraries.
20134link_all_deplibs=$link_all_deplibs
20135
20136# Set to "yes" if exported symbols are required.
20137always_export_symbols=$always_export_symbols
20138
20139# The commands to list exported symbols.
20140export_symbols_cmds=$lt_export_symbols_cmds
20141
20142# Symbols that should not be listed in the preloaded symbols.
20143exclude_expsyms=$lt_exclude_expsyms
20144
20145# Symbols that must always be exported.
20146include_expsyms=$lt_include_expsyms
20147
20148# Commands necessary for linking programs (against libraries) with templates.
20149prelink_cmds=$lt_prelink_cmds
20150
20151# Commands necessary for finishing linking programs.
20152postlink_cmds=$lt_postlink_cmds
20153
20154# Specify filename containing input files.
20155file_list_spec=$lt_file_list_spec
20156
20157# How to hardcode a shared library path into an executable.
20158hardcode_action=$hardcode_action
20159
20160# ### END LIBTOOL CONFIG
20161
20162_LT_EOF
20163
20164  case $host_os in
20165  aix3*)
20166    cat <<\_LT_EOF >> "$cfgfile"
20167# AIX sometimes has problems with the GCC collect2 program.  For some
20168# reason, if we set the COLLECT_NAMES environment variable, the problems
20169# vanish in a puff of smoke.
20170if test "X${COLLECT_NAMES+set}" != Xset; then
20171  COLLECT_NAMES=
20172  export COLLECT_NAMES
20173fi
20174_LT_EOF
20175    ;;
20176  esac
20177
20178
20179ltmain="$ac_aux_dir/ltmain.sh"
20180
20181
20182  # We use sed instead of cat because bash on DJGPP gets confused if
20183  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20184  # text mode, it properly converts lines to CR/LF.  This bash problem
20185  # is reportedly fixed, but why not run on old versions too?
20186  sed '$q' "$ltmain" >> "$cfgfile" \
20187     || (rm -f "$cfgfile"; exit 1)
20188
20189  if test x"$xsi_shell" = xyes; then
20190  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20191func_dirname ()\
20192{\
20193\    case ${1} in\
20194\      */*) func_dirname_result="${1%/*}${2}" ;;\
20195\      *  ) func_dirname_result="${3}" ;;\
20196\    esac\
20197} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20198  && mv -f "$cfgfile.tmp" "$cfgfile" \
20199    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20200test 0 -eq $? || _lt_function_replace_fail=:
20201
20202
20203  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20204func_basename ()\
20205{\
20206\    func_basename_result="${1##*/}"\
20207} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20208  && mv -f "$cfgfile.tmp" "$cfgfile" \
20209    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20210test 0 -eq $? || _lt_function_replace_fail=:
20211
20212
20213  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20214func_dirname_and_basename ()\
20215{\
20216\    case ${1} in\
20217\      */*) func_dirname_result="${1%/*}${2}" ;;\
20218\      *  ) func_dirname_result="${3}" ;;\
20219\    esac\
20220\    func_basename_result="${1##*/}"\
20221} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20222  && mv -f "$cfgfile.tmp" "$cfgfile" \
20223    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20224test 0 -eq $? || _lt_function_replace_fail=:
20225
20226
20227  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20228func_stripname ()\
20229{\
20230\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20231\    # positional parameters, so assign one to ordinary parameter first.\
20232\    func_stripname_result=${3}\
20233\    func_stripname_result=${func_stripname_result#"${1}"}\
20234\    func_stripname_result=${func_stripname_result%"${2}"}\
20235} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20236  && mv -f "$cfgfile.tmp" "$cfgfile" \
20237    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20238test 0 -eq $? || _lt_function_replace_fail=:
20239
20240
20241  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20242func_split_long_opt ()\
20243{\
20244\    func_split_long_opt_name=${1%%=*}\
20245\    func_split_long_opt_arg=${1#*=}\
20246} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20247  && mv -f "$cfgfile.tmp" "$cfgfile" \
20248    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20249test 0 -eq $? || _lt_function_replace_fail=:
20250
20251
20252  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20253func_split_short_opt ()\
20254{\
20255\    func_split_short_opt_arg=${1#??}\
20256\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20257} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20258  && mv -f "$cfgfile.tmp" "$cfgfile" \
20259    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20260test 0 -eq $? || _lt_function_replace_fail=:
20261
20262
20263  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20264func_lo2o ()\
20265{\
20266\    case ${1} in\
20267\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20268\      *)    func_lo2o_result=${1} ;;\
20269\    esac\
20270} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20271  && mv -f "$cfgfile.tmp" "$cfgfile" \
20272    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20273test 0 -eq $? || _lt_function_replace_fail=:
20274
20275
20276  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20277func_xform ()\
20278{\
20279    func_xform_result=${1%.*}.lo\
20280} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20281  && mv -f "$cfgfile.tmp" "$cfgfile" \
20282    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20283test 0 -eq $? || _lt_function_replace_fail=:
20284
20285
20286  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20287func_arith ()\
20288{\
20289    func_arith_result=$(( $* ))\
20290} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20291  && mv -f "$cfgfile.tmp" "$cfgfile" \
20292    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20293test 0 -eq $? || _lt_function_replace_fail=:
20294
20295
20296  sed -e '/^func_len ()$/,/^} # func_len /c\
20297func_len ()\
20298{\
20299    func_len_result=${#1}\
20300} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20301  && mv -f "$cfgfile.tmp" "$cfgfile" \
20302    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20303test 0 -eq $? || _lt_function_replace_fail=:
20304
20305fi
20306
20307if test x"$lt_shell_append" = xyes; then
20308  sed -e '/^func_append ()$/,/^} # func_append /c\
20309func_append ()\
20310{\
20311    eval "${1}+=\\${2}"\
20312} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20313  && mv -f "$cfgfile.tmp" "$cfgfile" \
20314    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20315test 0 -eq $? || _lt_function_replace_fail=:
20316
20317
20318  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20319func_append_quoted ()\
20320{\
20321\    func_quote_for_eval "${2}"\
20322\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20323} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20324  && mv -f "$cfgfile.tmp" "$cfgfile" \
20325    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20326test 0 -eq $? || _lt_function_replace_fail=:
20327
20328
20329  # Save a `func_append' function call where possible by direct use of '+='
20330  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20331    && mv -f "$cfgfile.tmp" "$cfgfile" \
20332      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20333  test 0 -eq $? || _lt_function_replace_fail=:
20334else
20335  # Save a `func_append' function call even when '+=' is not available
20336  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20337    && mv -f "$cfgfile.tmp" "$cfgfile" \
20338      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20339  test 0 -eq $? || _lt_function_replace_fail=:
20340fi
20341
20342if test x"$_lt_function_replace_fail" = x":"; then
20343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20344$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20345fi
20346
20347
20348   mv -f "$cfgfile" "$ofile" ||
20349    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20350  chmod +x "$ofile"
20351
20352 ;;
20353    "disable-rpath":C)
20354	sed < libtool > libtool-2 \
20355	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20356	mv libtool-2 libtool
20357	chmod 755 libtool
20358	libtool="./libtool"
20359	 ;;
20360
20361  esac
20362done # for ac_tag
20363
20364
20365as_fn_exit 0
20366_ACEOF
20367ac_clean_files=$ac_clean_files_save
20368
20369test $ac_write_fail = 0 ||
20370  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20371
20372
20373# configure is writing to config.log, and then calls config.status.
20374# config.status does its own redirection, appending to config.log.
20375# Unfortunately, on DOS this fails, as config.log is still kept open
20376# by configure, so config.status won't be able to write to it; its
20377# output is simply discarded.  So we exec the FD to /dev/null,
20378# effectively closing config.log, so it can be properly (re)opened and
20379# appended to by config.status.  When coming back to configure, we
20380# need to make the FD available again.
20381if test "$no_create" != yes; then
20382  ac_cs_success=:
20383  ac_config_status_args=
20384  test "$silent" = yes &&
20385    ac_config_status_args="$ac_config_status_args --quiet"
20386  exec 5>/dev/null
20387  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20388  exec 5>>config.log
20389  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20390  # would make configure fail if this is the last instruction.
20391  $ac_cs_success || as_fn_exit 1
20392fi
20393if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20394  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20395$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20396fi
20397
20398