xref: /freebsd/contrib/ldns/configure (revision 13ea0450a9c8742119d36f3bf8f47accdce46e54)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ldns 1.7.0.
4#
5# Report bugs to <libdns@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: libdns@nlnetlabs.nl about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='ldns'
592PACKAGE_TARNAME='libdns'
593PACKAGE_VERSION='1.7.0'
594PACKAGE_STRING='ldns 1.7.0'
595PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
596PACKAGE_URL=''
597
598ac_unique_file="packet.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='LTLIBOBJS
636CONFIG_FILES
637ldns_build_config_have_attr_unused
638ldns_build_config_have_attr_format
639ldns_build_config_have_ssl
640DEFAULT_CAPATH
641DEFAULT_CAFILE
642LDNS_TRUST_ANCHOR_FILE
643WINDRES
644ldns_build_config_have_b32_pton
645ldns_build_config_have_b32_ntop
646LIBOBJS
647ldns_build_config_have_socklen_t
648LIBPCAP_LIBS
649include_unistd_h
650include_systypes_h
651include_inttypes_h
652ldns_build_config_have_inttypes_h
653include_sys_socket_h
654LIBSSL_SSL_LIBS
655LIBSSL_LIBS
656LIBSSL_LDFLAGS
657LIBSSL_CPPFLAGS
658ldns_build_config_use_dane_ta_usage
659ldns_build_config_use_dane_verify
660ldns_build_config_use_dane
661RUNTIME_PATH
662HAVE_SSL
663libtool
664CLEAN_P5_DNS_LDNS
665UNINSTALL_P5_DNS_LDNS
666INSTALL_P5_DNS_LDNS
667TEST_P5_DNS_LDNS
668P5_DNS_LDNS
669PERL
670PYLDNSXUNINST
671PYLDNSXINST
672PYLDNSUNINST
673PYLDNSINST
674PYLDNSX
675PYTHON_X_CFLAGS
676swig
677PYLDNS
678SWIG_LIB
679SWIG
680SWIGPY3
681PYTHON_EXTRA_LDFLAGS
682PYTHON_EXTRA_LIBS
683PYTHON_SITE_PKG
684PYTHON_LDFLAGS
685PYTHON_CPPFLAGS
686PYTHON
687PYTHON_VERSION
688UNINSTALL_CONFIG_MANPAGE
689UNINSTALL_CONFIG
690INSTALL_CONFIG_MANPAGE
691INSTALL_CONFIG
692LINT_EXAMPLES
693CLEAN_EXAMPLES
694UNINSTALL_EXAMPLES
695INSTALL_EXAMPLES
696EXAMPLES
697LINT_DRILL
698CLEAN_DRILL
699UNINSTALL_DRILL
700INSTALL_DRILL
701DRILL
702doxygen
703LINTFLAGS
704SET_MAKE
705DEPFLAG
706LT_SYS_LIBRARY_PATH
707OTOOL64
708OTOOL
709LIPO
710NMEDIT
711DSYMUTIL
712MANIFEST_TOOL
713AWK
714RANLIB
715STRIP
716ac_ct_AR
717AR
718DLLTOOL
719OBJDUMP
720LN_S
721NM
722ac_ct_DUMPBIN
723DUMPBIN
724LD
725FGREP
726SED
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735LIBTOOL
736EGREP
737GREP
738CPP
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746VERSION_INFO
747LDNS_VERSION_MICRO
748LDNS_VERSION_MINOR
749LDNS_VERSION_MAJOR
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_aix_soname
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799with_drill
800with_examples
801enable_ldns_config
802enable_stderr_msgs
803enable_poll
804with_pyldns
805with_pyldnsx
806with_p5_dns_ldns
807with_ssl
808enable_sha2
809enable_gost
810enable_gost_anyway
811enable_ecdsa
812enable_dsa
813enable_ed25519
814enable_ed448
815enable_dane
816enable_dane_verify
817enable_dane_ta_usage
818enable_full_dane
819enable_no_dane_ta_usage
820enable_no_dane_verify
821enable_rrtype_ninfo
822enable_rrtype_rkey
823enable_rrtype_openpgpkey
824enable_rrtype_ta
825enable_rrtype_avc
826enable_rpath
827with_trust_anchor
828with_ca_file
829with_ca_path
830'
831      ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
837LIBS
838CPPFLAGS
839CPP
840LT_SYS_LIBRARY_PATH
841PYTHON_VERSION'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896  # If the previous option needs an argument, assign it.
897  if test -n "$ac_prev"; then
898    eval $ac_prev=\$ac_option
899    ac_prev=
900    continue
901  fi
902
903  case $ac_option in
904  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905  *=)   ac_optarg= ;;
906  *)    ac_optarg=yes ;;
907  esac
908
909  # Accept the important Cygnus configure options, so we can diagnose typos.
910
911  case $ac_dashdash$ac_option in
912  --)
913    ac_dashdash=yes ;;
914
915  -bindir | --bindir | --bindi | --bind | --bin | --bi)
916    ac_prev=bindir ;;
917  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918    bindir=$ac_optarg ;;
919
920  -build | --build | --buil | --bui | --bu)
921    ac_prev=build_alias ;;
922  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923    build_alias=$ac_optarg ;;
924
925  -cache-file | --cache-file | --cache-fil | --cache-fi \
926  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927    ac_prev=cache_file ;;
928  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930    cache_file=$ac_optarg ;;
931
932  --config-cache | -C)
933    cache_file=config.cache ;;
934
935  -datadir | --datadir | --datadi | --datad)
936    ac_prev=datadir ;;
937  -datadir=* | --datadir=* | --datadi=* | --datad=*)
938    datadir=$ac_optarg ;;
939
940  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941  | --dataroo | --dataro | --datar)
942    ac_prev=datarootdir ;;
943  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945    datarootdir=$ac_optarg ;;
946
947  -disable-* | --disable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=no ;;
962
963  -docdir | --docdir | --docdi | --doc | --do)
964    ac_prev=docdir ;;
965  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966    docdir=$ac_optarg ;;
967
968  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969    ac_prev=dvidir ;;
970  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971    dvidir=$ac_optarg ;;
972
973  -enable-* | --enable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=\$ac_optarg ;;
988
989  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991  | --exec | --exe | --ex)
992    ac_prev=exec_prefix ;;
993  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995  | --exec=* | --exe=* | --ex=*)
996    exec_prefix=$ac_optarg ;;
997
998  -gas | --gas | --ga | --g)
999    # Obsolete; use --with-gas.
1000    with_gas=yes ;;
1001
1002  -help | --help | --hel | --he | -h)
1003    ac_init_help=long ;;
1004  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005    ac_init_help=recursive ;;
1006  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007    ac_init_help=short ;;
1008
1009  -host | --host | --hos | --ho)
1010    ac_prev=host_alias ;;
1011  -host=* | --host=* | --hos=* | --ho=*)
1012    host_alias=$ac_optarg ;;
1013
1014  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015    ac_prev=htmldir ;;
1016  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017  | --ht=*)
1018    htmldir=$ac_optarg ;;
1019
1020  -includedir | --includedir | --includedi | --included | --include \
1021  | --includ | --inclu | --incl | --inc)
1022    ac_prev=includedir ;;
1023  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024  | --includ=* | --inclu=* | --incl=* | --inc=*)
1025    includedir=$ac_optarg ;;
1026
1027  -infodir | --infodir | --infodi | --infod | --info | --inf)
1028    ac_prev=infodir ;;
1029  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030    infodir=$ac_optarg ;;
1031
1032  -libdir | --libdir | --libdi | --libd)
1033    ac_prev=libdir ;;
1034  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035    libdir=$ac_optarg ;;
1036
1037  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038  | --libexe | --libex | --libe)
1039    ac_prev=libexecdir ;;
1040  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041  | --libexe=* | --libex=* | --libe=*)
1042    libexecdir=$ac_optarg ;;
1043
1044  -localedir | --localedir | --localedi | --localed | --locale)
1045    ac_prev=localedir ;;
1046  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047    localedir=$ac_optarg ;;
1048
1049  -localstatedir | --localstatedir | --localstatedi | --localstated \
1050  | --localstate | --localstat | --localsta | --localst | --locals)
1051    ac_prev=localstatedir ;;
1052  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054    localstatedir=$ac_optarg ;;
1055
1056  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057    ac_prev=mandir ;;
1058  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059    mandir=$ac_optarg ;;
1060
1061  -nfp | --nfp | --nf)
1062    # Obsolete; use --without-fp.
1063    with_fp=no ;;
1064
1065  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066  | --no-cr | --no-c | -n)
1067    no_create=yes ;;
1068
1069  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071    no_recursion=yes ;;
1072
1073  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075  | --oldin | --oldi | --old | --ol | --o)
1076    ac_prev=oldincludedir ;;
1077  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080    oldincludedir=$ac_optarg ;;
1081
1082  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083    ac_prev=prefix ;;
1084  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085    prefix=$ac_optarg ;;
1086
1087  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088  | --program-pre | --program-pr | --program-p)
1089    ac_prev=program_prefix ;;
1090  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092    program_prefix=$ac_optarg ;;
1093
1094  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095  | --program-suf | --program-su | --program-s)
1096    ac_prev=program_suffix ;;
1097  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099    program_suffix=$ac_optarg ;;
1100
1101  -program-transform-name | --program-transform-name \
1102  | --program-transform-nam | --program-transform-na \
1103  | --program-transform-n | --program-transform- \
1104  | --program-transform | --program-transfor \
1105  | --program-transfo | --program-transf \
1106  | --program-trans | --program-tran \
1107  | --progr-tra | --program-tr | --program-t)
1108    ac_prev=program_transform_name ;;
1109  -program-transform-name=* | --program-transform-name=* \
1110  | --program-transform-nam=* | --program-transform-na=* \
1111  | --program-transform-n=* | --program-transform-=* \
1112  | --program-transform=* | --program-transfor=* \
1113  | --program-transfo=* | --program-transf=* \
1114  | --program-trans=* | --program-tran=* \
1115  | --progr-tra=* | --program-tr=* | --program-t=*)
1116    program_transform_name=$ac_optarg ;;
1117
1118  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119    ac_prev=pdfdir ;;
1120  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121    pdfdir=$ac_optarg ;;
1122
1123  -psdir | --psdir | --psdi | --psd | --ps)
1124    ac_prev=psdir ;;
1125  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126    psdir=$ac_optarg ;;
1127
1128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129  | -silent | --silent | --silen | --sile | --sil)
1130    silent=yes ;;
1131
1132  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133    ac_prev=sbindir ;;
1134  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135  | --sbi=* | --sb=*)
1136    sbindir=$ac_optarg ;;
1137
1138  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140  | --sharedst | --shareds | --shared | --share | --shar \
1141  | --sha | --sh)
1142    ac_prev=sharedstatedir ;;
1143  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146  | --sha=* | --sh=*)
1147    sharedstatedir=$ac_optarg ;;
1148
1149  -site | --site | --sit)
1150    ac_prev=site ;;
1151  -site=* | --site=* | --sit=*)
1152    site=$ac_optarg ;;
1153
1154  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155    ac_prev=srcdir ;;
1156  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157    srcdir=$ac_optarg ;;
1158
1159  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160  | --syscon | --sysco | --sysc | --sys | --sy)
1161    ac_prev=sysconfdir ;;
1162  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164    sysconfdir=$ac_optarg ;;
1165
1166  -target | --target | --targe | --targ | --tar | --ta | --t)
1167    ac_prev=target_alias ;;
1168  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169    target_alias=$ac_optarg ;;
1170
1171  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172    verbose=yes ;;
1173
1174  -version | --version | --versio | --versi | --vers | -V)
1175    ac_init_version=: ;;
1176
1177  -with-* | --with-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=no ;;
1208
1209  --x)
1210    # Obsolete; use --with-x.
1211    with_x=yes ;;
1212
1213  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214  | --x-incl | --x-inc | --x-in | --x-i)
1215    ac_prev=x_includes ;;
1216  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218    x_includes=$ac_optarg ;;
1219
1220  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222    ac_prev=x_libraries ;;
1223  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225    x_libraries=$ac_optarg ;;
1226
1227  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
1229    ;;
1230
1231  *=*)
1232    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233    # Reject names that are not valid shell variable names.
1234    case $ac_envvar in #(
1235      '' | [0-9]* | *[!_$as_cr_alnum]* )
1236      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237    esac
1238    eval $ac_envvar=\$ac_optarg
1239    export $ac_envvar ;;
1240
1241  *)
1242    # FIXME: should be removed in autoconf 3.0.
1243    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247    ;;
1248
1249  esac
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258  case $enable_option_checking in
1259    no) ;;
1260    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262  esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267		datadir sysconfdir sharedstatedir localstatedir includedir \
1268		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269		libdir localedir mandir
1270do
1271  eval ac_val=\$$ac_var
1272  # Remove trailing slashes.
1273  case $ac_val in
1274    */ )
1275      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276      eval $ac_var=\$ac_val;;
1277  esac
1278  # Be sure to have absolute directory names.
1279  case $ac_val in
1280    [\\/$]* | ?:[\\/]* )  continue;;
1281    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282  esac
1283  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382\`configure' configures ldns 1.7.0 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print \`checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for \`--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439System types:
1440  --build=BUILD     configure for building on BUILD [guessed]
1441  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446  case $ac_init_help in
1447     short | recursive ) echo "Configuration of ldns 1.7.0:";;
1448   esac
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-static[=PKGS]  build static libraries [default=yes]
1457  --enable-fast-install[=PKGS]
1458                          optimize for fast installation [default=yes]
1459  --disable-libtool-lock  avoid locking (might break parallel builds)
1460  --disable-ldns-config   disable installation of ldns-config
1461                          (default=enabled)
1462  --enable-stderr-msgs    Enable printing to stderr (default=disabled)
1463  --enable-poll           This platform supports poll(7)
1464  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1465  --disable-gost          Disable GOST support
1466  --enable-gost-anyway    Enable GOST even whithout a GOST engine installed
1467  --disable-ecdsa         Disable ECDSA support
1468  --disable-dsa           Disable DSA support
1469  --enable-ed25519        Enable ED25519 support (experimental)
1470  --enable-ed448          Enable ED448 support (experimental)
1471  --disable-dane          Disable DANE support
1472  --disable-dane-verify   Disable DANE verify support
1473  --disable-dane-ta-usage Disable DANE-TA usage type support
1474
1475  --enable-rrtype-ninfo   Enable draft RR type ninfo.
1476  --enable-rrtype-rkey    Enable draft RR type rkey.
1477  --disable-rrtype-openpgpkey
1478                          Disable openpgpkey RR type.
1479  --enable-rrtype-ta      Enable draft RR type ta.
1480  --enable-rrtype-avc     Enable draft RR type avc.
1481  --disable-rpath         disable hardcoded rpath (default=enabled)
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1487                          both]
1488  --with-aix-soname=aix|svr4|both
1489                          shared library versioning (aka "SONAME") variant to
1490                          provide on AIX, [default=aix].
1491  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1493                          compiler's sysroot if not specified).
1494  --with-drill            Also build drill.
1495  --with-examples         Also build examples.
1496  --with-pyldns           generate python library, or --without-pyldns to
1497                          disable Python support.
1498  --without-pyldnsx       Do not install the ldnsx python module, or
1499                          --with-pyldnsx to install it.
1500  --with-p5-dns-ldns      generate DNS::LDNS perl bindings
1501  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1502                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1503                          /usr)
1504  --with-trust-anchor=KEYFILE
1505                          Default location of the trust anchor file for drill
1506                          and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1507  --with-ca-file=CAFILE   File containing CA certificates for ldns-dane
1508  --with-ca-path=CAPATH   Directory containing CA certificate files for
1509                          ldns-dane
1510
1511Some influential environment variables:
1512  CC          C compiler command
1513  CFLAGS      C compiler flags
1514  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515              nonstandard directory <lib dir>
1516  LIBS        libraries to pass to the linker, e.g. -l<library>
1517  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518              you have headers in a nonstandard directory <include dir>
1519  CPP         C preprocessor
1520  LT_SYS_LIBRARY_PATH
1521              User-defined run-time library search path.
1522  PYTHON_VERSION
1523              The installed Python version to use, for example '2.3'. This
1524              string will be appended to the Python interpreter canonical
1525              name.
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <libdns@nlnetlabs.nl>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593ldns configure 1.7.0
1594generated by GNU Autoconf 2.69
1595
1596Copyright (C) 2012 Free Software Foundation, Inc.
1597This configure script is free software; the Free Software Foundation
1598gives unlimited permission to copy, distribute and modify it.
1599_ACEOF
1600  exit
1601fi
1602
1603## ------------------------ ##
1604## Autoconf initialization. ##
1605## ------------------------ ##
1606
1607# ac_fn_c_try_compile LINENO
1608# --------------------------
1609# Try to compile conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext
1614  if { { ac_try="$ac_compile"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_compile") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest.$ac_objext; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } > conftest.i && {
1667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       }; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675    ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_cpp
1681
1682# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683# -------------------------------------------------------
1684# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685# the include files in INCLUDES and setting the cache variable VAR
1686# accordingly.
1687ac_fn_c_check_header_mongrel ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if eval \${$3+:} false; then :
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695fi
1696eval ac_res=\$$3
1697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699else
1700  # Is the header compilable?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702$as_echo_n "checking $2 usability... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709  ac_header_compiler=yes
1710else
1711  ac_header_compiler=no
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715$as_echo "$ac_header_compiler" >&6; }
1716
1717# Is the header present?
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719$as_echo_n "checking $2 presence... " >&6; }
1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_cpp "$LINENO"; then :
1725  ac_header_preproc=yes
1726else
1727  ac_header_preproc=no
1728fi
1729rm -f conftest.err conftest.i conftest.$ac_ext
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731$as_echo "$ac_header_preproc" >&6; }
1732
1733# So?  What about this header?
1734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735  yes:no: )
1736    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740    ;;
1741  no:yes:* )
1742    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1745$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1749$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752( $as_echo "## ---------------------------------- ##
1753## Report this to libdns@nlnetlabs.nl ##
1754## ---------------------------------- ##"
1755     ) | sed "s/^/$as_me: WARNING:     /" >&2
1756    ;;
1757esac
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  eval "$3=\$ac_header_compiler"
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768fi
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_header_mongrel
1772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791  { { case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_try") 2>&5
1798  ac_status=$?
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; }; }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: program exited with status $ac_status" >&5
1804       $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807       ac_retval=$ac_status
1808fi
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if eval \${$3+:} false; then :
1825  $as_echo_n "(cached) " >&6
1826else
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833  eval "$3=yes"
1834else
1835  eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_c_check_header_compile
1845
1846# ac_fn_c_try_link LINENO
1847# -----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  rm -f conftest.$ac_objext conftest$ac_exeext
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>conftest.err
1861  ac_status=$?
1862  if test -s conftest.err; then
1863    grep -v '^ *+' conftest.err >conftest.er1
1864    cat conftest.er1 >&5
1865    mv -f conftest.er1 conftest.err
1866  fi
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && {
1869	 test -z "$ac_c_werror_flag" ||
1870	 test ! -s conftest.err
1871       } && test -s conftest$ac_exeext && {
1872	 test "$cross_compiling" = yes ||
1873	 test -x conftest$ac_exeext
1874       }; then :
1875  ac_retval=0
1876else
1877  $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880	ac_retval=1
1881fi
1882  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884  # interfere with the next link command; also delete a directory that is
1885  # left behind by Apple's compiler.  We do this before executing the actions.
1886  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_link
1891
1892# ac_fn_c_check_func LINENO FUNC VAR
1893# ----------------------------------
1894# Tests whether FUNC exists, setting the cache variable VAR accordingly
1895ac_fn_c_check_func ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if eval \${$3+:} false; then :
1901  $as_echo_n "(cached) " >&6
1902else
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1907#define $2 innocuous_$2
1908
1909/* System header to define __stub macros and hopefully few prototypes,
1910    which can conflict with char $2 (); below.
1911    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912    <limits.h> exists even on freestanding compilers.  */
1913
1914#ifdef __STDC__
1915# include <limits.h>
1916#else
1917# include <assert.h>
1918#endif
1919
1920#undef $2
1921
1922/* Override any GCC internal prototype to avoid an error.
1923   Use char because int might match the return type of a GCC
1924   builtin and then its argument prototype would still apply.  */
1925#ifdef __cplusplus
1926extern "C"
1927#endif
1928char $2 ();
1929/* The GNU C library defines this for functions which it implements
1930    to always fail with ENOSYS.  Some functions are actually named
1931    something starting with __ and the normal name is an alias.  */
1932#if defined __stub_$2 || defined __stub___$2
1933choke me
1934#endif
1935
1936int
1937main ()
1938{
1939return $2 ();
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_link "$LINENO"; then :
1945  eval "$3=yes"
1946else
1947  eval "$3=no"
1948fi
1949rm -f core conftest.err conftest.$ac_objext \
1950    conftest$ac_exeext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_func
1958
1959# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960# -------------------------------------------
1961# Tests whether TYPE exists after having included INCLUDES, setting cache
1962# variable VAR accordingly.
1963ac_fn_c_check_type ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  eval "$3=no"
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$4
1975int
1976main ()
1977{
1978if (sizeof ($2))
1979	 return 0;
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988int
1989main ()
1990{
1991if (sizeof (($2)))
1992	    return 0;
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998
1999else
2000  eval "$3=yes"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_type
2012
2013# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2014# ---------------------------------------------
2015# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2016# accordingly.
2017ac_fn_c_check_decl ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  as_decl_name=`echo $2|sed 's/ *(.*//'`
2021  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2023$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2024if eval \${$3+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026else
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033#ifndef $as_decl_name
2034#ifdef __cplusplus
2035  (void) $as_decl_use;
2036#else
2037  (void) $as_decl_name;
2038#endif
2039#endif
2040
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$3=yes"
2047else
2048  eval "$3=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_decl
2058
2059# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060# --------------------------------------------
2061# Tries to find the compile-time value of EXPR in a program that includes
2062# INCLUDES, setting VAR accordingly. Returns whether the value could be
2063# computed
2064ac_fn_c_compute_int ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  if test "$cross_compiling" = yes; then
2068    # Depending upon the size, compute the lo and hi bounds.
2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h.  */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) >= 0)];
2076test_array [0] = 0;
2077return test_array [0];
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  ac_lo=0 ac_mid=0
2085  while :; do
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093test_array [0] = 0;
2094return test_array [0];
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  ac_hi=$ac_mid; break
2102else
2103  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104			if test $ac_lo -le $ac_mid; then
2105			  ac_lo= ac_hi=
2106			  break
2107			fi
2108			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111  done
2112else
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) < 0)];
2120test_array [0] = 0;
2121return test_array [0];
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_hi=-1 ac_mid=-1
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_lo=$ac_mid; break
2146else
2147  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148			if test $ac_mid -le $ac_hi; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  ac_lo= ac_hi=
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162# Binary search between lo and hi bounds.
2163while test "x$ac_lo" != "x$ac_hi"; do
2164  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  ac_hi=$ac_mid
2181else
2182  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185done
2186case $ac_lo in #((
2187?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2188'') ac_retval=1 ;;
2189esac
2190  else
2191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194static long int longval () { return $2; }
2195static unsigned long int ulongval () { return $2; }
2196#include <stdio.h>
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201
2202  FILE *f = fopen ("conftest.val", "w");
2203  if (! f)
2204    return 1;
2205  if (($2) < 0)
2206    {
2207      long int i = longval ();
2208      if (i != ($2))
2209	return 1;
2210      fprintf (f, "%ld", i);
2211    }
2212  else
2213    {
2214      unsigned long int i = ulongval ();
2215      if (i != ($2))
2216	return 1;
2217      fprintf (f, "%lu", i);
2218    }
2219  /* Do not output a trailing newline, as this causes \r\n confusion
2220     on some platforms.  */
2221  return ferror (f) || fclose (f) != 0;
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_run "$LINENO"; then :
2228  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2229else
2230  ac_retval=1
2231fi
2232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233  conftest.$ac_objext conftest.beam conftest.$ac_ext
2234rm -f conftest.val
2235
2236  fi
2237  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238  as_fn_set_status $ac_retval
2239
2240} # ac_fn_c_compute_int
2241
2242# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2243# ----------------------------------------------------
2244# Tries to find if the field MEMBER exists in type AGGR, after including
2245# INCLUDES, setting cache variable VAR accordingly.
2246ac_fn_c_check_member ()
2247{
2248  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2250$as_echo_n "checking for $2.$3... " >&6; }
2251if eval \${$4+:} false; then :
2252  $as_echo_n "(cached) " >&6
2253else
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$5
2257int
2258main ()
2259{
2260static $2 ac_aggr;
2261if (ac_aggr.$3)
2262return 0;
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268  eval "$4=yes"
2269else
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272$5
2273int
2274main ()
2275{
2276static $2 ac_aggr;
2277if (sizeof ac_aggr.$3)
2278return 0;
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  eval "$4=yes"
2285else
2286  eval "$4=no"
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292eval ac_res=\$$4
2293	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297} # ac_fn_c_check_member
2298cat >config.log <<_ACEOF
2299This file contains any messages produced by compilers while
2300running configure, to aid debugging if configure makes a mistake.
2301
2302It was created by ldns $as_me 1.7.0, which was
2303generated by GNU Autoconf 2.69.  Invocation command line was
2304
2305  $ $0 $@
2306
2307_ACEOF
2308exec 5>>config.log
2309{
2310cat <<_ASUNAME
2311## --------- ##
2312## Platform. ##
2313## --------- ##
2314
2315hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2316uname -m = `(uname -m) 2>/dev/null || echo unknown`
2317uname -r = `(uname -r) 2>/dev/null || echo unknown`
2318uname -s = `(uname -s) 2>/dev/null || echo unknown`
2319uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320
2321/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2322/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2323
2324/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2325/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2326/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2327/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2328/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2329/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2330/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2331
2332_ASUNAME
2333
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337  IFS=$as_save_IFS
2338  test -z "$as_dir" && as_dir=.
2339    $as_echo "PATH: $as_dir"
2340  done
2341IFS=$as_save_IFS
2342
2343} >&5
2344
2345cat >&5 <<_ACEOF
2346
2347
2348## ----------- ##
2349## Core tests. ##
2350## ----------- ##
2351
2352_ACEOF
2353
2354
2355# Keep a trace of the command line.
2356# Strip out --no-create and --no-recursion so they do not pile up.
2357# Strip out --silent because we don't want to record it for future runs.
2358# Also quote any args containing shell meta-characters.
2359# Make two passes to allow for proper duplicate-argument suppression.
2360ac_configure_args=
2361ac_configure_args0=
2362ac_configure_args1=
2363ac_must_keep_next=false
2364for ac_pass in 1 2
2365do
2366  for ac_arg
2367  do
2368    case $ac_arg in
2369    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2370    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2371    | -silent | --silent | --silen | --sile | --sil)
2372      continue ;;
2373    *\'*)
2374      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375    esac
2376    case $ac_pass in
2377    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2378    2)
2379      as_fn_append ac_configure_args1 " '$ac_arg'"
2380      if test $ac_must_keep_next = true; then
2381	ac_must_keep_next=false # Got value, back to normal.
2382      else
2383	case $ac_arg in
2384	  *=* | --config-cache | -C | -disable-* | --disable-* \
2385	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2386	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2387	  | -with-* | --with-* | -without-* | --without-* | --x)
2388	    case "$ac_configure_args0 " in
2389	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390	    esac
2391	    ;;
2392	  -* ) ac_must_keep_next=true ;;
2393	esac
2394      fi
2395      as_fn_append ac_configure_args " '$ac_arg'"
2396      ;;
2397    esac
2398  done
2399done
2400{ ac_configure_args0=; unset ac_configure_args0;}
2401{ ac_configure_args1=; unset ac_configure_args1;}
2402
2403# When interrupted or exit'd, cleanup temporary files, and complete
2404# config.log.  We remove comments because anyway the quotes in there
2405# would cause problems or look ugly.
2406# WARNING: Use '\'' to represent an apostrophe within the trap.
2407# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2408trap 'exit_status=$?
2409  # Save into config.log some information that might help in debugging.
2410  {
2411    echo
2412
2413    $as_echo "## ---------------- ##
2414## Cache variables. ##
2415## ---------------- ##"
2416    echo
2417    # The following way of writing the cache mishandles newlines in values,
2418(
2419  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2420    eval ac_val=\$$ac_var
2421    case $ac_val in #(
2422    *${as_nl}*)
2423      case $ac_var in #(
2424      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2425$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426      esac
2427      case $ac_var in #(
2428      _ | IFS | as_nl) ;; #(
2429      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2430      *) { eval $ac_var=; unset $ac_var;} ;;
2431      esac ;;
2432    esac
2433  done
2434  (set) 2>&1 |
2435    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436    *${as_nl}ac_space=\ *)
2437      sed -n \
2438	"s/'\''/'\''\\\\'\'''\''/g;
2439	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440      ;; #(
2441    *)
2442      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443      ;;
2444    esac |
2445    sort
2446)
2447    echo
2448
2449    $as_echo "## ----------------- ##
2450## Output variables. ##
2451## ----------------- ##"
2452    echo
2453    for ac_var in $ac_subst_vars
2454    do
2455      eval ac_val=\$$ac_var
2456      case $ac_val in
2457      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458      esac
2459      $as_echo "$ac_var='\''$ac_val'\''"
2460    done | sort
2461    echo
2462
2463    if test -n "$ac_subst_files"; then
2464      $as_echo "## ------------------- ##
2465## File substitutions. ##
2466## ------------------- ##"
2467      echo
2468      for ac_var in $ac_subst_files
2469      do
2470	eval ac_val=\$$ac_var
2471	case $ac_val in
2472	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473	esac
2474	$as_echo "$ac_var='\''$ac_val'\''"
2475      done | sort
2476      echo
2477    fi
2478
2479    if test -s confdefs.h; then
2480      $as_echo "## ----------- ##
2481## confdefs.h. ##
2482## ----------- ##"
2483      echo
2484      cat confdefs.h
2485      echo
2486    fi
2487    test "$ac_signal" != 0 &&
2488      $as_echo "$as_me: caught signal $ac_signal"
2489    $as_echo "$as_me: exit $exit_status"
2490  } >&5
2491  rm -f core *.core core.conftest.* &&
2492    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2493    exit $exit_status
2494' 0
2495for ac_signal in 1 2 13 15; do
2496  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2497done
2498ac_signal=0
2499
2500# confdefs.h avoids OS command line length limits that DEFS can exceed.
2501rm -f -r conftest* confdefs.h
2502
2503$as_echo "/* confdefs.h */" > confdefs.h
2504
2505# Predefined preprocessor variables.
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_NAME "$PACKAGE_NAME"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_VERSION "$PACKAGE_VERSION"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_STRING "$PACKAGE_STRING"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2525_ACEOF
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_URL "$PACKAGE_URL"
2529_ACEOF
2530
2531
2532# Let the site file select an alternate cache file if it wants to.
2533# Prefer an explicitly selected file to automatically selected ones.
2534ac_site_file1=NONE
2535ac_site_file2=NONE
2536if test -n "$CONFIG_SITE"; then
2537  # We do not want a PATH search for config.site.
2538  case $CONFIG_SITE in #((
2539    -*)  ac_site_file1=./$CONFIG_SITE;;
2540    */*) ac_site_file1=$CONFIG_SITE;;
2541    *)   ac_site_file1=./$CONFIG_SITE;;
2542  esac
2543elif test "x$prefix" != xNONE; then
2544  ac_site_file1=$prefix/share/config.site
2545  ac_site_file2=$prefix/etc/config.site
2546else
2547  ac_site_file1=$ac_default_prefix/share/config.site
2548  ac_site_file2=$ac_default_prefix/etc/config.site
2549fi
2550for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2551do
2552  test "x$ac_site_file" = xNONE && continue
2553  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2554    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2555$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2556    sed 's/^/| /' "$ac_site_file" >&5
2557    . "$ac_site_file" \
2558      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560as_fn_error $? "failed to load site script $ac_site_file
2561See \`config.log' for more details" "$LINENO" 5; }
2562  fi
2563done
2564
2565if test -r "$cache_file"; then
2566  # Some versions of bash will fail to source /dev/null (special files
2567  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2568  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2569    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2570$as_echo "$as_me: loading cache $cache_file" >&6;}
2571    case $cache_file in
2572      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2573      *)                      . "./$cache_file";;
2574    esac
2575  fi
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2578$as_echo "$as_me: creating cache $cache_file" >&6;}
2579  >$cache_file
2580fi
2581
2582# Check that the precious variables saved in the cache have kept the same
2583# value.
2584ac_cache_corrupted=false
2585for ac_var in $ac_precious_vars; do
2586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587  eval ac_new_set=\$ac_env_${ac_var}_set
2588  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589  eval ac_new_val=\$ac_env_${ac_var}_value
2590  case $ac_old_set,$ac_new_set in
2591    set,)
2592      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2593$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,set)
2596      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2597$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2598      ac_cache_corrupted=: ;;
2599    ,);;
2600    *)
2601      if test "x$ac_old_val" != "x$ac_new_val"; then
2602	# differences in whitespace do not lead to failure.
2603	ac_old_val_w=`echo x $ac_old_val`
2604	ac_new_val_w=`echo x $ac_new_val`
2605	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2607$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2608	  ac_cache_corrupted=:
2609	else
2610	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2611$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2612	  eval $ac_var=\$ac_old_val
2613	fi
2614	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2615$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2616	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2617$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2618      fi;;
2619  esac
2620  # Pass precious variables to config.status.
2621  if test "$ac_new_set" = set; then
2622    case $ac_new_val in
2623    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624    *) ac_arg=$ac_var=$ac_new_val ;;
2625    esac
2626    case " $ac_configure_args " in
2627      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2628      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2629    esac
2630  fi
2631done
2632if $ac_cache_corrupted; then
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2637  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2638fi
2639## -------------------- ##
2640## Main body of script. ##
2641## -------------------- ##
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649
2650
2651# needed to build correct soname
2652LDNS_VERSION_MAJOR=1
2653
2654LDNS_VERSION_MINOR=7
2655
2656LDNS_VERSION_MICRO=0
2657
2658
2659# Library version
2660# ---------------
2661# current:revision:age
2662# (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
2663# if source code changes increment revision
2664# if any interfaces have been added/removed/changed since last update then
2665#   increment current and set revision to 0
2666# if any interfaces have been added since the last public release then increment age
2667# if any interfaces have been removed or changed since the last public release then
2668#   set age to 0
2669#
2670# ldns-1.6.17 and before had a .so with version same as VERSION_INFO
2671# ldns-1.7.0 will have libversion 2:0:0
2672#
2673VERSION_INFO=2:0:0
2674
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681if test -n "$ac_tool_prefix"; then
2682  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_CC+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$CC"; then
2690  ac_cv_prog_CC="$CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712$as_echo "$CC" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719fi
2720if test -z "$ac_cv_prog_CC"; then
2721  ac_ct_CC=$CC
2722  # Extract the first word of "gcc", so it can be a program name with args.
2723set dummy gcc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_ac_ct_CC+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test -n "$ac_ct_CC"; then
2730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_exec_ext in '' $ac_executable_extensions; do
2738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739    ac_cv_prog_ac_ct_CC="gcc"
2740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741    break 2
2742  fi
2743done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750if test -n "$ac_ct_CC"; then
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752$as_echo "$ac_ct_CC" >&6; }
2753else
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758  if test "x$ac_ct_CC" = x; then
2759    CC=""
2760  else
2761    case $cross_compiling:$ac_tool_warned in
2762yes:)
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765ac_tool_warned=yes ;;
2766esac
2767    CC=$ac_ct_CC
2768  fi
2769else
2770  CC="$ac_cv_prog_CC"
2771fi
2772
2773if test -z "$CC"; then
2774          if test -n "$ac_tool_prefix"; then
2775    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776set dummy ${ac_tool_prefix}cc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if ${ac_cv_prog_CC+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test -n "$CC"; then
2783  ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    for ac_exec_ext in '' $ac_executable_extensions; do
2791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792    ac_cv_prog_CC="${ac_tool_prefix}cc"
2793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794    break 2
2795  fi
2796done
2797  done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CC=$ac_cv_prog_CC
2803if test -n "$CC"; then
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805$as_echo "$CC" >&6; }
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809fi
2810
2811
2812  fi
2813fi
2814if test -z "$CC"; then
2815  # Extract the first word of "cc", so it can be a program name with args.
2816set dummy cc; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if ${ac_cv_prog_CC+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$CC"; then
2823  ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825  ac_prog_rejected=no
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831    for ac_exec_ext in '' $ac_executable_extensions; do
2832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834       ac_prog_rejected=yes
2835       continue
2836     fi
2837    ac_cv_prog_CC="cc"
2838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842  done
2843IFS=$as_save_IFS
2844
2845if test $ac_prog_rejected = yes; then
2846  # We found a bogon in the path, so make sure we never use it.
2847  set dummy $ac_cv_prog_CC
2848  shift
2849  if test $# != 0; then
2850    # We chose a different compiler from the bogus one.
2851    # However, it has the same basename, so the bogon will be chosen
2852    # first if we set CC to just the basename; use the full file name.
2853    shift
2854    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2855  fi
2856fi
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869fi
2870if test -z "$CC"; then
2871  if test -n "$ac_tool_prefix"; then
2872  for ac_prog in cl.exe
2873  do
2874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if ${ac_cv_prog_CC+:} false; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test -n "$CC"; then
2882  ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911    test -n "$CC" && break
2912  done
2913fi
2914if test -z "$CC"; then
2915  ac_ct_CC=$CC
2916  for ac_prog in cl.exe
2917do
2918  # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_ac_ct_CC+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$ac_ct_CC"; then
2926  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_ac_ct_CC="$ac_prog"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946if test -n "$ac_ct_CC"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948$as_echo "$ac_ct_CC" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955  test -n "$ac_ct_CC" && break
2956done
2957
2958  if test "x$ac_ct_CC" = x; then
2959    CC=""
2960  else
2961    case $cross_compiling:$ac_tool_warned in
2962yes:)
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965ac_tool_warned=yes ;;
2966esac
2967    CC=$ac_ct_CC
2968  fi
2969fi
2970
2971fi
2972
2973
2974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error $? "no acceptable C compiler found in \$PATH
2977See \`config.log' for more details" "$LINENO" 5; }
2978
2979# Provide some information about the compiler.
2980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981set X $ac_compile
2982ac_compiler=$2
2983for ac_option in --version -v -V -qversion; do
2984  { { ac_try="$ac_compiler $ac_option >&5"
2985case "(($ac_try" in
2986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987  *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2992  ac_status=$?
2993  if test -s conftest.err; then
2994    sed '10a\
2995... rest of stderr output deleted ...
2996         10q' conftest.err >conftest.er1
2997    cat conftest.er1 >&5
2998  fi
2999  rm -f conftest.er1 conftest.err
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }
3002done
3003
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h.  */
3006
3007int
3008main ()
3009{
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015ac_clean_files_save=$ac_clean_files
3016ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017# Try to create an executable without -o first, disregard a.out.
3018# It will help us diagnose broken compilers, and finding out an intuition
3019# of exeext.
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021$as_echo_n "checking whether the C compiler works... " >&6; }
3022ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023
3024# The possible output files:
3025ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3026
3027ac_rmfiles=
3028for ac_file in $ac_files
3029do
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3033  esac
3034done
3035rm -f $ac_rmfiles
3036
3037if { { ac_try="$ac_link_default"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044  (eval "$ac_link_default") 2>&5
3045  ac_status=$?
3046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047  test $ac_status = 0; }; then :
3048  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3051# so that the user can short-circuit this test for compilers unknown to
3052# Autoconf.
3053for ac_file in $ac_files ''
3054do
3055  test -f "$ac_file" || continue
3056  case $ac_file in
3057    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3058	;;
3059    [ab].out )
3060	# We found the default executable, but exeext='' is most
3061	# certainly right.
3062	break;;
3063    *.* )
3064	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065	then :; else
3066	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067	fi
3068	# We set ac_cv_exeext here because the later test for it is not
3069	# safe: cross compilers may not add the suffix if given an `-o'
3070	# argument, so we may need to know it at that point already.
3071	# Even if this section looks crufty: it has the advantage of
3072	# actually working.
3073	break;;
3074    * )
3075	break;;
3076  esac
3077done
3078test "$ac_cv_exeext" = no && ac_cv_exeext=
3079
3080else
3081  ac_file=''
3082fi
3083if test -z "$ac_file"; then :
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086$as_echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091as_fn_error 77 "C compiler cannot create executables
3092See \`config.log' for more details" "$LINENO" 5; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
3096fi
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098$as_echo_n "checking for C compiler default output file name... " >&6; }
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100$as_echo "$ac_file" >&6; }
3101ac_exeext=$ac_cv_exeext
3102
3103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3104ac_clean_files=$ac_clean_files_save
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106$as_echo_n "checking for suffix of executables... " >&6; }
3107if { { ac_try="$ac_link"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
3114  (eval "$ac_link") 2>&5
3115  ac_status=$?
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }; then :
3118  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3120# work properly (i.e., refer to `conftest.exe'), while it won't with
3121# `rm'.
3122for ac_file in conftest.exe conftest conftest.*; do
3123  test -f "$ac_file" || continue
3124  case $ac_file in
3125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127	  break;;
3128    * ) break;;
3129  esac
3130done
3131else
3132  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3135See \`config.log' for more details" "$LINENO" 5; }
3136fi
3137rm -f conftest conftest$ac_cv_exeext
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139$as_echo "$ac_cv_exeext" >&6; }
3140
3141rm -f conftest.$ac_ext
3142EXEEXT=$ac_cv_exeext
3143ac_exeext=$EXEEXT
3144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145/* end confdefs.h.  */
3146#include <stdio.h>
3147int
3148main ()
3149{
3150FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3152
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157ac_clean_files="$ac_clean_files conftest.out"
3158# Check that the compiler produces executables we can run.  If not, either
3159# the compiler is broken, or we cross compile.
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161$as_echo_n "checking whether we are cross compiling... " >&6; }
3162if test "$cross_compiling" != yes; then
3163  { { ac_try="$ac_link"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170  (eval "$ac_link") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173  test $ac_status = 0; }
3174  if { ac_try='./conftest$ac_cv_exeext'
3175  { { case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_try") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }; }; then
3185    cross_compiling=no
3186  else
3187    if test "$cross_compiling" = maybe; then
3188	cross_compiling=yes
3189    else
3190	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error $? "cannot run C compiled programs.
3193If you meant to cross compile, use \`--host'.
3194See \`config.log' for more details" "$LINENO" 5; }
3195    fi
3196  fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199$as_echo "$cross_compiling" >&6; }
3200
3201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202ac_clean_files=$ac_clean_files_save
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204$as_echo_n "checking for suffix of object files... " >&6; }
3205if ${ac_cv_objext+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main ()
3213{
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219rm -f conftest.o conftest.obj
3220if { { ac_try="$ac_compile"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_compile") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }; then :
3231  for ac_file in conftest.o conftest.obj conftest.*; do
3232  test -f "$ac_file" || continue;
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3236       break;;
3237  esac
3238done
3239else
3240  $as_echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "cannot compute suffix of object files: cannot compile
3246See \`config.log' for more details" "$LINENO" 5; }
3247fi
3248rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251$as_echo "$ac_cv_objext" >&6; }
3252OBJEXT=$ac_cv_objext
3253ac_objext=$OBJEXT
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256if ${ac_cv_c_compiler_gnu+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265#ifndef __GNUC__
3266       choke me
3267#endif
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
3274  ac_compiler_gnu=yes
3275else
3276  ac_compiler_gnu=no
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284if test $ac_compiler_gnu = yes; then
3285  GCC=yes
3286else
3287  GCC=
3288fi
3289ac_test_CFLAGS=${CFLAGS+set}
3290ac_save_CFLAGS=$CFLAGS
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292$as_echo_n "checking whether $CC accepts -g... " >&6; }
3293if ${ac_cv_prog_cc_g+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  ac_save_c_werror_flag=$ac_c_werror_flag
3297   ac_c_werror_flag=yes
3298   ac_cv_prog_cc_g=no
3299   CFLAGS="-g"
3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312  ac_cv_prog_cc_g=yes
3313else
3314  CFLAGS=""
3315      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326if ac_fn_c_try_compile "$LINENO"; then :
3327
3328else
3329  ac_c_werror_flag=$ac_save_c_werror_flag
3330	 CFLAGS="-g"
3331	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343  ac_cv_prog_cc_g=yes
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348fi
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350   ac_c_werror_flag=$ac_save_c_werror_flag
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353$as_echo "$ac_cv_prog_cc_g" >&6; }
3354if test "$ac_test_CFLAGS" = set; then
3355  CFLAGS=$ac_save_CFLAGS
3356elif test $ac_cv_prog_cc_g = yes; then
3357  if test "$GCC" = yes; then
3358    CFLAGS="-g -O2"
3359  else
3360    CFLAGS="-g"
3361  fi
3362else
3363  if test "$GCC" = yes; then
3364    CFLAGS="-O2"
3365  else
3366    CFLAGS=
3367  fi
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371if ${ac_cv_prog_cc_c89+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  ac_cv_prog_cc_c89=no
3375ac_save_CC=$CC
3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378#include <stdarg.h>
3379#include <stdio.h>
3380struct stat;
3381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3382struct buf { int x; };
3383FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384static char *e (p, i)
3385     char **p;
3386     int i;
3387{
3388  return p[i];
3389}
3390static char *f (char * (*g) (char **, int), char **p, ...)
3391{
3392  char *s;
3393  va_list v;
3394  va_start (v,p);
3395  s = g (p, va_arg (v,int));
3396  va_end (v);
3397  return s;
3398}
3399
3400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3401   function prototypes and stuff, but not '\xHH' hex character constants.
3402   These don't provoke an error unfortunately, instead are silently treated
3403   as 'x'.  The following induces an error, until -std is added to get
3404   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3405   array size at least.  It's necessary to write '\x00'==0 to get something
3406   that's true only with -std.  */
3407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408
3409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410   inside strings and character constants.  */
3411#define FOO(x) 'x'
3412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413
3414int test (int i, double x);
3415struct s1 {int (*f) (int a);};
3416struct s2 {int (*f) (double a);};
3417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418int argc;
3419char **argv;
3420int
3421main ()
3422{
3423return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430do
3431  CC="$ac_save_CC $ac_arg"
3432  if ac_fn_c_try_compile "$LINENO"; then :
3433  ac_cv_prog_cc_c89=$ac_arg
3434fi
3435rm -f core conftest.err conftest.$ac_objext
3436  test "x$ac_cv_prog_cc_c89" != "xno" && break
3437done
3438rm -f conftest.$ac_ext
3439CC=$ac_save_CC
3440
3441fi
3442# AC_CACHE_VAL
3443case "x$ac_cv_prog_cc_c89" in
3444  x)
3445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3446$as_echo "none needed" >&6; } ;;
3447  xno)
3448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3449$as_echo "unsupported" >&6; } ;;
3450  *)
3451    CC="$CC $ac_cv_prog_cc_c89"
3452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3454esac
3455if test "x$ac_cv_prog_cc_c89" != xno; then :
3456
3457fi
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472$as_echo_n "checking how to run the C preprocessor... " >&6; }
3473# On Suns, sometimes $CPP names a directory.
3474if test -n "$CPP" && test -d "$CPP"; then
3475  CPP=
3476fi
3477if test -z "$CPP"; then
3478  if ${ac_cv_prog_CPP+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481      # Double quotes because CPP needs to be expanded
3482    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483    do
3484      ac_preproc_ok=false
3485for ac_c_preproc_warn_flag in '' yes
3486do
3487  # Use a header file that comes with gcc, so configuring glibc
3488  # with a fresh cross-compiler works.
3489  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490  # <limits.h> exists even on freestanding compilers.
3491  # On the NeXT, cc -E runs the code through the compiler's parser,
3492  # not just through cpp. "Syntax error" is here to catch this case.
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#ifdef __STDC__
3496# include <limits.h>
3497#else
3498# include <assert.h>
3499#endif
3500		     Syntax error
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
3503
3504else
3505  # Broken: fails on valid input.
3506continue
3507fi
3508rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510  # OK, works on sane cases.  Now check whether nonexistent headers
3511  # can be detected and how.
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if ac_fn_c_try_cpp "$LINENO"; then :
3517  # Broken: success on invalid input.
3518continue
3519else
3520  # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.i conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then :
3530  break
3531fi
3532
3533    done
3534    ac_cv_prog_CPP=$CPP
3535
3536fi
3537  CPP=$ac_cv_prog_CPP
3538else
3539  ac_cv_prog_CPP=$CPP
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542$as_echo "$CPP" >&6; }
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554#ifdef __STDC__
3555# include <limits.h>
3556#else
3557# include <assert.h>
3558#endif
3559		     Syntax error
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563else
3564  # Broken: fails on valid input.
3565continue
3566fi
3567rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569  # OK, works on sane cases.  Now check whether nonexistent headers
3570  # can be detected and how.
3571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573#include <ac_nonexistent.h>
3574_ACEOF
3575if ac_fn_c_try_cpp "$LINENO"; then :
3576  # Broken: success on invalid input.
3577continue
3578else
3579  # Passes both tests.
3580ac_preproc_ok=:
3581break
3582fi
3583rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585done
3586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587rm -f conftest.i conftest.err conftest.$ac_ext
3588if $ac_preproc_ok; then :
3589
3590else
3591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594See \`config.log' for more details" "$LINENO" 5; }
3595fi
3596
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606if ${ac_cv_path_GREP+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  if test -z "$GREP"; then
3610  ac_path_GREP_found=false
3611  # Loop through the user's path and test for each of PROGNAME-LIST
3612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617    for ac_prog in grep ggrep; do
3618    for ac_exec_ext in '' $ac_executable_extensions; do
3619      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620      as_fn_executable_p "$ac_path_GREP" || continue
3621# Check for GNU ac_path_GREP and select it if it is found.
3622  # Check for GNU $ac_path_GREP
3623case `"$ac_path_GREP" --version 2>&1` in
3624*GNU*)
3625  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626*)
3627  ac_count=0
3628  $as_echo_n 0123456789 >"conftest.in"
3629  while :
3630  do
3631    cat "conftest.in" "conftest.in" >"conftest.tmp"
3632    mv "conftest.tmp" "conftest.in"
3633    cp "conftest.in" "conftest.nl"
3634    $as_echo 'GREP' >> "conftest.nl"
3635    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637    as_fn_arith $ac_count + 1 && ac_count=$as_val
3638    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639      # Best one so far, save it but keep looking for a better one
3640      ac_cv_path_GREP="$ac_path_GREP"
3641      ac_path_GREP_max=$ac_count
3642    fi
3643    # 10*(2^10) chars as input seems more than enough
3644    test $ac_count -gt 10 && break
3645  done
3646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647esac
3648
3649      $ac_path_GREP_found && break 3
3650    done
3651  done
3652  done
3653IFS=$as_save_IFS
3654  if test -z "$ac_cv_path_GREP"; then
3655    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656  fi
3657else
3658  ac_cv_path_GREP=$GREP
3659fi
3660
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663$as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3665
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668$as_echo_n "checking for egrep... " >&6; }
3669if ${ac_cv_path_EGREP+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673   then ac_cv_path_EGREP="$GREP -E"
3674   else
3675     if test -z "$EGREP"; then
3676  ac_path_EGREP_found=false
3677  # Loop through the user's path and test for each of PROGNAME-LIST
3678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683    for ac_prog in egrep; do
3684    for ac_exec_ext in '' $ac_executable_extensions; do
3685      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686      as_fn_executable_p "$ac_path_EGREP" || continue
3687# Check for GNU ac_path_EGREP and select it if it is found.
3688  # Check for GNU $ac_path_EGREP
3689case `"$ac_path_EGREP" --version 2>&1` in
3690*GNU*)
3691  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692*)
3693  ac_count=0
3694  $as_echo_n 0123456789 >"conftest.in"
3695  while :
3696  do
3697    cat "conftest.in" "conftest.in" >"conftest.tmp"
3698    mv "conftest.tmp" "conftest.in"
3699    cp "conftest.in" "conftest.nl"
3700    $as_echo 'EGREP' >> "conftest.nl"
3701    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703    as_fn_arith $ac_count + 1 && ac_count=$as_val
3704    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705      # Best one so far, save it but keep looking for a better one
3706      ac_cv_path_EGREP="$ac_path_EGREP"
3707      ac_path_EGREP_max=$ac_count
3708    fi
3709    # 10*(2^10) chars as input seems more than enough
3710    test $ac_count -gt 10 && break
3711  done
3712  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715      $ac_path_EGREP_found && break 3
3716    done
3717  done
3718  done
3719IFS=$as_save_IFS
3720  if test -z "$ac_cv_path_EGREP"; then
3721    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722  fi
3723else
3724  ac_cv_path_EGREP=$EGREP
3725fi
3726
3727   fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730$as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3732
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735$as_echo_n "checking for ANSI C header files... " >&6; }
3736if ${ac_cv_header_stdc+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741#include <stdlib.h>
3742#include <stdarg.h>
3743#include <string.h>
3744#include <float.h>
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_header_stdc=yes
3756else
3757  ac_cv_header_stdc=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761if test $ac_cv_header_stdc = yes; then
3762  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769  $EGREP "memchr" >/dev/null 2>&1; then :
3770
3771else
3772  ac_cv_header_stdc=no
3773fi
3774rm -f conftest*
3775
3776fi
3777
3778if test $ac_cv_header_stdc = yes; then
3779  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782#include <stdlib.h>
3783
3784_ACEOF
3785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786  $EGREP "free" >/dev/null 2>&1; then :
3787
3788else
3789  ac_cv_header_stdc=no
3790fi
3791rm -f conftest*
3792
3793fi
3794
3795if test $ac_cv_header_stdc = yes; then
3796  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797  if test "$cross_compiling" = yes; then :
3798  :
3799else
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <ctype.h>
3803#include <stdlib.h>
3804#if ((' ' & 0x0FF) == 0x020)
3805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807#else
3808# define ISLOWER(c) \
3809		   (('a' <= (c) && (c) <= 'i') \
3810		     || ('j' <= (c) && (c) <= 'r') \
3811		     || ('s' <= (c) && (c) <= 'z'))
3812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813#endif
3814
3815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816int
3817main ()
3818{
3819  int i;
3820  for (i = 0; i < 256; i++)
3821    if (XOR (islower (i), ISLOWER (i))
3822	|| toupper (i) != TOUPPER (i))
3823      return 2;
3824  return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_run "$LINENO"; then :
3828
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833  conftest.$ac_objext conftest.beam conftest.$ac_ext
3834fi
3835
3836fi
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839$as_echo "$ac_cv_header_stdc" >&6; }
3840if test $ac_cv_header_stdc = yes; then
3841
3842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3843
3844fi
3845
3846# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848		  inttypes.h stdint.h unistd.h
3849do :
3850  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852"
3853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854  cat >>confdefs.h <<_ACEOF
3855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856_ACEOF
3857
3858fi
3859
3860done
3861
3862
3863
3864  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865if test "x$ac_cv_header_minix_config_h" = xyes; then :
3866  MINIX=yes
3867else
3868  MINIX=
3869fi
3870
3871
3872  if test "$MINIX" = yes; then
3873
3874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880$as_echo "#define _MINIX 1" >>confdefs.h
3881
3882  fi
3883
3884
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893#         define __EXTENSIONS__ 1
3894          $ac_includes_default
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904  ac_cv_safe_to_define___extensions__=yes
3905else
3906  ac_cv_safe_to_define___extensions__=no
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912  test $ac_cv_safe_to_define___extensions__ = yes &&
3913    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914
3915  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916
3917  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918
3919  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920
3921  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3922
3923
3924
3925if test "$ac_cv_header_minix_config_h" = "yes"; then
3926
3927$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3928
3929fi
3930ac_aux_dir=
3931for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3932  if test -f "$ac_dir/install-sh"; then
3933    ac_aux_dir=$ac_dir
3934    ac_install_sh="$ac_aux_dir/install-sh -c"
3935    break
3936  elif test -f "$ac_dir/install.sh"; then
3937    ac_aux_dir=$ac_dir
3938    ac_install_sh="$ac_aux_dir/install.sh -c"
3939    break
3940  elif test -f "$ac_dir/shtool"; then
3941    ac_aux_dir=$ac_dir
3942    ac_install_sh="$ac_aux_dir/shtool install -c"
3943    break
3944  fi
3945done
3946if test -z "$ac_aux_dir"; then
3947  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3948fi
3949
3950# These three variables are undocumented and unsupported,
3951# and are intended to be withdrawn in a future Autoconf release.
3952# They can cause serious problems if a builder's source tree is in a directory
3953# whose full name contains unusual characters.
3954ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3955ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3956ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3957
3958
3959case `pwd` in
3960  *\ * | *\	*)
3961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3962$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3963esac
3964
3965
3966
3967macro_version='2.4.6'
3968macro_revision='2.4.6'
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982ltmain=$ac_aux_dir/ltmain.sh
3983
3984# Make sure we can run config.sub.
3985$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3986  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3989$as_echo_n "checking build system type... " >&6; }
3990if ${ac_cv_build+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  ac_build_alias=$build_alias
3994test "x$ac_build_alias" = x &&
3995  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3996test "x$ac_build_alias" = x &&
3997  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3999  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4000
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4003$as_echo "$ac_cv_build" >&6; }
4004case $ac_cv_build in
4005*-*-*) ;;
4006*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4007esac
4008build=$ac_cv_build
4009ac_save_IFS=$IFS; IFS='-'
4010set x $ac_cv_build
4011shift
4012build_cpu=$1
4013build_vendor=$2
4014shift; shift
4015# Remember, the first character of IFS is used to create $*,
4016# except with old shells:
4017build_os=$*
4018IFS=$ac_save_IFS
4019case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4020
4021
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4023$as_echo_n "checking host system type... " >&6; }
4024if ${ac_cv_host+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test "x$host_alias" = x; then
4028  ac_cv_host=$ac_cv_build
4029else
4030  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4031    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4032fi
4033
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4036$as_echo "$ac_cv_host" >&6; }
4037case $ac_cv_host in
4038*-*-*) ;;
4039*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4040esac
4041host=$ac_cv_host
4042ac_save_IFS=$IFS; IFS='-'
4043set x $ac_cv_host
4044shift
4045host_cpu=$1
4046host_vendor=$2
4047shift; shift
4048# Remember, the first character of IFS is used to create $*,
4049# except with old shells:
4050host_os=$*
4051IFS=$ac_save_IFS
4052case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4053
4054
4055# Backslashify metacharacters that are still active within
4056# double-quoted strings.
4057sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4058
4059# Same as above, but do not quote variable references.
4060double_quote_subst='s/\(["`\\]\)/\\\1/g'
4061
4062# Sed substitution to delay expansion of an escaped shell variable in a
4063# double_quote_subst'ed string.
4064delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4065
4066# Sed substitution to delay expansion of an escaped single quote.
4067delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4068
4069# Sed substitution to avoid accidental globbing in evaled expressions
4070no_glob_subst='s/\*/\\\*/g'
4071
4072ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4073ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4074ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4077$as_echo_n "checking how to print strings... " >&6; }
4078# Test print first, because it will be a builtin if present.
4079if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4080   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4081  ECHO='print -r --'
4082elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4083  ECHO='printf %s\n'
4084else
4085  # Use this function as a fallback that always works.
4086  func_fallback_echo ()
4087  {
4088    eval 'cat <<_LTECHO_EOF
4089$1
4090_LTECHO_EOF'
4091  }
4092  ECHO='func_fallback_echo'
4093fi
4094
4095# func_echo_all arg...
4096# Invoke $ECHO with all args, space-separated.
4097func_echo_all ()
4098{
4099    $ECHO ""
4100}
4101
4102case $ECHO in
4103  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4104$as_echo "printf" >&6; } ;;
4105  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4106$as_echo "print -r" >&6; } ;;
4107  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4108$as_echo "cat" >&6; } ;;
4109esac
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126if ${ac_cv_path_SED+:} false; then :
4127  $as_echo_n "(cached) " >&6
4128else
4129            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4130     for ac_i in 1 2 3 4 5 6 7; do
4131       ac_script="$ac_script$as_nl$ac_script"
4132     done
4133     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4134     { ac_script=; unset ac_script;}
4135     if test -z "$SED"; then
4136  ac_path_SED_found=false
4137  # Loop through the user's path and test for each of PROGNAME-LIST
4138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143    for ac_prog in sed gsed; do
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4146      as_fn_executable_p "$ac_path_SED" || continue
4147# Check for GNU ac_path_SED and select it if it is found.
4148  # Check for GNU $ac_path_SED
4149case `"$ac_path_SED" --version 2>&1` in
4150*GNU*)
4151  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152*)
4153  ac_count=0
4154  $as_echo_n 0123456789 >"conftest.in"
4155  while :
4156  do
4157    cat "conftest.in" "conftest.in" >"conftest.tmp"
4158    mv "conftest.tmp" "conftest.in"
4159    cp "conftest.in" "conftest.nl"
4160    $as_echo '' >> "conftest.nl"
4161    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163    as_fn_arith $ac_count + 1 && ac_count=$as_val
4164    if test $ac_count -gt ${ac_path_SED_max-0}; then
4165      # Best one so far, save it but keep looking for a better one
4166      ac_cv_path_SED="$ac_path_SED"
4167      ac_path_SED_max=$ac_count
4168    fi
4169    # 10*(2^10) chars as input seems more than enough
4170    test $ac_count -gt 10 && break
4171  done
4172  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173esac
4174
4175      $ac_path_SED_found && break 3
4176    done
4177  done
4178  done
4179IFS=$as_save_IFS
4180  if test -z "$ac_cv_path_SED"; then
4181    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4182  fi
4183else
4184  ac_cv_path_SED=$SED
4185fi
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4189$as_echo "$ac_cv_path_SED" >&6; }
4190 SED="$ac_cv_path_SED"
4191  rm -f conftest.sed
4192
4193test -z "$SED" && SED=sed
4194Xsed="$SED -e 1s/^X//"
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4207$as_echo_n "checking for fgrep... " >&6; }
4208if ${ac_cv_path_FGREP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4212   then ac_cv_path_FGREP="$GREP -F"
4213   else
4214     if test -z "$FGREP"; then
4215  ac_path_FGREP_found=false
4216  # Loop through the user's path and test for each of PROGNAME-LIST
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_prog in fgrep; do
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4225      as_fn_executable_p "$ac_path_FGREP" || continue
4226# Check for GNU ac_path_FGREP and select it if it is found.
4227  # Check for GNU $ac_path_FGREP
4228case `"$ac_path_FGREP" --version 2>&1` in
4229*GNU*)
4230  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4231*)
4232  ac_count=0
4233  $as_echo_n 0123456789 >"conftest.in"
4234  while :
4235  do
4236    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237    mv "conftest.tmp" "conftest.in"
4238    cp "conftest.in" "conftest.nl"
4239    $as_echo 'FGREP' >> "conftest.nl"
4240    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4244      # Best one so far, save it but keep looking for a better one
4245      ac_cv_path_FGREP="$ac_path_FGREP"
4246      ac_path_FGREP_max=$ac_count
4247    fi
4248    # 10*(2^10) chars as input seems more than enough
4249    test $ac_count -gt 10 && break
4250  done
4251  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252esac
4253
4254      $ac_path_FGREP_found && break 3
4255    done
4256  done
4257  done
4258IFS=$as_save_IFS
4259  if test -z "$ac_cv_path_FGREP"; then
4260    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261  fi
4262else
4263  ac_cv_path_FGREP=$FGREP
4264fi
4265
4266   fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4269$as_echo "$ac_cv_path_FGREP" >&6; }
4270 FGREP="$ac_cv_path_FGREP"
4271
4272
4273test -z "$GREP" && GREP=grep
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293# Check whether --with-gnu-ld was given.
4294if test "${with_gnu_ld+set}" = set; then :
4295  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4296else
4297  with_gnu_ld=no
4298fi
4299
4300ac_prog=ld
4301if test yes = "$GCC"; then
4302  # Check if gcc -print-prog-name=ld gives a path.
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4304$as_echo_n "checking for ld used by $CC... " >&6; }
4305  case $host in
4306  *-*-mingw*)
4307    # gcc leaves a trailing carriage return, which upsets mingw
4308    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4309  *)
4310    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4311  esac
4312  case $ac_prog in
4313    # Accept absolute paths.
4314    [\\/]* | ?:[\\/]*)
4315      re_direlt='/[^/][^/]*/\.\./'
4316      # Canonicalize the pathname of ld
4317      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4318      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4319	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4320      done
4321      test -z "$LD" && LD=$ac_prog
4322      ;;
4323  "")
4324    # If it fails, then pretend we aren't using GCC.
4325    ac_prog=ld
4326    ;;
4327  *)
4328    # If it is relative, then search for the first ld in PATH.
4329    with_gnu_ld=unknown
4330    ;;
4331  esac
4332elif test yes = "$with_gnu_ld"; then
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4334$as_echo_n "checking for GNU ld... " >&6; }
4335else
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4337$as_echo_n "checking for non-GNU ld... " >&6; }
4338fi
4339if ${lt_cv_path_LD+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -z "$LD"; then
4343  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4344  for ac_dir in $PATH; do
4345    IFS=$lt_save_ifs
4346    test -z "$ac_dir" && ac_dir=.
4347    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4348      lt_cv_path_LD=$ac_dir/$ac_prog
4349      # Check to see if the program is GNU ld.  I'd rather use --version,
4350      # but apparently some variants of GNU ld only accept -v.
4351      # Break only if it was the GNU/non-GNU ld that we prefer.
4352      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4353      *GNU* | *'with BFD'*)
4354	test no != "$with_gnu_ld" && break
4355	;;
4356      *)
4357	test yes != "$with_gnu_ld" && break
4358	;;
4359      esac
4360    fi
4361  done
4362  IFS=$lt_save_ifs
4363else
4364  lt_cv_path_LD=$LD # Let the user override the test with a path.
4365fi
4366fi
4367
4368LD=$lt_cv_path_LD
4369if test -n "$LD"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4371$as_echo "$LD" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4379if ${lt_cv_prog_gnu_ld+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4383case `$LD -v 2>&1 </dev/null` in
4384*GNU* | *'with BFD'*)
4385  lt_cv_prog_gnu_ld=yes
4386  ;;
4387*)
4388  lt_cv_prog_gnu_ld=no
4389  ;;
4390esac
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4393$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4394with_gnu_ld=$lt_cv_prog_gnu_ld
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4406if ${lt_cv_path_NM+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$NM"; then
4410  # Let the user override the test.
4411  lt_cv_path_NM=$NM
4412else
4413  lt_nm_to_check=${ac_tool_prefix}nm
4414  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4415    lt_nm_to_check="$lt_nm_to_check nm"
4416  fi
4417  for lt_tmp_nm in $lt_nm_to_check; do
4418    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4419    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4420      IFS=$lt_save_ifs
4421      test -z "$ac_dir" && ac_dir=.
4422      tmp_nm=$ac_dir/$lt_tmp_nm
4423      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4424	# Check to see if the nm accepts a BSD-compat flag.
4425	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4426	#   nm: unknown option "B" ignored
4427	# Tru64's nm complains that /dev/null is an invalid object file
4428	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4429	case $build_os in
4430	mingw*) lt_bad_file=conftest.nm/nofile ;;
4431	*) lt_bad_file=/dev/null ;;
4432	esac
4433	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4434	*$lt_bad_file* | *'Invalid file or object type'*)
4435	  lt_cv_path_NM="$tmp_nm -B"
4436	  break 2
4437	  ;;
4438	*)
4439	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4440	  */dev/null*)
4441	    lt_cv_path_NM="$tmp_nm -p"
4442	    break 2
4443	    ;;
4444	  *)
4445	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4446	    continue # so that we can try to find one that supports BSD flags
4447	    ;;
4448	  esac
4449	  ;;
4450	esac
4451      fi
4452    done
4453    IFS=$lt_save_ifs
4454  done
4455  : ${lt_cv_path_NM=no}
4456fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4459$as_echo "$lt_cv_path_NM" >&6; }
4460if test no != "$lt_cv_path_NM"; then
4461  NM=$lt_cv_path_NM
4462else
4463  # Didn't find any BSD compatible name lister, look for dumpbin.
4464  if test -n "$DUMPBIN"; then :
4465    # Let the user override the test.
4466  else
4467    if test -n "$ac_tool_prefix"; then
4468  for ac_prog in dumpbin "link -dump"
4469  do
4470    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473$as_echo_n "checking for $ac_word... " >&6; }
4474if ${ac_cv_prog_DUMPBIN+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  if test -n "$DUMPBIN"; then
4478  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489    break 2
4490  fi
4491done
4492  done
4493IFS=$as_save_IFS
4494
4495fi
4496fi
4497DUMPBIN=$ac_cv_prog_DUMPBIN
4498if test -n "$DUMPBIN"; then
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4500$as_echo "$DUMPBIN" >&6; }
4501else
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503$as_echo "no" >&6; }
4504fi
4505
4506
4507    test -n "$DUMPBIN" && break
4508  done
4509fi
4510if test -z "$DUMPBIN"; then
4511  ac_ct_DUMPBIN=$DUMPBIN
4512  for ac_prog in dumpbin "link -dump"
4513do
4514  # Extract the first word of "$ac_prog", so it can be a program name with args.
4515set dummy $ac_prog; ac_word=$2
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
4518if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test -n "$ac_ct_DUMPBIN"; then
4522  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536  done
4537IFS=$as_save_IFS
4538
4539fi
4540fi
4541ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4542if test -n "$ac_ct_DUMPBIN"; then
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4544$as_echo "$ac_ct_DUMPBIN" >&6; }
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548fi
4549
4550
4551  test -n "$ac_ct_DUMPBIN" && break
4552done
4553
4554  if test "x$ac_ct_DUMPBIN" = x; then
4555    DUMPBIN=":"
4556  else
4557    case $cross_compiling:$ac_tool_warned in
4558yes:)
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561ac_tool_warned=yes ;;
4562esac
4563    DUMPBIN=$ac_ct_DUMPBIN
4564  fi
4565fi
4566
4567    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4568    *COFF*)
4569      DUMPBIN="$DUMPBIN -symbols -headers"
4570      ;;
4571    *)
4572      DUMPBIN=:
4573      ;;
4574    esac
4575  fi
4576
4577  if test : != "$DUMPBIN"; then
4578    NM=$DUMPBIN
4579  fi
4580fi
4581test -z "$NM" && NM=nm
4582
4583
4584
4585
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4589$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4590if ${lt_cv_nm_interface+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  lt_cv_nm_interface="BSD nm"
4594  echo "int some_variable = 0;" > conftest.$ac_ext
4595  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4596  (eval "$ac_compile" 2>conftest.err)
4597  cat conftest.err >&5
4598  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4599  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4600  cat conftest.err >&5
4601  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4602  cat conftest.out >&5
4603  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4604    lt_cv_nm_interface="MS dumpbin"
4605  fi
4606  rm -f conftest*
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4609$as_echo "$lt_cv_nm_interface" >&6; }
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4612$as_echo_n "checking whether ln -s works... " >&6; }
4613LN_S=$as_ln_s
4614if test "$LN_S" = "ln -s"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616$as_echo "yes" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4619$as_echo "no, using $LN_S" >&6; }
4620fi
4621
4622# find the maximum length of command line arguments
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4624$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4625if ${lt_cv_sys_max_cmd_len+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628    i=0
4629  teststring=ABCD
4630
4631  case $build_os in
4632  msdosdjgpp*)
4633    # On DJGPP, this test can blow up pretty badly due to problems in libc
4634    # (any single argument exceeding 2000 bytes causes a buffer overrun
4635    # during glob expansion).  Even if it were fixed, the result of this
4636    # check would be larger than it should be.
4637    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4638    ;;
4639
4640  gnu*)
4641    # Under GNU Hurd, this test is not required because there is
4642    # no limit to the length of command line arguments.
4643    # Libtool will interpret -1 as no limit whatsoever
4644    lt_cv_sys_max_cmd_len=-1;
4645    ;;
4646
4647  cygwin* | mingw* | cegcc*)
4648    # On Win9x/ME, this test blows up -- it succeeds, but takes
4649    # about 5 minutes as the teststring grows exponentially.
4650    # Worse, since 9x/ME are not pre-emptively multitasking,
4651    # you end up with a "frozen" computer, even though with patience
4652    # the test eventually succeeds (with a max line length of 256k).
4653    # Instead, let's just punt: use the minimum linelength reported by
4654    # all of the supported platforms: 8192 (on NT/2K/XP).
4655    lt_cv_sys_max_cmd_len=8192;
4656    ;;
4657
4658  mint*)
4659    # On MiNT this can take a long time and run out of memory.
4660    lt_cv_sys_max_cmd_len=8192;
4661    ;;
4662
4663  amigaos*)
4664    # On AmigaOS with pdksh, this test takes hours, literally.
4665    # So we just punt and use a minimum line length of 8192.
4666    lt_cv_sys_max_cmd_len=8192;
4667    ;;
4668
4669  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4670    # This has been around since 386BSD, at least.  Likely further.
4671    if test -x /sbin/sysctl; then
4672      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4673    elif test -x /usr/sbin/sysctl; then
4674      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4675    else
4676      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4677    fi
4678    # And add a safety zone
4679    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4680    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4681    ;;
4682
4683  interix*)
4684    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4685    lt_cv_sys_max_cmd_len=196608
4686    ;;
4687
4688  os2*)
4689    # The test takes a long time on OS/2.
4690    lt_cv_sys_max_cmd_len=8192
4691    ;;
4692
4693  osf*)
4694    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4695    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4696    # nice to cause kernel panics so lets avoid the loop below.
4697    # First set a reasonable default.
4698    lt_cv_sys_max_cmd_len=16384
4699    #
4700    if test -x /sbin/sysconfig; then
4701      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4702        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4703      esac
4704    fi
4705    ;;
4706  sco3.2v5*)
4707    lt_cv_sys_max_cmd_len=102400
4708    ;;
4709  sysv5* | sco5v6* | sysv4.2uw2*)
4710    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4711    if test -n "$kargmax"; then
4712      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4713    else
4714      lt_cv_sys_max_cmd_len=32768
4715    fi
4716    ;;
4717  *)
4718    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4719    if test -n "$lt_cv_sys_max_cmd_len" && \
4720       test undefined != "$lt_cv_sys_max_cmd_len"; then
4721      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4722      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4723    else
4724      # Make teststring a little bigger before we do anything with it.
4725      # a 1K string should be a reasonable start.
4726      for i in 1 2 3 4 5 6 7 8; do
4727        teststring=$teststring$teststring
4728      done
4729      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4730      # If test is not a shell built-in, we'll probably end up computing a
4731      # maximum length that is only half of the actual maximum length, but
4732      # we can't tell.
4733      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4734	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4735	      test 17 != "$i" # 1/2 MB should be enough
4736      do
4737        i=`expr $i + 1`
4738        teststring=$teststring$teststring
4739      done
4740      # Only check the string length outside the loop.
4741      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4742      teststring=
4743      # Add a significant safety factor because C++ compilers can tack on
4744      # massive amounts of additional arguments before passing them to the
4745      # linker.  It appears as though 1/2 is a usable value.
4746      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4747    fi
4748    ;;
4749  esac
4750
4751fi
4752
4753if test -n "$lt_cv_sys_max_cmd_len"; then
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4755$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4756else
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4758$as_echo "none" >&6; }
4759fi
4760max_cmd_len=$lt_cv_sys_max_cmd_len
4761
4762
4763
4764
4765
4766
4767: ${CP="cp -f"}
4768: ${MV="mv -f"}
4769: ${RM="rm -f"}
4770
4771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4772  lt_unset=unset
4773else
4774  lt_unset=false
4775fi
4776
4777
4778
4779
4780
4781# test EBCDIC or ASCII
4782case `echo X|tr X '\101'` in
4783 A) # ASCII based system
4784    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4785  lt_SP2NL='tr \040 \012'
4786  lt_NL2SP='tr \015\012 \040\040'
4787  ;;
4788 *) # EBCDIC based system
4789  lt_SP2NL='tr \100 \n'
4790  lt_NL2SP='tr \r\n \100\100'
4791  ;;
4792esac
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4803$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4804if ${lt_cv_to_host_file_cmd+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  case $host in
4808  *-*-mingw* )
4809    case $build in
4810      *-*-mingw* ) # actually msys
4811        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4812        ;;
4813      *-*-cygwin* )
4814        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4815        ;;
4816      * ) # otherwise, assume *nix
4817        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4818        ;;
4819    esac
4820    ;;
4821  *-*-cygwin* )
4822    case $build in
4823      *-*-mingw* ) # actually msys
4824        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4825        ;;
4826      *-*-cygwin* )
4827        lt_cv_to_host_file_cmd=func_convert_file_noop
4828        ;;
4829      * ) # otherwise, assume *nix
4830        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4831        ;;
4832    esac
4833    ;;
4834  * ) # unhandled hosts (and "normal" native builds)
4835    lt_cv_to_host_file_cmd=func_convert_file_noop
4836    ;;
4837esac
4838
4839fi
4840
4841to_host_file_cmd=$lt_cv_to_host_file_cmd
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4843$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4850$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4851if ${lt_cv_to_tool_file_cmd+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  #assume ordinary cross tools, or native build.
4855lt_cv_to_tool_file_cmd=func_convert_file_noop
4856case $host in
4857  *-*-mingw* )
4858    case $build in
4859      *-*-mingw* ) # actually msys
4860        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4861        ;;
4862    esac
4863    ;;
4864esac
4865
4866fi
4867
4868to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4870$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4871
4872
4873
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4877$as_echo_n "checking for $LD option to reload object files... " >&6; }
4878if ${lt_cv_ld_reload_flag+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  lt_cv_ld_reload_flag='-r'
4882fi
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4884$as_echo "$lt_cv_ld_reload_flag" >&6; }
4885reload_flag=$lt_cv_ld_reload_flag
4886case $reload_flag in
4887"" | " "*) ;;
4888*) reload_flag=" $reload_flag" ;;
4889esac
4890reload_cmds='$LD$reload_flag -o $output$reload_objs'
4891case $host_os in
4892  cygwin* | mingw* | pw32* | cegcc*)
4893    if test yes != "$GCC"; then
4894      reload_cmds=false
4895    fi
4896    ;;
4897  darwin*)
4898    if test yes = "$GCC"; then
4899      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4900    else
4901      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902    fi
4903    ;;
4904esac
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914if test -n "$ac_tool_prefix"; then
4915  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4916set dummy ${ac_tool_prefix}objdump; ac_word=$2
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4919if ${ac_cv_prog_OBJDUMP+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  if test -n "$OBJDUMP"; then
4923  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928  IFS=$as_save_IFS
4929  test -z "$as_dir" && as_dir=.
4930    for ac_exec_ext in '' $ac_executable_extensions; do
4931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934    break 2
4935  fi
4936done
4937  done
4938IFS=$as_save_IFS
4939
4940fi
4941fi
4942OBJDUMP=$ac_cv_prog_OBJDUMP
4943if test -n "$OBJDUMP"; then
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4945$as_echo "$OBJDUMP" >&6; }
4946else
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
4949fi
4950
4951
4952fi
4953if test -z "$ac_cv_prog_OBJDUMP"; then
4954  ac_ct_OBJDUMP=$OBJDUMP
4955  # Extract the first word of "objdump", so it can be a program name with args.
4956set dummy objdump; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  if test -n "$ac_ct_OBJDUMP"; then
4963  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974    break 2
4975  fi
4976done
4977  done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4983if test -n "$ac_ct_OBJDUMP"; then
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4985$as_echo "$ac_ct_OBJDUMP" >&6; }
4986else
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991  if test "x$ac_ct_OBJDUMP" = x; then
4992    OBJDUMP="false"
4993  else
4994    case $cross_compiling:$ac_tool_warned in
4995yes:)
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998ac_tool_warned=yes ;;
4999esac
5000    OBJDUMP=$ac_ct_OBJDUMP
5001  fi
5002else
5003  OBJDUMP="$ac_cv_prog_OBJDUMP"
5004fi
5005
5006test -z "$OBJDUMP" && OBJDUMP=objdump
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5017$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5018if ${lt_cv_deplibs_check_method+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  lt_cv_file_magic_cmd='$MAGIC_CMD'
5022lt_cv_file_magic_test_file=
5023lt_cv_deplibs_check_method='unknown'
5024# Need to set the preceding variable on all platforms that support
5025# interlibrary dependencies.
5026# 'none' -- dependencies not supported.
5027# 'unknown' -- same as none, but documents that we really don't know.
5028# 'pass_all' -- all dependencies passed with no checks.
5029# 'test_compile' -- check by making test program.
5030# 'file_magic [[regex]]' -- check by looking for files in library path
5031# that responds to the $file_magic_cmd with a given extended regex.
5032# If you have 'file' or equivalent on your system and you're not sure
5033# whether 'pass_all' will *always* work, you probably want this one.
5034
5035case $host_os in
5036aix[4-9]*)
5037  lt_cv_deplibs_check_method=pass_all
5038  ;;
5039
5040beos*)
5041  lt_cv_deplibs_check_method=pass_all
5042  ;;
5043
5044bsdi[45]*)
5045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5046  lt_cv_file_magic_cmd='/usr/bin/file -L'
5047  lt_cv_file_magic_test_file=/shlib/libc.so
5048  ;;
5049
5050cygwin*)
5051  # func_win32_libid is a shell function defined in ltmain.sh
5052  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5053  lt_cv_file_magic_cmd='func_win32_libid'
5054  ;;
5055
5056mingw* | pw32*)
5057  # Base MSYS/MinGW do not provide the 'file' command needed by
5058  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5059  # unless we find 'file', for example because we are cross-compiling.
5060  if ( file / ) >/dev/null 2>&1; then
5061    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5062    lt_cv_file_magic_cmd='func_win32_libid'
5063  else
5064    # Keep this pattern in sync with the one in func_win32_libid.
5065    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5066    lt_cv_file_magic_cmd='$OBJDUMP -f'
5067  fi
5068  ;;
5069
5070cegcc*)
5071  # use the weaker test based on 'objdump'. See mingw*.
5072  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5073  lt_cv_file_magic_cmd='$OBJDUMP -f'
5074  ;;
5075
5076darwin* | rhapsody*)
5077  lt_cv_deplibs_check_method=pass_all
5078  ;;
5079
5080freebsd* | dragonfly*)
5081  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5082    case $host_cpu in
5083    i*86 )
5084      # Not sure whether the presence of OpenBSD here was a mistake.
5085      # Let's accept both of them until this is cleared up.
5086      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5087      lt_cv_file_magic_cmd=/usr/bin/file
5088      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5089      ;;
5090    esac
5091  else
5092    lt_cv_deplibs_check_method=pass_all
5093  fi
5094  ;;
5095
5096haiku*)
5097  lt_cv_deplibs_check_method=pass_all
5098  ;;
5099
5100hpux10.20* | hpux11*)
5101  lt_cv_file_magic_cmd=/usr/bin/file
5102  case $host_cpu in
5103  ia64*)
5104    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5105    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5106    ;;
5107  hppa*64*)
5108    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]'
5109    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5110    ;;
5111  *)
5112    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5113    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5114    ;;
5115  esac
5116  ;;
5117
5118interix[3-9]*)
5119  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5120  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5121  ;;
5122
5123irix5* | irix6* | nonstopux*)
5124  case $LD in
5125  *-32|*"-32 ") libmagic=32-bit;;
5126  *-n32|*"-n32 ") libmagic=N32;;
5127  *-64|*"-64 ") libmagic=64-bit;;
5128  *) libmagic=never-match;;
5129  esac
5130  lt_cv_deplibs_check_method=pass_all
5131  ;;
5132
5133# This must be glibc/ELF.
5134linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5135  lt_cv_deplibs_check_method=pass_all
5136  ;;
5137
5138netbsd* | netbsdelf*-gnu)
5139  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5140    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5141  else
5142    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5143  fi
5144  ;;
5145
5146newos6*)
5147  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5148  lt_cv_file_magic_cmd=/usr/bin/file
5149  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5150  ;;
5151
5152*nto* | *qnx*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156openbsd* | bitrig*)
5157  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5158    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5159  else
5160    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5161  fi
5162  ;;
5163
5164osf3* | osf4* | osf5*)
5165  lt_cv_deplibs_check_method=pass_all
5166  ;;
5167
5168rdos*)
5169  lt_cv_deplibs_check_method=pass_all
5170  ;;
5171
5172solaris*)
5173  lt_cv_deplibs_check_method=pass_all
5174  ;;
5175
5176sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5177  lt_cv_deplibs_check_method=pass_all
5178  ;;
5179
5180sysv4 | sysv4.3*)
5181  case $host_vendor in
5182  motorola)
5183    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]'
5184    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5185    ;;
5186  ncr)
5187    lt_cv_deplibs_check_method=pass_all
5188    ;;
5189  sequent)
5190    lt_cv_file_magic_cmd='/bin/file'
5191    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5192    ;;
5193  sni)
5194    lt_cv_file_magic_cmd='/bin/file'
5195    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5196    lt_cv_file_magic_test_file=/lib/libc.so
5197    ;;
5198  siemens)
5199    lt_cv_deplibs_check_method=pass_all
5200    ;;
5201  pc)
5202    lt_cv_deplibs_check_method=pass_all
5203    ;;
5204  esac
5205  ;;
5206
5207tpf*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210os2*)
5211  lt_cv_deplibs_check_method=pass_all
5212  ;;
5213esac
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5217$as_echo "$lt_cv_deplibs_check_method" >&6; }
5218
5219file_magic_glob=
5220want_nocaseglob=no
5221if test "$build" = "$host"; then
5222  case $host_os in
5223  mingw* | pw32*)
5224    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5225      want_nocaseglob=yes
5226    else
5227      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5228    fi
5229    ;;
5230  esac
5231fi
5232
5233file_magic_cmd=$lt_cv_file_magic_cmd
5234deplibs_check_method=$lt_cv_deplibs_check_method
5235test -z "$deplibs_check_method" && deplibs_check_method=unknown
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258if test -n "$ac_tool_prefix"; then
5259  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5260set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
5263if ${ac_cv_prog_DLLTOOL+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  if test -n "$DLLTOOL"; then
5267  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272  IFS=$as_save_IFS
5273  test -z "$as_dir" && as_dir=.
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284fi
5285fi
5286DLLTOOL=$ac_cv_prog_DLLTOOL
5287if test -n "$DLLTOOL"; then
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5289$as_echo "$DLLTOOL" >&6; }
5290else
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
5293fi
5294
5295
5296fi
5297if test -z "$ac_cv_prog_DLLTOOL"; then
5298  ac_ct_DLLTOOL=$DLLTOOL
5299  # Extract the first word of "dlltool", so it can be a program name with args.
5300set dummy dlltool; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -n "$ac_ct_DLLTOOL"; then
5307  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321  done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5327if test -n "$ac_ct_DLLTOOL"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5329$as_echo "$ac_ct_DLLTOOL" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335  if test "x$ac_ct_DLLTOOL" = x; then
5336    DLLTOOL="false"
5337  else
5338    case $cross_compiling:$ac_tool_warned in
5339yes:)
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342ac_tool_warned=yes ;;
5343esac
5344    DLLTOOL=$ac_ct_DLLTOOL
5345  fi
5346else
5347  DLLTOOL="$ac_cv_prog_DLLTOOL"
5348fi
5349
5350test -z "$DLLTOOL" && DLLTOOL=dlltool
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5362$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5363if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  lt_cv_sharedlib_from_linklib_cmd='unknown'
5367
5368case $host_os in
5369cygwin* | mingw* | pw32* | cegcc*)
5370  # two different shell functions defined in ltmain.sh;
5371  # decide which one to use based on capabilities of $DLLTOOL
5372  case `$DLLTOOL --help 2>&1` in
5373  *--identify-strict*)
5374    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5375    ;;
5376  *)
5377    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5378    ;;
5379  esac
5380  ;;
5381*)
5382  # fallback: assume linklib IS sharedlib
5383  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5384  ;;
5385esac
5386
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5389$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5390sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5391test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5392
5393
5394
5395
5396
5397
5398
5399if test -n "$ac_tool_prefix"; then
5400  for ac_prog in ar
5401  do
5402    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_AR+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  if test -n "$AR"; then
5410  ac_cv_prog_AR="$AR" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415  IFS=$as_save_IFS
5416  test -z "$as_dir" && as_dir=.
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421    break 2
5422  fi
5423done
5424  done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429AR=$ac_cv_prog_AR
5430if test -n "$AR"; then
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432$as_echo "$AR" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439    test -n "$AR" && break
5440  done
5441fi
5442if test -z "$AR"; then
5443  ac_ct_AR=$AR
5444  for ac_prog in ar
5445do
5446  # Extract the first word of "$ac_prog", so it can be a program name with args.
5447set dummy $ac_prog; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if ${ac_cv_prog_ac_ct_AR+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  if test -n "$ac_ct_AR"; then
5454  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459  IFS=$as_save_IFS
5460  test -z "$as_dir" && as_dir=.
5461    for ac_exec_ext in '' $ac_executable_extensions; do
5462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463    ac_cv_prog_ac_ct_AR="$ac_prog"
5464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465    break 2
5466  fi
5467done
5468  done
5469IFS=$as_save_IFS
5470
5471fi
5472fi
5473ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474if test -n "$ac_ct_AR"; then
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476$as_echo "$ac_ct_AR" >&6; }
5477else
5478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483  test -n "$ac_ct_AR" && break
5484done
5485
5486  if test "x$ac_ct_AR" = x; then
5487    AR="false"
5488  else
5489    case $cross_compiling:$ac_tool_warned in
5490yes:)
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495    AR=$ac_ct_AR
5496  fi
5497fi
5498
5499: ${AR=ar}
5500: ${AR_FLAGS=cru}
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5513$as_echo_n "checking for archiver @FILE support... " >&6; }
5514if ${lt_cv_ar_at_file+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  lt_cv_ar_at_file=no
5518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520
5521int
5522main ()
5523{
5524
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  echo conftest.$ac_objext > conftest.lst
5531      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5532      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5533  (eval $lt_ar_try) 2>&5
5534  ac_status=$?
5535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536  test $ac_status = 0; }
5537      if test 0 -eq "$ac_status"; then
5538	# Ensure the archiver fails upon bogus file names.
5539	rm -f conftest.$ac_objext libconftest.a
5540	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5541  (eval $lt_ar_try) 2>&5
5542  ac_status=$?
5543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5544  test $ac_status = 0; }
5545	if test 0 -ne "$ac_status"; then
5546          lt_cv_ar_at_file=@
5547        fi
5548      fi
5549      rm -f conftest.* libconftest.a
5550
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5556$as_echo "$lt_cv_ar_at_file" >&6; }
5557
5558if test no = "$lt_cv_ar_at_file"; then
5559  archiver_list_spec=
5560else
5561  archiver_list_spec=$lt_cv_ar_at_file
5562fi
5563
5564
5565
5566
5567
5568
5569
5570if test -n "$ac_tool_prefix"; then
5571  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572set dummy ${ac_tool_prefix}strip; ac_word=$2
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if ${ac_cv_prog_STRIP+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  if test -n "$STRIP"; then
5579  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586    for ac_exec_ext in '' $ac_executable_extensions; do
5587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590    break 2
5591  fi
5592done
5593  done
5594IFS=$as_save_IFS
5595
5596fi
5597fi
5598STRIP=$ac_cv_prog_STRIP
5599if test -n "$STRIP"; then
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5601$as_echo "$STRIP" >&6; }
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608fi
5609if test -z "$ac_cv_prog_STRIP"; then
5610  ac_ct_STRIP=$STRIP
5611  # Extract the first word of "strip", so it can be a program name with args.
5612set dummy strip; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  if test -n "$ac_ct_STRIP"; then
5619  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626    for ac_exec_ext in '' $ac_executable_extensions; do
5627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_ac_ct_STRIP="strip"
5629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633  done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5639if test -n "$ac_ct_STRIP"; then
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5641$as_echo "$ac_ct_STRIP" >&6; }
5642else
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647  if test "x$ac_ct_STRIP" = x; then
5648    STRIP=":"
5649  else
5650    case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656    STRIP=$ac_ct_STRIP
5657  fi
5658else
5659  STRIP="$ac_cv_prog_STRIP"
5660fi
5661
5662test -z "$STRIP" && STRIP=:
5663
5664
5665
5666
5667
5668
5669if test -n "$ac_tool_prefix"; then
5670  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5671set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673$as_echo_n "checking for $ac_word... " >&6; }
5674if ${ac_cv_prog_RANLIB+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  if test -n "$RANLIB"; then
5678  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683  IFS=$as_save_IFS
5684  test -z "$as_dir" && as_dir=.
5685    for ac_exec_ext in '' $ac_executable_extensions; do
5686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689    break 2
5690  fi
5691done
5692  done
5693IFS=$as_save_IFS
5694
5695fi
5696fi
5697RANLIB=$ac_cv_prog_RANLIB
5698if test -n "$RANLIB"; then
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5700$as_echo "$RANLIB" >&6; }
5701else
5702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }
5704fi
5705
5706
5707fi
5708if test -z "$ac_cv_prog_RANLIB"; then
5709  ac_ct_RANLIB=$RANLIB
5710  # Extract the first word of "ranlib", so it can be a program name with args.
5711set dummy ranlib; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -n "$ac_ct_RANLIB"; then
5718  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723  IFS=$as_save_IFS
5724  test -z "$as_dir" && as_dir=.
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727    ac_cv_prog_ac_ct_RANLIB="ranlib"
5728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729    break 2
5730  fi
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5738if test -n "$ac_ct_RANLIB"; then
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5740$as_echo "$ac_ct_RANLIB" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746  if test "x$ac_ct_RANLIB" = x; then
5747    RANLIB=":"
5748  else
5749    case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753ac_tool_warned=yes ;;
5754esac
5755    RANLIB=$ac_ct_RANLIB
5756  fi
5757else
5758  RANLIB="$ac_cv_prog_RANLIB"
5759fi
5760
5761test -z "$RANLIB" && RANLIB=:
5762
5763
5764
5765
5766
5767
5768# Determine commands to create old-style static archives.
5769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5770old_postinstall_cmds='chmod 644 $oldlib'
5771old_postuninstall_cmds=
5772
5773if test -n "$RANLIB"; then
5774  case $host_os in
5775  bitrig* | openbsd*)
5776    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5777    ;;
5778  *)
5779    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5780    ;;
5781  esac
5782  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5783fi
5784
5785case $host_os in
5786  darwin*)
5787    lock_old_archive_extraction=yes ;;
5788  *)
5789    lock_old_archive_extraction=no ;;
5790esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812for ac_prog in gawk mawk nawk awk
5813do
5814  # Extract the first word of "$ac_prog", so it can be a program name with args.
5815set dummy $ac_prog; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_AWK+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$AWK"; then
5822  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_AWK="$ac_prog"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841AWK=$ac_cv_prog_AWK
5842if test -n "$AWK"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5844$as_echo "$AWK" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851  test -n "$AWK" && break
5852done
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872# If no C compiler was specified, use CC.
5873LTCC=${LTCC-"$CC"}
5874
5875# If no C compiler flags were specified, use CFLAGS.
5876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5877
5878# Allow CC to be a program name with arguments.
5879compiler=$CC
5880
5881
5882# Check for command to grab the raw symbol name followed by C symbol from nm.
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5885if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888
5889# These are sane defaults that work on at least a few old systems.
5890# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5891
5892# Character class describing NM global symbol codes.
5893symcode='[BCDEGRST]'
5894
5895# Regexp to match symbols that can be accessed directly from C.
5896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5897
5898# Define system-specific variables.
5899case $host_os in
5900aix*)
5901  symcode='[BCDT]'
5902  ;;
5903cygwin* | mingw* | pw32* | cegcc*)
5904  symcode='[ABCDGISTW]'
5905  ;;
5906hpux*)
5907  if test ia64 = "$host_cpu"; then
5908    symcode='[ABCDEGRST]'
5909  fi
5910  ;;
5911irix* | nonstopux*)
5912  symcode='[BCDEGRST]'
5913  ;;
5914osf*)
5915  symcode='[BCDEGQRST]'
5916  ;;
5917solaris*)
5918  symcode='[BDRT]'
5919  ;;
5920sco3.2v5*)
5921  symcode='[DT]'
5922  ;;
5923sysv4.2uw2*)
5924  symcode='[DT]'
5925  ;;
5926sysv5* | sco5v6* | unixware* | OpenUNIX*)
5927  symcode='[ABDT]'
5928  ;;
5929sysv4)
5930  symcode='[DFNSTU]'
5931  ;;
5932esac
5933
5934# If we're using GNU nm, then use its standard symbol codes.
5935case `$NM -V 2>&1` in
5936*GNU* | *'with BFD'*)
5937  symcode='[ABCDGIRSTW]' ;;
5938esac
5939
5940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5941  # Gets list of data symbols to import.
5942  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5943  # Adjust the below global symbol transforms to fixup imported variables.
5944  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5945  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5946  lt_c_name_lib_hook="\
5947  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5948  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5949else
5950  # Disable hooks by default.
5951  lt_cv_sys_global_symbol_to_import=
5952  lt_cdecl_hook=
5953  lt_c_name_hook=
5954  lt_c_name_lib_hook=
5955fi
5956
5957# Transform an extracted symbol line into a proper C declaration.
5958# Some systems (esp. on ia64) link data and code symbols differently,
5959# so use this general approach.
5960lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5961$lt_cdecl_hook\
5962" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5963" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5964
5965# Transform an extracted symbol line into symbol name and symbol address
5966lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5967$lt_c_name_hook\
5968" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5969" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5970
5971# Transform an extracted symbol line into symbol name with lib prefix and
5972# symbol address.
5973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5974$lt_c_name_lib_hook\
5975" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5976" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5977" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5978
5979# Handle CRLF in mingw tool chain
5980opt_cr=
5981case $build_os in
5982mingw*)
5983  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5984  ;;
5985esac
5986
5987# Try without a prefix underscore, then with it.
5988for ac_symprfx in "" "_"; do
5989
5990  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5991  symxfrm="\\1 $ac_symprfx\\2 \\2"
5992
5993  # Write the raw and C identifiers.
5994  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5995    # Fake it for dumpbin and say T for any non-static function,
5996    # D for any global variable and I for any imported variable.
5997    # Also find C++ and __fastcall symbols from MSVC++,
5998    # which start with @ or ?.
5999    lt_cv_sys_global_symbol_pipe="$AWK '"\
6000"     {last_section=section; section=\$ 3};"\
6001"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6002"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6003"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6004"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6005"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6006"     \$ 0!~/External *\|/{next};"\
6007"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008"     {if(hide[section]) next};"\
6009"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6010"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6011"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6012"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6013"     ' prfx=^$ac_symprfx"
6014  else
6015    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6016  fi
6017  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6018
6019  # Check to see that the pipe works correctly.
6020  pipe_works=no
6021
6022  rm -f conftest*
6023  cat > conftest.$ac_ext <<_LT_EOF
6024#ifdef __cplusplus
6025extern "C" {
6026#endif
6027char nm_test_var;
6028void nm_test_func(void);
6029void nm_test_func(void){}
6030#ifdef __cplusplus
6031}
6032#endif
6033int main(){nm_test_var='a';nm_test_func();return(0);}
6034_LT_EOF
6035
6036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6037  (eval $ac_compile) 2>&5
6038  ac_status=$?
6039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040  test $ac_status = 0; }; then
6041    # Now try to grab the symbols.
6042    nlist=conftest.nm
6043    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6044  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6045  ac_status=$?
6046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047  test $ac_status = 0; } && test -s "$nlist"; then
6048      # Try sorting and uniquifying the output.
6049      if sort "$nlist" | uniq > "$nlist"T; then
6050	mv -f "$nlist"T "$nlist"
6051      else
6052	rm -f "$nlist"T
6053      fi
6054
6055      # Make sure that we snagged all the symbols we need.
6056      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6057	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6058	  cat <<_LT_EOF > conftest.$ac_ext
6059/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6060#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6061/* DATA imports from DLLs on WIN32 can't be const, because runtime
6062   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6063# define LT_DLSYM_CONST
6064#elif defined __osf__
6065/* This system does not cope well with relocations in const data.  */
6066# define LT_DLSYM_CONST
6067#else
6068# define LT_DLSYM_CONST const
6069#endif
6070
6071#ifdef __cplusplus
6072extern "C" {
6073#endif
6074
6075_LT_EOF
6076	  # Now generate the symbol file.
6077	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6078
6079	  cat <<_LT_EOF >> conftest.$ac_ext
6080
6081/* The mapping between symbol names and symbols.  */
6082LT_DLSYM_CONST struct {
6083  const char *name;
6084  void       *address;
6085}
6086lt__PROGRAM__LTX_preloaded_symbols[] =
6087{
6088  { "@PROGRAM@", (void *) 0 },
6089_LT_EOF
6090	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6091	  cat <<\_LT_EOF >> conftest.$ac_ext
6092  {0, (void *) 0}
6093};
6094
6095/* This works around a problem in FreeBSD linker */
6096#ifdef FREEBSD_WORKAROUND
6097static const void *lt_preloaded_setup() {
6098  return lt__PROGRAM__LTX_preloaded_symbols;
6099}
6100#endif
6101
6102#ifdef __cplusplus
6103}
6104#endif
6105_LT_EOF
6106	  # Now try linking the two files.
6107	  mv conftest.$ac_objext conftstm.$ac_objext
6108	  lt_globsym_save_LIBS=$LIBS
6109	  lt_globsym_save_CFLAGS=$CFLAGS
6110	  LIBS=conftstm.$ac_objext
6111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113  (eval $ac_link) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6117	    pipe_works=yes
6118	  fi
6119	  LIBS=$lt_globsym_save_LIBS
6120	  CFLAGS=$lt_globsym_save_CFLAGS
6121	else
6122	  echo "cannot find nm_test_func in $nlist" >&5
6123	fi
6124      else
6125	echo "cannot find nm_test_var in $nlist" >&5
6126      fi
6127    else
6128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6129    fi
6130  else
6131    echo "$progname: failed program was:" >&5
6132    cat conftest.$ac_ext >&5
6133  fi
6134  rm -rf conftest* conftst*
6135
6136  # Do not use the global_symbol_pipe unless it works.
6137  if test yes = "$pipe_works"; then
6138    break
6139  else
6140    lt_cv_sys_global_symbol_pipe=
6141  fi
6142done
6143
6144fi
6145
6146if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147  lt_cv_sys_global_symbol_to_cdecl=
6148fi
6149if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151$as_echo "failed" >&6; }
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154$as_echo "ok" >&6; }
6155fi
6156
6157# Response file support.
6158if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159  nm_file_list_spec='@'
6160elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6161  nm_file_list_spec='@'
6162fi
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6201$as_echo_n "checking for sysroot... " >&6; }
6202
6203# Check whether --with-sysroot was given.
6204if test "${with_sysroot+set}" = set; then :
6205  withval=$with_sysroot;
6206else
6207  with_sysroot=no
6208fi
6209
6210
6211lt_sysroot=
6212case $with_sysroot in #(
6213 yes)
6214   if test yes = "$GCC"; then
6215     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6216   fi
6217   ;; #(
6218 /*)
6219   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6220   ;; #(
6221 no|'')
6222   ;; #(
6223 *)
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6225$as_echo "$with_sysroot" >&6; }
6226   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6227   ;;
6228esac
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6231$as_echo "${lt_sysroot:-no}" >&6; }
6232
6233
6234
6235
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6238$as_echo_n "checking for a working dd... " >&6; }
6239if ${ac_cv_path_lt_DD+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  printf 0123456789abcdef0123456789abcdef >conftest.i
6243cat conftest.i conftest.i >conftest2.i
6244: ${lt_DD:=$DD}
6245if test -z "$lt_DD"; then
6246  ac_path_lt_DD_found=false
6247  # Loop through the user's path and test for each of PROGNAME-LIST
6248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  test -z "$as_dir" && as_dir=.
6253    for ac_prog in dd; do
6254    for ac_exec_ext in '' $ac_executable_extensions; do
6255      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6256      as_fn_executable_p "$ac_path_lt_DD" || continue
6257if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6258  cmp -s conftest.i conftest.out \
6259  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6260fi
6261      $ac_path_lt_DD_found && break 3
6262    done
6263  done
6264  done
6265IFS=$as_save_IFS
6266  if test -z "$ac_cv_path_lt_DD"; then
6267    :
6268  fi
6269else
6270  ac_cv_path_lt_DD=$lt_DD
6271fi
6272
6273rm -f conftest.i conftest2.i conftest.out
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6276$as_echo "$ac_cv_path_lt_DD" >&6; }
6277
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6280$as_echo_n "checking how to truncate binary pipes... " >&6; }
6281if ${lt_cv_truncate_bin+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  printf 0123456789abcdef0123456789abcdef >conftest.i
6285cat conftest.i conftest.i >conftest2.i
6286lt_cv_truncate_bin=
6287if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6288  cmp -s conftest.i conftest.out \
6289  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6290fi
6291rm -f conftest.i conftest2.i conftest.out
6292test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6295$as_echo "$lt_cv_truncate_bin" >&6; }
6296
6297
6298
6299
6300
6301
6302
6303# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6304func_cc_basename ()
6305{
6306    for cc_temp in $*""; do
6307      case $cc_temp in
6308        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6309        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6310        \-*) ;;
6311        *) break;;
6312      esac
6313    done
6314    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6315}
6316
6317# Check whether --enable-libtool-lock was given.
6318if test "${enable_libtool_lock+set}" = set; then :
6319  enableval=$enable_libtool_lock;
6320fi
6321
6322test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6323
6324# Some flags need to be propagated to the compiler or linker for good
6325# libtool support.
6326case $host in
6327ia64-*-hpux*)
6328  # Find out what ABI is being produced by ac_compile, and set mode
6329  # options accordingly.
6330  echo 'int i;' > conftest.$ac_ext
6331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332  (eval $ac_compile) 2>&5
6333  ac_status=$?
6334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335  test $ac_status = 0; }; then
6336    case `/usr/bin/file conftest.$ac_objext` in
6337      *ELF-32*)
6338	HPUX_IA64_MODE=32
6339	;;
6340      *ELF-64*)
6341	HPUX_IA64_MODE=64
6342	;;
6343    esac
6344  fi
6345  rm -rf conftest*
6346  ;;
6347*-*-irix6*)
6348  # Find out what ABI is being produced by ac_compile, and set linker
6349  # options accordingly.
6350  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6352  (eval $ac_compile) 2>&5
6353  ac_status=$?
6354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355  test $ac_status = 0; }; then
6356    if test yes = "$lt_cv_prog_gnu_ld"; then
6357      case `/usr/bin/file conftest.$ac_objext` in
6358	*32-bit*)
6359	  LD="${LD-ld} -melf32bsmip"
6360	  ;;
6361	*N32*)
6362	  LD="${LD-ld} -melf32bmipn32"
6363	  ;;
6364	*64-bit*)
6365	  LD="${LD-ld} -melf64bmip"
6366	;;
6367      esac
6368    else
6369      case `/usr/bin/file conftest.$ac_objext` in
6370	*32-bit*)
6371	  LD="${LD-ld} -32"
6372	  ;;
6373	*N32*)
6374	  LD="${LD-ld} -n32"
6375	  ;;
6376	*64-bit*)
6377	  LD="${LD-ld} -64"
6378	  ;;
6379      esac
6380    fi
6381  fi
6382  rm -rf conftest*
6383  ;;
6384
6385mips64*-*linux*)
6386  # Find out what ABI is being produced by ac_compile, and set linker
6387  # options accordingly.
6388  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390  (eval $ac_compile) 2>&5
6391  ac_status=$?
6392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393  test $ac_status = 0; }; then
6394    emul=elf
6395    case `/usr/bin/file conftest.$ac_objext` in
6396      *32-bit*)
6397	emul="${emul}32"
6398	;;
6399      *64-bit*)
6400	emul="${emul}64"
6401	;;
6402    esac
6403    case `/usr/bin/file conftest.$ac_objext` in
6404      *MSB*)
6405	emul="${emul}btsmip"
6406	;;
6407      *LSB*)
6408	emul="${emul}ltsmip"
6409	;;
6410    esac
6411    case `/usr/bin/file conftest.$ac_objext` in
6412      *N32*)
6413	emul="${emul}n32"
6414	;;
6415    esac
6416    LD="${LD-ld} -m $emul"
6417  fi
6418  rm -rf conftest*
6419  ;;
6420
6421x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6422s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6423  # Find out what ABI is being produced by ac_compile, and set linker
6424  # options accordingly.  Note that the listed cases only cover the
6425  # situations where additional linker options are needed (such as when
6426  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6427  # vice versa); the common cases where no linker options are needed do
6428  # not appear in the list.
6429  echo 'int i;' > conftest.$ac_ext
6430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431  (eval $ac_compile) 2>&5
6432  ac_status=$?
6433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434  test $ac_status = 0; }; then
6435    case `/usr/bin/file conftest.o` in
6436      *32-bit*)
6437	case $host in
6438	  x86_64-*kfreebsd*-gnu)
6439	    LD="${LD-ld} -m elf_i386_fbsd"
6440	    ;;
6441	  x86_64-*linux*)
6442	    case `/usr/bin/file conftest.o` in
6443	      *x86-64*)
6444		LD="${LD-ld} -m elf32_x86_64"
6445		;;
6446	      *)
6447		LD="${LD-ld} -m elf_i386"
6448		;;
6449	    esac
6450	    ;;
6451	  powerpc64le-*linux*)
6452	    LD="${LD-ld} -m elf32lppclinux"
6453	    ;;
6454	  powerpc64-*linux*)
6455	    LD="${LD-ld} -m elf32ppclinux"
6456	    ;;
6457	  s390x-*linux*)
6458	    LD="${LD-ld} -m elf_s390"
6459	    ;;
6460	  sparc64-*linux*)
6461	    LD="${LD-ld} -m elf32_sparc"
6462	    ;;
6463	esac
6464	;;
6465      *64-bit*)
6466	case $host in
6467	  x86_64-*kfreebsd*-gnu)
6468	    LD="${LD-ld} -m elf_x86_64_fbsd"
6469	    ;;
6470	  x86_64-*linux*)
6471	    LD="${LD-ld} -m elf_x86_64"
6472	    ;;
6473	  powerpcle-*linux*)
6474	    LD="${LD-ld} -m elf64lppc"
6475	    ;;
6476	  powerpc-*linux*)
6477	    LD="${LD-ld} -m elf64ppc"
6478	    ;;
6479	  s390*-*linux*|s390*-*tpf*)
6480	    LD="${LD-ld} -m elf64_s390"
6481	    ;;
6482	  sparc*-*linux*)
6483	    LD="${LD-ld} -m elf64_sparc"
6484	    ;;
6485	esac
6486	;;
6487    esac
6488  fi
6489  rm -rf conftest*
6490  ;;
6491
6492*-*-sco3.2v5*)
6493  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6494  SAVE_CFLAGS=$CFLAGS
6495  CFLAGS="$CFLAGS -belf"
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6497$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6498if ${lt_cv_cc_needs_belf+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509
6510int
6511main ()
6512{
6513
6514  ;
6515  return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_link "$LINENO"; then :
6519  lt_cv_cc_needs_belf=yes
6520else
6521  lt_cv_cc_needs_belf=no
6522fi
6523rm -f core conftest.err conftest.$ac_objext \
6524    conftest$ac_exeext conftest.$ac_ext
6525     ac_ext=c
6526ac_cpp='$CPP $CPPFLAGS'
6527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6533$as_echo "$lt_cv_cc_needs_belf" >&6; }
6534  if test yes != "$lt_cv_cc_needs_belf"; then
6535    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6536    CFLAGS=$SAVE_CFLAGS
6537  fi
6538  ;;
6539*-*solaris*)
6540  # Find out what ABI is being produced by ac_compile, and set linker
6541  # options accordingly.
6542  echo 'int i;' > conftest.$ac_ext
6543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544  (eval $ac_compile) 2>&5
6545  ac_status=$?
6546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547  test $ac_status = 0; }; then
6548    case `/usr/bin/file conftest.o` in
6549    *64-bit*)
6550      case $lt_cv_prog_gnu_ld in
6551      yes*)
6552        case $host in
6553        i?86-*-solaris*|x86_64-*-solaris*)
6554          LD="${LD-ld} -m elf_x86_64"
6555          ;;
6556        sparc*-*-solaris*)
6557          LD="${LD-ld} -m elf64_sparc"
6558          ;;
6559        esac
6560        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6561        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6562          LD=${LD-ld}_sol2
6563        fi
6564        ;;
6565      *)
6566	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6567	  LD="${LD-ld} -64"
6568	fi
6569	;;
6570      esac
6571      ;;
6572    esac
6573  fi
6574  rm -rf conftest*
6575  ;;
6576esac
6577
6578need_locks=$enable_libtool_lock
6579
6580if test -n "$ac_tool_prefix"; then
6581  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}mt; ac_word=$2
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  if test -n "$MANIFEST_TOOL"; then
6589  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  test -z "$as_dir" && as_dir=.
6596    for ac_exec_ext in '' $ac_executable_extensions; do
6597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600    break 2
6601  fi
6602done
6603  done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6609if test -n "$MANIFEST_TOOL"; then
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6611$as_echo "$MANIFEST_TOOL" >&6; }
6612else
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618fi
6619if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6620  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6621  # Extract the first word of "mt", so it can be a program name with args.
6622set dummy mt; ac_word=$2
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  if test -n "$ac_ct_MANIFEST_TOOL"; then
6629  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634  IFS=$as_save_IFS
6635  test -z "$as_dir" && as_dir=.
6636    for ac_exec_ext in '' $ac_executable_extensions; do
6637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643  done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6649if test -n "$ac_ct_MANIFEST_TOOL"; then
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6651$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6652else
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6658    MANIFEST_TOOL=":"
6659  else
6660    case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6667  fi
6668else
6669  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6670fi
6671
6672test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6674$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6675if ${lt_cv_path_mainfest_tool+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  lt_cv_path_mainfest_tool=no
6679  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6680  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6681  cat conftest.err >&5
6682  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6683    lt_cv_path_mainfest_tool=yes
6684  fi
6685  rm -f conftest*
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6688$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6689if test yes != "$lt_cv_path_mainfest_tool"; then
6690  MANIFEST_TOOL=:
6691fi
6692
6693
6694
6695
6696
6697
6698  case $host_os in
6699    rhapsody* | darwin*)
6700    if test -n "$ac_tool_prefix"; then
6701  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6702set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if ${ac_cv_prog_DSYMUTIL+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -n "$DSYMUTIL"; then
6709  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_exec_ext in '' $ac_executable_extensions; do
6717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720    break 2
6721  fi
6722done
6723  done
6724IFS=$as_save_IFS
6725
6726fi
6727fi
6728DSYMUTIL=$ac_cv_prog_DSYMUTIL
6729if test -n "$DSYMUTIL"; then
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6731$as_echo "$DSYMUTIL" >&6; }
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
6737
6738fi
6739if test -z "$ac_cv_prog_DSYMUTIL"; then
6740  ac_ct_DSYMUTIL=$DSYMUTIL
6741  # Extract the first word of "dsymutil", so it can be a program name with args.
6742set dummy dsymutil; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$ac_ct_DSYMUTIL"; then
6749  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6769if test -n "$ac_ct_DSYMUTIL"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6771$as_echo "$ac_ct_DSYMUTIL" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777  if test "x$ac_ct_DSYMUTIL" = x; then
6778    DSYMUTIL=":"
6779  else
6780    case $cross_compiling:$ac_tool_warned in
6781yes:)
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784ac_tool_warned=yes ;;
6785esac
6786    DSYMUTIL=$ac_ct_DSYMUTIL
6787  fi
6788else
6789  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6790fi
6791
6792    if test -n "$ac_tool_prefix"; then
6793  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6794set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796$as_echo_n "checking for $ac_word... " >&6; }
6797if ${ac_cv_prog_NMEDIT+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  if test -n "$NMEDIT"; then
6801  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808    for ac_exec_ext in '' $ac_executable_extensions; do
6809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815  done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820NMEDIT=$ac_cv_prog_NMEDIT
6821if test -n "$NMEDIT"; then
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6823$as_echo "$NMEDIT" >&6; }
6824else
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826$as_echo "no" >&6; }
6827fi
6828
6829
6830fi
6831if test -z "$ac_cv_prog_NMEDIT"; then
6832  ac_ct_NMEDIT=$NMEDIT
6833  # Extract the first word of "nmedit", so it can be a program name with args.
6834set dummy nmedit; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
6837if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6838  $as_echo_n "(cached) " >&6
6839else
6840  if test -n "$ac_ct_NMEDIT"; then
6841  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  test -z "$as_dir" && as_dir=.
6848    for ac_exec_ext in '' $ac_executable_extensions; do
6849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852    break 2
6853  fi
6854done
6855  done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6861if test -n "$ac_ct_NMEDIT"; then
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6863$as_echo "$ac_ct_NMEDIT" >&6; }
6864else
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869  if test "x$ac_ct_NMEDIT" = x; then
6870    NMEDIT=":"
6871  else
6872    case $cross_compiling:$ac_tool_warned in
6873yes:)
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876ac_tool_warned=yes ;;
6877esac
6878    NMEDIT=$ac_ct_NMEDIT
6879  fi
6880else
6881  NMEDIT="$ac_cv_prog_NMEDIT"
6882fi
6883
6884    if test -n "$ac_tool_prefix"; then
6885  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6886set dummy ${ac_tool_prefix}lipo; ac_word=$2
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if ${ac_cv_prog_LIPO+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$LIPO"; then
6893  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900    for ac_exec_ext in '' $ac_executable_extensions; do
6901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907  done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912LIPO=$ac_cv_prog_LIPO
6913if test -n "$LIPO"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6915$as_echo "$LIPO" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921
6922fi
6923if test -z "$ac_cv_prog_LIPO"; then
6924  ac_ct_LIPO=$LIPO
6925  # Extract the first word of "lipo", so it can be a program name with args.
6926set dummy lipo; ac_word=$2
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928$as_echo_n "checking for $ac_word... " >&6; }
6929if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  if test -n "$ac_ct_LIPO"; then
6933  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938  IFS=$as_save_IFS
6939  test -z "$as_dir" && as_dir=.
6940    for ac_exec_ext in '' $ac_executable_extensions; do
6941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942    ac_cv_prog_ac_ct_LIPO="lipo"
6943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944    break 2
6945  fi
6946done
6947  done
6948IFS=$as_save_IFS
6949
6950fi
6951fi
6952ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6953if test -n "$ac_ct_LIPO"; then
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6955$as_echo "$ac_ct_LIPO" >&6; }
6956else
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958$as_echo "no" >&6; }
6959fi
6960
6961  if test "x$ac_ct_LIPO" = x; then
6962    LIPO=":"
6963  else
6964    case $cross_compiling:$ac_tool_warned in
6965yes:)
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968ac_tool_warned=yes ;;
6969esac
6970    LIPO=$ac_ct_LIPO
6971  fi
6972else
6973  LIPO="$ac_cv_prog_LIPO"
6974fi
6975
6976    if test -n "$ac_tool_prefix"; then
6977  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6978set dummy ${ac_tool_prefix}otool; ac_word=$2
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980$as_echo_n "checking for $ac_word... " >&6; }
6981if ${ac_cv_prog_OTOOL+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  if test -n "$OTOOL"; then
6985  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002fi
7003fi
7004OTOOL=$ac_cv_prog_OTOOL
7005if test -n "$OTOOL"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7007$as_echo "$OTOOL" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014fi
7015if test -z "$ac_cv_prog_OTOOL"; then
7016  ac_ct_OTOOL=$OTOOL
7017  # Extract the first word of "otool", so it can be a program name with args.
7018set dummy otool; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  if test -n "$ac_ct_OTOOL"; then
7025  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_ac_ct_OTOOL="otool"
7035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7045if test -n "$ac_ct_OTOOL"; then
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7047$as_echo "$ac_ct_OTOOL" >&6; }
7048else
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053  if test "x$ac_ct_OTOOL" = x; then
7054    OTOOL=":"
7055  else
7056    case $cross_compiling:$ac_tool_warned in
7057yes:)
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060ac_tool_warned=yes ;;
7061esac
7062    OTOOL=$ac_ct_OTOOL
7063  fi
7064else
7065  OTOOL="$ac_cv_prog_OTOOL"
7066fi
7067
7068    if test -n "$ac_tool_prefix"; then
7069  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}otool64; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if ${ac_cv_prog_OTOOL64+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$OTOOL64"; then
7077  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096OTOOL64=$ac_cv_prog_OTOOL64
7097if test -n "$OTOOL64"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7099$as_echo "$OTOOL64" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106fi
7107if test -z "$ac_cv_prog_OTOOL64"; then
7108  ac_ct_OTOOL64=$OTOOL64
7109  # Extract the first word of "otool64", so it can be a program name with args.
7110set dummy otool64; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$ac_ct_OTOOL64"; then
7117  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_ac_ct_OTOOL64="otool64"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7137if test -n "$ac_ct_OTOOL64"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7139$as_echo "$ac_ct_OTOOL64" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145  if test "x$ac_ct_OTOOL64" = x; then
7146    OTOOL64=":"
7147  else
7148    case $cross_compiling:$ac_tool_warned in
7149yes:)
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152ac_tool_warned=yes ;;
7153esac
7154    OTOOL64=$ac_ct_OTOOL64
7155  fi
7156else
7157  OTOOL64="$ac_cv_prog_OTOOL64"
7158fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7187$as_echo_n "checking for -single_module linker flag... " >&6; }
7188if ${lt_cv_apple_cc_single_mod+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  lt_cv_apple_cc_single_mod=no
7192      if test -z "$LT_MULTI_MODULE"; then
7193	# By default we will add the -single_module flag. You can override
7194	# by either setting the environment variable LT_MULTI_MODULE
7195	# non-empty at configure time, or by adding -multi_module to the
7196	# link flags.
7197	rm -rf libconftest.dylib*
7198	echo "int foo(void){return 1;}" > conftest.c
7199	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200-dynamiclib -Wl,-single_module conftest.c" >&5
7201	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7202	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7203        _lt_result=$?
7204	# If there is a non-empty error log, and "single_module"
7205	# appears in it, assume the flag caused a linker warning
7206        if test -s conftest.err && $GREP single_module conftest.err; then
7207	  cat conftest.err >&5
7208	# Otherwise, if the output was created with a 0 exit code from
7209	# the compiler, it worked.
7210	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7211	  lt_cv_apple_cc_single_mod=yes
7212	else
7213	  cat conftest.err >&5
7214	fi
7215	rm -rf libconftest.dylib*
7216	rm -f conftest.*
7217      fi
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7220$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7221
7222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224if ${lt_cv_ld_exported_symbols_list+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  lt_cv_ld_exported_symbols_list=no
7228      save_LDFLAGS=$LDFLAGS
7229      echo "_main" > conftest.sym
7230      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  lt_cv_ld_exported_symbols_list=yes
7244else
7245  lt_cv_ld_exported_symbols_list=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249	LDFLAGS=$save_LDFLAGS
7250
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254
7255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7256$as_echo_n "checking for -force_load linker flag... " >&6; }
7257if ${lt_cv_ld_force_load+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  lt_cv_ld_force_load=no
7261      cat > conftest.c << _LT_EOF
7262int forced_loaded() { return 2;}
7263_LT_EOF
7264      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7265      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7266      echo "$AR cru libconftest.a conftest.o" >&5
7267      $AR cru libconftest.a conftest.o 2>&5
7268      echo "$RANLIB libconftest.a" >&5
7269      $RANLIB libconftest.a 2>&5
7270      cat > conftest.c << _LT_EOF
7271int main() { return 0;}
7272_LT_EOF
7273      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7274      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7275      _lt_result=$?
7276      if test -s conftest.err && $GREP force_load conftest.err; then
7277	cat conftest.err >&5
7278      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7279	lt_cv_ld_force_load=yes
7280      else
7281	cat conftest.err >&5
7282      fi
7283        rm -f conftest.err libconftest.a conftest conftest.c
7284        rm -rf conftest.dSYM
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7288$as_echo "$lt_cv_ld_force_load" >&6; }
7289    case $host_os in
7290    rhapsody* | darwin1.[012])
7291      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7292    darwin1.*)
7293      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7294    darwin*) # darwin 5.x on
7295      # if running on 10.5 or later, the deployment target defaults
7296      # to the OS version, if on x86, and 10.4, the deployment
7297      # target defaults to 10.4. Don't you love it?
7298      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7299	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7300	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7301	10.[012][,.]*)
7302	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7303	10.*)
7304	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7305      esac
7306    ;;
7307  esac
7308    if test yes = "$lt_cv_apple_cc_single_mod"; then
7309      _lt_dar_single_mod='$single_module'
7310    fi
7311    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7312      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7313    else
7314      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7315    fi
7316    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7317      _lt_dsymutil='~$DSYMUTIL $lib || :'
7318    else
7319      _lt_dsymutil=
7320    fi
7321    ;;
7322  esac
7323
7324# func_munge_path_list VARIABLE PATH
7325# -----------------------------------
7326# VARIABLE is name of variable containing _space_ separated list of
7327# directories to be munged by the contents of PATH, which is string
7328# having a format:
7329# "DIR[:DIR]:"
7330#       string "DIR[ DIR]" will be prepended to VARIABLE
7331# ":DIR[:DIR]"
7332#       string "DIR[ DIR]" will be appended to VARIABLE
7333# "DIRP[:DIRP]::[DIRA:]DIRA"
7334#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7335#       "DIRA[ DIRA]" will be appended to VARIABLE
7336# "DIR[:DIR]"
7337#       VARIABLE will be replaced by "DIR[ DIR]"
7338func_munge_path_list ()
7339{
7340    case x$2 in
7341    x)
7342        ;;
7343    *:)
7344        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7345        ;;
7346    x:*)
7347        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7348        ;;
7349    *::*)
7350        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7351        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7352        ;;
7353    *)
7354        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7355        ;;
7356    esac
7357}
7358
7359for ac_header in dlfcn.h
7360do :
7361  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7362"
7363if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7364  cat >>confdefs.h <<_ACEOF
7365#define HAVE_DLFCN_H 1
7366_ACEOF
7367
7368fi
7369
7370done
7371
7372
7373
7374
7375
7376# Set options
7377
7378
7379
7380        enable_dlopen=no
7381
7382
7383  enable_win32_dll=no
7384
7385
7386            # Check whether --enable-shared was given.
7387if test "${enable_shared+set}" = set; then :
7388  enableval=$enable_shared; p=${PACKAGE-default}
7389    case $enableval in
7390    yes) enable_shared=yes ;;
7391    no) enable_shared=no ;;
7392    *)
7393      enable_shared=no
7394      # Look at the argument we got.  We use all the common list separators.
7395      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7396      for pkg in $enableval; do
7397	IFS=$lt_save_ifs
7398	if test "X$pkg" = "X$p"; then
7399	  enable_shared=yes
7400	fi
7401      done
7402      IFS=$lt_save_ifs
7403      ;;
7404    esac
7405else
7406  enable_shared=yes
7407fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417  # Check whether --enable-static was given.
7418if test "${enable_static+set}" = set; then :
7419  enableval=$enable_static; p=${PACKAGE-default}
7420    case $enableval in
7421    yes) enable_static=yes ;;
7422    no) enable_static=no ;;
7423    *)
7424     enable_static=no
7425      # Look at the argument we got.  We use all the common list separators.
7426      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7427      for pkg in $enableval; do
7428	IFS=$lt_save_ifs
7429	if test "X$pkg" = "X$p"; then
7430	  enable_static=yes
7431	fi
7432      done
7433      IFS=$lt_save_ifs
7434      ;;
7435    esac
7436else
7437  enable_static=yes
7438fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449# Check whether --with-pic was given.
7450if test "${with_pic+set}" = set; then :
7451  withval=$with_pic; lt_p=${PACKAGE-default}
7452    case $withval in
7453    yes|no) pic_mode=$withval ;;
7454    *)
7455      pic_mode=default
7456      # Look at the argument we got.  We use all the common list separators.
7457      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7458      for lt_pkg in $withval; do
7459	IFS=$lt_save_ifs
7460	if test "X$lt_pkg" = "X$lt_p"; then
7461	  pic_mode=yes
7462	fi
7463      done
7464      IFS=$lt_save_ifs
7465      ;;
7466    esac
7467else
7468  pic_mode=default
7469fi
7470
7471
7472
7473
7474
7475
7476
7477
7478  # Check whether --enable-fast-install was given.
7479if test "${enable_fast_install+set}" = set; then :
7480  enableval=$enable_fast_install; p=${PACKAGE-default}
7481    case $enableval in
7482    yes) enable_fast_install=yes ;;
7483    no) enable_fast_install=no ;;
7484    *)
7485      enable_fast_install=no
7486      # Look at the argument we got.  We use all the common list separators.
7487      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7488      for pkg in $enableval; do
7489	IFS=$lt_save_ifs
7490	if test "X$pkg" = "X$p"; then
7491	  enable_fast_install=yes
7492	fi
7493      done
7494      IFS=$lt_save_ifs
7495      ;;
7496    esac
7497else
7498  enable_fast_install=yes
7499fi
7500
7501
7502
7503
7504
7505
7506
7507
7508  shared_archive_member_spec=
7509case $host,$enable_shared in
7510power*-*-aix[5-9]*,yes)
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7512$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7513
7514# Check whether --with-aix-soname was given.
7515if test "${with_aix_soname+set}" = set; then :
7516  withval=$with_aix_soname; case $withval in
7517    aix|svr4|both)
7518      ;;
7519    *)
7520      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7521      ;;
7522    esac
7523    lt_cv_with_aix_soname=$with_aix_soname
7524else
7525  if ${lt_cv_with_aix_soname+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  lt_cv_with_aix_soname=aix
7529fi
7530
7531    with_aix_soname=$lt_cv_with_aix_soname
7532fi
7533
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7535$as_echo "$with_aix_soname" >&6; }
7536  if test aix != "$with_aix_soname"; then
7537    # For the AIX way of multilib, we name the shared archive member
7538    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7539    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7540    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7541    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7542    if test 64 = "${OBJECT_MODE-32}"; then
7543      shared_archive_member_spec=shr_64
7544    else
7545      shared_archive_member_spec=shr
7546    fi
7547  fi
7548  ;;
7549*)
7550  with_aix_soname=aix
7551  ;;
7552esac
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563# This can be used to rebuild libtool when needed
7564LIBTOOL_DEPS=$ltmain
7565
7566# Always use our own libtool.
7567LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598test -z "$LN_S" && LN_S="ln -s"
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613if test -n "${ZSH_VERSION+set}"; then
7614   setopt NO_GLOB_SUBST
7615fi
7616
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7618$as_echo_n "checking for objdir... " >&6; }
7619if ${lt_cv_objdir+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  rm -f .libs 2>/dev/null
7623mkdir .libs 2>/dev/null
7624if test -d .libs; then
7625  lt_cv_objdir=.libs
7626else
7627  # MS-DOS does not allow filenames that begin with a dot.
7628  lt_cv_objdir=_libs
7629fi
7630rmdir .libs 2>/dev/null
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7633$as_echo "$lt_cv_objdir" >&6; }
7634objdir=$lt_cv_objdir
7635
7636
7637
7638
7639
7640cat >>confdefs.h <<_ACEOF
7641#define LT_OBJDIR "$lt_cv_objdir/"
7642_ACEOF
7643
7644
7645
7646
7647case $host_os in
7648aix3*)
7649  # AIX sometimes has problems with the GCC collect2 program.  For some
7650  # reason, if we set the COLLECT_NAMES environment variable, the problems
7651  # vanish in a puff of smoke.
7652  if test set != "${COLLECT_NAMES+set}"; then
7653    COLLECT_NAMES=
7654    export COLLECT_NAMES
7655  fi
7656  ;;
7657esac
7658
7659# Global variables:
7660ofile=libtool
7661can_build_shared=yes
7662
7663# All known linkers require a '.a' archive for static linking (except MSVC,
7664# which needs '.lib').
7665libext=a
7666
7667with_gnu_ld=$lt_cv_prog_gnu_ld
7668
7669old_CC=$CC
7670old_CFLAGS=$CFLAGS
7671
7672# Set sane defaults for various variables
7673test -z "$CC" && CC=cc
7674test -z "$LTCC" && LTCC=$CC
7675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7676test -z "$LD" && LD=ld
7677test -z "$ac_objext" && ac_objext=o
7678
7679func_cc_basename $compiler
7680cc_basename=$func_cc_basename_result
7681
7682
7683# Only perform the check for file, if the check method requires it
7684test -z "$MAGIC_CMD" && MAGIC_CMD=file
7685case $deplibs_check_method in
7686file_magic*)
7687  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7689$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7690if ${lt_cv_path_MAGIC_CMD+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  case $MAGIC_CMD in
7694[\\/*] |  ?:[\\/]*)
7695  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7696  ;;
7697*)
7698  lt_save_MAGIC_CMD=$MAGIC_CMD
7699  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7700  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7701  for ac_dir in $ac_dummy; do
7702    IFS=$lt_save_ifs
7703    test -z "$ac_dir" && ac_dir=.
7704    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7705      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7706      if test -n "$file_magic_test_file"; then
7707	case $deplibs_check_method in
7708	"file_magic "*)
7709	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7710	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7711	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7712	    $EGREP "$file_magic_regex" > /dev/null; then
7713	    :
7714	  else
7715	    cat <<_LT_EOF 1>&2
7716
7717*** Warning: the command libtool uses to detect shared libraries,
7718*** $file_magic_cmd, produces output that libtool cannot recognize.
7719*** The result is that libtool may fail to recognize shared libraries
7720*** as such.  This will affect the creation of libtool libraries that
7721*** depend on shared libraries, but programs linked with such libtool
7722*** libraries will work regardless of this problem.  Nevertheless, you
7723*** may want to report the problem to your system manager and/or to
7724*** bug-libtool@gnu.org
7725
7726_LT_EOF
7727	  fi ;;
7728	esac
7729      fi
7730      break
7731    fi
7732  done
7733  IFS=$lt_save_ifs
7734  MAGIC_CMD=$lt_save_MAGIC_CMD
7735  ;;
7736esac
7737fi
7738
7739MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7740if test -n "$MAGIC_CMD"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7742$as_echo "$MAGIC_CMD" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749
7750
7751
7752if test -z "$lt_cv_path_MAGIC_CMD"; then
7753  if test -n "$ac_tool_prefix"; then
7754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7755$as_echo_n "checking for file... " >&6; }
7756if ${lt_cv_path_MAGIC_CMD+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  case $MAGIC_CMD in
7760[\\/*] |  ?:[\\/]*)
7761  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7762  ;;
7763*)
7764  lt_save_MAGIC_CMD=$MAGIC_CMD
7765  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7766  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767  for ac_dir in $ac_dummy; do
7768    IFS=$lt_save_ifs
7769    test -z "$ac_dir" && ac_dir=.
7770    if test -f "$ac_dir/file"; then
7771      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7772      if test -n "$file_magic_test_file"; then
7773	case $deplibs_check_method in
7774	"file_magic "*)
7775	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7777	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778	    $EGREP "$file_magic_regex" > /dev/null; then
7779	    :
7780	  else
7781	    cat <<_LT_EOF 1>&2
7782
7783*** Warning: the command libtool uses to detect shared libraries,
7784*** $file_magic_cmd, produces output that libtool cannot recognize.
7785*** The result is that libtool may fail to recognize shared libraries
7786*** as such.  This will affect the creation of libtool libraries that
7787*** depend on shared libraries, but programs linked with such libtool
7788*** libraries will work regardless of this problem.  Nevertheless, you
7789*** may want to report the problem to your system manager and/or to
7790*** bug-libtool@gnu.org
7791
7792_LT_EOF
7793	  fi ;;
7794	esac
7795      fi
7796      break
7797    fi
7798  done
7799  IFS=$lt_save_ifs
7800  MAGIC_CMD=$lt_save_MAGIC_CMD
7801  ;;
7802esac
7803fi
7804
7805MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7806if test -n "$MAGIC_CMD"; then
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7808$as_echo "$MAGIC_CMD" >&6; }
7809else
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815  else
7816    MAGIC_CMD=:
7817  fi
7818fi
7819
7820  fi
7821  ;;
7822esac
7823
7824# Use C for the default configuration in the libtool script
7825
7826lt_save_CC=$CC
7827ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833
7834# Source file extension for C test sources.
7835ac_ext=c
7836
7837# Object file extension for compiled C test sources.
7838objext=o
7839objext=$objext
7840
7841# Code to be used in simple compile tests
7842lt_simple_compile_test_code="int some_variable = 0;"
7843
7844# Code to be used in simple link tests
7845lt_simple_link_test_code='int main(){return(0);}'
7846
7847
7848
7849
7850
7851
7852
7853# If no C compiler was specified, use CC.
7854LTCC=${LTCC-"$CC"}
7855
7856# If no C compiler flags were specified, use CFLAGS.
7857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7858
7859# Allow CC to be a program name with arguments.
7860compiler=$CC
7861
7862# Save the default compiler, since it gets overwritten when the other
7863# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7864compiler_DEFAULT=$CC
7865
7866# save warnings/boilerplate of simple test code
7867ac_outfile=conftest.$ac_objext
7868echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7869eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7870_lt_compiler_boilerplate=`cat conftest.err`
7871$RM conftest*
7872
7873ac_outfile=conftest.$ac_objext
7874echo "$lt_simple_link_test_code" >conftest.$ac_ext
7875eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876_lt_linker_boilerplate=`cat conftest.err`
7877$RM -r conftest*
7878
7879
7880## CAVEAT EMPTOR:
7881## There is no encapsulation within the following macros, do not change
7882## the running order or otherwise move them around unless you know exactly
7883## what you are doing...
7884if test -n "$compiler"; then
7885
7886lt_prog_compiler_no_builtin_flag=
7887
7888if test yes = "$GCC"; then
7889  case $cc_basename in
7890  nvcc*)
7891    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7892  *)
7893    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7894  esac
7895
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_prog_compiler_rtti_exceptions=no
7902   ac_outfile=conftest.$ac_objext
7903   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7905   # Insert the option either (1) after the last *FLAGS variable, or
7906   # (2) before a word containing "conftest.", or (3) at the end.
7907   # Note that $ac_compile itself does not contain backslashes and begins
7908   # with a dollar sign (not a hyphen), so the echo should work correctly.
7909   # The option is referenced via a variable to avoid confusing sed.
7910   lt_compile=`echo "$ac_compile" | $SED \
7911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913   -e 's:$: $lt_compiler_flag:'`
7914   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7915   (eval "$lt_compile" 2>conftest.err)
7916   ac_status=$?
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   if (exit $ac_status) && test -s "$ac_outfile"; then
7920     # The compiler can only warn and ignore the option if not recognized
7921     # So say no if there are warnings other than the usual output.
7922     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925       lt_cv_prog_compiler_rtti_exceptions=yes
7926     fi
7927   fi
7928   $RM conftest*
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7933
7934if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7935    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936else
7937    :
7938fi
7939
7940fi
7941
7942
7943
7944
7945
7946
7947  lt_prog_compiler_wl=
7948lt_prog_compiler_pic=
7949lt_prog_compiler_static=
7950
7951
7952  if test yes = "$GCC"; then
7953    lt_prog_compiler_wl='-Wl,'
7954    lt_prog_compiler_static='-static'
7955
7956    case $host_os in
7957      aix*)
7958      # All AIX code is PIC.
7959      if test ia64 = "$host_cpu"; then
7960	# AIX 5 now supports IA64 processor
7961	lt_prog_compiler_static='-Bstatic'
7962      fi
7963      lt_prog_compiler_pic='-fPIC'
7964      ;;
7965
7966    amigaos*)
7967      case $host_cpu in
7968      powerpc)
7969            # see comment about AmigaOS4 .so support
7970            lt_prog_compiler_pic='-fPIC'
7971        ;;
7972      m68k)
7973            # FIXME: we need at least 68020 code to build shared libraries, but
7974            # adding the '-m68020' flag to GCC prevents building anything better,
7975            # like '-m68040'.
7976            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7977        ;;
7978      esac
7979      ;;
7980
7981    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7982      # PIC is the default for these OSes.
7983      ;;
7984
7985    mingw* | cygwin* | pw32* | os2* | cegcc*)
7986      # This hack is so that the source file can tell whether it is being
7987      # built for inclusion in a dll (and should export symbols for example).
7988      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7989      # (--disable-auto-import) libraries
7990      lt_prog_compiler_pic='-DDLL_EXPORT'
7991      case $host_os in
7992      os2*)
7993	lt_prog_compiler_static='$wl-static'
7994	;;
7995      esac
7996      ;;
7997
7998    darwin* | rhapsody*)
7999      # PIC is the default on this platform
8000      # Common symbols not allowed in MH_DYLIB files
8001      lt_prog_compiler_pic='-fno-common'
8002      ;;
8003
8004    haiku*)
8005      # PIC is the default for Haiku.
8006      # The "-static" flag exists, but is broken.
8007      lt_prog_compiler_static=
8008      ;;
8009
8010    hpux*)
8011      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8012      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8013      # sets the default TLS model and affects inlining.
8014      case $host_cpu in
8015      hppa*64*)
8016	# +Z the default
8017	;;
8018      *)
8019	lt_prog_compiler_pic='-fPIC'
8020	;;
8021      esac
8022      ;;
8023
8024    interix[3-9]*)
8025      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8026      # Instead, we relocate shared libraries at runtime.
8027      ;;
8028
8029    msdosdjgpp*)
8030      # Just because we use GCC doesn't mean we suddenly get shared libraries
8031      # on systems that don't support them.
8032      lt_prog_compiler_can_build_shared=no
8033      enable_shared=no
8034      ;;
8035
8036    *nto* | *qnx*)
8037      # QNX uses GNU C++, but need to define -shared option too, otherwise
8038      # it will coredump.
8039      lt_prog_compiler_pic='-fPIC -shared'
8040      ;;
8041
8042    sysv4*MP*)
8043      if test -d /usr/nec; then
8044	lt_prog_compiler_pic=-Kconform_pic
8045      fi
8046      ;;
8047
8048    *)
8049      lt_prog_compiler_pic='-fPIC'
8050      ;;
8051    esac
8052
8053    case $cc_basename in
8054    nvcc*) # Cuda Compiler Driver 2.2
8055      lt_prog_compiler_wl='-Xlinker '
8056      if test -n "$lt_prog_compiler_pic"; then
8057        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8058      fi
8059      ;;
8060    esac
8061  else
8062    # PORTME Check for flag to pass linker flags through the system compiler.
8063    case $host_os in
8064    aix*)
8065      lt_prog_compiler_wl='-Wl,'
8066      if test ia64 = "$host_cpu"; then
8067	# AIX 5 now supports IA64 processor
8068	lt_prog_compiler_static='-Bstatic'
8069      else
8070	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8071      fi
8072      ;;
8073
8074    darwin* | rhapsody*)
8075      # PIC is the default on this platform
8076      # Common symbols not allowed in MH_DYLIB files
8077      lt_prog_compiler_pic='-fno-common'
8078      case $cc_basename in
8079      nagfor*)
8080        # NAG Fortran compiler
8081        lt_prog_compiler_wl='-Wl,-Wl,,'
8082        lt_prog_compiler_pic='-PIC'
8083        lt_prog_compiler_static='-Bstatic'
8084        ;;
8085      esac
8086      ;;
8087
8088    mingw* | cygwin* | pw32* | os2* | cegcc*)
8089      # This hack is so that the source file can tell whether it is being
8090      # built for inclusion in a dll (and should export symbols for example).
8091      lt_prog_compiler_pic='-DDLL_EXPORT'
8092      case $host_os in
8093      os2*)
8094	lt_prog_compiler_static='$wl-static'
8095	;;
8096      esac
8097      ;;
8098
8099    hpux9* | hpux10* | hpux11*)
8100      lt_prog_compiler_wl='-Wl,'
8101      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8102      # not for PA HP-UX.
8103      case $host_cpu in
8104      hppa*64*|ia64*)
8105	# +Z the default
8106	;;
8107      *)
8108	lt_prog_compiler_pic='+Z'
8109	;;
8110      esac
8111      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8112      lt_prog_compiler_static='$wl-a ${wl}archive'
8113      ;;
8114
8115    irix5* | irix6* | nonstopux*)
8116      lt_prog_compiler_wl='-Wl,'
8117      # PIC (with -KPIC) is the default.
8118      lt_prog_compiler_static='-non_shared'
8119      ;;
8120
8121    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8122      case $cc_basename in
8123      # old Intel for x86_64, which still supported -KPIC.
8124      ecc*)
8125	lt_prog_compiler_wl='-Wl,'
8126	lt_prog_compiler_pic='-KPIC'
8127	lt_prog_compiler_static='-static'
8128        ;;
8129      # icc used to be incompatible with GCC.
8130      # ICC 10 doesn't accept -KPIC any more.
8131      icc* | ifort*)
8132	lt_prog_compiler_wl='-Wl,'
8133	lt_prog_compiler_pic='-fPIC'
8134	lt_prog_compiler_static='-static'
8135        ;;
8136      # Lahey Fortran 8.1.
8137      lf95*)
8138	lt_prog_compiler_wl='-Wl,'
8139	lt_prog_compiler_pic='--shared'
8140	lt_prog_compiler_static='--static'
8141	;;
8142      nagfor*)
8143	# NAG Fortran compiler
8144	lt_prog_compiler_wl='-Wl,-Wl,,'
8145	lt_prog_compiler_pic='-PIC'
8146	lt_prog_compiler_static='-Bstatic'
8147	;;
8148      tcc*)
8149	# Fabrice Bellard et al's Tiny C Compiler
8150	lt_prog_compiler_wl='-Wl,'
8151	lt_prog_compiler_pic='-fPIC'
8152	lt_prog_compiler_static='-static'
8153	;;
8154      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8155        # Portland Group compilers (*not* the Pentium gcc compiler,
8156	# which looks to be a dead project)
8157	lt_prog_compiler_wl='-Wl,'
8158	lt_prog_compiler_pic='-fpic'
8159	lt_prog_compiler_static='-Bstatic'
8160        ;;
8161      ccc*)
8162        lt_prog_compiler_wl='-Wl,'
8163        # All Alpha code is PIC.
8164        lt_prog_compiler_static='-non_shared'
8165        ;;
8166      xl* | bgxl* | bgf* | mpixl*)
8167	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8168	lt_prog_compiler_wl='-Wl,'
8169	lt_prog_compiler_pic='-qpic'
8170	lt_prog_compiler_static='-qstaticlink'
8171	;;
8172      *)
8173	case `$CC -V 2>&1 | sed 5q` in
8174	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8175	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8176	  lt_prog_compiler_pic='-KPIC'
8177	  lt_prog_compiler_static='-Bstatic'
8178	  lt_prog_compiler_wl=''
8179	  ;;
8180	*Sun\ F* | *Sun*Fortran*)
8181	  lt_prog_compiler_pic='-KPIC'
8182	  lt_prog_compiler_static='-Bstatic'
8183	  lt_prog_compiler_wl='-Qoption ld '
8184	  ;;
8185	*Sun\ C*)
8186	  # Sun C 5.9
8187	  lt_prog_compiler_pic='-KPIC'
8188	  lt_prog_compiler_static='-Bstatic'
8189	  lt_prog_compiler_wl='-Wl,'
8190	  ;;
8191        *Intel*\ [CF]*Compiler*)
8192	  lt_prog_compiler_wl='-Wl,'
8193	  lt_prog_compiler_pic='-fPIC'
8194	  lt_prog_compiler_static='-static'
8195	  ;;
8196	*Portland\ Group*)
8197	  lt_prog_compiler_wl='-Wl,'
8198	  lt_prog_compiler_pic='-fpic'
8199	  lt_prog_compiler_static='-Bstatic'
8200	  ;;
8201	esac
8202	;;
8203      esac
8204      ;;
8205
8206    newsos6)
8207      lt_prog_compiler_pic='-KPIC'
8208      lt_prog_compiler_static='-Bstatic'
8209      ;;
8210
8211    *nto* | *qnx*)
8212      # QNX uses GNU C++, but need to define -shared option too, otherwise
8213      # it will coredump.
8214      lt_prog_compiler_pic='-fPIC -shared'
8215      ;;
8216
8217    osf3* | osf4* | osf5*)
8218      lt_prog_compiler_wl='-Wl,'
8219      # All OSF/1 code is PIC.
8220      lt_prog_compiler_static='-non_shared'
8221      ;;
8222
8223    rdos*)
8224      lt_prog_compiler_static='-non_shared'
8225      ;;
8226
8227    solaris*)
8228      lt_prog_compiler_pic='-KPIC'
8229      lt_prog_compiler_static='-Bstatic'
8230      case $cc_basename in
8231      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8232	lt_prog_compiler_wl='-Qoption ld ';;
8233      *)
8234	lt_prog_compiler_wl='-Wl,';;
8235      esac
8236      ;;
8237
8238    sunos4*)
8239      lt_prog_compiler_wl='-Qoption ld '
8240      lt_prog_compiler_pic='-PIC'
8241      lt_prog_compiler_static='-Bstatic'
8242      ;;
8243
8244    sysv4 | sysv4.2uw2* | sysv4.3*)
8245      lt_prog_compiler_wl='-Wl,'
8246      lt_prog_compiler_pic='-KPIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4*MP*)
8251      if test -d /usr/nec; then
8252	lt_prog_compiler_pic='-Kconform_pic'
8253	lt_prog_compiler_static='-Bstatic'
8254      fi
8255      ;;
8256
8257    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8258      lt_prog_compiler_wl='-Wl,'
8259      lt_prog_compiler_pic='-KPIC'
8260      lt_prog_compiler_static='-Bstatic'
8261      ;;
8262
8263    unicos*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_can_build_shared=no
8266      ;;
8267
8268    uts4*)
8269      lt_prog_compiler_pic='-pic'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    *)
8274      lt_prog_compiler_can_build_shared=no
8275      ;;
8276    esac
8277  fi
8278
8279case $host_os in
8280  # For platforms that do not support PIC, -DPIC is meaningless:
8281  *djgpp*)
8282    lt_prog_compiler_pic=
8283    ;;
8284  *)
8285    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8286    ;;
8287esac
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8290$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8291if ${lt_cv_prog_compiler_pic+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8297$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8298lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8299
8300#
8301# Check to make sure the PIC flag actually works.
8302#
8303if test -n "$lt_prog_compiler_pic"; then
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8305$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8306if ${lt_cv_prog_compiler_pic_works+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  lt_cv_prog_compiler_pic_works=no
8310   ac_outfile=conftest.$ac_objext
8311   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8313   # Insert the option either (1) after the last *FLAGS variable, or
8314   # (2) before a word containing "conftest.", or (3) at the end.
8315   # Note that $ac_compile itself does not contain backslashes and begins
8316   # with a dollar sign (not a hyphen), so the echo should work correctly.
8317   # The option is referenced via a variable to avoid confusing sed.
8318   lt_compile=`echo "$ac_compile" | $SED \
8319   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321   -e 's:$: $lt_compiler_flag:'`
8322   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323   (eval "$lt_compile" 2>conftest.err)
8324   ac_status=$?
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   if (exit $ac_status) && test -s "$ac_outfile"; then
8328     # The compiler can only warn and ignore the option if not recognized
8329     # So say no if there are warnings other than the usual output.
8330     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8331     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333       lt_cv_prog_compiler_pic_works=yes
8334     fi
8335   fi
8336   $RM conftest*
8337
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8340$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8341
8342if test yes = "$lt_cv_prog_compiler_pic_works"; then
8343    case $lt_prog_compiler_pic in
8344     "" | " "*) ;;
8345     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8346     esac
8347else
8348    lt_prog_compiler_pic=
8349     lt_prog_compiler_can_build_shared=no
8350fi
8351
8352fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364#
8365# Check to make sure the static flag actually works.
8366#
8367wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370if ${lt_cv_prog_compiler_static_works+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  lt_cv_prog_compiler_static_works=no
8374   save_LDFLAGS=$LDFLAGS
8375   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378     # The linker can only warn and ignore the option if not recognized
8379     # So say no if there are warnings
8380     if test -s conftest.err; then
8381       # Append any errors to the config.log.
8382       cat conftest.err 1>&5
8383       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385       if diff conftest.exp conftest.er2 >/dev/null; then
8386         lt_cv_prog_compiler_static_works=yes
8387       fi
8388     else
8389       lt_cv_prog_compiler_static_works=yes
8390     fi
8391   fi
8392   $RM -r conftest*
8393   LDFLAGS=$save_LDFLAGS
8394
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8398
8399if test yes = "$lt_cv_prog_compiler_static_works"; then
8400    :
8401else
8402    lt_prog_compiler_static=
8403fi
8404
8405
8406
8407
8408
8409
8410
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413if ${lt_cv_prog_compiler_c_o+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  lt_cv_prog_compiler_c_o=no
8417   $RM -r conftest 2>/dev/null
8418   mkdir conftest
8419   cd conftest
8420   mkdir out
8421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
8423   lt_compiler_flag="-o out/conftest2.$ac_objext"
8424   # Insert the option either (1) after the last *FLAGS variable, or
8425   # (2) before a word containing "conftest.", or (3) at the end.
8426   # Note that $ac_compile itself does not contain backslashes and begins
8427   # with a dollar sign (not a hyphen), so the echo should work correctly.
8428   lt_compile=`echo "$ac_compile" | $SED \
8429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431   -e 's:$: $lt_compiler_flag:'`
8432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433   (eval "$lt_compile" 2>out/conftest.err)
8434   ac_status=$?
8435   cat out/conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438   then
8439     # The compiler can only warn and ignore the option if not recognized
8440     # So say no if there are warnings
8441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444       lt_cv_prog_compiler_c_o=yes
8445     fi
8446   fi
8447   chmod u+w . 2>&5
8448   $RM conftest*
8449   # SGI C++ compiler will create directory out/ii_files/ for
8450   # template instantiation
8451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452   $RM out/* && rmdir out
8453   cd ..
8454   $RM -r conftest
8455   $RM conftest*
8456
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8460
8461
8462
8463
8464
8465
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468if ${lt_cv_prog_compiler_c_o+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_c_o=no
8472   $RM -r conftest 2>/dev/null
8473   mkdir conftest
8474   cd conftest
8475   mkdir out
8476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478   lt_compiler_flag="-o out/conftest2.$ac_objext"
8479   # Insert the option either (1) after the last *FLAGS variable, or
8480   # (2) before a word containing "conftest.", or (3) at the end.
8481   # Note that $ac_compile itself does not contain backslashes and begins
8482   # with a dollar sign (not a hyphen), so the echo should work correctly.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>out/conftest.err)
8489   ac_status=$?
8490   cat out/conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493   then
8494     # The compiler can only warn and ignore the option if not recognized
8495     # So say no if there are warnings
8496     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499       lt_cv_prog_compiler_c_o=yes
8500     fi
8501   fi
8502   chmod u+w . 2>&5
8503   $RM conftest*
8504   # SGI C++ compiler will create directory out/ii_files/ for
8505   # template instantiation
8506   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507   $RM out/* && rmdir out
8508   cd ..
8509   $RM -r conftest
8510   $RM conftest*
8511
8512fi
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519hard_links=nottested
8520if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8521  # do not overwrite the value of need_locks provided by the user
8522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523$as_echo_n "checking if we can lock with hard links... " >&6; }
8524  hard_links=yes
8525  $RM conftest*
8526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527  touch conftest.a
8528  ln conftest.a conftest.b 2>&5 || hard_links=no
8529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531$as_echo "$hard_links" >&6; }
8532  if test no = "$hard_links"; then
8533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8534$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8535    need_locks=warn
8536  fi
8537else
8538  need_locks=no
8539fi
8540
8541
8542
8543
8544
8545
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8548
8549  runpath_var=
8550  allow_undefined_flag=
8551  always_export_symbols=no
8552  archive_cmds=
8553  archive_expsym_cmds=
8554  compiler_needs_object=no
8555  enable_shared_with_static_runtimes=no
8556  export_dynamic_flag_spec=
8557  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558  hardcode_automatic=no
8559  hardcode_direct=no
8560  hardcode_direct_absolute=no
8561  hardcode_libdir_flag_spec=
8562  hardcode_libdir_separator=
8563  hardcode_minus_L=no
8564  hardcode_shlibpath_var=unsupported
8565  inherit_rpath=no
8566  link_all_deplibs=unknown
8567  module_cmds=
8568  module_expsym_cmds=
8569  old_archive_from_new_cmds=
8570  old_archive_from_expsyms_cmds=
8571  thread_safe_flag_spec=
8572  whole_archive_flag_spec=
8573  # include_expsyms should be a list of space-separated symbols to be *always*
8574  # included in the symbol list
8575  include_expsyms=
8576  # exclude_expsyms can be an extended regexp of symbols to exclude
8577  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8578  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8579  # as well as any symbol that contains 'd'.
8580  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582  # platforms (ab)use it in PIC code, but their linkers get confused if
8583  # the symbol is explicitly referenced.  Since portable code cannot
8584  # rely on this symbol name, it's probably fine to never include it in
8585  # preloaded symbol tables.
8586  # Exclude shared library initialization/finalization symbols.
8587  extract_expsyms_cmds=
8588
8589  case $host_os in
8590  cygwin* | mingw* | pw32* | cegcc*)
8591    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592    # When not using gcc, we currently assume that we are using
8593    # Microsoft Visual C++.
8594    if test yes != "$GCC"; then
8595      with_gnu_ld=no
8596    fi
8597    ;;
8598  interix*)
8599    # we just hope/assume this is gcc and not c89 (= MSVC++)
8600    with_gnu_ld=yes
8601    ;;
8602  openbsd* | bitrig*)
8603    with_gnu_ld=no
8604    ;;
8605  linux* | k*bsd*-gnu | gnu*)
8606    link_all_deplibs=no
8607    ;;
8608  esac
8609
8610  ld_shlibs=yes
8611
8612  # On some targets, GNU ld is compatible enough with the native linker
8613  # that we're better off using the native interface for both.
8614  lt_use_gnu_ld_interface=no
8615  if test yes = "$with_gnu_ld"; then
8616    case $host_os in
8617      aix*)
8618	# The AIX port of GNU ld has always aspired to compatibility
8619	# with the native linker.  However, as the warning in the GNU ld
8620	# block says, versions before 2.19.5* couldn't really create working
8621	# shared libraries, regardless of the interface used.
8622	case `$LD -v 2>&1` in
8623	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8626	  *)
8627	    lt_use_gnu_ld_interface=yes
8628	    ;;
8629	esac
8630	;;
8631      *)
8632	lt_use_gnu_ld_interface=yes
8633	;;
8634    esac
8635  fi
8636
8637  if test yes = "$lt_use_gnu_ld_interface"; then
8638    # If archive_cmds runs LD, not CC, wlarc should be empty
8639    wlarc='$wl'
8640
8641    # Set some defaults for GNU ld with shared library support. These
8642    # are reset later if shared libraries are not supported. Putting them
8643    # here allows them to be overridden if necessary.
8644    runpath_var=LD_RUN_PATH
8645    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8646    export_dynamic_flag_spec='$wl--export-dynamic'
8647    # ancient GNU ld didn't support --whole-archive et. al.
8648    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8650    else
8651      whole_archive_flag_spec=
8652    fi
8653    supports_anon_versioning=no
8654    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8655      *GNU\ gold*) supports_anon_versioning=yes ;;
8656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659      *\ 2.11.*) ;; # other 2.11 versions
8660      *) supports_anon_versioning=yes ;;
8661    esac
8662
8663    # See if GNU ld supports shared libraries.
8664    case $host_os in
8665    aix[3-9]*)
8666      # On AIX/PPC, the GNU linker is very broken
8667      if test ia64 != "$host_cpu"; then
8668	ld_shlibs=no
8669	cat <<_LT_EOF 1>&2
8670
8671*** Warning: the GNU linker, at least up to release 2.19, is reported
8672*** to be unable to reliably create shared libraries on AIX.
8673*** Therefore, libtool is disabling shared libraries support.  If you
8674*** really care for shared libraries, you may want to install binutils
8675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676*** You will then need to restart the configuration process.
8677
8678_LT_EOF
8679      fi
8680      ;;
8681
8682    amigaos*)
8683      case $host_cpu in
8684      powerpc)
8685            # see comment about AmigaOS4 .so support
8686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8687            archive_expsym_cmds=''
8688        ;;
8689      m68k)
8690            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)'
8691            hardcode_libdir_flag_spec='-L$libdir'
8692            hardcode_minus_L=yes
8693        ;;
8694      esac
8695      ;;
8696
8697    beos*)
8698      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699	allow_undefined_flag=unsupported
8700	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701	# support --undefined.  This deserves some investigation.  FIXME
8702	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8703      else
8704	ld_shlibs=no
8705      fi
8706      ;;
8707
8708    cygwin* | mingw* | pw32* | cegcc*)
8709      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710      # as there is no search path for DLLs.
8711      hardcode_libdir_flag_spec='-L$libdir'
8712      export_dynamic_flag_spec='$wl--export-all-symbols'
8713      allow_undefined_flag=unsupported
8714      always_export_symbols=no
8715      enable_shared_with_static_runtimes=yes
8716      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'
8717      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8718
8719      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721	# If the export-symbols file already is a .def file, use it as
8722	# is; otherwise, prepend EXPORTS...
8723	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8724          cp $export_symbols $output_objdir/$soname.def;
8725        else
8726          echo EXPORTS > $output_objdir/$soname.def;
8727          cat $export_symbols >> $output_objdir/$soname.def;
8728        fi~
8729        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730      else
8731	ld_shlibs=no
8732      fi
8733      ;;
8734
8735    haiku*)
8736      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8737      link_all_deplibs=yes
8738      ;;
8739
8740    os2*)
8741      hardcode_libdir_flag_spec='-L$libdir'
8742      hardcode_minus_L=yes
8743      allow_undefined_flag=unsupported
8744      shrext_cmds=.dll
8745      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8746	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8747	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8748	$ECHO EXPORTS >> $output_objdir/$libname.def~
8749	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8750	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8751	emximp -o $lib $output_objdir/$libname.def'
8752      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8753	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8754	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8755	$ECHO EXPORTS >> $output_objdir/$libname.def~
8756	prefix_cmds="$SED"~
8757	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8758	  prefix_cmds="$prefix_cmds -e 1d";
8759	fi~
8760	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8761	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8762	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8763	emximp -o $lib $output_objdir/$libname.def'
8764      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8765      enable_shared_with_static_runtimes=yes
8766      ;;
8767
8768    interix[3-9]*)
8769      hardcode_direct=no
8770      hardcode_shlibpath_var=no
8771      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8772      export_dynamic_flag_spec='$wl-E'
8773      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8774      # Instead, shared libraries are loaded at an image base (0x10000000 by
8775      # default) and relocated if they conflict, which is a slow very memory
8776      # consuming and fragmenting process.  To avoid this, we pick a random,
8777      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8778      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8779      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8780      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'
8781      ;;
8782
8783    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8784      tmp_diet=no
8785      if test linux-dietlibc = "$host_os"; then
8786	case $cc_basename in
8787	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8788	esac
8789      fi
8790      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8791	 && test no = "$tmp_diet"
8792      then
8793	tmp_addflag=' $pic_flag'
8794	tmp_sharedflag='-shared'
8795	case $cc_basename,$host_cpu in
8796        pgcc*)				# Portland Group C compiler
8797	  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'
8798	  tmp_addflag=' $pic_flag'
8799	  ;;
8800	pgf77* | pgf90* | pgf95* | pgfortran*)
8801					# Portland Group f77 and f90 compilers
8802	  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'
8803	  tmp_addflag=' $pic_flag -Mnomain' ;;
8804	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8805	  tmp_addflag=' -i_dynamic' ;;
8806	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8807	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8808	ifc* | ifort*)			# Intel Fortran compiler
8809	  tmp_addflag=' -nofor_main' ;;
8810	lf95*)				# Lahey Fortran 8.1
8811	  whole_archive_flag_spec=
8812	  tmp_sharedflag='--shared' ;;
8813        nagfor*)                        # NAGFOR 5.3
8814          tmp_sharedflag='-Wl,-shared' ;;
8815	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8816	  tmp_sharedflag='-qmkshrobj'
8817	  tmp_addflag= ;;
8818	nvcc*)	# Cuda Compiler Driver 2.2
8819	  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'
8820	  compiler_needs_object=yes
8821	  ;;
8822	esac
8823	case `$CC -V 2>&1 | sed 5q` in
8824	*Sun\ C*)			# Sun C 5.9
8825	  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'
8826	  compiler_needs_object=yes
8827	  tmp_sharedflag='-G' ;;
8828	*Sun\ F*)			# Sun Fortran 8.3
8829	  tmp_sharedflag='-G' ;;
8830	esac
8831	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8832
8833        if test yes = "$supports_anon_versioning"; then
8834          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8835            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836            echo "local: *; };" >> $output_objdir/$libname.ver~
8837            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8838        fi
8839
8840	case $cc_basename in
8841	tcc*)
8842	  export_dynamic_flag_spec='-rdynamic'
8843	  ;;
8844	xlf* | bgf* | bgxlf* | mpixlf*)
8845	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8846	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8847	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8848	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8849	  if test yes = "$supports_anon_versioning"; then
8850	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8851              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8852              echo "local: *; };" >> $output_objdir/$libname.ver~
8853              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8854	  fi
8855	  ;;
8856	esac
8857      else
8858        ld_shlibs=no
8859      fi
8860      ;;
8861
8862    netbsd* | netbsdelf*-gnu)
8863      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8864	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8865	wlarc=
8866      else
8867	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8868	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8869      fi
8870      ;;
8871
8872    solaris*)
8873      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8874	ld_shlibs=no
8875	cat <<_LT_EOF 1>&2
8876
8877*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8878*** create shared libraries on Solaris systems.  Therefore, libtool
8879*** is disabling shared libraries support.  We urge you to upgrade GNU
8880*** binutils to release 2.9.1 or newer.  Another option is to modify
8881*** your PATH or compiler configuration so that the native linker is
8882*** used, and then restart.
8883
8884_LT_EOF
8885      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8886	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8887	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8888      else
8889	ld_shlibs=no
8890      fi
8891      ;;
8892
8893    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8894      case `$LD -v 2>&1` in
8895        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8896	ld_shlibs=no
8897	cat <<_LT_EOF 1>&2
8898
8899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8900*** reliably create shared libraries on SCO systems.  Therefore, libtool
8901*** is disabling shared libraries support.  We urge you to upgrade GNU
8902*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8903*** your PATH or compiler configuration so that the native linker is
8904*** used, and then restart.
8905
8906_LT_EOF
8907	;;
8908	*)
8909	  # For security reasons, it is highly recommended that you always
8910	  # use absolute paths for naming shared libraries, and exclude the
8911	  # DT_RUNPATH tag from executables and libraries.  But doing so
8912	  # requires that you compile everything twice, which is a pain.
8913	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8915	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8916	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8917	  else
8918	    ld_shlibs=no
8919	  fi
8920	;;
8921      esac
8922      ;;
8923
8924    sunos4*)
8925      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8926      wlarc=
8927      hardcode_direct=yes
8928      hardcode_shlibpath_var=no
8929      ;;
8930
8931    *)
8932      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8934	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8935      else
8936	ld_shlibs=no
8937      fi
8938      ;;
8939    esac
8940
8941    if test no = "$ld_shlibs"; then
8942      runpath_var=
8943      hardcode_libdir_flag_spec=
8944      export_dynamic_flag_spec=
8945      whole_archive_flag_spec=
8946    fi
8947  else
8948    # PORTME fill in a description of your system's linker (not GNU ld)
8949    case $host_os in
8950    aix3*)
8951      allow_undefined_flag=unsupported
8952      always_export_symbols=yes
8953      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'
8954      # Note: this linker hardcodes the directories in LIBPATH if there
8955      # are no directories specified by -L.
8956      hardcode_minus_L=yes
8957      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8958	# Neither direct hardcoding nor static linking is supported with a
8959	# broken collect2.
8960	hardcode_direct=unsupported
8961      fi
8962      ;;
8963
8964    aix[4-9]*)
8965      if test ia64 = "$host_cpu"; then
8966	# On IA64, the linker does run time linking by default, so we don't
8967	# have to do anything special.
8968	aix_use_runtimelinking=no
8969	exp_sym_flag='-Bexport'
8970	no_entry_flag=
8971      else
8972	# If we're using GNU nm, then we don't want the "-C" option.
8973	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8974	# Without the "-l" option, or with the "-B" option, AIX nm treats
8975	# weak defined symbols like other global defined symbols, whereas
8976	# GNU nm marks them as "W".
8977	# While the 'weak' keyword is ignored in the Export File, we need
8978	# it in the Import File for the 'aix-soname' feature, so we have
8979	# to replace the "-B" option with "-P" for AIX nm.
8980	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8981	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8982	else
8983	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8984	fi
8985	aix_use_runtimelinking=no
8986
8987	# Test if we are trying to use run time linking or normal
8988	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8989	# have runtime linking enabled, and use it for executables.
8990	# For shared libraries, we enable/disable runtime linking
8991	# depending on the kind of the shared library created -
8992	# when "with_aix_soname,aix_use_runtimelinking" is:
8993	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8994	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8995	#            lib.a           static archive
8996	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8997	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8998	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8999	#            lib.a(lib.so.V) shared, rtl:no
9000	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9001	#            lib.a           static archive
9002	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9003	  for ld_flag in $LDFLAGS; do
9004	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9005	    aix_use_runtimelinking=yes
9006	    break
9007	  fi
9008	  done
9009	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9010	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9011	    # so we don't have lib.a shared libs to link our executables.
9012	    # We have to force runtime linking in this case.
9013	    aix_use_runtimelinking=yes
9014	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9015	  fi
9016	  ;;
9017	esac
9018
9019	exp_sym_flag='-bexport'
9020	no_entry_flag='-bnoentry'
9021      fi
9022
9023      # When large executables or shared objects are built, AIX ld can
9024      # have problems creating the table of contents.  If linking a library
9025      # or program results in "error TOC overflow" add -mminimal-toc to
9026      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9027      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9028
9029      archive_cmds=''
9030      hardcode_direct=yes
9031      hardcode_direct_absolute=yes
9032      hardcode_libdir_separator=':'
9033      link_all_deplibs=yes
9034      file_list_spec='$wl-f,'
9035      case $with_aix_soname,$aix_use_runtimelinking in
9036      aix,*) ;; # traditional, no import file
9037      svr4,* | *,yes) # use import file
9038	# The Import File defines what to hardcode.
9039	hardcode_direct=no
9040	hardcode_direct_absolute=no
9041	;;
9042      esac
9043
9044      if test yes = "$GCC"; then
9045	case $host_os in aix4.[012]|aix4.[012].*)
9046	# We only want to do this on AIX 4.2 and lower, the check
9047	# below for broken collect2 doesn't work under 4.3+
9048	  collect2name=`$CC -print-prog-name=collect2`
9049	  if test -f "$collect2name" &&
9050	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9051	  then
9052	  # We have reworked collect2
9053	  :
9054	  else
9055	  # We have old collect2
9056	  hardcode_direct=unsupported
9057	  # It fails to find uninstalled libraries when the uninstalled
9058	  # path is not listed in the libpath.  Setting hardcode_minus_L
9059	  # to unsupported forces relinking
9060	  hardcode_minus_L=yes
9061	  hardcode_libdir_flag_spec='-L$libdir'
9062	  hardcode_libdir_separator=
9063	  fi
9064	  ;;
9065	esac
9066	shared_flag='-shared'
9067	if test yes = "$aix_use_runtimelinking"; then
9068	  shared_flag="$shared_flag "'$wl-G'
9069	fi
9070	# Need to ensure runtime linking is disabled for the traditional
9071	# shared library, or the linker may eventually find shared libraries
9072	# /with/ Import File - we do not want to mix them.
9073	shared_flag_aix='-shared'
9074	shared_flag_svr4='-shared $wl-G'
9075      else
9076	# not using gcc
9077	if test ia64 = "$host_cpu"; then
9078	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9079	# chokes on -Wl,-G. The following line is correct:
9080	  shared_flag='-G'
9081	else
9082	  if test yes = "$aix_use_runtimelinking"; then
9083	    shared_flag='$wl-G'
9084	  else
9085	    shared_flag='$wl-bM:SRE'
9086	  fi
9087	  shared_flag_aix='$wl-bM:SRE'
9088	  shared_flag_svr4='$wl-G'
9089	fi
9090      fi
9091
9092      export_dynamic_flag_spec='$wl-bexpall'
9093      # It seems that -bexpall does not export symbols beginning with
9094      # underscore (_), so it is better to generate a list of symbols to export.
9095      always_export_symbols=yes
9096      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9097	# Warning - without using the other runtime loading flags (-brtl),
9098	# -berok will link without error, but may produce a broken library.
9099	allow_undefined_flag='-berok'
9100        # Determine the default libpath from the value encoded in an
9101        # empty executable.
9102        if test set = "${lt_cv_aix_libpath+set}"; then
9103  aix_libpath=$lt_cv_aix_libpath
9104else
9105  if ${lt_cv_aix_libpath_+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110
9111int
9112main ()
9113{
9114
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120
9121  lt_aix_libpath_sed='
9122      /Import File Strings/,/^$/ {
9123	  /^0/ {
9124	      s/^0  *\([^ ]*\) *$/\1/
9125	      p
9126	  }
9127      }'
9128  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129  # Check for a 64-bit object if we didn't find anything.
9130  if test -z "$lt_cv_aix_libpath_"; then
9131    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9132  fi
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136  if test -z "$lt_cv_aix_libpath_"; then
9137    lt_cv_aix_libpath_=/usr/lib:/lib
9138  fi
9139
9140fi
9141
9142  aix_libpath=$lt_cv_aix_libpath_
9143fi
9144
9145        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9146        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9147      else
9148	if test ia64 = "$host_cpu"; then
9149	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9150	  allow_undefined_flag="-z nodefs"
9151	  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"
9152	else
9153	 # Determine the default libpath from the value encoded in an
9154	 # empty executable.
9155	 if test set = "${lt_cv_aix_libpath+set}"; then
9156  aix_libpath=$lt_cv_aix_libpath
9157else
9158  if ${lt_cv_aix_libpath_+:} false; then :
9159  $as_echo_n "(cached) " >&6
9160else
9161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163
9164int
9165main ()
9166{
9167
9168  ;
9169  return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_link "$LINENO"; then :
9173
9174  lt_aix_libpath_sed='
9175      /Import File Strings/,/^$/ {
9176	  /^0/ {
9177	      s/^0  *\([^ ]*\) *$/\1/
9178	      p
9179	  }
9180      }'
9181  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182  # Check for a 64-bit object if we didn't find anything.
9183  if test -z "$lt_cv_aix_libpath_"; then
9184    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185  fi
9186fi
9187rm -f core conftest.err conftest.$ac_objext \
9188    conftest$ac_exeext conftest.$ac_ext
9189  if test -z "$lt_cv_aix_libpath_"; then
9190    lt_cv_aix_libpath_=/usr/lib:/lib
9191  fi
9192
9193fi
9194
9195  aix_libpath=$lt_cv_aix_libpath_
9196fi
9197
9198	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9199	  # Warning - without using the other run time loading flags,
9200	  # -berok will link without error, but may produce a broken library.
9201	  no_undefined_flag=' $wl-bernotok'
9202	  allow_undefined_flag=' $wl-berok'
9203	  if test yes = "$with_gnu_ld"; then
9204	    # We only use this code for GNU lds that support --whole-archive.
9205	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9206	  else
9207	    # Exported symbols can be pulled into shared objects from archives
9208	    whole_archive_flag_spec='$convenience'
9209	  fi
9210	  archive_cmds_need_lc=yes
9211	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9212	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9213	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9214	  if test svr4 != "$with_aix_soname"; then
9215	    # This is similar to how AIX traditionally builds its shared libraries.
9216	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9217	  fi
9218	  if test aix != "$with_aix_soname"; then
9219	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9220	  else
9221	    # used by -dlpreopen to get the symbols
9222	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9223	  fi
9224	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9225	fi
9226      fi
9227      ;;
9228
9229    amigaos*)
9230      case $host_cpu in
9231      powerpc)
9232            # see comment about AmigaOS4 .so support
9233            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9234            archive_expsym_cmds=''
9235        ;;
9236      m68k)
9237            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)'
9238            hardcode_libdir_flag_spec='-L$libdir'
9239            hardcode_minus_L=yes
9240        ;;
9241      esac
9242      ;;
9243
9244    bsdi[45]*)
9245      export_dynamic_flag_spec=-rdynamic
9246      ;;
9247
9248    cygwin* | mingw* | pw32* | cegcc*)
9249      # When not using gcc, we currently assume that we are using
9250      # Microsoft Visual C++.
9251      # hardcode_libdir_flag_spec is actually meaningless, as there is
9252      # no search path for DLLs.
9253      case $cc_basename in
9254      cl*)
9255	# Native MSVC
9256	hardcode_libdir_flag_spec=' '
9257	allow_undefined_flag=unsupported
9258	always_export_symbols=yes
9259	file_list_spec='@'
9260	# Tell ltmain to make .lib files, not .a files.
9261	libext=lib
9262	# Tell ltmain to make .dll files, not .so files.
9263	shrext_cmds=.dll
9264	# FIXME: Setting linknames here is a bad hack.
9265	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9266	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9267            cp "$export_symbols" "$output_objdir/$soname.def";
9268            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9269          else
9270            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9271          fi~
9272          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9273          linknames='
9274	# The linker will not automatically build a static lib if we build a DLL.
9275	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9276	enable_shared_with_static_runtimes=yes
9277	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9278	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9279	# Don't use ranlib
9280	old_postinstall_cmds='chmod 644 $oldlib'
9281	postlink_cmds='lt_outputfile="@OUTPUT@"~
9282          lt_tool_outputfile="@TOOL_OUTPUT@"~
9283          case $lt_outputfile in
9284            *.exe|*.EXE) ;;
9285            *)
9286              lt_outputfile=$lt_outputfile.exe
9287              lt_tool_outputfile=$lt_tool_outputfile.exe
9288              ;;
9289          esac~
9290          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9291            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9292            $RM "$lt_outputfile.manifest";
9293          fi'
9294	;;
9295      *)
9296	# Assume MSVC wrapper
9297	hardcode_libdir_flag_spec=' '
9298	allow_undefined_flag=unsupported
9299	# Tell ltmain to make .lib files, not .a files.
9300	libext=lib
9301	# Tell ltmain to make .dll files, not .so files.
9302	shrext_cmds=.dll
9303	# FIXME: Setting linknames here is a bad hack.
9304	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9305	# The linker will automatically build a .lib file if we build a DLL.
9306	old_archive_from_new_cmds='true'
9307	# FIXME: Should let the user specify the lib program.
9308	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9309	enable_shared_with_static_runtimes=yes
9310	;;
9311      esac
9312      ;;
9313
9314    darwin* | rhapsody*)
9315
9316
9317  archive_cmds_need_lc=no
9318  hardcode_direct=no
9319  hardcode_automatic=yes
9320  hardcode_shlibpath_var=unsupported
9321  if test yes = "$lt_cv_ld_force_load"; then
9322    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\"`'
9323
9324  else
9325    whole_archive_flag_spec=''
9326  fi
9327  link_all_deplibs=yes
9328  allow_undefined_flag=$_lt_dar_allow_undefined
9329  case $cc_basename in
9330     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9331     *) _lt_dar_can_shared=$GCC ;;
9332  esac
9333  if test yes = "$_lt_dar_can_shared"; then
9334    output_verbose_link_cmd=func_echo_all
9335    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9336    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9337    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"
9338    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"
9339
9340  else
9341  ld_shlibs=no
9342  fi
9343
9344      ;;
9345
9346    dgux*)
9347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348      hardcode_libdir_flag_spec='-L$libdir'
9349      hardcode_shlibpath_var=no
9350      ;;
9351
9352    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9353    # support.  Future versions do this automatically, but an explicit c++rt0.o
9354    # does not break anything, and helps significantly (at the cost of a little
9355    # extra space).
9356    freebsd2.2*)
9357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9358      hardcode_libdir_flag_spec='-R$libdir'
9359      hardcode_direct=yes
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9364    freebsd2.*)
9365      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9366      hardcode_direct=yes
9367      hardcode_minus_L=yes
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9372    freebsd* | dragonfly*)
9373      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9374      hardcode_libdir_flag_spec='-R$libdir'
9375      hardcode_direct=yes
9376      hardcode_shlibpath_var=no
9377      ;;
9378
9379    hpux9*)
9380      if test yes = "$GCC"; then
9381	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9382      else
9383	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9384      fi
9385      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9386      hardcode_libdir_separator=:
9387      hardcode_direct=yes
9388
9389      # hardcode_minus_L: Not really in the search PATH,
9390      # but as the default location of the library.
9391      hardcode_minus_L=yes
9392      export_dynamic_flag_spec='$wl-E'
9393      ;;
9394
9395    hpux10*)
9396      if test yes,no = "$GCC,$with_gnu_ld"; then
9397	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398      else
9399	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400      fi
9401      if test no = "$with_gnu_ld"; then
9402	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9403	hardcode_libdir_separator=:
9404	hardcode_direct=yes
9405	hardcode_direct_absolute=yes
9406	export_dynamic_flag_spec='$wl-E'
9407	# hardcode_minus_L: Not really in the search PATH,
9408	# but as the default location of the library.
9409	hardcode_minus_L=yes
9410      fi
9411      ;;
9412
9413    hpux11*)
9414      if test yes,no = "$GCC,$with_gnu_ld"; then
9415	case $host_cpu in
9416	hppa*64*)
9417	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9418	  ;;
9419	ia64*)
9420	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9421	  ;;
9422	*)
9423	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424	  ;;
9425	esac
9426      else
9427	case $host_cpu in
9428	hppa*64*)
9429	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9430	  ;;
9431	ia64*)
9432	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9433	  ;;
9434	*)
9435
9436	  # Older versions of the 11.00 compiler do not understand -b yet
9437	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9438	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9439$as_echo_n "checking if $CC understands -b... " >&6; }
9440if ${lt_cv_prog_compiler__b+:} false; then :
9441  $as_echo_n "(cached) " >&6
9442else
9443  lt_cv_prog_compiler__b=no
9444   save_LDFLAGS=$LDFLAGS
9445   LDFLAGS="$LDFLAGS -b"
9446   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9447   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9448     # The linker can only warn and ignore the option if not recognized
9449     # So say no if there are warnings
9450     if test -s conftest.err; then
9451       # Append any errors to the config.log.
9452       cat conftest.err 1>&5
9453       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9454       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455       if diff conftest.exp conftest.er2 >/dev/null; then
9456         lt_cv_prog_compiler__b=yes
9457       fi
9458     else
9459       lt_cv_prog_compiler__b=yes
9460     fi
9461   fi
9462   $RM -r conftest*
9463   LDFLAGS=$save_LDFLAGS
9464
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9467$as_echo "$lt_cv_prog_compiler__b" >&6; }
9468
9469if test yes = "$lt_cv_prog_compiler__b"; then
9470    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9471else
9472    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9473fi
9474
9475	  ;;
9476	esac
9477      fi
9478      if test no = "$with_gnu_ld"; then
9479	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9480	hardcode_libdir_separator=:
9481
9482	case $host_cpu in
9483	hppa*64*|ia64*)
9484	  hardcode_direct=no
9485	  hardcode_shlibpath_var=no
9486	  ;;
9487	*)
9488	  hardcode_direct=yes
9489	  hardcode_direct_absolute=yes
9490	  export_dynamic_flag_spec='$wl-E'
9491
9492	  # hardcode_minus_L: Not really in the search PATH,
9493	  # but as the default location of the library.
9494	  hardcode_minus_L=yes
9495	  ;;
9496	esac
9497      fi
9498      ;;
9499
9500    irix5* | irix6* | nonstopux*)
9501      if test yes = "$GCC"; then
9502	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'
9503	# Try to use the -exported_symbol ld option, if it does not
9504	# work, assume that -exports_file does not work either and
9505	# implicitly export all symbols.
9506	# This should be the same for all languages, so no per-tag cache variable.
9507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9508$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9509if ${lt_cv_irix_exported_symbol+:} false; then :
9510  $as_echo_n "(cached) " >&6
9511else
9512  save_LDFLAGS=$LDFLAGS
9513	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9514	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int foo (void) { return 0; }
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519  lt_cv_irix_exported_symbol=yes
9520else
9521  lt_cv_irix_exported_symbol=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524    conftest$ac_exeext conftest.$ac_ext
9525           LDFLAGS=$save_LDFLAGS
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9528$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9529	if test yes = "$lt_cv_irix_exported_symbol"; then
9530          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'
9531	fi
9532	link_all_deplibs=no
9533      else
9534	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'
9535	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'
9536      fi
9537      archive_cmds_need_lc='no'
9538      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9539      hardcode_libdir_separator=:
9540      inherit_rpath=yes
9541      link_all_deplibs=yes
9542      ;;
9543
9544    linux*)
9545      case $cc_basename in
9546      tcc*)
9547	# Fabrice Bellard et al's Tiny C Compiler
9548	ld_shlibs=yes
9549	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550	;;
9551      esac
9552      ;;
9553
9554    netbsd* | netbsdelf*-gnu)
9555      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9556	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9557      else
9558	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9559      fi
9560      hardcode_libdir_flag_spec='-R$libdir'
9561      hardcode_direct=yes
9562      hardcode_shlibpath_var=no
9563      ;;
9564
9565    newsos6)
9566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567      hardcode_direct=yes
9568      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9569      hardcode_libdir_separator=:
9570      hardcode_shlibpath_var=no
9571      ;;
9572
9573    *nto* | *qnx*)
9574      ;;
9575
9576    openbsd* | bitrig*)
9577      if test -f /usr/libexec/ld.so; then
9578	hardcode_direct=yes
9579	hardcode_shlibpath_var=no
9580	hardcode_direct_absolute=yes
9581	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9582	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9583	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9584	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9585	  export_dynamic_flag_spec='$wl-E'
9586	else
9587	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9588	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9589	fi
9590      else
9591	ld_shlibs=no
9592      fi
9593      ;;
9594
9595    os2*)
9596      hardcode_libdir_flag_spec='-L$libdir'
9597      hardcode_minus_L=yes
9598      allow_undefined_flag=unsupported
9599      shrext_cmds=.dll
9600      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9601	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9602	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9603	$ECHO EXPORTS >> $output_objdir/$libname.def~
9604	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9605	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9606	emximp -o $lib $output_objdir/$libname.def'
9607      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9608	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9609	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9610	$ECHO EXPORTS >> $output_objdir/$libname.def~
9611	prefix_cmds="$SED"~
9612	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9613	  prefix_cmds="$prefix_cmds -e 1d";
9614	fi~
9615	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9616	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9617	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9618	emximp -o $lib $output_objdir/$libname.def'
9619      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9620      enable_shared_with_static_runtimes=yes
9621      ;;
9622
9623    osf3*)
9624      if test yes = "$GCC"; then
9625	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9626	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'
9627      else
9628	allow_undefined_flag=' -expect_unresolved \*'
9629	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'
9630      fi
9631      archive_cmds_need_lc='no'
9632      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9633      hardcode_libdir_separator=:
9634      ;;
9635
9636    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9637      if test yes = "$GCC"; then
9638	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9639	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'
9640	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9641      else
9642	allow_undefined_flag=' -expect_unresolved \*'
9643	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'
9644	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~
9645          $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'
9646
9647	# Both c and cxx compiler support -rpath directly
9648	hardcode_libdir_flag_spec='-rpath $libdir'
9649      fi
9650      archive_cmds_need_lc='no'
9651      hardcode_libdir_separator=:
9652      ;;
9653
9654    solaris*)
9655      no_undefined_flag=' -z defs'
9656      if test yes = "$GCC"; then
9657	wlarc='$wl'
9658	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9659	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660          $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'
9661      else
9662	case `$CC -V 2>&1` in
9663	*"Compilers 5.0"*)
9664	  wlarc=''
9665	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9667            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9668	  ;;
9669	*)
9670	  wlarc='$wl'
9671	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9674	  ;;
9675	esac
9676      fi
9677      hardcode_libdir_flag_spec='-R$libdir'
9678      hardcode_shlibpath_var=no
9679      case $host_os in
9680      solaris2.[0-5] | solaris2.[0-5].*) ;;
9681      *)
9682	# The compiler driver will combine and reorder linker options,
9683	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9684	# but is careful enough not to reorder.
9685	# Supported since Solaris 2.6 (maybe 2.5.1?)
9686	if test yes = "$GCC"; then
9687	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9688	else
9689	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9690	fi
9691	;;
9692      esac
9693      link_all_deplibs=yes
9694      ;;
9695
9696    sunos4*)
9697      if test sequent = "$host_vendor"; then
9698	# Use $CC to link under sequent, because it throws in some extra .o
9699	# files that make .init and .fini sections work.
9700	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701      else
9702	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9703      fi
9704      hardcode_libdir_flag_spec='-L$libdir'
9705      hardcode_direct=yes
9706      hardcode_minus_L=yes
9707      hardcode_shlibpath_var=no
9708      ;;
9709
9710    sysv4)
9711      case $host_vendor in
9712	sni)
9713	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714	  hardcode_direct=yes # is this really true???
9715	;;
9716	siemens)
9717	  ## LD is ld it makes a PLAMLIB
9718	  ## CC just makes a GrossModule.
9719	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9720	  reload_cmds='$CC -r -o $output$reload_objs'
9721	  hardcode_direct=no
9722        ;;
9723	motorola)
9724	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9726	;;
9727      esac
9728      runpath_var='LD_RUN_PATH'
9729      hardcode_shlibpath_var=no
9730      ;;
9731
9732    sysv4.3*)
9733      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734      hardcode_shlibpath_var=no
9735      export_dynamic_flag_spec='-Bexport'
9736      ;;
9737
9738    sysv4*MP*)
9739      if test -d /usr/nec; then
9740	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741	hardcode_shlibpath_var=no
9742	runpath_var=LD_RUN_PATH
9743	hardcode_runpath_var=yes
9744	ld_shlibs=yes
9745      fi
9746      ;;
9747
9748    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9749      no_undefined_flag='$wl-z,text'
9750      archive_cmds_need_lc=no
9751      hardcode_shlibpath_var=no
9752      runpath_var='LD_RUN_PATH'
9753
9754      if test yes = "$GCC"; then
9755	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757      else
9758	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760      fi
9761      ;;
9762
9763    sysv5* | sco3.2v5* | sco5v6*)
9764      # Note: We CANNOT use -z defs as we might desire, because we do not
9765      # link with -lc, and that would cause any symbols used from libc to
9766      # always be unresolved, which means just about no library would
9767      # ever link correctly.  If we're not using GNU ld we use -z text
9768      # though, which does catch some bad symbols but isn't as heavy-handed
9769      # as -z defs.
9770      no_undefined_flag='$wl-z,text'
9771      allow_undefined_flag='$wl-z,nodefs'
9772      archive_cmds_need_lc=no
9773      hardcode_shlibpath_var=no
9774      hardcode_libdir_flag_spec='$wl-R,$libdir'
9775      hardcode_libdir_separator=':'
9776      link_all_deplibs=yes
9777      export_dynamic_flag_spec='$wl-Bexport'
9778      runpath_var='LD_RUN_PATH'
9779
9780      if test yes = "$GCC"; then
9781	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783      else
9784	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786      fi
9787      ;;
9788
9789    uts4*)
9790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791      hardcode_libdir_flag_spec='-L$libdir'
9792      hardcode_shlibpath_var=no
9793      ;;
9794
9795    *)
9796      ld_shlibs=no
9797      ;;
9798    esac
9799
9800    if test sni = "$host_vendor"; then
9801      case $host in
9802      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9803	export_dynamic_flag_spec='$wl-Blargedynsym'
9804	;;
9805      esac
9806    fi
9807  fi
9808
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9810$as_echo "$ld_shlibs" >&6; }
9811test no = "$ld_shlibs" && can_build_shared=no
9812
9813with_gnu_ld=$with_gnu_ld
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829#
9830# Do we need to explicitly link libc?
9831#
9832case "x$archive_cmds_need_lc" in
9833x|xyes)
9834  # Assume -lc should be added
9835  archive_cmds_need_lc=yes
9836
9837  if test yes,yes = "$GCC,$enable_shared"; then
9838    case $archive_cmds in
9839    *'~'*)
9840      # FIXME: we may have to deal with multi-command sequences.
9841      ;;
9842    '$CC '*)
9843      # Test whether the compiler implicitly links with -lc since on some
9844      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845      # to ld, don't add -lc before -lgcc.
9846      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9847$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9848if ${lt_cv_archive_cmds_need_lc+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  $RM conftest*
9852	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853
9854	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9855  (eval $ac_compile) 2>&5
9856  ac_status=$?
9857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9858  test $ac_status = 0; } 2>conftest.err; then
9859	  soname=conftest
9860	  lib=conftest
9861	  libobjs=conftest.$ac_objext
9862	  deplibs=
9863	  wl=$lt_prog_compiler_wl
9864	  pic_flag=$lt_prog_compiler_pic
9865	  compiler_flags=-v
9866	  linker_flags=-v
9867	  verstring=
9868	  output_objdir=.
9869	  libname=conftest
9870	  lt_save_allow_undefined_flag=$allow_undefined_flag
9871	  allow_undefined_flag=
9872	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9873  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9874  ac_status=$?
9875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876  test $ac_status = 0; }
9877	  then
9878	    lt_cv_archive_cmds_need_lc=no
9879	  else
9880	    lt_cv_archive_cmds_need_lc=yes
9881	  fi
9882	  allow_undefined_flag=$lt_save_allow_undefined_flag
9883	else
9884	  cat conftest.err 1>&5
9885	fi
9886	$RM conftest*
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9890$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9891      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9892      ;;
9893    esac
9894  fi
9895  ;;
9896esac
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10050$as_echo_n "checking dynamic linker characteristics... " >&6; }
10051
10052if test yes = "$GCC"; then
10053  case $host_os in
10054    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10055    *) lt_awk_arg='/^libraries:/' ;;
10056  esac
10057  case $host_os in
10058    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10059    *) lt_sed_strip_eq='s|=/|/|g' ;;
10060  esac
10061  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10062  case $lt_search_path_spec in
10063  *\;*)
10064    # if the path contains ";" then we assume it to be the separator
10065    # otherwise default to the standard path separator (i.e. ":") - it is
10066    # assumed that no part of a normal pathname contains ";" but that should
10067    # okay in the real world where ";" in dirpaths is itself problematic.
10068    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10069    ;;
10070  *)
10071    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10072    ;;
10073  esac
10074  # Ok, now we have the path, separated by spaces, we can step through it
10075  # and add multilib dir if necessary...
10076  lt_tmp_lt_search_path_spec=
10077  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10078  # ...but if some path component already ends with the multilib dir we assume
10079  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10080  case "$lt_multi_os_dir; $lt_search_path_spec " in
10081  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10082    lt_multi_os_dir=
10083    ;;
10084  esac
10085  for lt_sys_path in $lt_search_path_spec; do
10086    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10087      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10088    elif test -n "$lt_multi_os_dir"; then
10089      test -d "$lt_sys_path" && \
10090	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10091    fi
10092  done
10093  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10094BEGIN {RS = " "; FS = "/|\n";} {
10095  lt_foo = "";
10096  lt_count = 0;
10097  for (lt_i = NF; lt_i > 0; lt_i--) {
10098    if ($lt_i != "" && $lt_i != ".") {
10099      if ($lt_i == "..") {
10100        lt_count++;
10101      } else {
10102        if (lt_count == 0) {
10103          lt_foo = "/" $lt_i lt_foo;
10104        } else {
10105          lt_count--;
10106        }
10107      }
10108    }
10109  }
10110  if (lt_foo != "") { lt_freq[lt_foo]++; }
10111  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10112}'`
10113  # AWK program above erroneously prepends '/' to C:/dos/paths
10114  # for these hosts.
10115  case $host_os in
10116    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10117      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10118  esac
10119  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10120else
10121  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10122fi
10123library_names_spec=
10124libname_spec='lib$name'
10125soname_spec=
10126shrext_cmds=.so
10127postinstall_cmds=
10128postuninstall_cmds=
10129finish_cmds=
10130finish_eval=
10131shlibpath_var=
10132shlibpath_overrides_runpath=unknown
10133version_type=none
10134dynamic_linker="$host_os ld.so"
10135sys_lib_dlsearch_path_spec="/lib /usr/lib"
10136need_lib_prefix=unknown
10137hardcode_into_libs=no
10138
10139# when you set need_version to no, make sure it does not cause -set_version
10140# flags to be left without arguments
10141need_version=unknown
10142
10143
10144
10145case $host_os in
10146aix3*)
10147  version_type=linux # correct to gnu/linux during the next big refactor
10148  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10149  shlibpath_var=LIBPATH
10150
10151  # AIX 3 has no versioning support, so we append a major version to the name.
10152  soname_spec='$libname$release$shared_ext$major'
10153  ;;
10154
10155aix[4-9]*)
10156  version_type=linux # correct to gnu/linux during the next big refactor
10157  need_lib_prefix=no
10158  need_version=no
10159  hardcode_into_libs=yes
10160  if test ia64 = "$host_cpu"; then
10161    # AIX 5 supports IA64
10162    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10163    shlibpath_var=LD_LIBRARY_PATH
10164  else
10165    # With GCC up to 2.95.x, collect2 would create an import file
10166    # for dependence libraries.  The import file would start with
10167    # the line '#! .'.  This would cause the generated library to
10168    # depend on '.', always an invalid library.  This was fixed in
10169    # development snapshots of GCC prior to 3.0.
10170    case $host_os in
10171      aix4 | aix4.[01] | aix4.[01].*)
10172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10173	   echo ' yes '
10174	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10175	:
10176      else
10177	can_build_shared=no
10178      fi
10179      ;;
10180    esac
10181    # Using Import Files as archive members, it is possible to support
10182    # filename-based versioning of shared library archives on AIX. While
10183    # this would work for both with and without runtime linking, it will
10184    # prevent static linking of such archives. So we do filename-based
10185    # shared library versioning with .so extension only, which is used
10186    # when both runtime linking and shared linking is enabled.
10187    # Unfortunately, runtime linking may impact performance, so we do
10188    # not want this to be the default eventually. Also, we use the
10189    # versioned .so libs for executables only if there is the -brtl
10190    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10191    # To allow for filename-based versioning support, we need to create
10192    # libNAME.so.V as an archive file, containing:
10193    # *) an Import File, referring to the versioned filename of the
10194    #    archive as well as the shared archive member, telling the
10195    #    bitwidth (32 or 64) of that shared object, and providing the
10196    #    list of exported symbols of that shared object, eventually
10197    #    decorated with the 'weak' keyword
10198    # *) the shared object with the F_LOADONLY flag set, to really avoid
10199    #    it being seen by the linker.
10200    # At run time we better use the real file rather than another symlink,
10201    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10202
10203    case $with_aix_soname,$aix_use_runtimelinking in
10204    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10205    # soname into executable. Probably we can add versioning support to
10206    # collect2, so additional links can be useful in future.
10207    aix,yes) # traditional libtool
10208      dynamic_linker='AIX unversionable lib.so'
10209      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10210      # instead of lib<name>.a to let people know that these are not
10211      # typical AIX shared libraries.
10212      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10213      ;;
10214    aix,no) # traditional AIX only
10215      dynamic_linker='AIX lib.a(lib.so.V)'
10216      # We preserve .a as extension for shared libraries through AIX4.2
10217      # and later when we are not doing run time linking.
10218      library_names_spec='$libname$release.a $libname.a'
10219      soname_spec='$libname$release$shared_ext$major'
10220      ;;
10221    svr4,*) # full svr4 only
10222      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10223      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10224      # We do not specify a path in Import Files, so LIBPATH fires.
10225      shlibpath_overrides_runpath=yes
10226      ;;
10227    *,yes) # both, prefer svr4
10228      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10229      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10230      # unpreferred sharedlib libNAME.a needs extra handling
10231      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10232      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10233      # We do not specify a path in Import Files, so LIBPATH fires.
10234      shlibpath_overrides_runpath=yes
10235      ;;
10236    *,no) # both, prefer aix
10237      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10238      library_names_spec='$libname$release.a $libname.a'
10239      soname_spec='$libname$release$shared_ext$major'
10240      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10241      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10242      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10243      ;;
10244    esac
10245    shlibpath_var=LIBPATH
10246  fi
10247  ;;
10248
10249amigaos*)
10250  case $host_cpu in
10251  powerpc)
10252    # Since July 2007 AmigaOS4 officially supports .so libraries.
10253    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10254    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10255    ;;
10256  m68k)
10257    library_names_spec='$libname.ixlibrary $libname.a'
10258    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10259    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10260    ;;
10261  esac
10262  ;;
10263
10264beos*)
10265  library_names_spec='$libname$shared_ext'
10266  dynamic_linker="$host_os ld.so"
10267  shlibpath_var=LIBRARY_PATH
10268  ;;
10269
10270bsdi[45]*)
10271  version_type=linux # correct to gnu/linux during the next big refactor
10272  need_version=no
10273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10274  soname_spec='$libname$release$shared_ext$major'
10275  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279  # the default ld.so.conf also contains /usr/contrib/lib and
10280  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281  # libtool to hard-code these into programs
10282  ;;
10283
10284cygwin* | mingw* | pw32* | cegcc*)
10285  version_type=windows
10286  shrext_cmds=.dll
10287  need_version=no
10288  need_lib_prefix=no
10289
10290  case $GCC,$cc_basename in
10291  yes,*)
10292    # gcc
10293    library_names_spec='$libname.dll.a'
10294    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10295    postinstall_cmds='base_file=`basename \$file`~
10296      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10297      dldir=$destdir/`dirname \$dlpath`~
10298      test -d \$dldir || mkdir -p \$dldir~
10299      $install_prog $dir/$dlname \$dldir/$dlname~
10300      chmod a+x \$dldir/$dlname~
10301      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10302        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10303      fi'
10304    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10305      dlpath=$dir/\$dldll~
10306       $RM \$dlpath'
10307    shlibpath_overrides_runpath=yes
10308
10309    case $host_os in
10310    cygwin*)
10311      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10312      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10313
10314      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10315      ;;
10316    mingw* | cegcc*)
10317      # MinGW DLLs use traditional 'lib' prefix
10318      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10319      ;;
10320    pw32*)
10321      # pw32 DLLs use 'pw' prefix rather than 'lib'
10322      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10323      ;;
10324    esac
10325    dynamic_linker='Win32 ld.exe'
10326    ;;
10327
10328  *,cl*)
10329    # Native MSVC
10330    libname_spec='$name'
10331    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10332    library_names_spec='$libname.dll.lib'
10333
10334    case $build_os in
10335    mingw*)
10336      sys_lib_search_path_spec=
10337      lt_save_ifs=$IFS
10338      IFS=';'
10339      for lt_path in $LIB
10340      do
10341        IFS=$lt_save_ifs
10342        # Let DOS variable expansion print the short 8.3 style file name.
10343        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10344        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10345      done
10346      IFS=$lt_save_ifs
10347      # Convert to MSYS style.
10348      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10349      ;;
10350    cygwin*)
10351      # Convert to unix form, then to dos form, then back to unix form
10352      # but this time dos style (no spaces!) so that the unix form looks
10353      # like /cygdrive/c/PROGRA~1:/cygdr...
10354      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10355      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10356      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10357      ;;
10358    *)
10359      sys_lib_search_path_spec=$LIB
10360      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10361        # It is most probably a Windows format PATH.
10362        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10363      else
10364        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10365      fi
10366      # FIXME: find the short name or the path components, as spaces are
10367      # common. (e.g. "Program Files" -> "PROGRA~1")
10368      ;;
10369    esac
10370
10371    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10372    postinstall_cmds='base_file=`basename \$file`~
10373      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10374      dldir=$destdir/`dirname \$dlpath`~
10375      test -d \$dldir || mkdir -p \$dldir~
10376      $install_prog $dir/$dlname \$dldir/$dlname'
10377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10378      dlpath=$dir/\$dldll~
10379       $RM \$dlpath'
10380    shlibpath_overrides_runpath=yes
10381    dynamic_linker='Win32 link.exe'
10382    ;;
10383
10384  *)
10385    # Assume MSVC wrapper
10386    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10387    dynamic_linker='Win32 ld.exe'
10388    ;;
10389  esac
10390  # FIXME: first we should search . and the directory the executable is in
10391  shlibpath_var=PATH
10392  ;;
10393
10394darwin* | rhapsody*)
10395  dynamic_linker="$host_os dyld"
10396  version_type=darwin
10397  need_lib_prefix=no
10398  need_version=no
10399  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10400  soname_spec='$libname$release$major$shared_ext'
10401  shlibpath_overrides_runpath=yes
10402  shlibpath_var=DYLD_LIBRARY_PATH
10403  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10404
10405  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10406  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10407  ;;
10408
10409dgux*)
10410  version_type=linux # correct to gnu/linux during the next big refactor
10411  need_lib_prefix=no
10412  need_version=no
10413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10414  soname_spec='$libname$release$shared_ext$major'
10415  shlibpath_var=LD_LIBRARY_PATH
10416  ;;
10417
10418freebsd* | dragonfly*)
10419  # DragonFly does not have aout.  When/if they implement a new
10420  # versioning mechanism, adjust this.
10421  if test -x /usr/bin/objformat; then
10422    objformat=`/usr/bin/objformat`
10423  else
10424    case $host_os in
10425    freebsd[23].*) objformat=aout ;;
10426    *) objformat=elf ;;
10427    esac
10428  fi
10429  version_type=freebsd-$objformat
10430  case $version_type in
10431    freebsd-elf*)
10432      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10433      soname_spec='$libname$release$shared_ext$major'
10434      need_version=no
10435      need_lib_prefix=no
10436      ;;
10437    freebsd-*)
10438      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10439      need_version=yes
10440      ;;
10441  esac
10442  shlibpath_var=LD_LIBRARY_PATH
10443  case $host_os in
10444  freebsd2.*)
10445    shlibpath_overrides_runpath=yes
10446    ;;
10447  freebsd3.[01]* | freebsdelf3.[01]*)
10448    shlibpath_overrides_runpath=yes
10449    hardcode_into_libs=yes
10450    ;;
10451  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10452  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10453    shlibpath_overrides_runpath=no
10454    hardcode_into_libs=yes
10455    ;;
10456  *) # from 4.6 on, and DragonFly
10457    shlibpath_overrides_runpath=yes
10458    hardcode_into_libs=yes
10459    ;;
10460  esac
10461  ;;
10462
10463haiku*)
10464  version_type=linux # correct to gnu/linux during the next big refactor
10465  need_lib_prefix=no
10466  need_version=no
10467  dynamic_linker="$host_os runtime_loader"
10468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469  soname_spec='$libname$release$shared_ext$major'
10470  shlibpath_var=LIBRARY_PATH
10471  shlibpath_overrides_runpath=no
10472  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10473  hardcode_into_libs=yes
10474  ;;
10475
10476hpux9* | hpux10* | hpux11*)
10477  # Give a soname corresponding to the major version so that dld.sl refuses to
10478  # link against other versions.
10479  version_type=sunos
10480  need_lib_prefix=no
10481  need_version=no
10482  case $host_cpu in
10483  ia64*)
10484    shrext_cmds='.so'
10485    hardcode_into_libs=yes
10486    dynamic_linker="$host_os dld.so"
10487    shlibpath_var=LD_LIBRARY_PATH
10488    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10490    soname_spec='$libname$release$shared_ext$major'
10491    if test 32 = "$HPUX_IA64_MODE"; then
10492      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10493      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10494    else
10495      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10496      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10497    fi
10498    ;;
10499  hppa*64*)
10500    shrext_cmds='.sl'
10501    hardcode_into_libs=yes
10502    dynamic_linker="$host_os dld.sl"
10503    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10504    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10505    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10506    soname_spec='$libname$release$shared_ext$major'
10507    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10508    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10509    ;;
10510  *)
10511    shrext_cmds='.sl'
10512    dynamic_linker="$host_os dld.sl"
10513    shlibpath_var=SHLIB_PATH
10514    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10516    soname_spec='$libname$release$shared_ext$major'
10517    ;;
10518  esac
10519  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10520  postinstall_cmds='chmod 555 $lib'
10521  # or fails outright, so override atomically:
10522  install_override_mode=555
10523  ;;
10524
10525interix[3-9]*)
10526  version_type=linux # correct to gnu/linux during the next big refactor
10527  need_lib_prefix=no
10528  need_version=no
10529  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530  soname_spec='$libname$release$shared_ext$major'
10531  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10532  shlibpath_var=LD_LIBRARY_PATH
10533  shlibpath_overrides_runpath=no
10534  hardcode_into_libs=yes
10535  ;;
10536
10537irix5* | irix6* | nonstopux*)
10538  case $host_os in
10539    nonstopux*) version_type=nonstopux ;;
10540    *)
10541	if test yes = "$lt_cv_prog_gnu_ld"; then
10542		version_type=linux # correct to gnu/linux during the next big refactor
10543	else
10544		version_type=irix
10545	fi ;;
10546  esac
10547  need_lib_prefix=no
10548  need_version=no
10549  soname_spec='$libname$release$shared_ext$major'
10550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10551  case $host_os in
10552  irix5* | nonstopux*)
10553    libsuff= shlibsuff=
10554    ;;
10555  *)
10556    case $LD in # libtool.m4 will add one of these switches to LD
10557    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10558      libsuff= shlibsuff= libmagic=32-bit;;
10559    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10560      libsuff=32 shlibsuff=N32 libmagic=N32;;
10561    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10562      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10563    *) libsuff= shlibsuff= libmagic=never-match;;
10564    esac
10565    ;;
10566  esac
10567  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10568  shlibpath_overrides_runpath=no
10569  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10570  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10571  hardcode_into_libs=yes
10572  ;;
10573
10574# No shared lib support for Linux oldld, aout, or coff.
10575linux*oldld* | linux*aout* | linux*coff*)
10576  dynamic_linker=no
10577  ;;
10578
10579linux*android*)
10580  version_type=none # Android doesn't support versioned libraries.
10581  need_lib_prefix=no
10582  need_version=no
10583  library_names_spec='$libname$release$shared_ext'
10584  soname_spec='$libname$release$shared_ext'
10585  finish_cmds=
10586  shlibpath_var=LD_LIBRARY_PATH
10587  shlibpath_overrides_runpath=yes
10588
10589  # This implies no fast_install, which is unacceptable.
10590  # Some rework will be needed to allow for fast_install
10591  # before this can be enabled.
10592  hardcode_into_libs=yes
10593
10594  dynamic_linker='Android linker'
10595  # Don't embed -rpath directories since the linker doesn't support them.
10596  hardcode_libdir_flag_spec='-L$libdir'
10597  ;;
10598
10599# This must be glibc/ELF.
10600linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10601  version_type=linux # correct to gnu/linux during the next big refactor
10602  need_lib_prefix=no
10603  need_version=no
10604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10605  soname_spec='$libname$release$shared_ext$major'
10606  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10607  shlibpath_var=LD_LIBRARY_PATH
10608  shlibpath_overrides_runpath=no
10609
10610  # Some binutils ld are patched to set DT_RUNPATH
10611  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  lt_cv_shlibpath_overrides_runpath=no
10615    save_LDFLAGS=$LDFLAGS
10616    save_libdir=$libdir
10617    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10618	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621
10622int
10623main ()
10624{
10625
10626  ;
10627  return 0;
10628}
10629_ACEOF
10630if ac_fn_c_try_link "$LINENO"; then :
10631  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10632  lt_cv_shlibpath_overrides_runpath=yes
10633fi
10634fi
10635rm -f core conftest.err conftest.$ac_objext \
10636    conftest$ac_exeext conftest.$ac_ext
10637    LDFLAGS=$save_LDFLAGS
10638    libdir=$save_libdir
10639
10640fi
10641
10642  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10643
10644  # This implies no fast_install, which is unacceptable.
10645  # Some rework will be needed to allow for fast_install
10646  # before this can be enabled.
10647  hardcode_into_libs=yes
10648
10649  # Ideally, we could use ldconfig to report *all* directores which are
10650  # searched for libraries, however this is still not possible.  Aside from not
10651  # being certain /sbin/ldconfig is available, command
10652  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10653  # even though it is searched at run-time.  Try to do the best guess by
10654  # appending ld.so.conf contents (and includes) to the search path.
10655  if test -f /etc/ld.so.conf; then
10656    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' ' '`
10657    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10658  fi
10659
10660  # We used to test for /lib/ld.so.1 and disable shared libraries on
10661  # powerpc, because MkLinux only supported shared libraries with the
10662  # GNU dynamic linker.  Since this was broken with cross compilers,
10663  # most powerpc-linux boxes support dynamic linking these days and
10664  # people can always --disable-shared, the test was removed, and we
10665  # assume the GNU/Linux dynamic linker is in use.
10666  dynamic_linker='GNU/Linux ld.so'
10667  ;;
10668
10669netbsdelf*-gnu)
10670  version_type=linux
10671  need_lib_prefix=no
10672  need_version=no
10673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674  soname_spec='${libname}${release}${shared_ext}$major'
10675  shlibpath_var=LD_LIBRARY_PATH
10676  shlibpath_overrides_runpath=no
10677  hardcode_into_libs=yes
10678  dynamic_linker='NetBSD ld.elf_so'
10679  ;;
10680
10681netbsd*)
10682  version_type=sunos
10683  need_lib_prefix=no
10684  need_version=no
10685  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10686    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10687    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688    dynamic_linker='NetBSD (a.out) ld.so'
10689  else
10690    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691    soname_spec='$libname$release$shared_ext$major'
10692    dynamic_linker='NetBSD ld.elf_so'
10693  fi
10694  shlibpath_var=LD_LIBRARY_PATH
10695  shlibpath_overrides_runpath=yes
10696  hardcode_into_libs=yes
10697  ;;
10698
10699newsos6)
10700  version_type=linux # correct to gnu/linux during the next big refactor
10701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10702  shlibpath_var=LD_LIBRARY_PATH
10703  shlibpath_overrides_runpath=yes
10704  ;;
10705
10706*nto* | *qnx*)
10707  version_type=qnx
10708  need_lib_prefix=no
10709  need_version=no
10710  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711  soname_spec='$libname$release$shared_ext$major'
10712  shlibpath_var=LD_LIBRARY_PATH
10713  shlibpath_overrides_runpath=no
10714  hardcode_into_libs=yes
10715  dynamic_linker='ldqnx.so'
10716  ;;
10717
10718openbsd* | bitrig*)
10719  version_type=sunos
10720  sys_lib_dlsearch_path_spec=/usr/lib
10721  need_lib_prefix=no
10722  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10723    need_version=no
10724  else
10725    need_version=yes
10726  fi
10727  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10728  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10729  shlibpath_var=LD_LIBRARY_PATH
10730  shlibpath_overrides_runpath=yes
10731  ;;
10732
10733os2*)
10734  libname_spec='$name'
10735  version_type=windows
10736  shrext_cmds=.dll
10737  need_version=no
10738  need_lib_prefix=no
10739  # OS/2 can only load a DLL with a base name of 8 characters or less.
10740  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10741    v=$($ECHO $release$versuffix | tr -d .-);
10742    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10743    $ECHO $n$v`$shared_ext'
10744  library_names_spec='${libname}_dll.$libext'
10745  dynamic_linker='OS/2 ld.exe'
10746  shlibpath_var=BEGINLIBPATH
10747  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10748  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10749  postinstall_cmds='base_file=`basename \$file`~
10750    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10751    dldir=$destdir/`dirname \$dlpath`~
10752    test -d \$dldir || mkdir -p \$dldir~
10753    $install_prog $dir/$dlname \$dldir/$dlname~
10754    chmod a+x \$dldir/$dlname~
10755    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10756      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10757    fi'
10758  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10759    dlpath=$dir/\$dldll~
10760    $RM \$dlpath'
10761  ;;
10762
10763osf3* | osf4* | osf5*)
10764  version_type=osf
10765  need_lib_prefix=no
10766  need_version=no
10767  soname_spec='$libname$release$shared_ext$major'
10768  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769  shlibpath_var=LD_LIBRARY_PATH
10770  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10771  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10772  ;;
10773
10774rdos*)
10775  dynamic_linker=no
10776  ;;
10777
10778solaris*)
10779  version_type=linux # correct to gnu/linux during the next big refactor
10780  need_lib_prefix=no
10781  need_version=no
10782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10783  soname_spec='$libname$release$shared_ext$major'
10784  shlibpath_var=LD_LIBRARY_PATH
10785  shlibpath_overrides_runpath=yes
10786  hardcode_into_libs=yes
10787  # ldd complains unless libraries are executable
10788  postinstall_cmds='chmod +x $lib'
10789  ;;
10790
10791sunos4*)
10792  version_type=sunos
10793  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10794  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10795  shlibpath_var=LD_LIBRARY_PATH
10796  shlibpath_overrides_runpath=yes
10797  if test yes = "$with_gnu_ld"; then
10798    need_lib_prefix=no
10799  fi
10800  need_version=yes
10801  ;;
10802
10803sysv4 | sysv4.3*)
10804  version_type=linux # correct to gnu/linux during the next big refactor
10805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806  soname_spec='$libname$release$shared_ext$major'
10807  shlibpath_var=LD_LIBRARY_PATH
10808  case $host_vendor in
10809    sni)
10810      shlibpath_overrides_runpath=no
10811      need_lib_prefix=no
10812      runpath_var=LD_RUN_PATH
10813      ;;
10814    siemens)
10815      need_lib_prefix=no
10816      ;;
10817    motorola)
10818      need_lib_prefix=no
10819      need_version=no
10820      shlibpath_overrides_runpath=no
10821      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10822      ;;
10823  esac
10824  ;;
10825
10826sysv4*MP*)
10827  if test -d /usr/nec; then
10828    version_type=linux # correct to gnu/linux during the next big refactor
10829    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10830    soname_spec='$libname$shared_ext.$major'
10831    shlibpath_var=LD_LIBRARY_PATH
10832  fi
10833  ;;
10834
10835sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10836  version_type=sco
10837  need_lib_prefix=no
10838  need_version=no
10839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10840  soname_spec='$libname$release$shared_ext$major'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  shlibpath_overrides_runpath=yes
10843  hardcode_into_libs=yes
10844  if test yes = "$with_gnu_ld"; then
10845    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10846  else
10847    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10848    case $host_os in
10849      sco3.2v5*)
10850        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10851	;;
10852    esac
10853  fi
10854  sys_lib_dlsearch_path_spec='/usr/lib'
10855  ;;
10856
10857tpf*)
10858  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10859  version_type=linux # correct to gnu/linux during the next big refactor
10860  need_lib_prefix=no
10861  need_version=no
10862  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10863  shlibpath_var=LD_LIBRARY_PATH
10864  shlibpath_overrides_runpath=no
10865  hardcode_into_libs=yes
10866  ;;
10867
10868uts4*)
10869  version_type=linux # correct to gnu/linux during the next big refactor
10870  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871  soname_spec='$libname$release$shared_ext$major'
10872  shlibpath_var=LD_LIBRARY_PATH
10873  ;;
10874
10875*)
10876  dynamic_linker=no
10877  ;;
10878esac
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10880$as_echo "$dynamic_linker" >&6; }
10881test no = "$dynamic_linker" && can_build_shared=no
10882
10883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10884if test yes = "$GCC"; then
10885  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10886fi
10887
10888if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10889  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10890fi
10891
10892if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10893  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10894fi
10895
10896# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10897configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10898
10899# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10900func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10901
10902# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10903configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11002$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11003hardcode_action=
11004if test -n "$hardcode_libdir_flag_spec" ||
11005   test -n "$runpath_var" ||
11006   test yes = "$hardcode_automatic"; then
11007
11008  # We can hardcode non-existent directories.
11009  if test no != "$hardcode_direct" &&
11010     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11011     # have to relink, otherwise we might link with an installed library
11012     # when we should be linking with a yet-to-be-installed one
11013     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11014     test no != "$hardcode_minus_L"; then
11015    # Linking always hardcodes the temporary library directory.
11016    hardcode_action=relink
11017  else
11018    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11019    hardcode_action=immediate
11020  fi
11021else
11022  # We cannot hardcode anything, or else we can only hardcode existing
11023  # directories.
11024  hardcode_action=unsupported
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11027$as_echo "$hardcode_action" >&6; }
11028
11029if test relink = "$hardcode_action" ||
11030   test yes = "$inherit_rpath"; then
11031  # Fast installation is not supported
11032  enable_fast_install=no
11033elif test yes = "$shlibpath_overrides_runpath" ||
11034     test no = "$enable_shared"; then
11035  # Fast installation is not necessary
11036  enable_fast_install=needless
11037fi
11038
11039
11040
11041
11042
11043
11044  if test yes != "$enable_dlopen"; then
11045  enable_dlopen=unknown
11046  enable_dlopen_self=unknown
11047  enable_dlopen_self_static=unknown
11048else
11049  lt_cv_dlopen=no
11050  lt_cv_dlopen_libs=
11051
11052  case $host_os in
11053  beos*)
11054    lt_cv_dlopen=load_add_on
11055    lt_cv_dlopen_libs=
11056    lt_cv_dlopen_self=yes
11057    ;;
11058
11059  mingw* | pw32* | cegcc*)
11060    lt_cv_dlopen=LoadLibrary
11061    lt_cv_dlopen_libs=
11062    ;;
11063
11064  cygwin*)
11065    lt_cv_dlopen=dlopen
11066    lt_cv_dlopen_libs=
11067    ;;
11068
11069  darwin*)
11070    # if libdl is installed we need to link against it
11071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11072$as_echo_n "checking for dlopen in -ldl... " >&6; }
11073if ${ac_cv_lib_dl_dlopen+:} false; then :
11074  $as_echo_n "(cached) " >&6
11075else
11076  ac_check_lib_save_LIBS=$LIBS
11077LIBS="-ldl  $LIBS"
11078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h.  */
11080
11081/* Override any GCC internal prototype to avoid an error.
11082   Use char because int might match the return type of a GCC
11083   builtin and then its argument prototype would still apply.  */
11084#ifdef __cplusplus
11085extern "C"
11086#endif
11087char dlopen ();
11088int
11089main ()
11090{
11091return dlopen ();
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097  ac_cv_lib_dl_dlopen=yes
11098else
11099  ac_cv_lib_dl_dlopen=no
11100fi
11101rm -f core conftest.err conftest.$ac_objext \
11102    conftest$ac_exeext conftest.$ac_ext
11103LIBS=$ac_check_lib_save_LIBS
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11106$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11107if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11108  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11109else
11110
11111    lt_cv_dlopen=dyld
11112    lt_cv_dlopen_libs=
11113    lt_cv_dlopen_self=yes
11114
11115fi
11116
11117    ;;
11118
11119  tpf*)
11120    # Don't try to run any link tests for TPF.  We know it's impossible
11121    # because TPF is a cross-compiler, and we know how we open DSOs.
11122    lt_cv_dlopen=dlopen
11123    lt_cv_dlopen_libs=
11124    lt_cv_dlopen_self=no
11125    ;;
11126
11127  *)
11128    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11129if test "x$ac_cv_func_shl_load" = xyes; then :
11130  lt_cv_dlopen=shl_load
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11133$as_echo_n "checking for shl_load in -ldld... " >&6; }
11134if ${ac_cv_lib_dld_shl_load+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldld  $LIBS"
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143   Use char because int might match the return type of a GCC
11144   builtin and then its argument prototype would still apply.  */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char shl_load ();
11149int
11150main ()
11151{
11152return shl_load ();
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  ac_cv_lib_dld_shl_load=yes
11159else
11160  ac_cv_lib_dld_shl_load=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11167$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11168if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11169  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11170else
11171  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11172if test "x$ac_cv_func_dlopen" = xyes; then :
11173  lt_cv_dlopen=dlopen
11174else
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11176$as_echo_n "checking for dlopen in -ldl... " >&6; }
11177if ${ac_cv_lib_dl_dlopen+:} false; then :
11178  $as_echo_n "(cached) " >&6
11179else
11180  ac_check_lib_save_LIBS=$LIBS
11181LIBS="-ldl  $LIBS"
11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184
11185/* Override any GCC internal prototype to avoid an error.
11186   Use char because int might match the return type of a GCC
11187   builtin and then its argument prototype would still apply.  */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char dlopen ();
11192int
11193main ()
11194{
11195return dlopen ();
11196  ;
11197  return 0;
11198}
11199_ACEOF
11200if ac_fn_c_try_link "$LINENO"; then :
11201  ac_cv_lib_dl_dlopen=yes
11202else
11203  ac_cv_lib_dl_dlopen=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206    conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11210$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11211if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11212  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11213else
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11215$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11216if ${ac_cv_lib_svld_dlopen+:} false; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219  ac_check_lib_save_LIBS=$LIBS
11220LIBS="-lsvld  $LIBS"
11221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h.  */
11223
11224/* Override any GCC internal prototype to avoid an error.
11225   Use char because int might match the return type of a GCC
11226   builtin and then its argument prototype would still apply.  */
11227#ifdef __cplusplus
11228extern "C"
11229#endif
11230char dlopen ();
11231int
11232main ()
11233{
11234return dlopen ();
11235  ;
11236  return 0;
11237}
11238_ACEOF
11239if ac_fn_c_try_link "$LINENO"; then :
11240  ac_cv_lib_svld_dlopen=yes
11241else
11242  ac_cv_lib_svld_dlopen=no
11243fi
11244rm -f core conftest.err conftest.$ac_objext \
11245    conftest$ac_exeext conftest.$ac_ext
11246LIBS=$ac_check_lib_save_LIBS
11247fi
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11249$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11250if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11251  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11252else
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11254$as_echo_n "checking for dld_link in -ldld... " >&6; }
11255if ${ac_cv_lib_dld_dld_link+:} false; then :
11256  $as_echo_n "(cached) " >&6
11257else
11258  ac_check_lib_save_LIBS=$LIBS
11259LIBS="-ldld  $LIBS"
11260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261/* end confdefs.h.  */
11262
11263/* Override any GCC internal prototype to avoid an error.
11264   Use char because int might match the return type of a GCC
11265   builtin and then its argument prototype would still apply.  */
11266#ifdef __cplusplus
11267extern "C"
11268#endif
11269char dld_link ();
11270int
11271main ()
11272{
11273return dld_link ();
11274  ;
11275  return 0;
11276}
11277_ACEOF
11278if ac_fn_c_try_link "$LINENO"; then :
11279  ac_cv_lib_dld_dld_link=yes
11280else
11281  ac_cv_lib_dld_dld_link=no
11282fi
11283rm -f core conftest.err conftest.$ac_objext \
11284    conftest$ac_exeext conftest.$ac_ext
11285LIBS=$ac_check_lib_save_LIBS
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11288$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11289if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11290  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11291fi
11292
11293
11294fi
11295
11296
11297fi
11298
11299
11300fi
11301
11302
11303fi
11304
11305
11306fi
11307
11308    ;;
11309  esac
11310
11311  if test no = "$lt_cv_dlopen"; then
11312    enable_dlopen=no
11313  else
11314    enable_dlopen=yes
11315  fi
11316
11317  case $lt_cv_dlopen in
11318  dlopen)
11319    save_CPPFLAGS=$CPPFLAGS
11320    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11321
11322    save_LDFLAGS=$LDFLAGS
11323    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11324
11325    save_LIBS=$LIBS
11326    LIBS="$lt_cv_dlopen_libs $LIBS"
11327
11328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11329$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11330if ${lt_cv_dlopen_self+:} false; then :
11331  $as_echo_n "(cached) " >&6
11332else
11333  	  if test yes = "$cross_compiling"; then :
11334  lt_cv_dlopen_self=cross
11335else
11336  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11337  lt_status=$lt_dlunknown
11338  cat > conftest.$ac_ext <<_LT_EOF
11339#line $LINENO "configure"
11340#include "confdefs.h"
11341
11342#if HAVE_DLFCN_H
11343#include <dlfcn.h>
11344#endif
11345
11346#include <stdio.h>
11347
11348#ifdef RTLD_GLOBAL
11349#  define LT_DLGLOBAL		RTLD_GLOBAL
11350#else
11351#  ifdef DL_GLOBAL
11352#    define LT_DLGLOBAL		DL_GLOBAL
11353#  else
11354#    define LT_DLGLOBAL		0
11355#  endif
11356#endif
11357
11358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11359   find out it does not work in some platform. */
11360#ifndef LT_DLLAZY_OR_NOW
11361#  ifdef RTLD_LAZY
11362#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11363#  else
11364#    ifdef DL_LAZY
11365#      define LT_DLLAZY_OR_NOW		DL_LAZY
11366#    else
11367#      ifdef RTLD_NOW
11368#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11369#      else
11370#        ifdef DL_NOW
11371#          define LT_DLLAZY_OR_NOW	DL_NOW
11372#        else
11373#          define LT_DLLAZY_OR_NOW	0
11374#        endif
11375#      endif
11376#    endif
11377#  endif
11378#endif
11379
11380/* When -fvisibility=hidden is used, assume the code has been annotated
11381   correspondingly for the symbols needed.  */
11382#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11383int fnord () __attribute__((visibility("default")));
11384#endif
11385
11386int fnord () { return 42; }
11387int main ()
11388{
11389  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11390  int status = $lt_dlunknown;
11391
11392  if (self)
11393    {
11394      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11395      else
11396        {
11397	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11398          else puts (dlerror ());
11399	}
11400      /* dlclose (self); */
11401    }
11402  else
11403    puts (dlerror ());
11404
11405  return status;
11406}
11407_LT_EOF
11408  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11409  (eval $ac_link) 2>&5
11410  ac_status=$?
11411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11413    (./conftest; exit; ) >&5 2>/dev/null
11414    lt_status=$?
11415    case x$lt_status in
11416      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11417      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11418      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11419    esac
11420  else :
11421    # compilation failed
11422    lt_cv_dlopen_self=no
11423  fi
11424fi
11425rm -fr conftest*
11426
11427
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11430$as_echo "$lt_cv_dlopen_self" >&6; }
11431
11432    if test yes = "$lt_cv_dlopen_self"; then
11433      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11434      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11435$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11436if ${lt_cv_dlopen_self_static+:} false; then :
11437  $as_echo_n "(cached) " >&6
11438else
11439  	  if test yes = "$cross_compiling"; then :
11440  lt_cv_dlopen_self_static=cross
11441else
11442  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11443  lt_status=$lt_dlunknown
11444  cat > conftest.$ac_ext <<_LT_EOF
11445#line $LINENO "configure"
11446#include "confdefs.h"
11447
11448#if HAVE_DLFCN_H
11449#include <dlfcn.h>
11450#endif
11451
11452#include <stdio.h>
11453
11454#ifdef RTLD_GLOBAL
11455#  define LT_DLGLOBAL		RTLD_GLOBAL
11456#else
11457#  ifdef DL_GLOBAL
11458#    define LT_DLGLOBAL		DL_GLOBAL
11459#  else
11460#    define LT_DLGLOBAL		0
11461#  endif
11462#endif
11463
11464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11465   find out it does not work in some platform. */
11466#ifndef LT_DLLAZY_OR_NOW
11467#  ifdef RTLD_LAZY
11468#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11469#  else
11470#    ifdef DL_LAZY
11471#      define LT_DLLAZY_OR_NOW		DL_LAZY
11472#    else
11473#      ifdef RTLD_NOW
11474#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11475#      else
11476#        ifdef DL_NOW
11477#          define LT_DLLAZY_OR_NOW	DL_NOW
11478#        else
11479#          define LT_DLLAZY_OR_NOW	0
11480#        endif
11481#      endif
11482#    endif
11483#  endif
11484#endif
11485
11486/* When -fvisibility=hidden is used, assume the code has been annotated
11487   correspondingly for the symbols needed.  */
11488#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11489int fnord () __attribute__((visibility("default")));
11490#endif
11491
11492int fnord () { return 42; }
11493int main ()
11494{
11495  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11496  int status = $lt_dlunknown;
11497
11498  if (self)
11499    {
11500      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11501      else
11502        {
11503	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11504          else puts (dlerror ());
11505	}
11506      /* dlclose (self); */
11507    }
11508  else
11509    puts (dlerror ());
11510
11511  return status;
11512}
11513_LT_EOF
11514  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11515  (eval $ac_link) 2>&5
11516  ac_status=$?
11517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11519    (./conftest; exit; ) >&5 2>/dev/null
11520    lt_status=$?
11521    case x$lt_status in
11522      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11523      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11524      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11525    esac
11526  else :
11527    # compilation failed
11528    lt_cv_dlopen_self_static=no
11529  fi
11530fi
11531rm -fr conftest*
11532
11533
11534fi
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11536$as_echo "$lt_cv_dlopen_self_static" >&6; }
11537    fi
11538
11539    CPPFLAGS=$save_CPPFLAGS
11540    LDFLAGS=$save_LDFLAGS
11541    LIBS=$save_LIBS
11542    ;;
11543  esac
11544
11545  case $lt_cv_dlopen_self in
11546  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11547  *) enable_dlopen_self=unknown ;;
11548  esac
11549
11550  case $lt_cv_dlopen_self_static in
11551  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11552  *) enable_dlopen_self_static=unknown ;;
11553  esac
11554fi
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572striplib=
11573old_striplib=
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11575$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11576if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11577  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11578  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580$as_echo "yes" >&6; }
11581else
11582# FIXME - insert some real tests, host_os isn't really good enough
11583  case $host_os in
11584  darwin*)
11585    if test -n "$STRIP"; then
11586      striplib="$STRIP -x"
11587      old_striplib="$STRIP -S"
11588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589$as_echo "yes" >&6; }
11590    else
11591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593    fi
11594    ;;
11595  *)
11596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597$as_echo "no" >&6; }
11598    ;;
11599  esac
11600fi
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613  # Report what library types will actually be built
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11615$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11617$as_echo "$can_build_shared" >&6; }
11618
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11620$as_echo_n "checking whether to build shared libraries... " >&6; }
11621  test no = "$can_build_shared" && enable_shared=no
11622
11623  # On AIX, shared libraries and static libraries use the same namespace, and
11624  # are all built from PIC.
11625  case $host_os in
11626  aix3*)
11627    test yes = "$enable_shared" && enable_static=no
11628    if test -n "$RANLIB"; then
11629      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11630      postinstall_cmds='$RANLIB $lib'
11631    fi
11632    ;;
11633
11634  aix[4-9]*)
11635    if test ia64 != "$host_cpu"; then
11636      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11637      yes,aix,yes) ;;			# shared object as lib.so file only
11638      yes,svr4,*) ;;			# shared object as lib.so archive member only
11639      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11640      esac
11641    fi
11642    ;;
11643  esac
11644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11645$as_echo "$enable_shared" >&6; }
11646
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11648$as_echo_n "checking whether to build static libraries... " >&6; }
11649  # Make sure either enable_shared or enable_static is yes.
11650  test yes = "$enable_shared" || enable_static=yes
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11652$as_echo "$enable_static" >&6; }
11653
11654
11655
11656
11657fi
11658ac_ext=c
11659ac_cpp='$CPP $CPPFLAGS'
11660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663
11664CC=$lt_save_CC
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680        ac_config_commands="$ac_config_commands libtool"
11681
11682
11683
11684
11685# Only expand once:
11686
11687
11688
11689
11690OURCPPFLAGS=''
11691CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11692CFLAGS="$CFLAGS"
11693
11694# Checks for programs.
11695ac_ext=c
11696ac_cpp='$CPP $CPPFLAGS'
11697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700if test -n "$ac_tool_prefix"; then
11701  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11702set dummy ${ac_tool_prefix}gcc; ac_word=$2
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704$as_echo_n "checking for $ac_word... " >&6; }
11705if ${ac_cv_prog_CC+:} false; then :
11706  $as_echo_n "(cached) " >&6
11707else
11708  if test -n "$CC"; then
11709  ac_cv_prog_CC="$CC" # Let the user override the test.
11710else
11711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712for as_dir in $PATH
11713do
11714  IFS=$as_save_IFS
11715  test -z "$as_dir" && as_dir=.
11716    for ac_exec_ext in '' $ac_executable_extensions; do
11717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720    break 2
11721  fi
11722done
11723  done
11724IFS=$as_save_IFS
11725
11726fi
11727fi
11728CC=$ac_cv_prog_CC
11729if test -n "$CC"; then
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11731$as_echo "$CC" >&6; }
11732else
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
11735fi
11736
11737
11738fi
11739if test -z "$ac_cv_prog_CC"; then
11740  ac_ct_CC=$CC
11741  # Extract the first word of "gcc", so it can be a program name with args.
11742set dummy gcc; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_ac_ct_CC+:} false; then :
11746  $as_echo_n "(cached) " >&6
11747else
11748  if test -n "$ac_ct_CC"; then
11749  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754  IFS=$as_save_IFS
11755  test -z "$as_dir" && as_dir=.
11756    for ac_exec_ext in '' $ac_executable_extensions; do
11757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758    ac_cv_prog_ac_ct_CC="gcc"
11759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760    break 2
11761  fi
11762done
11763  done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768ac_ct_CC=$ac_cv_prog_ac_ct_CC
11769if test -n "$ac_ct_CC"; then
11770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11771$as_echo "$ac_ct_CC" >&6; }
11772else
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777  if test "x$ac_ct_CC" = x; then
11778    CC=""
11779  else
11780    case $cross_compiling:$ac_tool_warned in
11781yes:)
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11784ac_tool_warned=yes ;;
11785esac
11786    CC=$ac_ct_CC
11787  fi
11788else
11789  CC="$ac_cv_prog_CC"
11790fi
11791
11792if test -z "$CC"; then
11793          if test -n "$ac_tool_prefix"; then
11794    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11795set dummy ${ac_tool_prefix}cc; ac_word=$2
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797$as_echo_n "checking for $ac_word... " >&6; }
11798if ${ac_cv_prog_CC+:} false; then :
11799  $as_echo_n "(cached) " >&6
11800else
11801  if test -n "$CC"; then
11802  ac_cv_prog_CC="$CC" # Let the user override the test.
11803else
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807  IFS=$as_save_IFS
11808  test -z "$as_dir" && as_dir=.
11809    for ac_exec_ext in '' $ac_executable_extensions; do
11810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811    ac_cv_prog_CC="${ac_tool_prefix}cc"
11812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813    break 2
11814  fi
11815done
11816  done
11817IFS=$as_save_IFS
11818
11819fi
11820fi
11821CC=$ac_cv_prog_CC
11822if test -n "$CC"; then
11823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11824$as_echo "$CC" >&6; }
11825else
11826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
11828fi
11829
11830
11831  fi
11832fi
11833if test -z "$CC"; then
11834  # Extract the first word of "cc", so it can be a program name with args.
11835set dummy cc; ac_word=$2
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837$as_echo_n "checking for $ac_word... " >&6; }
11838if ${ac_cv_prog_CC+:} false; then :
11839  $as_echo_n "(cached) " >&6
11840else
11841  if test -n "$CC"; then
11842  ac_cv_prog_CC="$CC" # Let the user override the test.
11843else
11844  ac_prog_rejected=no
11845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846for as_dir in $PATH
11847do
11848  IFS=$as_save_IFS
11849  test -z "$as_dir" && as_dir=.
11850    for ac_exec_ext in '' $ac_executable_extensions; do
11851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11853       ac_prog_rejected=yes
11854       continue
11855     fi
11856    ac_cv_prog_CC="cc"
11857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858    break 2
11859  fi
11860done
11861  done
11862IFS=$as_save_IFS
11863
11864if test $ac_prog_rejected = yes; then
11865  # We found a bogon in the path, so make sure we never use it.
11866  set dummy $ac_cv_prog_CC
11867  shift
11868  if test $# != 0; then
11869    # We chose a different compiler from the bogus one.
11870    # However, it has the same basename, so the bogon will be chosen
11871    # first if we set CC to just the basename; use the full file name.
11872    shift
11873    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11874  fi
11875fi
11876fi
11877fi
11878CC=$ac_cv_prog_CC
11879if test -n "$CC"; then
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11881$as_echo "$CC" >&6; }
11882else
11883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887
11888fi
11889if test -z "$CC"; then
11890  if test -n "$ac_tool_prefix"; then
11891  for ac_prog in cl.exe
11892  do
11893    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896$as_echo_n "checking for $ac_word... " >&6; }
11897if ${ac_cv_prog_CC+:} false; then :
11898  $as_echo_n "(cached) " >&6
11899else
11900  if test -n "$CC"; then
11901  ac_cv_prog_CC="$CC" # Let the user override the test.
11902else
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906  IFS=$as_save_IFS
11907  test -z "$as_dir" && as_dir=.
11908    for ac_exec_ext in '' $ac_executable_extensions; do
11909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912    break 2
11913  fi
11914done
11915  done
11916IFS=$as_save_IFS
11917
11918fi
11919fi
11920CC=$ac_cv_prog_CC
11921if test -n "$CC"; then
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11923$as_echo "$CC" >&6; }
11924else
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
11927fi
11928
11929
11930    test -n "$CC" && break
11931  done
11932fi
11933if test -z "$CC"; then
11934  ac_ct_CC=$CC
11935  for ac_prog in cl.exe
11936do
11937  # Extract the first word of "$ac_prog", so it can be a program name with args.
11938set dummy $ac_prog; ac_word=$2
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if ${ac_cv_prog_ac_ct_CC+:} false; then :
11942  $as_echo_n "(cached) " >&6
11943else
11944  if test -n "$ac_ct_CC"; then
11945  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11946else
11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950  IFS=$as_save_IFS
11951  test -z "$as_dir" && as_dir=.
11952    for ac_exec_ext in '' $ac_executable_extensions; do
11953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954    ac_cv_prog_ac_ct_CC="$ac_prog"
11955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11956    break 2
11957  fi
11958done
11959  done
11960IFS=$as_save_IFS
11961
11962fi
11963fi
11964ac_ct_CC=$ac_cv_prog_ac_ct_CC
11965if test -n "$ac_ct_CC"; then
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11967$as_echo "$ac_ct_CC" >&6; }
11968else
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
11971fi
11972
11973
11974  test -n "$ac_ct_CC" && break
11975done
11976
11977  if test "x$ac_ct_CC" = x; then
11978    CC=""
11979  else
11980    case $cross_compiling:$ac_tool_warned in
11981yes:)
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11984ac_tool_warned=yes ;;
11985esac
11986    CC=$ac_ct_CC
11987  fi
11988fi
11989
11990fi
11991
11992
11993test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995as_fn_error $? "no acceptable C compiler found in \$PATH
11996See \`config.log' for more details" "$LINENO" 5; }
11997
11998# Provide some information about the compiler.
11999$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12000set X $ac_compile
12001ac_compiler=$2
12002for ac_option in --version -v -V -qversion; do
12003  { { ac_try="$ac_compiler $ac_option >&5"
12004case "(($ac_try" in
12005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006  *) ac_try_echo=$ac_try;;
12007esac
12008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12009$as_echo "$ac_try_echo"; } >&5
12010  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12011  ac_status=$?
12012  if test -s conftest.err; then
12013    sed '10a\
12014... rest of stderr output deleted ...
12015         10q' conftest.err >conftest.er1
12016    cat conftest.er1 >&5
12017  fi
12018  rm -f conftest.er1 conftest.err
12019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020  test $ac_status = 0; }
12021done
12022
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12024$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12025if ${ac_cv_c_compiler_gnu+:} false; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029/* end confdefs.h.  */
12030
12031int
12032main ()
12033{
12034#ifndef __GNUC__
12035       choke me
12036#endif
12037
12038  ;
12039  return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_compile "$LINENO"; then :
12043  ac_compiler_gnu=yes
12044else
12045  ac_compiler_gnu=no
12046fi
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048ac_cv_c_compiler_gnu=$ac_compiler_gnu
12049
12050fi
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12052$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12053if test $ac_compiler_gnu = yes; then
12054  GCC=yes
12055else
12056  GCC=
12057fi
12058ac_test_CFLAGS=${CFLAGS+set}
12059ac_save_CFLAGS=$CFLAGS
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12061$as_echo_n "checking whether $CC accepts -g... " >&6; }
12062if ${ac_cv_prog_cc_g+:} false; then :
12063  $as_echo_n "(cached) " >&6
12064else
12065  ac_save_c_werror_flag=$ac_c_werror_flag
12066   ac_c_werror_flag=yes
12067   ac_cv_prog_cc_g=no
12068   CFLAGS="-g"
12069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h.  */
12071
12072int
12073main ()
12074{
12075
12076  ;
12077  return 0;
12078}
12079_ACEOF
12080if ac_fn_c_try_compile "$LINENO"; then :
12081  ac_cv_prog_cc_g=yes
12082else
12083  CFLAGS=""
12084      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h.  */
12086
12087int
12088main ()
12089{
12090
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095if ac_fn_c_try_compile "$LINENO"; then :
12096
12097else
12098  ac_c_werror_flag=$ac_save_c_werror_flag
12099	 CFLAGS="-g"
12100	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h.  */
12102
12103int
12104main ()
12105{
12106
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111if ac_fn_c_try_compile "$LINENO"; then :
12112  ac_cv_prog_cc_g=yes
12113fi
12114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115fi
12116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119   ac_c_werror_flag=$ac_save_c_werror_flag
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12122$as_echo "$ac_cv_prog_cc_g" >&6; }
12123if test "$ac_test_CFLAGS" = set; then
12124  CFLAGS=$ac_save_CFLAGS
12125elif test $ac_cv_prog_cc_g = yes; then
12126  if test "$GCC" = yes; then
12127    CFLAGS="-g -O2"
12128  else
12129    CFLAGS="-g"
12130  fi
12131else
12132  if test "$GCC" = yes; then
12133    CFLAGS="-O2"
12134  else
12135    CFLAGS=
12136  fi
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12139$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12140if ${ac_cv_prog_cc_c89+:} false; then :
12141  $as_echo_n "(cached) " >&6
12142else
12143  ac_cv_prog_cc_c89=no
12144ac_save_CC=$CC
12145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147#include <stdarg.h>
12148#include <stdio.h>
12149struct stat;
12150/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12151struct buf { int x; };
12152FILE * (*rcsopen) (struct buf *, struct stat *, int);
12153static char *e (p, i)
12154     char **p;
12155     int i;
12156{
12157  return p[i];
12158}
12159static char *f (char * (*g) (char **, int), char **p, ...)
12160{
12161  char *s;
12162  va_list v;
12163  va_start (v,p);
12164  s = g (p, va_arg (v,int));
12165  va_end (v);
12166  return s;
12167}
12168
12169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12170   function prototypes and stuff, but not '\xHH' hex character constants.
12171   These don't provoke an error unfortunately, instead are silently treated
12172   as 'x'.  The following induces an error, until -std is added to get
12173   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12174   array size at least.  It's necessary to write '\x00'==0 to get something
12175   that's true only with -std.  */
12176int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12177
12178/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12179   inside strings and character constants.  */
12180#define FOO(x) 'x'
12181int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12182
12183int test (int i, double x);
12184struct s1 {int (*f) (int a);};
12185struct s2 {int (*f) (double a);};
12186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12187int argc;
12188char **argv;
12189int
12190main ()
12191{
12192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12198	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12199do
12200  CC="$ac_save_CC $ac_arg"
12201  if ac_fn_c_try_compile "$LINENO"; then :
12202  ac_cv_prog_cc_c89=$ac_arg
12203fi
12204rm -f core conftest.err conftest.$ac_objext
12205  test "x$ac_cv_prog_cc_c89" != "xno" && break
12206done
12207rm -f conftest.$ac_ext
12208CC=$ac_save_CC
12209
12210fi
12211# AC_CACHE_VAL
12212case "x$ac_cv_prog_cc_c89" in
12213  x)
12214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12215$as_echo "none needed" >&6; } ;;
12216  xno)
12217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12218$as_echo "unsupported" >&6; } ;;
12219  *)
12220    CC="$CC $ac_cv_prog_cc_c89"
12221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12222$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12223esac
12224if test "x$ac_cv_prog_cc_c89" != xno; then :
12225
12226fi
12227
12228ac_ext=c
12229ac_cpp='$CPP $CPPFLAGS'
12230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232ac_compiler_gnu=$ac_cv_c_compiler_gnu
12233
12234
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
12236$as_echo_n "checking $CC dependency flag... " >&6; }
12237echo 'void f(){}' >conftest.c
12238if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
12239	DEPFLAG="-MM"
12240else
12241  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
12242	DEPFLAG="-xM1"
12243  else
12244	DEPFLAG="-MM"  # dunno do something
12245  fi
12246fi
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
12248$as_echo "$DEPFLAG" >&6; }
12249rm -f conftest.c
12250
12251
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12253$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12254set x ${MAKE-make}
12255ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12256if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12257  $as_echo_n "(cached) " >&6
12258else
12259  cat >conftest.make <<\_ACEOF
12260SHELL = /bin/sh
12261all:
12262	@echo '@@@%%%=$(MAKE)=@@@%%%'
12263_ACEOF
12264# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12265case `${MAKE-make} -f conftest.make 2>/dev/null` in
12266  *@@@%%%=?*=@@@%%%*)
12267    eval ac_cv_prog_make_${ac_make}_set=yes;;
12268  *)
12269    eval ac_cv_prog_make_${ac_make}_set=no;;
12270esac
12271rm -f conftest.make
12272fi
12273if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275$as_echo "yes" >&6; }
12276  SET_MAKE=
12277else
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280  SET_MAKE="MAKE=${MAKE-make}"
12281fi
12282
12283
12284# Extra (sp)lint flags for NetBSD
12285
12286case "$host_os" in
12287	netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
12288		 ;;
12289	*)       LINTFLAGS="$LINTFLAGS"
12290		 ;;
12291esac
12292
12293
12294
12295$as_echo "#define WINVER 0x0502" >>confdefs.h
12296
12297
12298
12299
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12301$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12302cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12303if eval \${cv_prog_cc_flag_$cache+:} false; then :
12304  $as_echo_n "(cached) " >&6
12305else
12306
12307echo 'void f(void){}' >conftest.c
12308if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12309eval "cv_prog_cc_flag_$cache=yes"
12310else
12311eval "cv_prog_cc_flag_$cache=no"
12312fi
12313rm -f conftest conftest.o conftest.c
12314
12315fi
12316
12317if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319$as_echo "yes" >&6; }
12320:
12321C99FLAG="-std=c99"
12322else
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
12325:
12326
12327fi
12328
12329
12330
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12332$as_echo_n "checking whether $CC supports -xc99... " >&6; }
12333cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12334if eval \${cv_prog_cc_flag_$cache+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337
12338echo 'void f(void){}' >conftest.c
12339if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12340eval "cv_prog_cc_flag_$cache=yes"
12341else
12342eval "cv_prog_cc_flag_$cache=no"
12343fi
12344rm -f conftest conftest.o conftest.c
12345
12346fi
12347
12348if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350$as_echo "yes" >&6; }
12351:
12352C99FLAG="-xc99"
12353else
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356:
12357
12358fi
12359
12360
12361# routine to copy files
12362# argument 1 is a list of files (relative to the source dir)
12363# argument 2 is a destination directory (relative to the current
12364# working directory
12365
12366
12367# copy all .h files in the dir at argument 1
12368# (relative to source) to the dir at argument 2
12369# (relative to current dir)
12370
12371
12372# Checks for typedefs, structures, and compiler characteristics.
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12374$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12375if ${ac_cv_c_const+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380
12381int
12382main ()
12383{
12384
12385#ifndef __cplusplus
12386  /* Ultrix mips cc rejects this sort of thing.  */
12387  typedef int charset[2];
12388  const charset cs = { 0, 0 };
12389  /* SunOS 4.1.1 cc rejects this.  */
12390  char const *const *pcpcc;
12391  char **ppc;
12392  /* NEC SVR4.0.2 mips cc rejects this.  */
12393  struct point {int x, y;};
12394  static struct point const zero = {0,0};
12395  /* AIX XL C 1.02.0.0 rejects this.
12396     It does not let you subtract one const X* pointer from another in
12397     an arm of an if-expression whose if-part is not a constant
12398     expression */
12399  const char *g = "string";
12400  pcpcc = &g + (g ? g-g : 0);
12401  /* HPUX 7.0 cc rejects these. */
12402  ++pcpcc;
12403  ppc = (char**) pcpcc;
12404  pcpcc = (char const *const *) ppc;
12405  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12406    char tx;
12407    char *t = &tx;
12408    char const *s = 0 ? (char *) 0 : (char const *) 0;
12409
12410    *t++ = 0;
12411    if (s) return 0;
12412  }
12413  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12414    int x[] = {25, 17};
12415    const int *foo = &x[0];
12416    ++foo;
12417  }
12418  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12419    typedef const int *iptr;
12420    iptr p = 0;
12421    ++p;
12422  }
12423  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12424       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12425    struct s { int j; const int *ap[3]; } bx;
12426    struct s *b = &bx; b->j = 5;
12427  }
12428  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12429    const int foo = 10;
12430    if (!foo) return 0;
12431  }
12432  return !cs[0] && !zero.x;
12433#endif
12434
12435  ;
12436  return 0;
12437}
12438_ACEOF
12439if ac_fn_c_try_compile "$LINENO"; then :
12440  ac_cv_c_const=yes
12441else
12442  ac_cv_c_const=no
12443fi
12444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445fi
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12447$as_echo "$ac_cv_c_const" >&6; }
12448if test $ac_cv_c_const = no; then
12449
12450$as_echo "#define const /**/" >>confdefs.h
12451
12452fi
12453
12454ac_ext=c
12455ac_cpp='$CPP $CPPFLAGS'
12456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460if test "x$CFLAGS" = "x" ; then
12461
12462
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
12464$as_echo_n "checking whether $CC supports -g... " >&6; }
12465cache=`echo g | sed 'y%.=/+-%___p_%'`
12466if eval \${cv_prog_cc_flag_$cache+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469
12470echo 'void f(void){}' >conftest.c
12471if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
12472eval "cv_prog_cc_flag_$cache=yes"
12473else
12474eval "cv_prog_cc_flag_$cache=no"
12475fi
12476rm -f conftest conftest.o conftest.c
12477
12478fi
12479
12480if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482$as_echo "yes" >&6; }
12483:
12484CFLAGS="-g"
12485else
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488:
12489
12490fi
12491
12492
12493
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
12495$as_echo_n "checking whether $CC supports -O2... " >&6; }
12496cache=`echo O2 | sed 'y%.=/+-%___p_%'`
12497if eval \${cv_prog_cc_flag_$cache+:} false; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500
12501echo 'void f(void){}' >conftest.c
12502if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
12503eval "cv_prog_cc_flag_$cache=yes"
12504else
12505eval "cv_prog_cc_flag_$cache=no"
12506fi
12507rm -f conftest conftest.o conftest.c
12508
12509fi
12510
12511if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513$as_echo "yes" >&6; }
12514:
12515CFLAGS="-O2 $CFLAGS"
12516else
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518$as_echo "no" >&6; }
12519:
12520
12521fi
12522
12523fi
12524
12525
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12527$as_echo_n "checking whether $CC supports -Wall... " >&6; }
12528cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12529if eval \${cv_prog_cc_flag_$cache+:} false; then :
12530  $as_echo_n "(cached) " >&6
12531else
12532
12533echo 'void f(void){}' >conftest.c
12534if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12535eval "cv_prog_cc_flag_$cache=yes"
12536else
12537eval "cv_prog_cc_flag_$cache=no"
12538fi
12539rm -f conftest conftest.o conftest.c
12540
12541fi
12542
12543if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545$as_echo "yes" >&6; }
12546:
12547CFLAGS="-Wall $CFLAGS"
12548else
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551:
12552
12553fi
12554
12555
12556
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
12558$as_echo_n "checking whether $CC supports -W... " >&6; }
12559cache=`echo W | sed 'y%.=/+-%___p_%'`
12560if eval \${cv_prog_cc_flag_$cache+:} false; then :
12561  $as_echo_n "(cached) " >&6
12562else
12563
12564echo 'void f(void){}' >conftest.c
12565if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12566eval "cv_prog_cc_flag_$cache=yes"
12567else
12568eval "cv_prog_cc_flag_$cache=no"
12569fi
12570rm -f conftest conftest.o conftest.c
12571
12572fi
12573
12574if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12576$as_echo "yes" >&6; }
12577:
12578CFLAGS="-W $CFLAGS"
12579else
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582:
12583
12584fi
12585
12586
12587
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12589$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12590cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12591if eval \${cv_prog_cc_flag_$cache+:} false; then :
12592  $as_echo_n "(cached) " >&6
12593else
12594
12595echo 'void f(void){}' >conftest.c
12596if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12597eval "cv_prog_cc_flag_$cache=yes"
12598else
12599eval "cv_prog_cc_flag_$cache=no"
12600fi
12601rm -f conftest conftest.o conftest.c
12602
12603fi
12604
12605if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607$as_echo "yes" >&6; }
12608:
12609CFLAGS="-Wwrite-strings $CFLAGS"
12610else
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613:
12614
12615fi
12616
12617
12618
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12620$as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12621cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12622if eval \${cv_prog_cc_flag_$cache+:} false; then :
12623  $as_echo_n "(cached) " >&6
12624else
12625
12626echo 'void f(void){}' >conftest.c
12627if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12628eval "cv_prog_cc_flag_$cache=yes"
12629else
12630eval "cv_prog_cc_flag_$cache=no"
12631fi
12632rm -f conftest conftest.o conftest.c
12633
12634fi
12635
12636if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638$as_echo "yes" >&6; }
12639:
12640CFLAGS="-Wstrict-prototypes $CFLAGS"
12641else
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644:
12645
12646fi
12647
12648#ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"])
12649
12650
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5
12652$as_echo_n "checking whether $CC supports -Wunused-function... " >&6; }
12653cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'`
12654if eval \${cv_prog_cc_flag_$cache+:} false; then :
12655  $as_echo_n "(cached) " >&6
12656else
12657
12658echo 'void f(void){}' >conftest.c
12659if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then
12660eval "cv_prog_cc_flag_$cache=yes"
12661else
12662eval "cv_prog_cc_flag_$cache=no"
12663fi
12664rm -f conftest conftest.o conftest.c
12665
12666fi
12667
12668if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12670$as_echo "yes" >&6; }
12671:
12672CFLAGS="-Wunused-function $CFLAGS"
12673else
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676:
12677
12678fi
12679
12680
12681
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
12683$as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
12684cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'`
12685if eval \${cv_prog_cc_flag_$cache+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688
12689echo 'void f(void){}' >conftest.c
12690if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then
12691eval "cv_prog_cc_flag_$cache=yes"
12692else
12693eval "cv_prog_cc_flag_$cache=no"
12694fi
12695rm -f conftest conftest.o conftest.c
12696
12697fi
12698
12699if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701$as_echo "yes" >&6; }
12702:
12703CFLAGS="-Wmissing-prototypes $CFLAGS"
12704else
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706$as_echo "no" >&6; }
12707:
12708
12709fi
12710
12711
12712for ac_header in getopt.h time.h
12713do :
12714  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12716"
12717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12718  cat >>confdefs.h <<_ACEOF
12719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720_ACEOF
12721
12722fi
12723
12724done
12725
12726
12727# MinGW32 tests
12728for ac_header in winsock2.h ws2tcpip.h
12729do :
12730  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12731ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12732"
12733if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12734  cat >>confdefs.h <<_ACEOF
12735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12736_ACEOF
12737
12738fi
12739
12740done
12741
12742# end mingw32 tests
12743
12744
12745
12746
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12748$as_echo_n "checking whether $CC supports -Werror... " >&6; }
12749cache=`echo Werror | sed 'y%.=/+-%___p_%'`
12750if eval \${cv_prog_cc_flag_$cache+:} false; then :
12751  $as_echo_n "(cached) " >&6
12752else
12753
12754echo 'void f(void){}' >conftest.c
12755if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12756eval "cv_prog_cc_flag_$cache=yes"
12757else
12758eval "cv_prog_cc_flag_$cache=no"
12759fi
12760rm -f conftest conftest.o conftest.c
12761
12762fi
12763
12764if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766$as_echo "yes" >&6; }
12767:
12768ERRFLAG="-Werror"
12769else
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772:
12773ERRFLAG="-errwarn"
12774fi
12775
12776
12777
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12779$as_echo_n "checking whether $CC supports -Wall... " >&6; }
12780cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12781if eval \${cv_prog_cc_flag_$cache+:} false; then :
12782  $as_echo_n "(cached) " >&6
12783else
12784
12785echo 'void f(void){}' >conftest.c
12786if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12787eval "cv_prog_cc_flag_$cache=yes"
12788else
12789eval "cv_prog_cc_flag_$cache=no"
12790fi
12791rm -f conftest conftest.o conftest.c
12792
12793fi
12794
12795if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797$as_echo "yes" >&6; }
12798:
12799ERRFLAG="$ERRFLAG -Wall"
12800else
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803:
12804ERRFLAG="$ERRFLAG -errfmt"
12805fi
12806
12807
12808
12809
12810
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12812$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12813cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12814if eval \${cv_prog_cc_flag_$cache+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817
12818echo 'void f(void){}' >conftest.c
12819if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12820eval "cv_prog_cc_flag_$cache=yes"
12821else
12822eval "cv_prog_cc_flag_$cache=no"
12823fi
12824rm -f conftest conftest.o conftest.c
12825
12826fi
12827
12828if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830$as_echo "yes" >&6; }
12831:
12832C99FLAG="-std=c99"
12833else
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
12836:
12837
12838fi
12839
12840
12841
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12843$as_echo_n "checking whether $CC supports -xc99... " >&6; }
12844cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12845if eval \${cv_prog_cc_flag_$cache+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848
12849echo 'void f(void){}' >conftest.c
12850if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12851eval "cv_prog_cc_flag_$cache=yes"
12852else
12853eval "cv_prog_cc_flag_$cache=no"
12854fi
12855rm -f conftest conftest.o conftest.c
12856
12857fi
12858
12859if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861$as_echo "yes" >&6; }
12862:
12863C99FLAG="-xc99"
12864else
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866$as_echo "no" >&6; }
12867:
12868
12869fi
12870
12871
12872for ac_header in getopt.h time.h
12873do :
12874  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12876"
12877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12878  cat >>confdefs.h <<_ACEOF
12879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880_ACEOF
12881
12882fi
12883
12884done
12885
12886
12887
12888
12889
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
12891$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12892cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
12893if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12894  $as_echo_n "(cached) " >&6
12895else
12896
12897echo '
12898#include "confdefs.h"
12899#include <stdlib.h>
12900#include <ctype.h>
12901#include <sys/time.h>
12902#ifdef HAVE_TIME_H
12903#include <time.h>
12904#endif
12905#include <unistd.h>
12906#include <netdb.h>
12907#ifdef HAVE_GETOPT_H
12908#include <getopt.h>
12909#endif
12910
12911int test() {
12912	int a;
12913	char **opts = NULL;
12914	struct timeval tv;
12915	char *t;
12916	time_t time = 0;
12917	char *buf = NULL;
12918	const char* str = NULL;
12919	struct msghdr msg;
12920	msg.msg_control = 0;
12921	t = ctime_r(&time, buf);
12922	tv.tv_usec = 10;
12923	srandom(32);
12924	a = getopt(2, opts, "a");
12925	a = isascii(32);
12926	str = gai_strerror(0);
12927	if(str && t && tv.tv_usec && msg.msg_control)
12928		a = 0;
12929	return a;
12930}
12931' > conftest.c
12932echo 'void f(){}' >>conftest.c
12933if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12934eval "cv_prog_cc_flag_needed_$cache=no"
12935else
12936
12937if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12938eval "cv_prog_cc_flag_needed_$cache=yes"
12939else
12940eval "cv_prog_cc_flag_needed_$cache=fail"
12941#echo 'Test with flag fails too!'
12942#cat conftest.c
12943#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12944#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12945#exit 1
12946fi
12947
12948fi
12949rm -f conftest conftest.c conftest.o
12950
12951fi
12952
12953if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955$as_echo "yes" >&6; }
12956:
12957CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
12958else
12959if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961$as_echo "no" >&6; }
12962#echo 'Test with flag is no!'
12963#cat conftest.c
12964#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12965#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12966#exit 1
12967:
12968
12969else
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12971$as_echo "failed" >&6; }
12972:
12973
12974fi
12975fi
12976
12977
12978
12979
12980
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
12982$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12983cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12984if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12985  $as_echo_n "(cached) " >&6
12986else
12987
12988echo '
12989#include "confdefs.h"
12990#include <stdlib.h>
12991#include <ctype.h>
12992#include <sys/time.h>
12993#ifdef HAVE_TIME_H
12994#include <time.h>
12995#endif
12996#include <unistd.h>
12997#include <netdb.h>
12998#ifdef HAVE_GETOPT_H
12999#include <getopt.h>
13000#endif
13001
13002int test() {
13003	int a;
13004	char **opts = NULL;
13005	struct timeval tv;
13006	char *t;
13007	time_t time = 0;
13008	char *buf = NULL;
13009	const char* str = NULL;
13010	struct msghdr msg;
13011	msg.msg_control = 0;
13012	t = ctime_r(&time, buf);
13013	tv.tv_usec = 10;
13014	srandom(32);
13015	a = getopt(2, opts, "a");
13016	a = isascii(32);
13017	str = gai_strerror(0);
13018	if(str && t && tv.tv_usec && msg.msg_control)
13019		a = 0;
13020	return a;
13021}
13022' > conftest.c
13023echo 'void f(){}' >>conftest.c
13024if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13025eval "cv_prog_cc_flag_needed_$cache=no"
13026else
13027
13028if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13029eval "cv_prog_cc_flag_needed_$cache=yes"
13030else
13031eval "cv_prog_cc_flag_needed_$cache=fail"
13032#echo 'Test with flag fails too!'
13033#cat conftest.c
13034#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13035#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13036#exit 1
13037fi
13038
13039fi
13040rm -f conftest conftest.c conftest.o
13041
13042fi
13043
13044if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046$as_echo "yes" >&6; }
13047:
13048CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
13049else
13050if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053#echo 'Test with flag is no!'
13054#cat conftest.c
13055#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13056#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13057#exit 1
13058:
13059
13060else
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13062$as_echo "failed" >&6; }
13063:
13064
13065fi
13066fi
13067
13068
13069
13070
13071
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
13073$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
13074cache=`$as_echo "$C99FLAG" | $as_tr_sh`
13075if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078
13079echo '
13080#include <stdbool.h>
13081#include <ctype.h>
13082int test() {
13083        int a = 0;
13084        return a;
13085}
13086' > conftest.c
13087echo 'void f(){}' >>conftest.c
13088if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13089eval "cv_prog_cc_flag_needed_$cache=no"
13090else
13091
13092if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
13093eval "cv_prog_cc_flag_needed_$cache=yes"
13094else
13095eval "cv_prog_cc_flag_needed_$cache=fail"
13096#echo 'Test with flag fails too!'
13097#cat conftest.c
13098#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13099#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13100#exit 1
13101fi
13102
13103fi
13104rm -f conftest conftest.c conftest.o
13105
13106fi
13107
13108if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13110$as_echo "yes" >&6; }
13111:
13112CFLAGS="$CFLAGS $C99FLAG"
13113else
13114if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116$as_echo "no" >&6; }
13117#echo 'Test with flag is no!'
13118#cat conftest.c
13119#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13120#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13121#exit 1
13122:
13123
13124else
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13126$as_echo "failed" >&6; }
13127:
13128
13129fi
13130fi
13131
13132
13133
13134
13135
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
13137$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
13138cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
13139if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142
13143echo '
13144#include <ctype.h>
13145
13146int test() {
13147        int a;
13148        a = isascii(32);
13149        return a;
13150}
13151' > conftest.c
13152echo 'void f(){}' >>conftest.c
13153if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13154eval "cv_prog_cc_flag_needed_$cache=no"
13155else
13156
13157if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13158eval "cv_prog_cc_flag_needed_$cache=yes"
13159else
13160eval "cv_prog_cc_flag_needed_$cache=fail"
13161#echo 'Test with flag fails too!'
13162#cat conftest.c
13163#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
13164#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
13165#exit 1
13166fi
13167
13168fi
13169rm -f conftest conftest.c conftest.o
13170
13171fi
13172
13173if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13175$as_echo "yes" >&6; }
13176:
13177CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
13178else
13179if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182#echo 'Test with flag is no!'
13183#cat conftest.c
13184#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
13185#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
13186#exit 1
13187:
13188
13189else
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13191$as_echo "failed" >&6; }
13192:
13193
13194fi
13195fi
13196
13197
13198
13199
13200
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
13202$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
13203cache=_D_GNU_SOURCE
13204if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207
13208echo '
13209#include <netinet/in.h>
13210
13211int test() {
13212        struct in6_pktinfo inf;
13213	int a = (int)sizeof(inf);
13214        return a;
13215}
13216' > conftest.c
13217echo 'void f(){}' >>conftest.c
13218if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13219eval "cv_prog_cc_flag_needed_$cache=no"
13220else
13221
13222if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13223eval "cv_prog_cc_flag_needed_$cache=yes"
13224else
13225eval "cv_prog_cc_flag_needed_$cache=fail"
13226#echo 'Test with flag fails too!'
13227#cat conftest.c
13228#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
13229#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
13230#exit 1
13231fi
13232
13233fi
13234rm -f conftest conftest.c conftest.o
13235
13236fi
13237
13238if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240$as_echo "yes" >&6; }
13241:
13242CFLAGS="$CFLAGS -D_GNU_SOURCE"
13243else
13244if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246$as_echo "no" >&6; }
13247#echo 'Test with flag is no!'
13248#cat conftest.c
13249#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
13250#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
13251#exit 1
13252:
13253
13254else
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13256$as_echo "failed" >&6; }
13257:
13258
13259fi
13260fi
13261
13262
13263# check again for GNU_SOURCE for setresgid. May fail if setresgid
13264# is not available at all. -D_FRSRESGID is to make this check unique.
13265# otherwise we would get the previous cached result.
13266
13267
13268
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
13270$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
13271cache=_D_GNU_SOURCE__D_FRSRESGID
13272if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13273  $as_echo_n "(cached) " >&6
13274else
13275
13276echo '
13277#include <unistd.h>
13278
13279int test() {
13280	int a = setresgid(0,0,0);
13281	a = setresuid(0,0,0);
13282        return a;
13283}
13284' > conftest.c
13285echo 'void f(){}' >>conftest.c
13286if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13287eval "cv_prog_cc_flag_needed_$cache=no"
13288else
13289
13290if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
13291eval "cv_prog_cc_flag_needed_$cache=yes"
13292else
13293eval "cv_prog_cc_flag_needed_$cache=fail"
13294#echo 'Test with flag fails too!'
13295#cat conftest.c
13296#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
13297#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
13298#exit 1
13299fi
13300
13301fi
13302rm -f conftest conftest.c conftest.o
13303
13304fi
13305
13306if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13308$as_echo "yes" >&6; }
13309:
13310CFLAGS="$CFLAGS -D_GNU_SOURCE"
13311else
13312if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315#echo 'Test with flag is no!'
13316#cat conftest.c
13317#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
13318#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
13319#exit 1
13320:
13321
13322else
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13324$as_echo "failed" >&6; }
13325:
13326
13327fi
13328fi
13329
13330
13331
13332
13333
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
13335$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
13336cache=_D_POSIX_C_SOURCE_200112
13337if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13338  $as_echo_n "(cached) " >&6
13339else
13340
13341echo '
13342#include "confdefs.h"
13343#ifdef HAVE_TIME_H
13344#include <time.h>
13345#endif
13346#include <netdb.h>
13347
13348int test() {
13349        int a = 0;
13350        char *t;
13351        time_t time = 0;
13352        char *buf = NULL;
13353	const char* str = NULL;
13354        t = ctime_r(&time, buf);
13355	str = gai_strerror(0);
13356	if(t && str)
13357		a = 0;
13358        return a;
13359}
13360' > conftest.c
13361echo 'void f(){}' >>conftest.c
13362if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13363eval "cv_prog_cc_flag_needed_$cache=no"
13364else
13365
13366if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
13367eval "cv_prog_cc_flag_needed_$cache=yes"
13368else
13369eval "cv_prog_cc_flag_needed_$cache=fail"
13370#echo 'Test with flag fails too!'
13371#cat conftest.c
13372#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
13373#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
13374#exit 1
13375fi
13376
13377fi
13378rm -f conftest conftest.c conftest.o
13379
13380fi
13381
13382if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13384$as_echo "yes" >&6; }
13385:
13386CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
13387else
13388if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
13391#echo 'Test with flag is no!'
13392#cat conftest.c
13393#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
13394#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
13395#exit 1
13396:
13397
13398else
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13400$as_echo "failed" >&6; }
13401:
13402
13403fi
13404fi
13405
13406
13407
13408
13409
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
13411$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
13412cache=_D__EXTENSIONS__
13413if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416
13417echo '
13418#include "confdefs.h"
13419#include <stdlib.h>
13420#include <ctype.h>
13421#include <sys/time.h>
13422#ifdef HAVE_TIME_H
13423#include <time.h>
13424#endif
13425#include <unistd.h>
13426#ifdef HAVE_GETOPT_H
13427#include <getopt.h>
13428#endif
13429
13430int test() {
13431        int a;
13432        char **opts = NULL;
13433        struct timeval tv;
13434        tv.tv_usec = 10;
13435        srandom(32);
13436        a = getopt(2, opts, "a");
13437        a = isascii(32);
13438	if(tv.tv_usec)
13439		a = 0;
13440        return a;
13441}
13442' > conftest.c
13443echo 'void f(){}' >>conftest.c
13444if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13445eval "cv_prog_cc_flag_needed_$cache=no"
13446else
13447
13448if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
13449eval "cv_prog_cc_flag_needed_$cache=yes"
13450else
13451eval "cv_prog_cc_flag_needed_$cache=fail"
13452#echo 'Test with flag fails too!'
13453#cat conftest.c
13454#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
13455#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
13456#exit 1
13457fi
13458
13459fi
13460rm -f conftest conftest.c conftest.o
13461
13462fi
13463
13464if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13466$as_echo "yes" >&6; }
13467:
13468CFLAGS="$CFLAGS -D__EXTENSIONS__"
13469else
13470if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
13473#echo 'Test with flag is no!'
13474#cat conftest.c
13475#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
13476#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
13477#exit 1
13478:
13479
13480else
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13482$as_echo "failed" >&6; }
13483:
13484
13485fi
13486fi
13487
13488
13489
13490
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13492$as_echo_n "checking for inline... " >&6; }
13493if ${ac_cv_c_inline+:} false; then :
13494  $as_echo_n "(cached) " >&6
13495else
13496  ac_cv_c_inline=no
13497for ac_kw in inline __inline__ __inline; do
13498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h.  */
13500#ifndef __cplusplus
13501typedef int foo_t;
13502static $ac_kw foo_t static_foo () {return 0; }
13503$ac_kw foo_t foo () {return 0; }
13504#endif
13505
13506_ACEOF
13507if ac_fn_c_try_compile "$LINENO"; then :
13508  ac_cv_c_inline=$ac_kw
13509fi
13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511  test "$ac_cv_c_inline" != no && break
13512done
13513
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13516$as_echo "$ac_cv_c_inline" >&6; }
13517
13518case $ac_cv_c_inline in
13519  inline | yes) ;;
13520  *)
13521    case $ac_cv_c_inline in
13522      no) ac_val=;;
13523      *) ac_val=$ac_cv_c_inline;;
13524    esac
13525    cat >>confdefs.h <<_ACEOF
13526#ifndef __cplusplus
13527#define inline $ac_val
13528#endif
13529_ACEOF
13530    ;;
13531esac
13532
13533ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13534if test "x$ac_cv_type_int8_t" = xyes; then :
13535
13536else
13537
13538cat >>confdefs.h <<_ACEOF
13539#define int8_t char
13540_ACEOF
13541
13542fi
13543
13544ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13545if test "x$ac_cv_type_int16_t" = xyes; then :
13546
13547else
13548
13549cat >>confdefs.h <<_ACEOF
13550#define int16_t short
13551_ACEOF
13552
13553fi
13554
13555ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13556if test "x$ac_cv_type_int32_t" = xyes; then :
13557
13558else
13559
13560cat >>confdefs.h <<_ACEOF
13561#define int32_t int
13562_ACEOF
13563
13564fi
13565
13566ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13567if test "x$ac_cv_type_int64_t" = xyes; then :
13568
13569else
13570
13571cat >>confdefs.h <<_ACEOF
13572#define int64_t long long
13573_ACEOF
13574
13575fi
13576
13577ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13578if test "x$ac_cv_type_uint8_t" = xyes; then :
13579
13580else
13581
13582cat >>confdefs.h <<_ACEOF
13583#define uint8_t unsigned char
13584_ACEOF
13585
13586fi
13587
13588ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13589if test "x$ac_cv_type_uint16_t" = xyes; then :
13590
13591else
13592
13593cat >>confdefs.h <<_ACEOF
13594#define uint16_t unsigned short
13595_ACEOF
13596
13597fi
13598
13599ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13600if test "x$ac_cv_type_uint32_t" = xyes; then :
13601
13602else
13603
13604cat >>confdefs.h <<_ACEOF
13605#define uint32_t unsigned int
13606_ACEOF
13607
13608fi
13609
13610ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13611if test "x$ac_cv_type_uint64_t" = xyes; then :
13612
13613else
13614
13615cat >>confdefs.h <<_ACEOF
13616#define uint64_t unsigned long long
13617_ACEOF
13618
13619fi
13620
13621
13622# my own checks
13623# Extract the first word of "doxygen", so it can be a program name with args.
13624set dummy doxygen; ac_word=$2
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626$as_echo_n "checking for $ac_word... " >&6; }
13627if ${ac_cv_prog_doxygen+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  if test -n "$doxygen"; then
13631  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636  IFS=$as_save_IFS
13637  test -z "$as_dir" && as_dir=.
13638    for ac_exec_ext in '' $ac_executable_extensions; do
13639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640    ac_cv_prog_doxygen="doxygen"
13641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642    break 2
13643  fi
13644done
13645  done
13646IFS=$as_save_IFS
13647
13648fi
13649fi
13650doxygen=$ac_cv_prog_doxygen
13651if test -n "$doxygen"; then
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13653$as_echo "$doxygen" >&6; }
13654else
13655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656$as_echo "no" >&6; }
13657fi
13658
13659
13660
13661# check to see if libraries are needed for these functions.
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13663$as_echo_n "checking for library containing socket... " >&6; }
13664if ${ac_cv_search_socket+:} false; then :
13665  $as_echo_n "(cached) " >&6
13666else
13667  ac_func_search_save_LIBS=$LIBS
13668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669/* end confdefs.h.  */
13670
13671/* Override any GCC internal prototype to avoid an error.
13672   Use char because int might match the return type of a GCC
13673   builtin and then its argument prototype would still apply.  */
13674#ifdef __cplusplus
13675extern "C"
13676#endif
13677char socket ();
13678int
13679main ()
13680{
13681return socket ();
13682  ;
13683  return 0;
13684}
13685_ACEOF
13686for ac_lib in '' socket; do
13687  if test -z "$ac_lib"; then
13688    ac_res="none required"
13689  else
13690    ac_res=-l$ac_lib
13691    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13692  fi
13693  if ac_fn_c_try_link "$LINENO"; then :
13694  ac_cv_search_socket=$ac_res
13695fi
13696rm -f core conftest.err conftest.$ac_objext \
13697    conftest$ac_exeext
13698  if ${ac_cv_search_socket+:} false; then :
13699  break
13700fi
13701done
13702if ${ac_cv_search_socket+:} false; then :
13703
13704else
13705  ac_cv_search_socket=no
13706fi
13707rm conftest.$ac_ext
13708LIBS=$ac_func_search_save_LIBS
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13711$as_echo "$ac_cv_search_socket" >&6; }
13712ac_res=$ac_cv_search_socket
13713if test "$ac_res" != no; then :
13714  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715
13716fi
13717
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13719$as_echo_n "checking for library containing inet_pton... " >&6; }
13720if ${ac_cv_search_inet_pton+:} false; then :
13721  $as_echo_n "(cached) " >&6
13722else
13723  ac_func_search_save_LIBS=$LIBS
13724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726
13727/* Override any GCC internal prototype to avoid an error.
13728   Use char because int might match the return type of a GCC
13729   builtin and then its argument prototype would still apply.  */
13730#ifdef __cplusplus
13731extern "C"
13732#endif
13733char inet_pton ();
13734int
13735main ()
13736{
13737return inet_pton ();
13738  ;
13739  return 0;
13740}
13741_ACEOF
13742for ac_lib in '' nsl; do
13743  if test -z "$ac_lib"; then
13744    ac_res="none required"
13745  else
13746    ac_res=-l$ac_lib
13747    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13748  fi
13749  if ac_fn_c_try_link "$LINENO"; then :
13750  ac_cv_search_inet_pton=$ac_res
13751fi
13752rm -f core conftest.err conftest.$ac_objext \
13753    conftest$ac_exeext
13754  if ${ac_cv_search_inet_pton+:} false; then :
13755  break
13756fi
13757done
13758if ${ac_cv_search_inet_pton+:} false; then :
13759
13760else
13761  ac_cv_search_inet_pton=no
13762fi
13763rm conftest.$ac_ext
13764LIBS=$ac_func_search_save_LIBS
13765fi
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13767$as_echo "$ac_cv_search_inet_pton" >&6; }
13768ac_res=$ac_cv_search_inet_pton
13769if test "$ac_res" != no; then :
13770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13771
13772fi
13773
13774
13775
13776
13777# Check whether --with-drill was given.
13778if test "${with_drill+set}" = set; then :
13779  withval=$with_drill;
13780else
13781  with_drill="no"
13782fi
13783
13784if test x_$with_drill != x_no ; then
13785	DRILL=drill
13786
13787	INSTALL_DRILL=install-drill
13788
13789	UNINSTALL_DRILL=uninstall-drill
13790
13791	CLEAN_DRILL=clean-drill
13792
13793	LINT_DRILL=lint-drill
13794
13795	if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13796		as_fn_error $? "
13797A config.h was detected in the drill subdirectory.
13798This does not work with the --with-drill option.
13799Please remove the config.h from the drill subdirectory
13800or do not use the --with-drill option." "$LINENO" 5
13801	fi
13802else
13803	DRILL=""
13804
13805	INSTALL_DRILL=""
13806
13807	UNINSTALL_DRILL=""
13808
13809	CLEAN_DRILL=""
13810
13811	LINT_DRILL=""
13812
13813fi
13814
13815
13816
13817# Check whether --with-examples was given.
13818if test "${with_examples+set}" = set; then :
13819  withval=$with_examples;
13820else
13821  with_examples="no"
13822fi
13823
13824if test x_$with_examples != x_no ; then
13825	EXAMPLES=examples
13826
13827	INSTALL_EXAMPLES=install-examples
13828
13829	UNINSTALL_EXAMPLES=uninstall-examples
13830
13831	CLEAN_EXAMPLES=clean-examples
13832
13833	LINT_EXAMPLES=lint-examples
13834
13835	if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13836		as_fn_error $? "
13837A config.h was detected in the examples subdirectory.
13838This does not work with the --with-examples option.
13839Please remove the config.h from the examples subdirectory
13840or do not use the --with-examples option." "$LINENO" 5
13841	fi
13842else
13843	EXAMPLES=""
13844
13845	INSTALL_EXAMPLES=""
13846
13847	UNINSTALL_EXAMPLES=""
13848
13849	CLEAN_EXAMPLES=""
13850
13851	LINT_EXAMPLES=""
13852
13853fi
13854
13855# add option to disable installation of ldns-config script
13856# Check whether --enable-ldns-config was given.
13857if test "${enable_ldns_config+set}" = set; then :
13858  enableval=$enable_ldns_config; enable_ldns_config=$enableval
13859else
13860  enable_ldns_config=yes
13861fi
13862
13863if test "x$enable_ldns_config" = xyes; then
13864	INSTALL_CONFIG=install-config
13865
13866	INSTALL_CONFIG_MANPAGE=install-config-manpage
13867
13868	UNINSTALL_CONFIG=uninstall-config
13869
13870	UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13871
13872else
13873	INSTALL_CONFIG=""
13874
13875	INSTALL_CONFIG_MANPAGE=""
13876
13877	UNINSTALL_CONFIG=""
13878
13879	UNINSTALL_CONFIG_MANPAGE=""
13880
13881fi
13882
13883# add option to disable library printing to stderr
13884# Check whether --enable-stderr-msgs was given.
13885if test "${enable_stderr_msgs+set}" = set; then :
13886  enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13887else
13888  enable_stderr_msgs=no
13889fi
13890
13891case "$enable_stderr_msgs" in
13892    no)         ;;
13893    *)
13894
13895cat >>confdefs.h <<_ACEOF
13896#define STDERR_MSGS 1
13897_ACEOF
13898
13899        ;;
13900esac
13901
13902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5
13903$as_echo_n "checking for poll(2)... " >&6; }
13904  if ${ax_cv_have_poll+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908/* end confdefs.h.  */
13909      #include <poll.h>
13910int
13911main ()
13912{
13913int rc; rc = poll((struct pollfd *)(0), 0, 0);
13914  ;
13915  return 0;
13916}
13917_ACEOF
13918if ac_fn_c_try_link "$LINENO"; then :
13919  ax_cv_have_poll=yes
13920else
13921  ax_cv_have_poll=no
13922fi
13923rm -f core conftest.err conftest.$ac_objext \
13924    conftest$ac_exeext conftest.$ac_ext
13925fi
13926
13927  if test "${ax_cv_have_poll}" = "yes"; then :
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929$as_echo "yes" >&6; }
13930   ax_config_feature_poll=yes
13931
13932else
13933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934$as_echo "no" >&6; }
13935   ax_config_feature_poll=no
13936
13937fi
13938
13939
13940# Check whether --enable-poll was given.
13941if test "${enable_poll+set}" = set; then :
13942  enableval=$enable_poll;
13943case "${enableval}" in
13944   yes)
13945     ax_config_feature_poll="yes"
13946     ;;
13947   no)
13948     ax_config_feature_poll="no"
13949     ;;
13950   *)
13951     as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5
13952     ;;
13953esac
13954
13955fi
13956
13957
13958if test "$ax_config_feature_poll" = yes; then :
13959     $as_echo "#define HAVE_POLL 1" >>confdefs.h
13960
13961
13962  if test "$ax_config_feature_verbose" = yes; then :
13963       { $as_echo "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5
13964$as_echo "$as_me: Feature poll is enabled" >&6;}
13965
13966fi
13967
13968else
13969
13970  if test "$ax_config_feature_verbose" = yes; then :
13971       { $as_echo "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5
13972$as_echo "$as_me: Feature poll is disabled" >&6;}
13973
13974fi
13975
13976fi
13977
13978
13979
13980
13981
13982# check for python
13983PYTHON_X_CFLAGS=""
13984ldns_with_pyldns=no
13985ldns_with_pyldnsx=no
13986
13987# Check whether --with-pyldns was given.
13988if test "${with_pyldns+set}" = set; then :
13989  withval=$with_pyldns;
13990else
13991   withval="no"
13992fi
13993
13994ldns_have_python=no
13995if test x_$withval != x_no; then
13996   # ===========================================================================
13997#      http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13998# ===========================================================================
13999#
14000# SYNOPSIS
14001#
14002#   AX_PYTHON_DEVEL([version])
14003#
14004# DESCRIPTION
14005#
14006#   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
14007#   in your configure.ac.
14008#
14009#   This macro checks for Python and tries to get the include path to
14010#   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
14011#   output variables. It also exports $(PYTHON_EXTRA_LIBS) and
14012#   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
14013#
14014#   You can search for some particular version of Python by passing a
14015#   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
14016#   note that you *have* to pass also an operator along with the version to
14017#   match, and pay special attention to the single quotes surrounding the
14018#   version number. Don't use "PYTHON_VERSION" for this: that environment
14019#   variable is declared as precious and thus reserved for the end-user.
14020#
14021#   This macro should work for all versions of Python >= 2.1.0. As an end
14022#   user, you can disable the check for the python version by setting the
14023#   PYTHON_NOVERSIONCHECK environment variable to something else than the
14024#   empty string.
14025#
14026#   If you need to use this macro for an older Python version, please
14027#   contact the authors. We're always open for feedback.
14028#
14029# LICENSE
14030#
14031#   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
14032#   Copyright (c) 2009 Alan W. Irwin
14033#   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
14034#   Copyright (c) 2009 Andrew Collier
14035#   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
14036#   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
14037#   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
14038#
14039#   This program is free software: you can redistribute it and/or modify it
14040#   under the terms of the GNU General Public License as published by the
14041#   Free Software Foundation, either version 3 of the License, or (at your
14042#   option) any later version.
14043#
14044#   This program is distributed in the hope that it will be useful, but
14045#   WITHOUT ANY WARRANTY; without even the implied warranty of
14046#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14047#   Public License for more details.
14048#
14049#   You should have received a copy of the GNU General Public License along
14050#   with this program. If not, see <http://www.gnu.org/licenses/>.
14051#
14052#   As a special exception, the respective Autoconf Macro's copyright owner
14053#   gives unlimited permission to copy, distribute and modify the configure
14054#   scripts that are the output of Autoconf when processing the Macro. You
14055#   need not follow the terms of the GNU General Public License when using
14056#   or distributing such scripts, even though portions of the text of the
14057#   Macro appear in them. The GNU General Public License (GPL) does govern
14058#   all other use of the material that constitutes the Autoconf Macro.
14059#
14060#   This special exception to the GPL applies to versions of the Autoconf
14061#   Macro released by the Autoconf Archive. When you make and distribute a
14062#   modified version of the Autoconf Macro, you may extend this special
14063#   exception to the GPL to apply to your modified version as well.
14064
14065#serial 16
14066
14067# This is what autoupdate's m4 run will expand.  It fires
14068# the warning (with _au_warn_XXX), outputs it into the
14069# updated configure.ac (with AC_DIAGNOSE), and then outputs
14070# the replacement expansion.
14071
14072
14073# This is an auxiliary macro that is also run when
14074# autoupdate runs m4.  It simply calls m4_warning, but
14075# we need a wrapper so that each warning is emitted only
14076# once.  We break the quoting in m4_warning's argument in
14077# order to expand this macro's arguments, not AU_DEFUN's.
14078
14079
14080# Finally, this is the expansion that is picked up by
14081# autoconf.  It tells the user to run autoupdate, and
14082# then outputs the replacement expansion.  We do not care
14083# about autoupdate's warning because that contains
14084# information on what to do *after* running autoupdate.
14085
14086
14087
14088   ac_save_LIBS="$LIBS"
14089
14090	#
14091	# Allow the use of a (user set) custom python version
14092	#
14093
14094
14095	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14096set dummy python$PYTHON_VERSION; ac_word=$2
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098$as_echo_n "checking for $ac_word... " >&6; }
14099if ${ac_cv_path_PYTHON+:} false; then :
14100  $as_echo_n "(cached) " >&6
14101else
14102  case $PYTHON in
14103  [\\/]* | ?:[\\/]*)
14104  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14105  ;;
14106  *)
14107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108for as_dir in $PATH
14109do
14110  IFS=$as_save_IFS
14111  test -z "$as_dir" && as_dir=.
14112    for ac_exec_ext in '' $ac_executable_extensions; do
14113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14114    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14116    break 2
14117  fi
14118done
14119  done
14120IFS=$as_save_IFS
14121
14122  ;;
14123esac
14124fi
14125PYTHON=$ac_cv_path_PYTHON
14126if test -n "$PYTHON"; then
14127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14128$as_echo "$PYTHON" >&6; }
14129else
14130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131$as_echo "no" >&6; }
14132fi
14133
14134
14135	if test -z "$PYTHON"; then
14136	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14137	   PYTHON_VERSION=""
14138	fi
14139
14140	#
14141	# Check for a version of Python >= 2.1.0
14142	#
14143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14144$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14145	ac_supports_python_ver=`$PYTHON -c "import sys; \
14146		ver = sys.version.split ()[0]; \
14147		print (ver >= '2.1.0')"`
14148	if test "$ac_supports_python_ver" != "True"; then
14149		if test -z "$PYTHON_NOVERSIONCHECK"; then
14150			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151$as_echo "no" >&6; }
14152			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14154as_fn_error $? "
14155This version of the AC_PYTHON_DEVEL macro
14156doesn't work properly with versions of Python before
141572.1.0. You may need to re-run configure, setting the
14158variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14159PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14160Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14161to something else than an empty string.
14162
14163See \`config.log' for more details" "$LINENO" 5; }
14164		else
14165			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14166$as_echo "skip at user request" >&6; }
14167		fi
14168	else
14169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170$as_echo "yes" >&6; }
14171	fi
14172
14173	#
14174	# if the macro parameter ``version'' is set, honour it
14175	#
14176	if test -n ">= '2.4.0'"; then
14177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
14178$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
14179		ac_supports_python_ver=`$PYTHON -c "import sys; \
14180			ver = sys.version.split ()[0]; \
14181			print (ver >= '2.4.0')"`
14182		if test "$ac_supports_python_ver" = "True"; then
14183		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14184$as_echo "yes" >&6; }
14185		else
14186			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187$as_echo "no" >&6; }
14188			as_fn_error $? "this package requires Python >= '2.4.0'.
14189If you have it installed, but it isn't the default Python
14190interpreter in your system path, please pass the PYTHON_VERSION
14191variable to configure. See \`\`configure --help'' for reference.
14192" "$LINENO" 5
14193			PYTHON_VERSION=""
14194		fi
14195	fi
14196
14197	#
14198	# Check if you have distutils, else fail
14199	#
14200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
14201$as_echo_n "checking for the distutils Python package... " >&6; }
14202	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
14203	if test -z "$ac_distutils_result"; then
14204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205$as_echo "yes" >&6; }
14206	else
14207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208$as_echo "no" >&6; }
14209		as_fn_error $? "cannot import Python module \"distutils\".
14210Please check your Python installation. The error was:
14211$ac_distutils_result" "$LINENO" 5
14212		PYTHON_VERSION=""
14213	fi
14214
14215	#
14216	# Check for Python include path
14217	#
14218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
14219$as_echo_n "checking for Python include path... " >&6; }
14220	if test -z "$PYTHON_CPPFLAGS"; then
14221		python_path=`$PYTHON -c "import distutils.sysconfig; \
14222			print (distutils.sysconfig.get_python_inc ());"`
14223		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
14224			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
14225		if test -n "${python_path}"; then
14226			if test "${plat_python_path}" != "${python_path}"; then
14227				python_path="-I$python_path -I$plat_python_path"
14228			else
14229				python_path="-I$python_path"
14230			fi
14231		fi
14232		PYTHON_CPPFLAGS=$python_path
14233	fi
14234	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
14235$as_echo "$PYTHON_CPPFLAGS" >&6; }
14236
14237
14238	#
14239	# Check for Python library path
14240	#
14241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
14242$as_echo_n "checking for Python library path... " >&6; }
14243	if test -z "$PYTHON_LDFLAGS"; then
14244		# (makes two attempts to ensure we've got a version number
14245		# from the interpreter)
14246		ac_python_version=`cat<<EOD | $PYTHON -
14247
14248# join all versioning strings, on some systems
14249# major/minor numbers could be in different list elements
14250from distutils.sysconfig import *
14251e = get_config_var('VERSION')
14252if e is not None:
14253	print(e)
14254EOD`
14255
14256		if test -z "$ac_python_version"; then
14257			if test -n "$PYTHON_VERSION"; then
14258				ac_python_version=$PYTHON_VERSION
14259			else
14260				ac_python_version=`$PYTHON -c "import sys; \
14261					print (sys.version[:3])"`
14262			fi
14263		fi
14264
14265		# Make the versioning information available to the compiler
14266
14267cat >>confdefs.h <<_ACEOF
14268#define HAVE_PYTHON "$ac_python_version"
14269_ACEOF
14270
14271
14272		# First, the library directory:
14273		ac_python_libdir=`cat<<EOD | $PYTHON -
14274
14275# There should be only one
14276import distutils.sysconfig
14277e = distutils.sysconfig.get_config_var('LIBDIR')
14278if e is not None:
14279	print (e)
14280EOD`
14281
14282		# Now, for the library:
14283		ac_python_library=`cat<<EOD | $PYTHON -
14284
14285import distutils.sysconfig
14286c = distutils.sysconfig.get_config_vars()
14287if 'LDVERSION' in c:
14288	print ('python'+c['LDVERSION'])
14289else:
14290	print ('python'+c['VERSION'])
14291EOD`
14292
14293		# This small piece shamelessly adapted from PostgreSQL python macro;
14294		# credits goes to momjian, I think. I'd like to put the right name
14295		# in the credits, if someone can point me in the right direction... ?
14296		#
14297		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
14298		then
14299			# use the official shared library
14300			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
14301			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
14302		else
14303			# old way: use libpython from python_configdir
14304			ac_python_libdir=`$PYTHON -c \
14305			  "from distutils.sysconfig import get_python_lib as f; \
14306			  import os; \
14307			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
14308			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
14309		fi
14310
14311		if test -z "PYTHON_LDFLAGS"; then
14312			as_fn_error $? "
14313  Cannot determine location of your Python DSO. Please check it was installed with
14314  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
14315			" "$LINENO" 5
14316		fi
14317	fi
14318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
14319$as_echo "$PYTHON_LDFLAGS" >&6; }
14320
14321
14322	#
14323	# Check for site packages
14324	#
14325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
14326$as_echo_n "checking for Python site-packages path... " >&6; }
14327	if test -z "$PYTHON_SITE_PKG"; then
14328		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
14329			print (distutils.sysconfig.get_python_lib(1,0));"`
14330	fi
14331	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
14332$as_echo "$PYTHON_SITE_PKG" >&6; }
14333
14334
14335	#
14336	# libraries which must be linked in when embedding
14337	#
14338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
14339$as_echo_n "checking python extra libraries... " >&6; }
14340	if test -z "$PYTHON_EXTRA_LIBS"; then
14341	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
14342                conf = distutils.sysconfig.get_config_var; \
14343                print (conf('LIBS'))"`
14344	fi
14345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
14346$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
14347
14348
14349	#
14350	# linking flags needed when embedding
14351	#
14352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
14353$as_echo_n "checking python extra linking flags... " >&6; }
14354	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
14355		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
14356			conf = distutils.sysconfig.get_config_var; \
14357			print (conf('LINKFORSHARED'))"`
14358	fi
14359	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
14360$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
14361
14362
14363	#
14364	# final check to see if everything compiles alright
14365	#
14366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
14367$as_echo_n "checking consistency of all components of python development environment... " >&6; }
14368	# save current global flags
14369	ac_save_LIBS="$LIBS"
14370	ac_save_CPPFLAGS="$CPPFLAGS"
14371	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
14372	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
14373	ac_ext=c
14374ac_cpp='$CPP $CPPFLAGS'
14375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381
14382		#include <Python.h>
14383int
14384main ()
14385{
14386Py_Initialize();
14387  ;
14388  return 0;
14389}
14390
14391_ACEOF
14392if ac_fn_c_try_link "$LINENO"; then :
14393  pythonexists=yes
14394else
14395  pythonexists=no
14396fi
14397rm -f core conftest.err conftest.$ac_objext \
14398    conftest$ac_exeext conftest.$ac_ext
14399	ac_ext=c
14400ac_cpp='$CPP $CPPFLAGS'
14401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403ac_compiler_gnu=$ac_cv_c_compiler_gnu
14404
14405	# turn back to default flags
14406	CPPFLAGS="$ac_save_CPPFLAGS"
14407	LIBS="$ac_save_LIBS"
14408
14409	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
14410$as_echo "$pythonexists" >&6; }
14411
14412        if test ! "x$pythonexists" = "xyes"; then
14413	   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14415as_fn_error $? "
14416  Could not link test program to Python. Maybe the main Python library has been
14417  installed in some non-standard library path. If so, pass it to configure,
14418  via the LDFLAGS environment variable.
14419  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
14420  ============================================================================
14421   ERROR!
14422   You probably have to install the development version of the Python package
14423   for your distribution.  The exact name of this package varies among them.
14424  ============================================================================
14425
14426See \`config.log' for more details" "$LINENO" 5; }
14427	  PYTHON_VERSION=""
14428	fi
14429
14430	#
14431	# all done!
14432	#
14433
14434   if test ! -z "$ac_python_version"; then
14435	ldns_have_python=yes
14436   fi
14437
14438   # pass additional Python 3 option to SWIG
14439   if test `$PYTHON -c "import sys; \
14440       ver = sys.version.split()[0]; \
14441       print(ver >= '3')"` = "True"; then
14442       SWIGPY3="-py3 -DPY3"
14443
14444   fi
14445
14446   # check for SWIG
14447   if test x_$ldns_have_python != x_no; then
14448        # ===========================================================================
14449#        http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
14450# ===========================================================================
14451#
14452# SYNOPSIS
14453#
14454#   AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
14455#
14456# DESCRIPTION
14457#
14458#   This macro searches for a SWIG installation on your system. If found,
14459#   then SWIG is AC_SUBST'd; if not found, then $SWIG is empty.  If SWIG is
14460#   found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
14461#
14462#   You can use the optional first argument to check if the version of the
14463#   available SWIG is greater than or equal to the value of the argument. It
14464#   should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
14465#   the first N is mandatory.) If the version argument is given (e.g.
14466#   1.3.17), AX_PKG_SWIG checks that the swig package is this version number
14467#   or higher.
14468#
14469#   As usual, action-if-found is executed if SWIG is found, otherwise
14470#   action-if-not-found is executed.
14471#
14472#   In configure.in, use as:
14473#
14474#     AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
14475#     AX_SWIG_ENABLE_CXX
14476#     AX_SWIG_MULTI_MODULE_SUPPORT
14477#     AX_SWIG_PYTHON
14478#
14479# LICENSE
14480#
14481#   Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
14482#   Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
14483#   Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
14484#   Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
14485#   Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
14486#
14487#   This program is free software; you can redistribute it and/or modify it
14488#   under the terms of the GNU General Public License as published by the
14489#   Free Software Foundation; either version 2 of the License, or (at your
14490#   option) any later version.
14491#
14492#   This program is distributed in the hope that it will be useful, but
14493#   WITHOUT ANY WARRANTY; without even the implied warranty of
14494#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14495#   Public License for more details.
14496#
14497#   You should have received a copy of the GNU General Public License along
14498#   with this program. If not, see <http://www.gnu.org/licenses/>.
14499#
14500#   As a special exception, the respective Autoconf Macro's copyright owner
14501#   gives unlimited permission to copy, distribute and modify the configure
14502#   scripts that are the output of Autoconf when processing the Macro. You
14503#   need not follow the terms of the GNU General Public License when using
14504#   or distributing such scripts, even though portions of the text of the
14505#   Macro appear in them. The GNU General Public License (GPL) does govern
14506#   all other use of the material that constitutes the Autoconf Macro.
14507#
14508#   This special exception to the GPL applies to versions of the Autoconf
14509#   Macro released by the Autoconf Archive. When you make and distribute a
14510#   modified version of the Autoconf Macro, you may extend this special
14511#   exception to the GPL to apply to your modified version as well.
14512
14513#serial 8
14514
14515
14516
14517
14518        # check for >=SWIG-2.0.4 if Python 3.2 used
14519        if test `$PYTHON -c "import sys; \
14520            ver = sys.version.split()[0]; \
14521            print(ver >= '3.2')"` = "True"; then
14522
14523        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
14524        for ac_prog in swig2.0 swig
14525do
14526  # Extract the first word of "$ac_prog", so it can be a program name with args.
14527set dummy $ac_prog; ac_word=$2
14528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529$as_echo_n "checking for $ac_word... " >&6; }
14530if ${ac_cv_path_SWIG+:} false; then :
14531  $as_echo_n "(cached) " >&6
14532else
14533  case $SWIG in
14534  [\\/]* | ?:[\\/]*)
14535  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14536  ;;
14537  *)
14538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539for as_dir in $PATH
14540do
14541  IFS=$as_save_IFS
14542  test -z "$as_dir" && as_dir=.
14543    for ac_exec_ext in '' $ac_executable_extensions; do
14544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547    break 2
14548  fi
14549done
14550  done
14551IFS=$as_save_IFS
14552
14553  ;;
14554esac
14555fi
14556SWIG=$ac_cv_path_SWIG
14557if test -n "$SWIG"; then
14558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14559$as_echo "$SWIG" >&6; }
14560else
14561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562$as_echo "no" >&6; }
14563fi
14564
14565
14566  test -n "$SWIG" && break
14567done
14568
14569        if test -z "$SWIG" ; then
14570                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14571        elif test -n "2.0.4" ; then
14572                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14573$as_echo_n "checking SWIG version... " >&6; }
14574                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'`
14575                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14576$as_echo "$swig_version" >&6; }
14577                if test -n "$swig_version" ; then
14578                        # Calculate the required version number components
14579                        required=2.0.4
14580                        required_major=`echo $required | sed 's/[^0-9].*//'`
14581                        if test -z "$required_major" ; then
14582                                required_major=0
14583                        fi
14584                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14585                        required_minor=`echo $required | sed 's/[^0-9].*//'`
14586                        if test -z "$required_minor" ; then
14587                                required_minor=0
14588                        fi
14589                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14590                        required_patch=`echo $required | sed 's/[^0-9].*//'`
14591                        if test -z "$required_patch" ; then
14592                                required_patch=0
14593                        fi
14594                        # Calculate the available version number components
14595                        available=$swig_version
14596                        available_major=`echo $available | sed 's/[^0-9].*//'`
14597                        if test -z "$available_major" ; then
14598                                available_major=0
14599                        fi
14600                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14601                        available_minor=`echo $available | sed 's/[^0-9].*//'`
14602                        if test -z "$available_minor" ; then
14603                                available_minor=0
14604                        fi
14605                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14606                        available_patch=`echo $available | sed 's/[^0-9].*//'`
14607                        if test -z "$available_patch" ; then
14608                                available_patch=0
14609                        fi
14610                        # Convert the version tuple into a single number for easier comparison.
14611                        # Using base 100 should be safe since SWIG internally uses BCD values
14612                        # to encode its version number.
14613                        required_swig_vernum=`expr $required_major \* 10000 \
14614                            \+ $required_minor \* 100 \+ $required_patch`
14615                        available_swig_vernum=`expr $available_major \* 10000 \
14616                            \+ $available_minor \* 100 \+ $available_patch`
14617
14618                        if test $available_swig_vernum -lt $required_swig_vernum; then
14619                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&5
14620$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&2;}
14621                                SWIG=''
14622                                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14623                        else
14624                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14625$as_echo_n "checking for SWIG library... " >&6; }
14626                                SWIG_LIB=`$SWIG -swiglib`
14627                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14628$as_echo "$SWIG_LIB" >&6; }
14629
14630                        fi
14631                else
14632                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14633$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14634                        SWIG=''
14635                        as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14636                fi
14637        fi
14638
14639
14640        else
14641
14642        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
14643        for ac_prog in swig2.0 swig
14644do
14645  # Extract the first word of "$ac_prog", so it can be a program name with args.
14646set dummy $ac_prog; ac_word=$2
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14648$as_echo_n "checking for $ac_word... " >&6; }
14649if ${ac_cv_path_SWIG+:} false; then :
14650  $as_echo_n "(cached) " >&6
14651else
14652  case $SWIG in
14653  [\\/]* | ?:[\\/]*)
14654  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14655  ;;
14656  *)
14657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14658for as_dir in $PATH
14659do
14660  IFS=$as_save_IFS
14661  test -z "$as_dir" && as_dir=.
14662    for ac_exec_ext in '' $ac_executable_extensions; do
14663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14664    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14666    break 2
14667  fi
14668done
14669  done
14670IFS=$as_save_IFS
14671
14672  ;;
14673esac
14674fi
14675SWIG=$ac_cv_path_SWIG
14676if test -n "$SWIG"; then
14677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14678$as_echo "$SWIG" >&6; }
14679else
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
14682fi
14683
14684
14685  test -n "$SWIG" && break
14686done
14687
14688        if test -z "$SWIG" ; then
14689                :
14690        elif test -n "" ; then
14691                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14692$as_echo_n "checking SWIG version... " >&6; }
14693                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'`
14694                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14695$as_echo "$swig_version" >&6; }
14696                if test -n "$swig_version" ; then
14697                        # Calculate the required version number components
14698                        required=
14699                        required_major=`echo $required | sed 's/[^0-9].*//'`
14700                        if test -z "$required_major" ; then
14701                                required_major=0
14702                        fi
14703                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14704                        required_minor=`echo $required | sed 's/[^0-9].*//'`
14705                        if test -z "$required_minor" ; then
14706                                required_minor=0
14707                        fi
14708                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14709                        required_patch=`echo $required | sed 's/[^0-9].*//'`
14710                        if test -z "$required_patch" ; then
14711                                required_patch=0
14712                        fi
14713                        # Calculate the available version number components
14714                        available=$swig_version
14715                        available_major=`echo $available | sed 's/[^0-9].*//'`
14716                        if test -z "$available_major" ; then
14717                                available_major=0
14718                        fi
14719                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14720                        available_minor=`echo $available | sed 's/[^0-9].*//'`
14721                        if test -z "$available_minor" ; then
14722                                available_minor=0
14723                        fi
14724                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14725                        available_patch=`echo $available | sed 's/[^0-9].*//'`
14726                        if test -z "$available_patch" ; then
14727                                available_patch=0
14728                        fi
14729                        # Convert the version tuple into a single number for easier comparison.
14730                        # Using base 100 should be safe since SWIG internally uses BCD values
14731                        # to encode its version number.
14732                        required_swig_vernum=`expr $required_major \* 10000 \
14733                            \+ $required_minor \* 100 \+ $required_patch`
14734                        available_swig_vernum=`expr $available_major \* 10000 \
14735                            \+ $available_minor \* 100 \+ $available_patch`
14736
14737                        if test $available_swig_vernum -lt $required_swig_vernum; then
14738                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
14739$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
14740                                SWIG=''
14741
14742                        else
14743                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14744$as_echo_n "checking for SWIG library... " >&6; }
14745                                SWIG_LIB=`$SWIG -swiglib`
14746                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14747$as_echo "$SWIG_LIB" >&6; }
14748
14749                        fi
14750                else
14751                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14752$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14753                        SWIG=''
14754
14755                fi
14756        fi
14757
14758
14759        fi
14760
14761	if test ! -x "$SWIG"; then
14762		as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14763	else
14764
14765$as_echo "#define HAVE_SWIG 1" >>confdefs.h
14766
14767		PYLDNS="pyldns"
14768
14769		swig="$SWIG"
14770
14771		ldns_with_pyldns=yes
14772	fi
14773   else
14774	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14775$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14776   fi
14777
14778   # xtra cflags for pyldns
14779   if test x_$ldns_have_python != x_no; then
14780
14781
14782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14783$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14784cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14785if eval \${cv_prog_cc_flag_$cache+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788
14789echo 'void f(void){}' >conftest.c
14790if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14791eval "cv_prog_cc_flag_$cache=yes"
14792else
14793eval "cv_prog_cc_flag_$cache=no"
14794fi
14795rm -f conftest conftest.o conftest.c
14796
14797fi
14798
14799if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14801$as_echo "yes" >&6; }
14802:
14803PYTHON_X_CFLAGS="-fno-strict-aliasing"
14804else
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806$as_echo "no" >&6; }
14807:
14808
14809fi
14810
14811
14812
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14814$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14815cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14816if eval \${cv_prog_cc_flag_$cache+:} false; then :
14817  $as_echo_n "(cached) " >&6
14818else
14819
14820echo 'void f(void){}' >conftest.c
14821if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14822eval "cv_prog_cc_flag_$cache=yes"
14823else
14824eval "cv_prog_cc_flag_$cache=no"
14825fi
14826rm -f conftest conftest.o conftest.c
14827
14828fi
14829
14830if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14832$as_echo "yes" >&6; }
14833:
14834PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14835else
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14837$as_echo "no" >&6; }
14838:
14839
14840fi
14841
14842
14843
14844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14845$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14846cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14847if eval \${cv_prog_cc_flag_$cache+:} false; then :
14848  $as_echo_n "(cached) " >&6
14849else
14850
14851echo 'void f(void){}' >conftest.c
14852if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14853eval "cv_prog_cc_flag_$cache=yes"
14854else
14855eval "cv_prog_cc_flag_$cache=no"
14856fi
14857rm -f conftest conftest.o conftest.c
14858
14859fi
14860
14861if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14863$as_echo "yes" >&6; }
14864:
14865PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14866else
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868$as_echo "no" >&6; }
14869:
14870
14871fi
14872
14873
14874
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14876$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14877cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14878if eval \${cv_prog_cc_flag_$cache+:} false; then :
14879  $as_echo_n "(cached) " >&6
14880else
14881
14882echo 'void f(void){}' >conftest.c
14883if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14884eval "cv_prog_cc_flag_$cache=yes"
14885else
14886eval "cv_prog_cc_flag_$cache=no"
14887fi
14888rm -f conftest conftest.o conftest.c
14889
14890fi
14891
14892if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14894$as_echo "yes" >&6; }
14895:
14896PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14897else
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899$as_echo "no" >&6; }
14900:
14901
14902fi
14903
14904   fi
14905fi
14906
14907
14908# Check for pyldnsx
14909
14910# Check whether --with-pyldnsx was given.
14911if test "${with_pyldnsx+set}" = set; then :
14912  withval=$with_pyldnsx;
14913else
14914   withval="with_pyldns"
14915fi
14916
14917if test x_$withval != x_no; then
14918  if test x_$ldns_with_pyldns != x_no; then
14919    PYLDNSX="pyldnsx"
14920
14921    ldns_with_pyldnsx=yes
14922  else
14923    if test x_$withval != x_with_pyldns; then
14924      as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14925    fi
14926  fi
14927fi
14928
14929if test x_$ldns_with_pyldns != x_no; then
14930  PYLDNSINST="install-pyldns"
14931  PYLDNSUNINST="uninstall-pyldns"
14932
14933else
14934  PYLDNSINST=""
14935  PYLDNSUNINST=""
14936
14937fi
14938if test x_$ldns_with_pyldnsx != x_no; then
14939  PYLDNSXINST="install-pyldnsx"
14940  PYLDNSXUNINST="uninstall-pyldnsx"
14941
14942else
14943  PYLDNSXINST=""
14944  PYLDNSXUNINST=""
14945
14946fi
14947
14948# check for perl
14949ldns_with_p5_dns_ldns=no
14950
14951# Check whether --with-p5-dns-ldns was given.
14952if test "${with_p5_dns_ldns+set}" = set; then :
14953  withval=$with_p5_dns_ldns;
14954else
14955   withval="no"
14956fi
14957
14958ldns_have_perl=no
14959if test x_$withval != x_no; then
14960   # Extract the first word of "perl", so it can be a program name with args.
14961set dummy perl; ac_word=$2
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14963$as_echo_n "checking for $ac_word... " >&6; }
14964if ${ac_cv_path_PERL+:} false; then :
14965  $as_echo_n "(cached) " >&6
14966else
14967  case $PERL in
14968  [\\/]* | ?:[\\/]*)
14969  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14970  ;;
14971  *)
14972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973for as_dir in $PATH
14974do
14975  IFS=$as_save_IFS
14976  test -z "$as_dir" && as_dir=.
14977    for ac_exec_ext in '' $ac_executable_extensions; do
14978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14979    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14981    break 2
14982  fi
14983done
14984  done
14985IFS=$as_save_IFS
14986
14987  ;;
14988esac
14989fi
14990PERL=$ac_cv_path_PERL
14991if test -n "$PERL"; then
14992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14993$as_echo "$PERL" >&6; }
14994else
14995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996$as_echo "no" >&6; }
14997fi
14998
14999
15000   if test -z "$PERL"; then
15001      as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
15002   fi
15003   P5_DNS_LDNS="p5-dns-ldns"
15004   TEST_P5_DNS_LDNS="test-p5-dns-ldns"
15005   INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
15006   UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
15007   CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
15008
15009else
15010   P5_DNS_LDNS=""
15011   TEST_P5_DNS_LDNS=""
15012   INSTALL_P5_DNS_LDNS=""
15013   UNINSTALL_P5_DNS_LDNS=""
15014   CLEAN_P5_DNS_LDNS=""
15015
15016fi
15017
15018# Use libtool
15019
15020# skip these tests, we do not need them.
15021
15022
15023
15024
15025
15026
15027
15028
15029# always use ./libtool unless override from commandline (libtool=mylibtool)
15030if test -z "$libtool"; then
15031	libtool="./libtool"
15032fi
15033
15034# avoid libtool max commandline length test on systems that fork slowly.
15035
15036if echo "$host_os" | grep "sunos4" >/dev/null; then
15037	lt_cv_sys_max_cmd_len=32750;
15038fi
15039if test -n "$ac_tool_prefix"; then
15040  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15041set dummy ${ac_tool_prefix}ar; ac_word=$2
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15043$as_echo_n "checking for $ac_word... " >&6; }
15044if ${ac_cv_path_AR+:} false; then :
15045  $as_echo_n "(cached) " >&6
15046else
15047  case $AR in
15048  [\\/]* | ?:[\\/]*)
15049  ac_cv_path_AR="$AR" # Let the user override the test with a path.
15050  ;;
15051  *)
15052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15053for as_dir in $PATH
15054do
15055  IFS=$as_save_IFS
15056  test -z "$as_dir" && as_dir=.
15057    for ac_exec_ext in '' $ac_executable_extensions; do
15058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15059    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
15060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15061    break 2
15062  fi
15063done
15064  done
15065IFS=$as_save_IFS
15066
15067  ;;
15068esac
15069fi
15070AR=$ac_cv_path_AR
15071if test -n "$AR"; then
15072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15073$as_echo "$AR" >&6; }
15074else
15075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076$as_echo "no" >&6; }
15077fi
15078
15079
15080fi
15081if test -z "$ac_cv_path_AR"; then
15082  ac_pt_AR=$AR
15083  # Extract the first word of "ar", so it can be a program name with args.
15084set dummy ar; ac_word=$2
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15086$as_echo_n "checking for $ac_word... " >&6; }
15087if ${ac_cv_path_ac_pt_AR+:} false; then :
15088  $as_echo_n "(cached) " >&6
15089else
15090  case $ac_pt_AR in
15091  [\\/]* | ?:[\\/]*)
15092  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
15093  ;;
15094  *)
15095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096for as_dir in $PATH
15097do
15098  IFS=$as_save_IFS
15099  test -z "$as_dir" && as_dir=.
15100    for ac_exec_ext in '' $ac_executable_extensions; do
15101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15102    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
15103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15104    break 2
15105  fi
15106done
15107  done
15108IFS=$as_save_IFS
15109
15110  ;;
15111esac
15112fi
15113ac_pt_AR=$ac_cv_path_ac_pt_AR
15114if test -n "$ac_pt_AR"; then
15115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
15116$as_echo "$ac_pt_AR" >&6; }
15117else
15118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119$as_echo "no" >&6; }
15120fi
15121
15122  if test "x$ac_pt_AR" = x; then
15123    AR="false"
15124  else
15125    case $cross_compiling:$ac_tool_warned in
15126yes:)
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15129ac_tool_warned=yes ;;
15130esac
15131    AR=$ac_pt_AR
15132  fi
15133else
15134  AR="$ac_cv_path_AR"
15135fi
15136
15137if test $AR = false; then
15138	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
15139fi
15140
15141
15142
15143
15144
15145
15146tmp_CPPFLAGS=$CPPFLAGS
15147tmp_LDFLAGS=$LDFLAGS
15148tmp_LIBS=$LIBS
15149
15150
15151
15152# Check whether --with-ssl was given.
15153if test "${with_ssl+set}" = set; then :
15154  withval=$with_ssl;
15155
15156else
15157
15158            withval="yes"
15159
15160fi
15161
15162
15163    withval=$withval
15164    if test x_$withval != x_no; then
15165        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
15166$as_echo_n "checking for SSL... " >&6; }
15167        if test x_$withval = x_ -o x_$withval = x_yes; then
15168            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
15169        fi
15170        for dir in $withval; do
15171            ssldir="$dir"
15172            if test -f "$dir/include/openssl/ssl.h"; then
15173                found_ssl="yes"
15174
15175cat >>confdefs.h <<_ACEOF
15176#define HAVE_SSL /**/
15177_ACEOF
15178
15179                                if test "$ssldir" != "/usr"; then
15180                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
15181                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
15182                fi
15183                break;
15184            fi
15185        done
15186        if test x_$found_ssl != x_yes; then
15187            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
15188        else
15189            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
15190$as_echo "found in $ssldir" >&6; }
15191            HAVE_SSL=yes
15192                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
15193                LDFLAGS="$LDFLAGS -L$ssldir/lib"
15194                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
15195
15196	if test "x$enable_rpath" = xyes; then
15197		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
15198			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
15199		fi
15200	fi
15201
15202            fi
15203
15204            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
15205$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
15206            LIBS="$LIBS -lcrypto"
15207            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
15208            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209/* end confdefs.h.  */
15210
15211int
15212main ()
15213{
15214
15215                int HMAC_Update(void);
15216                (void)HMAC_Update();
15217
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_link "$LINENO"; then :
15223
15224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225$as_echo "yes" >&6; }
15226
15227$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15228
15229
15230else
15231
15232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233$as_echo "no" >&6; }
15234                # check if -lwsock32 or -lgdi32 are needed.
15235                BAKLIBS="$LIBS"
15236                BAKSSLLIBS="$LIBSSL_LIBS"
15237                LIBS="$LIBS -lgdi32"
15238                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
15239                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
15240$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
15241                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242/* end confdefs.h.  */
15243
15244int
15245main ()
15246{
15247
15248                    int HMAC_Update(void);
15249                    (void)HMAC_Update();
15250
15251  ;
15252  return 0;
15253}
15254_ACEOF
15255if ac_fn_c_try_link "$LINENO"; then :
15256
15257
15258$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15259
15260                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261$as_echo "yes" >&6; }
15262
15263else
15264
15265                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266$as_echo "no" >&6; }
15267                    LIBS="$BAKLIBS"
15268                    LIBSSL_LIBS="$BAKSSLLIBS"
15269                    LIBS="$LIBS -ldl"
15270                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
15271                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
15272$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
15273                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h.  */
15275
15276int
15277main ()
15278{
15279
15280                        int HMAC_Update(void);
15281                        (void)HMAC_Update();
15282
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
15288
15289
15290$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15291
15292                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293$as_echo "yes" >&6; }
15294
15295else
15296
15297                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298$as_echo "no" >&6; }
15299                        LIBS="$BAKLIBS"
15300                        LIBSSL_LIBS="$BAKSSLLIBS"
15301                        LIBS="$LIBS -ldl -pthread"
15302                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
15303                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
15304$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
15305                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307
15308int
15309main ()
15310{
15311
15312                            int HMAC_Update(void);
15313                            (void)HMAC_Update();
15314
15315  ;
15316  return 0;
15317}
15318_ACEOF
15319if ac_fn_c_try_link "$LINENO"; then :
15320
15321
15322$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15323
15324                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15325$as_echo "yes" >&6; }
15326
15327else
15328
15329                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15330$as_echo "no" >&6; }
15331                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
15332
15333fi
15334rm -f core conftest.err conftest.$ac_objext \
15335    conftest$ac_exeext conftest.$ac_ext
15336
15337fi
15338rm -f core conftest.err conftest.$ac_objext \
15339    conftest$ac_exeext conftest.$ac_ext
15340
15341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343    conftest$ac_exeext conftest.$ac_ext
15344
15345fi
15346rm -f core conftest.err conftest.$ac_objext \
15347    conftest$ac_exeext conftest.$ac_ext
15348        fi
15349
15350
15351    fi
15352for ac_header in openssl/ssl.h
15353do :
15354  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
15355"
15356if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15357  cat >>confdefs.h <<_ACEOF
15358#define HAVE_OPENSSL_SSL_H 1
15359_ACEOF
15360
15361fi
15362
15363done
15364
15365for ac_header in openssl/err.h
15366do :
15367  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
15368"
15369if test "x$ac_cv_header_openssl_err_h" = xyes; then :
15370  cat >>confdefs.h <<_ACEOF
15371#define HAVE_OPENSSL_ERR_H 1
15372_ACEOF
15373
15374fi
15375
15376done
15377
15378for ac_header in openssl/rand.h
15379do :
15380  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
15381"
15382if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
15383  cat >>confdefs.h <<_ACEOF
15384#define HAVE_OPENSSL_RAND_H 1
15385_ACEOF
15386
15387fi
15388
15389done
15390
15391
15392
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
15394$as_echo_n "checking for LibreSSL... " >&6; }
15395if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
15396	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15397$as_echo "yes" >&6; }
15398
15399$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
15400
15401else
15402	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403$as_echo "no" >&6; }
15404fi
15405for ac_func in EVP_sha256 EVP_sha384 EVP_sha512 ENGINE_load_cryptodev EVP_PKEY_keygen ECDSA_SIG_get0 EVP_MD_CTX_new EVP_PKEY_base_id DSA_SIG_set0 DSA_SIG_get0 EVP_dss1 DSA_get0_pqg DSA_get0_key
15406do :
15407  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15409if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15410  cat >>confdefs.h <<_ACEOF
15411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15412_ACEOF
15413
15414fi
15415done
15416
15417
15418# for macosx, see if glibtool exists and use that
15419# BSD's need to know the version...
15420#AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
15421#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
15422
15423# Check whether --enable-sha2 was given.
15424if test "${enable_sha2+set}" = set; then :
15425  enableval=$enable_sha2;
15426fi
15427
15428case "$enable_sha2" in
15429    no)
15430        ;;
15431    yes|*)
15432        if test "x$HAVE_SSL" != "xyes"; then
15433            as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
15434        fi
15435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
15436$as_echo_n "checking for SHA256 and SHA512... " >&6; }
15437	ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
15438if test "x$ac_cv_func_SHA256_Init" = xyes; then :
15439
15440else
15441
15442		as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
15443
15444fi
15445
15446
15447cat >>confdefs.h <<_ACEOF
15448#define USE_SHA2 1
15449_ACEOF
15450
15451        ;;
15452esac
15453
15454# check wether gost also works
15455
15456# Check whether --enable-gost was given.
15457if test "${enable_gost+set}" = set; then :
15458  enableval=$enable_gost;
15459fi
15460
15461case "$enable_gost" in
15462    no)
15463        ;;
15464    *)          if test "x$HAVE_SSL" != "xyes"; then
15465            as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
15466        fi
15467        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
15468$as_echo_n "checking for GOST... " >&6; }
15469        ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
15470if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
15471
15472else
15473  as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
15474fi
15475
15476        ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
15477if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
15478
15479else
15480  as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
15481fi
15482
15483
15484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
15485$as_echo_n "checking if GOST works... " >&6; }
15486if test c${cross_compiling} = cno; then
15487BAKCFLAGS="$CFLAGS"
15488if test -n "$ssldir"; then
15489	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
15490fi
15491if test "$cross_compiling" = yes; then :
15492  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494as_fn_error $? "cannot run test program while cross compiling
15495See \`config.log' for more details" "$LINENO" 5; }
15496else
15497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498/* end confdefs.h.  */
15499
15500#include <string.h>
15501#include <openssl/ssl.h>
15502#include <openssl/evp.h>
15503#include <openssl/engine.h>
15504#include <openssl/conf.h>
15505/* routine to load gost (from sldns) */
15506int load_gost_id(void)
15507{
15508	static int gost_id = 0;
15509	const EVP_PKEY_ASN1_METHOD* meth;
15510	ENGINE* e;
15511
15512	if(gost_id) return gost_id;
15513
15514	/* see if configuration loaded gost implementation from other engine*/
15515	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
15516	if(meth) {
15517		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
15518		return gost_id;
15519	}
15520
15521	/* see if engine can be loaded already */
15522	e = ENGINE_by_id("gost");
15523	if(!e) {
15524		/* load it ourself, in case statically linked */
15525		ENGINE_load_builtin_engines();
15526		ENGINE_load_dynamic();
15527		e = ENGINE_by_id("gost");
15528	}
15529	if(!e) {
15530		/* no gost engine in openssl */
15531		return 0;
15532	}
15533	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
15534		ENGINE_finish(e);
15535		ENGINE_free(e);
15536		return 0;
15537	}
15538
15539	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
15540	if(!meth) {
15541		/* algo not found */
15542		ENGINE_finish(e);
15543		ENGINE_free(e);
15544		return 0;
15545	}
15546	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
15547	return gost_id;
15548}
15549int main(void) {
15550	EVP_MD_CTX* ctx;
15551	const EVP_MD* md;
15552	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
15553	const char* str = "Hello world";
15554	const unsigned char check[] = {
15555		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
15556		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
15557		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
15558		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
15559	};
15560	OPENSSL_config(NULL);
15561	(void)load_gost_id();
15562	md = EVP_get_digestbyname("md_gost94");
15563	if(!md) return 1;
15564	memset(digest, 0, sizeof(digest));
15565	ctx = EVP_MD_CTX_create();
15566	if(!ctx) return 2;
15567	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
15568	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
15569	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
15570	/* uncomment to see the hash calculated.
15571		{int i;
15572		for(i=0; i<32; i++)
15573			printf(" %2.2x", (int)digest[i]);
15574		printf("\n");}
15575	*/
15576	if(memcmp(digest, check, sizeof(check)) != 0)
15577		return 6;
15578	return 0;
15579}
15580
15581_ACEOF
15582if ac_fn_c_try_run "$LINENO"; then :
15583  eval "ac_cv_c_gost_works=yes"
15584else
15585  eval "ac_cv_c_gost_works=no"
15586fi
15587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588  conftest.$ac_objext conftest.beam conftest.$ac_ext
15589fi
15590
15591CFLAGS="$BAKCFLAGS"
15592else
15593eval "ac_cv_c_gost_works=maybe"
15594fi
15595
15596	# Check whether --enable-gost-anyway was given.
15597if test "${enable_gost_anyway+set}" = set; then :
15598  enableval=$enable_gost_anyway;
15599fi
15600
15601	if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then
15602		if test "$ac_cv_c_gost_works" = "no"; then
15603			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5
15604$as_echo "no, but compiling with GOST support anyway" >&6; }
15605		else
15606			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607$as_echo "yes" >&6; }
15608		fi
15609		use_gost="yes"
15610
15611$as_echo "#define USE_GOST 1" >>confdefs.h
15612
15613	else
15614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615$as_echo "no" >&6; }
15616		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5
15617$as_echo "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;}
15618		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&5
15619$as_echo "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;}
15620		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5
15621$as_echo "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;}
15622	fi
15623        ;;
15624esac
15625
15626# Check whether --enable-ecdsa was given.
15627if test "${enable_ecdsa+set}" = set; then :
15628  enableval=$enable_ecdsa;
15629fi
15630
15631case "$enable_ecdsa" in
15632    no)
15633      ;;
15634    *)       if test "x$HAVE_SSL" != "xyes"; then
15635        as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
15636      fi
15637      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
15638if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
15639
15640else
15641  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15642fi
15643
15644      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
15645if test "x$ac_cv_func_SHA384_Init" = xyes; then :
15646
15647else
15648  as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15649fi
15650
15651      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
15652#include <openssl/evp.h>
15653
15654"
15655if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
15656  ac_have_decl=1
15657else
15658  ac_have_decl=0
15659fi
15660
15661cat >>confdefs.h <<_ACEOF
15662#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
15663_ACEOF
15664if test $ac_have_decl = 1; then :
15665
15666else
15667  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15668fi
15669ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
15670#include <openssl/evp.h>
15671
15672"
15673if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
15674  ac_have_decl=1
15675else
15676  ac_have_decl=0
15677fi
15678
15679cat >>confdefs.h <<_ACEOF
15680#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
15681_ACEOF
15682if test $ac_have_decl = 1; then :
15683
15684else
15685  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15686fi
15687
15688      # we now know we have ECDSA and the required curves.
15689
15690cat >>confdefs.h <<_ACEOF
15691#define USE_ECDSA 1
15692_ACEOF
15693
15694      ;;
15695esac
15696
15697# Check whether --enable-dsa was given.
15698if test "${enable_dsa+set}" = set; then :
15699  enableval=$enable_dsa;
15700fi
15701
15702case "$enable_dsa" in
15703    no)
15704      ;;
15705    *)       # detect if DSA is supported, and turn it off if not.
15706      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
15707if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
15708
15709
15710cat >>confdefs.h <<_ACEOF
15711#define USE_DSA 1
15712_ACEOF
15713
15714
15715else
15716  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
15717	  fi
15718fi
15719
15720      ;;
15721esac
15722
15723# Check whether --enable-ed25519 was given.
15724if test "${enable_ed25519+set}" = set; then :
15725  enableval=$enable_ed25519;
15726fi
15727
15728case "$enable_ed25519" in
15729    yes)
15730      if test "x$HAVE_SSL" != "xyes"; then
15731        as_fn_error $? "ED25519 enabled, but no SSL support" "$LINENO" 5
15732      fi
15733      ac_fn_c_check_decl "$LINENO" "NID_X25519" "ac_cv_have_decl_NID_X25519" "$ac_includes_default
15734#include <openssl/evp.h>
15735
15736"
15737if test "x$ac_cv_have_decl_NID_X25519" = xyes; then :
15738  ac_have_decl=1
15739else
15740  ac_have_decl=0
15741fi
15742
15743cat >>confdefs.h <<_ACEOF
15744#define HAVE_DECL_NID_X25519 $ac_have_decl
15745_ACEOF
15746if test $ac_have_decl = 1; then :
15747
15748else
15749  as_fn_error $? "OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed25519" "$LINENO" 5
15750fi
15751
15752
15753cat >>confdefs.h <<_ACEOF
15754#define USE_ED25519 1
15755_ACEOF
15756
15757      ;;
15758    *|no)       ;;
15759esac
15760
15761# Check whether --enable-ed448 was given.
15762if test "${enable_ed448+set}" = set; then :
15763  enableval=$enable_ed448;
15764fi
15765
15766case "$enable_ed448" in
15767    yes)
15768      if test "x$HAVE_SSL" != "xyes"; then
15769        as_fn_error $? "ED448 enabled, but no SSL support" "$LINENO" 5
15770      fi
15771      ac_fn_c_check_decl "$LINENO" "NID_X448" "ac_cv_have_decl_NID_X448" "$ac_includes_default
15772#include <openssl/evp.h>
15773
15774"
15775if test "x$ac_cv_have_decl_NID_X448" = xyes; then :
15776  ac_have_decl=1
15777else
15778  ac_have_decl=0
15779fi
15780
15781cat >>confdefs.h <<_ACEOF
15782#define HAVE_DECL_NID_X448 $ac_have_decl
15783_ACEOF
15784if test $ac_have_decl = 1; then :
15785
15786else
15787  as_fn_error $? "OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed448" "$LINENO" 5
15788fi
15789
15790
15791cat >>confdefs.h <<_ACEOF
15792#define USE_ED448 1
15793_ACEOF
15794
15795      ;;
15796    *|no)       ;;
15797esac
15798
15799# Check whether --enable-dane was given.
15800if test "${enable_dane+set}" = set; then :
15801  enableval=$enable_dane;
15802fi
15803
15804# Check whether --enable-dane-verify was given.
15805if test "${enable_dane_verify+set}" = set; then :
15806  enableval=$enable_dane_verify;
15807fi
15808
15809# Check whether --enable-dane-ta-usage was given.
15810if test "${enable_dane_ta_usage+set}" = set; then :
15811  enableval=$enable_dane_ta_usage;
15812fi
15813
15814
15815# Check whether --enable-full-dane was given.
15816if test "${enable_full_dane+set}" = set; then :
15817  enableval=$enable_full_dane;
15818	enable_dane_ta_usage=yes
15819	enable_dane_verify=yes
15820	enable_dane=yes
15821
15822fi
15823
15824# Check whether --enable-no-dane-ta-usage was given.
15825if test "${enable_no_dane_ta_usage+set}" = set; then :
15826  enableval=$enable_no_dane_ta_usage;
15827	enable_dane_ta_usage=no
15828	enable_dane_verify=yes
15829	enable_dane=yes
15830
15831fi
15832
15833# Check whether --enable-no-dane-verify was given.
15834if test "${enable_no_dane_verify+set}" = set; then :
15835  enableval=$enable_no_dane_verify;
15836	enable_dane_ta_usage=no
15837	enable_dane_verify=no
15838	enable_dane=yes
15839
15840fi
15841
15842case "$enable_dane" in
15843    no)
15844      ldns_build_config_use_dane=0
15845
15846      ldns_build_config_use_dane_verify=0
15847
15848      ldns_build_config_use_dane_ta_usage=0
15849
15850      ;;
15851    *)       if test "x$HAVE_SSL" != "xyes"; then
15852        as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
15853      fi
15854      ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
15855if test "x$ac_cv_func_X509_check_ca" = xyes; then :
15856
15857else
15858  as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
15859fi
15860
15861      ldns_build_config_use_dane=1
15862
15863
15864cat >>confdefs.h <<_ACEOF
15865#define USE_DANE 1
15866_ACEOF
15867
15868      case "$enable_dane_verify" in
15869          no)
15870            ldns_build_config_use_dane_verify=0
15871
15872            ldns_build_config_use_dane_ta_usage=0
15873
15874	    ;;
15875	  *)
15876	    ldns_build_config_use_dane_verify=1
15877
15878
15879cat >>confdefs.h <<_ACEOF
15880#define USE_DANE_VERIFY 1
15881_ACEOF
15882
15883            case "$enable_dane_ta_usage" in
15884                no)
15885                  ldns_build_config_use_dane_ta_usage=0
15886
15887                  ;;
15888                *)       	    LIBS="-lssl $LIBS"
15889                  ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane"
15890if test "x$ac_cv_func_SSL_get0_dane" = xyes; then :
15891
15892else
15893  as_fn_error $? "OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type).  Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage" "$LINENO" 5
15894fi
15895
15896                  LIBSSL_LIBS="$LIBSSL_LIBS -lssl"
15897                  ldns_build_config_use_dane_ta_usage=1
15898
15899
15900cat >>confdefs.h <<_ACEOF
15901#define USE_DANE_TA_USAGE 1
15902_ACEOF
15903
15904                  ;;
15905            esac
15906      esac
15907      ;;
15908esac
15909
15910# Check whether --enable-rrtype-ninfo was given.
15911if test "${enable_rrtype_ninfo+set}" = set; then :
15912  enableval=$enable_rrtype_ninfo;
15913fi
15914
15915case "$enable_rrtype_ninfo" in
15916	yes)
15917
15918cat >>confdefs.h <<_ACEOF
15919#define RRTYPE_NINFO /**/
15920_ACEOF
15921
15922		;;
15923	no|*)
15924		;;
15925esac
15926# Check whether --enable-rrtype-rkey was given.
15927if test "${enable_rrtype_rkey+set}" = set; then :
15928  enableval=$enable_rrtype_rkey;
15929fi
15930
15931case "$enable_rrtype_rkey" in
15932	yes)
15933
15934cat >>confdefs.h <<_ACEOF
15935#define RRTYPE_RKEY /**/
15936_ACEOF
15937
15938		;;
15939	no|*)
15940		;;
15941esac
15942# Check whether --enable-rrtype-openpgpkey was given.
15943if test "${enable_rrtype_openpgpkey+set}" = set; then :
15944  enableval=$enable_rrtype_openpgpkey;
15945fi
15946
15947case "$enable_rrtype_openpgpkey" in
15948	no)
15949		;;
15950	yes|*)
15951
15952cat >>confdefs.h <<_ACEOF
15953#define RRTYPE_OPENPGPKEY /**/
15954_ACEOF
15955
15956		;;
15957esac
15958# Check whether --enable-rrtype-ta was given.
15959if test "${enable_rrtype_ta+set}" = set; then :
15960  enableval=$enable_rrtype_ta;
15961fi
15962
15963case "$enable_rrtype_ta" in
15964	yes)
15965
15966cat >>confdefs.h <<_ACEOF
15967#define RRTYPE_TA /**/
15968_ACEOF
15969
15970		;;
15971	no|*)
15972		;;
15973esac
15974# Check whether --enable-rrtype-avc was given.
15975if test "${enable_rrtype_avc+set}" = set; then :
15976  enableval=$enable_rrtype_avc;
15977fi
15978
15979case "$enable_rrtype_avc" in
15980	yes)
15981
15982cat >>confdefs.h <<_ACEOF
15983#define RRTYPE_AVC /**/
15984_ACEOF
15985
15986		;;
15987	no|*)
15988		;;
15989esac
15990
15991
15992
15993
15994if test "x$HAVE_SSL" = "xyes"; then
15995LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
15996
15997fi
15998CPPFLAGS=$tmp_CPPFLAGS
15999LDFLAGS=$tmp_LDFLAGS
16000LIBS=$tmp_LIBS
16001
16002
16003# add option to disable the evil rpath
16004
16005# Check whether --enable-rpath was given.
16006if test "${enable_rpath+set}" = set; then :
16007  enableval=$enable_rpath; enable_rpath=$enableval
16008else
16009  enable_rpath=yes
16010fi
16011
16012if test "x$enable_rpath" = xno; then
16013		ac_config_commands="$ac_config_commands disable-rpath"
16014
16015fi
16016
16017
16018#AC_RUN_IFELSE([AC_LANG_SOURCE(
16019#[
16020#int main()
16021#{
16022#short one = 1;
16023#char *cp = (char*)&one;
16024#if ( *cp == 0 )
16025#return(0);
16026#else
16027#return(1);
16028#}
16029#])], [],[
16030#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
16031#],[])
16032
16033# should define WORDS_BIGENDIAN if the system is big-endian
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16036if ${ac_cv_c_bigendian+:} false; then :
16037  $as_echo_n "(cached) " >&6
16038else
16039  ac_cv_c_bigendian=unknown
16040    # See if we're dealing with a universal compiler.
16041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h.  */
16043#ifndef __APPLE_CC__
16044	       not a universal capable compiler
16045	     #endif
16046	     typedef int dummy;
16047
16048_ACEOF
16049if ac_fn_c_try_compile "$LINENO"; then :
16050
16051	# Check for potential -arch flags.  It is not universal unless
16052	# there are at least two -arch flags with different values.
16053	ac_arch=
16054	ac_prev=
16055	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16056	 if test -n "$ac_prev"; then
16057	   case $ac_word in
16058	     i?86 | x86_64 | ppc | ppc64)
16059	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16060		 ac_arch=$ac_word
16061	       else
16062		 ac_cv_c_bigendian=universal
16063		 break
16064	       fi
16065	       ;;
16066	   esac
16067	   ac_prev=
16068	 elif test "x$ac_word" = "x-arch"; then
16069	   ac_prev=arch
16070	 fi
16071       done
16072fi
16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074    if test $ac_cv_c_bigendian = unknown; then
16075      # See if sys/param.h defines the BYTE_ORDER macro.
16076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077/* end confdefs.h.  */
16078#include <sys/types.h>
16079	     #include <sys/param.h>
16080
16081int
16082main ()
16083{
16084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16085		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16086		     && LITTLE_ENDIAN)
16087	      bogus endian macros
16088	     #endif
16089
16090  ;
16091  return 0;
16092}
16093_ACEOF
16094if ac_fn_c_try_compile "$LINENO"; then :
16095  # It does; now see whether it defined to BIG_ENDIAN or not.
16096	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097/* end confdefs.h.  */
16098#include <sys/types.h>
16099		#include <sys/param.h>
16100
16101int
16102main ()
16103{
16104#if BYTE_ORDER != BIG_ENDIAN
16105		 not big endian
16106		#endif
16107
16108  ;
16109  return 0;
16110}
16111_ACEOF
16112if ac_fn_c_try_compile "$LINENO"; then :
16113  ac_cv_c_bigendian=yes
16114else
16115  ac_cv_c_bigendian=no
16116fi
16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118fi
16119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120    fi
16121    if test $ac_cv_c_bigendian = unknown; then
16122      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124/* end confdefs.h.  */
16125#include <limits.h>
16126
16127int
16128main ()
16129{
16130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16131	      bogus endian macros
16132	     #endif
16133
16134  ;
16135  return 0;
16136}
16137_ACEOF
16138if ac_fn_c_try_compile "$LINENO"; then :
16139  # It does; now see whether it defined to _BIG_ENDIAN or not.
16140	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142#include <limits.h>
16143
16144int
16145main ()
16146{
16147#ifndef _BIG_ENDIAN
16148		 not big endian
16149		#endif
16150
16151  ;
16152  return 0;
16153}
16154_ACEOF
16155if ac_fn_c_try_compile "$LINENO"; then :
16156  ac_cv_c_bigendian=yes
16157else
16158  ac_cv_c_bigendian=no
16159fi
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161fi
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163    fi
16164    if test $ac_cv_c_bigendian = unknown; then
16165      # Compile a test program.
16166      if test "$cross_compiling" = yes; then :
16167  # Try to guess by grepping values from an object file.
16168	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169/* end confdefs.h.  */
16170short int ascii_mm[] =
16171		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16172		short int ascii_ii[] =
16173		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16174		int use_ascii (int i) {
16175		  return ascii_mm[i] + ascii_ii[i];
16176		}
16177		short int ebcdic_ii[] =
16178		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16179		short int ebcdic_mm[] =
16180		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16181		int use_ebcdic (int i) {
16182		  return ebcdic_mm[i] + ebcdic_ii[i];
16183		}
16184		extern int foo;
16185
16186int
16187main ()
16188{
16189return use_ascii (foo) == use_ebcdic (foo);
16190  ;
16191  return 0;
16192}
16193_ACEOF
16194if ac_fn_c_try_compile "$LINENO"; then :
16195  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16196	      ac_cv_c_bigendian=yes
16197	    fi
16198	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16199	      if test "$ac_cv_c_bigendian" = unknown; then
16200		ac_cv_c_bigendian=no
16201	      else
16202		# finding both strings is unlikely to happen, but who knows?
16203		ac_cv_c_bigendian=unknown
16204	      fi
16205	    fi
16206fi
16207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208else
16209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210/* end confdefs.h.  */
16211$ac_includes_default
16212int
16213main ()
16214{
16215
16216	     /* Are we little or big endian?  From Harbison&Steele.  */
16217	     union
16218	     {
16219	       long int l;
16220	       char c[sizeof (long int)];
16221	     } u;
16222	     u.l = 1;
16223	     return u.c[sizeof (long int) - 1] == 1;
16224
16225  ;
16226  return 0;
16227}
16228_ACEOF
16229if ac_fn_c_try_run "$LINENO"; then :
16230  ac_cv_c_bigendian=no
16231else
16232  ac_cv_c_bigendian=yes
16233fi
16234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16235  conftest.$ac_objext conftest.beam conftest.$ac_ext
16236fi
16237
16238    fi
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16241$as_echo "$ac_cv_c_bigendian" >&6; }
16242 case $ac_cv_c_bigendian in #(
16243   yes)
16244     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16245;; #(
16246   no)
16247      ;; #(
16248   universal)
16249
16250$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16251
16252     ;; #(
16253   *)
16254     as_fn_error $? "unknown endianness
16255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16256 esac
16257
16258
16259# Checks for header files.
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16261$as_echo_n "checking for ANSI C header files... " >&6; }
16262if ${ac_cv_header_stdc+:} false; then :
16263  $as_echo_n "(cached) " >&6
16264else
16265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h.  */
16267#include <stdlib.h>
16268#include <stdarg.h>
16269#include <string.h>
16270#include <float.h>
16271
16272int
16273main ()
16274{
16275
16276  ;
16277  return 0;
16278}
16279_ACEOF
16280if ac_fn_c_try_compile "$LINENO"; then :
16281  ac_cv_header_stdc=yes
16282else
16283  ac_cv_header_stdc=no
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286
16287if test $ac_cv_header_stdc = yes; then
16288  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291#include <string.h>
16292
16293_ACEOF
16294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16295  $EGREP "memchr" >/dev/null 2>&1; then :
16296
16297else
16298  ac_cv_header_stdc=no
16299fi
16300rm -f conftest*
16301
16302fi
16303
16304if test $ac_cv_header_stdc = yes; then
16305  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307/* end confdefs.h.  */
16308#include <stdlib.h>
16309
16310_ACEOF
16311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16312  $EGREP "free" >/dev/null 2>&1; then :
16313
16314else
16315  ac_cv_header_stdc=no
16316fi
16317rm -f conftest*
16318
16319fi
16320
16321if test $ac_cv_header_stdc = yes; then
16322  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16323  if test "$cross_compiling" = yes; then :
16324  :
16325else
16326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327/* end confdefs.h.  */
16328#include <ctype.h>
16329#include <stdlib.h>
16330#if ((' ' & 0x0FF) == 0x020)
16331# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16332# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16333#else
16334# define ISLOWER(c) \
16335		   (('a' <= (c) && (c) <= 'i') \
16336		     || ('j' <= (c) && (c) <= 'r') \
16337		     || ('s' <= (c) && (c) <= 'z'))
16338# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16339#endif
16340
16341#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16342int
16343main ()
16344{
16345  int i;
16346  for (i = 0; i < 256; i++)
16347    if (XOR (islower (i), ISLOWER (i))
16348	|| toupper (i) != TOUPPER (i))
16349      return 2;
16350  return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_run "$LINENO"; then :
16354
16355else
16356  ac_cv_header_stdc=no
16357fi
16358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16359  conftest.$ac_objext conftest.beam conftest.$ac_ext
16360fi
16361
16362fi
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16365$as_echo "$ac_cv_header_stdc" >&6; }
16366if test $ac_cv_header_stdc = yes; then
16367
16368$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16369
16370fi
16371
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16373$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16374if ${ac_cv_header_stdbool_h+:} false; then :
16375  $as_echo_n "(cached) " >&6
16376else
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379
16380             #include <stdbool.h>
16381             #ifndef bool
16382              "error: bool is not defined"
16383             #endif
16384             #ifndef false
16385              "error: false is not defined"
16386             #endif
16387             #if false
16388              "error: false is not 0"
16389             #endif
16390             #ifndef true
16391              "error: true is not defined"
16392             #endif
16393             #if true != 1
16394              "error: true is not 1"
16395             #endif
16396             #ifndef __bool_true_false_are_defined
16397              "error: __bool_true_false_are_defined is not defined"
16398             #endif
16399
16400             struct s { _Bool s: 1; _Bool t; } s;
16401
16402             char a[true == 1 ? 1 : -1];
16403             char b[false == 0 ? 1 : -1];
16404             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16405             char d[(bool) 0.5 == true ? 1 : -1];
16406             /* See body of main program for 'e'.  */
16407             char f[(_Bool) 0.0 == false ? 1 : -1];
16408             char g[true];
16409             char h[sizeof (_Bool)];
16410             char i[sizeof s.t];
16411             enum { j = false, k = true, l = false * true, m = true * 256 };
16412             /* The following fails for
16413                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16414             _Bool n[m];
16415             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16416             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16417             /* Catch a bug in an HP-UX C compiler.  See
16418                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16419                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16420              */
16421             _Bool q = true;
16422             _Bool *pq = &q;
16423
16424int
16425main ()
16426{
16427
16428             bool e = &s;
16429             *pq |= q;
16430             *pq |= ! q;
16431             /* Refer to every declared value, to avoid compiler optimizations.  */
16432             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16433                     + !m + !n + !o + !p + !q + !pq);
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_compile "$LINENO"; then :
16440  ac_cv_header_stdbool_h=yes
16441else
16442  ac_cv_header_stdbool_h=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445fi
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16447$as_echo "$ac_cv_header_stdbool_h" >&6; }
16448   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16449if test "x$ac_cv_type__Bool" = xyes; then :
16450
16451cat >>confdefs.h <<_ACEOF
16452#define HAVE__BOOL 1
16453_ACEOF
16454
16455
16456fi
16457
16458
16459if test $ac_cv_header_stdbool_h = yes; then
16460
16461$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16462
16463fi
16464
16465#AC_HEADER_SYS_WAIT
16466#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
16467# do the very minimum - we can always extend this
16468for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
16469do :
16470  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16471ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16472"
16473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16474  cat >>confdefs.h <<_ACEOF
16475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16476_ACEOF
16477
16478fi
16479
16480done
16481
16482for ac_header in sys/param.h sys/mount.h
16483do :
16484  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16485ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16486
16487   #if HAVE_SYS_PARAM_H
16488   # include <sys/param.h>
16489   #endif
16490
16491
16492"
16493if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16494  cat >>confdefs.h <<_ACEOF
16495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16496_ACEOF
16497
16498fi
16499
16500done
16501
16502ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
16503
16504   #if HAVE_SYS_PARAM_H
16505   # include <sys/param.h>
16506   #endif
16507
16508
16509"
16510if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16511
16512include_sys_socket_h='#include <sys/socket.h>'
16513
16514$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
16515
16516
16517else
16518
16519include_sys_socket_h=''
16520
16521fi
16522
16523
16524
16525ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
16526
16527"
16528if test "x$ac_cv_header_inttypes_h" = xyes; then :
16529
16530include_inttypes_h='#include <inttypes.h>'
16531
16532$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
16533
16534ldns_build_config_have_inttypes_h=1
16535
16536
16537else
16538
16539include_inttypes_h=''
16540ldns_build_config_have_inttypes_h=0
16541
16542
16543fi
16544
16545
16546
16547ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
16548
16549"
16550if test "x$ac_cv_header_sys_types_h" = xyes; then :
16551
16552include_systypes_h='#include <sys/types.h>'
16553
16554$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
16555
16556
16557else
16558
16559include_systypes_h=''
16560
16561fi
16562
16563
16564
16565ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
16566
16567"
16568if test "x$ac_cv_header_unistd_h" = xyes; then :
16569
16570include_unistd_h='#include <unistd.h>'
16571
16572$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
16573
16574
16575else
16576
16577include_unistd_h=''
16578
16579fi
16580
16581
16582
16583
16584# The cast to long int works around a bug in the HP C Compiler
16585# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16586# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16587# This bug is HP SR number 8606223364.
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
16589$as_echo_n "checking size of time_t... " >&6; }
16590if ${ac_cv_sizeof_time_t+:} false; then :
16591  $as_echo_n "(cached) " >&6
16592else
16593  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
16594$ac_includes_default
16595#ifdef TIME_WITH_SYS_TIME
16596# include <sys/time.h>
16597# include <time.h>
16598#else
16599# ifdef HAVE_SYS_TIME_H
16600#  include <sys/time.h>
16601# else
16602#  include <time.h>
16603# endif
16604#endif
16605
16606"; then :
16607
16608else
16609  if test "$ac_cv_type_time_t" = yes; then
16610     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16612as_fn_error 77 "cannot compute sizeof (time_t)
16613See \`config.log' for more details" "$LINENO" 5; }
16614   else
16615     ac_cv_sizeof_time_t=0
16616   fi
16617fi
16618
16619fi
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
16621$as_echo "$ac_cv_sizeof_time_t" >&6; }
16622
16623
16624
16625cat >>confdefs.h <<_ACEOF
16626#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
16627_ACEOF
16628
16629
16630
16631if test x_$with_examples != x_no; then
16632for ac_header in pcap.h
16633do :
16634  ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
16635"
16636if test "x$ac_cv_header_pcap_h" = xyes; then :
16637  cat >>confdefs.h <<_ACEOF
16638#define HAVE_PCAP_H 1
16639_ACEOF
16640
16641fi
16642
16643done
16644
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
16646$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
16647if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
16648  $as_echo_n "(cached) " >&6
16649else
16650  ac_check_lib_save_LIBS=$LIBS
16651LIBS="-lpcap  $LIBS"
16652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653/* end confdefs.h.  */
16654
16655/* Override any GCC internal prototype to avoid an error.
16656   Use char because int might match the return type of a GCC
16657   builtin and then its argument prototype would still apply.  */
16658#ifdef __cplusplus
16659extern "C"
16660#endif
16661char pcap_open_offline ();
16662int
16663main ()
16664{
16665return pcap_open_offline ();
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_link "$LINENO"; then :
16671  ac_cv_lib_pcap_pcap_open_offline=yes
16672else
16673  ac_cv_lib_pcap_pcap_open_offline=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext \
16676    conftest$ac_exeext conftest.$ac_ext
16677LIBS=$ac_check_lib_save_LIBS
16678fi
16679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
16680$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
16681if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
16682
16683
16684$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16685	LIBPCAP_LIBS=-lpcap
16686
16687
16688else
16689
16690	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
16691$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
16692
16693
16694fi
16695
16696for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h net/ethernet.h netinet/ip_compat.h
16697do :
16698  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16700$ac_includes_default
16701#ifdef HAVE_NETINET_IN_SYSTM_H
16702#include <netinet/in_systm.h>
16703#endif
16704#ifdef HAVE_NETINET_IN_H
16705#include <netinet/in.h>
16706#endif
16707#ifdef HAVE_SYS_SOCKET_H
16708#include <sys/socket.h>
16709#endif
16710#ifdef HAVE_NET_IF_H
16711#include <net/if.h>
16712#endif
16713"
16714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16715  cat >>confdefs.h <<_ACEOF
16716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16717_ACEOF
16718
16719fi
16720
16721done
16722
16723fi
16724
16725
16726ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16727$ac_includes_default
16728#ifdef HAVE_SYS_SOCKET_H
16729#  include <sys/socket.h>
16730#endif
16731#ifdef HAVE_WS2TCPIP_H
16732#  include <ws2tcpip.h>
16733#endif
16734
16735"
16736if test "x$ac_cv_type_socklen_t" = xyes; then :
16737
16738else
16739
16740$as_echo "#define socklen_t int" >>confdefs.h
16741
16742fi
16743
16744if test "x$ac_cv_type_socklen_t" = xyes; then
16745  ldns_build_config_have_socklen_t=1
16746
16747else
16748  ldns_build_config_have_socklen_t=0
16749
16750fi
16751ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16752if test "x$ac_cv_type_size_t" = xyes; then :
16753
16754else
16755
16756cat >>confdefs.h <<_ACEOF
16757#define size_t unsigned int
16758_ACEOF
16759
16760fi
16761
16762ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16763if test "x$ac_cv_type_ssize_t" = xyes; then :
16764
16765else
16766
16767cat >>confdefs.h <<_ACEOF
16768#define ssize_t int
16769_ACEOF
16770
16771fi
16772
16773ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16774if test "x$ac_cv_type_intptr_t" = xyes; then :
16775
16776else
16777
16778cat >>confdefs.h <<_ACEOF
16779#define intptr_t size_t
16780_ACEOF
16781
16782fi
16783
16784ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
16785#if HAVE_SYS_TYPES_H
16786# include <sys/types.h>
16787#endif
16788#if HAVE_NETINET_IN_H
16789# include <netinet/in.h>
16790#endif
16791"
16792if test "x$ac_cv_type_in_addr_t" = xyes; then :
16793
16794else
16795
16796$as_echo "#define in_addr_t uint32_t" >>confdefs.h
16797
16798fi
16799
16800ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
16801#if HAVE_SYS_TYPES_H
16802# include <sys/types.h>
16803#endif
16804#if HAVE_NETINET_IN_H
16805# include <netinet/in.h>
16806#endif
16807"
16808if test "x$ac_cv_type_in_port_t" = xyes; then :
16809
16810else
16811
16812$as_echo "#define in_port_t uint16_t" >>confdefs.h
16813
16814fi
16815
16816ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
16817#ifdef HAVE_NETINET_IN_H
16818#include <netinet/in.h>
16819#endif
16820#ifdef HAVE_SYS_SOCKET_H
16821#include <sys/socket.h>
16822#endif
16823#ifdef HAVE_NETDB_H
16824#include <netdb.h>
16825#endif
16826#ifdef HAVE_ARPA_INET_H
16827#include <arpa/inet.h>
16828#endif
16829
16830"
16831if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
16832
16833else
16834
16835        ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
16836#ifdef HAVE_NETINET_IN_H
16837#include <netinet/in.h>
16838#endif
16839#ifdef HAVE_SYS_SOCKET_H
16840#include <sys/socket.h>
16841#endif
16842#ifdef HAVE_NETDB_H
16843#include <netdb.h>
16844#endif
16845#ifdef HAVE_ARPA_INET_H
16846#include <arpa/inet.h>
16847#endif
16848
16849"
16850if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
16851
16852
16853$as_echo "#define ss_family __ss_family" >>confdefs.h
16854
16855
16856fi
16857
16858
16859fi
16860
16861
16862for ac_header in stdlib.h
16863do :
16864  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16865if test "x$ac_cv_header_stdlib_h" = xyes; then :
16866  cat >>confdefs.h <<_ACEOF
16867#define HAVE_STDLIB_H 1
16868_ACEOF
16869
16870fi
16871
16872done
16873
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16875$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16876if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16877  $as_echo_n "(cached) " >&6
16878else
16879  if test "$cross_compiling" = yes; then :
16880  ac_cv_func_malloc_0_nonnull=no
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16885# include <stdlib.h>
16886#else
16887char *malloc ();
16888#endif
16889
16890int
16891main ()
16892{
16893return ! malloc (0);
16894  ;
16895  return 0;
16896}
16897_ACEOF
16898if ac_fn_c_try_run "$LINENO"; then :
16899  ac_cv_func_malloc_0_nonnull=yes
16900else
16901  ac_cv_func_malloc_0_nonnull=no
16902fi
16903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16904  conftest.$ac_objext conftest.beam conftest.$ac_ext
16905fi
16906
16907fi
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16909$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16910if test $ac_cv_func_malloc_0_nonnull = yes; then :
16911
16912$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16913
16914else
16915  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16916
16917   case " $LIBOBJS " in
16918  *" malloc.$ac_objext "* ) ;;
16919  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16920 ;;
16921esac
16922
16923
16924$as_echo "#define malloc rpl_malloc" >>confdefs.h
16925
16926fi
16927
16928
16929for ac_header in stdlib.h
16930do :
16931  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16932if test "x$ac_cv_header_stdlib_h" = xyes; then :
16933  cat >>confdefs.h <<_ACEOF
16934#define HAVE_STDLIB_H 1
16935_ACEOF
16936
16937fi
16938
16939done
16940
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16942$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16943if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16944  $as_echo_n "(cached) " >&6
16945else
16946  if test "$cross_compiling" = yes; then :
16947  ac_cv_func_realloc_0_nonnull=no
16948else
16949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950/* end confdefs.h.  */
16951#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16952# include <stdlib.h>
16953#else
16954char *realloc ();
16955#endif
16956
16957int
16958main ()
16959{
16960return ! realloc (0, 0);
16961  ;
16962  return 0;
16963}
16964_ACEOF
16965if ac_fn_c_try_run "$LINENO"; then :
16966  ac_cv_func_realloc_0_nonnull=yes
16967else
16968  ac_cv_func_realloc_0_nonnull=no
16969fi
16970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16971  conftest.$ac_objext conftest.beam conftest.$ac_ext
16972fi
16973
16974fi
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16976$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16977if test $ac_cv_func_realloc_0_nonnull = yes; then :
16978
16979$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16980
16981else
16982  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16983
16984   case " $LIBOBJS " in
16985  *" realloc.$ac_objext "* ) ;;
16986  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16987 ;;
16988esac
16989
16990
16991$as_echo "#define realloc rpl_realloc" >>confdefs.h
16992
16993fi
16994
16995
16996
16997ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
16998if test "x$ac_cv_func_b64_pton" = xyes; then :
16999  $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
17000
17001else
17002  case " $LIBOBJS " in
17003  *" b64_pton.$ac_objext "* ) ;;
17004  *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
17005 ;;
17006esac
17007
17008fi
17009
17010
17011ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
17012if test "x$ac_cv_func_b64_ntop" = xyes; then :
17013  $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
17014
17015else
17016  case " $LIBOBJS " in
17017  *" b64_ntop.$ac_objext "* ) ;;
17018  *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
17019 ;;
17020esac
17021
17022fi
17023
17024
17025ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
17026if test "x$ac_cv_func_calloc" = xyes; then :
17027  $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
17028
17029else
17030  case " $LIBOBJS " in
17031  *" calloc.$ac_objext "* ) ;;
17032  *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
17033 ;;
17034esac
17035
17036fi
17037
17038
17039ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
17040if test "x$ac_cv_func_timegm" = xyes; then :
17041  $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
17042
17043else
17044  case " $LIBOBJS " in
17045  *" timegm.$ac_objext "* ) ;;
17046  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
17047 ;;
17048esac
17049
17050fi
17051
17052
17053ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17054if test "x$ac_cv_func_gmtime_r" = xyes; then :
17055  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17056
17057else
17058  case " $LIBOBJS " in
17059  *" gmtime_r.$ac_objext "* ) ;;
17060  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17061 ;;
17062esac
17063
17064fi
17065
17066
17067ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17068if test "x$ac_cv_func_ctime_r" = xyes; then :
17069  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17070
17071else
17072  case " $LIBOBJS " in
17073  *" ctime_r.$ac_objext "* ) ;;
17074  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17075 ;;
17076esac
17077
17078fi
17079
17080
17081ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17082if test "x$ac_cv_func_localtime_r" = xyes; then :
17083  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17084
17085else
17086  case " $LIBOBJS " in
17087  *" localtime_r.$ac_objext "* ) ;;
17088  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17089 ;;
17090esac
17091
17092fi
17093
17094
17095ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
17096if test "x$ac_cv_func_isblank" = xyes; then :
17097  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17098
17099else
17100  case " $LIBOBJS " in
17101  *" isblank.$ac_objext "* ) ;;
17102  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17103 ;;
17104esac
17105
17106fi
17107
17108
17109ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
17110if test "x$ac_cv_func_isascii" = xyes; then :
17111  $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
17112
17113else
17114  case " $LIBOBJS " in
17115  *" isascii.$ac_objext "* ) ;;
17116  *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
17117 ;;
17118esac
17119
17120fi
17121
17122
17123ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17124if test "x$ac_cv_func_inet_aton" = xyes; then :
17125  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17126
17127else
17128  case " $LIBOBJS " in
17129  *" inet_aton.$ac_objext "* ) ;;
17130  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17131 ;;
17132esac
17133
17134fi
17135
17136
17137ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17138if test "x$ac_cv_func_inet_pton" = xyes; then :
17139  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17140
17141else
17142  case " $LIBOBJS " in
17143  *" inet_pton.$ac_objext "* ) ;;
17144  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17145 ;;
17146esac
17147
17148fi
17149
17150
17151ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17152if test "x$ac_cv_func_inet_ntop" = xyes; then :
17153  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17154
17155else
17156  case " $LIBOBJS " in
17157  *" inet_ntop.$ac_objext "* ) ;;
17158  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17159 ;;
17160esac
17161
17162fi
17163
17164
17165ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17166if test "x$ac_cv_func_snprintf" = xyes; then :
17167  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17168
17169else
17170  case " $LIBOBJS " in
17171  *" snprintf.$ac_objext "* ) ;;
17172  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17173 ;;
17174esac
17175
17176fi
17177
17178
17179ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17180if test "x$ac_cv_func_strlcpy" = xyes; then :
17181  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17182
17183else
17184  case " $LIBOBJS " in
17185  *" strlcpy.$ac_objext "* ) ;;
17186  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17187 ;;
17188esac
17189
17190fi
17191
17192
17193ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17194if test "x$ac_cv_func_memmove" = xyes; then :
17195  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17196
17197else
17198  case " $LIBOBJS " in
17199  *" memmove.$ac_objext "* ) ;;
17200  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17201 ;;
17202esac
17203
17204fi
17205
17206
17207ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17208if test "x$ac_cv_type_pid_t" = xyes; then :
17209
17210else
17211
17212cat >>confdefs.h <<_ACEOF
17213#define pid_t int
17214_ACEOF
17215
17216fi
17217
17218for ac_header in vfork.h
17219do :
17220  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17221if test "x$ac_cv_header_vfork_h" = xyes; then :
17222  cat >>confdefs.h <<_ACEOF
17223#define HAVE_VFORK_H 1
17224_ACEOF
17225
17226fi
17227
17228done
17229
17230for ac_func in fork vfork
17231do :
17232  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17233ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17234if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17235  cat >>confdefs.h <<_ACEOF
17236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17237_ACEOF
17238
17239fi
17240done
17241
17242if test "x$ac_cv_func_fork" = xyes; then
17243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17244$as_echo_n "checking for working fork... " >&6; }
17245if ${ac_cv_func_fork_works+:} false; then :
17246  $as_echo_n "(cached) " >&6
17247else
17248  if test "$cross_compiling" = yes; then :
17249  ac_cv_func_fork_works=cross
17250else
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253$ac_includes_default
17254int
17255main ()
17256{
17257
17258	  /* By Ruediger Kuhlmann. */
17259	  return fork () < 0;
17260
17261  ;
17262  return 0;
17263}
17264_ACEOF
17265if ac_fn_c_try_run "$LINENO"; then :
17266  ac_cv_func_fork_works=yes
17267else
17268  ac_cv_func_fork_works=no
17269fi
17270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17271  conftest.$ac_objext conftest.beam conftest.$ac_ext
17272fi
17273
17274fi
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17276$as_echo "$ac_cv_func_fork_works" >&6; }
17277
17278else
17279  ac_cv_func_fork_works=$ac_cv_func_fork
17280fi
17281if test "x$ac_cv_func_fork_works" = xcross; then
17282  case $host in
17283    *-*-amigaos* | *-*-msdosdjgpp*)
17284      # Override, as these systems have only a dummy fork() stub
17285      ac_cv_func_fork_works=no
17286      ;;
17287    *)
17288      ac_cv_func_fork_works=yes
17289      ;;
17290  esac
17291  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17292$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17293fi
17294ac_cv_func_vfork_works=$ac_cv_func_vfork
17295if test "x$ac_cv_func_vfork" = xyes; then
17296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17297$as_echo_n "checking for working vfork... " >&6; }
17298if ${ac_cv_func_vfork_works+:} false; then :
17299  $as_echo_n "(cached) " >&6
17300else
17301  if test "$cross_compiling" = yes; then :
17302  ac_cv_func_vfork_works=cross
17303else
17304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305/* end confdefs.h.  */
17306/* Thanks to Paul Eggert for this test.  */
17307$ac_includes_default
17308#include <sys/wait.h>
17309#ifdef HAVE_VFORK_H
17310# include <vfork.h>
17311#endif
17312/* On some sparc systems, changes by the child to local and incoming
17313   argument registers are propagated back to the parent.  The compiler
17314   is told about this with #include <vfork.h>, but some compilers
17315   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
17316   static variable whose address is put into a register that is
17317   clobbered by the vfork.  */
17318static void
17319#ifdef __cplusplus
17320sparc_address_test (int arg)
17321# else
17322sparc_address_test (arg) int arg;
17323#endif
17324{
17325  static pid_t child;
17326  if (!child) {
17327    child = vfork ();
17328    if (child < 0) {
17329      perror ("vfork");
17330      _exit(2);
17331    }
17332    if (!child) {
17333      arg = getpid();
17334      write(-1, "", 0);
17335      _exit (arg);
17336    }
17337  }
17338}
17339
17340int
17341main ()
17342{
17343  pid_t parent = getpid ();
17344  pid_t child;
17345
17346  sparc_address_test (0);
17347
17348  child = vfork ();
17349
17350  if (child == 0) {
17351    /* Here is another test for sparc vfork register problems.  This
17352       test uses lots of local variables, at least as many local
17353       variables as main has allocated so far including compiler
17354       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
17355       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
17356       reuse the register of parent for one of the local variables,
17357       since it will think that parent can't possibly be used any more
17358       in this routine.  Assigning to the local variable will thus
17359       munge parent in the parent process.  */
17360    pid_t
17361      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17362      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17363    /* Convince the compiler that p..p7 are live; otherwise, it might
17364       use the same hardware register for all 8 local variables.  */
17365    if (p != p1 || p != p2 || p != p3 || p != p4
17366	|| p != p5 || p != p6 || p != p7)
17367      _exit(1);
17368
17369    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17370       from child file descriptors.  If the child closes a descriptor
17371       before it execs or exits, this munges the parent's descriptor
17372       as well.  Test for this by closing stdout in the child.  */
17373    _exit(close(fileno(stdout)) != 0);
17374  } else {
17375    int status;
17376    struct stat st;
17377
17378    while (wait(&status) != child)
17379      ;
17380    return (
17381	 /* Was there some problem with vforking?  */
17382	 child < 0
17383
17384	 /* Did the child fail?  (This shouldn't happen.)  */
17385	 || status
17386
17387	 /* Did the vfork/compiler bug occur?  */
17388	 || parent != getpid()
17389
17390	 /* Did the file descriptor bug occur?  */
17391	 || fstat(fileno(stdout), &st) != 0
17392	 );
17393  }
17394}
17395_ACEOF
17396if ac_fn_c_try_run "$LINENO"; then :
17397  ac_cv_func_vfork_works=yes
17398else
17399  ac_cv_func_vfork_works=no
17400fi
17401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17402  conftest.$ac_objext conftest.beam conftest.$ac_ext
17403fi
17404
17405fi
17406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17407$as_echo "$ac_cv_func_vfork_works" >&6; }
17408
17409fi;
17410if test "x$ac_cv_func_fork_works" = xcross; then
17411  ac_cv_func_vfork_works=$ac_cv_func_vfork
17412  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17413$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17414fi
17415
17416if test "x$ac_cv_func_vfork_works" = xyes; then
17417
17418$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17419
17420else
17421
17422$as_echo "#define vfork fork" >>confdefs.h
17423
17424fi
17425if test "x$ac_cv_func_fork_works" = xyes; then
17426
17427$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17428
17429fi
17430
17431for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
17432do :
17433  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17435if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17436  cat >>confdefs.h <<_ACEOF
17437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17438_ACEOF
17439
17440fi
17441done
17442
17443if test "x$HAVE_B32_NTOP" = "xyes"; then
17444	ldns_build_config_have_b32_ntop=1
17445
17446else
17447	ldns_build_config_have_b32_ntop=0
17448
17449fi
17450if test "x$HAVE_B32_PTON" = "xyes"; then
17451	ldns_build_config_have_b32_pton=1
17452
17453else
17454	ldns_build_config_have_b32_pton=0
17455
17456fi
17457
17458
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17460$as_echo_n "checking for getaddrinfo... " >&6; }
17461ac_cv_func_getaddrinfo=no
17462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463/* end confdefs.h.  */
17464
17465#ifdef __cplusplus
17466extern "C"
17467{
17468#endif
17469char* getaddrinfo();
17470char* (*f) () = getaddrinfo;
17471#ifdef __cplusplus
17472}
17473#endif
17474int main() {
17475        ;
17476        return 0;
17477}
17478
17479_ACEOF
17480if ac_fn_c_try_link "$LINENO"; then :
17481  ac_cv_func_getaddrinfo="yes"
17482if test "$ac_cv_header_windows_h" = "yes"; then
17483
17484$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17485
17486	USE_WINSOCK="1"
17487	LIBS="$LIBS -lws2_32"
17488fi
17489
17490else
17491  ORIGLIBS="$LIBS"
17492LIBS="$LIBS -lws2_32"
17493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494/* end confdefs.h.  */
17495
17496#ifdef HAVE_WS2TCPIP_H
17497#include <ws2tcpip.h>
17498#endif
17499
17500int
17501main ()
17502{
17503
17504        (void)getaddrinfo(NULL, NULL, NULL, NULL);
17505
17506
17507  ;
17508  return 0;
17509}
17510_ACEOF
17511if ac_fn_c_try_link "$LINENO"; then :
17512
17513ac_cv_func_getaddrinfo="yes"
17514
17515$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17516
17517USE_WINSOCK="1"
17518
17519else
17520
17521ac_cv_func_getaddrinfo="no"
17522LIBS="$ORIGLIBS"
17523
17524fi
17525rm -f core conftest.err conftest.$ac_objext \
17526    conftest$ac_exeext conftest.$ac_ext
17527
17528fi
17529rm -f core conftest.err conftest.$ac_objext \
17530    conftest$ac_exeext conftest.$ac_ext
17531
17532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17533$as_echo "$ac_cv_func_getaddrinfo" >&6; }
17534if test $ac_cv_func_getaddrinfo = yes; then
17535
17536$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17537
17538fi
17539
17540if test $ac_cv_func_getaddrinfo = no; then
17541	case " $LIBOBJS " in
17542  *" fake-rfc2553.$ac_objext "* ) ;;
17543  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17544 ;;
17545esac
17546
17547fi
17548if test "$USE_WINSOCK" = 1; then
17549	if test -n "$ac_tool_prefix"; then
17550  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17551set dummy ${ac_tool_prefix}windres; ac_word=$2
17552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17553$as_echo_n "checking for $ac_word... " >&6; }
17554if ${ac_cv_prog_WINDRES+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  if test -n "$WINDRES"; then
17558  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17559else
17560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561for as_dir in $PATH
17562do
17563  IFS=$as_save_IFS
17564  test -z "$as_dir" && as_dir=.
17565    for ac_exec_ext in '' $ac_executable_extensions; do
17566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17569    break 2
17570  fi
17571done
17572  done
17573IFS=$as_save_IFS
17574
17575fi
17576fi
17577WINDRES=$ac_cv_prog_WINDRES
17578if test -n "$WINDRES"; then
17579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17580$as_echo "$WINDRES" >&6; }
17581else
17582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17583$as_echo "no" >&6; }
17584fi
17585
17586
17587fi
17588if test -z "$ac_cv_prog_WINDRES"; then
17589  ac_ct_WINDRES=$WINDRES
17590  # Extract the first word of "windres", so it can be a program name with args.
17591set dummy windres; ac_word=$2
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17593$as_echo_n "checking for $ac_word... " >&6; }
17594if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597  if test -n "$ac_ct_WINDRES"; then
17598  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17599else
17600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17601for as_dir in $PATH
17602do
17603  IFS=$as_save_IFS
17604  test -z "$as_dir" && as_dir=.
17605    for ac_exec_ext in '' $ac_executable_extensions; do
17606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17607    ac_cv_prog_ac_ct_WINDRES="windres"
17608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17609    break 2
17610  fi
17611done
17612  done
17613IFS=$as_save_IFS
17614
17615fi
17616fi
17617ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17618if test -n "$ac_ct_WINDRES"; then
17619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17620$as_echo "$ac_ct_WINDRES" >&6; }
17621else
17622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623$as_echo "no" >&6; }
17624fi
17625
17626  if test "x$ac_ct_WINDRES" = x; then
17627    WINDRES=""
17628  else
17629    case $cross_compiling:$ac_tool_warned in
17630yes:)
17631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17633ac_tool_warned=yes ;;
17634esac
17635    WINDRES=$ac_ct_WINDRES
17636  fi
17637else
17638  WINDRES="$ac_cv_prog_WINDRES"
17639fi
17640
17641fi
17642
17643# check ioctlsocket
17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17645$as_echo_n "checking for ioctlsocket... " >&6; }
17646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648
17649#ifdef HAVE_WINSOCK2_H
17650#include <winsock2.h>
17651#endif
17652
17653int
17654main ()
17655{
17656
17657	(void)ioctlsocket(0, 0, NULL);
17658
17659  ;
17660  return 0;
17661}
17662_ACEOF
17663if ac_fn_c_try_link "$LINENO"; then :
17664
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666$as_echo "yes" >&6; }
17667
17668$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17669
17670
17671else
17672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673$as_echo "no" >&6; }
17674fi
17675rm -f core conftest.err conftest.$ac_objext \
17676    conftest$ac_exeext conftest.$ac_ext
17677
17678
17679#AC_SEARCH_LIBS(RSA_new, [crypto])
17680
17681
17682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
17683$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
17684if ${ac_cv_c_format_attribute+:} false; then :
17685  $as_echo_n "(cached) " >&6
17686else
17687  ac_cv_c_format_attribute=no
17688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689/* end confdefs.h.  */
17690#include <stdio.h>
17691void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
17692void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
17693
17694int
17695main ()
17696{
17697
17698   f ("%s", "str");
17699
17700  ;
17701  return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_compile "$LINENO"; then :
17705  ac_cv_c_format_attribute="yes"
17706else
17707  ac_cv_c_format_attribute="no"
17708fi
17709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710
17711fi
17712
17713
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
17715$as_echo "$ac_cv_c_format_attribute" >&6; }
17716if test $ac_cv_c_format_attribute = yes; then
17717
17718$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
17719
17720fi
17721
17722
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
17724$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
17725if ${ac_cv_c_unused_attribute+:} false; then :
17726  $as_echo_n "(cached) " >&6
17727else
17728  ac_cv_c_unused_attribute=no
17729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730/* end confdefs.h.  */
17731#include <stdio.h>
17732void f (char *u __attribute__((unused)));
17733
17734int
17735main ()
17736{
17737
17738   f ("x");
17739
17740  ;
17741  return 0;
17742}
17743_ACEOF
17744if ac_fn_c_try_compile "$LINENO"; then :
17745  ac_cv_c_unused_attribute="yes"
17746else
17747  ac_cv_c_unused_attribute="no"
17748fi
17749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750
17751fi
17752
17753
17754
17755
17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
17757$as_echo "$ac_cv_c_unused_attribute" >&6; }
17758if test $ac_cv_c_unused_attribute = yes; then
17759
17760$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
17761
17762fi
17763
17764
17765# check OSX deployment target, if needed
17766if echo $build_os | grep darwin > /dev/null; then
17767  sdk_p=`xcode-select -print-path`;
17768  sdk_v="$( /usr/bin/xcrun --show-sdk-version )";
17769  case $sdk_v in
17770       10.9|10.8)   sdk_c="10.7";;
17771       10.11|10.10|*) sdk_c="10.10";;
17772  esac
17773  export MACOSX_DEPLOYMENT_TARGET="${sdk_c}";
17774  export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${sdk_p}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${sdk_v}.sdk";
17775fi
17776
17777
17778$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
17779
17780
17781
17782# Check whether --with-trust-anchor was given.
17783if test "${with_trust_anchor+set}" = set; then :
17784  withval=$with_trust_anchor;
17785 LDNS_TRUST_ANCHOR_FILE="$withval"
17786
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5
17788$as_echo "$as_me: Default trust anchor: $withval" >&6;}
17789
17790else
17791
17792 LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key"
17793
17794
17795fi
17796
17797
17798
17799# Check whether --with-ca-file was given.
17800if test "${with_ca_file+set}" = set; then :
17801  withval=$with_ca_file;
17802
17803$as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
17804
17805
17806cat >>confdefs.h <<_ACEOF
17807#define LDNS_DANE_CA_FILE "$withval"
17808_ACEOF
17809
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
17811$as_echo "$as_me: Using CAfile: $withval" >&6;}
17812 DEFAULT_CAFILE="Default is $withval"
17813
17814
17815else
17816
17817
17818$as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
17819
17820
17821
17822fi
17823
17824
17825
17826# Check whether --with-ca-path was given.
17827if test "${with_ca_path+set}" = set; then :
17828  withval=$with_ca_path;
17829
17830$as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
17831
17832
17833cat >>confdefs.h <<_ACEOF
17834#define LDNS_DANE_CA_PATH "$withval"
17835_ACEOF
17836
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
17838$as_echo "$as_me: Using CApath: $withval" >&6;}
17839 DEFAULT_CAPATH="Default is $withval"
17840
17841
17842else
17843
17844
17845$as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
17846
17847
17848
17849fi
17850
17851
17852
17853
17854
17855
17856if test "x$HAVE_SSL" = "xyes"; then
17857	ldns_build_config_have_ssl=1
17858
17859else
17860	ldns_build_config_have_ssl=0
17861
17862fi
17863if test "x$ac_cv_c_format_attribute" = "xyes"; then
17864  ldns_build_config_have_attr_format=1
17865
17866else
17867  ldns_build_config_have_attr_format=0
17868
17869fi
17870if test "x$ac_cv_c_unused_attribute" = "xyes"; then
17871  ldns_build_config_have_attr_unused=1
17872
17873else
17874  ldns_build_config_have_attr_unused=0
17875
17876fi
17877
17878CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config"
17879
17880ac_config_files="$ac_config_files $CONFIG_FILES"
17881
17882
17883ac_config_headers="$ac_config_headers ldns/config.h"
17884
17885cat >confcache <<\_ACEOF
17886# This file is a shell script that caches the results of configure
17887# tests run on this system so they can be shared between configure
17888# scripts and configure runs, see configure's option --config-cache.
17889# It is not useful on other systems.  If it contains results you don't
17890# want to keep, you may remove or edit it.
17891#
17892# config.status only pays attention to the cache file if you give it
17893# the --recheck option to rerun configure.
17894#
17895# `ac_cv_env_foo' variables (set or unset) will be overridden when
17896# loading this file, other *unset* `ac_cv_foo' will be assigned the
17897# following values.
17898
17899_ACEOF
17900
17901# The following way of writing the cache mishandles newlines in values,
17902# but we know of no workaround that is simple, portable, and efficient.
17903# So, we kill variables containing newlines.
17904# Ultrix sh set writes to stderr and can't be redirected directly,
17905# and sets the high bit in the cache file unless we assign to the vars.
17906(
17907  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17908    eval ac_val=\$$ac_var
17909    case $ac_val in #(
17910    *${as_nl}*)
17911      case $ac_var in #(
17912      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17913$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17914      esac
17915      case $ac_var in #(
17916      _ | IFS | as_nl) ;; #(
17917      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17918      *) { eval $ac_var=; unset $ac_var;} ;;
17919      esac ;;
17920    esac
17921  done
17922
17923  (set) 2>&1 |
17924    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17925    *${as_nl}ac_space=\ *)
17926      # `set' does not quote correctly, so add quotes: double-quote
17927      # substitution turns \\\\ into \\, and sed turns \\ into \.
17928      sed -n \
17929	"s/'/'\\\\''/g;
17930	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17931      ;; #(
17932    *)
17933      # `set' quotes correctly as required by POSIX, so do not add quotes.
17934      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17935      ;;
17936    esac |
17937    sort
17938) |
17939  sed '
17940     /^ac_cv_env_/b end
17941     t clear
17942     :clear
17943     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17944     t end
17945     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17946     :end' >>confcache
17947if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17948  if test -w "$cache_file"; then
17949    if test "x$cache_file" != "x/dev/null"; then
17950      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17951$as_echo "$as_me: updating cache $cache_file" >&6;}
17952      if test ! -f "$cache_file" || test -h "$cache_file"; then
17953	cat confcache >"$cache_file"
17954      else
17955        case $cache_file in #(
17956        */* | ?:*)
17957	  mv -f confcache "$cache_file"$$ &&
17958	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17959        *)
17960	  mv -f confcache "$cache_file" ;;
17961	esac
17962      fi
17963    fi
17964  else
17965    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17966$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17967  fi
17968fi
17969rm -f confcache
17970
17971test "x$prefix" = xNONE && prefix=$ac_default_prefix
17972# Let make expand exec_prefix.
17973test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17974
17975DEFS=-DHAVE_CONFIG_H
17976
17977ac_libobjs=
17978ac_ltlibobjs=
17979U=
17980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17981  # 1. Remove the extension, and $U if already installed.
17982  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17983  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17984  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17985  #    will be set to the directory where LIBOBJS objects are built.
17986  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17987  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17988done
17989LIBOBJS=$ac_libobjs
17990
17991LTLIBOBJS=$ac_ltlibobjs
17992
17993
17994
17995
17996: "${CONFIG_STATUS=./config.status}"
17997ac_write_fail=0
17998ac_clean_files_save=$ac_clean_files
17999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18001$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18002as_write_fail=0
18003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18004#! $SHELL
18005# Generated by $as_me.
18006# Run this file to recreate the current configuration.
18007# Compiler output produced by configure, useful for debugging
18008# configure, is in config.log if it exists.
18009
18010debug=false
18011ac_cs_recheck=false
18012ac_cs_silent=false
18013
18014SHELL=\${CONFIG_SHELL-$SHELL}
18015export SHELL
18016_ASEOF
18017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18018## -------------------- ##
18019## M4sh Initialization. ##
18020## -------------------- ##
18021
18022# Be more Bourne compatible
18023DUALCASE=1; export DUALCASE # for MKS sh
18024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18025  emulate sh
18026  NULLCMD=:
18027  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18028  # is contrary to our usage.  Disable this feature.
18029  alias -g '${1+"$@"}'='"$@"'
18030  setopt NO_GLOB_SUBST
18031else
18032  case `(set -o) 2>/dev/null` in #(
18033  *posix*) :
18034    set -o posix ;; #(
18035  *) :
18036     ;;
18037esac
18038fi
18039
18040
18041as_nl='
18042'
18043export as_nl
18044# Printing a long string crashes Solaris 7 /usr/bin/printf.
18045as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18048# Prefer a ksh shell builtin over an external printf program on Solaris,
18049# but without wasting forks for bash or zsh.
18050if test -z "$BASH_VERSION$ZSH_VERSION" \
18051    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18052  as_echo='print -r --'
18053  as_echo_n='print -rn --'
18054elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18055  as_echo='printf %s\n'
18056  as_echo_n='printf %s'
18057else
18058  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18059    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18060    as_echo_n='/usr/ucb/echo -n'
18061  else
18062    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18063    as_echo_n_body='eval
18064      arg=$1;
18065      case $arg in #(
18066      *"$as_nl"*)
18067	expr "X$arg" : "X\\(.*\\)$as_nl";
18068	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18069      esac;
18070      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18071    '
18072    export as_echo_n_body
18073    as_echo_n='sh -c $as_echo_n_body as_echo'
18074  fi
18075  export as_echo_body
18076  as_echo='sh -c $as_echo_body as_echo'
18077fi
18078
18079# The user is always right.
18080if test "${PATH_SEPARATOR+set}" != set; then
18081  PATH_SEPARATOR=:
18082  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18083    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18084      PATH_SEPARATOR=';'
18085  }
18086fi
18087
18088
18089# IFS
18090# We need space, tab and new line, in precisely that order.  Quoting is
18091# there to prevent editors from complaining about space-tab.
18092# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18093# splitting by setting IFS to empty value.)
18094IFS=" ""	$as_nl"
18095
18096# Find who we are.  Look in the path if we contain no directory separator.
18097as_myself=
18098case $0 in #((
18099  *[\\/]* ) as_myself=$0 ;;
18100  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18101for as_dir in $PATH
18102do
18103  IFS=$as_save_IFS
18104  test -z "$as_dir" && as_dir=.
18105    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18106  done
18107IFS=$as_save_IFS
18108
18109     ;;
18110esac
18111# We did not find ourselves, most probably we were run as `sh COMMAND'
18112# in which case we are not to be found in the path.
18113if test "x$as_myself" = x; then
18114  as_myself=$0
18115fi
18116if test ! -f "$as_myself"; then
18117  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18118  exit 1
18119fi
18120
18121# Unset variables that we do not need and which cause bugs (e.g. in
18122# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18123# suppresses any "Segmentation fault" message there.  '((' could
18124# trigger a bug in pdksh 5.2.14.
18125for as_var in BASH_ENV ENV MAIL MAILPATH
18126do eval test x\${$as_var+set} = xset \
18127  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18128done
18129PS1='$ '
18130PS2='> '
18131PS4='+ '
18132
18133# NLS nuisances.
18134LC_ALL=C
18135export LC_ALL
18136LANGUAGE=C
18137export LANGUAGE
18138
18139# CDPATH.
18140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18141
18142
18143# as_fn_error STATUS ERROR [LINENO LOG_FD]
18144# ----------------------------------------
18145# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18146# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18147# script with STATUS, using 1 if that was 0.
18148as_fn_error ()
18149{
18150  as_status=$1; test $as_status -eq 0 && as_status=1
18151  if test "$4"; then
18152    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18153    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18154  fi
18155  $as_echo "$as_me: error: $2" >&2
18156  as_fn_exit $as_status
18157} # as_fn_error
18158
18159
18160# as_fn_set_status STATUS
18161# -----------------------
18162# Set $? to STATUS, without forking.
18163as_fn_set_status ()
18164{
18165  return $1
18166} # as_fn_set_status
18167
18168# as_fn_exit STATUS
18169# -----------------
18170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18171as_fn_exit ()
18172{
18173  set +e
18174  as_fn_set_status $1
18175  exit $1
18176} # as_fn_exit
18177
18178# as_fn_unset VAR
18179# ---------------
18180# Portably unset VAR.
18181as_fn_unset ()
18182{
18183  { eval $1=; unset $1;}
18184}
18185as_unset=as_fn_unset
18186# as_fn_append VAR VALUE
18187# ----------------------
18188# Append the text in VALUE to the end of the definition contained in VAR. Take
18189# advantage of any shell optimizations that allow amortized linear growth over
18190# repeated appends, instead of the typical quadratic growth present in naive
18191# implementations.
18192if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18193  eval 'as_fn_append ()
18194  {
18195    eval $1+=\$2
18196  }'
18197else
18198  as_fn_append ()
18199  {
18200    eval $1=\$$1\$2
18201  }
18202fi # as_fn_append
18203
18204# as_fn_arith ARG...
18205# ------------------
18206# Perform arithmetic evaluation on the ARGs, and store the result in the
18207# global $as_val. Take advantage of shells that can avoid forks. The arguments
18208# must be portable across $(()) and expr.
18209if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18210  eval 'as_fn_arith ()
18211  {
18212    as_val=$(( $* ))
18213  }'
18214else
18215  as_fn_arith ()
18216  {
18217    as_val=`expr "$@" || test $? -eq 1`
18218  }
18219fi # as_fn_arith
18220
18221
18222if expr a : '\(a\)' >/dev/null 2>&1 &&
18223   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18224  as_expr=expr
18225else
18226  as_expr=false
18227fi
18228
18229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18230  as_basename=basename
18231else
18232  as_basename=false
18233fi
18234
18235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18236  as_dirname=dirname
18237else
18238  as_dirname=false
18239fi
18240
18241as_me=`$as_basename -- "$0" ||
18242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18243	 X"$0" : 'X\(//\)$' \| \
18244	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18245$as_echo X/"$0" |
18246    sed '/^.*\/\([^/][^/]*\)\/*$/{
18247	    s//\1/
18248	    q
18249	  }
18250	  /^X\/\(\/\/\)$/{
18251	    s//\1/
18252	    q
18253	  }
18254	  /^X\/\(\/\).*/{
18255	    s//\1/
18256	    q
18257	  }
18258	  s/.*/./; q'`
18259
18260# Avoid depending upon Character Ranges.
18261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18264as_cr_digits='0123456789'
18265as_cr_alnum=$as_cr_Letters$as_cr_digits
18266
18267ECHO_C= ECHO_N= ECHO_T=
18268case `echo -n x` in #(((((
18269-n*)
18270  case `echo 'xy\c'` in
18271  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18272  xy)  ECHO_C='\c';;
18273  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18274       ECHO_T='	';;
18275  esac;;
18276*)
18277  ECHO_N='-n';;
18278esac
18279
18280rm -f conf$$ conf$$.exe conf$$.file
18281if test -d conf$$.dir; then
18282  rm -f conf$$.dir/conf$$.file
18283else
18284  rm -f conf$$.dir
18285  mkdir conf$$.dir 2>/dev/null
18286fi
18287if (echo >conf$$.file) 2>/dev/null; then
18288  if ln -s conf$$.file conf$$ 2>/dev/null; then
18289    as_ln_s='ln -s'
18290    # ... but there are two gotchas:
18291    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18292    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18293    # In both cases, we have to default to `cp -pR'.
18294    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18295      as_ln_s='cp -pR'
18296  elif ln conf$$.file conf$$ 2>/dev/null; then
18297    as_ln_s=ln
18298  else
18299    as_ln_s='cp -pR'
18300  fi
18301else
18302  as_ln_s='cp -pR'
18303fi
18304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18305rmdir conf$$.dir 2>/dev/null
18306
18307
18308# as_fn_mkdir_p
18309# -------------
18310# Create "$as_dir" as a directory, including parents if necessary.
18311as_fn_mkdir_p ()
18312{
18313
18314  case $as_dir in #(
18315  -*) as_dir=./$as_dir;;
18316  esac
18317  test -d "$as_dir" || eval $as_mkdir_p || {
18318    as_dirs=
18319    while :; do
18320      case $as_dir in #(
18321      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18322      *) as_qdir=$as_dir;;
18323      esac
18324      as_dirs="'$as_qdir' $as_dirs"
18325      as_dir=`$as_dirname -- "$as_dir" ||
18326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327	 X"$as_dir" : 'X\(//\)[^/]' \| \
18328	 X"$as_dir" : 'X\(//\)$' \| \
18329	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18330$as_echo X"$as_dir" |
18331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18332	    s//\1/
18333	    q
18334	  }
18335	  /^X\(\/\/\)[^/].*/{
18336	    s//\1/
18337	    q
18338	  }
18339	  /^X\(\/\/\)$/{
18340	    s//\1/
18341	    q
18342	  }
18343	  /^X\(\/\).*/{
18344	    s//\1/
18345	    q
18346	  }
18347	  s/.*/./; q'`
18348      test -d "$as_dir" && break
18349    done
18350    test -z "$as_dirs" || eval "mkdir $as_dirs"
18351  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18352
18353
18354} # as_fn_mkdir_p
18355if mkdir -p . 2>/dev/null; then
18356  as_mkdir_p='mkdir -p "$as_dir"'
18357else
18358  test -d ./-p && rmdir ./-p
18359  as_mkdir_p=false
18360fi
18361
18362
18363# as_fn_executable_p FILE
18364# -----------------------
18365# Test if FILE is an executable regular file.
18366as_fn_executable_p ()
18367{
18368  test -f "$1" && test -x "$1"
18369} # as_fn_executable_p
18370as_test_x='test -x'
18371as_executable_p=as_fn_executable_p
18372
18373# Sed expression to map a string onto a valid CPP name.
18374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18375
18376# Sed expression to map a string onto a valid variable name.
18377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18378
18379
18380exec 6>&1
18381## ----------------------------------- ##
18382## Main body of $CONFIG_STATUS script. ##
18383## ----------------------------------- ##
18384_ASEOF
18385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18386
18387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388# Save the log message, to keep $0 and so on meaningful, and to
18389# report actual input values of CONFIG_FILES etc. instead of their
18390# values after options handling.
18391ac_log="
18392This file was extended by ldns $as_me 1.7.0, which was
18393generated by GNU Autoconf 2.69.  Invocation command line was
18394
18395  CONFIG_FILES    = $CONFIG_FILES
18396  CONFIG_HEADERS  = $CONFIG_HEADERS
18397  CONFIG_LINKS    = $CONFIG_LINKS
18398  CONFIG_COMMANDS = $CONFIG_COMMANDS
18399  $ $0 $@
18400
18401on `(hostname || uname -n) 2>/dev/null | sed 1q`
18402"
18403
18404_ACEOF
18405
18406case $ac_config_files in *"
18407"*) set x $ac_config_files; shift; ac_config_files=$*;;
18408esac
18409
18410case $ac_config_headers in *"
18411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18412esac
18413
18414
18415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416# Files that config.status was made for.
18417config_files="$ac_config_files"
18418config_headers="$ac_config_headers"
18419config_commands="$ac_config_commands"
18420
18421_ACEOF
18422
18423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18424ac_cs_usage="\
18425\`$as_me' instantiates files and other configuration actions
18426from templates according to the current configuration.  Unless the files
18427and actions are specified as TAGs, all are instantiated by default.
18428
18429Usage: $0 [OPTION]... [TAG]...
18430
18431  -h, --help       print this help, then exit
18432  -V, --version    print version number and configuration settings, then exit
18433      --config     print configuration, then exit
18434  -q, --quiet, --silent
18435                   do not print progress messages
18436  -d, --debug      don't remove temporary files
18437      --recheck    update $as_me by reconfiguring in the same conditions
18438      --file=FILE[:TEMPLATE]
18439                   instantiate the configuration file FILE
18440      --header=FILE[:TEMPLATE]
18441                   instantiate the configuration header FILE
18442
18443Configuration files:
18444$config_files
18445
18446Configuration headers:
18447$config_headers
18448
18449Configuration commands:
18450$config_commands
18451
18452Report bugs to <libdns@nlnetlabs.nl>."
18453
18454_ACEOF
18455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18456ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18457ac_cs_version="\\
18458ldns config.status 1.7.0
18459configured by $0, generated by GNU Autoconf 2.69,
18460  with options \\"\$ac_cs_config\\"
18461
18462Copyright (C) 2012 Free Software Foundation, Inc.
18463This config.status script is free software; the Free Software Foundation
18464gives unlimited permission to copy, distribute and modify it."
18465
18466ac_pwd='$ac_pwd'
18467srcdir='$srcdir'
18468AWK='$AWK'
18469test -n "\$AWK" || AWK=awk
18470_ACEOF
18471
18472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18473# The default lists apply if the user does not specify any file.
18474ac_need_defaults=:
18475while test $# != 0
18476do
18477  case $1 in
18478  --*=?*)
18479    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18480    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18481    ac_shift=:
18482    ;;
18483  --*=)
18484    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18485    ac_optarg=
18486    ac_shift=:
18487    ;;
18488  *)
18489    ac_option=$1
18490    ac_optarg=$2
18491    ac_shift=shift
18492    ;;
18493  esac
18494
18495  case $ac_option in
18496  # Handling of the options.
18497  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18498    ac_cs_recheck=: ;;
18499  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18500    $as_echo "$ac_cs_version"; exit ;;
18501  --config | --confi | --conf | --con | --co | --c )
18502    $as_echo "$ac_cs_config"; exit ;;
18503  --debug | --debu | --deb | --de | --d | -d )
18504    debug=: ;;
18505  --file | --fil | --fi | --f )
18506    $ac_shift
18507    case $ac_optarg in
18508    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18509    '') as_fn_error $? "missing file argument" ;;
18510    esac
18511    as_fn_append CONFIG_FILES " '$ac_optarg'"
18512    ac_need_defaults=false;;
18513  --header | --heade | --head | --hea )
18514    $ac_shift
18515    case $ac_optarg in
18516    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18517    esac
18518    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18519    ac_need_defaults=false;;
18520  --he | --h)
18521    # Conflict between --help and --header
18522    as_fn_error $? "ambiguous option: \`$1'
18523Try \`$0 --help' for more information.";;
18524  --help | --hel | -h )
18525    $as_echo "$ac_cs_usage"; exit ;;
18526  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18527  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18528    ac_cs_silent=: ;;
18529
18530  # This is an error.
18531  -*) as_fn_error $? "unrecognized option: \`$1'
18532Try \`$0 --help' for more information." ;;
18533
18534  *) as_fn_append ac_config_targets " $1"
18535     ac_need_defaults=false ;;
18536
18537  esac
18538  shift
18539done
18540
18541ac_configure_extra_args=
18542
18543if $ac_cs_silent; then
18544  exec 6>/dev/null
18545  ac_configure_extra_args="$ac_configure_extra_args --silent"
18546fi
18547
18548_ACEOF
18549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18550if \$ac_cs_recheck; then
18551  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18552  shift
18553  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18554  CONFIG_SHELL='$SHELL'
18555  export CONFIG_SHELL
18556  exec "\$@"
18557fi
18558
18559_ACEOF
18560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561exec 5>>config.log
18562{
18563  echo
18564  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18565## Running $as_me. ##
18566_ASBOX
18567  $as_echo "$ac_log"
18568} >&5
18569
18570_ACEOF
18571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572#
18573# INIT-COMMANDS
18574#
18575
18576
18577# The HP-UX ksh and POSIX shell print the target directory to stdout
18578# if CDPATH is set.
18579(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18580
18581sed_quote_subst='$sed_quote_subst'
18582double_quote_subst='$double_quote_subst'
18583delay_variable_subst='$delay_variable_subst'
18584macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18585macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18586enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18587enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18588pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18589enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18590shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18591SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18592ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18593PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18594host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18595host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18596host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18597build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18598build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18599build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18600SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18601Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18602GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18603EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18604FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18605LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18606NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18607LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18608max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18609ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18610exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18611lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18612lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18613lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18614lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18615lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18616reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18617reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18618OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18619deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18620file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18621file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18622want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18623DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18624sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18625AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18626AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18627archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18628STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18629RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18630old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18631old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18632old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18633lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18634CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18635CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18636compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18637GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18638lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18639lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18640lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18641lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18642lt_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"`'
18643lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18644nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18645lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18646lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18647objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18648MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18649lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18650lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18651lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18652lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18653lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18654need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18655MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18656DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18657NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18658LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18659OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18660OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18661libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18662shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18663extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18664archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18665enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18666export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18667whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18668compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18669old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18670old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18671archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18672archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18673module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18674module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18675with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18676allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18677no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18678hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18679hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18680hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18681hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18682hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18683hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18684hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18685inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18686link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18687always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18688export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18689exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18690include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18691prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18692postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18693file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18694variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18695need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18696need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18697version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18698runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18699shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18700shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18701libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18702library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18703soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18704install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18705postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18706postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18707finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18708finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18709hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18710sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18711configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18712configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18713hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18714enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18715enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18716enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18717old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18718striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18719
18720LTCC='$LTCC'
18721LTCFLAGS='$LTCFLAGS'
18722compiler='$compiler_DEFAULT'
18723
18724# A function that is used when there is no print builtin or printf.
18725func_fallback_echo ()
18726{
18727  eval 'cat <<_LTECHO_EOF
18728\$1
18729_LTECHO_EOF'
18730}
18731
18732# Quote evaled strings.
18733for var in SHELL \
18734ECHO \
18735PATH_SEPARATOR \
18736SED \
18737GREP \
18738EGREP \
18739FGREP \
18740LD \
18741NM \
18742LN_S \
18743lt_SP2NL \
18744lt_NL2SP \
18745reload_flag \
18746OBJDUMP \
18747deplibs_check_method \
18748file_magic_cmd \
18749file_magic_glob \
18750want_nocaseglob \
18751DLLTOOL \
18752sharedlib_from_linklib_cmd \
18753AR \
18754AR_FLAGS \
18755archiver_list_spec \
18756STRIP \
18757RANLIB \
18758CC \
18759CFLAGS \
18760compiler \
18761lt_cv_sys_global_symbol_pipe \
18762lt_cv_sys_global_symbol_to_cdecl \
18763lt_cv_sys_global_symbol_to_import \
18764lt_cv_sys_global_symbol_to_c_name_address \
18765lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18766lt_cv_nm_interface \
18767nm_file_list_spec \
18768lt_cv_truncate_bin \
18769lt_prog_compiler_no_builtin_flag \
18770lt_prog_compiler_pic \
18771lt_prog_compiler_wl \
18772lt_prog_compiler_static \
18773lt_cv_prog_compiler_c_o \
18774need_locks \
18775MANIFEST_TOOL \
18776DSYMUTIL \
18777NMEDIT \
18778LIPO \
18779OTOOL \
18780OTOOL64 \
18781shrext_cmds \
18782export_dynamic_flag_spec \
18783whole_archive_flag_spec \
18784compiler_needs_object \
18785with_gnu_ld \
18786allow_undefined_flag \
18787no_undefined_flag \
18788hardcode_libdir_flag_spec \
18789hardcode_libdir_separator \
18790exclude_expsyms \
18791include_expsyms \
18792file_list_spec \
18793variables_saved_for_relink \
18794libname_spec \
18795library_names_spec \
18796soname_spec \
18797install_override_mode \
18798finish_eval \
18799old_striplib \
18800striplib; do
18801    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18802    *[\\\\\\\`\\"\\\$]*)
18803      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18804      ;;
18805    *)
18806      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18807      ;;
18808    esac
18809done
18810
18811# Double-quote double-evaled strings.
18812for var in reload_cmds \
18813old_postinstall_cmds \
18814old_postuninstall_cmds \
18815old_archive_cmds \
18816extract_expsyms_cmds \
18817old_archive_from_new_cmds \
18818old_archive_from_expsyms_cmds \
18819archive_cmds \
18820archive_expsym_cmds \
18821module_cmds \
18822module_expsym_cmds \
18823export_symbols_cmds \
18824prelink_cmds \
18825postlink_cmds \
18826postinstall_cmds \
18827postuninstall_cmds \
18828finish_cmds \
18829sys_lib_search_path_spec \
18830configure_time_dlsearch_path \
18831configure_time_lt_sys_library_path; do
18832    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18833    *[\\\\\\\`\\"\\\$]*)
18834      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18835      ;;
18836    *)
18837      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18838      ;;
18839    esac
18840done
18841
18842ac_aux_dir='$ac_aux_dir'
18843
18844# See if we are running on zsh, and set the options that allow our
18845# commands through without removal of \ escapes INIT.
18846if test -n "\${ZSH_VERSION+set}"; then
18847   setopt NO_GLOB_SUBST
18848fi
18849
18850
18851    PACKAGE='$PACKAGE'
18852    VERSION='$VERSION'
18853    RM='$RM'
18854    ofile='$ofile'
18855
18856
18857
18858
18859_ACEOF
18860
18861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18862
18863# Handling of arguments.
18864for ac_config_target in $ac_config_targets
18865do
18866  case $ac_config_target in
18867    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18868    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
18869    "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
18870    "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
18871
18872  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18873  esac
18874done
18875
18876
18877# If the user did not use the arguments to specify the items to instantiate,
18878# then the envvar interface is used.  Set only those that are not.
18879# We use the long form for the default assignment because of an extremely
18880# bizarre bug on SunOS 4.1.3.
18881if $ac_need_defaults; then
18882  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18883  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18884  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18885fi
18886
18887# Have a temporary directory for convenience.  Make it in the build tree
18888# simply because there is no reason against having it here, and in addition,
18889# creating and moving files from /tmp can sometimes cause problems.
18890# Hook for its removal unless debugging.
18891# Note that there is a small window in which the directory will not be cleaned:
18892# after its creation but before its name has been assigned to `$tmp'.
18893$debug ||
18894{
18895  tmp= ac_tmp=
18896  trap 'exit_status=$?
18897  : "${ac_tmp:=$tmp}"
18898  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18899' 0
18900  trap 'as_fn_exit 1' 1 2 13 15
18901}
18902# Create a (secure) tmp directory for tmp files.
18903
18904{
18905  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18906  test -d "$tmp"
18907}  ||
18908{
18909  tmp=./conf$$-$RANDOM
18910  (umask 077 && mkdir "$tmp")
18911} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18912ac_tmp=$tmp
18913
18914# Set up the scripts for CONFIG_FILES section.
18915# No need to generate them if there are no CONFIG_FILES.
18916# This happens for instance with `./config.status config.h'.
18917if test -n "$CONFIG_FILES"; then
18918
18919
18920ac_cr=`echo X | tr X '\015'`
18921# On cygwin, bash can eat \r inside `` if the user requested igncr.
18922# But we know of no other shell where ac_cr would be empty at this
18923# point, so we can use a bashism as a fallback.
18924if test "x$ac_cr" = x; then
18925  eval ac_cr=\$\'\\r\'
18926fi
18927ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18928if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18929  ac_cs_awk_cr='\\r'
18930else
18931  ac_cs_awk_cr=$ac_cr
18932fi
18933
18934echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18935_ACEOF
18936
18937
18938{
18939  echo "cat >conf$$subs.awk <<_ACEOF" &&
18940  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18941  echo "_ACEOF"
18942} >conf$$subs.sh ||
18943  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18944ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18945ac_delim='%!_!# '
18946for ac_last_try in false false false false false :; do
18947  . ./conf$$subs.sh ||
18948    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18949
18950  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18951  if test $ac_delim_n = $ac_delim_num; then
18952    break
18953  elif $ac_last_try; then
18954    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18955  else
18956    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18957  fi
18958done
18959rm -f conf$$subs.sh
18960
18961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18963_ACEOF
18964sed -n '
18965h
18966s/^/S["/; s/!.*/"]=/
18967p
18968g
18969s/^[^!]*!//
18970:repl
18971t repl
18972s/'"$ac_delim"'$//
18973t delim
18974:nl
18975h
18976s/\(.\{148\}\)..*/\1/
18977t more1
18978s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18979p
18980n
18981b repl
18982:more1
18983s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18984p
18985g
18986s/.\{148\}//
18987t nl
18988:delim
18989h
18990s/\(.\{148\}\)..*/\1/
18991t more2
18992s/["\\]/\\&/g; s/^/"/; s/$/"/
18993p
18994b
18995:more2
18996s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18997p
18998g
18999s/.\{148\}//
19000t delim
19001' <conf$$subs.awk | sed '
19002/^[^""]/{
19003  N
19004  s/\n//
19005}
19006' >>$CONFIG_STATUS || ac_write_fail=1
19007rm -f conf$$subs.awk
19008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19009_ACAWK
19010cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19011  for (key in S) S_is_set[key] = 1
19012  FS = ""
19013
19014}
19015{
19016  line = $ 0
19017  nfields = split(line, field, "@")
19018  substed = 0
19019  len = length(field[1])
19020  for (i = 2; i < nfields; i++) {
19021    key = field[i]
19022    keylen = length(key)
19023    if (S_is_set[key]) {
19024      value = S[key]
19025      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19026      len += length(value) + length(field[++i])
19027      substed = 1
19028    } else
19029      len += 1 + keylen
19030  }
19031
19032  print line
19033}
19034
19035_ACAWK
19036_ACEOF
19037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19039  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19040else
19041  cat
19042fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19043  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19044_ACEOF
19045
19046# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19047# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19048# trailing colons and then remove the whole line if VPATH becomes empty
19049# (actually we leave an empty line to preserve line numbers).
19050if test "x$srcdir" = x.; then
19051  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19052h
19053s///
19054s/^/:/
19055s/[	 ]*$/:/
19056s/:\$(srcdir):/:/g
19057s/:\${srcdir}:/:/g
19058s/:@srcdir@:/:/g
19059s/^:*//
19060s/:*$//
19061x
19062s/\(=[	 ]*\).*/\1/
19063G
19064s/\n//
19065s/^[^=]*=[	 ]*$//
19066}'
19067fi
19068
19069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19070fi # test -n "$CONFIG_FILES"
19071
19072# Set up the scripts for CONFIG_HEADERS section.
19073# No need to generate them if there are no CONFIG_HEADERS.
19074# This happens for instance with `./config.status Makefile'.
19075if test -n "$CONFIG_HEADERS"; then
19076cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19077BEGIN {
19078_ACEOF
19079
19080# Transform confdefs.h into an awk script `defines.awk', embedded as
19081# here-document in config.status, that substitutes the proper values into
19082# config.h.in to produce config.h.
19083
19084# Create a delimiter string that does not exist in confdefs.h, to ease
19085# handling of long lines.
19086ac_delim='%!_!# '
19087for ac_last_try in false false :; do
19088  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19089  if test -z "$ac_tt"; then
19090    break
19091  elif $ac_last_try; then
19092    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19093  else
19094    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19095  fi
19096done
19097
19098# For the awk script, D is an array of macro values keyed by name,
19099# likewise P contains macro parameters if any.  Preserve backslash
19100# newline sequences.
19101
19102ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19103sed -n '
19104s/.\{148\}/&'"$ac_delim"'/g
19105t rset
19106:rset
19107s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19108t def
19109d
19110:def
19111s/\\$//
19112t bsnl
19113s/["\\]/\\&/g
19114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19115D["\1"]=" \3"/p
19116s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19117d
19118:bsnl
19119s/["\\]/\\&/g
19120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19121D["\1"]=" \3\\\\\\n"\\/p
19122t cont
19123s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19124t cont
19125d
19126:cont
19127n
19128s/.\{148\}/&'"$ac_delim"'/g
19129t clear
19130:clear
19131s/\\$//
19132t bsnlc
19133s/["\\]/\\&/g; s/^/"/; s/$/"/p
19134d
19135:bsnlc
19136s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19137b cont
19138' <confdefs.h | sed '
19139s/'"$ac_delim"'/"\\\
19140"/g' >>$CONFIG_STATUS || ac_write_fail=1
19141
19142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19143  for (key in D) D_is_set[key] = 1
19144  FS = ""
19145}
19146/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19147  line = \$ 0
19148  split(line, arg, " ")
19149  if (arg[1] == "#") {
19150    defundef = arg[2]
19151    mac1 = arg[3]
19152  } else {
19153    defundef = substr(arg[1], 2)
19154    mac1 = arg[2]
19155  }
19156  split(mac1, mac2, "(") #)
19157  macro = mac2[1]
19158  prefix = substr(line, 1, index(line, defundef) - 1)
19159  if (D_is_set[macro]) {
19160    # Preserve the white space surrounding the "#".
19161    print prefix "define", macro P[macro] D[macro]
19162    next
19163  } else {
19164    # Replace #undef with comments.  This is necessary, for example,
19165    # in the case of _POSIX_SOURCE, which is predefined and required
19166    # on some systems where configure will not decide to define it.
19167    if (defundef == "undef") {
19168      print "/*", prefix defundef, macro, "*/"
19169      next
19170    }
19171  }
19172}
19173{ print }
19174_ACAWK
19175_ACEOF
19176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19177  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19178fi # test -n "$CONFIG_HEADERS"
19179
19180
19181eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19182shift
19183for ac_tag
19184do
19185  case $ac_tag in
19186  :[FHLC]) ac_mode=$ac_tag; continue;;
19187  esac
19188  case $ac_mode$ac_tag in
19189  :[FHL]*:*);;
19190  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19191  :[FH]-) ac_tag=-:-;;
19192  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19193  esac
19194  ac_save_IFS=$IFS
19195  IFS=:
19196  set x $ac_tag
19197  IFS=$ac_save_IFS
19198  shift
19199  ac_file=$1
19200  shift
19201
19202  case $ac_mode in
19203  :L) ac_source=$1;;
19204  :[FH])
19205    ac_file_inputs=
19206    for ac_f
19207    do
19208      case $ac_f in
19209      -) ac_f="$ac_tmp/stdin";;
19210      *) # Look for the file first in the build tree, then in the source tree
19211	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19212	 # because $ac_f cannot contain `:'.
19213	 test -f "$ac_f" ||
19214	   case $ac_f in
19215	   [\\/$]*) false;;
19216	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19217	   esac ||
19218	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19219      esac
19220      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19221      as_fn_append ac_file_inputs " '$ac_f'"
19222    done
19223
19224    # Let's still pretend it is `configure' which instantiates (i.e., don't
19225    # use $as_me), people would be surprised to read:
19226    #    /* config.h.  Generated by config.status.  */
19227    configure_input='Generated from '`
19228	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19229	`' by configure.'
19230    if test x"$ac_file" != x-; then
19231      configure_input="$ac_file.  $configure_input"
19232      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19233$as_echo "$as_me: creating $ac_file" >&6;}
19234    fi
19235    # Neutralize special characters interpreted by sed in replacement strings.
19236    case $configure_input in #(
19237    *\&* | *\|* | *\\* )
19238       ac_sed_conf_input=`$as_echo "$configure_input" |
19239       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19240    *) ac_sed_conf_input=$configure_input;;
19241    esac
19242
19243    case $ac_tag in
19244    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19245      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19246    esac
19247    ;;
19248  esac
19249
19250  ac_dir=`$as_dirname -- "$ac_file" ||
19251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19252	 X"$ac_file" : 'X\(//\)[^/]' \| \
19253	 X"$ac_file" : 'X\(//\)$' \| \
19254	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19255$as_echo X"$ac_file" |
19256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19257	    s//\1/
19258	    q
19259	  }
19260	  /^X\(\/\/\)[^/].*/{
19261	    s//\1/
19262	    q
19263	  }
19264	  /^X\(\/\/\)$/{
19265	    s//\1/
19266	    q
19267	  }
19268	  /^X\(\/\).*/{
19269	    s//\1/
19270	    q
19271	  }
19272	  s/.*/./; q'`
19273  as_dir="$ac_dir"; as_fn_mkdir_p
19274  ac_builddir=.
19275
19276case "$ac_dir" in
19277.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19278*)
19279  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19280  # A ".." for each directory in $ac_dir_suffix.
19281  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19282  case $ac_top_builddir_sub in
19283  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19284  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19285  esac ;;
19286esac
19287ac_abs_top_builddir=$ac_pwd
19288ac_abs_builddir=$ac_pwd$ac_dir_suffix
19289# for backward compatibility:
19290ac_top_builddir=$ac_top_build_prefix
19291
19292case $srcdir in
19293  .)  # We are building in place.
19294    ac_srcdir=.
19295    ac_top_srcdir=$ac_top_builddir_sub
19296    ac_abs_top_srcdir=$ac_pwd ;;
19297  [\\/]* | ?:[\\/]* )  # Absolute name.
19298    ac_srcdir=$srcdir$ac_dir_suffix;
19299    ac_top_srcdir=$srcdir
19300    ac_abs_top_srcdir=$srcdir ;;
19301  *) # Relative name.
19302    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19303    ac_top_srcdir=$ac_top_build_prefix$srcdir
19304    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19305esac
19306ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19307
19308
19309  case $ac_mode in
19310  :F)
19311  #
19312  # CONFIG_FILE
19313  #
19314
19315_ACEOF
19316
19317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19318# If the template does not know about datarootdir, expand it.
19319# FIXME: This hack should be removed a few years after 2.60.
19320ac_datarootdir_hack=; ac_datarootdir_seen=
19321ac_sed_dataroot='
19322/datarootdir/ {
19323  p
19324  q
19325}
19326/@datadir@/p
19327/@docdir@/p
19328/@infodir@/p
19329/@localedir@/p
19330/@mandir@/p'
19331case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19332*datarootdir*) ac_datarootdir_seen=yes;;
19333*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19334  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19335$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19336_ACEOF
19337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338  ac_datarootdir_hack='
19339  s&@datadir@&$datadir&g
19340  s&@docdir@&$docdir&g
19341  s&@infodir@&$infodir&g
19342  s&@localedir@&$localedir&g
19343  s&@mandir@&$mandir&g
19344  s&\\\${datarootdir}&$datarootdir&g' ;;
19345esac
19346_ACEOF
19347
19348# Neutralize VPATH when `$srcdir' = `.'.
19349# Shell code in configure.ac might set extrasub.
19350# FIXME: do we really want to maintain this feature?
19351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19352ac_sed_extra="$ac_vpsub
19353$extrasub
19354_ACEOF
19355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356:t
19357/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19358s|@configure_input@|$ac_sed_conf_input|;t t
19359s&@top_builddir@&$ac_top_builddir_sub&;t t
19360s&@top_build_prefix@&$ac_top_build_prefix&;t t
19361s&@srcdir@&$ac_srcdir&;t t
19362s&@abs_srcdir@&$ac_abs_srcdir&;t t
19363s&@top_srcdir@&$ac_top_srcdir&;t t
19364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19365s&@builddir@&$ac_builddir&;t t
19366s&@abs_builddir@&$ac_abs_builddir&;t t
19367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19368$ac_datarootdir_hack
19369"
19370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19371  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19372
19373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19374  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19375  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19376      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19377  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378which seems to be undefined.  Please make sure it is defined" >&5
19379$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19380which seems to be undefined.  Please make sure it is defined" >&2;}
19381
19382  rm -f "$ac_tmp/stdin"
19383  case $ac_file in
19384  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19385  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19386  esac \
19387  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19388 ;;
19389  :H)
19390  #
19391  # CONFIG_HEADER
19392  #
19393  if test x"$ac_file" != x-; then
19394    {
19395      $as_echo "/* $configure_input  */" \
19396      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19397    } >"$ac_tmp/config.h" \
19398      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19399    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19400      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19401$as_echo "$as_me: $ac_file is unchanged" >&6;}
19402    else
19403      rm -f "$ac_file"
19404      mv "$ac_tmp/config.h" "$ac_file" \
19405	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19406    fi
19407  else
19408    $as_echo "/* $configure_input  */" \
19409      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19410      || as_fn_error $? "could not create -" "$LINENO" 5
19411  fi
19412 ;;
19413
19414  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19415$as_echo "$as_me: executing $ac_file commands" >&6;}
19416 ;;
19417  esac
19418
19419
19420  case $ac_file$ac_mode in
19421    "libtool":C)
19422
19423    # See if we are running on zsh, and set the options that allow our
19424    # commands through without removal of \ escapes.
19425    if test -n "${ZSH_VERSION+set}"; then
19426      setopt NO_GLOB_SUBST
19427    fi
19428
19429    cfgfile=${ofile}T
19430    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19431    $RM "$cfgfile"
19432
19433    cat <<_LT_EOF >> "$cfgfile"
19434#! $SHELL
19435# Generated automatically by $as_me ($PACKAGE) $VERSION
19436# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19437
19438# Provide generalized library-building support services.
19439# Written by Gordon Matzigkeit, 1996
19440
19441# Copyright (C) 2014 Free Software Foundation, Inc.
19442# This is free software; see the source for copying conditions.  There is NO
19443# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19444
19445# GNU Libtool is free software; you can redistribute it and/or modify
19446# it under the terms of the GNU General Public License as published by
19447# the Free Software Foundation; either version 2 of of the License, or
19448# (at your option) any later version.
19449#
19450# As a special exception to the GNU General Public License, if you
19451# distribute this file as part of a program or library that is built
19452# using GNU Libtool, you may include this file under the  same
19453# distribution terms that you use for the rest of that program.
19454#
19455# GNU Libtool is distributed in the hope that it will be useful, but
19456# WITHOUT ANY WARRANTY; without even the implied warranty of
19457# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19458# GNU General Public License for more details.
19459#
19460# You should have received a copy of the GNU General Public License
19461# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19462
19463
19464# The names of the tagged configurations supported by this script.
19465available_tags=''
19466
19467# Configured defaults for sys_lib_dlsearch_path munging.
19468: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19469
19470# ### BEGIN LIBTOOL CONFIG
19471
19472# Which release of libtool.m4 was used?
19473macro_version=$macro_version
19474macro_revision=$macro_revision
19475
19476# Whether or not to build shared libraries.
19477build_libtool_libs=$enable_shared
19478
19479# Whether or not to build static libraries.
19480build_old_libs=$enable_static
19481
19482# What type of objects to build.
19483pic_mode=$pic_mode
19484
19485# Whether or not to optimize for fast installation.
19486fast_install=$enable_fast_install
19487
19488# Shared archive member basename,for filename based shared library versioning on AIX.
19489shared_archive_member_spec=$shared_archive_member_spec
19490
19491# Shell to use when invoking shell scripts.
19492SHELL=$lt_SHELL
19493
19494# An echo program that protects backslashes.
19495ECHO=$lt_ECHO
19496
19497# The PATH separator for the build system.
19498PATH_SEPARATOR=$lt_PATH_SEPARATOR
19499
19500# The host system.
19501host_alias=$host_alias
19502host=$host
19503host_os=$host_os
19504
19505# The build system.
19506build_alias=$build_alias
19507build=$build
19508build_os=$build_os
19509
19510# A sed program that does not truncate output.
19511SED=$lt_SED
19512
19513# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19514Xsed="\$SED -e 1s/^X//"
19515
19516# A grep program that handles long lines.
19517GREP=$lt_GREP
19518
19519# An ERE matcher.
19520EGREP=$lt_EGREP
19521
19522# A literal string matcher.
19523FGREP=$lt_FGREP
19524
19525# A BSD- or MS-compatible name lister.
19526NM=$lt_NM
19527
19528# Whether we need soft or hard links.
19529LN_S=$lt_LN_S
19530
19531# What is the maximum length of a command?
19532max_cmd_len=$max_cmd_len
19533
19534# Object file suffix (normally "o").
19535objext=$ac_objext
19536
19537# Executable file suffix (normally "").
19538exeext=$exeext
19539
19540# whether the shell understands "unset".
19541lt_unset=$lt_unset
19542
19543# turn spaces into newlines.
19544SP2NL=$lt_lt_SP2NL
19545
19546# turn newlines into spaces.
19547NL2SP=$lt_lt_NL2SP
19548
19549# convert \$build file names to \$host format.
19550to_host_file_cmd=$lt_cv_to_host_file_cmd
19551
19552# convert \$build files to toolchain format.
19553to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19554
19555# An object symbol dumper.
19556OBJDUMP=$lt_OBJDUMP
19557
19558# Method to check whether dependent libraries are shared objects.
19559deplibs_check_method=$lt_deplibs_check_method
19560
19561# Command to use when deplibs_check_method = "file_magic".
19562file_magic_cmd=$lt_file_magic_cmd
19563
19564# How to find potential files when deplibs_check_method = "file_magic".
19565file_magic_glob=$lt_file_magic_glob
19566
19567# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19568want_nocaseglob=$lt_want_nocaseglob
19569
19570# DLL creation program.
19571DLLTOOL=$lt_DLLTOOL
19572
19573# Command to associate shared and link libraries.
19574sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19575
19576# The archiver.
19577AR=$lt_AR
19578
19579# Flags to create an archive.
19580AR_FLAGS=$lt_AR_FLAGS
19581
19582# How to feed a file listing to the archiver.
19583archiver_list_spec=$lt_archiver_list_spec
19584
19585# A symbol stripping program.
19586STRIP=$lt_STRIP
19587
19588# Commands used to install an old-style archive.
19589RANLIB=$lt_RANLIB
19590old_postinstall_cmds=$lt_old_postinstall_cmds
19591old_postuninstall_cmds=$lt_old_postuninstall_cmds
19592
19593# Whether to use a lock for old archive extraction.
19594lock_old_archive_extraction=$lock_old_archive_extraction
19595
19596# A C compiler.
19597LTCC=$lt_CC
19598
19599# LTCC compiler flags.
19600LTCFLAGS=$lt_CFLAGS
19601
19602# Take the output of nm and produce a listing of raw symbols and C names.
19603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19604
19605# Transform the output of nm in a proper C declaration.
19606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19607
19608# Transform the output of nm into a list of symbols to manually relocate.
19609global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19610
19611# Transform the output of nm in a C name address pair.
19612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19613
19614# Transform the output of nm in a C name address pair when lib prefix is needed.
19615global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19616
19617# The name lister interface.
19618nm_interface=$lt_lt_cv_nm_interface
19619
19620# Specify filename containing input files for \$NM.
19621nm_file_list_spec=$lt_nm_file_list_spec
19622
19623# The root where to search for dependent libraries,and where our libraries should be installed.
19624lt_sysroot=$lt_sysroot
19625
19626# Command to truncate a binary pipe.
19627lt_truncate_bin=$lt_lt_cv_truncate_bin
19628
19629# The name of the directory that contains temporary libtool files.
19630objdir=$objdir
19631
19632# Used to examine libraries when file_magic_cmd begins with "file".
19633MAGIC_CMD=$MAGIC_CMD
19634
19635# Must we lock files when doing compilation?
19636need_locks=$lt_need_locks
19637
19638# Manifest tool.
19639MANIFEST_TOOL=$lt_MANIFEST_TOOL
19640
19641# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19642DSYMUTIL=$lt_DSYMUTIL
19643
19644# Tool to change global to local symbols on Mac OS X.
19645NMEDIT=$lt_NMEDIT
19646
19647# Tool to manipulate fat objects and archives on Mac OS X.
19648LIPO=$lt_LIPO
19649
19650# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19651OTOOL=$lt_OTOOL
19652
19653# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19654OTOOL64=$lt_OTOOL64
19655
19656# Old archive suffix (normally "a").
19657libext=$libext
19658
19659# Shared library suffix (normally ".so").
19660shrext_cmds=$lt_shrext_cmds
19661
19662# The commands to extract the exported symbol list from a shared archive.
19663extract_expsyms_cmds=$lt_extract_expsyms_cmds
19664
19665# Variables whose values should be saved in libtool wrapper scripts and
19666# restored at link time.
19667variables_saved_for_relink=$lt_variables_saved_for_relink
19668
19669# Do we need the "lib" prefix for modules?
19670need_lib_prefix=$need_lib_prefix
19671
19672# Do we need a version for libraries?
19673need_version=$need_version
19674
19675# Library versioning type.
19676version_type=$version_type
19677
19678# Shared library runtime path variable.
19679runpath_var=$runpath_var
19680
19681# Shared library path variable.
19682shlibpath_var=$shlibpath_var
19683
19684# Is shlibpath searched before the hard-coded library search path?
19685shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19686
19687# Format of library name prefix.
19688libname_spec=$lt_libname_spec
19689
19690# List of archive names.  First name is the real one, the rest are links.
19691# The last name is the one that the linker finds with -lNAME
19692library_names_spec=$lt_library_names_spec
19693
19694# The coded name of the library, if different from the real name.
19695soname_spec=$lt_soname_spec
19696
19697# Permission mode override for installation of shared libraries.
19698install_override_mode=$lt_install_override_mode
19699
19700# Command to use after installation of a shared archive.
19701postinstall_cmds=$lt_postinstall_cmds
19702
19703# Command to use after uninstallation of a shared archive.
19704postuninstall_cmds=$lt_postuninstall_cmds
19705
19706# Commands used to finish a libtool library installation in a directory.
19707finish_cmds=$lt_finish_cmds
19708
19709# As "finish_cmds", except a single script fragment to be evaled but
19710# not shown.
19711finish_eval=$lt_finish_eval
19712
19713# Whether we should hardcode library paths into libraries.
19714hardcode_into_libs=$hardcode_into_libs
19715
19716# Compile-time system search path for libraries.
19717sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19718
19719# Detected run-time system search path for libraries.
19720sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19721
19722# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19723configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19724
19725# Whether dlopen is supported.
19726dlopen_support=$enable_dlopen
19727
19728# Whether dlopen of programs is supported.
19729dlopen_self=$enable_dlopen_self
19730
19731# Whether dlopen of statically linked programs is supported.
19732dlopen_self_static=$enable_dlopen_self_static
19733
19734# Commands to strip libraries.
19735old_striplib=$lt_old_striplib
19736striplib=$lt_striplib
19737
19738
19739# The linker used to build libraries.
19740LD=$lt_LD
19741
19742# How to create reloadable object files.
19743reload_flag=$lt_reload_flag
19744reload_cmds=$lt_reload_cmds
19745
19746# Commands used to build an old-style archive.
19747old_archive_cmds=$lt_old_archive_cmds
19748
19749# A language specific compiler.
19750CC=$lt_compiler
19751
19752# Is the compiler the GNU compiler?
19753with_gcc=$GCC
19754
19755# Compiler flag to turn off builtin functions.
19756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19757
19758# Additional compiler flags for building library objects.
19759pic_flag=$lt_lt_prog_compiler_pic
19760
19761# How to pass a linker flag through the compiler.
19762wl=$lt_lt_prog_compiler_wl
19763
19764# Compiler flag to prevent dynamic linking.
19765link_static_flag=$lt_lt_prog_compiler_static
19766
19767# Does compiler simultaneously support -c and -o options?
19768compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19769
19770# Whether or not to add -lc for building shared libraries.
19771build_libtool_need_lc=$archive_cmds_need_lc
19772
19773# Whether or not to disallow shared libs when runtime libs are static.
19774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19775
19776# Compiler flag to allow reflexive dlopens.
19777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19778
19779# Compiler flag to generate shared objects directly from archives.
19780whole_archive_flag_spec=$lt_whole_archive_flag_spec
19781
19782# Whether the compiler copes with passing no objects directly.
19783compiler_needs_object=$lt_compiler_needs_object
19784
19785# Create an old-style archive from a shared archive.
19786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19787
19788# Create a temporary old-style archive to link instead of a shared archive.
19789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19790
19791# Commands used to build a shared archive.
19792archive_cmds=$lt_archive_cmds
19793archive_expsym_cmds=$lt_archive_expsym_cmds
19794
19795# Commands used to build a loadable module if different from building
19796# a shared archive.
19797module_cmds=$lt_module_cmds
19798module_expsym_cmds=$lt_module_expsym_cmds
19799
19800# Whether we are building with GNU ld or not.
19801with_gnu_ld=$lt_with_gnu_ld
19802
19803# Flag that allows shared libraries with undefined symbols to be built.
19804allow_undefined_flag=$lt_allow_undefined_flag
19805
19806# Flag that enforces no undefined symbols.
19807no_undefined_flag=$lt_no_undefined_flag
19808
19809# Flag to hardcode \$libdir into a binary during linking.
19810# This must work even if \$libdir does not exist
19811hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19812
19813# Whether we need a single "-rpath" flag with a separated argument.
19814hardcode_libdir_separator=$lt_hardcode_libdir_separator
19815
19816# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19817# DIR into the resulting binary.
19818hardcode_direct=$hardcode_direct
19819
19820# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19821# DIR into the resulting binary and the resulting library dependency is
19822# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19823# library is relocated.
19824hardcode_direct_absolute=$hardcode_direct_absolute
19825
19826# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19827# into the resulting binary.
19828hardcode_minus_L=$hardcode_minus_L
19829
19830# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19831# into the resulting binary.
19832hardcode_shlibpath_var=$hardcode_shlibpath_var
19833
19834# Set to "yes" if building a shared library automatically hardcodes DIR
19835# into the library and all subsequent libraries and executables linked
19836# against it.
19837hardcode_automatic=$hardcode_automatic
19838
19839# Set to yes if linker adds runtime paths of dependent libraries
19840# to runtime path list.
19841inherit_rpath=$inherit_rpath
19842
19843# Whether libtool must link a program against all its dependency libraries.
19844link_all_deplibs=$link_all_deplibs
19845
19846# Set to "yes" if exported symbols are required.
19847always_export_symbols=$always_export_symbols
19848
19849# The commands to list exported symbols.
19850export_symbols_cmds=$lt_export_symbols_cmds
19851
19852# Symbols that should not be listed in the preloaded symbols.
19853exclude_expsyms=$lt_exclude_expsyms
19854
19855# Symbols that must always be exported.
19856include_expsyms=$lt_include_expsyms
19857
19858# Commands necessary for linking programs (against libraries) with templates.
19859prelink_cmds=$lt_prelink_cmds
19860
19861# Commands necessary for finishing linking programs.
19862postlink_cmds=$lt_postlink_cmds
19863
19864# Specify filename containing input files.
19865file_list_spec=$lt_file_list_spec
19866
19867# How to hardcode a shared library path into an executable.
19868hardcode_action=$hardcode_action
19869
19870# ### END LIBTOOL CONFIG
19871
19872_LT_EOF
19873
19874    cat <<'_LT_EOF' >> "$cfgfile"
19875
19876# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19877
19878# func_munge_path_list VARIABLE PATH
19879# -----------------------------------
19880# VARIABLE is name of variable containing _space_ separated list of
19881# directories to be munged by the contents of PATH, which is string
19882# having a format:
19883# "DIR[:DIR]:"
19884#       string "DIR[ DIR]" will be prepended to VARIABLE
19885# ":DIR[:DIR]"
19886#       string "DIR[ DIR]" will be appended to VARIABLE
19887# "DIRP[:DIRP]::[DIRA:]DIRA"
19888#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19889#       "DIRA[ DIRA]" will be appended to VARIABLE
19890# "DIR[:DIR]"
19891#       VARIABLE will be replaced by "DIR[ DIR]"
19892func_munge_path_list ()
19893{
19894    case x$2 in
19895    x)
19896        ;;
19897    *:)
19898        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19899        ;;
19900    x:*)
19901        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19902        ;;
19903    *::*)
19904        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19905        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19906        ;;
19907    *)
19908        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19909        ;;
19910    esac
19911}
19912
19913
19914# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19915func_cc_basename ()
19916{
19917    for cc_temp in $*""; do
19918      case $cc_temp in
19919        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19920        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19921        \-*) ;;
19922        *) break;;
19923      esac
19924    done
19925    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19926}
19927
19928
19929# ### END FUNCTIONS SHARED WITH CONFIGURE
19930
19931_LT_EOF
19932
19933  case $host_os in
19934  aix3*)
19935    cat <<\_LT_EOF >> "$cfgfile"
19936# AIX sometimes has problems with the GCC collect2 program.  For some
19937# reason, if we set the COLLECT_NAMES environment variable, the problems
19938# vanish in a puff of smoke.
19939if test set != "${COLLECT_NAMES+set}"; then
19940  COLLECT_NAMES=
19941  export COLLECT_NAMES
19942fi
19943_LT_EOF
19944    ;;
19945  esac
19946
19947
19948ltmain=$ac_aux_dir/ltmain.sh
19949
19950
19951  # We use sed instead of cat because bash on DJGPP gets confused if
19952  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19953  # text mode, it properly converts lines to CR/LF.  This bash problem
19954  # is reportedly fixed, but why not run on old versions too?
19955  sed '$q' "$ltmain" >> "$cfgfile" \
19956     || (rm -f "$cfgfile"; exit 1)
19957
19958   mv -f "$cfgfile" "$ofile" ||
19959    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19960  chmod +x "$ofile"
19961
19962 ;;
19963    "disable-rpath":C)
19964	sed < libtool > libtool-2 \
19965	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19966	mv libtool-2 libtool
19967	chmod 755 libtool
19968	libtool="./libtool"
19969	 ;;
19970
19971  esac
19972done # for ac_tag
19973
19974
19975as_fn_exit 0
19976_ACEOF
19977ac_clean_files=$ac_clean_files_save
19978
19979test $ac_write_fail = 0 ||
19980  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19981
19982
19983# configure is writing to config.log, and then calls config.status.
19984# config.status does its own redirection, appending to config.log.
19985# Unfortunately, on DOS this fails, as config.log is still kept open
19986# by configure, so config.status won't be able to write to it; its
19987# output is simply discarded.  So we exec the FD to /dev/null,
19988# effectively closing config.log, so it can be properly (re)opened and
19989# appended to by config.status.  When coming back to configure, we
19990# need to make the FD available again.
19991if test "$no_create" != yes; then
19992  ac_cs_success=:
19993  ac_config_status_args=
19994  test "$silent" = yes &&
19995    ac_config_status_args="$ac_config_status_args --quiet"
19996  exec 5>/dev/null
19997  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19998  exec 5>>config.log
19999  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20000  # would make configure fail if this is the last instruction.
20001  $ac_cs_success || as_fn_exit 1
20002fi
20003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20006fi
20007
20008
20009echo "copying header files"
20010
20011for file in $srcdir/ldns//*.h; do
20012	sh $srcdir/install-sh -m 644 $file ldns/
20013done
20014
20015
20016
20017
20018
20019