xref: /freebsd/contrib/ldns/configure (revision fed1ca4b719c56c930f2259d80663cd34be812bb)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for ldns 1.6.17.
4#
5# Report bugs to <libdns@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: libdns@nlnetlabs.nl about your system, including any
251$0: error possibly output before this message. Then install
252$0: a modern shell, or manually run the script under such a
253$0: shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='ldns'
572PACKAGE_TARNAME='libdns'
573PACKAGE_VERSION='1.6.17'
574PACKAGE_STRING='ldns 1.6.17'
575PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
576PACKAGE_URL=''
577
578ac_unique_file="packet.c"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='LTLIBOBJS
616CONFIG_FILES
617ldns_build_config_have_attr_unused
618ldns_build_config_have_attr_format
619ldns_build_config_have_ssl
620DEFAULT_CAPATH
621DEFAULT_CAFILE
622LDNS_TRUST_ANCHOR_FILE
623WINDRES
624ldns_build_config_have_b32_pton
625ldns_build_config_have_b32_ntop
626LIBOBJS
627ldns_build_config_have_socklen_t
628LIBPCAP_LIBS
629include_unistd_h
630include_systypes_h
631include_inttypes_h
632ldns_build_config_have_inttypes_h
633include_sys_socket_h
634LIBSSL_SSL_LIBS
635LIBSSL_LIBS
636LIBSSL_LDFLAGS
637LIBSSL_CPPFLAGS
638ldns_build_config_use_dane
639RUNTIME_PATH
640HAVE_SSL
641libtool
642CLEAN_P5_DNS_LDNS
643UNINSTALL_P5_DNS_LDNS
644INSTALL_P5_DNS_LDNS
645TEST_P5_DNS_LDNS
646P5_DNS_LDNS
647PERL
648PYLDNSXUNINST
649PYLDNSXINST
650PYLDNSUNINST
651PYLDNSINST
652PYLDNSX
653PYTHON_X_CFLAGS
654swig
655PYLDNS
656SWIG_LIB
657SWIG
658SWIGPY3
659PYTHON_EXTRA_LDFLAGS
660PYTHON_EXTRA_LIBS
661PYTHON_SITE_PKG
662PYTHON_LDFLAGS
663PYTHON_CPPFLAGS
664PYTHON
665PYTHON_VERSION
666UNINSTALL_CONFIG_MANPAGE
667UNINSTALL_CONFIG
668INSTALL_CONFIG_MANPAGE
669INSTALL_CONFIG
670LINT_EXAMPLES
671CLEAN_EXAMPLES
672UNINSTALL_EXAMPLES
673INSTALL_EXAMPLES
674EXAMPLES
675LINT_DRILL
676CLEAN_DRILL
677UNINSTALL_DRILL
678INSTALL_DRILL
679DRILL
680doxygen
681LINTFLAGS
682SET_MAKE
683DEPFLAG
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689MANIFEST_TOOL
690AWK
691RANLIB
692STRIP
693ac_ct_AR
694AR
695DLLTOOL
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703SED
704host_os
705host_vendor
706host_cpu
707host
708build_os
709build_vendor
710build_cpu
711build
712LIBTOOL
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723VERSION_INFO
724LDNS_VERSION_MICRO
725LDNS_VERSION_MINOR
726LDNS_VERSION_MAJOR
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL'
765ac_subst_files=''
766ac_user_opts='
767enable_option_checking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_gnu_ld
773with_sysroot
774enable_libtool_lock
775with_drill
776with_examples
777enable_ldns_config
778enable_stderr_msgs
779with_pyldns
780with_pyldnsx
781with_p5_dns_ldns
782with_ssl
783enable_sha2
784enable_gost
785enable_ecdsa
786enable_dane
787enable_rrtype_ninfo
788enable_rrtype_rkey
789enable_rrtype_cds
790enable_rrtype_uri
791enable_rrtype_ta
792enable_rpath
793with_trust_anchor
794with_ca_file
795with_ca_path
796'
797      ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CPP
806PYTHON_VERSION'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  # Accept the important Cygnus configure options, so we can diagnose typos.
875
876  case $ac_dashdash$ac_option in
877  --)
878    ac_dashdash=yes ;;
879
880  -bindir | --bindir | --bindi | --bind | --bin | --bi)
881    ac_prev=bindir ;;
882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883    bindir=$ac_optarg ;;
884
885  -build | --build | --buil | --bui | --bu)
886    ac_prev=build_alias ;;
887  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888    build_alias=$ac_optarg ;;
889
890  -cache-file | --cache-file | --cache-fil | --cache-fi \
891  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892    ac_prev=cache_file ;;
893  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895    cache_file=$ac_optarg ;;
896
897  --config-cache | -C)
898    cache_file=config.cache ;;
899
900  -datadir | --datadir | --datadi | --datad)
901    ac_prev=datadir ;;
902  -datadir=* | --datadir=* | --datadi=* | --datad=*)
903    datadir=$ac_optarg ;;
904
905  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906  | --dataroo | --dataro | --datar)
907    ac_prev=datarootdir ;;
908  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910    datarootdir=$ac_optarg ;;
911
912  -disable-* | --disable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=\$ac_optarg ;;
953
954  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956  | --exec | --exe | --ex)
957    ac_prev=exec_prefix ;;
958  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960  | --exec=* | --exe=* | --ex=*)
961    exec_prefix=$ac_optarg ;;
962
963  -gas | --gas | --ga | --g)
964    # Obsolete; use --with-gas.
965    with_gas=yes ;;
966
967  -help | --help | --hel | --he | -h)
968    ac_init_help=long ;;
969  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970    ac_init_help=recursive ;;
971  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972    ac_init_help=short ;;
973
974  -host | --host | --hos | --ho)
975    ac_prev=host_alias ;;
976  -host=* | --host=* | --hos=* | --ho=*)
977    host_alias=$ac_optarg ;;
978
979  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980    ac_prev=htmldir ;;
981  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982  | --ht=*)
983    htmldir=$ac_optarg ;;
984
985  -includedir | --includedir | --includedi | --included | --include \
986  | --includ | --inclu | --incl | --inc)
987    ac_prev=includedir ;;
988  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989  | --includ=* | --inclu=* | --incl=* | --inc=*)
990    includedir=$ac_optarg ;;
991
992  -infodir | --infodir | --infodi | --infod | --info | --inf)
993    ac_prev=infodir ;;
994  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995    infodir=$ac_optarg ;;
996
997  -libdir | --libdir | --libdi | --libd)
998    ac_prev=libdir ;;
999  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000    libdir=$ac_optarg ;;
1001
1002  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003  | --libexe | --libex | --libe)
1004    ac_prev=libexecdir ;;
1005  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006  | --libexe=* | --libex=* | --libe=*)
1007    libexecdir=$ac_optarg ;;
1008
1009  -localedir | --localedir | --localedi | --localed | --locale)
1010    ac_prev=localedir ;;
1011  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012    localedir=$ac_optarg ;;
1013
1014  -localstatedir | --localstatedir | --localstatedi | --localstated \
1015  | --localstate | --localstat | --localsta | --localst | --locals)
1016    ac_prev=localstatedir ;;
1017  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019    localstatedir=$ac_optarg ;;
1020
1021  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022    ac_prev=mandir ;;
1023  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024    mandir=$ac_optarg ;;
1025
1026  -nfp | --nfp | --nf)
1027    # Obsolete; use --without-fp.
1028    with_fp=no ;;
1029
1030  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031  | --no-cr | --no-c | -n)
1032    no_create=yes ;;
1033
1034  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036    no_recursion=yes ;;
1037
1038  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040  | --oldin | --oldi | --old | --ol | --o)
1041    ac_prev=oldincludedir ;;
1042  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045    oldincludedir=$ac_optarg ;;
1046
1047  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048    ac_prev=prefix ;;
1049  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050    prefix=$ac_optarg ;;
1051
1052  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053  | --program-pre | --program-pr | --program-p)
1054    ac_prev=program_prefix ;;
1055  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057    program_prefix=$ac_optarg ;;
1058
1059  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060  | --program-suf | --program-su | --program-s)
1061    ac_prev=program_suffix ;;
1062  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064    program_suffix=$ac_optarg ;;
1065
1066  -program-transform-name | --program-transform-name \
1067  | --program-transform-nam | --program-transform-na \
1068  | --program-transform-n | --program-transform- \
1069  | --program-transform | --program-transfor \
1070  | --program-transfo | --program-transf \
1071  | --program-trans | --program-tran \
1072  | --progr-tra | --program-tr | --program-t)
1073    ac_prev=program_transform_name ;;
1074  -program-transform-name=* | --program-transform-name=* \
1075  | --program-transform-nam=* | --program-transform-na=* \
1076  | --program-transform-n=* | --program-transform-=* \
1077  | --program-transform=* | --program-transfor=* \
1078  | --program-transfo=* | --program-transf=* \
1079  | --program-trans=* | --program-tran=* \
1080  | --progr-tra=* | --program-tr=* | --program-t=*)
1081    program_transform_name=$ac_optarg ;;
1082
1083  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084    ac_prev=pdfdir ;;
1085  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086    pdfdir=$ac_optarg ;;
1087
1088  -psdir | --psdir | --psdi | --psd | --ps)
1089    ac_prev=psdir ;;
1090  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091    psdir=$ac_optarg ;;
1092
1093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094  | -silent | --silent | --silen | --sile | --sil)
1095    silent=yes ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263    If a cross compiler is detected then cross compile mode will be used" >&2
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking ...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406System types:
1407  --build=BUILD     configure for building on BUILD [guessed]
1408  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413  case $ac_init_help in
1414     short | recursive ) echo "Configuration of ldns 1.6.17:";;
1415   esac
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-shared[=PKGS]  build shared libraries [default=yes]
1423  --enable-static[=PKGS]  build static libraries [default=yes]
1424  --enable-fast-install[=PKGS]
1425                          optimize for fast installation [default=yes]
1426  --disable-libtool-lock  avoid locking (might break parallel builds)
1427  --disable-ldns-config   disable installation of ldns-config
1428                          (default=enabled)
1429  --enable-stderr-msgs    Enable printing to stderr (default=disabled)
1430  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1431  --disable-gost          Disable GOST support
1432  --disable-ecdsa         Disable ECDSA support
1433  --disable-dane          Disable DANE support
1434  --enable-rrtype-ninfo   Enable draft RR type ninfo.
1435  --enable-rrtype-rkey    Enable draft RR type rkey.
1436  --enable-rrtype-cds     Enable draft RR type cds.
1437  --enable-rrtype-uri     Enable draft RR type uri.
1438  --enable-rrtype-ta      Enable draft RR type ta.
1439  --disable-rpath         disable hardcoded rpath (default=enabled)
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1445                          both]
1446  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447  --with-sysroot=DIR Search for dependent libraries within DIR
1448                        (or the compiler's sysroot if not specified).
1449  --with-drill            Also build drill.
1450  --with-examples         Also build examples.
1451  --with-pyldns           generate python library, or --without-pyldns to
1452                          disable Python support.
1453  --without-pyldnsx       Do not install the ldnsx python module, or
1454                          --with-pyldnsx to install it.
1455  --with-p5-dns-ldns      generate DNS::LDNS perl bindings
1456  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1457                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1458                          /usr)
1459  --with-trust-anchor=KEYFILE
1460                          Default location of the trust anchor file for drill
1461                          and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1462  --with-ca-file=CAFILE   File containing CA certificates for ldns-dane
1463  --with-ca-path=CAPATH   Directory containing CA certificate files for
1464                          ldns-dane
1465
1466Some influential environment variables:
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CPP         C preprocessor
1475  PYTHON_VERSION
1476              The installed Python version to use, for example '2.3'. This
1477              string will be appended to the Python interpreter canonical
1478              name.
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to <libdns@nlnetlabs.nl>.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for guested configure.
1530    if test -f "$ac_srcdir/configure.gnu"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533    elif test -f "$ac_srcdir/configure"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure" --help=recursive
1536    else
1537      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538    fi || ac_status=$?
1539    cd "$ac_pwd" || { ac_status=$?; break; }
1540  done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545  cat <<\_ACEOF
1546ldns configure 1.6.17
1547generated by GNU Autoconf 2.68
1548
1549Copyright (C) 2010 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553  exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext
1567  if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_compile") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest.$ac_objext; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_try_cpp LINENO
1599# ----------------------
1600# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_cpp ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  if { { ac_try="$ac_cpp conftest.$ac_ext"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } > conftest.i && {
1620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       }; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628    ac_retval=1
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_cpp
1634
1635# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1636# -------------------------------------------------------
1637# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1638# the include files in INCLUDES and setting the cache variable VAR
1639# accordingly.
1640ac_fn_c_check_header_mongrel ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if eval \${$3+:} false; then :
1644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if eval \${$3+:} false; then :
1647  $as_echo_n "(cached) " >&6
1648fi
1649eval ac_res=\$$3
1650	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652else
1653  # Is the header compilable?
1654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1655$as_echo_n "checking $2 usability... " >&6; }
1656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"; then :
1662  ac_header_compiler=yes
1663else
1664  ac_header_compiler=no
1665fi
1666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1668$as_echo "$ac_header_compiler" >&6; }
1669
1670# Is the header present?
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1672$as_echo_n "checking $2 presence... " >&6; }
1673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h.  */
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_cpp "$LINENO"; then :
1678  ac_header_preproc=yes
1679else
1680  ac_header_preproc=no
1681fi
1682rm -f conftest.err conftest.i conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1684$as_echo "$ac_header_preproc" >&6; }
1685
1686# So?  What about this header?
1687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688  yes:no: )
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1690$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693    ;;
1694  no:yes:* )
1695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1696$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1698$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1700$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1702$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1703    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705( $as_echo "## ---------------------------------- ##
1706## Report this to libdns@nlnetlabs.nl ##
1707## ---------------------------------- ##"
1708     ) | sed "s/^/$as_me: WARNING:     /" >&2
1709    ;;
1710esac
1711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if eval \${$3+:} false; then :
1714  $as_echo_n "(cached) " >&6
1715else
1716  eval "$3=\$ac_header_compiler"
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721fi
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724} # ac_fn_c_check_header_mongrel
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_link") 2>&5
1741  ac_status=$?
1742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744  { { case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_try") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; }; }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: program exited with status $ac_status" >&5
1757       $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760       ac_retval=$ac_status
1761fi
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists and can be compiled using the include files in
1771# INCLUDES, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if eval \${$3+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$4
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786  eval "$3=yes"
1787else
1788  eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_header_compile
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest$ac_exeext
1806  if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_link") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822	 test -z "$ac_c_werror_flag" ||
1823	 test ! -s conftest.err
1824       } && test -s conftest$ac_exeext && {
1825	 test "$cross_compiling" = yes ||
1826	 $as_test_x conftest$ac_exeext
1827       }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837  # interfere with the next link command; also delete a directory that is
1838  # left behind by Apple's compiler.  We do this before executing the actions.
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855else
1856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h.  */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863    which can conflict with char $2 (); below.
1864    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865    <limits.h> exists even on freestanding compilers.  */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876   Use char because int might match the return type of a GCC
1877   builtin and then its argument prototype would still apply.  */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883    to always fail with ENOSYS.  Some functions are actually named
1884    something starting with __ and the normal name is an alias.  */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893  ;
1894  return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903    conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_func
1911
1912# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913# -------------------------------------------
1914# Tests whether TYPE exists after having included INCLUDES, setting cache
1915# variable VAR accordingly.
1916ac_fn_c_check_type ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval \${$3+:} false; then :
1922  $as_echo_n "(cached) " >&6
1923else
1924  eval "$3=no"
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928int
1929main ()
1930{
1931if (sizeof ($2))
1932	 return 0;
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h.  */
1940$4
1941int
1942main ()
1943{
1944if (sizeof (($2)))
1945	    return 0;
1946  ;
1947  return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951
1952else
1953  eval "$3=yes"
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_type
1965
1966# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1967# ---------------------------------------------
1968# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1969# accordingly.
1970ac_fn_c_check_decl ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  as_decl_name=`echo $2|sed 's/ *(.*//'`
1974  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1976$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1977if eval \${$3+:} false; then :
1978  $as_echo_n "(cached) " >&6
1979else
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int
1984main ()
1985{
1986#ifndef $as_decl_name
1987#ifdef __cplusplus
1988  (void) $as_decl_use;
1989#else
1990  (void) $as_decl_name;
1991#endif
1992#endif
1993
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  eval "$3=yes"
2000else
2001  eval "$3=no"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_check_decl
2011
2012# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013# --------------------------------------------
2014# Tries to find the compile-time value of EXPR in a program that includes
2015# INCLUDES, setting VAR accordingly. Returns whether the value could be
2016# computed
2017ac_fn_c_compute_int ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  if test "$cross_compiling" = yes; then
2021    # Depending upon the size, compute the lo and hi bounds.
2022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) >= 0)];
2029test_array [0] = 0
2030
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036  ac_lo=0 ac_mid=0
2037  while :; do
2038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045test_array [0] = 0
2046
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052  ac_hi=$ac_mid; break
2053else
2054  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055			if test $ac_lo -le $ac_mid; then
2056			  ac_lo= ac_hi=
2057			  break
2058			fi
2059			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062  done
2063else
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) < 0)];
2071test_array [0] = 0
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_hi=-1 ac_mid=-1
2079  while :; do
2080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087test_array [0] = 0
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_lo=$ac_mid; break
2095else
2096  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097			if test $ac_mid -le $ac_hi; then
2098			  ac_lo= ac_hi=
2099			  break
2100			fi
2101			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104  done
2105else
2106  ac_lo= ac_hi=
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111# Binary search between lo and hi bounds.
2112while test "x$ac_lo" != "x$ac_hi"; do
2113  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121test_array [0] = 0
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_hi=$ac_mid
2129else
2130  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133done
2134case $ac_lo in #((
2135?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2136'') ac_retval=1 ;;
2137esac
2138  else
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142static long int longval () { return $2; }
2143static unsigned long int ulongval () { return $2; }
2144#include <stdio.h>
2145#include <stdlib.h>
2146int
2147main ()
2148{
2149
2150  FILE *f = fopen ("conftest.val", "w");
2151  if (! f)
2152    return 1;
2153  if (($2) < 0)
2154    {
2155      long int i = longval ();
2156      if (i != ($2))
2157	return 1;
2158      fprintf (f, "%ld", i);
2159    }
2160  else
2161    {
2162      unsigned long int i = ulongval ();
2163      if (i != ($2))
2164	return 1;
2165      fprintf (f, "%lu", i);
2166    }
2167  /* Do not output a trailing newline, as this causes \r\n confusion
2168     on some platforms.  */
2169  return ferror (f) || fclose (f) != 0;
2170
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_run "$LINENO"; then :
2176  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2177else
2178  ac_retval=1
2179fi
2180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181  conftest.$ac_objext conftest.beam conftest.$ac_ext
2182rm -f conftest.val
2183
2184  fi
2185  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186  as_fn_set_status $ac_retval
2187
2188} # ac_fn_c_compute_int
2189
2190# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2191# ----------------------------------------------------
2192# Tries to find if the field MEMBER exists in type AGGR, after including
2193# INCLUDES, setting cache variable VAR accordingly.
2194ac_fn_c_check_member ()
2195{
2196  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2198$as_echo_n "checking for $2.$3... " >&6; }
2199if eval \${$4+:} false; then :
2200  $as_echo_n "(cached) " >&6
2201else
2202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$5
2205int
2206main ()
2207{
2208static $2 ac_aggr;
2209if (ac_aggr.$3)
2210return 0;
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"; then :
2216  eval "$4=yes"
2217else
2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$5
2221int
2222main ()
2223{
2224static $2 ac_aggr;
2225if (sizeof ac_aggr.$3)
2226return 0;
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232  eval "$4=yes"
2233else
2234  eval "$4=no"
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239fi
2240eval ac_res=\$$4
2241	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242$as_echo "$ac_res" >&6; }
2243  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245} # ac_fn_c_check_member
2246cat >config.log <<_ACEOF
2247This file contains any messages produced by compilers while
2248running configure, to aid debugging if configure makes a mistake.
2249
2250It was created by ldns $as_me 1.6.17, which was
2251generated by GNU Autoconf 2.68.  Invocation command line was
2252
2253  $ $0 $@
2254
2255_ACEOF
2256exec 5>>config.log
2257{
2258cat <<_ASUNAME
2259## --------- ##
2260## Platform. ##
2261## --------- ##
2262
2263hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2264uname -m = `(uname -m) 2>/dev/null || echo unknown`
2265uname -r = `(uname -r) 2>/dev/null || echo unknown`
2266uname -s = `(uname -s) 2>/dev/null || echo unknown`
2267uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268
2269/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2270/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2271
2272/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2273/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2274/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2275/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2276/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2277/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2278/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2279
2280_ASUNAME
2281
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285  IFS=$as_save_IFS
2286  test -z "$as_dir" && as_dir=.
2287    $as_echo "PATH: $as_dir"
2288  done
2289IFS=$as_save_IFS
2290
2291} >&5
2292
2293cat >&5 <<_ACEOF
2294
2295
2296## ----------- ##
2297## Core tests. ##
2298## ----------- ##
2299
2300_ACEOF
2301
2302
2303# Keep a trace of the command line.
2304# Strip out --no-create and --no-recursion so they do not pile up.
2305# Strip out --silent because we don't want to record it for future runs.
2306# Also quote any args containing shell meta-characters.
2307# Make two passes to allow for proper duplicate-argument suppression.
2308ac_configure_args=
2309ac_configure_args0=
2310ac_configure_args1=
2311ac_must_keep_next=false
2312for ac_pass in 1 2
2313do
2314  for ac_arg
2315  do
2316    case $ac_arg in
2317    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2318    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2319    | -silent | --silent | --silen | --sile | --sil)
2320      continue ;;
2321    *\'*)
2322      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2323    esac
2324    case $ac_pass in
2325    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326    2)
2327      as_fn_append ac_configure_args1 " '$ac_arg'"
2328      if test $ac_must_keep_next = true; then
2329	ac_must_keep_next=false # Got value, back to normal.
2330      else
2331	case $ac_arg in
2332	  *=* | --config-cache | -C | -disable-* | --disable-* \
2333	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2334	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2335	  | -with-* | --with-* | -without-* | --without-* | --x)
2336	    case "$ac_configure_args0 " in
2337	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2338	    esac
2339	    ;;
2340	  -* ) ac_must_keep_next=true ;;
2341	esac
2342      fi
2343      as_fn_append ac_configure_args " '$ac_arg'"
2344      ;;
2345    esac
2346  done
2347done
2348{ ac_configure_args0=; unset ac_configure_args0;}
2349{ ac_configure_args1=; unset ac_configure_args1;}
2350
2351# When interrupted or exit'd, cleanup temporary files, and complete
2352# config.log.  We remove comments because anyway the quotes in there
2353# would cause problems or look ugly.
2354# WARNING: Use '\'' to represent an apostrophe within the trap.
2355# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2356trap 'exit_status=$?
2357  # Save into config.log some information that might help in debugging.
2358  {
2359    echo
2360
2361    $as_echo "## ---------------- ##
2362## Cache variables. ##
2363## ---------------- ##"
2364    echo
2365    # The following way of writing the cache mishandles newlines in values,
2366(
2367  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368    eval ac_val=\$$ac_var
2369    case $ac_val in #(
2370    *${as_nl}*)
2371      case $ac_var in #(
2372      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2374      esac
2375      case $ac_var in #(
2376      _ | IFS | as_nl) ;; #(
2377      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378      *) { eval $ac_var=; unset $ac_var;} ;;
2379      esac ;;
2380    esac
2381  done
2382  (set) 2>&1 |
2383    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384    *${as_nl}ac_space=\ *)
2385      sed -n \
2386	"s/'\''/'\''\\\\'\'''\''/g;
2387	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2388      ;; #(
2389    *)
2390      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391      ;;
2392    esac |
2393    sort
2394)
2395    echo
2396
2397    $as_echo "## ----------------- ##
2398## Output variables. ##
2399## ----------------- ##"
2400    echo
2401    for ac_var in $ac_subst_vars
2402    do
2403      eval ac_val=\$$ac_var
2404      case $ac_val in
2405      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2406      esac
2407      $as_echo "$ac_var='\''$ac_val'\''"
2408    done | sort
2409    echo
2410
2411    if test -n "$ac_subst_files"; then
2412      $as_echo "## ------------------- ##
2413## File substitutions. ##
2414## ------------------- ##"
2415      echo
2416      for ac_var in $ac_subst_files
2417      do
2418	eval ac_val=\$$ac_var
2419	case $ac_val in
2420	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421	esac
2422	$as_echo "$ac_var='\''$ac_val'\''"
2423      done | sort
2424      echo
2425    fi
2426
2427    if test -s confdefs.h; then
2428      $as_echo "## ----------- ##
2429## confdefs.h. ##
2430## ----------- ##"
2431      echo
2432      cat confdefs.h
2433      echo
2434    fi
2435    test "$ac_signal" != 0 &&
2436      $as_echo "$as_me: caught signal $ac_signal"
2437    $as_echo "$as_me: exit $exit_status"
2438  } >&5
2439  rm -f core *.core core.conftest.* &&
2440    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2441    exit $exit_status
2442' 0
2443for ac_signal in 1 2 13 15; do
2444  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2445done
2446ac_signal=0
2447
2448# confdefs.h avoids OS command line length limits that DEFS can exceed.
2449rm -f -r conftest* confdefs.h
2450
2451$as_echo "/* confdefs.h */" > confdefs.h
2452
2453# Predefined preprocessor variables.
2454
2455cat >>confdefs.h <<_ACEOF
2456#define PACKAGE_NAME "$PACKAGE_NAME"
2457_ACEOF
2458
2459cat >>confdefs.h <<_ACEOF
2460#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2461_ACEOF
2462
2463cat >>confdefs.h <<_ACEOF
2464#define PACKAGE_VERSION "$PACKAGE_VERSION"
2465_ACEOF
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_STRING "$PACKAGE_STRING"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_URL "$PACKAGE_URL"
2477_ACEOF
2478
2479
2480# Let the site file select an alternate cache file if it wants to.
2481# Prefer an explicitly selected file to automatically selected ones.
2482ac_site_file1=NONE
2483ac_site_file2=NONE
2484if test -n "$CONFIG_SITE"; then
2485  # We do not want a PATH search for config.site.
2486  case $CONFIG_SITE in #((
2487    -*)  ac_site_file1=./$CONFIG_SITE;;
2488    */*) ac_site_file1=$CONFIG_SITE;;
2489    *)   ac_site_file1=./$CONFIG_SITE;;
2490  esac
2491elif test "x$prefix" != xNONE; then
2492  ac_site_file1=$prefix/share/config.site
2493  ac_site_file2=$prefix/etc/config.site
2494else
2495  ac_site_file1=$ac_default_prefix/share/config.site
2496  ac_site_file2=$ac_default_prefix/etc/config.site
2497fi
2498for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499do
2500  test "x$ac_site_file" = xNONE && continue
2501  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2502    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504    sed 's/^/| /' "$ac_site_file" >&5
2505    . "$ac_site_file" \
2506      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508as_fn_error $? "failed to load site script $ac_site_file
2509See \`config.log' for more details" "$LINENO" 5; }
2510  fi
2511done
2512
2513if test -r "$cache_file"; then
2514  # Some versions of bash will fail to source /dev/null (special files
2515  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2516  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2517    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2518$as_echo "$as_me: loading cache $cache_file" >&6;}
2519    case $cache_file in
2520      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2521      *)                      . "./$cache_file";;
2522    esac
2523  fi
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2526$as_echo "$as_me: creating cache $cache_file" >&6;}
2527  >$cache_file
2528fi
2529
2530# Check that the precious variables saved in the cache have kept the same
2531# value.
2532ac_cache_corrupted=false
2533for ac_var in $ac_precious_vars; do
2534  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2535  eval ac_new_set=\$ac_env_${ac_var}_set
2536  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2537  eval ac_new_val=\$ac_env_${ac_var}_value
2538  case $ac_old_set,$ac_new_set in
2539    set,)
2540      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2542      ac_cache_corrupted=: ;;
2543    ,set)
2544      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2545$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2546      ac_cache_corrupted=: ;;
2547    ,);;
2548    *)
2549      if test "x$ac_old_val" != "x$ac_new_val"; then
2550	# differences in whitespace do not lead to failure.
2551	ac_old_val_w=`echo x $ac_old_val`
2552	ac_new_val_w=`echo x $ac_new_val`
2553	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2554	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2555$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2556	  ac_cache_corrupted=:
2557	else
2558	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2559$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2560	  eval $ac_var=\$ac_old_val
2561	fi
2562	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2563$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2564	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2565$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2566      fi;;
2567  esac
2568  # Pass precious variables to config.status.
2569  if test "$ac_new_set" = set; then
2570    case $ac_new_val in
2571    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2572    *) ac_arg=$ac_var=$ac_new_val ;;
2573    esac
2574    case " $ac_configure_args " in
2575      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2576      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2577    esac
2578  fi
2579done
2580if $ac_cache_corrupted; then
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2584$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2585  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2586fi
2587## -------------------- ##
2588## Main body of script. ##
2589## -------------------- ##
2590
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598
2599# needed to build correct soname
2600LDNS_VERSION_MAJOR=1
2601
2602LDNS_VERSION_MINOR=6
2603
2604LDNS_VERSION_MICRO=17
2605
2606VERSION_INFO=1:6:17
2607
2608
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614if test -n "$ac_tool_prefix"; then
2615  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
2619if ${ac_cv_prog_CC+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  if test -n "$CC"; then
2623  ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637  done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645$as_echo "$CC" >&6; }
2646else
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649fi
2650
2651
2652fi
2653if test -z "$ac_cv_prog_CC"; then
2654  ac_ct_CC=$CC
2655  # Extract the first word of "gcc", so it can be a program name with args.
2656set dummy gcc; ac_word=$2
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test -n "$ac_ct_CC"; then
2663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670    for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_ac_ct_CC="gcc"
2673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677  done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683if test -n "$ac_ct_CC"; then
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685$as_echo "$ac_ct_CC" >&6; }
2686else
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691  if test "x$ac_ct_CC" = x; then
2692    CC=""
2693  else
2694    case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698ac_tool_warned=yes ;;
2699esac
2700    CC=$ac_ct_CC
2701  fi
2702else
2703  CC="$ac_cv_prog_CC"
2704fi
2705
2706if test -z "$CC"; then
2707          if test -n "$ac_tool_prefix"; then
2708    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709set dummy ${ac_tool_prefix}cc; ac_word=$2
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
2712if ${ac_cv_prog_CC+:} false; then :
2713  $as_echo_n "(cached) " >&6
2714else
2715  if test -n "$CC"; then
2716  ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    for ac_exec_ext in '' $ac_executable_extensions; do
2724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725    ac_cv_prog_CC="${ac_tool_prefix}cc"
2726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727    break 2
2728  fi
2729done
2730  done
2731IFS=$as_save_IFS
2732
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738$as_echo "$CC" >&6; }
2739else
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
2742fi
2743
2744
2745  fi
2746fi
2747if test -z "$CC"; then
2748  # Extract the first word of "cc", so it can be a program name with args.
2749set dummy cc; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if ${ac_cv_prog_CC+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758  ac_prog_rejected=no
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767       ac_prog_rejected=yes
2768       continue
2769     fi
2770    ac_cv_prog_CC="cc"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778if test $ac_prog_rejected = yes; then
2779  # We found a bogon in the path, so make sure we never use it.
2780  set dummy $ac_cv_prog_CC
2781  shift
2782  if test $# != 0; then
2783    # We chose a different compiler from the bogus one.
2784    # However, it has the same basename, so the bogon will be chosen
2785    # first if we set CC to just the basename; use the full file name.
2786    shift
2787    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788  fi
2789fi
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795$as_echo "$CC" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$CC"; then
2804  if test -n "$ac_tool_prefix"; then
2805  for ac_prog in cl.exe
2806  do
2807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_CC+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$CC"; then
2815  ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822    for ac_exec_ext in '' $ac_executable_extensions; do
2823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829  done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834CC=$ac_cv_prog_CC
2835if test -n "$CC"; then
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837$as_echo "$CC" >&6; }
2838else
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843
2844    test -n "$CC" && break
2845  done
2846fi
2847if test -z "$CC"; then
2848  ac_ct_CC=$CC
2849  for ac_prog in cl.exe
2850do
2851  # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$ac_ct_CC"; then
2859  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866    for ac_exec_ext in '' $ac_executable_extensions; do
2867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868    ac_cv_prog_ac_ct_CC="$ac_prog"
2869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879if test -n "$ac_ct_CC"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881$as_echo "$ac_ct_CC" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888  test -n "$ac_ct_CC" && break
2889done
2890
2891  if test "x$ac_ct_CC" = x; then
2892    CC=""
2893  else
2894    case $cross_compiling:$ac_tool_warned in
2895yes:)
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900    CC=$ac_ct_CC
2901  fi
2902fi
2903
2904fi
2905
2906
2907test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909as_fn_error $? "no acceptable C compiler found in \$PATH
2910See \`config.log' for more details" "$LINENO" 5; }
2911
2912# Provide some information about the compiler.
2913$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2914set X $ac_compile
2915ac_compiler=$2
2916for ac_option in --version -v -V -qversion; do
2917  { { ac_try="$ac_compiler $ac_option >&5"
2918case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923$as_echo "$ac_try_echo"; } >&5
2924  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2925  ac_status=$?
2926  if test -s conftest.err; then
2927    sed '10a\
2928... rest of stderr output deleted ...
2929         10q' conftest.err >conftest.er1
2930    cat conftest.er1 >&5
2931  fi
2932  rm -f conftest.er1 conftest.err
2933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934  test $ac_status = 0; }
2935done
2936
2937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948ac_clean_files_save=$ac_clean_files
2949ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950# Try to create an executable without -o first, disregard a.out.
2951# It will help us diagnose broken compilers, and finding out an intuition
2952# of exeext.
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954$as_echo_n "checking whether the C compiler works... " >&6; }
2955ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956
2957# The possible output files:
2958ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959
2960ac_rmfiles=
2961for ac_file in $ac_files
2962do
2963  case $ac_file in
2964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966  esac
2967done
2968rm -f $ac_rmfiles
2969
2970if { { ac_try="$ac_link_default"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976$as_echo "$ac_try_echo"; } >&5
2977  (eval "$ac_link_default") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980  test $ac_status = 0; }; then :
2981  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984# so that the user can short-circuit this test for compilers unknown to
2985# Autoconf.
2986for ac_file in $ac_files ''
2987do
2988  test -f "$ac_file" || continue
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991	;;
2992    [ab].out )
2993	# We found the default executable, but exeext='' is most
2994	# certainly right.
2995	break;;
2996    *.* )
2997	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998	then :; else
2999	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000	fi
3001	# We set ac_cv_exeext here because the later test for it is not
3002	# safe: cross compilers may not add the suffix if given an `-o'
3003	# argument, so we may need to know it at that point already.
3004	# Even if this section looks crufty: it has the advantage of
3005	# actually working.
3006	break;;
3007    * )
3008	break;;
3009  esac
3010done
3011test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013else
3014  ac_file=''
3015fi
3016if test -z "$ac_file"; then :
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
3019$as_echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024as_fn_error 77 "C compiler cannot create executables
3025See \`config.log' for more details" "$LINENO" 5; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028$as_echo "yes" >&6; }
3029fi
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031$as_echo_n "checking for C compiler default output file name... " >&6; }
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033$as_echo "$ac_file" >&6; }
3034ac_exeext=$ac_cv_exeext
3035
3036rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037ac_clean_files=$ac_clean_files_save
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039$as_echo_n "checking for suffix of executables... " >&6; }
3040if { { ac_try="$ac_link"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_link") 2>&5
3048  ac_status=$?
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }; then :
3051  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3053# work properly (i.e., refer to `conftest.exe'), while it won't with
3054# `rm'.
3055for ac_file in conftest.exe conftest conftest.*; do
3056  test -f "$ac_file" || continue
3057  case $ac_file in
3058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060	  break;;
3061    * ) break;;
3062  esac
3063done
3064else
3065  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068See \`config.log' for more details" "$LINENO" 5; }
3069fi
3070rm -f conftest conftest$ac_cv_exeext
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072$as_echo "$ac_cv_exeext" >&6; }
3073
3074rm -f conftest.$ac_ext
3075EXEEXT=$ac_cv_exeext
3076ac_exeext=$EXEEXT
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079#include <stdio.h>
3080int
3081main ()
3082{
3083FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090ac_clean_files="$ac_clean_files conftest.out"
3091# Check that the compiler produces executables we can run.  If not, either
3092# the compiler is broken, or we cross compile.
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094$as_echo_n "checking whether we are cross compiling... " >&6; }
3095if test "$cross_compiling" != yes; then
3096  { { ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103  (eval "$ac_link") 2>&5
3104  ac_status=$?
3105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106  test $ac_status = 0; }
3107  if { ac_try='./conftest$ac_cv_exeext'
3108  { { case "(($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_try") 2>&5
3115  ac_status=$?
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }; }; then
3118    cross_compiling=no
3119  else
3120    if test "$cross_compiling" = maybe; then
3121	cross_compiling=yes
3122    else
3123	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125as_fn_error $? "cannot run C compiled programs.
3126If you meant to cross compile, use \`--host'.
3127See \`config.log' for more details" "$LINENO" 5; }
3128    fi
3129  fi
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132$as_echo "$cross_compiling" >&6; }
3133
3134rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135ac_clean_files=$ac_clean_files_save
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137$as_echo_n "checking for suffix of object files... " >&6; }
3138if ${ac_cv_objext+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h.  */
3143
3144int
3145main ()
3146{
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152rm -f conftest.o conftest.obj
3153if { { ac_try="$ac_compile"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159$as_echo "$ac_try_echo"; } >&5
3160  (eval "$ac_compile") 2>&5
3161  ac_status=$?
3162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163  test $ac_status = 0; }; then :
3164  for ac_file in conftest.o conftest.obj conftest.*; do
3165  test -f "$ac_file" || continue;
3166  case $ac_file in
3167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169       break;;
3170  esac
3171done
3172else
3173  $as_echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error $? "cannot compute suffix of object files: cannot compile
3179See \`config.log' for more details" "$LINENO" 5; }
3180fi
3181rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184$as_echo "$ac_cv_objext" >&6; }
3185OBJEXT=$ac_cv_objext
3186ac_objext=$OBJEXT
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189if ${ac_cv_c_compiler_gnu+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198#ifndef __GNUC__
3199       choke me
3200#endif
3201
3202  ;
3203  return 0;
3204}
3205_ACEOF
3206if ac_fn_c_try_compile "$LINENO"; then :
3207  ac_compiler_gnu=yes
3208else
3209  ac_compiler_gnu=no
3210fi
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217if test $ac_compiler_gnu = yes; then
3218  GCC=yes
3219else
3220  GCC=
3221fi
3222ac_test_CFLAGS=${CFLAGS+set}
3223ac_save_CFLAGS=$CFLAGS
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225$as_echo_n "checking whether $CC accepts -g... " >&6; }
3226if ${ac_cv_prog_cc_g+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  ac_save_c_werror_flag=$ac_c_werror_flag
3230   ac_c_werror_flag=yes
3231   ac_cv_prog_cc_g=no
3232   CFLAGS="-g"
3233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244if ac_fn_c_try_compile "$LINENO"; then :
3245  ac_cv_prog_cc_g=yes
3246else
3247  CFLAGS=""
3248      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259if ac_fn_c_try_compile "$LINENO"; then :
3260
3261else
3262  ac_c_werror_flag=$ac_save_c_werror_flag
3263	 CFLAGS="-g"
3264	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276  ac_cv_prog_cc_g=yes
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279fi
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283   ac_c_werror_flag=$ac_save_c_werror_flag
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286$as_echo "$ac_cv_prog_cc_g" >&6; }
3287if test "$ac_test_CFLAGS" = set; then
3288  CFLAGS=$ac_save_CFLAGS
3289elif test $ac_cv_prog_cc_g = yes; then
3290  if test "$GCC" = yes; then
3291    CFLAGS="-g -O2"
3292  else
3293    CFLAGS="-g"
3294  fi
3295else
3296  if test "$GCC" = yes; then
3297    CFLAGS="-O2"
3298  else
3299    CFLAGS=
3300  fi
3301fi
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304if ${ac_cv_prog_cc_c89+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  ac_cv_prog_cc_c89=no
3308ac_save_CC=$CC
3309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h.  */
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319     char **p;
3320     int i;
3321{
3322  return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326  char *s;
3327  va_list v;
3328  va_start (v,p);
3329  s = g (p, va_arg (v,int));
3330  va_end (v);
3331  return s;
3332}
3333
3334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3335   function prototypes and stuff, but not '\xHH' hex character constants.
3336   These don't provoke an error unfortunately, instead are silently treated
3337   as 'x'.  The following induces an error, until -std is added to get
3338   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3339   array size at least.  It's necessary to write '\x00'==0 to get something
3340   that's true only with -std.  */
3341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344   inside strings and character constants.  */
3345#define FOO(x) 'x'
3346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348int test (int i, double x);
3349struct s1 {int (*f) (int a);};
3350struct s2 {int (*f) (double a);};
3351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352int argc;
3353char **argv;
3354int
3355main ()
3356{
3357return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364do
3365  CC="$ac_save_CC $ac_arg"
3366  if ac_fn_c_try_compile "$LINENO"; then :
3367  ac_cv_prog_cc_c89=$ac_arg
3368fi
3369rm -f core conftest.err conftest.$ac_objext
3370  test "x$ac_cv_prog_cc_c89" != "xno" && break
3371done
3372rm -f conftest.$ac_ext
3373CC=$ac_save_CC
3374
3375fi
3376# AC_CACHE_VAL
3377case "x$ac_cv_prog_cc_c89" in
3378  x)
3379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380$as_echo "none needed" >&6; } ;;
3381  xno)
3382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383$as_echo "unsupported" >&6; } ;;
3384  *)
3385    CC="$CC $ac_cv_prog_cc_c89"
3386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388esac
3389if test "x$ac_cv_prog_cc_c89" != xno; then :
3390
3391fi
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3406$as_echo_n "checking how to run the C preprocessor... " >&6; }
3407# On Suns, sometimes $CPP names a directory.
3408if test -n "$CPP" && test -d "$CPP"; then
3409  CPP=
3410fi
3411if test -z "$CPP"; then
3412  if ${ac_cv_prog_CPP+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415      # Double quotes because CPP needs to be expanded
3416    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417    do
3418      ac_preproc_ok=false
3419for ac_c_preproc_warn_flag in '' yes
3420do
3421  # Use a header file that comes with gcc, so configuring glibc
3422  # with a fresh cross-compiler works.
3423  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424  # <limits.h> exists even on freestanding compilers.
3425  # On the NeXT, cc -E runs the code through the compiler's parser,
3426  # not just through cpp. "Syntax error" is here to catch this case.
3427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h.  */
3429#ifdef __STDC__
3430# include <limits.h>
3431#else
3432# include <assert.h>
3433#endif
3434		     Syntax error
3435_ACEOF
3436if ac_fn_c_try_cpp "$LINENO"; then :
3437
3438else
3439  # Broken: fails on valid input.
3440continue
3441fi
3442rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444  # OK, works on sane cases.  Now check whether nonexistent headers
3445  # can be detected and how.
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448#include <ac_nonexistent.h>
3449_ACEOF
3450if ac_fn_c_try_cpp "$LINENO"; then :
3451  # Broken: success on invalid input.
3452continue
3453else
3454  # Passes both tests.
3455ac_preproc_ok=:
3456break
3457fi
3458rm -f conftest.err conftest.i conftest.$ac_ext
3459
3460done
3461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3462rm -f conftest.i conftest.err conftest.$ac_ext
3463if $ac_preproc_ok; then :
3464  break
3465fi
3466
3467    done
3468    ac_cv_prog_CPP=$CPP
3469
3470fi
3471  CPP=$ac_cv_prog_CPP
3472else
3473  ac_cv_prog_CPP=$CPP
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3476$as_echo "$CPP" >&6; }
3477ac_preproc_ok=false
3478for ac_c_preproc_warn_flag in '' yes
3479do
3480  # Use a header file that comes with gcc, so configuring glibc
3481  # with a fresh cross-compiler works.
3482  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483  # <limits.h> exists even on freestanding compilers.
3484  # On the NeXT, cc -E runs the code through the compiler's parser,
3485  # not just through cpp. "Syntax error" is here to catch this case.
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488#ifdef __STDC__
3489# include <limits.h>
3490#else
3491# include <assert.h>
3492#endif
3493		     Syntax error
3494_ACEOF
3495if ac_fn_c_try_cpp "$LINENO"; then :
3496
3497else
3498  # Broken: fails on valid input.
3499continue
3500fi
3501rm -f conftest.err conftest.i conftest.$ac_ext
3502
3503  # OK, works on sane cases.  Now check whether nonexistent headers
3504  # can be detected and how.
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507#include <ac_nonexistent.h>
3508_ACEOF
3509if ac_fn_c_try_cpp "$LINENO"; then :
3510  # Broken: success on invalid input.
3511continue
3512else
3513  # Passes both tests.
3514ac_preproc_ok=:
3515break
3516fi
3517rm -f conftest.err conftest.i conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.i conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then :
3523
3524else
3525  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3528See \`config.log' for more details" "$LINENO" 5; }
3529fi
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3539$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3540if ${ac_cv_path_GREP+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  if test -z "$GREP"; then
3544  ac_path_GREP_found=false
3545  # Loop through the user's path and test for each of PROGNAME-LIST
3546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551    for ac_prog in grep ggrep; do
3552    for ac_exec_ext in '' $ac_executable_extensions; do
3553      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555# Check for GNU ac_path_GREP and select it if it is found.
3556  # Check for GNU $ac_path_GREP
3557case `"$ac_path_GREP" --version 2>&1` in
3558*GNU*)
3559  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560*)
3561  ac_count=0
3562  $as_echo_n 0123456789 >"conftest.in"
3563  while :
3564  do
3565    cat "conftest.in" "conftest.in" >"conftest.tmp"
3566    mv "conftest.tmp" "conftest.in"
3567    cp "conftest.in" "conftest.nl"
3568    $as_echo 'GREP' >> "conftest.nl"
3569    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571    as_fn_arith $ac_count + 1 && ac_count=$as_val
3572    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573      # Best one so far, save it but keep looking for a better one
3574      ac_cv_path_GREP="$ac_path_GREP"
3575      ac_path_GREP_max=$ac_count
3576    fi
3577    # 10*(2^10) chars as input seems more than enough
3578    test $ac_count -gt 10 && break
3579  done
3580  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581esac
3582
3583      $ac_path_GREP_found && break 3
3584    done
3585  done
3586  done
3587IFS=$as_save_IFS
3588  if test -z "$ac_cv_path_GREP"; then
3589    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590  fi
3591else
3592  ac_cv_path_GREP=$GREP
3593fi
3594
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3597$as_echo "$ac_cv_path_GREP" >&6; }
3598 GREP="$ac_cv_path_GREP"
3599
3600
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3602$as_echo_n "checking for egrep... " >&6; }
3603if ${ac_cv_path_EGREP+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607   then ac_cv_path_EGREP="$GREP -E"
3608   else
3609     if test -z "$EGREP"; then
3610  ac_path_EGREP_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 egrep; do
3618    for ac_exec_ext in '' $ac_executable_extensions; do
3619      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621# Check for GNU ac_path_EGREP and select it if it is found.
3622  # Check for GNU $ac_path_EGREP
3623case `"$ac_path_EGREP" --version 2>&1` in
3624*GNU*)
3625  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
3635    "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
3639      # Best one so far, save it but keep looking for a better one
3640      ac_cv_path_EGREP="$ac_path_EGREP"
3641      ac_path_EGREP_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_EGREP_found && break 3
3650    done
3651  done
3652  done
3653IFS=$as_save_IFS
3654  if test -z "$ac_cv_path_EGREP"; then
3655    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656  fi
3657else
3658  ac_cv_path_EGREP=$EGREP
3659fi
3660
3661   fi
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3664$as_echo "$ac_cv_path_EGREP" >&6; }
3665 EGREP="$ac_cv_path_EGREP"
3666
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3669$as_echo_n "checking for ANSI C header files... " >&6; }
3670if ${ac_cv_header_stdc+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675#include <stdlib.h>
3676#include <stdarg.h>
3677#include <string.h>
3678#include <float.h>
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_cv_header_stdc=yes
3690else
3691  ac_cv_header_stdc=no
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694
3695if test $ac_cv_header_stdc = yes; then
3696  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699#include <string.h>
3700
3701_ACEOF
3702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703  $EGREP "memchr" >/dev/null 2>&1; then :
3704
3705else
3706  ac_cv_header_stdc=no
3707fi
3708rm -f conftest*
3709
3710fi
3711
3712if test $ac_cv_header_stdc = yes; then
3713  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716#include <stdlib.h>
3717
3718_ACEOF
3719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720  $EGREP "free" >/dev/null 2>&1; then :
3721
3722else
3723  ac_cv_header_stdc=no
3724fi
3725rm -f conftest*
3726
3727fi
3728
3729if test $ac_cv_header_stdc = yes; then
3730  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3731  if test "$cross_compiling" = yes; then :
3732  :
3733else
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736#include <ctype.h>
3737#include <stdlib.h>
3738#if ((' ' & 0x0FF) == 0x020)
3739# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3740# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3741#else
3742# define ISLOWER(c) \
3743		   (('a' <= (c) && (c) <= 'i') \
3744		     || ('j' <= (c) && (c) <= 'r') \
3745		     || ('s' <= (c) && (c) <= 'z'))
3746# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3747#endif
3748
3749#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3750int
3751main ()
3752{
3753  int i;
3754  for (i = 0; i < 256; i++)
3755    if (XOR (islower (i), ISLOWER (i))
3756	|| toupper (i) != TOUPPER (i))
3757      return 2;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_run "$LINENO"; then :
3762
3763else
3764  ac_cv_header_stdc=no
3765fi
3766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3767  conftest.$ac_objext conftest.beam conftest.$ac_ext
3768fi
3769
3770fi
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3773$as_echo "$ac_cv_header_stdc" >&6; }
3774if test $ac_cv_header_stdc = yes; then
3775
3776$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3777
3778fi
3779
3780# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3782		  inttypes.h stdint.h unistd.h
3783do :
3784  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3786"
3787if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3788  cat >>confdefs.h <<_ACEOF
3789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790_ACEOF
3791
3792fi
3793
3794done
3795
3796
3797
3798  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3799if test "x$ac_cv_header_minix_config_h" = xyes; then :
3800  MINIX=yes
3801else
3802  MINIX=
3803fi
3804
3805
3806  if test "$MINIX" = yes; then
3807
3808$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3809
3810
3811$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3812
3813
3814$as_echo "#define _MINIX 1" >>confdefs.h
3815
3816  fi
3817
3818
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3820$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3821if ${ac_cv_safe_to_define___extensions__+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827#	  define __EXTENSIONS__ 1
3828	  $ac_includes_default
3829int
3830main ()
3831{
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837if ac_fn_c_try_compile "$LINENO"; then :
3838  ac_cv_safe_to_define___extensions__=yes
3839else
3840  ac_cv_safe_to_define___extensions__=no
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3845$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3846  test $ac_cv_safe_to_define___extensions__ = yes &&
3847    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3848
3849  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3850
3851  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3852
3853  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854
3855  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3856
3857
3858
3859ac_aux_dir=
3860for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3861  if test -f "$ac_dir/install-sh"; then
3862    ac_aux_dir=$ac_dir
3863    ac_install_sh="$ac_aux_dir/install-sh -c"
3864    break
3865  elif test -f "$ac_dir/install.sh"; then
3866    ac_aux_dir=$ac_dir
3867    ac_install_sh="$ac_aux_dir/install.sh -c"
3868    break
3869  elif test -f "$ac_dir/shtool"; then
3870    ac_aux_dir=$ac_dir
3871    ac_install_sh="$ac_aux_dir/shtool install -c"
3872    break
3873  fi
3874done
3875if test -z "$ac_aux_dir"; then
3876  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3877fi
3878
3879# These three variables are undocumented and unsupported,
3880# and are intended to be withdrawn in a future Autoconf release.
3881# They can cause serious problems if a builder's source tree is in a directory
3882# whose full name contains unusual characters.
3883ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3884ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3885ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3886
3887
3888case `pwd` in
3889  *\ * | *\	*)
3890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3891$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3892esac
3893
3894
3895
3896macro_version='2.4.2'
3897macro_revision='1.3337'
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911ltmain="$ac_aux_dir/ltmain.sh"
3912
3913# Make sure we can run config.sub.
3914$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3915  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3918$as_echo_n "checking build system type... " >&6; }
3919if ${ac_cv_build+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  ac_build_alias=$build_alias
3923test "x$ac_build_alias" = x &&
3924  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3925test "x$ac_build_alias" = x &&
3926  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3927ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3928  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3929
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3932$as_echo "$ac_cv_build" >&6; }
3933case $ac_cv_build in
3934*-*-*) ;;
3935*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3936esac
3937build=$ac_cv_build
3938ac_save_IFS=$IFS; IFS='-'
3939set x $ac_cv_build
3940shift
3941build_cpu=$1
3942build_vendor=$2
3943shift; shift
3944# Remember, the first character of IFS is used to create $*,
3945# except with old shells:
3946build_os=$*
3947IFS=$ac_save_IFS
3948case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3949
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3952$as_echo_n "checking host system type... " >&6; }
3953if ${ac_cv_host+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  if test "x$host_alias" = x; then
3957  ac_cv_host=$ac_cv_build
3958else
3959  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3960    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3961fi
3962
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3965$as_echo "$ac_cv_host" >&6; }
3966case $ac_cv_host in
3967*-*-*) ;;
3968*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3969esac
3970host=$ac_cv_host
3971ac_save_IFS=$IFS; IFS='-'
3972set x $ac_cv_host
3973shift
3974host_cpu=$1
3975host_vendor=$2
3976shift; shift
3977# Remember, the first character of IFS is used to create $*,
3978# except with old shells:
3979host_os=$*
3980IFS=$ac_save_IFS
3981case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3982
3983
3984# Backslashify metacharacters that are still active within
3985# double-quoted strings.
3986sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3987
3988# Same as above, but do not quote variable references.
3989double_quote_subst='s/\(["`\\]\)/\\\1/g'
3990
3991# Sed substitution to delay expansion of an escaped shell variable in a
3992# double_quote_subst'ed string.
3993delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3994
3995# Sed substitution to delay expansion of an escaped single quote.
3996delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3997
3998# Sed substitution to avoid accidental globbing in evaled expressions
3999no_glob_subst='s/\*/\\\*/g'
4000
4001ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4003ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4004
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4006$as_echo_n "checking how to print strings... " >&6; }
4007# Test print first, because it will be a builtin if present.
4008if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4009   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4010  ECHO='print -r --'
4011elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4012  ECHO='printf %s\n'
4013else
4014  # Use this function as a fallback that always works.
4015  func_fallback_echo ()
4016  {
4017    eval 'cat <<_LTECHO_EOF
4018$1
4019_LTECHO_EOF'
4020  }
4021  ECHO='func_fallback_echo'
4022fi
4023
4024# func_echo_all arg...
4025# Invoke $ECHO with all args, space-separated.
4026func_echo_all ()
4027{
4028    $ECHO ""
4029}
4030
4031case "$ECHO" in
4032  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4033$as_echo "printf" >&6; } ;;
4034  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4035$as_echo "print -r" >&6; } ;;
4036  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4037$as_echo "cat" >&6; } ;;
4038esac
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4055if ${ac_cv_path_SED+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4059     for ac_i in 1 2 3 4 5 6 7; do
4060       ac_script="$ac_script$as_nl$ac_script"
4061     done
4062     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4063     { ac_script=; unset ac_script;}
4064     if test -z "$SED"; then
4065  ac_path_SED_found=false
4066  # Loop through the user's path and test for each of PROGNAME-LIST
4067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  test -z "$as_dir" && as_dir=.
4072    for ac_prog in sed gsed; do
4073    for ac_exec_ext in '' $ac_executable_extensions; do
4074      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4075      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4076# Check for GNU ac_path_SED and select it if it is found.
4077  # Check for GNU $ac_path_SED
4078case `"$ac_path_SED" --version 2>&1` in
4079*GNU*)
4080  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4081*)
4082  ac_count=0
4083  $as_echo_n 0123456789 >"conftest.in"
4084  while :
4085  do
4086    cat "conftest.in" "conftest.in" >"conftest.tmp"
4087    mv "conftest.tmp" "conftest.in"
4088    cp "conftest.in" "conftest.nl"
4089    $as_echo '' >> "conftest.nl"
4090    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092    as_fn_arith $ac_count + 1 && ac_count=$as_val
4093    if test $ac_count -gt ${ac_path_SED_max-0}; then
4094      # Best one so far, save it but keep looking for a better one
4095      ac_cv_path_SED="$ac_path_SED"
4096      ac_path_SED_max=$ac_count
4097    fi
4098    # 10*(2^10) chars as input seems more than enough
4099    test $ac_count -gt 10 && break
4100  done
4101  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102esac
4103
4104      $ac_path_SED_found && break 3
4105    done
4106  done
4107  done
4108IFS=$as_save_IFS
4109  if test -z "$ac_cv_path_SED"; then
4110    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4111  fi
4112else
4113  ac_cv_path_SED=$SED
4114fi
4115
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4118$as_echo "$ac_cv_path_SED" >&6; }
4119 SED="$ac_cv_path_SED"
4120  rm -f conftest.sed
4121
4122test -z "$SED" && SED=sed
4123Xsed="$SED -e 1s/^X//"
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4136$as_echo_n "checking for fgrep... " >&6; }
4137if ${ac_cv_path_FGREP+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4141   then ac_cv_path_FGREP="$GREP -F"
4142   else
4143     if test -z "$FGREP"; then
4144  ac_path_FGREP_found=false
4145  # Loop through the user's path and test for each of PROGNAME-LIST
4146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_prog in fgrep; do
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4154      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4155# Check for GNU ac_path_FGREP and select it if it is found.
4156  # Check for GNU $ac_path_FGREP
4157case `"$ac_path_FGREP" --version 2>&1` in
4158*GNU*)
4159  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4160*)
4161  ac_count=0
4162  $as_echo_n 0123456789 >"conftest.in"
4163  while :
4164  do
4165    cat "conftest.in" "conftest.in" >"conftest.tmp"
4166    mv "conftest.tmp" "conftest.in"
4167    cp "conftest.in" "conftest.nl"
4168    $as_echo 'FGREP' >> "conftest.nl"
4169    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171    as_fn_arith $ac_count + 1 && ac_count=$as_val
4172    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4173      # Best one so far, save it but keep looking for a better one
4174      ac_cv_path_FGREP="$ac_path_FGREP"
4175      ac_path_FGREP_max=$ac_count
4176    fi
4177    # 10*(2^10) chars as input seems more than enough
4178    test $ac_count -gt 10 && break
4179  done
4180  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
4183      $ac_path_FGREP_found && break 3
4184    done
4185  done
4186  done
4187IFS=$as_save_IFS
4188  if test -z "$ac_cv_path_FGREP"; then
4189    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190  fi
4191else
4192  ac_cv_path_FGREP=$FGREP
4193fi
4194
4195   fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4198$as_echo "$ac_cv_path_FGREP" >&6; }
4199 FGREP="$ac_cv_path_FGREP"
4200
4201
4202test -z "$GREP" && GREP=grep
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222# Check whether --with-gnu-ld was given.
4223if test "${with_gnu_ld+set}" = set; then :
4224  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4225else
4226  with_gnu_ld=no
4227fi
4228
4229ac_prog=ld
4230if test "$GCC" = yes; then
4231  # Check if gcc -print-prog-name=ld gives a path.
4232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4233$as_echo_n "checking for ld used by $CC... " >&6; }
4234  case $host in
4235  *-*-mingw*)
4236    # gcc leaves a trailing carriage return which upsets mingw
4237    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4238  *)
4239    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4240  esac
4241  case $ac_prog in
4242    # Accept absolute paths.
4243    [\\/]* | ?:[\\/]*)
4244      re_direlt='/[^/][^/]*/\.\./'
4245      # Canonicalize the pathname of ld
4246      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4247      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4248	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4249      done
4250      test -z "$LD" && LD="$ac_prog"
4251      ;;
4252  "")
4253    # If it fails, then pretend we aren't using GCC.
4254    ac_prog=ld
4255    ;;
4256  *)
4257    # If it is relative, then search for the first ld in PATH.
4258    with_gnu_ld=unknown
4259    ;;
4260  esac
4261elif test "$with_gnu_ld" = yes; then
4262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4263$as_echo_n "checking for GNU ld... " >&6; }
4264else
4265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4266$as_echo_n "checking for non-GNU ld... " >&6; }
4267fi
4268if ${lt_cv_path_LD+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  if test -z "$LD"; then
4272  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4273  for ac_dir in $PATH; do
4274    IFS="$lt_save_ifs"
4275    test -z "$ac_dir" && ac_dir=.
4276    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4277      lt_cv_path_LD="$ac_dir/$ac_prog"
4278      # Check to see if the program is GNU ld.  I'd rather use --version,
4279      # but apparently some variants of GNU ld only accept -v.
4280      # Break only if it was the GNU/non-GNU ld that we prefer.
4281      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4282      *GNU* | *'with BFD'*)
4283	test "$with_gnu_ld" != no && break
4284	;;
4285      *)
4286	test "$with_gnu_ld" != yes && break
4287	;;
4288      esac
4289    fi
4290  done
4291  IFS="$lt_save_ifs"
4292else
4293  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4294fi
4295fi
4296
4297LD="$lt_cv_path_LD"
4298if test -n "$LD"; then
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4300$as_echo "$LD" >&6; }
4301else
4302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
4304fi
4305test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4307$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4308if ${lt_cv_prog_gnu_ld+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4312case `$LD -v 2>&1 </dev/null` in
4313*GNU* | *'with BFD'*)
4314  lt_cv_prog_gnu_ld=yes
4315  ;;
4316*)
4317  lt_cv_prog_gnu_ld=no
4318  ;;
4319esac
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4322$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4323with_gnu_ld=$lt_cv_prog_gnu_ld
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4334$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4335if ${lt_cv_path_NM+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if test -n "$NM"; then
4339  # Let the user override the test.
4340  lt_cv_path_NM="$NM"
4341else
4342  lt_nm_to_check="${ac_tool_prefix}nm"
4343  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4344    lt_nm_to_check="$lt_nm_to_check nm"
4345  fi
4346  for lt_tmp_nm in $lt_nm_to_check; do
4347    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4348    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4349      IFS="$lt_save_ifs"
4350      test -z "$ac_dir" && ac_dir=.
4351      tmp_nm="$ac_dir/$lt_tmp_nm"
4352      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4353	# Check to see if the nm accepts a BSD-compat flag.
4354	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4355	#   nm: unknown option "B" ignored
4356	# Tru64's nm complains that /dev/null is an invalid object file
4357	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4358	*/dev/null* | *'Invalid file or object type'*)
4359	  lt_cv_path_NM="$tmp_nm -B"
4360	  break
4361	  ;;
4362	*)
4363	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4364	  */dev/null*)
4365	    lt_cv_path_NM="$tmp_nm -p"
4366	    break
4367	    ;;
4368	  *)
4369	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4370	    continue # so that we can try to find one that supports BSD flags
4371	    ;;
4372	  esac
4373	  ;;
4374	esac
4375      fi
4376    done
4377    IFS="$lt_save_ifs"
4378  done
4379  : ${lt_cv_path_NM=no}
4380fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4383$as_echo "$lt_cv_path_NM" >&6; }
4384if test "$lt_cv_path_NM" != "no"; then
4385  NM="$lt_cv_path_NM"
4386else
4387  # Didn't find any BSD compatible name lister, look for dumpbin.
4388  if test -n "$DUMPBIN"; then :
4389    # Let the user override the test.
4390  else
4391    if test -n "$ac_tool_prefix"; then
4392  for ac_prog in dumpbin "link -dump"
4393  do
4394    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
4398if ${ac_cv_prog_DUMPBIN+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if test -n "$DUMPBIN"; then
4402  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4403else
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407  IFS=$as_save_IFS
4408  test -z "$as_dir" && as_dir=.
4409    for ac_exec_ext in '' $ac_executable_extensions; do
4410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413    break 2
4414  fi
4415done
4416  done
4417IFS=$as_save_IFS
4418
4419fi
4420fi
4421DUMPBIN=$ac_cv_prog_DUMPBIN
4422if test -n "$DUMPBIN"; then
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4424$as_echo "$DUMPBIN" >&6; }
4425else
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
4428fi
4429
4430
4431    test -n "$DUMPBIN" && break
4432  done
4433fi
4434if test -z "$DUMPBIN"; then
4435  ac_ct_DUMPBIN=$DUMPBIN
4436  for ac_prog in dumpbin "link -dump"
4437do
4438  # Extract the first word of "$ac_prog", so it can be a program name with args.
4439set dummy $ac_prog; ac_word=$2
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  if test -n "$ac_ct_DUMPBIN"; then
4446  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460  done
4461IFS=$as_save_IFS
4462
4463fi
4464fi
4465ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4466if test -n "$ac_ct_DUMPBIN"; then
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4468$as_echo "$ac_ct_DUMPBIN" >&6; }
4469else
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471$as_echo "no" >&6; }
4472fi
4473
4474
4475  test -n "$ac_ct_DUMPBIN" && break
4476done
4477
4478  if test "x$ac_ct_DUMPBIN" = x; then
4479    DUMPBIN=":"
4480  else
4481    case $cross_compiling:$ac_tool_warned in
4482yes:)
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485ac_tool_warned=yes ;;
4486esac
4487    DUMPBIN=$ac_ct_DUMPBIN
4488  fi
4489fi
4490
4491    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4492    *COFF*)
4493      DUMPBIN="$DUMPBIN -symbols"
4494      ;;
4495    *)
4496      DUMPBIN=:
4497      ;;
4498    esac
4499  fi
4500
4501  if test "$DUMPBIN" != ":"; then
4502    NM="$DUMPBIN"
4503  fi
4504fi
4505test -z "$NM" && NM=nm
4506
4507
4508
4509
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4513$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4514if ${lt_cv_nm_interface+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  lt_cv_nm_interface="BSD nm"
4518  echo "int some_variable = 0;" > conftest.$ac_ext
4519  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4520  (eval "$ac_compile" 2>conftest.err)
4521  cat conftest.err >&5
4522  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4523  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4524  cat conftest.err >&5
4525  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4526  cat conftest.out >&5
4527  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4528    lt_cv_nm_interface="MS dumpbin"
4529  fi
4530  rm -f conftest*
4531fi
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4533$as_echo "$lt_cv_nm_interface" >&6; }
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4536$as_echo_n "checking whether ln -s works... " >&6; }
4537LN_S=$as_ln_s
4538if test "$LN_S" = "ln -s"; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540$as_echo "yes" >&6; }
4541else
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4543$as_echo "no, using $LN_S" >&6; }
4544fi
4545
4546# find the maximum length of command line arguments
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4548$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4549if ${lt_cv_sys_max_cmd_len+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552    i=0
4553  teststring="ABCD"
4554
4555  case $build_os in
4556  msdosdjgpp*)
4557    # On DJGPP, this test can blow up pretty badly due to problems in libc
4558    # (any single argument exceeding 2000 bytes causes a buffer overrun
4559    # during glob expansion).  Even if it were fixed, the result of this
4560    # check would be larger than it should be.
4561    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4562    ;;
4563
4564  gnu*)
4565    # Under GNU Hurd, this test is not required because there is
4566    # no limit to the length of command line arguments.
4567    # Libtool will interpret -1 as no limit whatsoever
4568    lt_cv_sys_max_cmd_len=-1;
4569    ;;
4570
4571  cygwin* | mingw* | cegcc*)
4572    # On Win9x/ME, this test blows up -- it succeeds, but takes
4573    # about 5 minutes as the teststring grows exponentially.
4574    # Worse, since 9x/ME are not pre-emptively multitasking,
4575    # you end up with a "frozen" computer, even though with patience
4576    # the test eventually succeeds (with a max line length of 256k).
4577    # Instead, let's just punt: use the minimum linelength reported by
4578    # all of the supported platforms: 8192 (on NT/2K/XP).
4579    lt_cv_sys_max_cmd_len=8192;
4580    ;;
4581
4582  mint*)
4583    # On MiNT this can take a long time and run out of memory.
4584    lt_cv_sys_max_cmd_len=8192;
4585    ;;
4586
4587  amigaos*)
4588    # On AmigaOS with pdksh, this test takes hours, literally.
4589    # So we just punt and use a minimum line length of 8192.
4590    lt_cv_sys_max_cmd_len=8192;
4591    ;;
4592
4593  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4594    # This has been around since 386BSD, at least.  Likely further.
4595    if test -x /sbin/sysctl; then
4596      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4597    elif test -x /usr/sbin/sysctl; then
4598      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4599    else
4600      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4601    fi
4602    # And add a safety zone
4603    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4604    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4605    ;;
4606
4607  interix*)
4608    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4609    lt_cv_sys_max_cmd_len=196608
4610    ;;
4611
4612  os2*)
4613    # The test takes a long time on OS/2.
4614    lt_cv_sys_max_cmd_len=8192
4615    ;;
4616
4617  osf*)
4618    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4619    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4620    # nice to cause kernel panics so lets avoid the loop below.
4621    # First set a reasonable default.
4622    lt_cv_sys_max_cmd_len=16384
4623    #
4624    if test -x /sbin/sysconfig; then
4625      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4626        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4627      esac
4628    fi
4629    ;;
4630  sco3.2v5*)
4631    lt_cv_sys_max_cmd_len=102400
4632    ;;
4633  sysv5* | sco5v6* | sysv4.2uw2*)
4634    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4635    if test -n "$kargmax"; then
4636      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4637    else
4638      lt_cv_sys_max_cmd_len=32768
4639    fi
4640    ;;
4641  *)
4642    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4643    if test -n "$lt_cv_sys_max_cmd_len"; then
4644      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4645      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4646    else
4647      # Make teststring a little bigger before we do anything with it.
4648      # a 1K string should be a reasonable start.
4649      for i in 1 2 3 4 5 6 7 8 ; do
4650        teststring=$teststring$teststring
4651      done
4652      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4653      # If test is not a shell built-in, we'll probably end up computing a
4654      # maximum length that is only half of the actual maximum length, but
4655      # we can't tell.
4656      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4657	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4658	      test $i != 17 # 1/2 MB should be enough
4659      do
4660        i=`expr $i + 1`
4661        teststring=$teststring$teststring
4662      done
4663      # Only check the string length outside the loop.
4664      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4665      teststring=
4666      # Add a significant safety factor because C++ compilers can tack on
4667      # massive amounts of additional arguments before passing them to the
4668      # linker.  It appears as though 1/2 is a usable value.
4669      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4670    fi
4671    ;;
4672  esac
4673
4674fi
4675
4676if test -n $lt_cv_sys_max_cmd_len ; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4678$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4681$as_echo "none" >&6; }
4682fi
4683max_cmd_len=$lt_cv_sys_max_cmd_len
4684
4685
4686
4687
4688
4689
4690: ${CP="cp -f"}
4691: ${MV="mv -f"}
4692: ${RM="rm -f"}
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4695$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4696# Try some XSI features
4697xsi_shell=no
4698( _lt_dummy="a/b/c"
4699  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4700      = c,a/b,b/c, \
4701    && eval 'test $(( 1 + 1 )) -eq 2 \
4702    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4703  && xsi_shell=yes
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4705$as_echo "$xsi_shell" >&6; }
4706
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4709$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4710lt_shell_append=no
4711( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4712    >/dev/null 2>&1 \
4713  && lt_shell_append=yes
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4715$as_echo "$lt_shell_append" >&6; }
4716
4717
4718if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4719  lt_unset=unset
4720else
4721  lt_unset=false
4722fi
4723
4724
4725
4726
4727
4728# test EBCDIC or ASCII
4729case `echo X|tr X '\101'` in
4730 A) # ASCII based system
4731    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4732  lt_SP2NL='tr \040 \012'
4733  lt_NL2SP='tr \015\012 \040\040'
4734  ;;
4735 *) # EBCDIC based system
4736  lt_SP2NL='tr \100 \n'
4737  lt_NL2SP='tr \r\n \100\100'
4738  ;;
4739esac
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4750$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4751if ${lt_cv_to_host_file_cmd+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  case $host in
4755  *-*-mingw* )
4756    case $build in
4757      *-*-mingw* ) # actually msys
4758        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4759        ;;
4760      *-*-cygwin* )
4761        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4762        ;;
4763      * ) # otherwise, assume *nix
4764        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4765        ;;
4766    esac
4767    ;;
4768  *-*-cygwin* )
4769    case $build in
4770      *-*-mingw* ) # actually msys
4771        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4772        ;;
4773      *-*-cygwin* )
4774        lt_cv_to_host_file_cmd=func_convert_file_noop
4775        ;;
4776      * ) # otherwise, assume *nix
4777        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4778        ;;
4779    esac
4780    ;;
4781  * ) # unhandled hosts (and "normal" native builds)
4782    lt_cv_to_host_file_cmd=func_convert_file_noop
4783    ;;
4784esac
4785
4786fi
4787
4788to_host_file_cmd=$lt_cv_to_host_file_cmd
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4790$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4791
4792
4793
4794
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4797$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4798if ${lt_cv_to_tool_file_cmd+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  #assume ordinary cross tools, or native build.
4802lt_cv_to_tool_file_cmd=func_convert_file_noop
4803case $host in
4804  *-*-mingw* )
4805    case $build in
4806      *-*-mingw* ) # actually msys
4807        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4808        ;;
4809    esac
4810    ;;
4811esac
4812
4813fi
4814
4815to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4817$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4818
4819
4820
4821
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4824$as_echo_n "checking for $LD option to reload object files... " >&6; }
4825if ${lt_cv_ld_reload_flag+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  lt_cv_ld_reload_flag='-r'
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4831$as_echo "$lt_cv_ld_reload_flag" >&6; }
4832reload_flag=$lt_cv_ld_reload_flag
4833case $reload_flag in
4834"" | " "*) ;;
4835*) reload_flag=" $reload_flag" ;;
4836esac
4837reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838case $host_os in
4839  cygwin* | mingw* | pw32* | cegcc*)
4840    if test "$GCC" != yes; then
4841      reload_cmds=false
4842    fi
4843    ;;
4844  darwin*)
4845    if test "$GCC" = yes; then
4846      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4847    else
4848      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4849    fi
4850    ;;
4851esac
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861if test -n "$ac_tool_prefix"; then
4862  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4863set dummy ${ac_tool_prefix}objdump; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if ${ac_cv_prog_OBJDUMP+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  if test -n "$OBJDUMP"; then
4870  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877    for ac_exec_ext in '' $ac_executable_extensions; do
4878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881    break 2
4882  fi
4883done
4884  done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889OBJDUMP=$ac_cv_prog_OBJDUMP
4890if test -n "$OBJDUMP"; then
4891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4892$as_echo "$OBJDUMP" >&6; }
4893else
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898
4899fi
4900if test -z "$ac_cv_prog_OBJDUMP"; then
4901  ac_ct_OBJDUMP=$OBJDUMP
4902  # Extract the first word of "objdump", so it can be a program name with args.
4903set dummy objdump; ac_word=$2
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905$as_echo_n "checking for $ac_word... " >&6; }
4906if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  if test -n "$ac_ct_OBJDUMP"; then
4910  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927fi
4928fi
4929ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4930if test -n "$ac_ct_OBJDUMP"; then
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4932$as_echo "$ac_ct_OBJDUMP" >&6; }
4933else
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936fi
4937
4938  if test "x$ac_ct_OBJDUMP" = x; then
4939    OBJDUMP="false"
4940  else
4941    case $cross_compiling:$ac_tool_warned in
4942yes:)
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945ac_tool_warned=yes ;;
4946esac
4947    OBJDUMP=$ac_ct_OBJDUMP
4948  fi
4949else
4950  OBJDUMP="$ac_cv_prog_OBJDUMP"
4951fi
4952
4953test -z "$OBJDUMP" && OBJDUMP=objdump
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4964$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4965if ${lt_cv_deplibs_check_method+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  lt_cv_file_magic_cmd='$MAGIC_CMD'
4969lt_cv_file_magic_test_file=
4970lt_cv_deplibs_check_method='unknown'
4971# Need to set the preceding variable on all platforms that support
4972# interlibrary dependencies.
4973# 'none' -- dependencies not supported.
4974# `unknown' -- same as none, but documents that we really don't know.
4975# 'pass_all' -- all dependencies passed with no checks.
4976# 'test_compile' -- check by making test program.
4977# 'file_magic [[regex]]' -- check by looking for files in library path
4978# which responds to the $file_magic_cmd with a given extended regex.
4979# If you have `file' or equivalent on your system and you're not sure
4980# whether `pass_all' will *always* work, you probably want this one.
4981
4982case $host_os in
4983aix[4-9]*)
4984  lt_cv_deplibs_check_method=pass_all
4985  ;;
4986
4987beos*)
4988  lt_cv_deplibs_check_method=pass_all
4989  ;;
4990
4991bsdi[45]*)
4992  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4993  lt_cv_file_magic_cmd='/usr/bin/file -L'
4994  lt_cv_file_magic_test_file=/shlib/libc.so
4995  ;;
4996
4997cygwin*)
4998  # func_win32_libid is a shell function defined in ltmain.sh
4999  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000  lt_cv_file_magic_cmd='func_win32_libid'
5001  ;;
5002
5003mingw* | pw32*)
5004  # Base MSYS/MinGW do not provide the 'file' command needed by
5005  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5006  # unless we find 'file', for example because we are cross-compiling.
5007  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5008  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5009    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5010    lt_cv_file_magic_cmd='func_win32_libid'
5011  else
5012    # Keep this pattern in sync with the one in func_win32_libid.
5013    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5014    lt_cv_file_magic_cmd='$OBJDUMP -f'
5015  fi
5016  ;;
5017
5018cegcc*)
5019  # use the weaker test based on 'objdump'. See mingw*.
5020  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5021  lt_cv_file_magic_cmd='$OBJDUMP -f'
5022  ;;
5023
5024darwin* | rhapsody*)
5025  lt_cv_deplibs_check_method=pass_all
5026  ;;
5027
5028freebsd* | dragonfly*)
5029  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5030    case $host_cpu in
5031    i*86 )
5032      # Not sure whether the presence of OpenBSD here was a mistake.
5033      # Let's accept both of them until this is cleared up.
5034      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035      lt_cv_file_magic_cmd=/usr/bin/file
5036      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5037      ;;
5038    esac
5039  else
5040    lt_cv_deplibs_check_method=pass_all
5041  fi
5042  ;;
5043
5044gnu*)
5045  lt_cv_deplibs_check_method=pass_all
5046  ;;
5047
5048haiku*)
5049  lt_cv_deplibs_check_method=pass_all
5050  ;;
5051
5052hpux10.20* | hpux11*)
5053  lt_cv_file_magic_cmd=/usr/bin/file
5054  case $host_cpu in
5055  ia64*)
5056    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5057    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5058    ;;
5059  hppa*64*)
5060    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]'
5061    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5062    ;;
5063  *)
5064    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5065    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5066    ;;
5067  esac
5068  ;;
5069
5070interix[3-9]*)
5071  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5072  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5073  ;;
5074
5075irix5* | irix6* | nonstopux*)
5076  case $LD in
5077  *-32|*"-32 ") libmagic=32-bit;;
5078  *-n32|*"-n32 ") libmagic=N32;;
5079  *-64|*"-64 ") libmagic=64-bit;;
5080  *) libmagic=never-match;;
5081  esac
5082  lt_cv_deplibs_check_method=pass_all
5083  ;;
5084
5085# This must be glibc/ELF.
5086linux* | k*bsd*-gnu | kopensolaris*-gnu)
5087  lt_cv_deplibs_check_method=pass_all
5088  ;;
5089
5090netbsd* | netbsdelf*-gnu)
5091  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5092    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5093  else
5094    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5095  fi
5096  ;;
5097
5098newos6*)
5099  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5100  lt_cv_file_magic_cmd=/usr/bin/file
5101  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5102  ;;
5103
5104*nto* | *qnx*)
5105  lt_cv_deplibs_check_method=pass_all
5106  ;;
5107
5108openbsd*)
5109  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5110    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5111  else
5112    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113  fi
5114  ;;
5115
5116osf3* | osf4* | osf5*)
5117  lt_cv_deplibs_check_method=pass_all
5118  ;;
5119
5120rdos*)
5121  lt_cv_deplibs_check_method=pass_all
5122  ;;
5123
5124solaris*)
5125  lt_cv_deplibs_check_method=pass_all
5126  ;;
5127
5128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5129  lt_cv_deplibs_check_method=pass_all
5130  ;;
5131
5132sysv4 | sysv4.3*)
5133  case $host_vendor in
5134  motorola)
5135    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]'
5136    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5137    ;;
5138  ncr)
5139    lt_cv_deplibs_check_method=pass_all
5140    ;;
5141  sequent)
5142    lt_cv_file_magic_cmd='/bin/file'
5143    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5144    ;;
5145  sni)
5146    lt_cv_file_magic_cmd='/bin/file'
5147    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5148    lt_cv_file_magic_test_file=/lib/libc.so
5149    ;;
5150  siemens)
5151    lt_cv_deplibs_check_method=pass_all
5152    ;;
5153  pc)
5154    lt_cv_deplibs_check_method=pass_all
5155    ;;
5156  esac
5157  ;;
5158
5159tpf*)
5160  lt_cv_deplibs_check_method=pass_all
5161  ;;
5162esac
5163
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5166$as_echo "$lt_cv_deplibs_check_method" >&6; }
5167
5168file_magic_glob=
5169want_nocaseglob=no
5170if test "$build" = "$host"; then
5171  case $host_os in
5172  mingw* | pw32*)
5173    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5174      want_nocaseglob=yes
5175    else
5176      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5177    fi
5178    ;;
5179  esac
5180fi
5181
5182file_magic_cmd=$lt_cv_file_magic_cmd
5183deplibs_check_method=$lt_cv_deplibs_check_method
5184test -z "$deplibs_check_method" && deplibs_check_method=unknown
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207if test -n "$ac_tool_prefix"; then
5208  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if ${ac_cv_prog_DLLTOOL+:} false; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  if test -n "$DLLTOOL"; then
5216  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235DLLTOOL=$ac_cv_prog_DLLTOOL
5236if test -n "$DLLTOOL"; then
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5238$as_echo "$DLLTOOL" >&6; }
5239else
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244
5245fi
5246if test -z "$ac_cv_prog_DLLTOOL"; then
5247  ac_ct_DLLTOOL=$DLLTOOL
5248  # Extract the first word of "dlltool", so it can be a program name with args.
5249set dummy dlltool; ac_word=$2
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251$as_echo_n "checking for $ac_word... " >&6; }
5252if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  if test -n "$ac_ct_DLLTOOL"; then
5256  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270  done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5276if test -n "$ac_ct_DLLTOOL"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5278$as_echo "$ac_ct_DLLTOOL" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284  if test "x$ac_ct_DLLTOOL" = x; then
5285    DLLTOOL="false"
5286  else
5287    case $cross_compiling:$ac_tool_warned in
5288yes:)
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291ac_tool_warned=yes ;;
5292esac
5293    DLLTOOL=$ac_ct_DLLTOOL
5294  fi
5295else
5296  DLLTOOL="$ac_cv_prog_DLLTOOL"
5297fi
5298
5299test -z "$DLLTOOL" && DLLTOOL=dlltool
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5311$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5312if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  lt_cv_sharedlib_from_linklib_cmd='unknown'
5316
5317case $host_os in
5318cygwin* | mingw* | pw32* | cegcc*)
5319  # two different shell functions defined in ltmain.sh
5320  # decide which to use based on capabilities of $DLLTOOL
5321  case `$DLLTOOL --help 2>&1` in
5322  *--identify-strict*)
5323    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5324    ;;
5325  *)
5326    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5327    ;;
5328  esac
5329  ;;
5330*)
5331  # fallback: assume linklib IS sharedlib
5332  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5333  ;;
5334esac
5335
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5338$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5339sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5340test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5341
5342
5343
5344
5345
5346
5347
5348if test -n "$ac_tool_prefix"; then
5349  for ac_prog in ar
5350  do
5351    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if ${ac_cv_prog_AR+:} false; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  if test -n "$AR"; then
5359  ac_cv_prog_AR="$AR" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364  IFS=$as_save_IFS
5365  test -z "$as_dir" && as_dir=.
5366    for ac_exec_ext in '' $ac_executable_extensions; do
5367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370    break 2
5371  fi
5372done
5373  done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378AR=$ac_cv_prog_AR
5379if test -n "$AR"; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5381$as_echo "$AR" >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388    test -n "$AR" && break
5389  done
5390fi
5391if test -z "$AR"; then
5392  ac_ct_AR=$AR
5393  for ac_prog in ar
5394do
5395  # Extract the first word of "$ac_prog", so it can be a program name with args.
5396set dummy $ac_prog; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if ${ac_cv_prog_ac_ct_AR+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  if test -n "$ac_ct_AR"; then
5403  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410    for ac_exec_ext in '' $ac_executable_extensions; do
5411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412    ac_cv_prog_ac_ct_AR="$ac_prog"
5413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417  done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423if test -n "$ac_ct_AR"; then
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5425$as_echo "$ac_ct_AR" >&6; }
5426else
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431
5432  test -n "$ac_ct_AR" && break
5433done
5434
5435  if test "x$ac_ct_AR" = x; then
5436    AR="false"
5437  else
5438    case $cross_compiling:$ac_tool_warned in
5439yes:)
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442ac_tool_warned=yes ;;
5443esac
5444    AR=$ac_ct_AR
5445  fi
5446fi
5447
5448: ${AR=ar}
5449: ${AR_FLAGS=cru}
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5462$as_echo_n "checking for archiver @FILE support... " >&6; }
5463if ${lt_cv_ar_at_file+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  lt_cv_ar_at_file=no
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469
5470int
5471main ()
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_compile "$LINENO"; then :
5479  echo conftest.$ac_objext > conftest.lst
5480      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5481      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5482  (eval $lt_ar_try) 2>&5
5483  ac_status=$?
5484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485  test $ac_status = 0; }
5486      if test "$ac_status" -eq 0; then
5487	# Ensure the archiver fails upon bogus file names.
5488	rm -f conftest.$ac_objext libconftest.a
5489	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5490  (eval $lt_ar_try) 2>&5
5491  ac_status=$?
5492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5493  test $ac_status = 0; }
5494	if test "$ac_status" -ne 0; then
5495          lt_cv_ar_at_file=@
5496        fi
5497      fi
5498      rm -f conftest.* libconftest.a
5499
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5505$as_echo "$lt_cv_ar_at_file" >&6; }
5506
5507if test "x$lt_cv_ar_at_file" = xno; then
5508  archiver_list_spec=
5509else
5510  archiver_list_spec=$lt_cv_ar_at_file
5511fi
5512
5513
5514
5515
5516
5517
5518
5519if test -n "$ac_tool_prefix"; then
5520  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5521set dummy ${ac_tool_prefix}strip; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_prog_STRIP+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -n "$STRIP"; then
5528  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545fi
5546fi
5547STRIP=$ac_cv_prog_STRIP
5548if test -n "$STRIP"; then
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5550$as_echo "$STRIP" >&6; }
5551else
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554fi
5555
5556
5557fi
5558if test -z "$ac_cv_prog_STRIP"; then
5559  ac_ct_STRIP=$STRIP
5560  # Extract the first word of "strip", so it can be a program name with args.
5561set dummy strip; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test -n "$ac_ct_STRIP"; then
5568  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573  IFS=$as_save_IFS
5574  test -z "$as_dir" && as_dir=.
5575    for ac_exec_ext in '' $ac_executable_extensions; do
5576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577    ac_cv_prog_ac_ct_STRIP="strip"
5578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582  done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5588if test -n "$ac_ct_STRIP"; then
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5590$as_echo "$ac_ct_STRIP" >&6; }
5591else
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596  if test "x$ac_ct_STRIP" = x; then
5597    STRIP=":"
5598  else
5599    case $cross_compiling:$ac_tool_warned in
5600yes:)
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603ac_tool_warned=yes ;;
5604esac
5605    STRIP=$ac_ct_STRIP
5606  fi
5607else
5608  STRIP="$ac_cv_prog_STRIP"
5609fi
5610
5611test -z "$STRIP" && STRIP=:
5612
5613
5614
5615
5616
5617
5618if test -n "$ac_tool_prefix"; then
5619  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5620set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_RANLIB+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$RANLIB"; then
5627  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646RANLIB=$ac_cv_prog_RANLIB
5647if test -n "$RANLIB"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5649$as_echo "$RANLIB" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656fi
5657if test -z "$ac_cv_prog_RANLIB"; then
5658  ac_ct_RANLIB=$RANLIB
5659  # Extract the first word of "ranlib", so it can be a program name with args.
5660set dummy ranlib; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  if test -n "$ac_ct_RANLIB"; then
5667  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674    for ac_exec_ext in '' $ac_executable_extensions; do
5675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676    ac_cv_prog_ac_ct_RANLIB="ranlib"
5677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681  done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5687if test -n "$ac_ct_RANLIB"; then
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5689$as_echo "$ac_ct_RANLIB" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695  if test "x$ac_ct_RANLIB" = x; then
5696    RANLIB=":"
5697  else
5698    case $cross_compiling:$ac_tool_warned in
5699yes:)
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5702ac_tool_warned=yes ;;
5703esac
5704    RANLIB=$ac_ct_RANLIB
5705  fi
5706else
5707  RANLIB="$ac_cv_prog_RANLIB"
5708fi
5709
5710test -z "$RANLIB" && RANLIB=:
5711
5712
5713
5714
5715
5716
5717# Determine commands to create old-style static archives.
5718old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5719old_postinstall_cmds='chmod 644 $oldlib'
5720old_postuninstall_cmds=
5721
5722if test -n "$RANLIB"; then
5723  case $host_os in
5724  openbsd*)
5725    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5726    ;;
5727  *)
5728    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5729    ;;
5730  esac
5731  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5732fi
5733
5734case $host_os in
5735  darwin*)
5736    lock_old_archive_extraction=yes ;;
5737  *)
5738    lock_old_archive_extraction=no ;;
5739esac
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761for ac_prog in gawk mawk nawk awk
5762do
5763  # Extract the first word of "$ac_prog", so it can be a program name with args.
5764set dummy $ac_prog; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
5767if ${ac_cv_prog_AWK+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  if test -n "$AWK"; then
5771  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776  IFS=$as_save_IFS
5777  test -z "$as_dir" && as_dir=.
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780    ac_cv_prog_AWK="$ac_prog"
5781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785  done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790AWK=$ac_cv_prog_AWK
5791if test -n "$AWK"; then
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5793$as_echo "$AWK" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
5797fi
5798
5799
5800  test -n "$AWK" && break
5801done
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821# If no C compiler was specified, use CC.
5822LTCC=${LTCC-"$CC"}
5823
5824# If no C compiler flags were specified, use CFLAGS.
5825LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5826
5827# Allow CC to be a program name with arguments.
5828compiler=$CC
5829
5830
5831# Check for command to grab the raw symbol name followed by C symbol from nm.
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5833$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837
5838# These are sane defaults that work on at least a few old systems.
5839# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5840
5841# Character class describing NM global symbol codes.
5842symcode='[BCDEGRST]'
5843
5844# Regexp to match symbols that can be accessed directly from C.
5845sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5846
5847# Define system-specific variables.
5848case $host_os in
5849aix*)
5850  symcode='[BCDT]'
5851  ;;
5852cygwin* | mingw* | pw32* | cegcc*)
5853  symcode='[ABCDGISTW]'
5854  ;;
5855hpux*)
5856  if test "$host_cpu" = ia64; then
5857    symcode='[ABCDEGRST]'
5858  fi
5859  ;;
5860irix* | nonstopux*)
5861  symcode='[BCDEGRST]'
5862  ;;
5863osf*)
5864  symcode='[BCDEGQRST]'
5865  ;;
5866solaris*)
5867  symcode='[BDRT]'
5868  ;;
5869sco3.2v5*)
5870  symcode='[DT]'
5871  ;;
5872sysv4.2uw2*)
5873  symcode='[DT]'
5874  ;;
5875sysv5* | sco5v6* | unixware* | OpenUNIX*)
5876  symcode='[ABDT]'
5877  ;;
5878sysv4)
5879  symcode='[DFNSTU]'
5880  ;;
5881esac
5882
5883# If we're using GNU nm, then use its standard symbol codes.
5884case `$NM -V 2>&1` in
5885*GNU* | *'with BFD'*)
5886  symcode='[ABCDGIRSTW]' ;;
5887esac
5888
5889# Transform an extracted symbol line into a proper C declaration.
5890# Some systems (esp. on ia64) link data and code symbols differently,
5891# so use this general approach.
5892lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893
5894# Transform an extracted symbol line into symbol name and symbol address
5895lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5896lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5897
5898# Handle CRLF in mingw tool chain
5899opt_cr=
5900case $build_os in
5901mingw*)
5902  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5903  ;;
5904esac
5905
5906# Try without a prefix underscore, then with it.
5907for ac_symprfx in "" "_"; do
5908
5909  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5910  symxfrm="\\1 $ac_symprfx\\2 \\2"
5911
5912  # Write the raw and C identifiers.
5913  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5914    # Fake it for dumpbin and say T for any non-static function
5915    # and D for any global variable.
5916    # Also find C++ and __fastcall symbols from MSVC++,
5917    # which start with @ or ?.
5918    lt_cv_sys_global_symbol_pipe="$AWK '"\
5919"     {last_section=section; section=\$ 3};"\
5920"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5921"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5922"     \$ 0!~/External *\|/{next};"\
5923"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5924"     {if(hide[section]) next};"\
5925"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5926"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5927"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5928"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5929"     ' prfx=^$ac_symprfx"
5930  else
5931    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5932  fi
5933  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5934
5935  # Check to see that the pipe works correctly.
5936  pipe_works=no
5937
5938  rm -f conftest*
5939  cat > conftest.$ac_ext <<_LT_EOF
5940#ifdef __cplusplus
5941extern "C" {
5942#endif
5943char nm_test_var;
5944void nm_test_func(void);
5945void nm_test_func(void){}
5946#ifdef __cplusplus
5947}
5948#endif
5949int main(){nm_test_var='a';nm_test_func();return(0);}
5950_LT_EOF
5951
5952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5953  (eval $ac_compile) 2>&5
5954  ac_status=$?
5955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956  test $ac_status = 0; }; then
5957    # Now try to grab the symbols.
5958    nlist=conftest.nm
5959    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5960  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5961  ac_status=$?
5962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963  test $ac_status = 0; } && test -s "$nlist"; then
5964      # Try sorting and uniquifying the output.
5965      if sort "$nlist" | uniq > "$nlist"T; then
5966	mv -f "$nlist"T "$nlist"
5967      else
5968	rm -f "$nlist"T
5969      fi
5970
5971      # Make sure that we snagged all the symbols we need.
5972      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5973	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5974	  cat <<_LT_EOF > conftest.$ac_ext
5975/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5976#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5977/* DATA imports from DLLs on WIN32 con't be const, because runtime
5978   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5979# define LT_DLSYM_CONST
5980#elif defined(__osf__)
5981/* This system does not cope well with relocations in const data.  */
5982# define LT_DLSYM_CONST
5983#else
5984# define LT_DLSYM_CONST const
5985#endif
5986
5987#ifdef __cplusplus
5988extern "C" {
5989#endif
5990
5991_LT_EOF
5992	  # Now generate the symbol file.
5993	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5994
5995	  cat <<_LT_EOF >> conftest.$ac_ext
5996
5997/* The mapping between symbol names and symbols.  */
5998LT_DLSYM_CONST struct {
5999  const char *name;
6000  void       *address;
6001}
6002lt__PROGRAM__LTX_preloaded_symbols[] =
6003{
6004  { "@PROGRAM@", (void *) 0 },
6005_LT_EOF
6006	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6007	  cat <<\_LT_EOF >> conftest.$ac_ext
6008  {0, (void *) 0}
6009};
6010
6011/* This works around a problem in FreeBSD linker */
6012#ifdef FREEBSD_WORKAROUND
6013static const void *lt_preloaded_setup() {
6014  return lt__PROGRAM__LTX_preloaded_symbols;
6015}
6016#endif
6017
6018#ifdef __cplusplus
6019}
6020#endif
6021_LT_EOF
6022	  # Now try linking the two files.
6023	  mv conftest.$ac_objext conftstm.$ac_objext
6024	  lt_globsym_save_LIBS=$LIBS
6025	  lt_globsym_save_CFLAGS=$CFLAGS
6026	  LIBS="conftstm.$ac_objext"
6027	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6028	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6029  (eval $ac_link) 2>&5
6030  ac_status=$?
6031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6033	    pipe_works=yes
6034	  fi
6035	  LIBS=$lt_globsym_save_LIBS
6036	  CFLAGS=$lt_globsym_save_CFLAGS
6037	else
6038	  echo "cannot find nm_test_func in $nlist" >&5
6039	fi
6040      else
6041	echo "cannot find nm_test_var in $nlist" >&5
6042      fi
6043    else
6044      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6045    fi
6046  else
6047    echo "$progname: failed program was:" >&5
6048    cat conftest.$ac_ext >&5
6049  fi
6050  rm -rf conftest* conftst*
6051
6052  # Do not use the global_symbol_pipe unless it works.
6053  if test "$pipe_works" = yes; then
6054    break
6055  else
6056    lt_cv_sys_global_symbol_pipe=
6057  fi
6058done
6059
6060fi
6061
6062if test -z "$lt_cv_sys_global_symbol_pipe"; then
6063  lt_cv_sys_global_symbol_to_cdecl=
6064fi
6065if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6067$as_echo "failed" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6070$as_echo "ok" >&6; }
6071fi
6072
6073# Response file support.
6074if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075  nm_file_list_spec='@'
6076elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6077  nm_file_list_spec='@'
6078fi
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6107$as_echo_n "checking for sysroot... " >&6; }
6108
6109# Check whether --with-sysroot was given.
6110if test "${with_sysroot+set}" = set; then :
6111  withval=$with_sysroot;
6112else
6113  with_sysroot=no
6114fi
6115
6116
6117lt_sysroot=
6118case ${with_sysroot} in #(
6119 yes)
6120   if test "$GCC" = yes; then
6121     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6122   fi
6123   ;; #(
6124 /*)
6125   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6126   ;; #(
6127 no|'')
6128   ;; #(
6129 *)
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6131$as_echo "${with_sysroot}" >&6; }
6132   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6133   ;;
6134esac
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6137$as_echo "${lt_sysroot:-no}" >&6; }
6138
6139
6140
6141
6142
6143# Check whether --enable-libtool-lock was given.
6144if test "${enable_libtool_lock+set}" = set; then :
6145  enableval=$enable_libtool_lock;
6146fi
6147
6148test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6149
6150# Some flags need to be propagated to the compiler or linker for good
6151# libtool support.
6152case $host in
6153ia64-*-hpux*)
6154  # Find out which ABI we are using.
6155  echo 'int i;' > conftest.$ac_ext
6156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157  (eval $ac_compile) 2>&5
6158  ac_status=$?
6159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160  test $ac_status = 0; }; then
6161    case `/usr/bin/file conftest.$ac_objext` in
6162      *ELF-32*)
6163	HPUX_IA64_MODE="32"
6164	;;
6165      *ELF-64*)
6166	HPUX_IA64_MODE="64"
6167	;;
6168    esac
6169  fi
6170  rm -rf conftest*
6171  ;;
6172*-*-irix6*)
6173  # Find out which ABI we are using.
6174  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6175  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176  (eval $ac_compile) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; }; then
6180    if test "$lt_cv_prog_gnu_ld" = yes; then
6181      case `/usr/bin/file conftest.$ac_objext` in
6182	*32-bit*)
6183	  LD="${LD-ld} -melf32bsmip"
6184	  ;;
6185	*N32*)
6186	  LD="${LD-ld} -melf32bmipn32"
6187	  ;;
6188	*64-bit*)
6189	  LD="${LD-ld} -melf64bmip"
6190	;;
6191      esac
6192    else
6193      case `/usr/bin/file conftest.$ac_objext` in
6194	*32-bit*)
6195	  LD="${LD-ld} -32"
6196	  ;;
6197	*N32*)
6198	  LD="${LD-ld} -n32"
6199	  ;;
6200	*64-bit*)
6201	  LD="${LD-ld} -64"
6202	  ;;
6203      esac
6204    fi
6205  fi
6206  rm -rf conftest*
6207  ;;
6208
6209x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6210s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6211  # Find out which ABI we are using.
6212  echo 'int i;' > conftest.$ac_ext
6213  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214  (eval $ac_compile) 2>&5
6215  ac_status=$?
6216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217  test $ac_status = 0; }; then
6218    case `/usr/bin/file conftest.o` in
6219      *32-bit*)
6220	case $host in
6221	  x86_64-*kfreebsd*-gnu)
6222	    LD="${LD-ld} -m elf_i386_fbsd"
6223	    ;;
6224	  x86_64-*linux*)
6225	    LD="${LD-ld} -m elf_i386"
6226	    ;;
6227	  ppc64-*linux*|powerpc64-*linux*)
6228	    LD="${LD-ld} -m elf32ppclinux"
6229	    ;;
6230	  s390x-*linux*)
6231	    LD="${LD-ld} -m elf_s390"
6232	    ;;
6233	  sparc64-*linux*)
6234	    LD="${LD-ld} -m elf32_sparc"
6235	    ;;
6236	esac
6237	;;
6238      *64-bit*)
6239	case $host in
6240	  x86_64-*kfreebsd*-gnu)
6241	    LD="${LD-ld} -m elf_x86_64_fbsd"
6242	    ;;
6243	  x86_64-*linux*)
6244	    LD="${LD-ld} -m elf_x86_64"
6245	    ;;
6246	  ppc*-*linux*|powerpc*-*linux*)
6247	    LD="${LD-ld} -m elf64ppc"
6248	    ;;
6249	  s390*-*linux*|s390*-*tpf*)
6250	    LD="${LD-ld} -m elf64_s390"
6251	    ;;
6252	  sparc*-*linux*)
6253	    LD="${LD-ld} -m elf64_sparc"
6254	    ;;
6255	esac
6256	;;
6257    esac
6258  fi
6259  rm -rf conftest*
6260  ;;
6261
6262*-*-sco3.2v5*)
6263  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6264  SAVE_CFLAGS="$CFLAGS"
6265  CFLAGS="$CFLAGS -belf"
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6267$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6268if ${lt_cv_cc_needs_belf+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  ac_ext=c
6272ac_cpp='$CPP $CPPFLAGS'
6273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276
6277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_link "$LINENO"; then :
6289  lt_cv_cc_needs_belf=yes
6290else
6291  lt_cv_cc_needs_belf=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295     ac_ext=c
6296ac_cpp='$CPP $CPPFLAGS'
6297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6303$as_echo "$lt_cv_cc_needs_belf" >&6; }
6304  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6305    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6306    CFLAGS="$SAVE_CFLAGS"
6307  fi
6308  ;;
6309*-*solaris*)
6310  # Find out which ABI we are using.
6311  echo 'int i;' > conftest.$ac_ext
6312  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313  (eval $ac_compile) 2>&5
6314  ac_status=$?
6315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316  test $ac_status = 0; }; then
6317    case `/usr/bin/file conftest.o` in
6318    *64-bit*)
6319      case $lt_cv_prog_gnu_ld in
6320      yes*)
6321        case $host in
6322        i?86-*-solaris*)
6323          LD="${LD-ld} -m elf_x86_64"
6324          ;;
6325        sparc*-*-solaris*)
6326          LD="${LD-ld} -m elf64_sparc"
6327          ;;
6328        esac
6329        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6330        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6331          LD="${LD-ld}_sol2"
6332        fi
6333        ;;
6334      *)
6335	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6336	  LD="${LD-ld} -64"
6337	fi
6338	;;
6339      esac
6340      ;;
6341    esac
6342  fi
6343  rm -rf conftest*
6344  ;;
6345esac
6346
6347need_locks="$enable_libtool_lock"
6348
6349if test -n "$ac_tool_prefix"; then
6350  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}mt; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$MANIFEST_TOOL"; then
6358  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6378if test -n "$MANIFEST_TOOL"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6380$as_echo "$MANIFEST_TOOL" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386
6387fi
6388if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6389  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6390  # Extract the first word of "mt", so it can be a program name with args.
6391set dummy mt; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_MANIFEST_TOOL"; then
6398  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405    for ac_exec_ext in '' $ac_executable_extensions; do
6406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412  done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6418if test -n "$ac_ct_MANIFEST_TOOL"; then
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6420$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6427    MANIFEST_TOOL=":"
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6436  fi
6437else
6438  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6439fi
6440
6441test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6443$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6444if ${lt_cv_path_mainfest_tool+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  lt_cv_path_mainfest_tool=no
6448  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6449  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6450  cat conftest.err >&5
6451  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6452    lt_cv_path_mainfest_tool=yes
6453  fi
6454  rm -f conftest*
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6457$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6458if test "x$lt_cv_path_mainfest_tool" != xyes; then
6459  MANIFEST_TOOL=:
6460fi
6461
6462
6463
6464
6465
6466
6467  case $host_os in
6468    rhapsody* | darwin*)
6469    if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_DSYMUTIL+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$DSYMUTIL"; then
6478  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497DSYMUTIL=$ac_cv_prog_DSYMUTIL
6498if test -n "$DSYMUTIL"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6500$as_echo "$DSYMUTIL" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_DSYMUTIL"; then
6509  ac_ct_DSYMUTIL=$DSYMUTIL
6510  # Extract the first word of "dsymutil", so it can be a program name with args.
6511set dummy dsymutil; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_DSYMUTIL"; then
6518  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6538if test -n "$ac_ct_DSYMUTIL"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6540$as_echo "$ac_ct_DSYMUTIL" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_DSYMUTIL" = x; then
6547    DSYMUTIL=":"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    DSYMUTIL=$ac_ct_DSYMUTIL
6556  fi
6557else
6558  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6559fi
6560
6561    if test -n "$ac_tool_prefix"; then
6562  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6563set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
6566if ${ac_cv_prog_NMEDIT+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  if test -n "$NMEDIT"; then
6570  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577    for ac_exec_ext in '' $ac_executable_extensions; do
6578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584  done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589NMEDIT=$ac_cv_prog_NMEDIT
6590if test -n "$NMEDIT"; then
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6592$as_echo "$NMEDIT" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599fi
6600if test -z "$ac_cv_prog_NMEDIT"; then
6601  ac_ct_NMEDIT=$NMEDIT
6602  # Extract the first word of "nmedit", so it can be a program name with args.
6603set dummy nmedit; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -n "$ac_ct_NMEDIT"; then
6610  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6630if test -n "$ac_ct_NMEDIT"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6632$as_echo "$ac_ct_NMEDIT" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638  if test "x$ac_ct_NMEDIT" = x; then
6639    NMEDIT=":"
6640  else
6641    case $cross_compiling:$ac_tool_warned in
6642yes:)
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647    NMEDIT=$ac_ct_NMEDIT
6648  fi
6649else
6650  NMEDIT="$ac_cv_prog_NMEDIT"
6651fi
6652
6653    if test -n "$ac_tool_prefix"; then
6654  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6655set dummy ${ac_tool_prefix}lipo; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
6658if ${ac_cv_prog_LIPO+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  if test -n "$LIPO"; then
6662  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  test -z "$as_dir" && as_dir=.
6669    for ac_exec_ext in '' $ac_executable_extensions; do
6670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676  done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681LIPO=$ac_cv_prog_LIPO
6682if test -n "$LIPO"; then
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6684$as_echo "$LIPO" >&6; }
6685else
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
6688fi
6689
6690
6691fi
6692if test -z "$ac_cv_prog_LIPO"; then
6693  ac_ct_LIPO=$LIPO
6694  # Extract the first word of "lipo", so it can be a program name with args.
6695set dummy lipo; ac_word=$2
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
6698if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  if test -n "$ac_ct_LIPO"; then
6702  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709    for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_prog_ac_ct_LIPO="lipo"
6712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716  done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
6721ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6722if test -n "$ac_ct_LIPO"; then
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6724$as_echo "$ac_ct_LIPO" >&6; }
6725else
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
6729
6730  if test "x$ac_ct_LIPO" = x; then
6731    LIPO=":"
6732  else
6733    case $cross_compiling:$ac_tool_warned in
6734yes:)
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737ac_tool_warned=yes ;;
6738esac
6739    LIPO=$ac_ct_LIPO
6740  fi
6741else
6742  LIPO="$ac_cv_prog_LIPO"
6743fi
6744
6745    if test -n "$ac_tool_prefix"; then
6746  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6747set dummy ${ac_tool_prefix}otool; ac_word=$2
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749$as_echo_n "checking for $ac_word... " >&6; }
6750if ${ac_cv_prog_OTOOL+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  if test -n "$OTOOL"; then
6754  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  test -z "$as_dir" && as_dir=.
6761    for ac_exec_ext in '' $ac_executable_extensions; do
6762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765    break 2
6766  fi
6767done
6768  done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773OTOOL=$ac_cv_prog_OTOOL
6774if test -n "$OTOOL"; then
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6776$as_echo "$OTOOL" >&6; }
6777else
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
6780fi
6781
6782
6783fi
6784if test -z "$ac_cv_prog_OTOOL"; then
6785  ac_ct_OTOOL=$OTOOL
6786  # Extract the first word of "otool", so it can be a program name with args.
6787set dummy otool; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$ac_ct_OTOOL"; then
6794  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_prog_ac_ct_OTOOL="otool"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6814if test -n "$ac_ct_OTOOL"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6816$as_echo "$ac_ct_OTOOL" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822  if test "x$ac_ct_OTOOL" = x; then
6823    OTOOL=":"
6824  else
6825    case $cross_compiling:$ac_tool_warned in
6826yes:)
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829ac_tool_warned=yes ;;
6830esac
6831    OTOOL=$ac_ct_OTOOL
6832  fi
6833else
6834  OTOOL="$ac_cv_prog_OTOOL"
6835fi
6836
6837    if test -n "$ac_tool_prefix"; then
6838  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_OTOOL64+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$OTOOL64"; then
6846  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865OTOOL64=$ac_cv_prog_OTOOL64
6866if test -n "$OTOOL64"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6868$as_echo "$OTOOL64" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874
6875fi
6876if test -z "$ac_cv_prog_OTOOL64"; then
6877  ac_ct_OTOOL64=$OTOOL64
6878  # Extract the first word of "otool64", so it can be a program name with args.
6879set dummy otool64; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  if test -n "$ac_ct_OTOOL64"; then
6886  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895    ac_cv_prog_ac_ct_OTOOL64="otool64"
6896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906if test -n "$ac_ct_OTOOL64"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6908$as_echo "$ac_ct_OTOOL64" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914  if test "x$ac_ct_OTOOL64" = x; then
6915    OTOOL64=":"
6916  else
6917    case $cross_compiling:$ac_tool_warned in
6918yes:)
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921ac_tool_warned=yes ;;
6922esac
6923    OTOOL64=$ac_ct_OTOOL64
6924  fi
6925else
6926  OTOOL64="$ac_cv_prog_OTOOL64"
6927fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6956$as_echo_n "checking for -single_module linker flag... " >&6; }
6957if ${lt_cv_apple_cc_single_mod+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  lt_cv_apple_cc_single_mod=no
6961      if test -z "${LT_MULTI_MODULE}"; then
6962	# By default we will add the -single_module flag. You can override
6963	# by either setting the environment variable LT_MULTI_MODULE
6964	# non-empty at configure time, or by adding -multi_module to the
6965	# link flags.
6966	rm -rf libconftest.dylib*
6967	echo "int foo(void){return 1;}" > conftest.c
6968	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6969-dynamiclib -Wl,-single_module conftest.c" >&5
6970	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6971	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6972        _lt_result=$?
6973	# If there is a non-empty error log, and "single_module"
6974	# appears in it, assume the flag caused a linker warning
6975        if test -s conftest.err && $GREP single_module conftest.err; then
6976	  cat conftest.err >&5
6977	# Otherwise, if the output was created with a 0 exit code from
6978	# the compiler, it worked.
6979	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6980	  lt_cv_apple_cc_single_mod=yes
6981	else
6982	  cat conftest.err >&5
6983	fi
6984	rm -rf libconftest.dylib*
6985	rm -f conftest.*
6986      fi
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6989$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6990
6991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6992$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6993if ${lt_cv_ld_exported_symbols_list+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  lt_cv_ld_exported_symbols_list=no
6997      save_LDFLAGS=$LDFLAGS
6998      echo "_main" > conftest.sym
6999      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002
7003int
7004main ()
7005{
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  lt_cv_ld_exported_symbols_list=yes
7013else
7014  lt_cv_ld_exported_symbols_list=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018	LDFLAGS="$save_LDFLAGS"
7019
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7022$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7023
7024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7025$as_echo_n "checking for -force_load linker flag... " >&6; }
7026if ${lt_cv_ld_force_load+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  lt_cv_ld_force_load=no
7030      cat > conftest.c << _LT_EOF
7031int forced_loaded() { return 2;}
7032_LT_EOF
7033      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7034      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7035      echo "$AR cru libconftest.a conftest.o" >&5
7036      $AR cru libconftest.a conftest.o 2>&5
7037      echo "$RANLIB libconftest.a" >&5
7038      $RANLIB libconftest.a 2>&5
7039      cat > conftest.c << _LT_EOF
7040int main() { return 0;}
7041_LT_EOF
7042      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7043      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7044      _lt_result=$?
7045      if test -s conftest.err && $GREP force_load conftest.err; then
7046	cat conftest.err >&5
7047      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7048	lt_cv_ld_force_load=yes
7049      else
7050	cat conftest.err >&5
7051      fi
7052        rm -f conftest.err libconftest.a conftest conftest.c
7053        rm -rf conftest.dSYM
7054
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7057$as_echo "$lt_cv_ld_force_load" >&6; }
7058    case $host_os in
7059    rhapsody* | darwin1.[012])
7060      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061    darwin1.*)
7062      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063    darwin*) # darwin 5.x on
7064      # if running on 10.5 or later, the deployment target defaults
7065      # to the OS version, if on x86, and 10.4, the deployment
7066      # target defaults to 10.4. Don't you love it?
7067      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070	10.[012]*)
7071	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072	10.*)
7073	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074      esac
7075    ;;
7076  esac
7077    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078      _lt_dar_single_mod='$single_module'
7079    fi
7080    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082    else
7083      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084    fi
7085    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7086      _lt_dsymutil='~$DSYMUTIL $lib || :'
7087    else
7088      _lt_dsymutil=
7089    fi
7090    ;;
7091  esac
7092
7093for ac_header in dlfcn.h
7094do :
7095  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7096"
7097if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7098  cat >>confdefs.h <<_ACEOF
7099#define HAVE_DLFCN_H 1
7100_ACEOF
7101
7102fi
7103
7104done
7105
7106
7107
7108
7109
7110# Set options
7111
7112
7113
7114        enable_dlopen=no
7115
7116
7117  enable_win32_dll=no
7118
7119
7120            # Check whether --enable-shared was given.
7121if test "${enable_shared+set}" = set; then :
7122  enableval=$enable_shared; p=${PACKAGE-default}
7123    case $enableval in
7124    yes) enable_shared=yes ;;
7125    no) enable_shared=no ;;
7126    *)
7127      enable_shared=no
7128      # Look at the argument we got.  We use all the common list separators.
7129      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7130      for pkg in $enableval; do
7131	IFS="$lt_save_ifs"
7132	if test "X$pkg" = "X$p"; then
7133	  enable_shared=yes
7134	fi
7135      done
7136      IFS="$lt_save_ifs"
7137      ;;
7138    esac
7139else
7140  enable_shared=yes
7141fi
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151  # Check whether --enable-static was given.
7152if test "${enable_static+set}" = set; then :
7153  enableval=$enable_static; p=${PACKAGE-default}
7154    case $enableval in
7155    yes) enable_static=yes ;;
7156    no) enable_static=no ;;
7157    *)
7158     enable_static=no
7159      # Look at the argument we got.  We use all the common list separators.
7160      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7161      for pkg in $enableval; do
7162	IFS="$lt_save_ifs"
7163	if test "X$pkg" = "X$p"; then
7164	  enable_static=yes
7165	fi
7166      done
7167      IFS="$lt_save_ifs"
7168      ;;
7169    esac
7170else
7171  enable_static=yes
7172fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183# Check whether --with-pic was given.
7184if test "${with_pic+set}" = set; then :
7185  withval=$with_pic; lt_p=${PACKAGE-default}
7186    case $withval in
7187    yes|no) pic_mode=$withval ;;
7188    *)
7189      pic_mode=default
7190      # Look at the argument we got.  We use all the common list separators.
7191      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7192      for lt_pkg in $withval; do
7193	IFS="$lt_save_ifs"
7194	if test "X$lt_pkg" = "X$lt_p"; then
7195	  pic_mode=yes
7196	fi
7197      done
7198      IFS="$lt_save_ifs"
7199      ;;
7200    esac
7201else
7202  pic_mode=default
7203fi
7204
7205
7206test -z "$pic_mode" && pic_mode=default
7207
7208
7209
7210
7211
7212
7213
7214  # Check whether --enable-fast-install was given.
7215if test "${enable_fast_install+set}" = set; then :
7216  enableval=$enable_fast_install; p=${PACKAGE-default}
7217    case $enableval in
7218    yes) enable_fast_install=yes ;;
7219    no) enable_fast_install=no ;;
7220    *)
7221      enable_fast_install=no
7222      # Look at the argument we got.  We use all the common list separators.
7223      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7224      for pkg in $enableval; do
7225	IFS="$lt_save_ifs"
7226	if test "X$pkg" = "X$p"; then
7227	  enable_fast_install=yes
7228	fi
7229      done
7230      IFS="$lt_save_ifs"
7231      ;;
7232    esac
7233else
7234  enable_fast_install=yes
7235fi
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247# This can be used to rebuild libtool when needed
7248LIBTOOL_DEPS="$ltmain"
7249
7250# Always use our own libtool.
7251LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282test -z "$LN_S" && LN_S="ln -s"
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297if test -n "${ZSH_VERSION+set}" ; then
7298   setopt NO_GLOB_SUBST
7299fi
7300
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7302$as_echo_n "checking for objdir... " >&6; }
7303if ${lt_cv_objdir+:} false; then :
7304  $as_echo_n "(cached) " >&6
7305else
7306  rm -f .libs 2>/dev/null
7307mkdir .libs 2>/dev/null
7308if test -d .libs; then
7309  lt_cv_objdir=.libs
7310else
7311  # MS-DOS does not allow filenames that begin with a dot.
7312  lt_cv_objdir=_libs
7313fi
7314rmdir .libs 2>/dev/null
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7317$as_echo "$lt_cv_objdir" >&6; }
7318objdir=$lt_cv_objdir
7319
7320
7321
7322
7323
7324cat >>confdefs.h <<_ACEOF
7325#define LT_OBJDIR "$lt_cv_objdir/"
7326_ACEOF
7327
7328
7329
7330
7331case $host_os in
7332aix3*)
7333  # AIX sometimes has problems with the GCC collect2 program.  For some
7334  # reason, if we set the COLLECT_NAMES environment variable, the problems
7335  # vanish in a puff of smoke.
7336  if test "X${COLLECT_NAMES+set}" != Xset; then
7337    COLLECT_NAMES=
7338    export COLLECT_NAMES
7339  fi
7340  ;;
7341esac
7342
7343# Global variables:
7344ofile=libtool
7345can_build_shared=yes
7346
7347# All known linkers require a `.a' archive for static linking (except MSVC,
7348# which needs '.lib').
7349libext=a
7350
7351with_gnu_ld="$lt_cv_prog_gnu_ld"
7352
7353old_CC="$CC"
7354old_CFLAGS="$CFLAGS"
7355
7356# Set sane defaults for various variables
7357test -z "$CC" && CC=cc
7358test -z "$LTCC" && LTCC=$CC
7359test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7360test -z "$LD" && LD=ld
7361test -z "$ac_objext" && ac_objext=o
7362
7363for cc_temp in $compiler""; do
7364  case $cc_temp in
7365    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7366    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7367    \-*) ;;
7368    *) break;;
7369  esac
7370done
7371cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7372
7373
7374# Only perform the check for file, if the check method requires it
7375test -z "$MAGIC_CMD" && MAGIC_CMD=file
7376case $deplibs_check_method in
7377file_magic*)
7378  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7380$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7381if ${lt_cv_path_MAGIC_CMD+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  case $MAGIC_CMD in
7385[\\/*] |  ?:[\\/]*)
7386  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7387  ;;
7388*)
7389  lt_save_MAGIC_CMD="$MAGIC_CMD"
7390  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7391  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7392  for ac_dir in $ac_dummy; do
7393    IFS="$lt_save_ifs"
7394    test -z "$ac_dir" && ac_dir=.
7395    if test -f $ac_dir/${ac_tool_prefix}file; then
7396      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7397      if test -n "$file_magic_test_file"; then
7398	case $deplibs_check_method in
7399	"file_magic "*)
7400	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7401	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7403	    $EGREP "$file_magic_regex" > /dev/null; then
7404	    :
7405	  else
7406	    cat <<_LT_EOF 1>&2
7407
7408*** Warning: the command libtool uses to detect shared libraries,
7409*** $file_magic_cmd, produces output that libtool cannot recognize.
7410*** The result is that libtool may fail to recognize shared libraries
7411*** as such.  This will affect the creation of libtool libraries that
7412*** depend on shared libraries, but programs linked with such libtool
7413*** libraries will work regardless of this problem.  Nevertheless, you
7414*** may want to report the problem to your system manager and/or to
7415*** bug-libtool@gnu.org
7416
7417_LT_EOF
7418	  fi ;;
7419	esac
7420      fi
7421      break
7422    fi
7423  done
7424  IFS="$lt_save_ifs"
7425  MAGIC_CMD="$lt_save_MAGIC_CMD"
7426  ;;
7427esac
7428fi
7429
7430MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431if test -n "$MAGIC_CMD"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7433$as_echo "$MAGIC_CMD" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439
7440
7441
7442
7443if test -z "$lt_cv_path_MAGIC_CMD"; then
7444  if test -n "$ac_tool_prefix"; then
7445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7446$as_echo_n "checking for file... " >&6; }
7447if ${lt_cv_path_MAGIC_CMD+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  case $MAGIC_CMD in
7451[\\/*] |  ?:[\\/]*)
7452  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7453  ;;
7454*)
7455  lt_save_MAGIC_CMD="$MAGIC_CMD"
7456  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458  for ac_dir in $ac_dummy; do
7459    IFS="$lt_save_ifs"
7460    test -z "$ac_dir" && ac_dir=.
7461    if test -f $ac_dir/file; then
7462      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463      if test -n "$file_magic_test_file"; then
7464	case $deplibs_check_method in
7465	"file_magic "*)
7466	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469	    $EGREP "$file_magic_regex" > /dev/null; then
7470	    :
7471	  else
7472	    cat <<_LT_EOF 1>&2
7473
7474*** Warning: the command libtool uses to detect shared libraries,
7475*** $file_magic_cmd, produces output that libtool cannot recognize.
7476*** The result is that libtool may fail to recognize shared libraries
7477*** as such.  This will affect the creation of libtool libraries that
7478*** depend on shared libraries, but programs linked with such libtool
7479*** libraries will work regardless of this problem.  Nevertheless, you
7480*** may want to report the problem to your system manager and/or to
7481*** bug-libtool@gnu.org
7482
7483_LT_EOF
7484	  fi ;;
7485	esac
7486      fi
7487      break
7488    fi
7489  done
7490  IFS="$lt_save_ifs"
7491  MAGIC_CMD="$lt_save_MAGIC_CMD"
7492  ;;
7493esac
7494fi
7495
7496MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497if test -n "$MAGIC_CMD"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7499$as_echo "$MAGIC_CMD" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505
7506  else
7507    MAGIC_CMD=:
7508  fi
7509fi
7510
7511  fi
7512  ;;
7513esac
7514
7515# Use C for the default configuration in the libtool script
7516
7517lt_save_CC="$CC"
7518ac_ext=c
7519ac_cpp='$CPP $CPPFLAGS'
7520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523
7524
7525# Source file extension for C test sources.
7526ac_ext=c
7527
7528# Object file extension for compiled C test sources.
7529objext=o
7530objext=$objext
7531
7532# Code to be used in simple compile tests
7533lt_simple_compile_test_code="int some_variable = 0;"
7534
7535# Code to be used in simple link tests
7536lt_simple_link_test_code='int main(){return(0);}'
7537
7538
7539
7540
7541
7542
7543
7544# If no C compiler was specified, use CC.
7545LTCC=${LTCC-"$CC"}
7546
7547# If no C compiler flags were specified, use CFLAGS.
7548LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7549
7550# Allow CC to be a program name with arguments.
7551compiler=$CC
7552
7553# Save the default compiler, since it gets overwritten when the other
7554# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7555compiler_DEFAULT=$CC
7556
7557# save warnings/boilerplate of simple test code
7558ac_outfile=conftest.$ac_objext
7559echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7560eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7561_lt_compiler_boilerplate=`cat conftest.err`
7562$RM conftest*
7563
7564ac_outfile=conftest.$ac_objext
7565echo "$lt_simple_link_test_code" >conftest.$ac_ext
7566eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567_lt_linker_boilerplate=`cat conftest.err`
7568$RM -r conftest*
7569
7570
7571if test -n "$compiler"; then
7572
7573lt_prog_compiler_no_builtin_flag=
7574
7575if test "$GCC" = yes; then
7576  case $cc_basename in
7577  nvcc*)
7578    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7579  *)
7580    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7581  esac
7582
7583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7584$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7585if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  lt_cv_prog_compiler_rtti_exceptions=no
7589   ac_outfile=conftest.$ac_objext
7590   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7591   lt_compiler_flag="-fno-rtti -fno-exceptions"
7592   # Insert the option either (1) after the last *FLAGS variable, or
7593   # (2) before a word containing "conftest.", or (3) at the end.
7594   # Note that $ac_compile itself does not contain backslashes and begins
7595   # with a dollar sign (not a hyphen), so the echo should work correctly.
7596   # The option is referenced via a variable to avoid confusing sed.
7597   lt_compile=`echo "$ac_compile" | $SED \
7598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7600   -e 's:$: $lt_compiler_flag:'`
7601   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7602   (eval "$lt_compile" 2>conftest.err)
7603   ac_status=$?
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   if (exit $ac_status) && test -s "$ac_outfile"; then
7607     # The compiler can only warn and ignore the option if not recognized
7608     # So say no if there are warnings other than the usual output.
7609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7610     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7611     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7612       lt_cv_prog_compiler_rtti_exceptions=yes
7613     fi
7614   fi
7615   $RM conftest*
7616
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7619$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7620
7621if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7622    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7623else
7624    :
7625fi
7626
7627fi
7628
7629
7630
7631
7632
7633
7634  lt_prog_compiler_wl=
7635lt_prog_compiler_pic=
7636lt_prog_compiler_static=
7637
7638
7639  if test "$GCC" = yes; then
7640    lt_prog_compiler_wl='-Wl,'
7641    lt_prog_compiler_static='-static'
7642
7643    case $host_os in
7644      aix*)
7645      # All AIX code is PIC.
7646      if test "$host_cpu" = ia64; then
7647	# AIX 5 now supports IA64 processor
7648	lt_prog_compiler_static='-Bstatic'
7649      fi
7650      ;;
7651
7652    amigaos*)
7653      case $host_cpu in
7654      powerpc)
7655            # see comment about AmigaOS4 .so support
7656            lt_prog_compiler_pic='-fPIC'
7657        ;;
7658      m68k)
7659            # FIXME: we need at least 68020 code to build shared libraries, but
7660            # adding the `-m68020' flag to GCC prevents building anything better,
7661            # like `-m68040'.
7662            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7663        ;;
7664      esac
7665      ;;
7666
7667    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7668      # PIC is the default for these OSes.
7669      ;;
7670
7671    mingw* | cygwin* | pw32* | os2* | cegcc*)
7672      # This hack is so that the source file can tell whether it is being
7673      # built for inclusion in a dll (and should export symbols for example).
7674      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7675      # (--disable-auto-import) libraries
7676      lt_prog_compiler_pic='-DDLL_EXPORT'
7677      ;;
7678
7679    darwin* | rhapsody*)
7680      # PIC is the default on this platform
7681      # Common symbols not allowed in MH_DYLIB files
7682      lt_prog_compiler_pic='-fno-common'
7683      ;;
7684
7685    haiku*)
7686      # PIC is the default for Haiku.
7687      # The "-static" flag exists, but is broken.
7688      lt_prog_compiler_static=
7689      ;;
7690
7691    hpux*)
7692      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7693      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7694      # sets the default TLS model and affects inlining.
7695      case $host_cpu in
7696      hppa*64*)
7697	# +Z the default
7698	;;
7699      *)
7700	lt_prog_compiler_pic='-fPIC'
7701	;;
7702      esac
7703      ;;
7704
7705    interix[3-9]*)
7706      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7707      # Instead, we relocate shared libraries at runtime.
7708      ;;
7709
7710    msdosdjgpp*)
7711      # Just because we use GCC doesn't mean we suddenly get shared libraries
7712      # on systems that don't support them.
7713      lt_prog_compiler_can_build_shared=no
7714      enable_shared=no
7715      ;;
7716
7717    *nto* | *qnx*)
7718      # QNX uses GNU C++, but need to define -shared option too, otherwise
7719      # it will coredump.
7720      lt_prog_compiler_pic='-fPIC -shared'
7721      ;;
7722
7723    sysv4*MP*)
7724      if test -d /usr/nec; then
7725	lt_prog_compiler_pic=-Kconform_pic
7726      fi
7727      ;;
7728
7729    *)
7730      lt_prog_compiler_pic='-fPIC'
7731      ;;
7732    esac
7733
7734    case $cc_basename in
7735    nvcc*) # Cuda Compiler Driver 2.2
7736      lt_prog_compiler_wl='-Xlinker '
7737      if test -n "$lt_prog_compiler_pic"; then
7738        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7739      fi
7740      ;;
7741    esac
7742  else
7743    # PORTME Check for flag to pass linker flags through the system compiler.
7744    case $host_os in
7745    aix*)
7746      lt_prog_compiler_wl='-Wl,'
7747      if test "$host_cpu" = ia64; then
7748	# AIX 5 now supports IA64 processor
7749	lt_prog_compiler_static='-Bstatic'
7750      else
7751	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7752      fi
7753      ;;
7754
7755    mingw* | cygwin* | pw32* | os2* | cegcc*)
7756      # This hack is so that the source file can tell whether it is being
7757      # built for inclusion in a dll (and should export symbols for example).
7758      lt_prog_compiler_pic='-DDLL_EXPORT'
7759      ;;
7760
7761    hpux9* | hpux10* | hpux11*)
7762      lt_prog_compiler_wl='-Wl,'
7763      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7764      # not for PA HP-UX.
7765      case $host_cpu in
7766      hppa*64*|ia64*)
7767	# +Z the default
7768	;;
7769      *)
7770	lt_prog_compiler_pic='+Z'
7771	;;
7772      esac
7773      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7774      lt_prog_compiler_static='${wl}-a ${wl}archive'
7775      ;;
7776
7777    irix5* | irix6* | nonstopux*)
7778      lt_prog_compiler_wl='-Wl,'
7779      # PIC (with -KPIC) is the default.
7780      lt_prog_compiler_static='-non_shared'
7781      ;;
7782
7783    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7784      case $cc_basename in
7785      # old Intel for x86_64 which still supported -KPIC.
7786      ecc*)
7787	lt_prog_compiler_wl='-Wl,'
7788	lt_prog_compiler_pic='-KPIC'
7789	lt_prog_compiler_static='-static'
7790        ;;
7791      # icc used to be incompatible with GCC.
7792      # ICC 10 doesn't accept -KPIC any more.
7793      icc* | ifort*)
7794	lt_prog_compiler_wl='-Wl,'
7795	lt_prog_compiler_pic='-fPIC'
7796	lt_prog_compiler_static='-static'
7797        ;;
7798      # Lahey Fortran 8.1.
7799      lf95*)
7800	lt_prog_compiler_wl='-Wl,'
7801	lt_prog_compiler_pic='--shared'
7802	lt_prog_compiler_static='--static'
7803	;;
7804      nagfor*)
7805	# NAG Fortran compiler
7806	lt_prog_compiler_wl='-Wl,-Wl,,'
7807	lt_prog_compiler_pic='-PIC'
7808	lt_prog_compiler_static='-Bstatic'
7809	;;
7810      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7811        # Portland Group compilers (*not* the Pentium gcc compiler,
7812	# which looks to be a dead project)
7813	lt_prog_compiler_wl='-Wl,'
7814	lt_prog_compiler_pic='-fpic'
7815	lt_prog_compiler_static='-Bstatic'
7816        ;;
7817      ccc*)
7818        lt_prog_compiler_wl='-Wl,'
7819        # All Alpha code is PIC.
7820        lt_prog_compiler_static='-non_shared'
7821        ;;
7822      xl* | bgxl* | bgf* | mpixl*)
7823	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7824	lt_prog_compiler_wl='-Wl,'
7825	lt_prog_compiler_pic='-qpic'
7826	lt_prog_compiler_static='-qstaticlink'
7827	;;
7828      *)
7829	case `$CC -V 2>&1 | sed 5q` in
7830	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7831	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7832	  lt_prog_compiler_pic='-KPIC'
7833	  lt_prog_compiler_static='-Bstatic'
7834	  lt_prog_compiler_wl=''
7835	  ;;
7836	*Sun\ F* | *Sun*Fortran*)
7837	  lt_prog_compiler_pic='-KPIC'
7838	  lt_prog_compiler_static='-Bstatic'
7839	  lt_prog_compiler_wl='-Qoption ld '
7840	  ;;
7841	*Sun\ C*)
7842	  # Sun C 5.9
7843	  lt_prog_compiler_pic='-KPIC'
7844	  lt_prog_compiler_static='-Bstatic'
7845	  lt_prog_compiler_wl='-Wl,'
7846	  ;;
7847        *Intel*\ [CF]*Compiler*)
7848	  lt_prog_compiler_wl='-Wl,'
7849	  lt_prog_compiler_pic='-fPIC'
7850	  lt_prog_compiler_static='-static'
7851	  ;;
7852	*Portland\ Group*)
7853	  lt_prog_compiler_wl='-Wl,'
7854	  lt_prog_compiler_pic='-fpic'
7855	  lt_prog_compiler_static='-Bstatic'
7856	  ;;
7857	esac
7858	;;
7859      esac
7860      ;;
7861
7862    newsos6)
7863      lt_prog_compiler_pic='-KPIC'
7864      lt_prog_compiler_static='-Bstatic'
7865      ;;
7866
7867    *nto* | *qnx*)
7868      # QNX uses GNU C++, but need to define -shared option too, otherwise
7869      # it will coredump.
7870      lt_prog_compiler_pic='-fPIC -shared'
7871      ;;
7872
7873    osf3* | osf4* | osf5*)
7874      lt_prog_compiler_wl='-Wl,'
7875      # All OSF/1 code is PIC.
7876      lt_prog_compiler_static='-non_shared'
7877      ;;
7878
7879    rdos*)
7880      lt_prog_compiler_static='-non_shared'
7881      ;;
7882
7883    solaris*)
7884      lt_prog_compiler_pic='-KPIC'
7885      lt_prog_compiler_static='-Bstatic'
7886      case $cc_basename in
7887      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7888	lt_prog_compiler_wl='-Qoption ld ';;
7889      *)
7890	lt_prog_compiler_wl='-Wl,';;
7891      esac
7892      ;;
7893
7894    sunos4*)
7895      lt_prog_compiler_wl='-Qoption ld '
7896      lt_prog_compiler_pic='-PIC'
7897      lt_prog_compiler_static='-Bstatic'
7898      ;;
7899
7900    sysv4 | sysv4.2uw2* | sysv4.3*)
7901      lt_prog_compiler_wl='-Wl,'
7902      lt_prog_compiler_pic='-KPIC'
7903      lt_prog_compiler_static='-Bstatic'
7904      ;;
7905
7906    sysv4*MP*)
7907      if test -d /usr/nec ;then
7908	lt_prog_compiler_pic='-Kconform_pic'
7909	lt_prog_compiler_static='-Bstatic'
7910      fi
7911      ;;
7912
7913    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7914      lt_prog_compiler_wl='-Wl,'
7915      lt_prog_compiler_pic='-KPIC'
7916      lt_prog_compiler_static='-Bstatic'
7917      ;;
7918
7919    unicos*)
7920      lt_prog_compiler_wl='-Wl,'
7921      lt_prog_compiler_can_build_shared=no
7922      ;;
7923
7924    uts4*)
7925      lt_prog_compiler_pic='-pic'
7926      lt_prog_compiler_static='-Bstatic'
7927      ;;
7928
7929    *)
7930      lt_prog_compiler_can_build_shared=no
7931      ;;
7932    esac
7933  fi
7934
7935case $host_os in
7936  # For platforms which do not support PIC, -DPIC is meaningless:
7937  *djgpp*)
7938    lt_prog_compiler_pic=
7939    ;;
7940  *)
7941    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7942    ;;
7943esac
7944
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7947if ${lt_cv_prog_compiler_pic+:} false; then :
7948  $as_echo_n "(cached) " >&6
7949else
7950  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7953$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7954lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7955
7956#
7957# Check to make sure the PIC flag actually works.
7958#
7959if test -n "$lt_prog_compiler_pic"; then
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7961$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7962if ${lt_cv_prog_compiler_pic_works+:} false; then :
7963  $as_echo_n "(cached) " >&6
7964else
7965  lt_cv_prog_compiler_pic_works=no
7966   ac_outfile=conftest.$ac_objext
7967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7969   # Insert the option either (1) after the last *FLAGS variable, or
7970   # (2) before a word containing "conftest.", or (3) at the end.
7971   # Note that $ac_compile itself does not contain backslashes and begins
7972   # with a dollar sign (not a hyphen), so the echo should work correctly.
7973   # The option is referenced via a variable to avoid confusing sed.
7974   lt_compile=`echo "$ac_compile" | $SED \
7975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977   -e 's:$: $lt_compiler_flag:'`
7978   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7979   (eval "$lt_compile" 2>conftest.err)
7980   ac_status=$?
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   if (exit $ac_status) && test -s "$ac_outfile"; then
7984     # The compiler can only warn and ignore the option if not recognized
7985     # So say no if there are warnings other than the usual output.
7986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7987     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989       lt_cv_prog_compiler_pic_works=yes
7990     fi
7991   fi
7992   $RM conftest*
7993
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7996$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7997
7998if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7999    case $lt_prog_compiler_pic in
8000     "" | " "*) ;;
8001     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8002     esac
8003else
8004    lt_prog_compiler_pic=
8005     lt_prog_compiler_can_build_shared=no
8006fi
8007
8008fi
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020#
8021# Check to make sure the static flag actually works.
8022#
8023wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8025$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8026if ${lt_cv_prog_compiler_static_works+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  lt_cv_prog_compiler_static_works=no
8030   save_LDFLAGS="$LDFLAGS"
8031   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8032   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8033   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8034     # The linker can only warn and ignore the option if not recognized
8035     # So say no if there are warnings
8036     if test -s conftest.err; then
8037       # Append any errors to the config.log.
8038       cat conftest.err 1>&5
8039       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8040       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8041       if diff conftest.exp conftest.er2 >/dev/null; then
8042         lt_cv_prog_compiler_static_works=yes
8043       fi
8044     else
8045       lt_cv_prog_compiler_static_works=yes
8046     fi
8047   fi
8048   $RM -r conftest*
8049   LDFLAGS="$save_LDFLAGS"
8050
8051fi
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8053$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8054
8055if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8056    :
8057else
8058    lt_prog_compiler_static=
8059fi
8060
8061
8062
8063
8064
8065
8066
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8068$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8069if ${lt_cv_prog_compiler_c_o+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  lt_cv_prog_compiler_c_o=no
8073   $RM -r conftest 2>/dev/null
8074   mkdir conftest
8075   cd conftest
8076   mkdir out
8077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078
8079   lt_compiler_flag="-o out/conftest2.$ac_objext"
8080   # Insert the option either (1) after the last *FLAGS variable, or
8081   # (2) before a word containing "conftest.", or (3) at the end.
8082   # Note that $ac_compile itself does not contain backslashes and begins
8083   # with a dollar sign (not a hyphen), so the echo should work correctly.
8084   lt_compile=`echo "$ac_compile" | $SED \
8085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087   -e 's:$: $lt_compiler_flag:'`
8088   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8089   (eval "$lt_compile" 2>out/conftest.err)
8090   ac_status=$?
8091   cat out/conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8094   then
8095     # The compiler can only warn and ignore the option if not recognized
8096     # So say no if there are warnings
8097     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8100       lt_cv_prog_compiler_c_o=yes
8101     fi
8102   fi
8103   chmod u+w . 2>&5
8104   $RM conftest*
8105   # SGI C++ compiler will create directory out/ii_files/ for
8106   # template instantiation
8107   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8108   $RM out/* && rmdir out
8109   cd ..
8110   $RM -r conftest
8111   $RM conftest*
8112
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8115$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8116
8117
8118
8119
8120
8121
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8123$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8124if ${lt_cv_prog_compiler_c_o+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  lt_cv_prog_compiler_c_o=no
8128   $RM -r conftest 2>/dev/null
8129   mkdir conftest
8130   cd conftest
8131   mkdir out
8132   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8133
8134   lt_compiler_flag="-o out/conftest2.$ac_objext"
8135   # Insert the option either (1) after the last *FLAGS variable, or
8136   # (2) before a word containing "conftest.", or (3) at the end.
8137   # Note that $ac_compile itself does not contain backslashes and begins
8138   # with a dollar sign (not a hyphen), so the echo should work correctly.
8139   lt_compile=`echo "$ac_compile" | $SED \
8140   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142   -e 's:$: $lt_compiler_flag:'`
8143   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8144   (eval "$lt_compile" 2>out/conftest.err)
8145   ac_status=$?
8146   cat out/conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8149   then
8150     # The compiler can only warn and ignore the option if not recognized
8151     # So say no if there are warnings
8152     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8153     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8154     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8155       lt_cv_prog_compiler_c_o=yes
8156     fi
8157   fi
8158   chmod u+w . 2>&5
8159   $RM conftest*
8160   # SGI C++ compiler will create directory out/ii_files/ for
8161   # template instantiation
8162   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8163   $RM out/* && rmdir out
8164   cd ..
8165   $RM -r conftest
8166   $RM conftest*
8167
8168fi
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8170$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8171
8172
8173
8174
8175hard_links="nottested"
8176if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8177  # do not overwrite the value of need_locks provided by the user
8178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8179$as_echo_n "checking if we can lock with hard links... " >&6; }
8180  hard_links=yes
8181  $RM conftest*
8182  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8183  touch conftest.a
8184  ln conftest.a conftest.b 2>&5 || hard_links=no
8185  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8187$as_echo "$hard_links" >&6; }
8188  if test "$hard_links" = no; then
8189    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8190$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8191    need_locks=warn
8192  fi
8193else
8194  need_locks=no
8195fi
8196
8197
8198
8199
8200
8201
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8203$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8204
8205  runpath_var=
8206  allow_undefined_flag=
8207  always_export_symbols=no
8208  archive_cmds=
8209  archive_expsym_cmds=
8210  compiler_needs_object=no
8211  enable_shared_with_static_runtimes=no
8212  export_dynamic_flag_spec=
8213  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8214  hardcode_automatic=no
8215  hardcode_direct=no
8216  hardcode_direct_absolute=no
8217  hardcode_libdir_flag_spec=
8218  hardcode_libdir_separator=
8219  hardcode_minus_L=no
8220  hardcode_shlibpath_var=unsupported
8221  inherit_rpath=no
8222  link_all_deplibs=unknown
8223  module_cmds=
8224  module_expsym_cmds=
8225  old_archive_from_new_cmds=
8226  old_archive_from_expsyms_cmds=
8227  thread_safe_flag_spec=
8228  whole_archive_flag_spec=
8229  # include_expsyms should be a list of space-separated symbols to be *always*
8230  # included in the symbol list
8231  include_expsyms=
8232  # exclude_expsyms can be an extended regexp of symbols to exclude
8233  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8234  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8235  # as well as any symbol that contains `d'.
8236  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8237  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8238  # platforms (ab)use it in PIC code, but their linkers get confused if
8239  # the symbol is explicitly referenced.  Since portable code cannot
8240  # rely on this symbol name, it's probably fine to never include it in
8241  # preloaded symbol tables.
8242  # Exclude shared library initialization/finalization symbols.
8243  extract_expsyms_cmds=
8244
8245  case $host_os in
8246  cygwin* | mingw* | pw32* | cegcc*)
8247    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8248    # When not using gcc, we currently assume that we are using
8249    # Microsoft Visual C++.
8250    if test "$GCC" != yes; then
8251      with_gnu_ld=no
8252    fi
8253    ;;
8254  interix*)
8255    # we just hope/assume this is gcc and not c89 (= MSVC++)
8256    with_gnu_ld=yes
8257    ;;
8258  openbsd*)
8259    with_gnu_ld=no
8260    ;;
8261  linux* | k*bsd*-gnu | gnu*)
8262    link_all_deplibs=no
8263    ;;
8264  esac
8265
8266  ld_shlibs=yes
8267
8268  # On some targets, GNU ld is compatible enough with the native linker
8269  # that we're better off using the native interface for both.
8270  lt_use_gnu_ld_interface=no
8271  if test "$with_gnu_ld" = yes; then
8272    case $host_os in
8273      aix*)
8274	# The AIX port of GNU ld has always aspired to compatibility
8275	# with the native linker.  However, as the warning in the GNU ld
8276	# block says, versions before 2.19.5* couldn't really create working
8277	# shared libraries, regardless of the interface used.
8278	case `$LD -v 2>&1` in
8279	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8280	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8281	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8282	  *)
8283	    lt_use_gnu_ld_interface=yes
8284	    ;;
8285	esac
8286	;;
8287      *)
8288	lt_use_gnu_ld_interface=yes
8289	;;
8290    esac
8291  fi
8292
8293  if test "$lt_use_gnu_ld_interface" = yes; then
8294    # If archive_cmds runs LD, not CC, wlarc should be empty
8295    wlarc='${wl}'
8296
8297    # Set some defaults for GNU ld with shared library support. These
8298    # are reset later if shared libraries are not supported. Putting them
8299    # here allows them to be overridden if necessary.
8300    runpath_var=LD_RUN_PATH
8301    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302    export_dynamic_flag_spec='${wl}--export-dynamic'
8303    # ancient GNU ld didn't support --whole-archive et. al.
8304    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8305      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8306    else
8307      whole_archive_flag_spec=
8308    fi
8309    supports_anon_versioning=no
8310    case `$LD -v 2>&1` in
8311      *GNU\ gold*) supports_anon_versioning=yes ;;
8312      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8313      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8314      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8315      *\ 2.11.*) ;; # other 2.11 versions
8316      *) supports_anon_versioning=yes ;;
8317    esac
8318
8319    # See if GNU ld supports shared libraries.
8320    case $host_os in
8321    aix[3-9]*)
8322      # On AIX/PPC, the GNU linker is very broken
8323      if test "$host_cpu" != ia64; then
8324	ld_shlibs=no
8325	cat <<_LT_EOF 1>&2
8326
8327*** Warning: the GNU linker, at least up to release 2.19, is reported
8328*** to be unable to reliably create shared libraries on AIX.
8329*** Therefore, libtool is disabling shared libraries support.  If you
8330*** really care for shared libraries, you may want to install binutils
8331*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8332*** You will then need to restart the configuration process.
8333
8334_LT_EOF
8335      fi
8336      ;;
8337
8338    amigaos*)
8339      case $host_cpu in
8340      powerpc)
8341            # see comment about AmigaOS4 .so support
8342            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8343            archive_expsym_cmds=''
8344        ;;
8345      m68k)
8346            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)'
8347            hardcode_libdir_flag_spec='-L$libdir'
8348            hardcode_minus_L=yes
8349        ;;
8350      esac
8351      ;;
8352
8353    beos*)
8354      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8355	allow_undefined_flag=unsupported
8356	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8357	# support --undefined.  This deserves some investigation.  FIXME
8358	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359      else
8360	ld_shlibs=no
8361      fi
8362      ;;
8363
8364    cygwin* | mingw* | pw32* | cegcc*)
8365      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8366      # as there is no search path for DLLs.
8367      hardcode_libdir_flag_spec='-L$libdir'
8368      export_dynamic_flag_spec='${wl}--export-all-symbols'
8369      allow_undefined_flag=unsupported
8370      always_export_symbols=no
8371      enable_shared_with_static_runtimes=yes
8372      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'
8373      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8374
8375      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8376        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377	# If the export-symbols file already is a .def file (1st line
8378	# is EXPORTS), use it as is; otherwise, prepend...
8379	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8380	  cp $export_symbols $output_objdir/$soname.def;
8381	else
8382	  echo EXPORTS > $output_objdir/$soname.def;
8383	  cat $export_symbols >> $output_objdir/$soname.def;
8384	fi~
8385	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8386      else
8387	ld_shlibs=no
8388      fi
8389      ;;
8390
8391    haiku*)
8392      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393      link_all_deplibs=yes
8394      ;;
8395
8396    interix[3-9]*)
8397      hardcode_direct=no
8398      hardcode_shlibpath_var=no
8399      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8400      export_dynamic_flag_spec='${wl}-E'
8401      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8402      # Instead, shared libraries are loaded at an image base (0x10000000 by
8403      # default) and relocated if they conflict, which is a slow very memory
8404      # consuming and fragmenting process.  To avoid this, we pick a random,
8405      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8406      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8407      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8408      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'
8409      ;;
8410
8411    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8412      tmp_diet=no
8413      if test "$host_os" = linux-dietlibc; then
8414	case $cc_basename in
8415	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8416	esac
8417      fi
8418      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8419	 && test "$tmp_diet" = no
8420      then
8421	tmp_addflag=' $pic_flag'
8422	tmp_sharedflag='-shared'
8423	case $cc_basename,$host_cpu in
8424        pgcc*)				# Portland Group C compiler
8425	  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'
8426	  tmp_addflag=' $pic_flag'
8427	  ;;
8428	pgf77* | pgf90* | pgf95* | pgfortran*)
8429					# Portland Group f77 and f90 compilers
8430	  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'
8431	  tmp_addflag=' $pic_flag -Mnomain' ;;
8432	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8433	  tmp_addflag=' -i_dynamic' ;;
8434	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8435	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8436	ifc* | ifort*)			# Intel Fortran compiler
8437	  tmp_addflag=' -nofor_main' ;;
8438	lf95*)				# Lahey Fortran 8.1
8439	  whole_archive_flag_spec=
8440	  tmp_sharedflag='--shared' ;;
8441	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8442	  tmp_sharedflag='-qmkshrobj'
8443	  tmp_addflag= ;;
8444	nvcc*)	# Cuda Compiler Driver 2.2
8445	  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'
8446	  compiler_needs_object=yes
8447	  ;;
8448	esac
8449	case `$CC -V 2>&1 | sed 5q` in
8450	*Sun\ C*)			# Sun C 5.9
8451	  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'
8452	  compiler_needs_object=yes
8453	  tmp_sharedflag='-G' ;;
8454	*Sun\ F*)			# Sun Fortran 8.3
8455	  tmp_sharedflag='-G' ;;
8456	esac
8457	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458
8459        if test "x$supports_anon_versioning" = xyes; then
8460          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8461	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8462	    echo "local: *; };" >> $output_objdir/$libname.ver~
8463	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8464        fi
8465
8466	case $cc_basename in
8467	xlf* | bgf* | bgxlf* | mpixlf*)
8468	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8469	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8470	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8472	  if test "x$supports_anon_versioning" = xyes; then
8473	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8474	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8475	      echo "local: *; };" >> $output_objdir/$libname.ver~
8476	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8477	  fi
8478	  ;;
8479	esac
8480      else
8481        ld_shlibs=no
8482      fi
8483      ;;
8484
8485    netbsd* | netbsdelf*-gnu)
8486      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8487	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8488	wlarc=
8489      else
8490	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8492      fi
8493      ;;
8494
8495    solaris*)
8496      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8497	ld_shlibs=no
8498	cat <<_LT_EOF 1>&2
8499
8500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8501*** create shared libraries on Solaris systems.  Therefore, libtool
8502*** is disabling shared libraries support.  We urge you to upgrade GNU
8503*** binutils to release 2.9.1 or newer.  Another option is to modify
8504*** your PATH or compiler configuration so that the native linker is
8505*** used, and then restart.
8506
8507_LT_EOF
8508      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8511      else
8512	ld_shlibs=no
8513      fi
8514      ;;
8515
8516    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8517      case `$LD -v 2>&1` in
8518        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8519	ld_shlibs=no
8520	cat <<_LT_EOF 1>&2
8521
8522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8523*** reliably create shared libraries on SCO systems.  Therefore, libtool
8524*** is disabling shared libraries support.  We urge you to upgrade GNU
8525*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8526*** your PATH or compiler configuration so that the native linker is
8527*** used, and then restart.
8528
8529_LT_EOF
8530	;;
8531	*)
8532	  # For security reasons, it is highly recommended that you always
8533	  # use absolute paths for naming shared libraries, and exclude the
8534	  # DT_RUNPATH tag from executables and libraries.  But doing so
8535	  # requires that you compile everything twice, which is a pain.
8536	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8540	  else
8541	    ld_shlibs=no
8542	  fi
8543	;;
8544      esac
8545      ;;
8546
8547    sunos4*)
8548      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8549      wlarc=
8550      hardcode_direct=yes
8551      hardcode_shlibpath_var=no
8552      ;;
8553
8554    *)
8555      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8556	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8558      else
8559	ld_shlibs=no
8560      fi
8561      ;;
8562    esac
8563
8564    if test "$ld_shlibs" = no; then
8565      runpath_var=
8566      hardcode_libdir_flag_spec=
8567      export_dynamic_flag_spec=
8568      whole_archive_flag_spec=
8569    fi
8570  else
8571    # PORTME fill in a description of your system's linker (not GNU ld)
8572    case $host_os in
8573    aix3*)
8574      allow_undefined_flag=unsupported
8575      always_export_symbols=yes
8576      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'
8577      # Note: this linker hardcodes the directories in LIBPATH if there
8578      # are no directories specified by -L.
8579      hardcode_minus_L=yes
8580      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8581	# Neither direct hardcoding nor static linking is supported with a
8582	# broken collect2.
8583	hardcode_direct=unsupported
8584      fi
8585      ;;
8586
8587    aix[4-9]*)
8588      if test "$host_cpu" = ia64; then
8589	# On IA64, the linker does run time linking by default, so we don't
8590	# have to do anything special.
8591	aix_use_runtimelinking=no
8592	exp_sym_flag='-Bexport'
8593	no_entry_flag=""
8594      else
8595	# If we're using GNU nm, then we don't want the "-C" option.
8596	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8597	# Also, AIX nm treats weak defined symbols like other global
8598	# defined symbols, whereas GNU nm marks them as "W".
8599	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8600	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8601	else
8602	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8603	fi
8604	aix_use_runtimelinking=no
8605
8606	# Test if we are trying to use run time linking or normal
8607	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8608	# need to do runtime linking.
8609	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8610	  for ld_flag in $LDFLAGS; do
8611	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8612	    aix_use_runtimelinking=yes
8613	    break
8614	  fi
8615	  done
8616	  ;;
8617	esac
8618
8619	exp_sym_flag='-bexport'
8620	no_entry_flag='-bnoentry'
8621      fi
8622
8623      # When large executables or shared objects are built, AIX ld can
8624      # have problems creating the table of contents.  If linking a library
8625      # or program results in "error TOC overflow" add -mminimal-toc to
8626      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8627      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8628
8629      archive_cmds=''
8630      hardcode_direct=yes
8631      hardcode_direct_absolute=yes
8632      hardcode_libdir_separator=':'
8633      link_all_deplibs=yes
8634      file_list_spec='${wl}-f,'
8635
8636      if test "$GCC" = yes; then
8637	case $host_os in aix4.[012]|aix4.[012].*)
8638	# We only want to do this on AIX 4.2 and lower, the check
8639	# below for broken collect2 doesn't work under 4.3+
8640	  collect2name=`${CC} -print-prog-name=collect2`
8641	  if test -f "$collect2name" &&
8642	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8643	  then
8644	  # We have reworked collect2
8645	  :
8646	  else
8647	  # We have old collect2
8648	  hardcode_direct=unsupported
8649	  # It fails to find uninstalled libraries when the uninstalled
8650	  # path is not listed in the libpath.  Setting hardcode_minus_L
8651	  # to unsupported forces relinking
8652	  hardcode_minus_L=yes
8653	  hardcode_libdir_flag_spec='-L$libdir'
8654	  hardcode_libdir_separator=
8655	  fi
8656	  ;;
8657	esac
8658	shared_flag='-shared'
8659	if test "$aix_use_runtimelinking" = yes; then
8660	  shared_flag="$shared_flag "'${wl}-G'
8661	fi
8662	link_all_deplibs=no
8663      else
8664	# not using gcc
8665	if test "$host_cpu" = ia64; then
8666	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8667	# chokes on -Wl,-G. The following line is correct:
8668	  shared_flag='-G'
8669	else
8670	  if test "$aix_use_runtimelinking" = yes; then
8671	    shared_flag='${wl}-G'
8672	  else
8673	    shared_flag='${wl}-bM:SRE'
8674	  fi
8675	fi
8676      fi
8677
8678      export_dynamic_flag_spec='${wl}-bexpall'
8679      # It seems that -bexpall does not export symbols beginning with
8680      # underscore (_), so it is better to generate a list of symbols to export.
8681      always_export_symbols=yes
8682      if test "$aix_use_runtimelinking" = yes; then
8683	# Warning - without using the other runtime loading flags (-brtl),
8684	# -berok will link without error, but may produce a broken library.
8685	allow_undefined_flag='-berok'
8686        # Determine the default libpath from the value encoded in an
8687        # empty executable.
8688        if test "${lt_cv_aix_libpath+set}" = set; then
8689  aix_libpath=$lt_cv_aix_libpath
8690else
8691  if ${lt_cv_aix_libpath_+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696
8697int
8698main ()
8699{
8700
8701  ;
8702  return 0;
8703}
8704_ACEOF
8705if ac_fn_c_try_link "$LINENO"; then :
8706
8707  lt_aix_libpath_sed='
8708      /Import File Strings/,/^$/ {
8709	  /^0/ {
8710	      s/^0  *\([^ ]*\) *$/\1/
8711	      p
8712	  }
8713      }'
8714  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8715  # Check for a 64-bit object if we didn't find anything.
8716  if test -z "$lt_cv_aix_libpath_"; then
8717    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8718  fi
8719fi
8720rm -f core conftest.err conftest.$ac_objext \
8721    conftest$ac_exeext conftest.$ac_ext
8722  if test -z "$lt_cv_aix_libpath_"; then
8723    lt_cv_aix_libpath_="/usr/lib:/lib"
8724  fi
8725
8726fi
8727
8728  aix_libpath=$lt_cv_aix_libpath_
8729fi
8730
8731        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8732        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8733      else
8734	if test "$host_cpu" = ia64; then
8735	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8736	  allow_undefined_flag="-z nodefs"
8737	  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"
8738	else
8739	 # Determine the default libpath from the value encoded in an
8740	 # empty executable.
8741	 if test "${lt_cv_aix_libpath+set}" = set; then
8742  aix_libpath=$lt_cv_aix_libpath
8743else
8744  if ${lt_cv_aix_libpath_+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748/* end confdefs.h.  */
8749
8750int
8751main ()
8752{
8753
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_link "$LINENO"; then :
8759
8760  lt_aix_libpath_sed='
8761      /Import File Strings/,/^$/ {
8762	  /^0/ {
8763	      s/^0  *\([^ ]*\) *$/\1/
8764	      p
8765	  }
8766      }'
8767  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8768  # Check for a 64-bit object if we didn't find anything.
8769  if test -z "$lt_cv_aix_libpath_"; then
8770    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8771  fi
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774    conftest$ac_exeext conftest.$ac_ext
8775  if test -z "$lt_cv_aix_libpath_"; then
8776    lt_cv_aix_libpath_="/usr/lib:/lib"
8777  fi
8778
8779fi
8780
8781  aix_libpath=$lt_cv_aix_libpath_
8782fi
8783
8784	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8785	  # Warning - without using the other run time loading flags,
8786	  # -berok will link without error, but may produce a broken library.
8787	  no_undefined_flag=' ${wl}-bernotok'
8788	  allow_undefined_flag=' ${wl}-berok'
8789	  if test "$with_gnu_ld" = yes; then
8790	    # We only use this code for GNU lds that support --whole-archive.
8791	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8792	  else
8793	    # Exported symbols can be pulled into shared objects from archives
8794	    whole_archive_flag_spec='$convenience'
8795	  fi
8796	  archive_cmds_need_lc=yes
8797	  # This is similar to how AIX traditionally builds its shared libraries.
8798	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8799	fi
8800      fi
8801      ;;
8802
8803    amigaos*)
8804      case $host_cpu in
8805      powerpc)
8806            # see comment about AmigaOS4 .so support
8807            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808            archive_expsym_cmds=''
8809        ;;
8810      m68k)
8811            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)'
8812            hardcode_libdir_flag_spec='-L$libdir'
8813            hardcode_minus_L=yes
8814        ;;
8815      esac
8816      ;;
8817
8818    bsdi[45]*)
8819      export_dynamic_flag_spec=-rdynamic
8820      ;;
8821
8822    cygwin* | mingw* | pw32* | cegcc*)
8823      # When not using gcc, we currently assume that we are using
8824      # Microsoft Visual C++.
8825      # hardcode_libdir_flag_spec is actually meaningless, as there is
8826      # no search path for DLLs.
8827      case $cc_basename in
8828      cl*)
8829	# Native MSVC
8830	hardcode_libdir_flag_spec=' '
8831	allow_undefined_flag=unsupported
8832	always_export_symbols=yes
8833	file_list_spec='@'
8834	# Tell ltmain to make .lib files, not .a files.
8835	libext=lib
8836	# Tell ltmain to make .dll files, not .so files.
8837	shrext_cmds=".dll"
8838	# FIXME: Setting linknames here is a bad hack.
8839	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8840	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8841	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8842	  else
8843	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8844	  fi~
8845	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8846	  linknames='
8847	# The linker will not automatically build a static lib if we build a DLL.
8848	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8849	enable_shared_with_static_runtimes=yes
8850	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8851	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8852	# Don't use ranlib
8853	old_postinstall_cmds='chmod 644 $oldlib'
8854	postlink_cmds='lt_outputfile="@OUTPUT@"~
8855	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8856	  case $lt_outputfile in
8857	    *.exe|*.EXE) ;;
8858	    *)
8859	      lt_outputfile="$lt_outputfile.exe"
8860	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8861	      ;;
8862	  esac~
8863	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8864	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8865	    $RM "$lt_outputfile.manifest";
8866	  fi'
8867	;;
8868      *)
8869	# Assume MSVC wrapper
8870	hardcode_libdir_flag_spec=' '
8871	allow_undefined_flag=unsupported
8872	# Tell ltmain to make .lib files, not .a files.
8873	libext=lib
8874	# Tell ltmain to make .dll files, not .so files.
8875	shrext_cmds=".dll"
8876	# FIXME: Setting linknames here is a bad hack.
8877	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8878	# The linker will automatically build a .lib file if we build a DLL.
8879	old_archive_from_new_cmds='true'
8880	# FIXME: Should let the user specify the lib program.
8881	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8882	enable_shared_with_static_runtimes=yes
8883	;;
8884      esac
8885      ;;
8886
8887    darwin* | rhapsody*)
8888
8889
8890  archive_cmds_need_lc=no
8891  hardcode_direct=no
8892  hardcode_automatic=yes
8893  hardcode_shlibpath_var=unsupported
8894  if test "$lt_cv_ld_force_load" = "yes"; then
8895    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\"`'
8896
8897  else
8898    whole_archive_flag_spec=''
8899  fi
8900  link_all_deplibs=yes
8901  allow_undefined_flag="$_lt_dar_allow_undefined"
8902  case $cc_basename in
8903     ifort*) _lt_dar_can_shared=yes ;;
8904     *) _lt_dar_can_shared=$GCC ;;
8905  esac
8906  if test "$_lt_dar_can_shared" = "yes"; then
8907    output_verbose_link_cmd=func_echo_all
8908    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8909    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8910    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}"
8911    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}"
8912
8913  else
8914  ld_shlibs=no
8915  fi
8916
8917      ;;
8918
8919    dgux*)
8920      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921      hardcode_libdir_flag_spec='-L$libdir'
8922      hardcode_shlibpath_var=no
8923      ;;
8924
8925    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8926    # support.  Future versions do this automatically, but an explicit c++rt0.o
8927    # does not break anything, and helps significantly (at the cost of a little
8928    # extra space).
8929    freebsd2.2*)
8930      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8931      hardcode_libdir_flag_spec='-R$libdir'
8932      hardcode_direct=yes
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8937    freebsd2.*)
8938      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8939      hardcode_direct=yes
8940      hardcode_minus_L=yes
8941      hardcode_shlibpath_var=no
8942      ;;
8943
8944    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8945    freebsd* | dragonfly*)
8946      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947      hardcode_libdir_flag_spec='-R$libdir'
8948      hardcode_direct=yes
8949      hardcode_shlibpath_var=no
8950      ;;
8951
8952    hpux9*)
8953      if test "$GCC" = yes; then
8954	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8955      else
8956	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8957      fi
8958      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8959      hardcode_libdir_separator=:
8960      hardcode_direct=yes
8961
8962      # hardcode_minus_L: Not really in the search PATH,
8963      # but as the default location of the library.
8964      hardcode_minus_L=yes
8965      export_dynamic_flag_spec='${wl}-E'
8966      ;;
8967
8968    hpux10*)
8969      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8970	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8971      else
8972	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8973      fi
8974      if test "$with_gnu_ld" = no; then
8975	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8976	hardcode_libdir_separator=:
8977	hardcode_direct=yes
8978	hardcode_direct_absolute=yes
8979	export_dynamic_flag_spec='${wl}-E'
8980	# hardcode_minus_L: Not really in the search PATH,
8981	# but as the default location of the library.
8982	hardcode_minus_L=yes
8983      fi
8984      ;;
8985
8986    hpux11*)
8987      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8988	case $host_cpu in
8989	hppa*64*)
8990	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991	  ;;
8992	ia64*)
8993	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8994	  ;;
8995	*)
8996	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8997	  ;;
8998	esac
8999      else
9000	case $host_cpu in
9001	hppa*64*)
9002	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9003	  ;;
9004	ia64*)
9005	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9006	  ;;
9007	*)
9008
9009	  # Older versions of the 11.00 compiler do not understand -b yet
9010	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9011	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9012$as_echo_n "checking if $CC understands -b... " >&6; }
9013if ${lt_cv_prog_compiler__b+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  lt_cv_prog_compiler__b=no
9017   save_LDFLAGS="$LDFLAGS"
9018   LDFLAGS="$LDFLAGS -b"
9019   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9020   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9021     # The linker can only warn and ignore the option if not recognized
9022     # So say no if there are warnings
9023     if test -s conftest.err; then
9024       # Append any errors to the config.log.
9025       cat conftest.err 1>&5
9026       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9027       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9028       if diff conftest.exp conftest.er2 >/dev/null; then
9029         lt_cv_prog_compiler__b=yes
9030       fi
9031     else
9032       lt_cv_prog_compiler__b=yes
9033     fi
9034   fi
9035   $RM -r conftest*
9036   LDFLAGS="$save_LDFLAGS"
9037
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9040$as_echo "$lt_cv_prog_compiler__b" >&6; }
9041
9042if test x"$lt_cv_prog_compiler__b" = xyes; then
9043    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9044else
9045    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9046fi
9047
9048	  ;;
9049	esac
9050      fi
9051      if test "$with_gnu_ld" = no; then
9052	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9053	hardcode_libdir_separator=:
9054
9055	case $host_cpu in
9056	hppa*64*|ia64*)
9057	  hardcode_direct=no
9058	  hardcode_shlibpath_var=no
9059	  ;;
9060	*)
9061	  hardcode_direct=yes
9062	  hardcode_direct_absolute=yes
9063	  export_dynamic_flag_spec='${wl}-E'
9064
9065	  # hardcode_minus_L: Not really in the search PATH,
9066	  # but as the default location of the library.
9067	  hardcode_minus_L=yes
9068	  ;;
9069	esac
9070      fi
9071      ;;
9072
9073    irix5* | irix6* | nonstopux*)
9074      if test "$GCC" = yes; then
9075	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'
9076	# Try to use the -exported_symbol ld option, if it does not
9077	# work, assume that -exports_file does not work either and
9078	# implicitly export all symbols.
9079	# This should be the same for all languages, so no per-tag cache variable.
9080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9081$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9082if ${lt_cv_irix_exported_symbol+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  save_LDFLAGS="$LDFLAGS"
9086	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9087	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int foo (void) { return 0; }
9090_ACEOF
9091if ac_fn_c_try_link "$LINENO"; then :
9092  lt_cv_irix_exported_symbol=yes
9093else
9094  lt_cv_irix_exported_symbol=no
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097    conftest$ac_exeext conftest.$ac_ext
9098           LDFLAGS="$save_LDFLAGS"
9099fi
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9101$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9102	if test "$lt_cv_irix_exported_symbol" = yes; then
9103          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'
9104	fi
9105      else
9106	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'
9107	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'
9108      fi
9109      archive_cmds_need_lc='no'
9110      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111      hardcode_libdir_separator=:
9112      inherit_rpath=yes
9113      link_all_deplibs=yes
9114      ;;
9115
9116    netbsd* | netbsdelf*-gnu)
9117      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9118	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9119      else
9120	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9121      fi
9122      hardcode_libdir_flag_spec='-R$libdir'
9123      hardcode_direct=yes
9124      hardcode_shlibpath_var=no
9125      ;;
9126
9127    newsos6)
9128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129      hardcode_direct=yes
9130      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131      hardcode_libdir_separator=:
9132      hardcode_shlibpath_var=no
9133      ;;
9134
9135    *nto* | *qnx*)
9136      ;;
9137
9138    openbsd*)
9139      if test -f /usr/libexec/ld.so; then
9140	hardcode_direct=yes
9141	hardcode_shlibpath_var=no
9142	hardcode_direct_absolute=yes
9143	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9144	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9145	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9146	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9147	  export_dynamic_flag_spec='${wl}-E'
9148	else
9149	  case $host_os in
9150	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9151	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152	     hardcode_libdir_flag_spec='-R$libdir'
9153	     ;;
9154	   *)
9155	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9156	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9157	     ;;
9158	  esac
9159	fi
9160      else
9161	ld_shlibs=no
9162      fi
9163      ;;
9164
9165    os2*)
9166      hardcode_libdir_flag_spec='-L$libdir'
9167      hardcode_minus_L=yes
9168      allow_undefined_flag=unsupported
9169      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9170      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9171      ;;
9172
9173    osf3*)
9174      if test "$GCC" = yes; then
9175	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9176	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'
9177      else
9178	allow_undefined_flag=' -expect_unresolved \*'
9179	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'
9180      fi
9181      archive_cmds_need_lc='no'
9182      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183      hardcode_libdir_separator=:
9184      ;;
9185
9186    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9187      if test "$GCC" = yes; then
9188	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9189	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'
9190	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191      else
9192	allow_undefined_flag=' -expect_unresolved \*'
9193	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'
9194	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~
9195	$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'
9196
9197	# Both c and cxx compiler support -rpath directly
9198	hardcode_libdir_flag_spec='-rpath $libdir'
9199      fi
9200      archive_cmds_need_lc='no'
9201      hardcode_libdir_separator=:
9202      ;;
9203
9204    solaris*)
9205      no_undefined_flag=' -z defs'
9206      if test "$GCC" = yes; then
9207	wlarc='${wl}'
9208	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9210	  $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'
9211      else
9212	case `$CC -V 2>&1` in
9213	*"Compilers 5.0"*)
9214	  wlarc=''
9215	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9217	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9218	  ;;
9219	*)
9220	  wlarc='${wl}'
9221	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9222	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9223	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9224	  ;;
9225	esac
9226      fi
9227      hardcode_libdir_flag_spec='-R$libdir'
9228      hardcode_shlibpath_var=no
9229      case $host_os in
9230      solaris2.[0-5] | solaris2.[0-5].*) ;;
9231      *)
9232	# The compiler driver will combine and reorder linker options,
9233	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9234	# but is careful enough not to reorder.
9235	# Supported since Solaris 2.6 (maybe 2.5.1?)
9236	if test "$GCC" = yes; then
9237	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9238	else
9239	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9240	fi
9241	;;
9242      esac
9243      link_all_deplibs=yes
9244      ;;
9245
9246    sunos4*)
9247      if test "x$host_vendor" = xsequent; then
9248	# Use $CC to link under sequent, because it throws in some extra .o
9249	# files that make .init and .fini sections work.
9250	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9251      else
9252	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9253      fi
9254      hardcode_libdir_flag_spec='-L$libdir'
9255      hardcode_direct=yes
9256      hardcode_minus_L=yes
9257      hardcode_shlibpath_var=no
9258      ;;
9259
9260    sysv4)
9261      case $host_vendor in
9262	sni)
9263	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264	  hardcode_direct=yes # is this really true???
9265	;;
9266	siemens)
9267	  ## LD is ld it makes a PLAMLIB
9268	  ## CC just makes a GrossModule.
9269	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9270	  reload_cmds='$CC -r -o $output$reload_objs'
9271	  hardcode_direct=no
9272        ;;
9273	motorola)
9274	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9276	;;
9277      esac
9278      runpath_var='LD_RUN_PATH'
9279      hardcode_shlibpath_var=no
9280      ;;
9281
9282    sysv4.3*)
9283      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284      hardcode_shlibpath_var=no
9285      export_dynamic_flag_spec='-Bexport'
9286      ;;
9287
9288    sysv4*MP*)
9289      if test -d /usr/nec; then
9290	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291	hardcode_shlibpath_var=no
9292	runpath_var=LD_RUN_PATH
9293	hardcode_runpath_var=yes
9294	ld_shlibs=yes
9295      fi
9296      ;;
9297
9298    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9299      no_undefined_flag='${wl}-z,text'
9300      archive_cmds_need_lc=no
9301      hardcode_shlibpath_var=no
9302      runpath_var='LD_RUN_PATH'
9303
9304      if test "$GCC" = yes; then
9305	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307      else
9308	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310      fi
9311      ;;
9312
9313    sysv5* | sco3.2v5* | sco5v6*)
9314      # Note: We can NOT use -z defs as we might desire, because we do not
9315      # link with -lc, and that would cause any symbols used from libc to
9316      # always be unresolved, which means just about no library would
9317      # ever link correctly.  If we're not using GNU ld we use -z text
9318      # though, which does catch some bad symbols but isn't as heavy-handed
9319      # as -z defs.
9320      no_undefined_flag='${wl}-z,text'
9321      allow_undefined_flag='${wl}-z,nodefs'
9322      archive_cmds_need_lc=no
9323      hardcode_shlibpath_var=no
9324      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9325      hardcode_libdir_separator=':'
9326      link_all_deplibs=yes
9327      export_dynamic_flag_spec='${wl}-Bexport'
9328      runpath_var='LD_RUN_PATH'
9329
9330      if test "$GCC" = yes; then
9331	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9333      else
9334	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336      fi
9337      ;;
9338
9339    uts4*)
9340      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341      hardcode_libdir_flag_spec='-L$libdir'
9342      hardcode_shlibpath_var=no
9343      ;;
9344
9345    *)
9346      ld_shlibs=no
9347      ;;
9348    esac
9349
9350    if test x$host_vendor = xsni; then
9351      case $host in
9352      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9353	export_dynamic_flag_spec='${wl}-Blargedynsym'
9354	;;
9355      esac
9356    fi
9357  fi
9358
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9360$as_echo "$ld_shlibs" >&6; }
9361test "$ld_shlibs" = no && can_build_shared=no
9362
9363with_gnu_ld=$with_gnu_ld
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379#
9380# Do we need to explicitly link libc?
9381#
9382case "x$archive_cmds_need_lc" in
9383x|xyes)
9384  # Assume -lc should be added
9385  archive_cmds_need_lc=yes
9386
9387  if test "$enable_shared" = yes && test "$GCC" = yes; then
9388    case $archive_cmds in
9389    *'~'*)
9390      # FIXME: we may have to deal with multi-command sequences.
9391      ;;
9392    '$CC '*)
9393      # Test whether the compiler implicitly links with -lc since on some
9394      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9395      # to ld, don't add -lc before -lgcc.
9396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9397$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9398if ${lt_cv_archive_cmds_need_lc+:} false; then :
9399  $as_echo_n "(cached) " >&6
9400else
9401  $RM conftest*
9402	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9403
9404	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9405  (eval $ac_compile) 2>&5
9406  ac_status=$?
9407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9408  test $ac_status = 0; } 2>conftest.err; then
9409	  soname=conftest
9410	  lib=conftest
9411	  libobjs=conftest.$ac_objext
9412	  deplibs=
9413	  wl=$lt_prog_compiler_wl
9414	  pic_flag=$lt_prog_compiler_pic
9415	  compiler_flags=-v
9416	  linker_flags=-v
9417	  verstring=
9418	  output_objdir=.
9419	  libname=conftest
9420	  lt_save_allow_undefined_flag=$allow_undefined_flag
9421	  allow_undefined_flag=
9422	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9423  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9424  ac_status=$?
9425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426  test $ac_status = 0; }
9427	  then
9428	    lt_cv_archive_cmds_need_lc=no
9429	  else
9430	    lt_cv_archive_cmds_need_lc=yes
9431	  fi
9432	  allow_undefined_flag=$lt_save_allow_undefined_flag
9433	else
9434	  cat conftest.err 1>&5
9435	fi
9436	$RM conftest*
9437
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9440$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9441      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9442      ;;
9443    esac
9444  fi
9445  ;;
9446esac
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9600$as_echo_n "checking dynamic linker characteristics... " >&6; }
9601
9602if test "$GCC" = yes; then
9603  case $host_os in
9604    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9605    *) lt_awk_arg="/^libraries:/" ;;
9606  esac
9607  case $host_os in
9608    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9609    *) lt_sed_strip_eq="s,=/,/,g" ;;
9610  esac
9611  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9612  case $lt_search_path_spec in
9613  *\;*)
9614    # if the path contains ";" then we assume it to be the separator
9615    # otherwise default to the standard path separator (i.e. ":") - it is
9616    # assumed that no part of a normal pathname contains ";" but that should
9617    # okay in the real world where ";" in dirpaths is itself problematic.
9618    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9619    ;;
9620  *)
9621    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9622    ;;
9623  esac
9624  # Ok, now we have the path, separated by spaces, we can step through it
9625  # and add multilib dir if necessary.
9626  lt_tmp_lt_search_path_spec=
9627  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9628  for lt_sys_path in $lt_search_path_spec; do
9629    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9630      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9631    else
9632      test -d "$lt_sys_path" && \
9633	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9634    fi
9635  done
9636  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9637BEGIN {RS=" "; FS="/|\n";} {
9638  lt_foo="";
9639  lt_count=0;
9640  for (lt_i = NF; lt_i > 0; lt_i--) {
9641    if ($lt_i != "" && $lt_i != ".") {
9642      if ($lt_i == "..") {
9643        lt_count++;
9644      } else {
9645        if (lt_count == 0) {
9646          lt_foo="/" $lt_i lt_foo;
9647        } else {
9648          lt_count--;
9649        }
9650      }
9651    }
9652  }
9653  if (lt_foo != "") { lt_freq[lt_foo]++; }
9654  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9655}'`
9656  # AWK program above erroneously prepends '/' to C:/dos/paths
9657  # for these hosts.
9658  case $host_os in
9659    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9660      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9661  esac
9662  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9663else
9664  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9665fi
9666library_names_spec=
9667libname_spec='lib$name'
9668soname_spec=
9669shrext_cmds=".so"
9670postinstall_cmds=
9671postuninstall_cmds=
9672finish_cmds=
9673finish_eval=
9674shlibpath_var=
9675shlibpath_overrides_runpath=unknown
9676version_type=none
9677dynamic_linker="$host_os ld.so"
9678sys_lib_dlsearch_path_spec="/lib /usr/lib"
9679need_lib_prefix=unknown
9680hardcode_into_libs=no
9681
9682# when you set need_version to no, make sure it does not cause -set_version
9683# flags to be left without arguments
9684need_version=unknown
9685
9686case $host_os in
9687aix3*)
9688  version_type=linux # correct to gnu/linux during the next big refactor
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9690  shlibpath_var=LIBPATH
9691
9692  # AIX 3 has no versioning support, so we append a major version to the name.
9693  soname_spec='${libname}${release}${shared_ext}$major'
9694  ;;
9695
9696aix[4-9]*)
9697  version_type=linux # correct to gnu/linux during the next big refactor
9698  need_lib_prefix=no
9699  need_version=no
9700  hardcode_into_libs=yes
9701  if test "$host_cpu" = ia64; then
9702    # AIX 5 supports IA64
9703    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9704    shlibpath_var=LD_LIBRARY_PATH
9705  else
9706    # With GCC up to 2.95.x, collect2 would create an import file
9707    # for dependence libraries.  The import file would start with
9708    # the line `#! .'.  This would cause the generated library to
9709    # depend on `.', always an invalid library.  This was fixed in
9710    # development snapshots of GCC prior to 3.0.
9711    case $host_os in
9712      aix4 | aix4.[01] | aix4.[01].*)
9713      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9714	   echo ' yes '
9715	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9716	:
9717      else
9718	can_build_shared=no
9719      fi
9720      ;;
9721    esac
9722    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9723    # soname into executable. Probably we can add versioning support to
9724    # collect2, so additional links can be useful in future.
9725    if test "$aix_use_runtimelinking" = yes; then
9726      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9727      # instead of lib<name>.a to let people know that these are not
9728      # typical AIX shared libraries.
9729      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730    else
9731      # We preserve .a as extension for shared libraries through AIX4.2
9732      # and later when we are not doing run time linking.
9733      library_names_spec='${libname}${release}.a $libname.a'
9734      soname_spec='${libname}${release}${shared_ext}$major'
9735    fi
9736    shlibpath_var=LIBPATH
9737  fi
9738  ;;
9739
9740amigaos*)
9741  case $host_cpu in
9742  powerpc)
9743    # Since July 2007 AmigaOS4 officially supports .so libraries.
9744    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746    ;;
9747  m68k)
9748    library_names_spec='$libname.ixlibrary $libname.a'
9749    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9750    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9751    ;;
9752  esac
9753  ;;
9754
9755beos*)
9756  library_names_spec='${libname}${shared_ext}'
9757  dynamic_linker="$host_os ld.so"
9758  shlibpath_var=LIBRARY_PATH
9759  ;;
9760
9761bsdi[45]*)
9762  version_type=linux # correct to gnu/linux during the next big refactor
9763  need_version=no
9764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765  soname_spec='${libname}${release}${shared_ext}$major'
9766  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9769  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9770  # the default ld.so.conf also contains /usr/contrib/lib and
9771  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9772  # libtool to hard-code these into programs
9773  ;;
9774
9775cygwin* | mingw* | pw32* | cegcc*)
9776  version_type=windows
9777  shrext_cmds=".dll"
9778  need_version=no
9779  need_lib_prefix=no
9780
9781  case $GCC,$cc_basename in
9782  yes,*)
9783    # gcc
9784    library_names_spec='$libname.dll.a'
9785    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9786    postinstall_cmds='base_file=`basename \${file}`~
9787      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9788      dldir=$destdir/`dirname \$dlpath`~
9789      test -d \$dldir || mkdir -p \$dldir~
9790      $install_prog $dir/$dlname \$dldir/$dlname~
9791      chmod a+x \$dldir/$dlname~
9792      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9793        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9794      fi'
9795    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9796      dlpath=$dir/\$dldll~
9797       $RM \$dlpath'
9798    shlibpath_overrides_runpath=yes
9799
9800    case $host_os in
9801    cygwin*)
9802      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9803      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9804
9805      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9806      ;;
9807    mingw* | cegcc*)
9808      # MinGW DLLs use traditional 'lib' prefix
9809      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9810      ;;
9811    pw32*)
9812      # pw32 DLLs use 'pw' prefix rather than 'lib'
9813      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9814      ;;
9815    esac
9816    dynamic_linker='Win32 ld.exe'
9817    ;;
9818
9819  *,cl*)
9820    # Native MSVC
9821    libname_spec='$name'
9822    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9823    library_names_spec='${libname}.dll.lib'
9824
9825    case $build_os in
9826    mingw*)
9827      sys_lib_search_path_spec=
9828      lt_save_ifs=$IFS
9829      IFS=';'
9830      for lt_path in $LIB
9831      do
9832        IFS=$lt_save_ifs
9833        # Let DOS variable expansion print the short 8.3 style file name.
9834        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9835        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9836      done
9837      IFS=$lt_save_ifs
9838      # Convert to MSYS style.
9839      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9840      ;;
9841    cygwin*)
9842      # Convert to unix form, then to dos form, then back to unix form
9843      # but this time dos style (no spaces!) so that the unix form looks
9844      # like /cygdrive/c/PROGRA~1:/cygdr...
9845      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9846      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9847      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9848      ;;
9849    *)
9850      sys_lib_search_path_spec="$LIB"
9851      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9852        # It is most probably a Windows format PATH.
9853        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9854      else
9855        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9856      fi
9857      # FIXME: find the short name or the path components, as spaces are
9858      # common. (e.g. "Program Files" -> "PROGRA~1")
9859      ;;
9860    esac
9861
9862    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9863    postinstall_cmds='base_file=`basename \${file}`~
9864      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9865      dldir=$destdir/`dirname \$dlpath`~
9866      test -d \$dldir || mkdir -p \$dldir~
9867      $install_prog $dir/$dlname \$dldir/$dlname'
9868    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9869      dlpath=$dir/\$dldll~
9870       $RM \$dlpath'
9871    shlibpath_overrides_runpath=yes
9872    dynamic_linker='Win32 link.exe'
9873    ;;
9874
9875  *)
9876    # Assume MSVC wrapper
9877    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9878    dynamic_linker='Win32 ld.exe'
9879    ;;
9880  esac
9881  # FIXME: first we should search . and the directory the executable is in
9882  shlibpath_var=PATH
9883  ;;
9884
9885darwin* | rhapsody*)
9886  dynamic_linker="$host_os dyld"
9887  version_type=darwin
9888  need_lib_prefix=no
9889  need_version=no
9890  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9891  soname_spec='${libname}${release}${major}$shared_ext'
9892  shlibpath_overrides_runpath=yes
9893  shlibpath_var=DYLD_LIBRARY_PATH
9894  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9895
9896  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9897  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9898  ;;
9899
9900dgux*)
9901  version_type=linux # correct to gnu/linux during the next big refactor
9902  need_lib_prefix=no
9903  need_version=no
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  ;;
9908
9909freebsd* | dragonfly*)
9910  # DragonFly does not have aout.  When/if they implement a new
9911  # versioning mechanism, adjust this.
9912  if test -x /usr/bin/objformat; then
9913    objformat=`/usr/bin/objformat`
9914  else
9915    case $host_os in
9916    freebsd[23].*) objformat=aout ;;
9917    *) objformat=elf ;;
9918    esac
9919  fi
9920  version_type=freebsd-$objformat
9921  case $version_type in
9922    freebsd-elf*)
9923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924      need_version=no
9925      need_lib_prefix=no
9926      ;;
9927    freebsd-*)
9928      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9929      need_version=yes
9930      ;;
9931  esac
9932  shlibpath_var=LD_LIBRARY_PATH
9933  case $host_os in
9934  freebsd2.*)
9935    shlibpath_overrides_runpath=yes
9936    ;;
9937  freebsd3.[01]* | freebsdelf3.[01]*)
9938    shlibpath_overrides_runpath=yes
9939    hardcode_into_libs=yes
9940    ;;
9941  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9942  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9943    shlibpath_overrides_runpath=no
9944    hardcode_into_libs=yes
9945    ;;
9946  *) # from 4.6 on, and DragonFly
9947    shlibpath_overrides_runpath=yes
9948    hardcode_into_libs=yes
9949    ;;
9950  esac
9951  ;;
9952
9953gnu*)
9954  version_type=linux # correct to gnu/linux during the next big refactor
9955  need_lib_prefix=no
9956  need_version=no
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9958  soname_spec='${libname}${release}${shared_ext}$major'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=no
9961  hardcode_into_libs=yes
9962  ;;
9963
9964haiku*)
9965  version_type=linux # correct to gnu/linux during the next big refactor
9966  need_lib_prefix=no
9967  need_version=no
9968  dynamic_linker="$host_os runtime_loader"
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  shlibpath_var=LIBRARY_PATH
9972  shlibpath_overrides_runpath=yes
9973  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9974  hardcode_into_libs=yes
9975  ;;
9976
9977hpux9* | hpux10* | hpux11*)
9978  # Give a soname corresponding to the major version so that dld.sl refuses to
9979  # link against other versions.
9980  version_type=sunos
9981  need_lib_prefix=no
9982  need_version=no
9983  case $host_cpu in
9984  ia64*)
9985    shrext_cmds='.so'
9986    hardcode_into_libs=yes
9987    dynamic_linker="$host_os dld.so"
9988    shlibpath_var=LD_LIBRARY_PATH
9989    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991    soname_spec='${libname}${release}${shared_ext}$major'
9992    if test "X$HPUX_IA64_MODE" = X32; then
9993      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9994    else
9995      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9996    fi
9997    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9998    ;;
9999  hppa*64*)
10000    shrext_cmds='.sl'
10001    hardcode_into_libs=yes
10002    dynamic_linker="$host_os dld.sl"
10003    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10004    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10005    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006    soname_spec='${libname}${release}${shared_ext}$major'
10007    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10008    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10009    ;;
10010  *)
10011    shrext_cmds='.sl'
10012    dynamic_linker="$host_os dld.sl"
10013    shlibpath_var=SHLIB_PATH
10014    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10015    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016    soname_spec='${libname}${release}${shared_ext}$major'
10017    ;;
10018  esac
10019  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10020  postinstall_cmds='chmod 555 $lib'
10021  # or fails outright, so override atomically:
10022  install_override_mode=555
10023  ;;
10024
10025interix[3-9]*)
10026  version_type=linux # correct to gnu/linux during the next big refactor
10027  need_lib_prefix=no
10028  need_version=no
10029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030  soname_spec='${libname}${release}${shared_ext}$major'
10031  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10032  shlibpath_var=LD_LIBRARY_PATH
10033  shlibpath_overrides_runpath=no
10034  hardcode_into_libs=yes
10035  ;;
10036
10037irix5* | irix6* | nonstopux*)
10038  case $host_os in
10039    nonstopux*) version_type=nonstopux ;;
10040    *)
10041	if test "$lt_cv_prog_gnu_ld" = yes; then
10042		version_type=linux # correct to gnu/linux during the next big refactor
10043	else
10044		version_type=irix
10045	fi ;;
10046  esac
10047  need_lib_prefix=no
10048  need_version=no
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10051  case $host_os in
10052  irix5* | nonstopux*)
10053    libsuff= shlibsuff=
10054    ;;
10055  *)
10056    case $LD in # libtool.m4 will add one of these switches to LD
10057    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10058      libsuff= shlibsuff= libmagic=32-bit;;
10059    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10060      libsuff=32 shlibsuff=N32 libmagic=N32;;
10061    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10062      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10063    *) libsuff= shlibsuff= libmagic=never-match;;
10064    esac
10065    ;;
10066  esac
10067  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10068  shlibpath_overrides_runpath=no
10069  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10070  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10071  hardcode_into_libs=yes
10072  ;;
10073
10074# No shared lib support for Linux oldld, aout, or coff.
10075linux*oldld* | linux*aout* | linux*coff*)
10076  dynamic_linker=no
10077  ;;
10078
10079# This must be glibc/ELF.
10080linux* | k*bsd*-gnu | kopensolaris*-gnu)
10081  version_type=linux # correct to gnu/linux during the next big refactor
10082  need_lib_prefix=no
10083  need_version=no
10084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085  soname_spec='${libname}${release}${shared_ext}$major'
10086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10087  shlibpath_var=LD_LIBRARY_PATH
10088  shlibpath_overrides_runpath=no
10089
10090  # Some binutils ld are patched to set DT_RUNPATH
10091  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10092  $as_echo_n "(cached) " >&6
10093else
10094  lt_cv_shlibpath_overrides_runpath=no
10095    save_LDFLAGS=$LDFLAGS
10096    save_libdir=$libdir
10097    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10098	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h.  */
10101
10102int
10103main ()
10104{
10105
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10112  lt_cv_shlibpath_overrides_runpath=yes
10113fi
10114fi
10115rm -f core conftest.err conftest.$ac_objext \
10116    conftest$ac_exeext conftest.$ac_ext
10117    LDFLAGS=$save_LDFLAGS
10118    libdir=$save_libdir
10119
10120fi
10121
10122  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10123
10124  # This implies no fast_install, which is unacceptable.
10125  # Some rework will be needed to allow for fast_install
10126  # before this can be enabled.
10127  hardcode_into_libs=yes
10128
10129  # Append ld.so.conf contents to the search path
10130  if test -f /etc/ld.so.conf; then
10131    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' ' '`
10132    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10133  fi
10134
10135  # We used to test for /lib/ld.so.1 and disable shared libraries on
10136  # powerpc, because MkLinux only supported shared libraries with the
10137  # GNU dynamic linker.  Since this was broken with cross compilers,
10138  # most powerpc-linux boxes support dynamic linking these days and
10139  # people can always --disable-shared, the test was removed, and we
10140  # assume the GNU/Linux dynamic linker is in use.
10141  dynamic_linker='GNU/Linux ld.so'
10142  ;;
10143
10144netbsdelf*-gnu)
10145  version_type=linux
10146  need_lib_prefix=no
10147  need_version=no
10148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10149  soname_spec='${libname}${release}${shared_ext}$major'
10150  shlibpath_var=LD_LIBRARY_PATH
10151  shlibpath_overrides_runpath=no
10152  hardcode_into_libs=yes
10153  dynamic_linker='NetBSD ld.elf_so'
10154  ;;
10155
10156netbsd*)
10157  version_type=sunos
10158  need_lib_prefix=no
10159  need_version=no
10160  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10161    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10162    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10163    dynamic_linker='NetBSD (a.out) ld.so'
10164  else
10165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10166    soname_spec='${libname}${release}${shared_ext}$major'
10167    dynamic_linker='NetBSD ld.elf_so'
10168  fi
10169  shlibpath_var=LD_LIBRARY_PATH
10170  shlibpath_overrides_runpath=yes
10171  hardcode_into_libs=yes
10172  ;;
10173
10174newsos6)
10175  version_type=linux # correct to gnu/linux during the next big refactor
10176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177  shlibpath_var=LD_LIBRARY_PATH
10178  shlibpath_overrides_runpath=yes
10179  ;;
10180
10181*nto* | *qnx*)
10182  version_type=qnx
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  shlibpath_overrides_runpath=no
10189  hardcode_into_libs=yes
10190  dynamic_linker='ldqnx.so'
10191  ;;
10192
10193openbsd*)
10194  version_type=sunos
10195  sys_lib_dlsearch_path_spec="/usr/lib"
10196  need_lib_prefix=no
10197  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10198  case $host_os in
10199    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10200    *)				need_version=no  ;;
10201  esac
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10206    case $host_os in
10207      openbsd2.[89] | openbsd2.[89].*)
10208	shlibpath_overrides_runpath=no
10209	;;
10210      *)
10211	shlibpath_overrides_runpath=yes
10212	;;
10213      esac
10214  else
10215    shlibpath_overrides_runpath=yes
10216  fi
10217  ;;
10218
10219os2*)
10220  libname_spec='$name'
10221  shrext_cmds=".dll"
10222  need_lib_prefix=no
10223  library_names_spec='$libname${shared_ext} $libname.a'
10224  dynamic_linker='OS/2 ld.exe'
10225  shlibpath_var=LIBPATH
10226  ;;
10227
10228osf3* | osf4* | osf5*)
10229  version_type=osf
10230  need_lib_prefix=no
10231  need_version=no
10232  soname_spec='${libname}${release}${shared_ext}$major'
10233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234  shlibpath_var=LD_LIBRARY_PATH
10235  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10236  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10237  ;;
10238
10239rdos*)
10240  dynamic_linker=no
10241  ;;
10242
10243solaris*)
10244  version_type=linux # correct to gnu/linux during the next big refactor
10245  need_lib_prefix=no
10246  need_version=no
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248  soname_spec='${libname}${release}${shared_ext}$major'
10249  shlibpath_var=LD_LIBRARY_PATH
10250  shlibpath_overrides_runpath=yes
10251  hardcode_into_libs=yes
10252  # ldd complains unless libraries are executable
10253  postinstall_cmds='chmod +x $lib'
10254  ;;
10255
10256sunos4*)
10257  version_type=sunos
10258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10259  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10260  shlibpath_var=LD_LIBRARY_PATH
10261  shlibpath_overrides_runpath=yes
10262  if test "$with_gnu_ld" = yes; then
10263    need_lib_prefix=no
10264  fi
10265  need_version=yes
10266  ;;
10267
10268sysv4 | sysv4.3*)
10269  version_type=linux # correct to gnu/linux during the next big refactor
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  shlibpath_var=LD_LIBRARY_PATH
10273  case $host_vendor in
10274    sni)
10275      shlibpath_overrides_runpath=no
10276      need_lib_prefix=no
10277      runpath_var=LD_RUN_PATH
10278      ;;
10279    siemens)
10280      need_lib_prefix=no
10281      ;;
10282    motorola)
10283      need_lib_prefix=no
10284      need_version=no
10285      shlibpath_overrides_runpath=no
10286      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10287      ;;
10288  esac
10289  ;;
10290
10291sysv4*MP*)
10292  if test -d /usr/nec ;then
10293    version_type=linux # correct to gnu/linux during the next big refactor
10294    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295    soname_spec='$libname${shared_ext}.$major'
10296    shlibpath_var=LD_LIBRARY_PATH
10297  fi
10298  ;;
10299
10300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301  version_type=freebsd-elf
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  shlibpath_overrides_runpath=yes
10308  hardcode_into_libs=yes
10309  if test "$with_gnu_ld" = yes; then
10310    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10311  else
10312    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10313    case $host_os in
10314      sco3.2v5*)
10315        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10316	;;
10317    esac
10318  fi
10319  sys_lib_dlsearch_path_spec='/usr/lib'
10320  ;;
10321
10322tpf*)
10323  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10324  version_type=linux # correct to gnu/linux during the next big refactor
10325  need_lib_prefix=no
10326  need_version=no
10327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328  shlibpath_var=LD_LIBRARY_PATH
10329  shlibpath_overrides_runpath=no
10330  hardcode_into_libs=yes
10331  ;;
10332
10333uts4*)
10334  version_type=linux # correct to gnu/linux during the next big refactor
10335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336  soname_spec='${libname}${release}${shared_ext}$major'
10337  shlibpath_var=LD_LIBRARY_PATH
10338  ;;
10339
10340*)
10341  dynamic_linker=no
10342  ;;
10343esac
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10345$as_echo "$dynamic_linker" >&6; }
10346test "$dynamic_linker" = no && can_build_shared=no
10347
10348variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10349if test "$GCC" = yes; then
10350  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10351fi
10352
10353if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10354  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10355fi
10356if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10357  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10358fi
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10452$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10453hardcode_action=
10454if test -n "$hardcode_libdir_flag_spec" ||
10455   test -n "$runpath_var" ||
10456   test "X$hardcode_automatic" = "Xyes" ; then
10457
10458  # We can hardcode non-existent directories.
10459  if test "$hardcode_direct" != no &&
10460     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10461     # have to relink, otherwise we might link with an installed library
10462     # when we should be linking with a yet-to-be-installed one
10463     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10464     test "$hardcode_minus_L" != no; then
10465    # Linking always hardcodes the temporary library directory.
10466    hardcode_action=relink
10467  else
10468    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10469    hardcode_action=immediate
10470  fi
10471else
10472  # We cannot hardcode anything, or else we can only hardcode existing
10473  # directories.
10474  hardcode_action=unsupported
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10477$as_echo "$hardcode_action" >&6; }
10478
10479if test "$hardcode_action" = relink ||
10480   test "$inherit_rpath" = yes; then
10481  # Fast installation is not supported
10482  enable_fast_install=no
10483elif test "$shlibpath_overrides_runpath" = yes ||
10484     test "$enable_shared" = no; then
10485  # Fast installation is not necessary
10486  enable_fast_install=needless
10487fi
10488
10489
10490
10491
10492
10493
10494  if test "x$enable_dlopen" != xyes; then
10495  enable_dlopen=unknown
10496  enable_dlopen_self=unknown
10497  enable_dlopen_self_static=unknown
10498else
10499  lt_cv_dlopen=no
10500  lt_cv_dlopen_libs=
10501
10502  case $host_os in
10503  beos*)
10504    lt_cv_dlopen="load_add_on"
10505    lt_cv_dlopen_libs=
10506    lt_cv_dlopen_self=yes
10507    ;;
10508
10509  mingw* | pw32* | cegcc*)
10510    lt_cv_dlopen="LoadLibrary"
10511    lt_cv_dlopen_libs=
10512    ;;
10513
10514  cygwin*)
10515    lt_cv_dlopen="dlopen"
10516    lt_cv_dlopen_libs=
10517    ;;
10518
10519  darwin*)
10520  # if libdl is installed we need to link against it
10521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10522$as_echo_n "checking for dlopen in -ldl... " >&6; }
10523if ${ac_cv_lib_dl_dlopen+:} false; then :
10524  $as_echo_n "(cached) " >&6
10525else
10526  ac_check_lib_save_LIBS=$LIBS
10527LIBS="-ldl  $LIBS"
10528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530
10531/* Override any GCC internal prototype to avoid an error.
10532   Use char because int might match the return type of a GCC
10533   builtin and then its argument prototype would still apply.  */
10534#ifdef __cplusplus
10535extern "C"
10536#endif
10537char dlopen ();
10538int
10539main ()
10540{
10541return dlopen ();
10542  ;
10543  return 0;
10544}
10545_ACEOF
10546if ac_fn_c_try_link "$LINENO"; then :
10547  ac_cv_lib_dl_dlopen=yes
10548else
10549  ac_cv_lib_dl_dlopen=no
10550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552    conftest$ac_exeext conftest.$ac_ext
10553LIBS=$ac_check_lib_save_LIBS
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10556$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10557if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10558  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10559else
10560
10561    lt_cv_dlopen="dyld"
10562    lt_cv_dlopen_libs=
10563    lt_cv_dlopen_self=yes
10564
10565fi
10566
10567    ;;
10568
10569  *)
10570    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10571if test "x$ac_cv_func_shl_load" = xyes; then :
10572  lt_cv_dlopen="shl_load"
10573else
10574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10575$as_echo_n "checking for shl_load in -ldld... " >&6; }
10576if ${ac_cv_lib_dld_shl_load+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  ac_check_lib_save_LIBS=$LIBS
10580LIBS="-ldld  $LIBS"
10581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582/* end confdefs.h.  */
10583
10584/* Override any GCC internal prototype to avoid an error.
10585   Use char because int might match the return type of a GCC
10586   builtin and then its argument prototype would still apply.  */
10587#ifdef __cplusplus
10588extern "C"
10589#endif
10590char shl_load ();
10591int
10592main ()
10593{
10594return shl_load ();
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599if ac_fn_c_try_link "$LINENO"; then :
10600  ac_cv_lib_dld_shl_load=yes
10601else
10602  ac_cv_lib_dld_shl_load=no
10603fi
10604rm -f core conftest.err conftest.$ac_objext \
10605    conftest$ac_exeext conftest.$ac_ext
10606LIBS=$ac_check_lib_save_LIBS
10607fi
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10609$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10610if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10611  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10612else
10613  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10614if test "x$ac_cv_func_dlopen" = xyes; then :
10615  lt_cv_dlopen="dlopen"
10616else
10617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10618$as_echo_n "checking for dlopen in -ldl... " >&6; }
10619if ${ac_cv_lib_dl_dlopen+:} false; then :
10620  $as_echo_n "(cached) " >&6
10621else
10622  ac_check_lib_save_LIBS=$LIBS
10623LIBS="-ldl  $LIBS"
10624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626
10627/* Override any GCC internal prototype to avoid an error.
10628   Use char because int might match the return type of a GCC
10629   builtin and then its argument prototype would still apply.  */
10630#ifdef __cplusplus
10631extern "C"
10632#endif
10633char dlopen ();
10634int
10635main ()
10636{
10637return dlopen ();
10638  ;
10639  return 0;
10640}
10641_ACEOF
10642if ac_fn_c_try_link "$LINENO"; then :
10643  ac_cv_lib_dl_dlopen=yes
10644else
10645  ac_cv_lib_dl_dlopen=no
10646fi
10647rm -f core conftest.err conftest.$ac_objext \
10648    conftest$ac_exeext conftest.$ac_ext
10649LIBS=$ac_check_lib_save_LIBS
10650fi
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10654  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10655else
10656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10657$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10658if ${ac_cv_lib_svld_dlopen+:} false; then :
10659  $as_echo_n "(cached) " >&6
10660else
10661  ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lsvld  $LIBS"
10663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664/* end confdefs.h.  */
10665
10666/* Override any GCC internal prototype to avoid an error.
10667   Use char because int might match the return type of a GCC
10668   builtin and then its argument prototype would still apply.  */
10669#ifdef __cplusplus
10670extern "C"
10671#endif
10672char dlopen ();
10673int
10674main ()
10675{
10676return dlopen ();
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_link "$LINENO"; then :
10682  ac_cv_lib_svld_dlopen=yes
10683else
10684  ac_cv_lib_svld_dlopen=no
10685fi
10686rm -f core conftest.err conftest.$ac_objext \
10687    conftest$ac_exeext conftest.$ac_ext
10688LIBS=$ac_check_lib_save_LIBS
10689fi
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10691$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10692if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10693  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10694else
10695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10696$as_echo_n "checking for dld_link in -ldld... " >&6; }
10697if ${ac_cv_lib_dld_dld_link+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  ac_check_lib_save_LIBS=$LIBS
10701LIBS="-ldld  $LIBS"
10702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703/* end confdefs.h.  */
10704
10705/* Override any GCC internal prototype to avoid an error.
10706   Use char because int might match the return type of a GCC
10707   builtin and then its argument prototype would still apply.  */
10708#ifdef __cplusplus
10709extern "C"
10710#endif
10711char dld_link ();
10712int
10713main ()
10714{
10715return dld_link ();
10716  ;
10717  return 0;
10718}
10719_ACEOF
10720if ac_fn_c_try_link "$LINENO"; then :
10721  ac_cv_lib_dld_dld_link=yes
10722else
10723  ac_cv_lib_dld_dld_link=no
10724fi
10725rm -f core conftest.err conftest.$ac_objext \
10726    conftest$ac_exeext conftest.$ac_ext
10727LIBS=$ac_check_lib_save_LIBS
10728fi
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10730$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10731if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10732  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10733fi
10734
10735
10736fi
10737
10738
10739fi
10740
10741
10742fi
10743
10744
10745fi
10746
10747
10748fi
10749
10750    ;;
10751  esac
10752
10753  if test "x$lt_cv_dlopen" != xno; then
10754    enable_dlopen=yes
10755  else
10756    enable_dlopen=no
10757  fi
10758
10759  case $lt_cv_dlopen in
10760  dlopen)
10761    save_CPPFLAGS="$CPPFLAGS"
10762    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10763
10764    save_LDFLAGS="$LDFLAGS"
10765    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10766
10767    save_LIBS="$LIBS"
10768    LIBS="$lt_cv_dlopen_libs $LIBS"
10769
10770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10771$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10772if ${lt_cv_dlopen_self+:} false; then :
10773  $as_echo_n "(cached) " >&6
10774else
10775  	  if test "$cross_compiling" = yes; then :
10776  lt_cv_dlopen_self=cross
10777else
10778  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10779  lt_status=$lt_dlunknown
10780  cat > conftest.$ac_ext <<_LT_EOF
10781#line $LINENO "configure"
10782#include "confdefs.h"
10783
10784#if HAVE_DLFCN_H
10785#include <dlfcn.h>
10786#endif
10787
10788#include <stdio.h>
10789
10790#ifdef RTLD_GLOBAL
10791#  define LT_DLGLOBAL		RTLD_GLOBAL
10792#else
10793#  ifdef DL_GLOBAL
10794#    define LT_DLGLOBAL		DL_GLOBAL
10795#  else
10796#    define LT_DLGLOBAL		0
10797#  endif
10798#endif
10799
10800/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10801   find out it does not work in some platform. */
10802#ifndef LT_DLLAZY_OR_NOW
10803#  ifdef RTLD_LAZY
10804#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10805#  else
10806#    ifdef DL_LAZY
10807#      define LT_DLLAZY_OR_NOW		DL_LAZY
10808#    else
10809#      ifdef RTLD_NOW
10810#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10811#      else
10812#        ifdef DL_NOW
10813#          define LT_DLLAZY_OR_NOW	DL_NOW
10814#        else
10815#          define LT_DLLAZY_OR_NOW	0
10816#        endif
10817#      endif
10818#    endif
10819#  endif
10820#endif
10821
10822/* When -fvisbility=hidden is used, assume the code has been annotated
10823   correspondingly for the symbols needed.  */
10824#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10825int fnord () __attribute__((visibility("default")));
10826#endif
10827
10828int fnord () { return 42; }
10829int main ()
10830{
10831  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10832  int status = $lt_dlunknown;
10833
10834  if (self)
10835    {
10836      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10837      else
10838        {
10839	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10840          else puts (dlerror ());
10841	}
10842      /* dlclose (self); */
10843    }
10844  else
10845    puts (dlerror ());
10846
10847  return status;
10848}
10849_LT_EOF
10850  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10851  (eval $ac_link) 2>&5
10852  ac_status=$?
10853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10855    (./conftest; exit; ) >&5 2>/dev/null
10856    lt_status=$?
10857    case x$lt_status in
10858      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10859      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10860      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10861    esac
10862  else :
10863    # compilation failed
10864    lt_cv_dlopen_self=no
10865  fi
10866fi
10867rm -fr conftest*
10868
10869
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10872$as_echo "$lt_cv_dlopen_self" >&6; }
10873
10874    if test "x$lt_cv_dlopen_self" = xyes; then
10875      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10876      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10877$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10878if ${lt_cv_dlopen_self_static+:} false; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  	  if test "$cross_compiling" = yes; then :
10882  lt_cv_dlopen_self_static=cross
10883else
10884  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10885  lt_status=$lt_dlunknown
10886  cat > conftest.$ac_ext <<_LT_EOF
10887#line $LINENO "configure"
10888#include "confdefs.h"
10889
10890#if HAVE_DLFCN_H
10891#include <dlfcn.h>
10892#endif
10893
10894#include <stdio.h>
10895
10896#ifdef RTLD_GLOBAL
10897#  define LT_DLGLOBAL		RTLD_GLOBAL
10898#else
10899#  ifdef DL_GLOBAL
10900#    define LT_DLGLOBAL		DL_GLOBAL
10901#  else
10902#    define LT_DLGLOBAL		0
10903#  endif
10904#endif
10905
10906/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10907   find out it does not work in some platform. */
10908#ifndef LT_DLLAZY_OR_NOW
10909#  ifdef RTLD_LAZY
10910#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10911#  else
10912#    ifdef DL_LAZY
10913#      define LT_DLLAZY_OR_NOW		DL_LAZY
10914#    else
10915#      ifdef RTLD_NOW
10916#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10917#      else
10918#        ifdef DL_NOW
10919#          define LT_DLLAZY_OR_NOW	DL_NOW
10920#        else
10921#          define LT_DLLAZY_OR_NOW	0
10922#        endif
10923#      endif
10924#    endif
10925#  endif
10926#endif
10927
10928/* When -fvisbility=hidden is used, assume the code has been annotated
10929   correspondingly for the symbols needed.  */
10930#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10931int fnord () __attribute__((visibility("default")));
10932#endif
10933
10934int fnord () { return 42; }
10935int main ()
10936{
10937  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938  int status = $lt_dlunknown;
10939
10940  if (self)
10941    {
10942      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10943      else
10944        {
10945	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10946          else puts (dlerror ());
10947	}
10948      /* dlclose (self); */
10949    }
10950  else
10951    puts (dlerror ());
10952
10953  return status;
10954}
10955_LT_EOF
10956  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10957  (eval $ac_link) 2>&5
10958  ac_status=$?
10959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10961    (./conftest; exit; ) >&5 2>/dev/null
10962    lt_status=$?
10963    case x$lt_status in
10964      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10965      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10966      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10967    esac
10968  else :
10969    # compilation failed
10970    lt_cv_dlopen_self_static=no
10971  fi
10972fi
10973rm -fr conftest*
10974
10975
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10978$as_echo "$lt_cv_dlopen_self_static" >&6; }
10979    fi
10980
10981    CPPFLAGS="$save_CPPFLAGS"
10982    LDFLAGS="$save_LDFLAGS"
10983    LIBS="$save_LIBS"
10984    ;;
10985  esac
10986
10987  case $lt_cv_dlopen_self in
10988  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10989  *) enable_dlopen_self=unknown ;;
10990  esac
10991
10992  case $lt_cv_dlopen_self_static in
10993  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10994  *) enable_dlopen_self_static=unknown ;;
10995  esac
10996fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014striplib=
11015old_striplib=
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11017$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11018if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11019  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11020  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022$as_echo "yes" >&6; }
11023else
11024# FIXME - insert some real tests, host_os isn't really good enough
11025  case $host_os in
11026  darwin*)
11027    if test -n "$STRIP" ; then
11028      striplib="$STRIP -x"
11029      old_striplib="$STRIP -S"
11030      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031$as_echo "yes" >&6; }
11032    else
11033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034$as_echo "no" >&6; }
11035    fi
11036    ;;
11037  *)
11038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040    ;;
11041  esac
11042fi
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055  # Report which library types will actually be built
11056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11057$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11059$as_echo "$can_build_shared" >&6; }
11060
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11062$as_echo_n "checking whether to build shared libraries... " >&6; }
11063  test "$can_build_shared" = "no" && enable_shared=no
11064
11065  # On AIX, shared libraries and static libraries use the same namespace, and
11066  # are all built from PIC.
11067  case $host_os in
11068  aix3*)
11069    test "$enable_shared" = yes && enable_static=no
11070    if test -n "$RANLIB"; then
11071      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11072      postinstall_cmds='$RANLIB $lib'
11073    fi
11074    ;;
11075
11076  aix[4-9]*)
11077    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11078      test "$enable_shared" = yes && enable_static=no
11079    fi
11080    ;;
11081  esac
11082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11083$as_echo "$enable_shared" >&6; }
11084
11085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11086$as_echo_n "checking whether to build static libraries... " >&6; }
11087  # Make sure either enable_shared or enable_static is yes.
11088  test "$enable_shared" = yes || enable_static=yes
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11090$as_echo "$enable_static" >&6; }
11091
11092
11093
11094
11095fi
11096ac_ext=c
11097ac_cpp='$CPP $CPPFLAGS'
11098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100ac_compiler_gnu=$ac_cv_c_compiler_gnu
11101
11102CC="$lt_save_CC"
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118        ac_config_commands="$ac_config_commands libtool"
11119
11120
11121
11122
11123# Only expand once:
11124
11125
11126
11127
11128OURCPPFLAGS=''
11129CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11130CFLAGS="$CFLAGS"
11131
11132# Checks for programs.
11133ac_ext=c
11134ac_cpp='$CPP $CPPFLAGS'
11135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138if test -n "$ac_tool_prefix"; then
11139  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11140set dummy ${ac_tool_prefix}gcc; ac_word=$2
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142$as_echo_n "checking for $ac_word... " >&6; }
11143if ${ac_cv_prog_CC+:} false; then :
11144  $as_echo_n "(cached) " >&6
11145else
11146  if test -n "$CC"; then
11147  ac_cv_prog_CC="$CC" # Let the user override the test.
11148else
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152  IFS=$as_save_IFS
11153  test -z "$as_dir" && as_dir=.
11154    for ac_exec_ext in '' $ac_executable_extensions; do
11155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11156    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158    break 2
11159  fi
11160done
11161  done
11162IFS=$as_save_IFS
11163
11164fi
11165fi
11166CC=$ac_cv_prog_CC
11167if test -n "$CC"; then
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11169$as_echo "$CC" >&6; }
11170else
11171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173fi
11174
11175
11176fi
11177if test -z "$ac_cv_prog_CC"; then
11178  ac_ct_CC=$CC
11179  # Extract the first word of "gcc", so it can be a program name with args.
11180set dummy gcc; ac_word=$2
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
11183if ${ac_cv_prog_ac_ct_CC+:} false; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  if test -n "$ac_ct_CC"; then
11187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192  IFS=$as_save_IFS
11193  test -z "$as_dir" && as_dir=.
11194    for ac_exec_ext in '' $ac_executable_extensions; do
11195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196    ac_cv_prog_ac_ct_CC="gcc"
11197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198    break 2
11199  fi
11200done
11201  done
11202IFS=$as_save_IFS
11203
11204fi
11205fi
11206ac_ct_CC=$ac_cv_prog_ac_ct_CC
11207if test -n "$ac_ct_CC"; then
11208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11209$as_echo "$ac_ct_CC" >&6; }
11210else
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213fi
11214
11215  if test "x$ac_ct_CC" = x; then
11216    CC=""
11217  else
11218    case $cross_compiling:$ac_tool_warned in
11219yes:)
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11222ac_tool_warned=yes ;;
11223esac
11224    CC=$ac_ct_CC
11225  fi
11226else
11227  CC="$ac_cv_prog_CC"
11228fi
11229
11230if test -z "$CC"; then
11231          if test -n "$ac_tool_prefix"; then
11232    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11233set dummy ${ac_tool_prefix}cc; ac_word=$2
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if ${ac_cv_prog_CC+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  if test -n "$CC"; then
11240  ac_cv_prog_CC="$CC" # Let the user override the test.
11241else
11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245  IFS=$as_save_IFS
11246  test -z "$as_dir" && as_dir=.
11247    for ac_exec_ext in '' $ac_executable_extensions; do
11248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249    ac_cv_prog_CC="${ac_tool_prefix}cc"
11250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251    break 2
11252  fi
11253done
11254  done
11255IFS=$as_save_IFS
11256
11257fi
11258fi
11259CC=$ac_cv_prog_CC
11260if test -n "$CC"; then
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11262$as_echo "$CC" >&6; }
11263else
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266fi
11267
11268
11269  fi
11270fi
11271if test -z "$CC"; then
11272  # Extract the first word of "cc", so it can be a program name with args.
11273set dummy cc; ac_word=$2
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if ${ac_cv_prog_CC+:} false; then :
11277  $as_echo_n "(cached) " >&6
11278else
11279  if test -n "$CC"; then
11280  ac_cv_prog_CC="$CC" # Let the user override the test.
11281else
11282  ac_prog_rejected=no
11283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286  IFS=$as_save_IFS
11287  test -z "$as_dir" && as_dir=.
11288    for ac_exec_ext in '' $ac_executable_extensions; do
11289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11291       ac_prog_rejected=yes
11292       continue
11293     fi
11294    ac_cv_prog_CC="cc"
11295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296    break 2
11297  fi
11298done
11299  done
11300IFS=$as_save_IFS
11301
11302if test $ac_prog_rejected = yes; then
11303  # We found a bogon in the path, so make sure we never use it.
11304  set dummy $ac_cv_prog_CC
11305  shift
11306  if test $# != 0; then
11307    # We chose a different compiler from the bogus one.
11308    # However, it has the same basename, so the bogon will be chosen
11309    # first if we set CC to just the basename; use the full file name.
11310    shift
11311    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11312  fi
11313fi
11314fi
11315fi
11316CC=$ac_cv_prog_CC
11317if test -n "$CC"; then
11318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11319$as_echo "$CC" >&6; }
11320else
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
11323fi
11324
11325
11326fi
11327if test -z "$CC"; then
11328  if test -n "$ac_tool_prefix"; then
11329  for ac_prog in cl.exe
11330  do
11331    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334$as_echo_n "checking for $ac_word... " >&6; }
11335if ${ac_cv_prog_CC+:} false; then :
11336  $as_echo_n "(cached) " >&6
11337else
11338  if test -n "$CC"; then
11339  ac_cv_prog_CC="$CC" # Let the user override the test.
11340else
11341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $PATH
11343do
11344  IFS=$as_save_IFS
11345  test -z "$as_dir" && as_dir=.
11346    for ac_exec_ext in '' $ac_executable_extensions; do
11347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350    break 2
11351  fi
11352done
11353  done
11354IFS=$as_save_IFS
11355
11356fi
11357fi
11358CC=$ac_cv_prog_CC
11359if test -n "$CC"; then
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11361$as_echo "$CC" >&6; }
11362else
11363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
11365fi
11366
11367
11368    test -n "$CC" && break
11369  done
11370fi
11371if test -z "$CC"; then
11372  ac_ct_CC=$CC
11373  for ac_prog in cl.exe
11374do
11375  # Extract the first word of "$ac_prog", so it can be a program name with args.
11376set dummy $ac_prog; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if ${ac_cv_prog_ac_ct_CC+:} false; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  if test -n "$ac_ct_CC"; then
11383  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388  IFS=$as_save_IFS
11389  test -z "$as_dir" && as_dir=.
11390    for ac_exec_ext in '' $ac_executable_extensions; do
11391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392    ac_cv_prog_ac_ct_CC="$ac_prog"
11393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394    break 2
11395  fi
11396done
11397  done
11398IFS=$as_save_IFS
11399
11400fi
11401fi
11402ac_ct_CC=$ac_cv_prog_ac_ct_CC
11403if test -n "$ac_ct_CC"; then
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11405$as_echo "$ac_ct_CC" >&6; }
11406else
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
11409fi
11410
11411
11412  test -n "$ac_ct_CC" && break
11413done
11414
11415  if test "x$ac_ct_CC" = x; then
11416    CC=""
11417  else
11418    case $cross_compiling:$ac_tool_warned in
11419yes:)
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11422ac_tool_warned=yes ;;
11423esac
11424    CC=$ac_ct_CC
11425  fi
11426fi
11427
11428fi
11429
11430
11431test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11433as_fn_error $? "no acceptable C compiler found in \$PATH
11434See \`config.log' for more details" "$LINENO" 5; }
11435
11436# Provide some information about the compiler.
11437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11438set X $ac_compile
11439ac_compiler=$2
11440for ac_option in --version -v -V -qversion; do
11441  { { ac_try="$ac_compiler $ac_option >&5"
11442case "(($ac_try" in
11443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444  *) ac_try_echo=$ac_try;;
11445esac
11446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11447$as_echo "$ac_try_echo"; } >&5
11448  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11449  ac_status=$?
11450  if test -s conftest.err; then
11451    sed '10a\
11452... rest of stderr output deleted ...
11453         10q' conftest.err >conftest.er1
11454    cat conftest.er1 >&5
11455  fi
11456  rm -f conftest.er1 conftest.err
11457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11458  test $ac_status = 0; }
11459done
11460
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11462$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11463if ${ac_cv_c_compiler_gnu+:} false; then :
11464  $as_echo_n "(cached) " >&6
11465else
11466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467/* end confdefs.h.  */
11468
11469int
11470main ()
11471{
11472#ifndef __GNUC__
11473       choke me
11474#endif
11475
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_compile "$LINENO"; then :
11481  ac_compiler_gnu=yes
11482else
11483  ac_compiler_gnu=no
11484fi
11485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486ac_cv_c_compiler_gnu=$ac_compiler_gnu
11487
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11490$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11491if test $ac_compiler_gnu = yes; then
11492  GCC=yes
11493else
11494  GCC=
11495fi
11496ac_test_CFLAGS=${CFLAGS+set}
11497ac_save_CFLAGS=$CFLAGS
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11499$as_echo_n "checking whether $CC accepts -g... " >&6; }
11500if ${ac_cv_prog_cc_g+:} false; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503  ac_save_c_werror_flag=$ac_c_werror_flag
11504   ac_c_werror_flag=yes
11505   ac_cv_prog_cc_g=no
11506   CFLAGS="-g"
11507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509
11510int
11511main ()
11512{
11513
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518if ac_fn_c_try_compile "$LINENO"; then :
11519  ac_cv_prog_cc_g=yes
11520else
11521  CFLAGS=""
11522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h.  */
11524
11525int
11526main ()
11527{
11528
11529  ;
11530  return 0;
11531}
11532_ACEOF
11533if ac_fn_c_try_compile "$LINENO"; then :
11534
11535else
11536  ac_c_werror_flag=$ac_save_c_werror_flag
11537	 CFLAGS="-g"
11538	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539/* end confdefs.h.  */
11540
11541int
11542main ()
11543{
11544
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549if ac_fn_c_try_compile "$LINENO"; then :
11550  ac_cv_prog_cc_g=yes
11551fi
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553fi
11554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555fi
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557   ac_c_werror_flag=$ac_save_c_werror_flag
11558fi
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11560$as_echo "$ac_cv_prog_cc_g" >&6; }
11561if test "$ac_test_CFLAGS" = set; then
11562  CFLAGS=$ac_save_CFLAGS
11563elif test $ac_cv_prog_cc_g = yes; then
11564  if test "$GCC" = yes; then
11565    CFLAGS="-g -O2"
11566  else
11567    CFLAGS="-g"
11568  fi
11569else
11570  if test "$GCC" = yes; then
11571    CFLAGS="-O2"
11572  else
11573    CFLAGS=
11574  fi
11575fi
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11578if ${ac_cv_prog_cc_c89+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  ac_cv_prog_cc_c89=no
11582ac_save_CC=$CC
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585#include <stdarg.h>
11586#include <stdio.h>
11587#include <sys/types.h>
11588#include <sys/stat.h>
11589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11590struct buf { int x; };
11591FILE * (*rcsopen) (struct buf *, struct stat *, int);
11592static char *e (p, i)
11593     char **p;
11594     int i;
11595{
11596  return p[i];
11597}
11598static char *f (char * (*g) (char **, int), char **p, ...)
11599{
11600  char *s;
11601  va_list v;
11602  va_start (v,p);
11603  s = g (p, va_arg (v,int));
11604  va_end (v);
11605  return s;
11606}
11607
11608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11609   function prototypes and stuff, but not '\xHH' hex character constants.
11610   These don't provoke an error unfortunately, instead are silently treated
11611   as 'x'.  The following induces an error, until -std is added to get
11612   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11613   array size at least.  It's necessary to write '\x00'==0 to get something
11614   that's true only with -std.  */
11615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11616
11617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11618   inside strings and character constants.  */
11619#define FOO(x) 'x'
11620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11621
11622int test (int i, double x);
11623struct s1 {int (*f) (int a);};
11624struct s2 {int (*f) (double a);};
11625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11626int argc;
11627char **argv;
11628int
11629main ()
11630{
11631return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11632  ;
11633  return 0;
11634}
11635_ACEOF
11636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11637	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11638do
11639  CC="$ac_save_CC $ac_arg"
11640  if ac_fn_c_try_compile "$LINENO"; then :
11641  ac_cv_prog_cc_c89=$ac_arg
11642fi
11643rm -f core conftest.err conftest.$ac_objext
11644  test "x$ac_cv_prog_cc_c89" != "xno" && break
11645done
11646rm -f conftest.$ac_ext
11647CC=$ac_save_CC
11648
11649fi
11650# AC_CACHE_VAL
11651case "x$ac_cv_prog_cc_c89" in
11652  x)
11653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11654$as_echo "none needed" >&6; } ;;
11655  xno)
11656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11657$as_echo "unsupported" >&6; } ;;
11658  *)
11659    CC="$CC $ac_cv_prog_cc_c89"
11660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11662esac
11663if test "x$ac_cv_prog_cc_c89" != xno; then :
11664
11665fi
11666
11667ac_ext=c
11668ac_cpp='$CPP $CPPFLAGS'
11669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671ac_compiler_gnu=$ac_cv_c_compiler_gnu
11672
11673
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
11675$as_echo_n "checking $CC dependency flag... " >&6; }
11676echo 'void f(){}' >conftest.c
11677if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11678	DEPFLAG="-MM"
11679else
11680  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11681	DEPFLAG="-xM1"
11682  else
11683	DEPFLAG="-MM"  # dunno do something
11684  fi
11685fi
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
11687$as_echo "$DEPFLAG" >&6; }
11688rm -f conftest.c
11689
11690
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11692$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11693set x ${MAKE-make}
11694ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11695if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  cat >conftest.make <<\_ACEOF
11699SHELL = /bin/sh
11700all:
11701	@echo '@@@%%%=$(MAKE)=@@@%%%'
11702_ACEOF
11703# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11704case `${MAKE-make} -f conftest.make 2>/dev/null` in
11705  *@@@%%%=?*=@@@%%%*)
11706    eval ac_cv_prog_make_${ac_make}_set=yes;;
11707  *)
11708    eval ac_cv_prog_make_${ac_make}_set=no;;
11709esac
11710rm -f conftest.make
11711fi
11712if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714$as_echo "yes" >&6; }
11715  SET_MAKE=
11716else
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719  SET_MAKE="MAKE=${MAKE-make}"
11720fi
11721
11722
11723# Extra (sp)lint flags for NetBSD
11724
11725case "$host_os" in
11726	netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
11727		 ;;
11728	*)       LINTFLAGS="$LINTFLAGS"
11729		 ;;
11730esac
11731
11732
11733
11734$as_echo "#define WINVER 0x0502" >>confdefs.h
11735
11736
11737
11738
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
11740$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
11741cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
11742if eval \${cv_prog_cc_flag_$cache+:} false; then :
11743  $as_echo_n "(cached) " >&6
11744else
11745
11746echo 'void f(void){}' >conftest.c
11747if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
11748eval "cv_prog_cc_flag_$cache=yes"
11749else
11750eval "cv_prog_cc_flag_$cache=no"
11751fi
11752rm -f conftest conftest.o conftest.c
11753
11754fi
11755
11756if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758$as_echo "yes" >&6; }
11759:
11760C99FLAG="-std=c99"
11761else
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764:
11765
11766fi
11767
11768
11769
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
11771$as_echo_n "checking whether $CC supports -xc99... " >&6; }
11772cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
11773if eval \${cv_prog_cc_flag_$cache+:} false; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776
11777echo 'void f(void){}' >conftest.c
11778if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
11779eval "cv_prog_cc_flag_$cache=yes"
11780else
11781eval "cv_prog_cc_flag_$cache=no"
11782fi
11783rm -f conftest conftest.o conftest.c
11784
11785fi
11786
11787if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789$as_echo "yes" >&6; }
11790:
11791C99FLAG="-xc99"
11792else
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
11795:
11796
11797fi
11798
11799
11800# routine to copy files
11801# argument 1 is a list of files (relative to the source dir)
11802# argument 2 is a destination directory (relative to the current
11803# working directory
11804
11805
11806# copy all .h files in the dir at argument 1
11807# (relative to source) to the dir at argument 2
11808# (relative to current dir)
11809
11810
11811# Checks for typedefs, structures, and compiler characteristics.
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11813$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11814if ${ac_cv_c_const+:} false; then :
11815  $as_echo_n "(cached) " >&6
11816else
11817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h.  */
11819
11820int
11821main ()
11822{
11823/* FIXME: Include the comments suggested by Paul. */
11824#ifndef __cplusplus
11825  /* Ultrix mips cc rejects this.  */
11826  typedef int charset[2];
11827  const charset cs;
11828  /* SunOS 4.1.1 cc rejects this.  */
11829  char const *const *pcpcc;
11830  char **ppc;
11831  /* NEC SVR4.0.2 mips cc rejects this.  */
11832  struct point {int x, y;};
11833  static struct point const zero = {0,0};
11834  /* AIX XL C 1.02.0.0 rejects this.
11835     It does not let you subtract one const X* pointer from another in
11836     an arm of an if-expression whose if-part is not a constant
11837     expression */
11838  const char *g = "string";
11839  pcpcc = &g + (g ? g-g : 0);
11840  /* HPUX 7.0 cc rejects these. */
11841  ++pcpcc;
11842  ppc = (char**) pcpcc;
11843  pcpcc = (char const *const *) ppc;
11844  { /* SCO 3.2v4 cc rejects this.  */
11845    char *t;
11846    char const *s = 0 ? (char *) 0 : (char const *) 0;
11847
11848    *t++ = 0;
11849    if (s) return 0;
11850  }
11851  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11852    int x[] = {25, 17};
11853    const int *foo = &x[0];
11854    ++foo;
11855  }
11856  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11857    typedef const int *iptr;
11858    iptr p = 0;
11859    ++p;
11860  }
11861  { /* AIX XL C 1.02.0.0 rejects this saying
11862       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11863    struct s { int j; const int *ap[3]; };
11864    struct s *b; b->j = 5;
11865  }
11866  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11867    const int foo = 10;
11868    if (!foo) return 0;
11869  }
11870  return !cs[0] && !zero.x;
11871#endif
11872
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_c_try_compile "$LINENO"; then :
11878  ac_cv_c_const=yes
11879else
11880  ac_cv_c_const=no
11881fi
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883fi
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11885$as_echo "$ac_cv_c_const" >&6; }
11886if test $ac_cv_c_const = no; then
11887
11888$as_echo "#define const /**/" >>confdefs.h
11889
11890fi
11891
11892ac_ext=c
11893ac_cpp='$CPP $CPPFLAGS'
11894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897
11898if test "x$CFLAGS" = "x" ; then
11899
11900
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
11902$as_echo_n "checking whether $CC supports -g... " >&6; }
11903cache=`echo g | sed 'y%.=/+-%___p_%'`
11904if eval \${cv_prog_cc_flag_$cache+:} false; then :
11905  $as_echo_n "(cached) " >&6
11906else
11907
11908echo 'void f(void){}' >conftest.c
11909if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
11910eval "cv_prog_cc_flag_$cache=yes"
11911else
11912eval "cv_prog_cc_flag_$cache=no"
11913fi
11914rm -f conftest conftest.o conftest.c
11915
11916fi
11917
11918if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920$as_echo "yes" >&6; }
11921:
11922CFLAGS="-g"
11923else
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
11926:
11927
11928fi
11929
11930
11931
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
11933$as_echo_n "checking whether $CC supports -O2... " >&6; }
11934cache=`echo O2 | sed 'y%.=/+-%___p_%'`
11935if eval \${cv_prog_cc_flag_$cache+:} false; then :
11936  $as_echo_n "(cached) " >&6
11937else
11938
11939echo 'void f(void){}' >conftest.c
11940if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
11941eval "cv_prog_cc_flag_$cache=yes"
11942else
11943eval "cv_prog_cc_flag_$cache=no"
11944fi
11945rm -f conftest conftest.o conftest.c
11946
11947fi
11948
11949if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951$as_echo "yes" >&6; }
11952:
11953CFLAGS="-O2 $CFLAGS"
11954else
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956$as_echo "no" >&6; }
11957:
11958
11959fi
11960
11961fi
11962
11963
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11965$as_echo_n "checking whether $CC supports -Wall... " >&6; }
11966cache=`echo Wall | sed 'y%.=/+-%___p_%'`
11967if eval \${cv_prog_cc_flag_$cache+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970
11971echo 'void f(void){}' >conftest.c
11972if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
11973eval "cv_prog_cc_flag_$cache=yes"
11974else
11975eval "cv_prog_cc_flag_$cache=no"
11976fi
11977rm -f conftest conftest.o conftest.c
11978
11979fi
11980
11981if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
11984:
11985CFLAGS="-Wall $CFLAGS"
11986else
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
11989:
11990
11991fi
11992
11993
11994
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
11996$as_echo_n "checking whether $CC supports -W... " >&6; }
11997cache=`echo W | sed 'y%.=/+-%___p_%'`
11998if eval \${cv_prog_cc_flag_$cache+:} false; then :
11999  $as_echo_n "(cached) " >&6
12000else
12001
12002echo 'void f(void){}' >conftest.c
12003if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12004eval "cv_prog_cc_flag_$cache=yes"
12005else
12006eval "cv_prog_cc_flag_$cache=no"
12007fi
12008rm -f conftest conftest.o conftest.c
12009
12010fi
12011
12012if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014$as_echo "yes" >&6; }
12015:
12016CFLAGS="-W $CFLAGS"
12017else
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020:
12021
12022fi
12023
12024
12025
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12027$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12028cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12029if eval \${cv_prog_cc_flag_$cache+:} false; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032
12033echo 'void f(void){}' >conftest.c
12034if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12035eval "cv_prog_cc_flag_$cache=yes"
12036else
12037eval "cv_prog_cc_flag_$cache=no"
12038fi
12039rm -f conftest conftest.o conftest.c
12040
12041fi
12042
12043if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045$as_echo "yes" >&6; }
12046:
12047CFLAGS="-Wwrite-strings $CFLAGS"
12048else
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051:
12052
12053fi
12054
12055
12056
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12058$as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12059cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12060if eval \${cv_prog_cc_flag_$cache+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063
12064echo 'void f(void){}' >conftest.c
12065if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12066eval "cv_prog_cc_flag_$cache=yes"
12067else
12068eval "cv_prog_cc_flag_$cache=no"
12069fi
12070rm -f conftest conftest.o conftest.c
12071
12072fi
12073
12074if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076$as_echo "yes" >&6; }
12077:
12078CFLAGS="-Wstrict-prototypes $CFLAGS"
12079else
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082:
12083
12084fi
12085
12086
12087
12088for ac_header in getopt.h time.h
12089do :
12090  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12091ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12092"
12093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12094  cat >>confdefs.h <<_ACEOF
12095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12096_ACEOF
12097
12098fi
12099
12100done
12101
12102
12103# MinGW32 tests
12104for ac_header in winsock2.h ws2tcpip.h
12105do :
12106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12107ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12108"
12109if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12110  cat >>confdefs.h <<_ACEOF
12111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112_ACEOF
12113
12114fi
12115
12116done
12117
12118# end mingw32 tests
12119
12120
12121
12122
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12124$as_echo_n "checking whether $CC supports -Werror... " >&6; }
12125cache=`echo Werror | sed 'y%.=/+-%___p_%'`
12126if eval \${cv_prog_cc_flag_$cache+:} false; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129
12130echo 'void f(void){}' >conftest.c
12131if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12132eval "cv_prog_cc_flag_$cache=yes"
12133else
12134eval "cv_prog_cc_flag_$cache=no"
12135fi
12136rm -f conftest conftest.o conftest.c
12137
12138fi
12139
12140if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142$as_echo "yes" >&6; }
12143:
12144ERRFLAG="-Werror"
12145else
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148:
12149ERRFLAG="-errwarn"
12150fi
12151
12152
12153
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12155$as_echo_n "checking whether $CC supports -Wall... " >&6; }
12156cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12157if eval \${cv_prog_cc_flag_$cache+:} false; then :
12158  $as_echo_n "(cached) " >&6
12159else
12160
12161echo 'void f(void){}' >conftest.c
12162if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12163eval "cv_prog_cc_flag_$cache=yes"
12164else
12165eval "cv_prog_cc_flag_$cache=no"
12166fi
12167rm -f conftest conftest.o conftest.c
12168
12169fi
12170
12171if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12173$as_echo "yes" >&6; }
12174:
12175ERRFLAG="$ERRFLAG -Wall"
12176else
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178$as_echo "no" >&6; }
12179:
12180ERRFLAG="$ERRFLAG -errfmt"
12181fi
12182
12183
12184
12185
12186
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12188$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12189cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12190if eval \${cv_prog_cc_flag_$cache+:} false; then :
12191  $as_echo_n "(cached) " >&6
12192else
12193
12194echo 'void f(void){}' >conftest.c
12195if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12196eval "cv_prog_cc_flag_$cache=yes"
12197else
12198eval "cv_prog_cc_flag_$cache=no"
12199fi
12200rm -f conftest conftest.o conftest.c
12201
12202fi
12203
12204if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206$as_echo "yes" >&6; }
12207:
12208C99FLAG="-std=c99"
12209else
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212:
12213
12214fi
12215
12216
12217
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12219$as_echo_n "checking whether $CC supports -xc99... " >&6; }
12220cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12221if eval \${cv_prog_cc_flag_$cache+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224
12225echo 'void f(void){}' >conftest.c
12226if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12227eval "cv_prog_cc_flag_$cache=yes"
12228else
12229eval "cv_prog_cc_flag_$cache=no"
12230fi
12231rm -f conftest conftest.o conftest.c
12232
12233fi
12234
12235if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237$as_echo "yes" >&6; }
12238:
12239C99FLAG="-xc99"
12240else
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
12243:
12244
12245fi
12246
12247
12248for ac_header in getopt.h time.h
12249do :
12250  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12252"
12253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12254  cat >>confdefs.h <<_ACEOF
12255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12256_ACEOF
12257
12258fi
12259
12260done
12261
12262
12263
12264
12265
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
12267$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12268cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
12269if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12270  $as_echo_n "(cached) " >&6
12271else
12272
12273echo '
12274#include "confdefs.h"
12275#include <stdlib.h>
12276#include <ctype.h>
12277#include <sys/time.h>
12278#ifdef HAVE_TIME_H
12279#include <time.h>
12280#endif
12281#include <unistd.h>
12282#include <netdb.h>
12283#ifdef HAVE_GETOPT_H
12284#include <getopt.h>
12285#endif
12286
12287int test() {
12288	int a;
12289	char **opts = NULL;
12290	struct timeval tv;
12291	char *t;
12292	time_t time = 0;
12293	char *buf = NULL;
12294	const char* str = NULL;
12295	struct msghdr msg;
12296	msg.msg_control = 0;
12297	t = ctime_r(&time, buf);
12298	tv.tv_usec = 10;
12299	srandom(32);
12300	a = getopt(2, opts, "a");
12301	a = isascii(32);
12302	str = gai_strerror(0);
12303	if(str && t && tv.tv_usec && msg.msg_control)
12304		a = 0;
12305	return a;
12306}
12307' > conftest.c
12308echo 'void f(){}' >>conftest.c
12309if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12310eval "cv_prog_cc_flag_needed_$cache=no"
12311else
12312
12313if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12314eval "cv_prog_cc_flag_needed_$cache=yes"
12315else
12316eval "cv_prog_cc_flag_needed_$cache=fail"
12317#echo 'Test with flag fails too!'
12318#cat conftest.c
12319#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12320#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12321#exit 1
12322fi
12323
12324fi
12325rm -f conftest conftest.c conftest.o
12326
12327fi
12328
12329if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331$as_echo "yes" >&6; }
12332:
12333CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
12334else
12335if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338#echo 'Test with flag is no!'
12339#cat conftest.c
12340#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12341#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12342#exit 1
12343:
12344
12345else
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12347$as_echo "failed" >&6; }
12348:
12349
12350fi
12351fi
12352
12353
12354
12355
12356
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
12358$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12359cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12360if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12361  $as_echo_n "(cached) " >&6
12362else
12363
12364echo '
12365#include "confdefs.h"
12366#include <stdlib.h>
12367#include <ctype.h>
12368#include <sys/time.h>
12369#ifdef HAVE_TIME_H
12370#include <time.h>
12371#endif
12372#include <unistd.h>
12373#include <netdb.h>
12374#ifdef HAVE_GETOPT_H
12375#include <getopt.h>
12376#endif
12377
12378int test() {
12379	int a;
12380	char **opts = NULL;
12381	struct timeval tv;
12382	char *t;
12383	time_t time = 0;
12384	char *buf = NULL;
12385	const char* str = NULL;
12386	struct msghdr msg;
12387	msg.msg_control = 0;
12388	t = ctime_r(&time, buf);
12389	tv.tv_usec = 10;
12390	srandom(32);
12391	a = getopt(2, opts, "a");
12392	a = isascii(32);
12393	str = gai_strerror(0);
12394	if(str && t && tv.tv_usec && msg.msg_control)
12395		a = 0;
12396	return a;
12397}
12398' > conftest.c
12399echo 'void f(){}' >>conftest.c
12400if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12401eval "cv_prog_cc_flag_needed_$cache=no"
12402else
12403
12404if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12405eval "cv_prog_cc_flag_needed_$cache=yes"
12406else
12407eval "cv_prog_cc_flag_needed_$cache=fail"
12408#echo 'Test with flag fails too!'
12409#cat conftest.c
12410#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12411#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12412#exit 1
12413fi
12414
12415fi
12416rm -f conftest conftest.c conftest.o
12417
12418fi
12419
12420if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422$as_echo "yes" >&6; }
12423:
12424CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
12425else
12426if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428$as_echo "no" >&6; }
12429#echo 'Test with flag is no!'
12430#cat conftest.c
12431#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12432#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12433#exit 1
12434:
12435
12436else
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12438$as_echo "failed" >&6; }
12439:
12440
12441fi
12442fi
12443
12444
12445
12446
12447
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
12449$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
12450cache=`$as_echo "$C99FLAG" | $as_tr_sh`
12451if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12452  $as_echo_n "(cached) " >&6
12453else
12454
12455echo '
12456#include <stdbool.h>
12457#include <ctype.h>
12458int test() {
12459        int a = 0;
12460        return a;
12461}
12462' > conftest.c
12463echo 'void f(){}' >>conftest.c
12464if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12465eval "cv_prog_cc_flag_needed_$cache=no"
12466else
12467
12468if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
12469eval "cv_prog_cc_flag_needed_$cache=yes"
12470else
12471eval "cv_prog_cc_flag_needed_$cache=fail"
12472#echo 'Test with flag fails too!'
12473#cat conftest.c
12474#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12475#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12476#exit 1
12477fi
12478
12479fi
12480rm -f conftest conftest.c conftest.o
12481
12482fi
12483
12484if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486$as_echo "yes" >&6; }
12487:
12488CFLAGS="$CFLAGS $C99FLAG"
12489else
12490if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493#echo 'Test with flag is no!'
12494#cat conftest.c
12495#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12496#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12497#exit 1
12498:
12499
12500else
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12502$as_echo "failed" >&6; }
12503:
12504
12505fi
12506fi
12507
12508
12509
12510
12511
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
12513$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
12514cache=_D_BSD_SOURCE
12515if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518
12519echo '
12520#include <ctype.h>
12521
12522int test() {
12523        int a;
12524        a = isascii(32);
12525        return a;
12526}
12527' > conftest.c
12528echo 'void f(){}' >>conftest.c
12529if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12530eval "cv_prog_cc_flag_needed_$cache=no"
12531else
12532
12533if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12534eval "cv_prog_cc_flag_needed_$cache=yes"
12535else
12536eval "cv_prog_cc_flag_needed_$cache=fail"
12537#echo 'Test with flag fails too!'
12538#cat conftest.c
12539#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12540#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12541#exit 1
12542fi
12543
12544fi
12545rm -f conftest conftest.c conftest.o
12546
12547fi
12548
12549if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12551$as_echo "yes" >&6; }
12552:
12553CFLAGS="$CFLAGS -D_BSD_SOURCE"
12554else
12555if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558#echo 'Test with flag is no!'
12559#cat conftest.c
12560#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12561#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12562#exit 1
12563:
12564
12565else
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12567$as_echo "failed" >&6; }
12568:
12569
12570fi
12571fi
12572
12573
12574
12575
12576
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
12578$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
12579cache=_D_GNU_SOURCE
12580if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12581  $as_echo_n "(cached) " >&6
12582else
12583
12584echo '
12585#include <netinet/in.h>
12586
12587int test() {
12588        struct in6_pktinfo inf;
12589	int a = (int)sizeof(inf);
12590        return a;
12591}
12592' > conftest.c
12593echo 'void f(){}' >>conftest.c
12594if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12595eval "cv_prog_cc_flag_needed_$cache=no"
12596else
12597
12598if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12599eval "cv_prog_cc_flag_needed_$cache=yes"
12600else
12601eval "cv_prog_cc_flag_needed_$cache=fail"
12602#echo 'Test with flag fails too!'
12603#cat conftest.c
12604#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12605#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12606#exit 1
12607fi
12608
12609fi
12610rm -f conftest conftest.c conftest.o
12611
12612fi
12613
12614if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616$as_echo "yes" >&6; }
12617:
12618CFLAGS="$CFLAGS -D_GNU_SOURCE"
12619else
12620if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
12623#echo 'Test with flag is no!'
12624#cat conftest.c
12625#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12626#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12627#exit 1
12628:
12629
12630else
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12632$as_echo "failed" >&6; }
12633:
12634
12635fi
12636fi
12637
12638
12639# check again for GNU_SOURCE for setresgid. May fail if setresgid
12640# is not available at all. -D_FRSRESGID is to make this check unique.
12641# otherwise we would get the previous cached result.
12642
12643
12644
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
12646$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
12647cache=_D_GNU_SOURCE__D_FRSRESGID
12648if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12649  $as_echo_n "(cached) " >&6
12650else
12651
12652echo '
12653#include <unistd.h>
12654
12655int test() {
12656	int a = setresgid(0,0,0);
12657	a = setresuid(0,0,0);
12658        return a;
12659}
12660' > conftest.c
12661echo 'void f(){}' >>conftest.c
12662if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12663eval "cv_prog_cc_flag_needed_$cache=no"
12664else
12665
12666if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
12667eval "cv_prog_cc_flag_needed_$cache=yes"
12668else
12669eval "cv_prog_cc_flag_needed_$cache=fail"
12670#echo 'Test with flag fails too!'
12671#cat conftest.c
12672#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12673#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12674#exit 1
12675fi
12676
12677fi
12678rm -f conftest conftest.c conftest.o
12679
12680fi
12681
12682if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684$as_echo "yes" >&6; }
12685:
12686CFLAGS="$CFLAGS -D_GNU_SOURCE"
12687else
12688if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691#echo 'Test with flag is no!'
12692#cat conftest.c
12693#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12694#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12695#exit 1
12696:
12697
12698else
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12700$as_echo "failed" >&6; }
12701:
12702
12703fi
12704fi
12705
12706
12707
12708
12709
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
12711$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
12712cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
12713if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716
12717echo '
12718#include "confdefs.h"
12719#ifdef HAVE_TIME_H
12720#include <time.h>
12721#endif
12722#include <netdb.h>
12723
12724int test() {
12725        int a = 0;
12726        char *t;
12727        time_t time = 0;
12728        char *buf = NULL;
12729	const char* str = NULL;
12730        t = ctime_r(&time, buf);
12731	str = gai_strerror(0);
12732	if(t && str)
12733		a = 0;
12734        return a;
12735}
12736' > conftest.c
12737echo 'void f(){}' >>conftest.c
12738if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12739eval "cv_prog_cc_flag_needed_$cache=no"
12740else
12741
12742if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
12743eval "cv_prog_cc_flag_needed_$cache=yes"
12744else
12745eval "cv_prog_cc_flag_needed_$cache=fail"
12746#echo 'Test with flag fails too!'
12747#cat conftest.c
12748#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12749#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12750#exit 1
12751fi
12752
12753fi
12754rm -f conftest conftest.c conftest.o
12755
12756fi
12757
12758if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760$as_echo "yes" >&6; }
12761:
12762CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
12763else
12764if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
12767#echo 'Test with flag is no!'
12768#cat conftest.c
12769#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12770#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12771#exit 1
12772:
12773
12774else
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12776$as_echo "failed" >&6; }
12777:
12778
12779fi
12780fi
12781
12782
12783
12784
12785
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
12787$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
12788cache=_D__EXTENSIONS__
12789if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792
12793echo '
12794#include "confdefs.h"
12795#include <stdlib.h>
12796#include <ctype.h>
12797#include <sys/time.h>
12798#ifdef HAVE_TIME_H
12799#include <time.h>
12800#endif
12801#include <unistd.h>
12802#ifdef HAVE_GETOPT_H
12803#include <getopt.h>
12804#endif
12805
12806int test() {
12807        int a;
12808        char **opts = NULL;
12809        struct timeval tv;
12810        tv.tv_usec = 10;
12811        srandom(32);
12812        a = getopt(2, opts, "a");
12813        a = isascii(32);
12814	if(tv.tv_usec)
12815		a = 0;
12816        return a;
12817}
12818' > conftest.c
12819echo 'void f(){}' >>conftest.c
12820if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12821eval "cv_prog_cc_flag_needed_$cache=no"
12822else
12823
12824if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
12825eval "cv_prog_cc_flag_needed_$cache=yes"
12826else
12827eval "cv_prog_cc_flag_needed_$cache=fail"
12828#echo 'Test with flag fails too!'
12829#cat conftest.c
12830#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12831#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12832#exit 1
12833fi
12834
12835fi
12836rm -f conftest conftest.c conftest.o
12837
12838fi
12839
12840if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12842$as_echo "yes" >&6; }
12843:
12844CFLAGS="$CFLAGS -D__EXTENSIONS__"
12845else
12846if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848$as_echo "no" >&6; }
12849#echo 'Test with flag is no!'
12850#cat conftest.c
12851#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12852#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12853#exit 1
12854:
12855
12856else
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12858$as_echo "failed" >&6; }
12859:
12860
12861fi
12862fi
12863
12864
12865
12866
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12868$as_echo_n "checking for inline... " >&6; }
12869if ${ac_cv_c_inline+:} false; then :
12870  $as_echo_n "(cached) " >&6
12871else
12872  ac_cv_c_inline=no
12873for ac_kw in inline __inline__ __inline; do
12874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876#ifndef __cplusplus
12877typedef int foo_t;
12878static $ac_kw foo_t static_foo () {return 0; }
12879$ac_kw foo_t foo () {return 0; }
12880#endif
12881
12882_ACEOF
12883if ac_fn_c_try_compile "$LINENO"; then :
12884  ac_cv_c_inline=$ac_kw
12885fi
12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887  test "$ac_cv_c_inline" != no && break
12888done
12889
12890fi
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12892$as_echo "$ac_cv_c_inline" >&6; }
12893
12894case $ac_cv_c_inline in
12895  inline | yes) ;;
12896  *)
12897    case $ac_cv_c_inline in
12898      no) ac_val=;;
12899      *) ac_val=$ac_cv_c_inline;;
12900    esac
12901    cat >>confdefs.h <<_ACEOF
12902#ifndef __cplusplus
12903#define inline $ac_val
12904#endif
12905_ACEOF
12906    ;;
12907esac
12908
12909ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12910if test "x$ac_cv_type_int8_t" = xyes; then :
12911
12912else
12913
12914cat >>confdefs.h <<_ACEOF
12915#define int8_t char
12916_ACEOF
12917
12918fi
12919
12920ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12921if test "x$ac_cv_type_int16_t" = xyes; then :
12922
12923else
12924
12925cat >>confdefs.h <<_ACEOF
12926#define int16_t short
12927_ACEOF
12928
12929fi
12930
12931ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12932if test "x$ac_cv_type_int32_t" = xyes; then :
12933
12934else
12935
12936cat >>confdefs.h <<_ACEOF
12937#define int32_t int
12938_ACEOF
12939
12940fi
12941
12942ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12943if test "x$ac_cv_type_int64_t" = xyes; then :
12944
12945else
12946
12947cat >>confdefs.h <<_ACEOF
12948#define int64_t long long
12949_ACEOF
12950
12951fi
12952
12953ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12954if test "x$ac_cv_type_uint8_t" = xyes; then :
12955
12956else
12957
12958cat >>confdefs.h <<_ACEOF
12959#define uint8_t unsigned char
12960_ACEOF
12961
12962fi
12963
12964ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12965if test "x$ac_cv_type_uint16_t" = xyes; then :
12966
12967else
12968
12969cat >>confdefs.h <<_ACEOF
12970#define uint16_t unsigned short
12971_ACEOF
12972
12973fi
12974
12975ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12976if test "x$ac_cv_type_uint32_t" = xyes; then :
12977
12978else
12979
12980cat >>confdefs.h <<_ACEOF
12981#define uint32_t unsigned int
12982_ACEOF
12983
12984fi
12985
12986ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12987if test "x$ac_cv_type_uint64_t" = xyes; then :
12988
12989else
12990
12991cat >>confdefs.h <<_ACEOF
12992#define uint64_t unsigned long long
12993_ACEOF
12994
12995fi
12996
12997
12998# my own checks
12999# Extract the first word of "doxygen", so it can be a program name with args.
13000set dummy doxygen; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_prog_doxygen+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  if test -n "$doxygen"; then
13007  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012  IFS=$as_save_IFS
13013  test -z "$as_dir" && as_dir=.
13014    for ac_exec_ext in '' $ac_executable_extensions; do
13015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016    ac_cv_prog_doxygen="doxygen"
13017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018    break 2
13019  fi
13020done
13021  done
13022IFS=$as_save_IFS
13023
13024fi
13025fi
13026doxygen=$ac_cv_prog_doxygen
13027if test -n "$doxygen"; then
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13029$as_echo "$doxygen" >&6; }
13030else
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
13033fi
13034
13035
13036
13037# check to see if libraries are needed for these functions.
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13039$as_echo_n "checking for library containing socket... " >&6; }
13040if ${ac_cv_search_socket+:} false; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  ac_func_search_save_LIBS=$LIBS
13044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046
13047/* Override any GCC internal prototype to avoid an error.
13048   Use char because int might match the return type of a GCC
13049   builtin and then its argument prototype would still apply.  */
13050#ifdef __cplusplus
13051extern "C"
13052#endif
13053char socket ();
13054int
13055main ()
13056{
13057return socket ();
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062for ac_lib in '' socket; do
13063  if test -z "$ac_lib"; then
13064    ac_res="none required"
13065  else
13066    ac_res=-l$ac_lib
13067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13068  fi
13069  if ac_fn_c_try_link "$LINENO"; then :
13070  ac_cv_search_socket=$ac_res
13071fi
13072rm -f core conftest.err conftest.$ac_objext \
13073    conftest$ac_exeext
13074  if ${ac_cv_search_socket+:} false; then :
13075  break
13076fi
13077done
13078if ${ac_cv_search_socket+:} false; then :
13079
13080else
13081  ac_cv_search_socket=no
13082fi
13083rm conftest.$ac_ext
13084LIBS=$ac_func_search_save_LIBS
13085fi
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13087$as_echo "$ac_cv_search_socket" >&6; }
13088ac_res=$ac_cv_search_socket
13089if test "$ac_res" != no; then :
13090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13091
13092fi
13093
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13095$as_echo_n "checking for library containing inet_pton... " >&6; }
13096if ${ac_cv_search_inet_pton+:} false; then :
13097  $as_echo_n "(cached) " >&6
13098else
13099  ac_func_search_save_LIBS=$LIBS
13100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h.  */
13102
13103/* Override any GCC internal prototype to avoid an error.
13104   Use char because int might match the return type of a GCC
13105   builtin and then its argument prototype would still apply.  */
13106#ifdef __cplusplus
13107extern "C"
13108#endif
13109char inet_pton ();
13110int
13111main ()
13112{
13113return inet_pton ();
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118for ac_lib in '' nsl; do
13119  if test -z "$ac_lib"; then
13120    ac_res="none required"
13121  else
13122    ac_res=-l$ac_lib
13123    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13124  fi
13125  if ac_fn_c_try_link "$LINENO"; then :
13126  ac_cv_search_inet_pton=$ac_res
13127fi
13128rm -f core conftest.err conftest.$ac_objext \
13129    conftest$ac_exeext
13130  if ${ac_cv_search_inet_pton+:} false; then :
13131  break
13132fi
13133done
13134if ${ac_cv_search_inet_pton+:} false; then :
13135
13136else
13137  ac_cv_search_inet_pton=no
13138fi
13139rm conftest.$ac_ext
13140LIBS=$ac_func_search_save_LIBS
13141fi
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13143$as_echo "$ac_cv_search_inet_pton" >&6; }
13144ac_res=$ac_cv_search_inet_pton
13145if test "$ac_res" != no; then :
13146  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13147
13148fi
13149
13150
13151
13152
13153# Check whether --with-drill was given.
13154if test "${with_drill+set}" = set; then :
13155  withval=$with_drill;
13156else
13157  with_drill="no"
13158fi
13159
13160if test x_$with_drill != x_no ; then
13161	DRILL=drill
13162
13163	INSTALL_DRILL=install-drill
13164
13165	UNINSTALL_DRILL=uninstall-drill
13166
13167	CLEAN_DRILL=clean-drill
13168
13169	LINT_DRILL=lint-drill
13170
13171	if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13172		as_fn_error $? "
13173A config.h was detected in the drill subdirectory.
13174This does not work with the --with-drill option.
13175Please remove the config.h from the drill subdirectory
13176or do not use the --with-drill option." "$LINENO" 5
13177	fi
13178	DRILL_CONFIG=" drill/drill.1"
13179else
13180	DRILL=""
13181
13182	INSTALL_DRILL=""
13183
13184	UNINSTALL_DRILL=""
13185
13186	CLEAN_DRILL=""
13187
13188	LINT_DRILL=""
13189
13190	DRILL_CONFIG=""
13191fi
13192
13193
13194
13195# Check whether --with-examples was given.
13196if test "${with_examples+set}" = set; then :
13197  withval=$with_examples;
13198else
13199  with_examples="no"
13200fi
13201
13202if test x_$with_examples != x_no ; then
13203	EXAMPLES=examples
13204
13205	INSTALL_EXAMPLES=install-examples
13206
13207	UNINSTALL_EXAMPLES=uninstall-examples
13208
13209	CLEAN_EXAMPLES=clean-examples
13210
13211	LINT_EXAMPLES=lint-examples
13212
13213	if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13214		as_fn_error $? "
13215A config.h was detected in the examples subdirectory.
13216This does not work with the --with-examples option.
13217Please remove the config.h from the examples subdirectory
13218or do not use the --with-examples option." "$LINENO" 5
13219	fi
13220	EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1"
13221else
13222	EXAMPLES=""
13223
13224	INSTALL_EXAMPLES=""
13225
13226	UNINSTALL_EXAMPLES=""
13227
13228	CLEAN_EXAMPLES=""
13229
13230	LINT_EXAMPLES=""
13231
13232	EXAMPLES_CONFIG=""
13233fi
13234
13235# add option to disable installation of ldns-config script
13236# Check whether --enable-ldns-config was given.
13237if test "${enable_ldns_config+set}" = set; then :
13238  enableval=$enable_ldns_config; enable_ldns_config=$enableval
13239else
13240  enable_ldns_config=yes
13241fi
13242
13243if test "x$enable_ldns_config" = xyes; then
13244	INSTALL_CONFIG=install-config
13245
13246	INSTALL_CONFIG_MANPAGE=install-config-manpage
13247
13248	UNINSTALL_CONFIG=uninstall-config
13249
13250	UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13251
13252else
13253	INSTALL_CONFIG=""
13254
13255	INSTALL_CONFIG_MANPAGE=""
13256
13257	UNINSTALL_CONFIG=""
13258
13259	UNINSTALL_CONFIG_MANPAGE=""
13260
13261fi
13262
13263# add option to disable library printing to stderr
13264# Check whether --enable-stderr-msgs was given.
13265if test "${enable_stderr_msgs+set}" = set; then :
13266  enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13267else
13268  enable_stderr_msgs=no
13269fi
13270
13271case "$enable_stderr_msgs" in
13272    no)         ;;
13273    *)
13274
13275cat >>confdefs.h <<_ACEOF
13276#define STDERR_MSGS 1
13277_ACEOF
13278
13279        ;;
13280esac
13281
13282# check for python
13283PYTHON_X_CFLAGS=""
13284ldns_with_pyldns=no
13285ldns_with_pyldnsx=no
13286
13287# Check whether --with-pyldns was given.
13288if test "${with_pyldns+set}" = set; then :
13289  withval=$with_pyldns;
13290else
13291   withval="no"
13292fi
13293
13294ldns_have_python=no
13295if test x_$withval != x_no; then
13296   # ===========================================================================
13297#      http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13298# ===========================================================================
13299#
13300# SYNOPSIS
13301#
13302#   AX_PYTHON_DEVEL([version])
13303#
13304# DESCRIPTION
13305#
13306#   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
13307#   in your configure.ac.
13308#
13309#   This macro checks for Python and tries to get the include path to
13310#   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
13311#   output variables. It also exports $(PYTHON_EXTRA_LIBS) and
13312#   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
13313#
13314#   You can search for some particular version of Python by passing a
13315#   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
13316#   note that you *have* to pass also an operator along with the version to
13317#   match, and pay special attention to the single quotes surrounding the
13318#   version number. Don't use "PYTHON_VERSION" for this: that environment
13319#   variable is declared as precious and thus reserved for the end-user.
13320#
13321#   This macro should work for all versions of Python >= 2.1.0. As an end
13322#   user, you can disable the check for the python version by setting the
13323#   PYTHON_NOVERSIONCHECK environment variable to something else than the
13324#   empty string.
13325#
13326#   If you need to use this macro for an older Python version, please
13327#   contact the authors. We're always open for feedback.
13328#
13329# LICENSE
13330#
13331#   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
13332#   Copyright (c) 2009 Alan W. Irwin
13333#   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
13334#   Copyright (c) 2009 Andrew Collier
13335#   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
13336#   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
13337#   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
13338#
13339#   This program is free software: you can redistribute it and/or modify it
13340#   under the terms of the GNU General Public License as published by the
13341#   Free Software Foundation, either version 3 of the License, or (at your
13342#   option) any later version.
13343#
13344#   This program is distributed in the hope that it will be useful, but
13345#   WITHOUT ANY WARRANTY; without even the implied warranty of
13346#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13347#   Public License for more details.
13348#
13349#   You should have received a copy of the GNU General Public License along
13350#   with this program. If not, see <http://www.gnu.org/licenses/>.
13351#
13352#   As a special exception, the respective Autoconf Macro's copyright owner
13353#   gives unlimited permission to copy, distribute and modify the configure
13354#   scripts that are the output of Autoconf when processing the Macro. You
13355#   need not follow the terms of the GNU General Public License when using
13356#   or distributing such scripts, even though portions of the text of the
13357#   Macro appear in them. The GNU General Public License (GPL) does govern
13358#   all other use of the material that constitutes the Autoconf Macro.
13359#
13360#   This special exception to the GPL applies to versions of the Autoconf
13361#   Macro released by the Autoconf Archive. When you make and distribute a
13362#   modified version of the Autoconf Macro, you may extend this special
13363#   exception to the GPL to apply to your modified version as well.
13364
13365#serial 16
13366
13367# This is what autoupdate's m4 run will expand.  It fires
13368# the warning (with _au_warn_XXX), outputs it into the
13369# updated configure.ac (with AC_DIAGNOSE), and then outputs
13370# the replacement expansion.
13371
13372
13373# This is an auxiliary macro that is also run when
13374# autoupdate runs m4.  It simply calls m4_warning, but
13375# we need a wrapper so that each warning is emitted only
13376# once.  We break the quoting in m4_warning's argument in
13377# order to expand this macro's arguments, not AU_DEFUN's.
13378
13379
13380# Finally, this is the expansion that is picked up by
13381# autoconf.  It tells the user to run autoupdate, and
13382# then outputs the replacement expansion.  We do not care
13383# about autoupdate's warning because that contains
13384# information on what to do *after* running autoupdate.
13385
13386
13387
13388   ac_save_LIBS="$LIBS"
13389
13390	#
13391	# Allow the use of a (user set) custom python version
13392	#
13393
13394
13395	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
13396set dummy python$PYTHON_VERSION; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
13399if ${ac_cv_path_PYTHON+:} false; then :
13400  $as_echo_n "(cached) " >&6
13401else
13402  case $PYTHON in
13403  [\\/]* | ?:[\\/]*)
13404  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13405  ;;
13406  *)
13407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408for as_dir in $PATH
13409do
13410  IFS=$as_save_IFS
13411  test -z "$as_dir" && as_dir=.
13412    for ac_exec_ext in '' $ac_executable_extensions; do
13413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416    break 2
13417  fi
13418done
13419  done
13420IFS=$as_save_IFS
13421
13422  ;;
13423esac
13424fi
13425PYTHON=$ac_cv_path_PYTHON
13426if test -n "$PYTHON"; then
13427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13428$as_echo "$PYTHON" >&6; }
13429else
13430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431$as_echo "no" >&6; }
13432fi
13433
13434
13435	if test -z "$PYTHON"; then
13436	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
13437	   PYTHON_VERSION=""
13438	fi
13439
13440	#
13441	# Check for a version of Python >= 2.1.0
13442	#
13443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
13444$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
13445	ac_supports_python_ver=`$PYTHON -c "import sys; \
13446		ver = sys.version.split ()[0]; \
13447		print (ver >= '2.1.0')"`
13448	if test "$ac_supports_python_ver" != "True"; then
13449		if test -z "$PYTHON_NOVERSIONCHECK"; then
13450			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451$as_echo "no" >&6; }
13452			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13454as_fn_error $? "
13455This version of the AC_PYTHON_DEVEL macro
13456doesn't work properly with versions of Python before
134572.1.0. You may need to re-run configure, setting the
13458variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
13459PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
13460Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
13461to something else than an empty string.
13462
13463See \`config.log' for more details" "$LINENO" 5; }
13464		else
13465			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
13466$as_echo "skip at user request" >&6; }
13467		fi
13468	else
13469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470$as_echo "yes" >&6; }
13471	fi
13472
13473	#
13474	# if the macro parameter ``version'' is set, honour it
13475	#
13476	if test -n ">= '2.4.0'"; then
13477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
13478$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
13479		ac_supports_python_ver=`$PYTHON -c "import sys; \
13480			ver = sys.version.split ()[0]; \
13481			print (ver >= '2.4.0')"`
13482		if test "$ac_supports_python_ver" = "True"; then
13483		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13484$as_echo "yes" >&6; }
13485		else
13486			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
13488			as_fn_error $? "this package requires Python >= '2.4.0'.
13489If you have it installed, but it isn't the default Python
13490interpreter in your system path, please pass the PYTHON_VERSION
13491variable to configure. See \`\`configure --help'' for reference.
13492" "$LINENO" 5
13493			PYTHON_VERSION=""
13494		fi
13495	fi
13496
13497	#
13498	# Check if you have distutils, else fail
13499	#
13500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
13501$as_echo_n "checking for the distutils Python package... " >&6; }
13502	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
13503	if test -z "$ac_distutils_result"; then
13504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505$as_echo "yes" >&6; }
13506	else
13507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509		as_fn_error $? "cannot import Python module \"distutils\".
13510Please check your Python installation. The error was:
13511$ac_distutils_result" "$LINENO" 5
13512		PYTHON_VERSION=""
13513	fi
13514
13515	#
13516	# Check for Python include path
13517	#
13518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
13519$as_echo_n "checking for Python include path... " >&6; }
13520	if test -z "$PYTHON_CPPFLAGS"; then
13521		python_path=`$PYTHON -c "import distutils.sysconfig; \
13522			print (distutils.sysconfig.get_python_inc ());"`
13523		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
13524			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
13525		if test -n "${python_path}"; then
13526			if test "${plat_python_path}" != "${python_path}"; then
13527				python_path="-I$python_path -I$plat_python_path"
13528			else
13529				python_path="-I$python_path"
13530			fi
13531		fi
13532		PYTHON_CPPFLAGS=$python_path
13533	fi
13534	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
13535$as_echo "$PYTHON_CPPFLAGS" >&6; }
13536
13537
13538	#
13539	# Check for Python library path
13540	#
13541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
13542$as_echo_n "checking for Python library path... " >&6; }
13543	if test -z "$PYTHON_LDFLAGS"; then
13544		# (makes two attempts to ensure we've got a version number
13545		# from the interpreter)
13546		ac_python_version=`cat<<EOD | $PYTHON -
13547
13548# join all versioning strings, on some systems
13549# major/minor numbers could be in different list elements
13550from distutils.sysconfig import *
13551e = get_config_var('VERSION')
13552if e is not None:
13553	print(e)
13554EOD`
13555
13556		if test -z "$ac_python_version"; then
13557			if test -n "$PYTHON_VERSION"; then
13558				ac_python_version=$PYTHON_VERSION
13559			else
13560				ac_python_version=`$PYTHON -c "import sys; \
13561					print (sys.version[:3])"`
13562			fi
13563		fi
13564
13565		# Make the versioning information available to the compiler
13566
13567cat >>confdefs.h <<_ACEOF
13568#define HAVE_PYTHON "$ac_python_version"
13569_ACEOF
13570
13571
13572		# First, the library directory:
13573		ac_python_libdir=`cat<<EOD | $PYTHON -
13574
13575# There should be only one
13576import distutils.sysconfig
13577e = distutils.sysconfig.get_config_var('LIBDIR')
13578if e is not None:
13579	print (e)
13580EOD`
13581
13582		# Now, for the library:
13583		ac_python_library=`cat<<EOD | $PYTHON -
13584
13585import distutils.sysconfig
13586c = distutils.sysconfig.get_config_vars()
13587if 'LDVERSION' in c:
13588	print ('python'+c['LDVERSION'])
13589else:
13590	print ('python'+c['VERSION'])
13591EOD`
13592
13593		# This small piece shamelessly adapted from PostgreSQL python macro;
13594		# credits goes to momjian, I think. I'd like to put the right name
13595		# in the credits, if someone can point me in the right direction... ?
13596		#
13597		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
13598		then
13599			# use the official shared library
13600			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
13601			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
13602		else
13603			# old way: use libpython from python_configdir
13604			ac_python_libdir=`$PYTHON -c \
13605			  "from distutils.sysconfig import get_python_lib as f; \
13606			  import os; \
13607			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
13608			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
13609		fi
13610
13611		if test -z "PYTHON_LDFLAGS"; then
13612			as_fn_error $? "
13613  Cannot determine location of your Python DSO. Please check it was installed with
13614  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
13615			" "$LINENO" 5
13616		fi
13617	fi
13618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
13619$as_echo "$PYTHON_LDFLAGS" >&6; }
13620
13621
13622	#
13623	# Check for site packages
13624	#
13625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
13626$as_echo_n "checking for Python site-packages path... " >&6; }
13627	if test -z "$PYTHON_SITE_PKG"; then
13628		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
13629			print (distutils.sysconfig.get_python_lib(1,0));"`
13630	fi
13631	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
13632$as_echo "$PYTHON_SITE_PKG" >&6; }
13633
13634
13635	#
13636	# libraries which must be linked in when embedding
13637	#
13638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
13639$as_echo_n "checking python extra libraries... " >&6; }
13640	if test -z "$PYTHON_EXTRA_LIBS"; then
13641	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
13642                conf = distutils.sysconfig.get_config_var; \
13643                print (conf('LIBS'))"`
13644	fi
13645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
13646$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
13647
13648
13649	#
13650	# linking flags needed when embedding
13651	#
13652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
13653$as_echo_n "checking python extra linking flags... " >&6; }
13654	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
13655		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
13656			conf = distutils.sysconfig.get_config_var; \
13657			print (conf('LINKFORSHARED'))"`
13658	fi
13659	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
13660$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
13661
13662
13663	#
13664	# final check to see if everything compiles alright
13665	#
13666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
13667$as_echo_n "checking consistency of all components of python development environment... " >&6; }
13668	# save current global flags
13669	ac_save_LIBS="$LIBS"
13670	ac_save_CPPFLAGS="$CPPFLAGS"
13671	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
13672	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
13673	ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h.  */
13681
13682		#include <Python.h>
13683int
13684main ()
13685{
13686Py_Initialize();
13687  ;
13688  return 0;
13689}
13690
13691_ACEOF
13692if ac_fn_c_try_link "$LINENO"; then :
13693  pythonexists=yes
13694else
13695  pythonexists=no
13696fi
13697rm -f core conftest.err conftest.$ac_objext \
13698    conftest$ac_exeext conftest.$ac_ext
13699	ac_ext=c
13700ac_cpp='$CPP $CPPFLAGS'
13701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703ac_compiler_gnu=$ac_cv_c_compiler_gnu
13704
13705	# turn back to default flags
13706	CPPFLAGS="$ac_save_CPPFLAGS"
13707	LIBS="$ac_save_LIBS"
13708
13709	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
13710$as_echo "$pythonexists" >&6; }
13711
13712        if test ! "x$pythonexists" = "xyes"; then
13713	   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13715as_fn_error $? "
13716  Could not link test program to Python. Maybe the main Python library has been
13717  installed in some non-standard library path. If so, pass it to configure,
13718  via the LDFLAGS environment variable.
13719  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
13720  ============================================================================
13721   ERROR!
13722   You probably have to install the development version of the Python package
13723   for your distribution.  The exact name of this package varies among them.
13724  ============================================================================
13725
13726See \`config.log' for more details" "$LINENO" 5; }
13727	  PYTHON_VERSION=""
13728	fi
13729
13730	#
13731	# all done!
13732	#
13733
13734   if test ! -z "$ac_python_version"; then
13735	ldns_have_python=yes
13736   fi
13737
13738   # pass additional Python 3 option to SWIG
13739   if test `$PYTHON -c "import sys; \
13740       ver = sys.version.split()[0]; \
13741       print(ver >= '3')"` = "True"; then
13742       SWIGPY3="-py3 -DPY3"
13743
13744   fi
13745
13746   # check for SWIG
13747   if test x_$ldns_have_python != x_no; then
13748        # ===========================================================================
13749#        http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
13750# ===========================================================================
13751#
13752# SYNOPSIS
13753#
13754#   AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
13755#
13756# DESCRIPTION
13757#
13758#   This macro searches for a SWIG installation on your system. If found,
13759#   then SWIG is AC_SUBST'd; if not found, then $SWIG is empty.  If SWIG is
13760#   found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
13761#
13762#   You can use the optional first argument to check if the version of the
13763#   available SWIG is greater than or equal to the value of the argument. It
13764#   should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
13765#   the first N is mandatory.) If the version argument is given (e.g.
13766#   1.3.17), AX_PKG_SWIG checks that the swig package is this version number
13767#   or higher.
13768#
13769#   As usual, action-if-found is executed if SWIG is found, otherwise
13770#   action-if-not-found is executed.
13771#
13772#   In configure.in, use as:
13773#
13774#     AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
13775#     AX_SWIG_ENABLE_CXX
13776#     AX_SWIG_MULTI_MODULE_SUPPORT
13777#     AX_SWIG_PYTHON
13778#
13779# LICENSE
13780#
13781#   Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
13782#   Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
13783#   Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
13784#   Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
13785#   Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
13786#
13787#   This program is free software; you can redistribute it and/or modify it
13788#   under the terms of the GNU General Public License as published by the
13789#   Free Software Foundation; either version 2 of the License, or (at your
13790#   option) any later version.
13791#
13792#   This program is distributed in the hope that it will be useful, but
13793#   WITHOUT ANY WARRANTY; without even the implied warranty of
13794#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13795#   Public License for more details.
13796#
13797#   You should have received a copy of the GNU General Public License along
13798#   with this program. If not, see <http://www.gnu.org/licenses/>.
13799#
13800#   As a special exception, the respective Autoconf Macro's copyright owner
13801#   gives unlimited permission to copy, distribute and modify the configure
13802#   scripts that are the output of Autoconf when processing the Macro. You
13803#   need not follow the terms of the GNU General Public License when using
13804#   or distributing such scripts, even though portions of the text of the
13805#   Macro appear in them. The GNU General Public License (GPL) does govern
13806#   all other use of the material that constitutes the Autoconf Macro.
13807#
13808#   This special exception to the GPL applies to versions of the Autoconf
13809#   Macro released by the Autoconf Archive. When you make and distribute a
13810#   modified version of the Autoconf Macro, you may extend this special
13811#   exception to the GPL to apply to your modified version as well.
13812
13813#serial 8
13814
13815
13816
13817
13818        # check for >=SWIG-2.0.4 if Python 3.2 used
13819        if test `$PYTHON -c "import sys; \
13820            ver = sys.version.split()[0]; \
13821            print(ver >= '3.2')"` = "True"; then
13822
13823        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13824        for ac_prog in swig2.0 swig
13825do
13826  # Extract the first word of "$ac_prog", so it can be a program name with args.
13827set dummy $ac_prog; ac_word=$2
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829$as_echo_n "checking for $ac_word... " >&6; }
13830if ${ac_cv_path_SWIG+:} false; then :
13831  $as_echo_n "(cached) " >&6
13832else
13833  case $SWIG in
13834  [\\/]* | ?:[\\/]*)
13835  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13836  ;;
13837  *)
13838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841  IFS=$as_save_IFS
13842  test -z "$as_dir" && as_dir=.
13843    for ac_exec_ext in '' $ac_executable_extensions; do
13844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13845    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847    break 2
13848  fi
13849done
13850  done
13851IFS=$as_save_IFS
13852
13853  ;;
13854esac
13855fi
13856SWIG=$ac_cv_path_SWIG
13857if test -n "$SWIG"; then
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13859$as_echo "$SWIG" >&6; }
13860else
13861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862$as_echo "no" >&6; }
13863fi
13864
13865
13866  test -n "$SWIG" && break
13867done
13868
13869        if test -z "$SWIG" ; then
13870                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13871        elif test -n "2.0.4" ; then
13872                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13873$as_echo_n "checking SWIG version... " >&6; }
13874                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'`
13875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13876$as_echo "$swig_version" >&6; }
13877                if test -n "$swig_version" ; then
13878                        # Calculate the required version number components
13879                        required=2.0.4
13880                        required_major=`echo $required | sed 's/[^0-9].*//'`
13881                        if test -z "$required_major" ; then
13882                                required_major=0
13883                        fi
13884                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13885                        required_minor=`echo $required | sed 's/[^0-9].*//'`
13886                        if test -z "$required_minor" ; then
13887                                required_minor=0
13888                        fi
13889                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13890                        required_patch=`echo $required | sed 's/[^0-9].*//'`
13891                        if test -z "$required_patch" ; then
13892                                required_patch=0
13893                        fi
13894                        # Calculate the available version number components
13895                        available=$swig_version
13896                        available_major=`echo $available | sed 's/[^0-9].*//'`
13897                        if test -z "$available_major" ; then
13898                                available_major=0
13899                        fi
13900                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13901                        available_minor=`echo $available | sed 's/[^0-9].*//'`
13902                        if test -z "$available_minor" ; then
13903                                available_minor=0
13904                        fi
13905                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13906                        available_patch=`echo $available | sed 's/[^0-9].*//'`
13907                        if test -z "$available_patch" ; then
13908                                available_patch=0
13909                        fi
13910                        # Convert the version tuple into a single number for easier comparison.
13911                        # Using base 100 should be safe since SWIG internally uses BCD values
13912                        # to encode its version number.
13913                        required_swig_vernum=`expr $required_major \* 10000 \
13914                            \+ $required_minor \* 100 \+ $required_patch`
13915                        available_swig_vernum=`expr $available_major \* 10000 \
13916                            \+ $available_minor \* 100 \+ $available_patch`
13917
13918                        if test $available_swig_vernum -lt $required_swig_vernum; then
13919                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&5
13920$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&2;}
13921                                SWIG=''
13922                                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13923                        else
13924                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
13925$as_echo_n "checking for SWIG library... " >&6; }
13926                                SWIG_LIB=`$SWIG -swiglib`
13927                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
13928$as_echo "$SWIG_LIB" >&6; }
13929
13930                        fi
13931                else
13932                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
13933$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
13934                        SWIG=''
13935                        as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13936                fi
13937        fi
13938
13939
13940        else
13941
13942        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13943        for ac_prog in swig2.0 swig
13944do
13945  # Extract the first word of "$ac_prog", so it can be a program name with args.
13946set dummy $ac_prog; ac_word=$2
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13948$as_echo_n "checking for $ac_word... " >&6; }
13949if ${ac_cv_path_SWIG+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  case $SWIG in
13953  [\\/]* | ?:[\\/]*)
13954  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13955  ;;
13956  *)
13957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958for as_dir in $PATH
13959do
13960  IFS=$as_save_IFS
13961  test -z "$as_dir" && as_dir=.
13962    for ac_exec_ext in '' $ac_executable_extensions; do
13963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13964    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13966    break 2
13967  fi
13968done
13969  done
13970IFS=$as_save_IFS
13971
13972  ;;
13973esac
13974fi
13975SWIG=$ac_cv_path_SWIG
13976if test -n "$SWIG"; then
13977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13978$as_echo "$SWIG" >&6; }
13979else
13980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981$as_echo "no" >&6; }
13982fi
13983
13984
13985  test -n "$SWIG" && break
13986done
13987
13988        if test -z "$SWIG" ; then
13989                :
13990        elif test -n "" ; then
13991                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13992$as_echo_n "checking SWIG version... " >&6; }
13993                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'`
13994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13995$as_echo "$swig_version" >&6; }
13996                if test -n "$swig_version" ; then
13997                        # Calculate the required version number components
13998                        required=
13999                        required_major=`echo $required | sed 's/[^0-9].*//'`
14000                        if test -z "$required_major" ; then
14001                                required_major=0
14002                        fi
14003                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14004                        required_minor=`echo $required | sed 's/[^0-9].*//'`
14005                        if test -z "$required_minor" ; then
14006                                required_minor=0
14007                        fi
14008                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14009                        required_patch=`echo $required | sed 's/[^0-9].*//'`
14010                        if test -z "$required_patch" ; then
14011                                required_patch=0
14012                        fi
14013                        # Calculate the available version number components
14014                        available=$swig_version
14015                        available_major=`echo $available | sed 's/[^0-9].*//'`
14016                        if test -z "$available_major" ; then
14017                                available_major=0
14018                        fi
14019                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14020                        available_minor=`echo $available | sed 's/[^0-9].*//'`
14021                        if test -z "$available_minor" ; then
14022                                available_minor=0
14023                        fi
14024                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14025                        available_patch=`echo $available | sed 's/[^0-9].*//'`
14026                        if test -z "$available_patch" ; then
14027                                available_patch=0
14028                        fi
14029                        # Convert the version tuple into a single number for easier comparison.
14030                        # Using base 100 should be safe since SWIG internally uses BCD values
14031                        # to encode its version number.
14032                        required_swig_vernum=`expr $required_major \* 10000 \
14033                            \+ $required_minor \* 100 \+ $required_patch`
14034                        available_swig_vernum=`expr $available_major \* 10000 \
14035                            \+ $available_minor \* 100 \+ $available_patch`
14036
14037                        if test $available_swig_vernum -lt $required_swig_vernum; then
14038                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
14039$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
14040                                SWIG=''
14041
14042                        else
14043                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14044$as_echo_n "checking for SWIG library... " >&6; }
14045                                SWIG_LIB=`$SWIG -swiglib`
14046                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14047$as_echo "$SWIG_LIB" >&6; }
14048
14049                        fi
14050                else
14051                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14052$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14053                        SWIG=''
14054
14055                fi
14056        fi
14057
14058
14059        fi
14060
14061	if test ! -x "$SWIG"; then
14062		as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14063	else
14064
14065$as_echo "#define HAVE_SWIG 1" >>confdefs.h
14066
14067		PYLDNS="pyldns"
14068
14069		swig="$SWIG"
14070
14071		ldns_with_pyldns=yes
14072	fi
14073   else
14074	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14075$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14076   fi
14077
14078   # xtra cflags for pyldns
14079   if test x_$ldns_have_python != x_no; then
14080
14081
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14083$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14084cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14085if eval \${cv_prog_cc_flag_$cache+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088
14089echo 'void f(void){}' >conftest.c
14090if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14091eval "cv_prog_cc_flag_$cache=yes"
14092else
14093eval "cv_prog_cc_flag_$cache=no"
14094fi
14095rm -f conftest conftest.o conftest.c
14096
14097fi
14098
14099if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101$as_echo "yes" >&6; }
14102:
14103PYTHON_X_CFLAGS="-fno-strict-aliasing"
14104else
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106$as_echo "no" >&6; }
14107:
14108
14109fi
14110
14111
14112
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14114$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14115cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14116if eval \${cv_prog_cc_flag_$cache+:} false; then :
14117  $as_echo_n "(cached) " >&6
14118else
14119
14120echo 'void f(void){}' >conftest.c
14121if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14122eval "cv_prog_cc_flag_$cache=yes"
14123else
14124eval "cv_prog_cc_flag_$cache=no"
14125fi
14126rm -f conftest conftest.o conftest.c
14127
14128fi
14129
14130if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132$as_echo "yes" >&6; }
14133:
14134PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14135else
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137$as_echo "no" >&6; }
14138:
14139
14140fi
14141
14142
14143
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14145$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14146cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14147if eval \${cv_prog_cc_flag_$cache+:} false; then :
14148  $as_echo_n "(cached) " >&6
14149else
14150
14151echo 'void f(void){}' >conftest.c
14152if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14153eval "cv_prog_cc_flag_$cache=yes"
14154else
14155eval "cv_prog_cc_flag_$cache=no"
14156fi
14157rm -f conftest conftest.o conftest.c
14158
14159fi
14160
14161if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163$as_echo "yes" >&6; }
14164:
14165PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14166else
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168$as_echo "no" >&6; }
14169:
14170
14171fi
14172
14173
14174
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14176$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14177cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14178if eval \${cv_prog_cc_flag_$cache+:} false; then :
14179  $as_echo_n "(cached) " >&6
14180else
14181
14182echo 'void f(void){}' >conftest.c
14183if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14184eval "cv_prog_cc_flag_$cache=yes"
14185else
14186eval "cv_prog_cc_flag_$cache=no"
14187fi
14188rm -f conftest conftest.o conftest.c
14189
14190fi
14191
14192if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14194$as_echo "yes" >&6; }
14195:
14196PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14197else
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199$as_echo "no" >&6; }
14200:
14201
14202fi
14203
14204   fi
14205fi
14206
14207
14208# Check for pyldnsx
14209
14210# Check whether --with-pyldnsx was given.
14211if test "${with_pyldnsx+set}" = set; then :
14212  withval=$with_pyldnsx;
14213else
14214   withval="with_pyldns"
14215fi
14216
14217if test x_$withval != x_no; then
14218  if test x_$ldns_with_pyldns != x_no; then
14219    PYLDNSX="pyldnsx"
14220
14221    ldns_with_pyldnsx=yes
14222  else
14223    if test x_$withval != x_with_pyldns; then
14224      as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14225    fi
14226  fi
14227fi
14228
14229if test x_$ldns_with_pyldns != x_no; then
14230  PYLDNSINST="install-pyldns"
14231  PYLDNSUNINST="uninstall-pyldns"
14232
14233else
14234  PYLDNSINST=""
14235  PYLDNSUNINST=""
14236
14237fi
14238if test x_$ldns_with_pyldnsx != x_no; then
14239  PYLDNSXINST="install-pyldnsx"
14240  PYLDNSXUNINST="uninstall-pyldnsx"
14241
14242else
14243  PYLDNSXINST=""
14244  PYLDNSXUNINST=""
14245
14246fi
14247
14248# check for perl
14249ldns_with_p5_dns_ldns=no
14250
14251# Check whether --with-p5-dns-ldns was given.
14252if test "${with_p5_dns_ldns+set}" = set; then :
14253  withval=$with_p5_dns_ldns;
14254else
14255   withval="no"
14256fi
14257
14258ldns_have_perl=no
14259if test x_$withval != x_no; then
14260   # Extract the first word of "perl", so it can be a program name with args.
14261set dummy perl; ac_word=$2
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263$as_echo_n "checking for $ac_word... " >&6; }
14264if ${ac_cv_path_PERL+:} false; then :
14265  $as_echo_n "(cached) " >&6
14266else
14267  case $PERL in
14268  [\\/]* | ?:[\\/]*)
14269  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14270  ;;
14271  *)
14272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273for as_dir in $PATH
14274do
14275  IFS=$as_save_IFS
14276  test -z "$as_dir" && as_dir=.
14277    for ac_exec_ext in '' $ac_executable_extensions; do
14278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14279    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14281    break 2
14282  fi
14283done
14284  done
14285IFS=$as_save_IFS
14286
14287  ;;
14288esac
14289fi
14290PERL=$ac_cv_path_PERL
14291if test -n "$PERL"; then
14292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14293$as_echo "$PERL" >&6; }
14294else
14295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296$as_echo "no" >&6; }
14297fi
14298
14299
14300   if test -z "$PERL"; then
14301      as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
14302   fi
14303   P5_DNS_LDNS="p5-dns-ldns"
14304   TEST_P5_DNS_LDNS="test-p5-dns-ldns"
14305   INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
14306   UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
14307   CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
14308
14309else
14310   P5_DNS_LDNS=""
14311   TEST_P5_DNS_LDNS=""
14312   INSTALL_P5_DNS_LDNS=""
14313   UNINSTALL_P5_DNS_LDNS=""
14314   CLEAN_P5_DNS_LDNS=""
14315
14316fi
14317
14318# Use libtool
14319
14320# skip these tests, we do not need them.
14321
14322
14323
14324
14325
14326
14327
14328
14329# always use ./libtool unless override from commandline (libtool=mylibtool)
14330if test -z "$libtool"; then
14331	libtool="./libtool"
14332fi
14333
14334# avoid libtool max commandline length test on systems that fork slowly.
14335
14336if echo "$host_os" | grep "sunos4" >/dev/null; then
14337	lt_cv_sys_max_cmd_len=32750;
14338fi
14339if test -n "$ac_tool_prefix"; then
14340  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14341set dummy ${ac_tool_prefix}ar; ac_word=$2
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343$as_echo_n "checking for $ac_word... " >&6; }
14344if ${ac_cv_path_AR+:} false; then :
14345  $as_echo_n "(cached) " >&6
14346else
14347  case $AR in
14348  [\\/]* | ?:[\\/]*)
14349  ac_cv_path_AR="$AR" # Let the user override the test with a path.
14350  ;;
14351  *)
14352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353for as_dir in $PATH
14354do
14355  IFS=$as_save_IFS
14356  test -z "$as_dir" && as_dir=.
14357    for ac_exec_ext in '' $ac_executable_extensions; do
14358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14359    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14361    break 2
14362  fi
14363done
14364  done
14365IFS=$as_save_IFS
14366
14367  ;;
14368esac
14369fi
14370AR=$ac_cv_path_AR
14371if test -n "$AR"; then
14372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14373$as_echo "$AR" >&6; }
14374else
14375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376$as_echo "no" >&6; }
14377fi
14378
14379
14380fi
14381if test -z "$ac_cv_path_AR"; then
14382  ac_pt_AR=$AR
14383  # Extract the first word of "ar", so it can be a program name with args.
14384set dummy ar; ac_word=$2
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386$as_echo_n "checking for $ac_word... " >&6; }
14387if ${ac_cv_path_ac_pt_AR+:} false; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  case $ac_pt_AR in
14391  [\\/]* | ?:[\\/]*)
14392  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
14393  ;;
14394  *)
14395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396for as_dir in $PATH
14397do
14398  IFS=$as_save_IFS
14399  test -z "$as_dir" && as_dir=.
14400    for ac_exec_ext in '' $ac_executable_extensions; do
14401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14402    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
14403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14404    break 2
14405  fi
14406done
14407  done
14408IFS=$as_save_IFS
14409
14410  ;;
14411esac
14412fi
14413ac_pt_AR=$ac_cv_path_ac_pt_AR
14414if test -n "$ac_pt_AR"; then
14415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
14416$as_echo "$ac_pt_AR" >&6; }
14417else
14418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419$as_echo "no" >&6; }
14420fi
14421
14422  if test "x$ac_pt_AR" = x; then
14423    AR="false"
14424  else
14425    case $cross_compiling:$ac_tool_warned in
14426yes:)
14427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14429ac_tool_warned=yes ;;
14430esac
14431    AR=$ac_pt_AR
14432  fi
14433else
14434  AR="$ac_cv_path_AR"
14435fi
14436
14437if test $AR = false; then
14438	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
14439fi
14440
14441
14442
14443
14444
14445
14446tmp_CPPFLAGS=$CPPFLAGS
14447tmp_LDFLAGS=$LDFLAGS
14448tmp_LIBS=$LIBS
14449
14450
14451
14452# Check whether --with-ssl was given.
14453if test "${with_ssl+set}" = set; then :
14454  withval=$with_ssl;
14455
14456else
14457
14458            withval="yes"
14459
14460fi
14461
14462
14463    withval=$withval
14464    if test x_$withval != x_no; then
14465        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
14466$as_echo_n "checking for SSL... " >&6; }
14467        if test x_$withval = x_ -o x_$withval = x_yes; then
14468            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
14469        fi
14470        for dir in $withval; do
14471            ssldir="$dir"
14472            if test -f "$dir/include/openssl/ssl.h"; then
14473                found_ssl="yes"
14474
14475cat >>confdefs.h <<_ACEOF
14476#define HAVE_SSL /**/
14477_ACEOF
14478
14479                                if test "$ssldir" != "/usr"; then
14480                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
14481                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
14482                fi
14483                break;
14484            fi
14485        done
14486        if test x_$found_ssl != x_yes; then
14487            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
14488        else
14489            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
14490$as_echo "found in $ssldir" >&6; }
14491            HAVE_SSL=yes
14492                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
14493                LDFLAGS="$LDFLAGS -L$ssldir/lib"
14494                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
14495
14496	if test "x$enable_rpath" = xyes; then
14497		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
14498			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
14499		fi
14500	fi
14501
14502            fi
14503
14504            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
14505$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
14506            LIBS="$LIBS -lcrypto"
14507            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
14508            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510
14511int
14512main ()
14513{
14514
14515                int HMAC_CTX_init(void);
14516                (void)HMAC_CTX_init();
14517
14518  ;
14519  return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523
14524                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14525$as_echo "yes" >&6; }
14526
14527$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14528
14529
14530else
14531
14532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533$as_echo "no" >&6; }
14534                # check if -lwsock32 or -lgdi32 are needed.
14535                BAKLIBS="$LIBS"
14536                BAKSSLLIBS="$LIBSSL_LIBS"
14537                LIBS="$LIBS -lgdi32"
14538                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
14539                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
14540$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
14541                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542/* end confdefs.h.  */
14543
14544int
14545main ()
14546{
14547
14548                    int HMAC_CTX_init(void);
14549                    (void)HMAC_CTX_init();
14550
14551  ;
14552  return 0;
14553}
14554_ACEOF
14555if ac_fn_c_try_link "$LINENO"; then :
14556
14557
14558$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14559
14560                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14561$as_echo "yes" >&6; }
14562
14563else
14564
14565                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566$as_echo "no" >&6; }
14567                    LIBS="$BAKLIBS"
14568                    LIBSSL_LIBS="$BAKSSLLIBS"
14569                    LIBS="$LIBS -ldl"
14570                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14571                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
14572$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
14573                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575
14576int
14577main ()
14578{
14579
14580                        int HMAC_CTX_init(void);
14581                        (void)HMAC_CTX_init();
14582
14583  ;
14584  return 0;
14585}
14586_ACEOF
14587if ac_fn_c_try_link "$LINENO"; then :
14588
14589
14590$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14591
14592                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14593$as_echo "yes" >&6; }
14594
14595else
14596
14597                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
14599                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
14600
14601fi
14602rm -f core conftest.err conftest.$ac_objext \
14603    conftest$ac_exeext conftest.$ac_ext
14604
14605fi
14606rm -f core conftest.err conftest.$ac_objext \
14607    conftest$ac_exeext conftest.$ac_ext
14608
14609fi
14610rm -f core conftest.err conftest.$ac_objext \
14611    conftest$ac_exeext conftest.$ac_ext
14612        fi
14613
14614
14615	# openssl engine functionality needs dlopen().
14616	BAKLIBS="$LIBS"
14617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14618$as_echo_n "checking for library containing dlopen... " >&6; }
14619if ${ac_cv_search_dlopen+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  ac_func_search_save_LIBS=$LIBS
14623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h.  */
14625
14626/* Override any GCC internal prototype to avoid an error.
14627   Use char because int might match the return type of a GCC
14628   builtin and then its argument prototype would still apply.  */
14629#ifdef __cplusplus
14630extern "C"
14631#endif
14632char dlopen ();
14633int
14634main ()
14635{
14636return dlopen ();
14637  ;
14638  return 0;
14639}
14640_ACEOF
14641for ac_lib in '' dl; do
14642  if test -z "$ac_lib"; then
14643    ac_res="none required"
14644  else
14645    ac_res=-l$ac_lib
14646    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14647  fi
14648  if ac_fn_c_try_link "$LINENO"; then :
14649  ac_cv_search_dlopen=$ac_res
14650fi
14651rm -f core conftest.err conftest.$ac_objext \
14652    conftest$ac_exeext
14653  if ${ac_cv_search_dlopen+:} false; then :
14654  break
14655fi
14656done
14657if ${ac_cv_search_dlopen+:} false; then :
14658
14659else
14660  ac_cv_search_dlopen=no
14661fi
14662rm conftest.$ac_ext
14663LIBS=$ac_func_search_save_LIBS
14664fi
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14666$as_echo "$ac_cv_search_dlopen" >&6; }
14667ac_res=$ac_cv_search_dlopen
14668if test "$ac_res" != no; then :
14669  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14670
14671fi
14672
14673	if test "$LIBS" != "$BAKLIBS"; then
14674		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14675	fi
14676    fi
14677for ac_header in openssl/ssl.h
14678do :
14679  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
14680"
14681if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14682  cat >>confdefs.h <<_ACEOF
14683#define HAVE_OPENSSL_SSL_H 1
14684_ACEOF
14685
14686fi
14687
14688done
14689
14690for ac_header in openssl/err.h
14691do :
14692  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
14693"
14694if test "x$ac_cv_header_openssl_err_h" = xyes; then :
14695  cat >>confdefs.h <<_ACEOF
14696#define HAVE_OPENSSL_ERR_H 1
14697_ACEOF
14698
14699fi
14700
14701done
14702
14703for ac_header in openssl/rand.h
14704do :
14705  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
14706"
14707if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
14708  cat >>confdefs.h <<_ACEOF
14709#define HAVE_OPENSSL_RAND_H 1
14710_ACEOF
14711
14712fi
14713
14714done
14715
14716
14717
14718
14719for ac_func in EVP_sha256
14720do :
14721  ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
14722if test "x$ac_cv_func_EVP_sha256" = xyes; then :
14723  cat >>confdefs.h <<_ACEOF
14724#define HAVE_EVP_SHA256 1
14725_ACEOF
14726
14727fi
14728done
14729
14730
14731# for macosx, see if glibtool exists and use that
14732# BSD's need to know the version...
14733#AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
14734#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
14735
14736# Check whether --enable-sha2 was given.
14737if test "${enable_sha2+set}" = set; then :
14738  enableval=$enable_sha2;
14739fi
14740
14741case "$enable_sha2" in
14742    no)
14743        ;;
14744    yes|*)
14745        if test "x$HAVE_SSL" != "xyes"; then
14746            as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
14747        fi
14748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
14749$as_echo_n "checking for SHA256 and SHA512... " >&6; }
14750	ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
14751if test "x$ac_cv_func_SHA256_Init" = xyes; then :
14752
14753else
14754
14755		as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
14756
14757fi
14758
14759
14760cat >>confdefs.h <<_ACEOF
14761#define USE_SHA2 1
14762_ACEOF
14763
14764        ;;
14765esac
14766
14767# Check whether --enable-gost was given.
14768if test "${enable_gost+set}" = set; then :
14769  enableval=$enable_gost;
14770fi
14771
14772case "$enable_gost" in
14773    no)
14774        ;;
14775    *)          if test "x$HAVE_SSL" != "xyes"; then
14776            as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
14777        fi
14778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
14779$as_echo_n "checking for GOST... " >&6; }
14780        ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
14781if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
14782
14783else
14784  as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
14785fi
14786
14787        ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
14788if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
14789
14790else
14791  as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
14792fi
14793
14794
14795cat >>confdefs.h <<_ACEOF
14796#define USE_GOST 1
14797_ACEOF
14798
14799        ;;
14800esac
14801
14802# Check whether --enable-ecdsa was given.
14803if test "${enable_ecdsa+set}" = set; then :
14804  enableval=$enable_ecdsa;
14805fi
14806
14807case "$enable_ecdsa" in
14808    no)
14809      ;;
14810    *)       if test "x$HAVE_SSL" != "xyes"; then
14811        as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
14812      fi
14813      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
14814if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
14815
14816else
14817  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14818fi
14819
14820      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
14821if test "x$ac_cv_func_SHA384_Init" = xyes; then :
14822
14823else
14824  as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14825fi
14826
14827      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
14828#include <openssl/evp.h>
14829
14830"
14831if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
14832  ac_have_decl=1
14833else
14834  ac_have_decl=0
14835fi
14836
14837cat >>confdefs.h <<_ACEOF
14838#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
14839_ACEOF
14840if test $ac_have_decl = 1; then :
14841
14842else
14843  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14844fi
14845ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
14846#include <openssl/evp.h>
14847
14848"
14849if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
14850  ac_have_decl=1
14851else
14852  ac_have_decl=0
14853fi
14854
14855cat >>confdefs.h <<_ACEOF
14856#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
14857_ACEOF
14858if test $ac_have_decl = 1; then :
14859
14860else
14861  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14862fi
14863
14864      # we now know we have ECDSA and the required curves.
14865
14866cat >>confdefs.h <<_ACEOF
14867#define USE_ECDSA 1
14868_ACEOF
14869
14870      ;;
14871esac
14872
14873# Check whether --enable-dane was given.
14874if test "${enable_dane+set}" = set; then :
14875  enableval=$enable_dane;
14876fi
14877
14878case "$enable_dane" in
14879    no)
14880      ldns_build_config_use_dane=0
14881
14882      ;;
14883    *)       if test "x$HAVE_SSL" != "xyes"; then
14884        as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
14885      fi
14886      ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
14887if test "x$ac_cv_func_X509_check_ca" = xyes; then :
14888
14889else
14890  as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
14891fi
14892
14893
14894cat >>confdefs.h <<_ACEOF
14895#define USE_DANE 1
14896_ACEOF
14897
14898      ldns_build_config_use_dane=1
14899
14900      ;;
14901esac
14902
14903# Check whether --enable-rrtype-ninfo was given.
14904if test "${enable_rrtype_ninfo+set}" = set; then :
14905  enableval=$enable_rrtype_ninfo;
14906fi
14907
14908case "$enable_rrtype_ninfo" in
14909	yes)
14910
14911cat >>confdefs.h <<_ACEOF
14912#define RRTYPE_NINFO /**/
14913_ACEOF
14914
14915		;;
14916	no|*)
14917		;;
14918esac
14919# Check whether --enable-rrtype-rkey was given.
14920if test "${enable_rrtype_rkey+set}" = set; then :
14921  enableval=$enable_rrtype_rkey;
14922fi
14923
14924case "$enable_rrtype_rkey" in
14925	yes)
14926
14927cat >>confdefs.h <<_ACEOF
14928#define RRTYPE_RKEY /**/
14929_ACEOF
14930
14931		;;
14932	no|*)
14933		;;
14934esac
14935# Check whether --enable-rrtype-cds was given.
14936if test "${enable_rrtype_cds+set}" = set; then :
14937  enableval=$enable_rrtype_cds;
14938fi
14939
14940case "$enable_rrtype_cds" in
14941	yes)
14942
14943cat >>confdefs.h <<_ACEOF
14944#define RRTYPE_CDS /**/
14945_ACEOF
14946
14947		;;
14948	no|*)
14949		;;
14950esac
14951# Check whether --enable-rrtype-uri was given.
14952if test "${enable_rrtype_uri+set}" = set; then :
14953  enableval=$enable_rrtype_uri;
14954fi
14955
14956case "$enable_rrtype_uri" in
14957	yes)
14958
14959cat >>confdefs.h <<_ACEOF
14960#define RRTYPE_URI /**/
14961_ACEOF
14962
14963		;;
14964	no|*)
14965		;;
14966esac
14967# Check whether --enable-rrtype-ta was given.
14968if test "${enable_rrtype_ta+set}" = set; then :
14969  enableval=$enable_rrtype_ta;
14970fi
14971
14972case "$enable_rrtype_ta" in
14973	yes)
14974
14975cat >>confdefs.h <<_ACEOF
14976#define RRTYPE_TA /**/
14977_ACEOF
14978
14979		;;
14980	no|*)
14981		;;
14982esac
14983
14984
14985
14986
14987if test "x$HAVE_SSL" = "xyes"; then
14988LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
14989
14990fi
14991CPPFLAGS=$tmp_CPPFLAGS
14992LDFLAGS=$tmp_LDFLAGS
14993LIBS=$tmp_LIBS
14994
14995
14996# add option to disable the evil rpath
14997
14998# Check whether --enable-rpath was given.
14999if test "${enable_rpath+set}" = set; then :
15000  enableval=$enable_rpath; enable_rpath=$enableval
15001else
15002  enable_rpath=yes
15003fi
15004
15005if test "x$enable_rpath" = xno; then
15006		ac_config_commands="$ac_config_commands disable-rpath"
15007
15008fi
15009
15010
15011#AC_RUN_IFELSE([AC_LANG_SOURCE(
15012#[
15013#int main()
15014#{
15015#short one = 1;
15016#char *cp = (char*)&one;
15017#if ( *cp == 0 )
15018#return(0);
15019#else
15020#return(1);
15021#}
15022#])], [],[
15023#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
15024#],[])
15025
15026# should define WORDS_BIGENDIAN if the system is big-endian
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15028$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15029if ${ac_cv_c_bigendian+:} false; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  ac_cv_c_bigendian=unknown
15033    # See if we're dealing with a universal compiler.
15034    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036#ifndef __APPLE_CC__
15037	       not a universal capable compiler
15038	     #endif
15039	     typedef int dummy;
15040
15041_ACEOF
15042if ac_fn_c_try_compile "$LINENO"; then :
15043
15044	# Check for potential -arch flags.  It is not universal unless
15045	# there are at least two -arch flags with different values.
15046	ac_arch=
15047	ac_prev=
15048	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15049	 if test -n "$ac_prev"; then
15050	   case $ac_word in
15051	     i?86 | x86_64 | ppc | ppc64)
15052	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15053		 ac_arch=$ac_word
15054	       else
15055		 ac_cv_c_bigendian=universal
15056		 break
15057	       fi
15058	       ;;
15059	   esac
15060	   ac_prev=
15061	 elif test "x$ac_word" = "x-arch"; then
15062	   ac_prev=arch
15063	 fi
15064       done
15065fi
15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067    if test $ac_cv_c_bigendian = unknown; then
15068      # See if sys/param.h defines the BYTE_ORDER macro.
15069      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070/* end confdefs.h.  */
15071#include <sys/types.h>
15072	     #include <sys/param.h>
15073
15074int
15075main ()
15076{
15077#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15078		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15079		     && LITTLE_ENDIAN)
15080	      bogus endian macros
15081	     #endif
15082
15083  ;
15084  return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_compile "$LINENO"; then :
15088  # It does; now see whether it defined to BIG_ENDIAN or not.
15089	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090/* end confdefs.h.  */
15091#include <sys/types.h>
15092		#include <sys/param.h>
15093
15094int
15095main ()
15096{
15097#if BYTE_ORDER != BIG_ENDIAN
15098		 not big endian
15099		#endif
15100
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_compile "$LINENO"; then :
15106  ac_cv_c_bigendian=yes
15107else
15108  ac_cv_c_bigendian=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111fi
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113    fi
15114    if test $ac_cv_c_bigendian = unknown; then
15115      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15116      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118#include <limits.h>
15119
15120int
15121main ()
15122{
15123#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15124	      bogus endian macros
15125	     #endif
15126
15127  ;
15128  return 0;
15129}
15130_ACEOF
15131if ac_fn_c_try_compile "$LINENO"; then :
15132  # It does; now see whether it defined to _BIG_ENDIAN or not.
15133	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135#include <limits.h>
15136
15137int
15138main ()
15139{
15140#ifndef _BIG_ENDIAN
15141		 not big endian
15142		#endif
15143
15144  ;
15145  return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_compile "$LINENO"; then :
15149  ac_cv_c_bigendian=yes
15150else
15151  ac_cv_c_bigendian=no
15152fi
15153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154fi
15155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156    fi
15157    if test $ac_cv_c_bigendian = unknown; then
15158      # Compile a test program.
15159      if test "$cross_compiling" = yes; then :
15160  # Try to guess by grepping values from an object file.
15161	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162/* end confdefs.h.  */
15163short int ascii_mm[] =
15164		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15165		short int ascii_ii[] =
15166		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15167		int use_ascii (int i) {
15168		  return ascii_mm[i] + ascii_ii[i];
15169		}
15170		short int ebcdic_ii[] =
15171		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15172		short int ebcdic_mm[] =
15173		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15174		int use_ebcdic (int i) {
15175		  return ebcdic_mm[i] + ebcdic_ii[i];
15176		}
15177		extern int foo;
15178
15179int
15180main ()
15181{
15182return use_ascii (foo) == use_ebcdic (foo);
15183  ;
15184  return 0;
15185}
15186_ACEOF
15187if ac_fn_c_try_compile "$LINENO"; then :
15188  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15189	      ac_cv_c_bigendian=yes
15190	    fi
15191	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15192	      if test "$ac_cv_c_bigendian" = unknown; then
15193		ac_cv_c_bigendian=no
15194	      else
15195		# finding both strings is unlikely to happen, but who knows?
15196		ac_cv_c_bigendian=unknown
15197	      fi
15198	    fi
15199fi
15200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201else
15202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204$ac_includes_default
15205int
15206main ()
15207{
15208
15209	     /* Are we little or big endian?  From Harbison&Steele.  */
15210	     union
15211	     {
15212	       long int l;
15213	       char c[sizeof (long int)];
15214	     } u;
15215	     u.l = 1;
15216	     return u.c[sizeof (long int) - 1] == 1;
15217
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_run "$LINENO"; then :
15223  ac_cv_c_bigendian=no
15224else
15225  ac_cv_c_bigendian=yes
15226fi
15227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15228  conftest.$ac_objext conftest.beam conftest.$ac_ext
15229fi
15230
15231    fi
15232fi
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15234$as_echo "$ac_cv_c_bigendian" >&6; }
15235 case $ac_cv_c_bigendian in #(
15236   yes)
15237     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15238;; #(
15239   no)
15240      ;; #(
15241   universal)
15242
15243$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15244
15245     ;; #(
15246   *)
15247     as_fn_error $? "unknown endianness
15248 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15249 esac
15250
15251
15252# Checks for header files.
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15254$as_echo_n "checking for ANSI C header files... " >&6; }
15255if ${ac_cv_header_stdc+:} false; then :
15256  $as_echo_n "(cached) " >&6
15257else
15258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259/* end confdefs.h.  */
15260#include <stdlib.h>
15261#include <stdarg.h>
15262#include <string.h>
15263#include <float.h>
15264
15265int
15266main ()
15267{
15268
15269  ;
15270  return 0;
15271}
15272_ACEOF
15273if ac_fn_c_try_compile "$LINENO"; then :
15274  ac_cv_header_stdc=yes
15275else
15276  ac_cv_header_stdc=no
15277fi
15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279
15280if test $ac_cv_header_stdc = yes; then
15281  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283/* end confdefs.h.  */
15284#include <string.h>
15285
15286_ACEOF
15287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15288  $EGREP "memchr" >/dev/null 2>&1; then :
15289
15290else
15291  ac_cv_header_stdc=no
15292fi
15293rm -f conftest*
15294
15295fi
15296
15297if test $ac_cv_header_stdc = yes; then
15298  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300/* end confdefs.h.  */
15301#include <stdlib.h>
15302
15303_ACEOF
15304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15305  $EGREP "free" >/dev/null 2>&1; then :
15306
15307else
15308  ac_cv_header_stdc=no
15309fi
15310rm -f conftest*
15311
15312fi
15313
15314if test $ac_cv_header_stdc = yes; then
15315  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15316  if test "$cross_compiling" = yes; then :
15317  :
15318else
15319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320/* end confdefs.h.  */
15321#include <ctype.h>
15322#include <stdlib.h>
15323#if ((' ' & 0x0FF) == 0x020)
15324# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15325# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15326#else
15327# define ISLOWER(c) \
15328		   (('a' <= (c) && (c) <= 'i') \
15329		     || ('j' <= (c) && (c) <= 'r') \
15330		     || ('s' <= (c) && (c) <= 'z'))
15331# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15332#endif
15333
15334#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15335int
15336main ()
15337{
15338  int i;
15339  for (i = 0; i < 256; i++)
15340    if (XOR (islower (i), ISLOWER (i))
15341	|| toupper (i) != TOUPPER (i))
15342      return 2;
15343  return 0;
15344}
15345_ACEOF
15346if ac_fn_c_try_run "$LINENO"; then :
15347
15348else
15349  ac_cv_header_stdc=no
15350fi
15351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15352  conftest.$ac_objext conftest.beam conftest.$ac_ext
15353fi
15354
15355fi
15356fi
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15358$as_echo "$ac_cv_header_stdc" >&6; }
15359if test $ac_cv_header_stdc = yes; then
15360
15361$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15362
15363fi
15364
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15366$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15367if ${ac_cv_header_stdbool_h+:} false; then :
15368  $as_echo_n "(cached) " >&6
15369else
15370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371/* end confdefs.h.  */
15372
15373#include <stdbool.h>
15374#ifndef bool
15375 "error: bool is not defined"
15376#endif
15377#ifndef false
15378 "error: false is not defined"
15379#endif
15380#if false
15381 "error: false is not 0"
15382#endif
15383#ifndef true
15384 "error: true is not defined"
15385#endif
15386#if true != 1
15387 "error: true is not 1"
15388#endif
15389#ifndef __bool_true_false_are_defined
15390 "error: __bool_true_false_are_defined is not defined"
15391#endif
15392
15393	struct s { _Bool s: 1; _Bool t; } s;
15394
15395	char a[true == 1 ? 1 : -1];
15396	char b[false == 0 ? 1 : -1];
15397	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15398	char d[(bool) 0.5 == true ? 1 : -1];
15399	/* See body of main program for 'e'.  */
15400	char f[(_Bool) 0.0 == false ? 1 : -1];
15401	char g[true];
15402	char h[sizeof (_Bool)];
15403	char i[sizeof s.t];
15404	enum { j = false, k = true, l = false * true, m = true * 256 };
15405	/* The following fails for
15406	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15407	_Bool n[m];
15408	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15409	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15410	/* Catch a bug in an HP-UX C compiler.  See
15411	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15412	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15413	 */
15414	_Bool q = true;
15415	_Bool *pq = &q;
15416
15417int
15418main ()
15419{
15420
15421	bool e = &s;
15422	*pq |= q;
15423	*pq |= ! q;
15424	/* Refer to every declared value, to avoid compiler optimizations.  */
15425	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15426		+ !m + !n + !o + !p + !q + !pq);
15427
15428  ;
15429  return 0;
15430}
15431_ACEOF
15432if ac_fn_c_try_compile "$LINENO"; then :
15433  ac_cv_header_stdbool_h=yes
15434else
15435  ac_cv_header_stdbool_h=no
15436fi
15437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438fi
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15440$as_echo "$ac_cv_header_stdbool_h" >&6; }
15441ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15442if test "x$ac_cv_type__Bool" = xyes; then :
15443
15444cat >>confdefs.h <<_ACEOF
15445#define HAVE__BOOL 1
15446_ACEOF
15447
15448
15449fi
15450
15451if test $ac_cv_header_stdbool_h = yes; then
15452
15453$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15454
15455fi
15456
15457#AC_HEADER_SYS_WAIT
15458#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
15459# do the very minimum - we can always extend this
15460for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
15461do :
15462  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15463ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15464"
15465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15466  cat >>confdefs.h <<_ACEOF
15467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468_ACEOF
15469
15470fi
15471
15472done
15473
15474for ac_header in sys/param.h sys/mount.h
15475do :
15476  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15478
15479   #if HAVE_SYS_PARAM_H
15480   # include <sys/param.h>
15481   #endif
15482
15483
15484"
15485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15486  cat >>confdefs.h <<_ACEOF
15487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15488_ACEOF
15489
15490fi
15491
15492done
15493
15494ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15495
15496   #if HAVE_SYS_PARAM_H
15497   # include <sys/param.h>
15498   #endif
15499
15500
15501"
15502if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15503
15504include_sys_socket_h='#include <sys/socket.h>'
15505
15506$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15507
15508
15509else
15510
15511include_sys_socket_h=''
15512
15513fi
15514
15515
15516
15517ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
15518
15519"
15520if test "x$ac_cv_header_inttypes_h" = xyes; then :
15521
15522include_inttypes_h='#include <inttypes.h>'
15523
15524$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
15525
15526ldns_build_config_have_inttypes_h=1
15527
15528
15529else
15530
15531include_inttypes_h=''
15532ldns_build_config_have_inttypes_h=0
15533
15534
15535fi
15536
15537
15538
15539ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
15540
15541"
15542if test "x$ac_cv_header_sys_types_h" = xyes; then :
15543
15544include_systypes_h='#include <sys/types.h>'
15545
15546$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15547
15548
15549else
15550
15551include_systypes_h=''
15552
15553fi
15554
15555
15556
15557ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
15558
15559"
15560if test "x$ac_cv_header_unistd_h" = xyes; then :
15561
15562include_unistd_h='#include <unistd.h>'
15563
15564$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
15565
15566
15567else
15568
15569include_unistd_h=''
15570
15571fi
15572
15573
15574
15575
15576# The cast to long int works around a bug in the HP C Compiler
15577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15579# This bug is HP SR number 8606223364.
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15581$as_echo_n "checking size of time_t... " >&6; }
15582if ${ac_cv_sizeof_time_t+:} false; then :
15583  $as_echo_n "(cached) " >&6
15584else
15585  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15586$ac_includes_default
15587#ifdef TIME_WITH_SYS_TIME
15588# include <sys/time.h>
15589# include <time.h>
15590#else
15591# ifdef HAVE_SYS_TIME_H
15592#  include <sys/time.h>
15593# else
15594#  include <time.h>
15595# endif
15596#endif
15597
15598"; then :
15599
15600else
15601  if test "$ac_cv_type_time_t" = yes; then
15602     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15604as_fn_error 77 "cannot compute sizeof (time_t)
15605See \`config.log' for more details" "$LINENO" 5; }
15606   else
15607     ac_cv_sizeof_time_t=0
15608   fi
15609fi
15610
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15613$as_echo "$ac_cv_sizeof_time_t" >&6; }
15614
15615
15616
15617cat >>confdefs.h <<_ACEOF
15618#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15619_ACEOF
15620
15621
15622
15623if test x_$with_examples != x_no; then
15624for ac_header in pcap.h
15625do :
15626  ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
15627"
15628if test "x$ac_cv_header_pcap_h" = xyes; then :
15629  cat >>confdefs.h <<_ACEOF
15630#define HAVE_PCAP_H 1
15631_ACEOF
15632
15633fi
15634
15635done
15636
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
15638$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
15639if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
15640  $as_echo_n "(cached) " >&6
15641else
15642  ac_check_lib_save_LIBS=$LIBS
15643LIBS="-lpcap  $LIBS"
15644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h.  */
15646
15647/* Override any GCC internal prototype to avoid an error.
15648   Use char because int might match the return type of a GCC
15649   builtin and then its argument prototype would still apply.  */
15650#ifdef __cplusplus
15651extern "C"
15652#endif
15653char pcap_open_offline ();
15654int
15655main ()
15656{
15657return pcap_open_offline ();
15658  ;
15659  return 0;
15660}
15661_ACEOF
15662if ac_fn_c_try_link "$LINENO"; then :
15663  ac_cv_lib_pcap_pcap_open_offline=yes
15664else
15665  ac_cv_lib_pcap_pcap_open_offline=no
15666fi
15667rm -f core conftest.err conftest.$ac_objext \
15668    conftest$ac_exeext conftest.$ac_ext
15669LIBS=$ac_check_lib_save_LIBS
15670fi
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
15672$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
15673if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
15674
15675
15676$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
15677	LIBPCAP_LIBS=-lpcap
15678
15679
15680else
15681
15682	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
15683$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
15684
15685
15686fi
15687
15688for 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
15689do :
15690  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15691ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15692$ac_includes_default
15693#ifdef HAVE_NETINET_IN_SYSTM_H
15694#include <netinet/in_systm.h>
15695#endif
15696#ifdef HAVE_NETINET_IN_H
15697#include <netinet/in.h>
15698#endif
15699#ifdef HAVE_SYS_SOCKET_H
15700#include <sys/socket.h>
15701#endif
15702#ifdef HAVE_NET_IF_H
15703#include <net/if.h>
15704#endif
15705"
15706if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15707  cat >>confdefs.h <<_ACEOF
15708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15709_ACEOF
15710
15711fi
15712
15713done
15714
15715fi
15716
15717
15718ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15719$ac_includes_default
15720#ifdef HAVE_SYS_SOCKET_H
15721#  include <sys/socket.h>
15722#endif
15723#ifdef HAVE_WS2TCPIP_H
15724#  include <ws2tcpip.h>
15725#endif
15726
15727"
15728if test "x$ac_cv_type_socklen_t" = xyes; then :
15729
15730else
15731
15732$as_echo "#define socklen_t int" >>confdefs.h
15733
15734fi
15735
15736if test "x$ac_cv_type_socklen_t" = xyes; then
15737  ldns_build_config_have_socklen_t=1
15738
15739else
15740  ldns_build_config_have_socklen_t=0
15741
15742fi
15743ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15744if test "x$ac_cv_type_size_t" = xyes; then :
15745
15746else
15747
15748cat >>confdefs.h <<_ACEOF
15749#define size_t unsigned int
15750_ACEOF
15751
15752fi
15753
15754ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15755if test "x$ac_cv_type_ssize_t" = xyes; then :
15756
15757else
15758
15759cat >>confdefs.h <<_ACEOF
15760#define ssize_t int
15761_ACEOF
15762
15763fi
15764
15765ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15766if test "x$ac_cv_type_intptr_t" = xyes; then :
15767
15768else
15769
15770cat >>confdefs.h <<_ACEOF
15771#define intptr_t size_t
15772_ACEOF
15773
15774fi
15775
15776ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15777#if HAVE_SYS_TYPES_H
15778# include <sys/types.h>
15779#endif
15780#if HAVE_NETINET_IN_H
15781# include <netinet/in.h>
15782#endif
15783"
15784if test "x$ac_cv_type_in_addr_t" = xyes; then :
15785
15786else
15787
15788$as_echo "#define in_addr_t uint32_t" >>confdefs.h
15789
15790fi
15791
15792ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15793#if HAVE_SYS_TYPES_H
15794# include <sys/types.h>
15795#endif
15796#if HAVE_NETINET_IN_H
15797# include <netinet/in.h>
15798#endif
15799"
15800if test "x$ac_cv_type_in_port_t" = xyes; then :
15801
15802else
15803
15804$as_echo "#define in_port_t uint16_t" >>confdefs.h
15805
15806fi
15807
15808ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
15809#ifdef HAVE_NETINET_IN_H
15810#include <netinet/in.h>
15811#endif
15812#ifdef HAVE_SYS_SOCKET_H
15813#include <sys/socket.h>
15814#endif
15815#ifdef HAVE_NETDB_H
15816#include <netdb.h>
15817#endif
15818#ifdef HAVE_ARPA_INET_H
15819#include <arpa/inet.h>
15820#endif
15821
15822"
15823if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15824
15825else
15826
15827        ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
15828#ifdef HAVE_NETINET_IN_H
15829#include <netinet/in.h>
15830#endif
15831#ifdef HAVE_SYS_SOCKET_H
15832#include <sys/socket.h>
15833#endif
15834#ifdef HAVE_NETDB_H
15835#include <netdb.h>
15836#endif
15837#ifdef HAVE_ARPA_INET_H
15838#include <arpa/inet.h>
15839#endif
15840
15841"
15842if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15843
15844
15845$as_echo "#define ss_family __ss_family" >>confdefs.h
15846
15847
15848fi
15849
15850
15851fi
15852
15853
15854for ac_header in stdlib.h
15855do :
15856  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15857if test "x$ac_cv_header_stdlib_h" = xyes; then :
15858  cat >>confdefs.h <<_ACEOF
15859#define HAVE_STDLIB_H 1
15860_ACEOF
15861
15862fi
15863
15864done
15865
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15867$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15868if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15869  $as_echo_n "(cached) " >&6
15870else
15871  if test "$cross_compiling" = yes; then :
15872  ac_cv_func_malloc_0_nonnull=no
15873else
15874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875/* end confdefs.h.  */
15876#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15877# include <stdlib.h>
15878#else
15879char *malloc ();
15880#endif
15881
15882int
15883main ()
15884{
15885return ! malloc (0);
15886  ;
15887  return 0;
15888}
15889_ACEOF
15890if ac_fn_c_try_run "$LINENO"; then :
15891  ac_cv_func_malloc_0_nonnull=yes
15892else
15893  ac_cv_func_malloc_0_nonnull=no
15894fi
15895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15896  conftest.$ac_objext conftest.beam conftest.$ac_ext
15897fi
15898
15899fi
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15901$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15902if test $ac_cv_func_malloc_0_nonnull = yes; then :
15903
15904$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15905
15906else
15907  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15908
15909   case " $LIBOBJS " in
15910  *" malloc.$ac_objext "* ) ;;
15911  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15912 ;;
15913esac
15914
15915
15916$as_echo "#define malloc rpl_malloc" >>confdefs.h
15917
15918fi
15919
15920
15921for ac_header in stdlib.h
15922do :
15923  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15924if test "x$ac_cv_header_stdlib_h" = xyes; then :
15925  cat >>confdefs.h <<_ACEOF
15926#define HAVE_STDLIB_H 1
15927_ACEOF
15928
15929fi
15930
15931done
15932
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15934$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15935if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15936  $as_echo_n "(cached) " >&6
15937else
15938  if test "$cross_compiling" = yes; then :
15939  ac_cv_func_realloc_0_nonnull=no
15940else
15941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h.  */
15943#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15944# include <stdlib.h>
15945#else
15946char *realloc ();
15947#endif
15948
15949int
15950main ()
15951{
15952return ! realloc (0, 0);
15953  ;
15954  return 0;
15955}
15956_ACEOF
15957if ac_fn_c_try_run "$LINENO"; then :
15958  ac_cv_func_realloc_0_nonnull=yes
15959else
15960  ac_cv_func_realloc_0_nonnull=no
15961fi
15962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15963  conftest.$ac_objext conftest.beam conftest.$ac_ext
15964fi
15965
15966fi
15967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15968$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15969if test $ac_cv_func_realloc_0_nonnull = yes; then :
15970
15971$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15972
15973else
15974  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15975
15976   case " $LIBOBJS " in
15977  *" realloc.$ac_objext "* ) ;;
15978  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15979 ;;
15980esac
15981
15982
15983$as_echo "#define realloc rpl_realloc" >>confdefs.h
15984
15985fi
15986
15987
15988
15989ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
15990if test "x$ac_cv_func_b64_pton" = xyes; then :
15991  $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
15992
15993else
15994  case " $LIBOBJS " in
15995  *" b64_pton.$ac_objext "* ) ;;
15996  *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
15997 ;;
15998esac
15999
16000fi
16001
16002
16003ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
16004if test "x$ac_cv_func_b64_ntop" = xyes; then :
16005  $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
16006
16007else
16008  case " $LIBOBJS " in
16009  *" b64_ntop.$ac_objext "* ) ;;
16010  *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
16011 ;;
16012esac
16013
16014fi
16015
16016
16017ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
16018if test "x$ac_cv_func_calloc" = xyes; then :
16019  $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
16020
16021else
16022  case " $LIBOBJS " in
16023  *" calloc.$ac_objext "* ) ;;
16024  *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
16025 ;;
16026esac
16027
16028fi
16029
16030
16031ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
16032if test "x$ac_cv_func_timegm" = xyes; then :
16033  $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
16034
16035else
16036  case " $LIBOBJS " in
16037  *" timegm.$ac_objext "* ) ;;
16038  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
16039 ;;
16040esac
16041
16042fi
16043
16044
16045ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16046if test "x$ac_cv_func_gmtime_r" = xyes; then :
16047  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16048
16049else
16050  case " $LIBOBJS " in
16051  *" gmtime_r.$ac_objext "* ) ;;
16052  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
16053 ;;
16054esac
16055
16056fi
16057
16058
16059ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
16060if test "x$ac_cv_func_ctime_r" = xyes; then :
16061  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
16062
16063else
16064  case " $LIBOBJS " in
16065  *" ctime_r.$ac_objext "* ) ;;
16066  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
16067 ;;
16068esac
16069
16070fi
16071
16072
16073ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16074if test "x$ac_cv_func_localtime_r" = xyes; then :
16075  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16076
16077else
16078  case " $LIBOBJS " in
16079  *" localtime_r.$ac_objext "* ) ;;
16080  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
16081 ;;
16082esac
16083
16084fi
16085
16086
16087ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
16088if test "x$ac_cv_func_isblank" = xyes; then :
16089  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16090
16091else
16092  case " $LIBOBJS " in
16093  *" isblank.$ac_objext "* ) ;;
16094  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16095 ;;
16096esac
16097
16098fi
16099
16100
16101ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
16102if test "x$ac_cv_func_isascii" = xyes; then :
16103  $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
16104
16105else
16106  case " $LIBOBJS " in
16107  *" isascii.$ac_objext "* ) ;;
16108  *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
16109 ;;
16110esac
16111
16112fi
16113
16114
16115ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16116if test "x$ac_cv_func_inet_aton" = xyes; then :
16117  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16118
16119else
16120  case " $LIBOBJS " in
16121  *" inet_aton.$ac_objext "* ) ;;
16122  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
16123 ;;
16124esac
16125
16126fi
16127
16128
16129ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16130if test "x$ac_cv_func_inet_pton" = xyes; then :
16131  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
16132
16133else
16134  case " $LIBOBJS " in
16135  *" inet_pton.$ac_objext "* ) ;;
16136  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
16137 ;;
16138esac
16139
16140fi
16141
16142
16143ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16144if test "x$ac_cv_func_inet_ntop" = xyes; then :
16145  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
16146
16147else
16148  case " $LIBOBJS " in
16149  *" inet_ntop.$ac_objext "* ) ;;
16150  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
16151 ;;
16152esac
16153
16154fi
16155
16156
16157ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16158if test "x$ac_cv_func_snprintf" = xyes; then :
16159  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16160
16161else
16162  case " $LIBOBJS " in
16163  *" snprintf.$ac_objext "* ) ;;
16164  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16165 ;;
16166esac
16167
16168fi
16169
16170
16171ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16172if test "x$ac_cv_func_strlcpy" = xyes; then :
16173  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16174
16175else
16176  case " $LIBOBJS " in
16177  *" strlcpy.$ac_objext "* ) ;;
16178  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16179 ;;
16180esac
16181
16182fi
16183
16184
16185ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16186if test "x$ac_cv_func_memmove" = xyes; then :
16187  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
16188
16189else
16190  case " $LIBOBJS " in
16191  *" memmove.$ac_objext "* ) ;;
16192  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
16193 ;;
16194esac
16195
16196fi
16197
16198
16199ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16200if test "x$ac_cv_type_pid_t" = xyes; then :
16201
16202else
16203
16204cat >>confdefs.h <<_ACEOF
16205#define pid_t int
16206_ACEOF
16207
16208fi
16209
16210for ac_header in vfork.h
16211do :
16212  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16213if test "x$ac_cv_header_vfork_h" = xyes; then :
16214  cat >>confdefs.h <<_ACEOF
16215#define HAVE_VFORK_H 1
16216_ACEOF
16217
16218fi
16219
16220done
16221
16222for ac_func in fork vfork
16223do :
16224  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16225ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16226if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16227  cat >>confdefs.h <<_ACEOF
16228#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16229_ACEOF
16230
16231fi
16232done
16233
16234if test "x$ac_cv_func_fork" = xyes; then
16235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16236$as_echo_n "checking for working fork... " >&6; }
16237if ${ac_cv_func_fork_works+:} false; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240  if test "$cross_compiling" = yes; then :
16241  ac_cv_func_fork_works=cross
16242else
16243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245$ac_includes_default
16246int
16247main ()
16248{
16249
16250	  /* By Ruediger Kuhlmann. */
16251	  return fork () < 0;
16252
16253  ;
16254  return 0;
16255}
16256_ACEOF
16257if ac_fn_c_try_run "$LINENO"; then :
16258  ac_cv_func_fork_works=yes
16259else
16260  ac_cv_func_fork_works=no
16261fi
16262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16263  conftest.$ac_objext conftest.beam conftest.$ac_ext
16264fi
16265
16266fi
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16268$as_echo "$ac_cv_func_fork_works" >&6; }
16269
16270else
16271  ac_cv_func_fork_works=$ac_cv_func_fork
16272fi
16273if test "x$ac_cv_func_fork_works" = xcross; then
16274  case $host in
16275    *-*-amigaos* | *-*-msdosdjgpp*)
16276      # Override, as these systems have only a dummy fork() stub
16277      ac_cv_func_fork_works=no
16278      ;;
16279    *)
16280      ac_cv_func_fork_works=yes
16281      ;;
16282  esac
16283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16284$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16285fi
16286ac_cv_func_vfork_works=$ac_cv_func_vfork
16287if test "x$ac_cv_func_vfork" = xyes; then
16288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16289$as_echo_n "checking for working vfork... " >&6; }
16290if ${ac_cv_func_vfork_works+:} false; then :
16291  $as_echo_n "(cached) " >&6
16292else
16293  if test "$cross_compiling" = yes; then :
16294  ac_cv_func_vfork_works=cross
16295else
16296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h.  */
16298/* Thanks to Paul Eggert for this test.  */
16299$ac_includes_default
16300#include <sys/wait.h>
16301#ifdef HAVE_VFORK_H
16302# include <vfork.h>
16303#endif
16304/* On some sparc systems, changes by the child to local and incoming
16305   argument registers are propagated back to the parent.  The compiler
16306   is told about this with #include <vfork.h>, but some compilers
16307   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16308   static variable whose address is put into a register that is
16309   clobbered by the vfork.  */
16310static void
16311#ifdef __cplusplus
16312sparc_address_test (int arg)
16313# else
16314sparc_address_test (arg) int arg;
16315#endif
16316{
16317  static pid_t child;
16318  if (!child) {
16319    child = vfork ();
16320    if (child < 0) {
16321      perror ("vfork");
16322      _exit(2);
16323    }
16324    if (!child) {
16325      arg = getpid();
16326      write(-1, "", 0);
16327      _exit (arg);
16328    }
16329  }
16330}
16331
16332int
16333main ()
16334{
16335  pid_t parent = getpid ();
16336  pid_t child;
16337
16338  sparc_address_test (0);
16339
16340  child = vfork ();
16341
16342  if (child == 0) {
16343    /* Here is another test for sparc vfork register problems.  This
16344       test uses lots of local variables, at least as many local
16345       variables as main has allocated so far including compiler
16346       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16347       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16348       reuse the register of parent for one of the local variables,
16349       since it will think that parent can't possibly be used any more
16350       in this routine.  Assigning to the local variable will thus
16351       munge parent in the parent process.  */
16352    pid_t
16353      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16354      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16355    /* Convince the compiler that p..p7 are live; otherwise, it might
16356       use the same hardware register for all 8 local variables.  */
16357    if (p != p1 || p != p2 || p != p3 || p != p4
16358	|| p != p5 || p != p6 || p != p7)
16359      _exit(1);
16360
16361    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16362       from child file descriptors.  If the child closes a descriptor
16363       before it execs or exits, this munges the parent's descriptor
16364       as well.  Test for this by closing stdout in the child.  */
16365    _exit(close(fileno(stdout)) != 0);
16366  } else {
16367    int status;
16368    struct stat st;
16369
16370    while (wait(&status) != child)
16371      ;
16372    return (
16373	 /* Was there some problem with vforking?  */
16374	 child < 0
16375
16376	 /* Did the child fail?  (This shouldn't happen.)  */
16377	 || status
16378
16379	 /* Did the vfork/compiler bug occur?  */
16380	 || parent != getpid()
16381
16382	 /* Did the file descriptor bug occur?  */
16383	 || fstat(fileno(stdout), &st) != 0
16384	 );
16385  }
16386}
16387_ACEOF
16388if ac_fn_c_try_run "$LINENO"; then :
16389  ac_cv_func_vfork_works=yes
16390else
16391  ac_cv_func_vfork_works=no
16392fi
16393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16394  conftest.$ac_objext conftest.beam conftest.$ac_ext
16395fi
16396
16397fi
16398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16399$as_echo "$ac_cv_func_vfork_works" >&6; }
16400
16401fi;
16402if test "x$ac_cv_func_fork_works" = xcross; then
16403  ac_cv_func_vfork_works=$ac_cv_func_vfork
16404  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16405$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16406fi
16407
16408if test "x$ac_cv_func_vfork_works" = xyes; then
16409
16410$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16411
16412else
16413
16414$as_echo "#define vfork fork" >>confdefs.h
16415
16416fi
16417if test "x$ac_cv_func_fork_works" = xyes; then
16418
16419$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16420
16421fi
16422
16423for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
16424do :
16425  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16426ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16427if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16428  cat >>confdefs.h <<_ACEOF
16429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16430_ACEOF
16431
16432fi
16433done
16434
16435if test "x$HAVE_B32_NTOP" = "xyes"; then
16436	ldns_build_config_have_b32_ntop=1
16437
16438else
16439	ldns_build_config_have_b32_ntop=0
16440
16441fi
16442if test "x$HAVE_B32_PTON" = "xyes"; then
16443	ldns_build_config_have_b32_pton=1
16444
16445else
16446	ldns_build_config_have_b32_pton=0
16447
16448fi
16449
16450
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16452$as_echo_n "checking for getaddrinfo... " >&6; }
16453ac_cv_func_getaddrinfo=no
16454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455/* end confdefs.h.  */
16456
16457#ifdef __cplusplus
16458extern "C"
16459{
16460#endif
16461char* getaddrinfo();
16462char* (*f) () = getaddrinfo;
16463#ifdef __cplusplus
16464}
16465#endif
16466int main() {
16467        ;
16468        return 0;
16469}
16470
16471_ACEOF
16472if ac_fn_c_try_link "$LINENO"; then :
16473  ac_cv_func_getaddrinfo="yes"
16474if test "$ac_cv_header_windows_h" = "yes"; then
16475
16476$as_echo "#define USE_WINSOCK 1" >>confdefs.h
16477
16478	USE_WINSOCK="1"
16479	LIBS="$LIBS -lws2_32"
16480fi
16481
16482else
16483  ORIGLIBS="$LIBS"
16484LIBS="$LIBS -lws2_32"
16485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h.  */
16487
16488#ifdef HAVE_WS2TCPIP_H
16489#include <ws2tcpip.h>
16490#endif
16491
16492int
16493main ()
16494{
16495
16496        (void)getaddrinfo(NULL, NULL, NULL, NULL);
16497
16498
16499  ;
16500  return 0;
16501}
16502_ACEOF
16503if ac_fn_c_try_link "$LINENO"; then :
16504
16505ac_cv_func_getaddrinfo="yes"
16506
16507$as_echo "#define USE_WINSOCK 1" >>confdefs.h
16508
16509USE_WINSOCK="1"
16510
16511else
16512
16513ac_cv_func_getaddrinfo="no"
16514LIBS="$ORIGLIBS"
16515
16516fi
16517rm -f core conftest.err conftest.$ac_objext \
16518    conftest$ac_exeext conftest.$ac_ext
16519
16520fi
16521rm -f core conftest.err conftest.$ac_objext \
16522    conftest$ac_exeext conftest.$ac_ext
16523
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
16525$as_echo "$ac_cv_func_getaddrinfo" >&6; }
16526if test $ac_cv_func_getaddrinfo = yes; then
16527
16528$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16529
16530fi
16531
16532if test $ac_cv_func_getaddrinfo = no; then
16533	case " $LIBOBJS " in
16534  *" fake-rfc2553.$ac_objext "* ) ;;
16535  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
16536 ;;
16537esac
16538
16539fi
16540if test "$USE_WINSOCK" = 1; then
16541	if test -n "$ac_tool_prefix"; then
16542  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16543set dummy ${ac_tool_prefix}windres; ac_word=$2
16544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16545$as_echo_n "checking for $ac_word... " >&6; }
16546if ${ac_cv_prog_WINDRES+:} false; then :
16547  $as_echo_n "(cached) " >&6
16548else
16549  if test -n "$WINDRES"; then
16550  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16551else
16552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553for as_dir in $PATH
16554do
16555  IFS=$as_save_IFS
16556  test -z "$as_dir" && as_dir=.
16557    for ac_exec_ext in '' $ac_executable_extensions; do
16558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16559    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16561    break 2
16562  fi
16563done
16564  done
16565IFS=$as_save_IFS
16566
16567fi
16568fi
16569WINDRES=$ac_cv_prog_WINDRES
16570if test -n "$WINDRES"; then
16571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
16572$as_echo "$WINDRES" >&6; }
16573else
16574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575$as_echo "no" >&6; }
16576fi
16577
16578
16579fi
16580if test -z "$ac_cv_prog_WINDRES"; then
16581  ac_ct_WINDRES=$WINDRES
16582  # Extract the first word of "windres", so it can be a program name with args.
16583set dummy windres; ac_word=$2
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16585$as_echo_n "checking for $ac_word... " >&6; }
16586if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
16587  $as_echo_n "(cached) " >&6
16588else
16589  if test -n "$ac_ct_WINDRES"; then
16590  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16591else
16592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593for as_dir in $PATH
16594do
16595  IFS=$as_save_IFS
16596  test -z "$as_dir" && as_dir=.
16597    for ac_exec_ext in '' $ac_executable_extensions; do
16598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16599    ac_cv_prog_ac_ct_WINDRES="windres"
16600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16601    break 2
16602  fi
16603done
16604  done
16605IFS=$as_save_IFS
16606
16607fi
16608fi
16609ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16610if test -n "$ac_ct_WINDRES"; then
16611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
16612$as_echo "$ac_ct_WINDRES" >&6; }
16613else
16614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615$as_echo "no" >&6; }
16616fi
16617
16618  if test "x$ac_ct_WINDRES" = x; then
16619    WINDRES=""
16620  else
16621    case $cross_compiling:$ac_tool_warned in
16622yes:)
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16625ac_tool_warned=yes ;;
16626esac
16627    WINDRES=$ac_ct_WINDRES
16628  fi
16629else
16630  WINDRES="$ac_cv_prog_WINDRES"
16631fi
16632
16633fi
16634
16635# check ioctlsocket
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16637$as_echo_n "checking for ioctlsocket... " >&6; }
16638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640
16641#ifdef HAVE_WINSOCK2_H
16642#include <winsock2.h>
16643#endif
16644
16645int
16646main ()
16647{
16648
16649	(void)ioctlsocket(0, 0, NULL);
16650
16651  ;
16652  return 0;
16653}
16654_ACEOF
16655if ac_fn_c_try_link "$LINENO"; then :
16656
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16658$as_echo "yes" >&6; }
16659
16660$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
16661
16662
16663else
16664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665$as_echo "no" >&6; }
16666fi
16667rm -f core conftest.err conftest.$ac_objext \
16668    conftest$ac_exeext conftest.$ac_ext
16669
16670
16671#AC_SEARCH_LIBS(RSA_new, [crypto])
16672
16673
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
16675$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
16676if ${ac_cv_c_format_attribute+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  ac_cv_c_format_attribute=no
16680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682#include <stdio.h>
16683void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16684void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16685
16686int
16687main ()
16688{
16689
16690   f ("%s", "str");
16691
16692  ;
16693  return 0;
16694}
16695_ACEOF
16696if ac_fn_c_try_compile "$LINENO"; then :
16697  ac_cv_c_format_attribute="yes"
16698else
16699  ac_cv_c_format_attribute="no"
16700fi
16701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702
16703fi
16704
16705
16706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
16707$as_echo "$ac_cv_c_format_attribute" >&6; }
16708if test $ac_cv_c_format_attribute = yes; then
16709
16710$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
16711
16712fi
16713
16714
16715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
16716$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
16717if ${ac_cv_c_unused_attribute+:} false; then :
16718  $as_echo_n "(cached) " >&6
16719else
16720  ac_cv_c_unused_attribute=no
16721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h.  */
16723#include <stdio.h>
16724void f (char *u __attribute__((unused)));
16725
16726int
16727main ()
16728{
16729
16730   f ("x");
16731
16732  ;
16733  return 0;
16734}
16735_ACEOF
16736if ac_fn_c_try_compile "$LINENO"; then :
16737  ac_cv_c_unused_attribute="yes"
16738else
16739  ac_cv_c_unused_attribute="no"
16740fi
16741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742
16743fi
16744
16745
16746
16747
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
16749$as_echo "$ac_cv_c_unused_attribute" >&6; }
16750if test $ac_cv_c_unused_attribute = yes; then
16751
16752$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
16753
16754fi
16755
16756
16757# check OSX deployment target which is needed
16758if echo $build_os | grep darwin > /dev/null; then
16759 	export MACOSX_DEPLOYMENT_TARGET="10.4"
16760fi
16761
16762
16763$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
16764
16765
16766
16767# Check whether --with-trust-anchor was given.
16768if test "${with_trust_anchor+set}" = set; then :
16769  withval=$with_trust_anchor;
16770 LDNS_TRUST_ANCHOR_FILE="$withval"
16771
16772else
16773
16774 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
16775  if test "x$sysconfdir" = 'x${prefix}/etc' ; then
16776   if test "x$prefix" = 'xNONE' ; then
16777    LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
16778   else
16779    LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
16780   fi
16781  else
16782    LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
16783  fi
16784 fi
16785
16786fi
16787
16788
16789cat >>confdefs.h <<_ACEOF
16790#define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
16791_ACEOF
16792
16793
16794{ $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
16795$as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
16796
16797
16798# Check whether --with-ca-file was given.
16799if test "${with_ca_file+set}" = set; then :
16800  withval=$with_ca_file;
16801
16802$as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
16803
16804
16805cat >>confdefs.h <<_ACEOF
16806#define LDNS_DANE_CA_FILE "$withval"
16807_ACEOF
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
16810$as_echo "$as_me: Using CAfile: $withval" >&6;}
16811 DEFAULT_CAFILE="Default is $withval"
16812
16813
16814else
16815
16816
16817$as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
16818
16819
16820
16821fi
16822
16823
16824
16825# Check whether --with-ca-path was given.
16826if test "${with_ca_path+set}" = set; then :
16827  withval=$with_ca_path;
16828
16829$as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
16830
16831
16832cat >>confdefs.h <<_ACEOF
16833#define LDNS_DANE_CA_PATH "$withval"
16834_ACEOF
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
16837$as_echo "$as_me: Using CApath: $withval" >&6;}
16838 DEFAULT_CAPATH="Default is $withval"
16839
16840
16841else
16842
16843
16844$as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
16845
16846
16847
16848fi
16849
16850
16851
16852
16853
16854
16855if test "x$HAVE_SSL" = "xyes"; then
16856	ldns_build_config_have_ssl=1
16857
16858else
16859	ldns_build_config_have_ssl=0
16860
16861fi
16862if test "x$ac_cv_c_format_attribute" = "xyes"; then
16863  ldns_build_config_have_attr_format=1
16864
16865else
16866  ldns_build_config_have_attr_format=0
16867
16868fi
16869if test "x$ac_cv_c_unused_attribute" = "xyes"; then
16870  ldns_build_config_have_attr_unused=1
16871
16872else
16873  ldns_build_config_have_attr_unused=0
16874
16875fi
16876
16877CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG"
16878
16879ac_config_files="$ac_config_files $CONFIG_FILES"
16880
16881
16882ac_config_headers="$ac_config_headers ldns/config.h"
16883
16884cat >confcache <<\_ACEOF
16885# This file is a shell script that caches the results of configure
16886# tests run on this system so they can be shared between configure
16887# scripts and configure runs, see configure's option --config-cache.
16888# It is not useful on other systems.  If it contains results you don't
16889# want to keep, you may remove or edit it.
16890#
16891# config.status only pays attention to the cache file if you give it
16892# the --recheck option to rerun configure.
16893#
16894# `ac_cv_env_foo' variables (set or unset) will be overridden when
16895# loading this file, other *unset* `ac_cv_foo' will be assigned the
16896# following values.
16897
16898_ACEOF
16899
16900# The following way of writing the cache mishandles newlines in values,
16901# but we know of no workaround that is simple, portable, and efficient.
16902# So, we kill variables containing newlines.
16903# Ultrix sh set writes to stderr and can't be redirected directly,
16904# and sets the high bit in the cache file unless we assign to the vars.
16905(
16906  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16907    eval ac_val=\$$ac_var
16908    case $ac_val in #(
16909    *${as_nl}*)
16910      case $ac_var in #(
16911      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16912$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16913      esac
16914      case $ac_var in #(
16915      _ | IFS | as_nl) ;; #(
16916      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16917      *) { eval $ac_var=; unset $ac_var;} ;;
16918      esac ;;
16919    esac
16920  done
16921
16922  (set) 2>&1 |
16923    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16924    *${as_nl}ac_space=\ *)
16925      # `set' does not quote correctly, so add quotes: double-quote
16926      # substitution turns \\\\ into \\, and sed turns \\ into \.
16927      sed -n \
16928	"s/'/'\\\\''/g;
16929	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16930      ;; #(
16931    *)
16932      # `set' quotes correctly as required by POSIX, so do not add quotes.
16933      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16934      ;;
16935    esac |
16936    sort
16937) |
16938  sed '
16939     /^ac_cv_env_/b end
16940     t clear
16941     :clear
16942     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16943     t end
16944     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16945     :end' >>confcache
16946if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16947  if test -w "$cache_file"; then
16948    if test "x$cache_file" != "x/dev/null"; then
16949      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16950$as_echo "$as_me: updating cache $cache_file" >&6;}
16951      if test ! -f "$cache_file" || test -h "$cache_file"; then
16952	cat confcache >"$cache_file"
16953      else
16954        case $cache_file in #(
16955        */* | ?:*)
16956	  mv -f confcache "$cache_file"$$ &&
16957	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16958        *)
16959	  mv -f confcache "$cache_file" ;;
16960	esac
16961      fi
16962    fi
16963  else
16964    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16965$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16966  fi
16967fi
16968rm -f confcache
16969
16970test "x$prefix" = xNONE && prefix=$ac_default_prefix
16971# Let make expand exec_prefix.
16972test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16973
16974DEFS=-DHAVE_CONFIG_H
16975
16976ac_libobjs=
16977ac_ltlibobjs=
16978U=
16979for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16980  # 1. Remove the extension, and $U if already installed.
16981  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16982  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16983  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16984  #    will be set to the directory where LIBOBJS objects are built.
16985  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16986  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16987done
16988LIBOBJS=$ac_libobjs
16989
16990LTLIBOBJS=$ac_ltlibobjs
16991
16992
16993
16994
16995: "${CONFIG_STATUS=./config.status}"
16996ac_write_fail=0
16997ac_clean_files_save=$ac_clean_files
16998ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17000$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17001as_write_fail=0
17002cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17003#! $SHELL
17004# Generated by $as_me.
17005# Run this file to recreate the current configuration.
17006# Compiler output produced by configure, useful for debugging
17007# configure, is in config.log if it exists.
17008
17009debug=false
17010ac_cs_recheck=false
17011ac_cs_silent=false
17012
17013SHELL=\${CONFIG_SHELL-$SHELL}
17014export SHELL
17015_ASEOF
17016cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17017## -------------------- ##
17018## M4sh Initialization. ##
17019## -------------------- ##
17020
17021# Be more Bourne compatible
17022DUALCASE=1; export DUALCASE # for MKS sh
17023if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17024  emulate sh
17025  NULLCMD=:
17026  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17027  # is contrary to our usage.  Disable this feature.
17028  alias -g '${1+"$@"}'='"$@"'
17029  setopt NO_GLOB_SUBST
17030else
17031  case `(set -o) 2>/dev/null` in #(
17032  *posix*) :
17033    set -o posix ;; #(
17034  *) :
17035     ;;
17036esac
17037fi
17038
17039
17040as_nl='
17041'
17042export as_nl
17043# Printing a long string crashes Solaris 7 /usr/bin/printf.
17044as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17045as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17047# Prefer a ksh shell builtin over an external printf program on Solaris,
17048# but without wasting forks for bash or zsh.
17049if test -z "$BASH_VERSION$ZSH_VERSION" \
17050    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17051  as_echo='print -r --'
17052  as_echo_n='print -rn --'
17053elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17054  as_echo='printf %s\n'
17055  as_echo_n='printf %s'
17056else
17057  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17058    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17059    as_echo_n='/usr/ucb/echo -n'
17060  else
17061    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17062    as_echo_n_body='eval
17063      arg=$1;
17064      case $arg in #(
17065      *"$as_nl"*)
17066	expr "X$arg" : "X\\(.*\\)$as_nl";
17067	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17068      esac;
17069      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17070    '
17071    export as_echo_n_body
17072    as_echo_n='sh -c $as_echo_n_body as_echo'
17073  fi
17074  export as_echo_body
17075  as_echo='sh -c $as_echo_body as_echo'
17076fi
17077
17078# The user is always right.
17079if test "${PATH_SEPARATOR+set}" != set; then
17080  PATH_SEPARATOR=:
17081  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17082    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17083      PATH_SEPARATOR=';'
17084  }
17085fi
17086
17087
17088# IFS
17089# We need space, tab and new line, in precisely that order.  Quoting is
17090# there to prevent editors from complaining about space-tab.
17091# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17092# splitting by setting IFS to empty value.)
17093IFS=" ""	$as_nl"
17094
17095# Find who we are.  Look in the path if we contain no directory separator.
17096as_myself=
17097case $0 in #((
17098  *[\\/]* ) as_myself=$0 ;;
17099  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100for as_dir in $PATH
17101do
17102  IFS=$as_save_IFS
17103  test -z "$as_dir" && as_dir=.
17104    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17105  done
17106IFS=$as_save_IFS
17107
17108     ;;
17109esac
17110# We did not find ourselves, most probably we were run as `sh COMMAND'
17111# in which case we are not to be found in the path.
17112if test "x$as_myself" = x; then
17113  as_myself=$0
17114fi
17115if test ! -f "$as_myself"; then
17116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17117  exit 1
17118fi
17119
17120# Unset variables that we do not need and which cause bugs (e.g. in
17121# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17122# suppresses any "Segmentation fault" message there.  '((' could
17123# trigger a bug in pdksh 5.2.14.
17124for as_var in BASH_ENV ENV MAIL MAILPATH
17125do eval test x\${$as_var+set} = xset \
17126  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17127done
17128PS1='$ '
17129PS2='> '
17130PS4='+ '
17131
17132# NLS nuisances.
17133LC_ALL=C
17134export LC_ALL
17135LANGUAGE=C
17136export LANGUAGE
17137
17138# CDPATH.
17139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17140
17141
17142# as_fn_error STATUS ERROR [LINENO LOG_FD]
17143# ----------------------------------------
17144# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17145# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17146# script with STATUS, using 1 if that was 0.
17147as_fn_error ()
17148{
17149  as_status=$1; test $as_status -eq 0 && as_status=1
17150  if test "$4"; then
17151    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17152    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17153  fi
17154  $as_echo "$as_me: error: $2" >&2
17155  as_fn_exit $as_status
17156} # as_fn_error
17157
17158
17159# as_fn_set_status STATUS
17160# -----------------------
17161# Set $? to STATUS, without forking.
17162as_fn_set_status ()
17163{
17164  return $1
17165} # as_fn_set_status
17166
17167# as_fn_exit STATUS
17168# -----------------
17169# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17170as_fn_exit ()
17171{
17172  set +e
17173  as_fn_set_status $1
17174  exit $1
17175} # as_fn_exit
17176
17177# as_fn_unset VAR
17178# ---------------
17179# Portably unset VAR.
17180as_fn_unset ()
17181{
17182  { eval $1=; unset $1;}
17183}
17184as_unset=as_fn_unset
17185# as_fn_append VAR VALUE
17186# ----------------------
17187# Append the text in VALUE to the end of the definition contained in VAR. Take
17188# advantage of any shell optimizations that allow amortized linear growth over
17189# repeated appends, instead of the typical quadratic growth present in naive
17190# implementations.
17191if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17192  eval 'as_fn_append ()
17193  {
17194    eval $1+=\$2
17195  }'
17196else
17197  as_fn_append ()
17198  {
17199    eval $1=\$$1\$2
17200  }
17201fi # as_fn_append
17202
17203# as_fn_arith ARG...
17204# ------------------
17205# Perform arithmetic evaluation on the ARGs, and store the result in the
17206# global $as_val. Take advantage of shells that can avoid forks. The arguments
17207# must be portable across $(()) and expr.
17208if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17209  eval 'as_fn_arith ()
17210  {
17211    as_val=$(( $* ))
17212  }'
17213else
17214  as_fn_arith ()
17215  {
17216    as_val=`expr "$@" || test $? -eq 1`
17217  }
17218fi # as_fn_arith
17219
17220
17221if expr a : '\(a\)' >/dev/null 2>&1 &&
17222   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17223  as_expr=expr
17224else
17225  as_expr=false
17226fi
17227
17228if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229  as_basename=basename
17230else
17231  as_basename=false
17232fi
17233
17234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17235  as_dirname=dirname
17236else
17237  as_dirname=false
17238fi
17239
17240as_me=`$as_basename -- "$0" ||
17241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242	 X"$0" : 'X\(//\)$' \| \
17243	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17244$as_echo X/"$0" |
17245    sed '/^.*\/\([^/][^/]*\)\/*$/{
17246	    s//\1/
17247	    q
17248	  }
17249	  /^X\/\(\/\/\)$/{
17250	    s//\1/
17251	    q
17252	  }
17253	  /^X\/\(\/\).*/{
17254	    s//\1/
17255	    q
17256	  }
17257	  s/.*/./; q'`
17258
17259# Avoid depending upon Character Ranges.
17260as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17261as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17262as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17263as_cr_digits='0123456789'
17264as_cr_alnum=$as_cr_Letters$as_cr_digits
17265
17266ECHO_C= ECHO_N= ECHO_T=
17267case `echo -n x` in #(((((
17268-n*)
17269  case `echo 'xy\c'` in
17270  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17271  xy)  ECHO_C='\c';;
17272  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17273       ECHO_T='	';;
17274  esac;;
17275*)
17276  ECHO_N='-n';;
17277esac
17278
17279rm -f conf$$ conf$$.exe conf$$.file
17280if test -d conf$$.dir; then
17281  rm -f conf$$.dir/conf$$.file
17282else
17283  rm -f conf$$.dir
17284  mkdir conf$$.dir 2>/dev/null
17285fi
17286if (echo >conf$$.file) 2>/dev/null; then
17287  if ln -s conf$$.file conf$$ 2>/dev/null; then
17288    as_ln_s='ln -s'
17289    # ... but there are two gotchas:
17290    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17291    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17292    # In both cases, we have to default to `cp -p'.
17293    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17294      as_ln_s='cp -p'
17295  elif ln conf$$.file conf$$ 2>/dev/null; then
17296    as_ln_s=ln
17297  else
17298    as_ln_s='cp -p'
17299  fi
17300else
17301  as_ln_s='cp -p'
17302fi
17303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17304rmdir conf$$.dir 2>/dev/null
17305
17306
17307# as_fn_mkdir_p
17308# -------------
17309# Create "$as_dir" as a directory, including parents if necessary.
17310as_fn_mkdir_p ()
17311{
17312
17313  case $as_dir in #(
17314  -*) as_dir=./$as_dir;;
17315  esac
17316  test -d "$as_dir" || eval $as_mkdir_p || {
17317    as_dirs=
17318    while :; do
17319      case $as_dir in #(
17320      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17321      *) as_qdir=$as_dir;;
17322      esac
17323      as_dirs="'$as_qdir' $as_dirs"
17324      as_dir=`$as_dirname -- "$as_dir" ||
17325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326	 X"$as_dir" : 'X\(//\)[^/]' \| \
17327	 X"$as_dir" : 'X\(//\)$' \| \
17328	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17329$as_echo X"$as_dir" |
17330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17331	    s//\1/
17332	    q
17333	  }
17334	  /^X\(\/\/\)[^/].*/{
17335	    s//\1/
17336	    q
17337	  }
17338	  /^X\(\/\/\)$/{
17339	    s//\1/
17340	    q
17341	  }
17342	  /^X\(\/\).*/{
17343	    s//\1/
17344	    q
17345	  }
17346	  s/.*/./; q'`
17347      test -d "$as_dir" && break
17348    done
17349    test -z "$as_dirs" || eval "mkdir $as_dirs"
17350  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17351
17352
17353} # as_fn_mkdir_p
17354if mkdir -p . 2>/dev/null; then
17355  as_mkdir_p='mkdir -p "$as_dir"'
17356else
17357  test -d ./-p && rmdir ./-p
17358  as_mkdir_p=false
17359fi
17360
17361if test -x / >/dev/null 2>&1; then
17362  as_test_x='test -x'
17363else
17364  if ls -dL / >/dev/null 2>&1; then
17365    as_ls_L_option=L
17366  else
17367    as_ls_L_option=
17368  fi
17369  as_test_x='
17370    eval sh -c '\''
17371      if test -d "$1"; then
17372	test -d "$1/.";
17373      else
17374	case $1 in #(
17375	-*)set "./$1";;
17376	esac;
17377	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17378	???[sx]*):;;*)false;;esac;fi
17379    '\'' sh
17380  '
17381fi
17382as_executable_p=$as_test_x
17383
17384# Sed expression to map a string onto a valid CPP name.
17385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17386
17387# Sed expression to map a string onto a valid variable name.
17388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17389
17390
17391exec 6>&1
17392## ----------------------------------- ##
17393## Main body of $CONFIG_STATUS script. ##
17394## ----------------------------------- ##
17395_ASEOF
17396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17397
17398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17399# Save the log message, to keep $0 and so on meaningful, and to
17400# report actual input values of CONFIG_FILES etc. instead of their
17401# values after options handling.
17402ac_log="
17403This file was extended by ldns $as_me 1.6.17, which was
17404generated by GNU Autoconf 2.68.  Invocation command line was
17405
17406  CONFIG_FILES    = $CONFIG_FILES
17407  CONFIG_HEADERS  = $CONFIG_HEADERS
17408  CONFIG_LINKS    = $CONFIG_LINKS
17409  CONFIG_COMMANDS = $CONFIG_COMMANDS
17410  $ $0 $@
17411
17412on `(hostname || uname -n) 2>/dev/null | sed 1q`
17413"
17414
17415_ACEOF
17416
17417case $ac_config_files in *"
17418"*) set x $ac_config_files; shift; ac_config_files=$*;;
17419esac
17420
17421case $ac_config_headers in *"
17422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17423esac
17424
17425
17426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17427# Files that config.status was made for.
17428config_files="$ac_config_files"
17429config_headers="$ac_config_headers"
17430config_commands="$ac_config_commands"
17431
17432_ACEOF
17433
17434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17435ac_cs_usage="\
17436\`$as_me' instantiates files and other configuration actions
17437from templates according to the current configuration.  Unless the files
17438and actions are specified as TAGs, all are instantiated by default.
17439
17440Usage: $0 [OPTION]... [TAG]...
17441
17442  -h, --help       print this help, then exit
17443  -V, --version    print version number and configuration settings, then exit
17444      --config     print configuration, then exit
17445  -q, --quiet, --silent
17446                   do not print progress messages
17447  -d, --debug      don't remove temporary files
17448      --recheck    update $as_me by reconfiguring in the same conditions
17449      --file=FILE[:TEMPLATE]
17450                   instantiate the configuration file FILE
17451      --header=FILE[:TEMPLATE]
17452                   instantiate the configuration header FILE
17453
17454Configuration files:
17455$config_files
17456
17457Configuration headers:
17458$config_headers
17459
17460Configuration commands:
17461$config_commands
17462
17463Report bugs to <libdns@nlnetlabs.nl>."
17464
17465_ACEOF
17466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17468ac_cs_version="\\
17469ldns config.status 1.6.17
17470configured by $0, generated by GNU Autoconf 2.68,
17471  with options \\"\$ac_cs_config\\"
17472
17473Copyright (C) 2010 Free Software Foundation, Inc.
17474This config.status script is free software; the Free Software Foundation
17475gives unlimited permission to copy, distribute and modify it."
17476
17477ac_pwd='$ac_pwd'
17478srcdir='$srcdir'
17479AWK='$AWK'
17480test -n "\$AWK" || AWK=awk
17481_ACEOF
17482
17483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17484# The default lists apply if the user does not specify any file.
17485ac_need_defaults=:
17486while test $# != 0
17487do
17488  case $1 in
17489  --*=?*)
17490    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17491    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17492    ac_shift=:
17493    ;;
17494  --*=)
17495    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17496    ac_optarg=
17497    ac_shift=:
17498    ;;
17499  *)
17500    ac_option=$1
17501    ac_optarg=$2
17502    ac_shift=shift
17503    ;;
17504  esac
17505
17506  case $ac_option in
17507  # Handling of the options.
17508  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17509    ac_cs_recheck=: ;;
17510  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17511    $as_echo "$ac_cs_version"; exit ;;
17512  --config | --confi | --conf | --con | --co | --c )
17513    $as_echo "$ac_cs_config"; exit ;;
17514  --debug | --debu | --deb | --de | --d | -d )
17515    debug=: ;;
17516  --file | --fil | --fi | --f )
17517    $ac_shift
17518    case $ac_optarg in
17519    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17520    '') as_fn_error $? "missing file argument" ;;
17521    esac
17522    as_fn_append CONFIG_FILES " '$ac_optarg'"
17523    ac_need_defaults=false;;
17524  --header | --heade | --head | --hea )
17525    $ac_shift
17526    case $ac_optarg in
17527    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17528    esac
17529    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17530    ac_need_defaults=false;;
17531  --he | --h)
17532    # Conflict between --help and --header
17533    as_fn_error $? "ambiguous option: \`$1'
17534Try \`$0 --help' for more information.";;
17535  --help | --hel | -h )
17536    $as_echo "$ac_cs_usage"; exit ;;
17537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17538  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17539    ac_cs_silent=: ;;
17540
17541  # This is an error.
17542  -*) as_fn_error $? "unrecognized option: \`$1'
17543Try \`$0 --help' for more information." ;;
17544
17545  *) as_fn_append ac_config_targets " $1"
17546     ac_need_defaults=false ;;
17547
17548  esac
17549  shift
17550done
17551
17552ac_configure_extra_args=
17553
17554if $ac_cs_silent; then
17555  exec 6>/dev/null
17556  ac_configure_extra_args="$ac_configure_extra_args --silent"
17557fi
17558
17559_ACEOF
17560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17561if \$ac_cs_recheck; then
17562  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17563  shift
17564  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17565  CONFIG_SHELL='$SHELL'
17566  export CONFIG_SHELL
17567  exec "\$@"
17568fi
17569
17570_ACEOF
17571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17572exec 5>>config.log
17573{
17574  echo
17575  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17576## Running $as_me. ##
17577_ASBOX
17578  $as_echo "$ac_log"
17579} >&5
17580
17581_ACEOF
17582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17583#
17584# INIT-COMMANDS
17585#
17586
17587
17588# The HP-UX ksh and POSIX shell print the target directory to stdout
17589# if CDPATH is set.
17590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17591
17592sed_quote_subst='$sed_quote_subst'
17593double_quote_subst='$double_quote_subst'
17594delay_variable_subst='$delay_variable_subst'
17595macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17596macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17597enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17598enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17599pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17600enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17601SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17602ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17603PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17604host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17605host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17606host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17607build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17608build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17609build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17610SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17611Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17612GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17613EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17614FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17615LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17616NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17617LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17618max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17619ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17620exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17621lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17622lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17623lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17624lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17625lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17626reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17627reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17628OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17629deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17630file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17631file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17632want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17633DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17634sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17635AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17636AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17637archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17638STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17639RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17640old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17641old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17642old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17643lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17644CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17645CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17646compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17647GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17648lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17649lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17650lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17651lt_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"`'
17652nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17653lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17654objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17655MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17656lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17657lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17658lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17659lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17660lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17661need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17662MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17663DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17664NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17665LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17666OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17667OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17668libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17669shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17670extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17671archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17672enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17673export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17674whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17675compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17676old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17677old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17678archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17679archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17681module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17682with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17683allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17684no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17685hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17686hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17687hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17688hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17689hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17690hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17691hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17692inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17693link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17694always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17695export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17696exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17697include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17698prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17699postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17700file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17701variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17702need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17703need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17704version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17705runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17706shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17707shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17708libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17709library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17710soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17711install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17712postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17713postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17714finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17715finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17716hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17717sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17718sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17719hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17720enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17721enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17722enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17723old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17724striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17725
17726LTCC='$LTCC'
17727LTCFLAGS='$LTCFLAGS'
17728compiler='$compiler_DEFAULT'
17729
17730# A function that is used when there is no print builtin or printf.
17731func_fallback_echo ()
17732{
17733  eval 'cat <<_LTECHO_EOF
17734\$1
17735_LTECHO_EOF'
17736}
17737
17738# Quote evaled strings.
17739for var in SHELL \
17740ECHO \
17741PATH_SEPARATOR \
17742SED \
17743GREP \
17744EGREP \
17745FGREP \
17746LD \
17747NM \
17748LN_S \
17749lt_SP2NL \
17750lt_NL2SP \
17751reload_flag \
17752OBJDUMP \
17753deplibs_check_method \
17754file_magic_cmd \
17755file_magic_glob \
17756want_nocaseglob \
17757DLLTOOL \
17758sharedlib_from_linklib_cmd \
17759AR \
17760AR_FLAGS \
17761archiver_list_spec \
17762STRIP \
17763RANLIB \
17764CC \
17765CFLAGS \
17766compiler \
17767lt_cv_sys_global_symbol_pipe \
17768lt_cv_sys_global_symbol_to_cdecl \
17769lt_cv_sys_global_symbol_to_c_name_address \
17770lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17771nm_file_list_spec \
17772lt_prog_compiler_no_builtin_flag \
17773lt_prog_compiler_pic \
17774lt_prog_compiler_wl \
17775lt_prog_compiler_static \
17776lt_cv_prog_compiler_c_o \
17777need_locks \
17778MANIFEST_TOOL \
17779DSYMUTIL \
17780NMEDIT \
17781LIPO \
17782OTOOL \
17783OTOOL64 \
17784shrext_cmds \
17785export_dynamic_flag_spec \
17786whole_archive_flag_spec \
17787compiler_needs_object \
17788with_gnu_ld \
17789allow_undefined_flag \
17790no_undefined_flag \
17791hardcode_libdir_flag_spec \
17792hardcode_libdir_separator \
17793exclude_expsyms \
17794include_expsyms \
17795file_list_spec \
17796variables_saved_for_relink \
17797libname_spec \
17798library_names_spec \
17799soname_spec \
17800install_override_mode \
17801finish_eval \
17802old_striplib \
17803striplib; do
17804    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17805    *[\\\\\\\`\\"\\\$]*)
17806      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17807      ;;
17808    *)
17809      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17810      ;;
17811    esac
17812done
17813
17814# Double-quote double-evaled strings.
17815for var in reload_cmds \
17816old_postinstall_cmds \
17817old_postuninstall_cmds \
17818old_archive_cmds \
17819extract_expsyms_cmds \
17820old_archive_from_new_cmds \
17821old_archive_from_expsyms_cmds \
17822archive_cmds \
17823archive_expsym_cmds \
17824module_cmds \
17825module_expsym_cmds \
17826export_symbols_cmds \
17827prelink_cmds \
17828postlink_cmds \
17829postinstall_cmds \
17830postuninstall_cmds \
17831finish_cmds \
17832sys_lib_search_path_spec \
17833sys_lib_dlsearch_path_spec; do
17834    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835    *[\\\\\\\`\\"\\\$]*)
17836      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17837      ;;
17838    *)
17839      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17840      ;;
17841    esac
17842done
17843
17844ac_aux_dir='$ac_aux_dir'
17845xsi_shell='$xsi_shell'
17846lt_shell_append='$lt_shell_append'
17847
17848# See if we are running on zsh, and set the options which allow our
17849# commands through without removal of \ escapes INIT.
17850if test -n "\${ZSH_VERSION+set}" ; then
17851   setopt NO_GLOB_SUBST
17852fi
17853
17854
17855    PACKAGE='$PACKAGE'
17856    VERSION='$VERSION'
17857    TIMESTAMP='$TIMESTAMP'
17858    RM='$RM'
17859    ofile='$ofile'
17860
17861
17862
17863
17864_ACEOF
17865
17866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867
17868# Handling of arguments.
17869for ac_config_target in $ac_config_targets
17870do
17871  case $ac_config_target in
17872    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17873    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
17874    "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
17875    "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
17876
17877  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17878  esac
17879done
17880
17881
17882# If the user did not use the arguments to specify the items to instantiate,
17883# then the envvar interface is used.  Set only those that are not.
17884# We use the long form for the default assignment because of an extremely
17885# bizarre bug on SunOS 4.1.3.
17886if $ac_need_defaults; then
17887  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17888  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17889  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17890fi
17891
17892# Have a temporary directory for convenience.  Make it in the build tree
17893# simply because there is no reason against having it here, and in addition,
17894# creating and moving files from /tmp can sometimes cause problems.
17895# Hook for its removal unless debugging.
17896# Note that there is a small window in which the directory will not be cleaned:
17897# after its creation but before its name has been assigned to `$tmp'.
17898$debug ||
17899{
17900  tmp= ac_tmp=
17901  trap 'exit_status=$?
17902  : "${ac_tmp:=$tmp}"
17903  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17904' 0
17905  trap 'as_fn_exit 1' 1 2 13 15
17906}
17907# Create a (secure) tmp directory for tmp files.
17908
17909{
17910  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17911  test -d "$tmp"
17912}  ||
17913{
17914  tmp=./conf$$-$RANDOM
17915  (umask 077 && mkdir "$tmp")
17916} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17917ac_tmp=$tmp
17918
17919# Set up the scripts for CONFIG_FILES section.
17920# No need to generate them if there are no CONFIG_FILES.
17921# This happens for instance with `./config.status config.h'.
17922if test -n "$CONFIG_FILES"; then
17923
17924
17925ac_cr=`echo X | tr X '\015'`
17926# On cygwin, bash can eat \r inside `` if the user requested igncr.
17927# But we know of no other shell where ac_cr would be empty at this
17928# point, so we can use a bashism as a fallback.
17929if test "x$ac_cr" = x; then
17930  eval ac_cr=\$\'\\r\'
17931fi
17932ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17933if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17934  ac_cs_awk_cr='\\r'
17935else
17936  ac_cs_awk_cr=$ac_cr
17937fi
17938
17939echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17940_ACEOF
17941
17942
17943{
17944  echo "cat >conf$$subs.awk <<_ACEOF" &&
17945  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17946  echo "_ACEOF"
17947} >conf$$subs.sh ||
17948  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17949ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17950ac_delim='%!_!# '
17951for ac_last_try in false false false false false :; do
17952  . ./conf$$subs.sh ||
17953    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17954
17955  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17956  if test $ac_delim_n = $ac_delim_num; then
17957    break
17958  elif $ac_last_try; then
17959    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17960  else
17961    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17962  fi
17963done
17964rm -f conf$$subs.sh
17965
17966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17967cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17968_ACEOF
17969sed -n '
17970h
17971s/^/S["/; s/!.*/"]=/
17972p
17973g
17974s/^[^!]*!//
17975:repl
17976t repl
17977s/'"$ac_delim"'$//
17978t delim
17979:nl
17980h
17981s/\(.\{148\}\)..*/\1/
17982t more1
17983s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17984p
17985n
17986b repl
17987:more1
17988s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17989p
17990g
17991s/.\{148\}//
17992t nl
17993:delim
17994h
17995s/\(.\{148\}\)..*/\1/
17996t more2
17997s/["\\]/\\&/g; s/^/"/; s/$/"/
17998p
17999b
18000:more2
18001s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18002p
18003g
18004s/.\{148\}//
18005t delim
18006' <conf$$subs.awk | sed '
18007/^[^""]/{
18008  N
18009  s/\n//
18010}
18011' >>$CONFIG_STATUS || ac_write_fail=1
18012rm -f conf$$subs.awk
18013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18014_ACAWK
18015cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18016  for (key in S) S_is_set[key] = 1
18017  FS = ""
18018
18019}
18020{
18021  line = $ 0
18022  nfields = split(line, field, "@")
18023  substed = 0
18024  len = length(field[1])
18025  for (i = 2; i < nfields; i++) {
18026    key = field[i]
18027    keylen = length(key)
18028    if (S_is_set[key]) {
18029      value = S[key]
18030      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18031      len += length(value) + length(field[++i])
18032      substed = 1
18033    } else
18034      len += 1 + keylen
18035  }
18036
18037  print line
18038}
18039
18040_ACAWK
18041_ACEOF
18042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18043if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18044  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18045else
18046  cat
18047fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18048  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18049_ACEOF
18050
18051# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18052# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18053# trailing colons and then remove the whole line if VPATH becomes empty
18054# (actually we leave an empty line to preserve line numbers).
18055if test "x$srcdir" = x.; then
18056  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18057h
18058s///
18059s/^/:/
18060s/[	 ]*$/:/
18061s/:\$(srcdir):/:/g
18062s/:\${srcdir}:/:/g
18063s/:@srcdir@:/:/g
18064s/^:*//
18065s/:*$//
18066x
18067s/\(=[	 ]*\).*/\1/
18068G
18069s/\n//
18070s/^[^=]*=[	 ]*$//
18071}'
18072fi
18073
18074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18075fi # test -n "$CONFIG_FILES"
18076
18077# Set up the scripts for CONFIG_HEADERS section.
18078# No need to generate them if there are no CONFIG_HEADERS.
18079# This happens for instance with `./config.status Makefile'.
18080if test -n "$CONFIG_HEADERS"; then
18081cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18082BEGIN {
18083_ACEOF
18084
18085# Transform confdefs.h into an awk script `defines.awk', embedded as
18086# here-document in config.status, that substitutes the proper values into
18087# config.h.in to produce config.h.
18088
18089# Create a delimiter string that does not exist in confdefs.h, to ease
18090# handling of long lines.
18091ac_delim='%!_!# '
18092for ac_last_try in false false :; do
18093  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18094  if test -z "$ac_tt"; then
18095    break
18096  elif $ac_last_try; then
18097    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18098  else
18099    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18100  fi
18101done
18102
18103# For the awk script, D is an array of macro values keyed by name,
18104# likewise P contains macro parameters if any.  Preserve backslash
18105# newline sequences.
18106
18107ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18108sed -n '
18109s/.\{148\}/&'"$ac_delim"'/g
18110t rset
18111:rset
18112s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18113t def
18114d
18115:def
18116s/\\$//
18117t bsnl
18118s/["\\]/\\&/g
18119s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18120D["\1"]=" \3"/p
18121s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18122d
18123:bsnl
18124s/["\\]/\\&/g
18125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18126D["\1"]=" \3\\\\\\n"\\/p
18127t cont
18128s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18129t cont
18130d
18131:cont
18132n
18133s/.\{148\}/&'"$ac_delim"'/g
18134t clear
18135:clear
18136s/\\$//
18137t bsnlc
18138s/["\\]/\\&/g; s/^/"/; s/$/"/p
18139d
18140:bsnlc
18141s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18142b cont
18143' <confdefs.h | sed '
18144s/'"$ac_delim"'/"\\\
18145"/g' >>$CONFIG_STATUS || ac_write_fail=1
18146
18147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148  for (key in D) D_is_set[key] = 1
18149  FS = ""
18150}
18151/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18152  line = \$ 0
18153  split(line, arg, " ")
18154  if (arg[1] == "#") {
18155    defundef = arg[2]
18156    mac1 = arg[3]
18157  } else {
18158    defundef = substr(arg[1], 2)
18159    mac1 = arg[2]
18160  }
18161  split(mac1, mac2, "(") #)
18162  macro = mac2[1]
18163  prefix = substr(line, 1, index(line, defundef) - 1)
18164  if (D_is_set[macro]) {
18165    # Preserve the white space surrounding the "#".
18166    print prefix "define", macro P[macro] D[macro]
18167    next
18168  } else {
18169    # Replace #undef with comments.  This is necessary, for example,
18170    # in the case of _POSIX_SOURCE, which is predefined and required
18171    # on some systems where configure will not decide to define it.
18172    if (defundef == "undef") {
18173      print "/*", prefix defundef, macro, "*/"
18174      next
18175    }
18176  }
18177}
18178{ print }
18179_ACAWK
18180_ACEOF
18181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18183fi # test -n "$CONFIG_HEADERS"
18184
18185
18186eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18187shift
18188for ac_tag
18189do
18190  case $ac_tag in
18191  :[FHLC]) ac_mode=$ac_tag; continue;;
18192  esac
18193  case $ac_mode$ac_tag in
18194  :[FHL]*:*);;
18195  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18196  :[FH]-) ac_tag=-:-;;
18197  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18198  esac
18199  ac_save_IFS=$IFS
18200  IFS=:
18201  set x $ac_tag
18202  IFS=$ac_save_IFS
18203  shift
18204  ac_file=$1
18205  shift
18206
18207  case $ac_mode in
18208  :L) ac_source=$1;;
18209  :[FH])
18210    ac_file_inputs=
18211    for ac_f
18212    do
18213      case $ac_f in
18214      -) ac_f="$ac_tmp/stdin";;
18215      *) # Look for the file first in the build tree, then in the source tree
18216	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18217	 # because $ac_f cannot contain `:'.
18218	 test -f "$ac_f" ||
18219	   case $ac_f in
18220	   [\\/$]*) false;;
18221	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18222	   esac ||
18223	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18224      esac
18225      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18226      as_fn_append ac_file_inputs " '$ac_f'"
18227    done
18228
18229    # Let's still pretend it is `configure' which instantiates (i.e., don't
18230    # use $as_me), people would be surprised to read:
18231    #    /* config.h.  Generated by config.status.  */
18232    configure_input='Generated from '`
18233	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18234	`' by configure.'
18235    if test x"$ac_file" != x-; then
18236      configure_input="$ac_file.  $configure_input"
18237      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18238$as_echo "$as_me: creating $ac_file" >&6;}
18239    fi
18240    # Neutralize special characters interpreted by sed in replacement strings.
18241    case $configure_input in #(
18242    *\&* | *\|* | *\\* )
18243       ac_sed_conf_input=`$as_echo "$configure_input" |
18244       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18245    *) ac_sed_conf_input=$configure_input;;
18246    esac
18247
18248    case $ac_tag in
18249    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18250      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18251    esac
18252    ;;
18253  esac
18254
18255  ac_dir=`$as_dirname -- "$ac_file" ||
18256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18257	 X"$ac_file" : 'X\(//\)[^/]' \| \
18258	 X"$ac_file" : 'X\(//\)$' \| \
18259	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18260$as_echo X"$ac_file" |
18261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18262	    s//\1/
18263	    q
18264	  }
18265	  /^X\(\/\/\)[^/].*/{
18266	    s//\1/
18267	    q
18268	  }
18269	  /^X\(\/\/\)$/{
18270	    s//\1/
18271	    q
18272	  }
18273	  /^X\(\/\).*/{
18274	    s//\1/
18275	    q
18276	  }
18277	  s/.*/./; q'`
18278  as_dir="$ac_dir"; as_fn_mkdir_p
18279  ac_builddir=.
18280
18281case "$ac_dir" in
18282.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18283*)
18284  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18285  # A ".." for each directory in $ac_dir_suffix.
18286  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18287  case $ac_top_builddir_sub in
18288  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18289  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18290  esac ;;
18291esac
18292ac_abs_top_builddir=$ac_pwd
18293ac_abs_builddir=$ac_pwd$ac_dir_suffix
18294# for backward compatibility:
18295ac_top_builddir=$ac_top_build_prefix
18296
18297case $srcdir in
18298  .)  # We are building in place.
18299    ac_srcdir=.
18300    ac_top_srcdir=$ac_top_builddir_sub
18301    ac_abs_top_srcdir=$ac_pwd ;;
18302  [\\/]* | ?:[\\/]* )  # Absolute name.
18303    ac_srcdir=$srcdir$ac_dir_suffix;
18304    ac_top_srcdir=$srcdir
18305    ac_abs_top_srcdir=$srcdir ;;
18306  *) # Relative name.
18307    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18308    ac_top_srcdir=$ac_top_build_prefix$srcdir
18309    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18310esac
18311ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18312
18313
18314  case $ac_mode in
18315  :F)
18316  #
18317  # CONFIG_FILE
18318  #
18319
18320_ACEOF
18321
18322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18323# If the template does not know about datarootdir, expand it.
18324# FIXME: This hack should be removed a few years after 2.60.
18325ac_datarootdir_hack=; ac_datarootdir_seen=
18326ac_sed_dataroot='
18327/datarootdir/ {
18328  p
18329  q
18330}
18331/@datadir@/p
18332/@docdir@/p
18333/@infodir@/p
18334/@localedir@/p
18335/@mandir@/p'
18336case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18337*datarootdir*) ac_datarootdir_seen=yes;;
18338*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18339  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18340$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18341_ACEOF
18342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18343  ac_datarootdir_hack='
18344  s&@datadir@&$datadir&g
18345  s&@docdir@&$docdir&g
18346  s&@infodir@&$infodir&g
18347  s&@localedir@&$localedir&g
18348  s&@mandir@&$mandir&g
18349  s&\\\${datarootdir}&$datarootdir&g' ;;
18350esac
18351_ACEOF
18352
18353# Neutralize VPATH when `$srcdir' = `.'.
18354# Shell code in configure.ac might set extrasub.
18355# FIXME: do we really want to maintain this feature?
18356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357ac_sed_extra="$ac_vpsub
18358$extrasub
18359_ACEOF
18360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18361:t
18362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18363s|@configure_input@|$ac_sed_conf_input|;t t
18364s&@top_builddir@&$ac_top_builddir_sub&;t t
18365s&@top_build_prefix@&$ac_top_build_prefix&;t t
18366s&@srcdir@&$ac_srcdir&;t t
18367s&@abs_srcdir@&$ac_abs_srcdir&;t t
18368s&@top_srcdir@&$ac_top_srcdir&;t t
18369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18370s&@builddir@&$ac_builddir&;t t
18371s&@abs_builddir@&$ac_abs_builddir&;t t
18372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18373$ac_datarootdir_hack
18374"
18375eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18376  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18377
18378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18379  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18380  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18381      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18383which seems to be undefined.  Please make sure it is defined" >&5
18384$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18385which seems to be undefined.  Please make sure it is defined" >&2;}
18386
18387  rm -f "$ac_tmp/stdin"
18388  case $ac_file in
18389  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18390  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18391  esac \
18392  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18393 ;;
18394  :H)
18395  #
18396  # CONFIG_HEADER
18397  #
18398  if test x"$ac_file" != x-; then
18399    {
18400      $as_echo "/* $configure_input  */" \
18401      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18402    } >"$ac_tmp/config.h" \
18403      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18404    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18405      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18406$as_echo "$as_me: $ac_file is unchanged" >&6;}
18407    else
18408      rm -f "$ac_file"
18409      mv "$ac_tmp/config.h" "$ac_file" \
18410	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18411    fi
18412  else
18413    $as_echo "/* $configure_input  */" \
18414      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18415      || as_fn_error $? "could not create -" "$LINENO" 5
18416  fi
18417 ;;
18418
18419  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18420$as_echo "$as_me: executing $ac_file commands" >&6;}
18421 ;;
18422  esac
18423
18424
18425  case $ac_file$ac_mode in
18426    "libtool":C)
18427
18428    # See if we are running on zsh, and set the options which allow our
18429    # commands through without removal of \ escapes.
18430    if test -n "${ZSH_VERSION+set}" ; then
18431      setopt NO_GLOB_SUBST
18432    fi
18433
18434    cfgfile="${ofile}T"
18435    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18436    $RM "$cfgfile"
18437
18438    cat <<_LT_EOF >> "$cfgfile"
18439#! $SHELL
18440
18441# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18442# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18443# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18444# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18445#
18446#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18447#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18448#                 Foundation, Inc.
18449#   Written by Gordon Matzigkeit, 1996
18450#
18451#   This file is part of GNU Libtool.
18452#
18453# GNU Libtool is free software; you can redistribute it and/or
18454# modify it under the terms of the GNU General Public License as
18455# published by the Free Software Foundation; either version 2 of
18456# the License, or (at your option) any later version.
18457#
18458# As a special exception to the GNU General Public License,
18459# if you distribute this file as part of a program or library that
18460# is built using GNU Libtool, you may include this file under the
18461# same distribution terms that you use for the rest of that program.
18462#
18463# GNU Libtool is distributed in the hope that it will be useful,
18464# but WITHOUT ANY WARRANTY; without even the implied warranty of
18465# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18466# GNU General Public License for more details.
18467#
18468# You should have received a copy of the GNU General Public License
18469# along with GNU Libtool; see the file COPYING.  If not, a copy
18470# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18471# obtained by writing to the Free Software Foundation, Inc.,
18472# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18473
18474
18475# The names of the tagged configurations supported by this script.
18476available_tags=""
18477
18478# ### BEGIN LIBTOOL CONFIG
18479
18480# Which release of libtool.m4 was used?
18481macro_version=$macro_version
18482macro_revision=$macro_revision
18483
18484# Whether or not to build shared libraries.
18485build_libtool_libs=$enable_shared
18486
18487# Whether or not to build static libraries.
18488build_old_libs=$enable_static
18489
18490# What type of objects to build.
18491pic_mode=$pic_mode
18492
18493# Whether or not to optimize for fast installation.
18494fast_install=$enable_fast_install
18495
18496# Shell to use when invoking shell scripts.
18497SHELL=$lt_SHELL
18498
18499# An echo program that protects backslashes.
18500ECHO=$lt_ECHO
18501
18502# The PATH separator for the build system.
18503PATH_SEPARATOR=$lt_PATH_SEPARATOR
18504
18505# The host system.
18506host_alias=$host_alias
18507host=$host
18508host_os=$host_os
18509
18510# The build system.
18511build_alias=$build_alias
18512build=$build
18513build_os=$build_os
18514
18515# A sed program that does not truncate output.
18516SED=$lt_SED
18517
18518# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18519Xsed="\$SED -e 1s/^X//"
18520
18521# A grep program that handles long lines.
18522GREP=$lt_GREP
18523
18524# An ERE matcher.
18525EGREP=$lt_EGREP
18526
18527# A literal string matcher.
18528FGREP=$lt_FGREP
18529
18530# A BSD- or MS-compatible name lister.
18531NM=$lt_NM
18532
18533# Whether we need soft or hard links.
18534LN_S=$lt_LN_S
18535
18536# What is the maximum length of a command?
18537max_cmd_len=$max_cmd_len
18538
18539# Object file suffix (normally "o").
18540objext=$ac_objext
18541
18542# Executable file suffix (normally "").
18543exeext=$exeext
18544
18545# whether the shell understands "unset".
18546lt_unset=$lt_unset
18547
18548# turn spaces into newlines.
18549SP2NL=$lt_lt_SP2NL
18550
18551# turn newlines into spaces.
18552NL2SP=$lt_lt_NL2SP
18553
18554# convert \$build file names to \$host format.
18555to_host_file_cmd=$lt_cv_to_host_file_cmd
18556
18557# convert \$build files to toolchain format.
18558to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18559
18560# An object symbol dumper.
18561OBJDUMP=$lt_OBJDUMP
18562
18563# Method to check whether dependent libraries are shared objects.
18564deplibs_check_method=$lt_deplibs_check_method
18565
18566# Command to use when deplibs_check_method = "file_magic".
18567file_magic_cmd=$lt_file_magic_cmd
18568
18569# How to find potential files when deplibs_check_method = "file_magic".
18570file_magic_glob=$lt_file_magic_glob
18571
18572# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18573want_nocaseglob=$lt_want_nocaseglob
18574
18575# DLL creation program.
18576DLLTOOL=$lt_DLLTOOL
18577
18578# Command to associate shared and link libraries.
18579sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18580
18581# The archiver.
18582AR=$lt_AR
18583
18584# Flags to create an archive.
18585AR_FLAGS=$lt_AR_FLAGS
18586
18587# How to feed a file listing to the archiver.
18588archiver_list_spec=$lt_archiver_list_spec
18589
18590# A symbol stripping program.
18591STRIP=$lt_STRIP
18592
18593# Commands used to install an old-style archive.
18594RANLIB=$lt_RANLIB
18595old_postinstall_cmds=$lt_old_postinstall_cmds
18596old_postuninstall_cmds=$lt_old_postuninstall_cmds
18597
18598# Whether to use a lock for old archive extraction.
18599lock_old_archive_extraction=$lock_old_archive_extraction
18600
18601# A C compiler.
18602LTCC=$lt_CC
18603
18604# LTCC compiler flags.
18605LTCFLAGS=$lt_CFLAGS
18606
18607# Take the output of nm and produce a listing of raw symbols and C names.
18608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18609
18610# Transform the output of nm in a proper C declaration.
18611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18612
18613# Transform the output of nm in a C name address pair.
18614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18615
18616# Transform the output of nm in a C name address pair when lib prefix is needed.
18617global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18618
18619# Specify filename containing input files for \$NM.
18620nm_file_list_spec=$lt_nm_file_list_spec
18621
18622# The root where to search for dependent libraries,and in which our libraries should be installed.
18623lt_sysroot=$lt_sysroot
18624
18625# The name of the directory that contains temporary libtool files.
18626objdir=$objdir
18627
18628# Used to examine libraries when file_magic_cmd begins with "file".
18629MAGIC_CMD=$MAGIC_CMD
18630
18631# Must we lock files when doing compilation?
18632need_locks=$lt_need_locks
18633
18634# Manifest tool.
18635MANIFEST_TOOL=$lt_MANIFEST_TOOL
18636
18637# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18638DSYMUTIL=$lt_DSYMUTIL
18639
18640# Tool to change global to local symbols on Mac OS X.
18641NMEDIT=$lt_NMEDIT
18642
18643# Tool to manipulate fat objects and archives on Mac OS X.
18644LIPO=$lt_LIPO
18645
18646# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18647OTOOL=$lt_OTOOL
18648
18649# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18650OTOOL64=$lt_OTOOL64
18651
18652# Old archive suffix (normally "a").
18653libext=$libext
18654
18655# Shared library suffix (normally ".so").
18656shrext_cmds=$lt_shrext_cmds
18657
18658# The commands to extract the exported symbol list from a shared archive.
18659extract_expsyms_cmds=$lt_extract_expsyms_cmds
18660
18661# Variables whose values should be saved in libtool wrapper scripts and
18662# restored at link time.
18663variables_saved_for_relink=$lt_variables_saved_for_relink
18664
18665# Do we need the "lib" prefix for modules?
18666need_lib_prefix=$need_lib_prefix
18667
18668# Do we need a version for libraries?
18669need_version=$need_version
18670
18671# Library versioning type.
18672version_type=$version_type
18673
18674# Shared library runtime path variable.
18675runpath_var=$runpath_var
18676
18677# Shared library path variable.
18678shlibpath_var=$shlibpath_var
18679
18680# Is shlibpath searched before the hard-coded library search path?
18681shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18682
18683# Format of library name prefix.
18684libname_spec=$lt_libname_spec
18685
18686# List of archive names.  First name is the real one, the rest are links.
18687# The last name is the one that the linker finds with -lNAME
18688library_names_spec=$lt_library_names_spec
18689
18690# The coded name of the library, if different from the real name.
18691soname_spec=$lt_soname_spec
18692
18693# Permission mode override for installation of shared libraries.
18694install_override_mode=$lt_install_override_mode
18695
18696# Command to use after installation of a shared archive.
18697postinstall_cmds=$lt_postinstall_cmds
18698
18699# Command to use after uninstallation of a shared archive.
18700postuninstall_cmds=$lt_postuninstall_cmds
18701
18702# Commands used to finish a libtool library installation in a directory.
18703finish_cmds=$lt_finish_cmds
18704
18705# As "finish_cmds", except a single script fragment to be evaled but
18706# not shown.
18707finish_eval=$lt_finish_eval
18708
18709# Whether we should hardcode library paths into libraries.
18710hardcode_into_libs=$hardcode_into_libs
18711
18712# Compile-time system search path for libraries.
18713sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18714
18715# Run-time system search path for libraries.
18716sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18717
18718# Whether dlopen is supported.
18719dlopen_support=$enable_dlopen
18720
18721# Whether dlopen of programs is supported.
18722dlopen_self=$enable_dlopen_self
18723
18724# Whether dlopen of statically linked programs is supported.
18725dlopen_self_static=$enable_dlopen_self_static
18726
18727# Commands to strip libraries.
18728old_striplib=$lt_old_striplib
18729striplib=$lt_striplib
18730
18731
18732# The linker used to build libraries.
18733LD=$lt_LD
18734
18735# How to create reloadable object files.
18736reload_flag=$lt_reload_flag
18737reload_cmds=$lt_reload_cmds
18738
18739# Commands used to build an old-style archive.
18740old_archive_cmds=$lt_old_archive_cmds
18741
18742# A language specific compiler.
18743CC=$lt_compiler
18744
18745# Is the compiler the GNU compiler?
18746with_gcc=$GCC
18747
18748# Compiler flag to turn off builtin functions.
18749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18750
18751# Additional compiler flags for building library objects.
18752pic_flag=$lt_lt_prog_compiler_pic
18753
18754# How to pass a linker flag through the compiler.
18755wl=$lt_lt_prog_compiler_wl
18756
18757# Compiler flag to prevent dynamic linking.
18758link_static_flag=$lt_lt_prog_compiler_static
18759
18760# Does compiler simultaneously support -c and -o options?
18761compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18762
18763# Whether or not to add -lc for building shared libraries.
18764build_libtool_need_lc=$archive_cmds_need_lc
18765
18766# Whether or not to disallow shared libs when runtime libs are static.
18767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18768
18769# Compiler flag to allow reflexive dlopens.
18770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18771
18772# Compiler flag to generate shared objects directly from archives.
18773whole_archive_flag_spec=$lt_whole_archive_flag_spec
18774
18775# Whether the compiler copes with passing no objects directly.
18776compiler_needs_object=$lt_compiler_needs_object
18777
18778# Create an old-style archive from a shared archive.
18779old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18780
18781# Create a temporary old-style archive to link instead of a shared archive.
18782old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18783
18784# Commands used to build a shared archive.
18785archive_cmds=$lt_archive_cmds
18786archive_expsym_cmds=$lt_archive_expsym_cmds
18787
18788# Commands used to build a loadable module if different from building
18789# a shared archive.
18790module_cmds=$lt_module_cmds
18791module_expsym_cmds=$lt_module_expsym_cmds
18792
18793# Whether we are building with GNU ld or not.
18794with_gnu_ld=$lt_with_gnu_ld
18795
18796# Flag that allows shared libraries with undefined symbols to be built.
18797allow_undefined_flag=$lt_allow_undefined_flag
18798
18799# Flag that enforces no undefined symbols.
18800no_undefined_flag=$lt_no_undefined_flag
18801
18802# Flag to hardcode \$libdir into a binary during linking.
18803# This must work even if \$libdir does not exist
18804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18805
18806# Whether we need a single "-rpath" flag with a separated argument.
18807hardcode_libdir_separator=$lt_hardcode_libdir_separator
18808
18809# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18810# DIR into the resulting binary.
18811hardcode_direct=$hardcode_direct
18812
18813# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18814# DIR into the resulting binary and the resulting library dependency is
18815# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18816# library is relocated.
18817hardcode_direct_absolute=$hardcode_direct_absolute
18818
18819# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18820# into the resulting binary.
18821hardcode_minus_L=$hardcode_minus_L
18822
18823# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18824# into the resulting binary.
18825hardcode_shlibpath_var=$hardcode_shlibpath_var
18826
18827# Set to "yes" if building a shared library automatically hardcodes DIR
18828# into the library and all subsequent libraries and executables linked
18829# against it.
18830hardcode_automatic=$hardcode_automatic
18831
18832# Set to yes if linker adds runtime paths of dependent libraries
18833# to runtime path list.
18834inherit_rpath=$inherit_rpath
18835
18836# Whether libtool must link a program against all its dependency libraries.
18837link_all_deplibs=$link_all_deplibs
18838
18839# Set to "yes" if exported symbols are required.
18840always_export_symbols=$always_export_symbols
18841
18842# The commands to list exported symbols.
18843export_symbols_cmds=$lt_export_symbols_cmds
18844
18845# Symbols that should not be listed in the preloaded symbols.
18846exclude_expsyms=$lt_exclude_expsyms
18847
18848# Symbols that must always be exported.
18849include_expsyms=$lt_include_expsyms
18850
18851# Commands necessary for linking programs (against libraries) with templates.
18852prelink_cmds=$lt_prelink_cmds
18853
18854# Commands necessary for finishing linking programs.
18855postlink_cmds=$lt_postlink_cmds
18856
18857# Specify filename containing input files.
18858file_list_spec=$lt_file_list_spec
18859
18860# How to hardcode a shared library path into an executable.
18861hardcode_action=$hardcode_action
18862
18863# ### END LIBTOOL CONFIG
18864
18865_LT_EOF
18866
18867  case $host_os in
18868  aix3*)
18869    cat <<\_LT_EOF >> "$cfgfile"
18870# AIX sometimes has problems with the GCC collect2 program.  For some
18871# reason, if we set the COLLECT_NAMES environment variable, the problems
18872# vanish in a puff of smoke.
18873if test "X${COLLECT_NAMES+set}" != Xset; then
18874  COLLECT_NAMES=
18875  export COLLECT_NAMES
18876fi
18877_LT_EOF
18878    ;;
18879  esac
18880
18881
18882ltmain="$ac_aux_dir/ltmain.sh"
18883
18884
18885  # We use sed instead of cat because bash on DJGPP gets confused if
18886  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18887  # text mode, it properly converts lines to CR/LF.  This bash problem
18888  # is reportedly fixed, but why not run on old versions too?
18889  sed '$q' "$ltmain" >> "$cfgfile" \
18890     || (rm -f "$cfgfile"; exit 1)
18891
18892  if test x"$xsi_shell" = xyes; then
18893  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18894func_dirname ()\
18895{\
18896\    case ${1} in\
18897\      */*) func_dirname_result="${1%/*}${2}" ;;\
18898\      *  ) func_dirname_result="${3}" ;;\
18899\    esac\
18900} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18901  && mv -f "$cfgfile.tmp" "$cfgfile" \
18902    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903test 0 -eq $? || _lt_function_replace_fail=:
18904
18905
18906  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18907func_basename ()\
18908{\
18909\    func_basename_result="${1##*/}"\
18910} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18911  && mv -f "$cfgfile.tmp" "$cfgfile" \
18912    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18913test 0 -eq $? || _lt_function_replace_fail=:
18914
18915
18916  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18917func_dirname_and_basename ()\
18918{\
18919\    case ${1} in\
18920\      */*) func_dirname_result="${1%/*}${2}" ;;\
18921\      *  ) func_dirname_result="${3}" ;;\
18922\    esac\
18923\    func_basename_result="${1##*/}"\
18924} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18925  && mv -f "$cfgfile.tmp" "$cfgfile" \
18926    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927test 0 -eq $? || _lt_function_replace_fail=:
18928
18929
18930  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18931func_stripname ()\
18932{\
18933\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18934\    # positional parameters, so assign one to ordinary parameter first.\
18935\    func_stripname_result=${3}\
18936\    func_stripname_result=${func_stripname_result#"${1}"}\
18937\    func_stripname_result=${func_stripname_result%"${2}"}\
18938} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18939  && mv -f "$cfgfile.tmp" "$cfgfile" \
18940    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18941test 0 -eq $? || _lt_function_replace_fail=:
18942
18943
18944  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18945func_split_long_opt ()\
18946{\
18947\    func_split_long_opt_name=${1%%=*}\
18948\    func_split_long_opt_arg=${1#*=}\
18949} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18950  && mv -f "$cfgfile.tmp" "$cfgfile" \
18951    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952test 0 -eq $? || _lt_function_replace_fail=:
18953
18954
18955  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18956func_split_short_opt ()\
18957{\
18958\    func_split_short_opt_arg=${1#??}\
18959\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18960} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18961  && mv -f "$cfgfile.tmp" "$cfgfile" \
18962    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963test 0 -eq $? || _lt_function_replace_fail=:
18964
18965
18966  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18967func_lo2o ()\
18968{\
18969\    case ${1} in\
18970\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18971\      *)    func_lo2o_result=${1} ;;\
18972\    esac\
18973} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18974  && mv -f "$cfgfile.tmp" "$cfgfile" \
18975    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976test 0 -eq $? || _lt_function_replace_fail=:
18977
18978
18979  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18980func_xform ()\
18981{\
18982    func_xform_result=${1%.*}.lo\
18983} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18984  && mv -f "$cfgfile.tmp" "$cfgfile" \
18985    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18986test 0 -eq $? || _lt_function_replace_fail=:
18987
18988
18989  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18990func_arith ()\
18991{\
18992    func_arith_result=$(( $* ))\
18993} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18994  && mv -f "$cfgfile.tmp" "$cfgfile" \
18995    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18996test 0 -eq $? || _lt_function_replace_fail=:
18997
18998
18999  sed -e '/^func_len ()$/,/^} # func_len /c\
19000func_len ()\
19001{\
19002    func_len_result=${#1}\
19003} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19004  && mv -f "$cfgfile.tmp" "$cfgfile" \
19005    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19006test 0 -eq $? || _lt_function_replace_fail=:
19007
19008fi
19009
19010if test x"$lt_shell_append" = xyes; then
19011  sed -e '/^func_append ()$/,/^} # func_append /c\
19012func_append ()\
19013{\
19014    eval "${1}+=\\${2}"\
19015} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19016  && mv -f "$cfgfile.tmp" "$cfgfile" \
19017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19018test 0 -eq $? || _lt_function_replace_fail=:
19019
19020
19021  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19022func_append_quoted ()\
19023{\
19024\    func_quote_for_eval "${2}"\
19025\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19026} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19027  && mv -f "$cfgfile.tmp" "$cfgfile" \
19028    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19029test 0 -eq $? || _lt_function_replace_fail=:
19030
19031
19032  # Save a `func_append' function call where possible by direct use of '+='
19033  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19034    && mv -f "$cfgfile.tmp" "$cfgfile" \
19035      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19036  test 0 -eq $? || _lt_function_replace_fail=:
19037else
19038  # Save a `func_append' function call even when '+=' is not available
19039  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19040    && mv -f "$cfgfile.tmp" "$cfgfile" \
19041      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19042  test 0 -eq $? || _lt_function_replace_fail=:
19043fi
19044
19045if test x"$_lt_function_replace_fail" = x":"; then
19046  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19047$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19048fi
19049
19050
19051   mv -f "$cfgfile" "$ofile" ||
19052    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19053  chmod +x "$ofile"
19054
19055 ;;
19056    "disable-rpath":C)
19057	sed < libtool > libtool-2 \
19058	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19059	mv libtool-2 libtool
19060	chmod 755 libtool
19061	libtool="./libtool"
19062	 ;;
19063
19064  esac
19065done # for ac_tag
19066
19067
19068as_fn_exit 0
19069_ACEOF
19070ac_clean_files=$ac_clean_files_save
19071
19072test $ac_write_fail = 0 ||
19073  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19074
19075
19076# configure is writing to config.log, and then calls config.status.
19077# config.status does its own redirection, appending to config.log.
19078# Unfortunately, on DOS this fails, as config.log is still kept open
19079# by configure, so config.status won't be able to write to it; its
19080# output is simply discarded.  So we exec the FD to /dev/null,
19081# effectively closing config.log, so it can be properly (re)opened and
19082# appended to by config.status.  When coming back to configure, we
19083# need to make the FD available again.
19084if test "$no_create" != yes; then
19085  ac_cs_success=:
19086  ac_config_status_args=
19087  test "$silent" = yes &&
19088    ac_config_status_args="$ac_config_status_args --quiet"
19089  exec 5>/dev/null
19090  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19091  exec 5>>config.log
19092  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19093  # would make configure fail if this is the last instruction.
19094  $ac_cs_success || as_fn_exit 1
19095fi
19096if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19097  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19098$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19099fi
19100
19101
19102echo "copying header files"
19103
19104for file in $srcdir/ldns//*.h; do
19105	sh $srcdir/install-sh -m 644 $file ldns/
19106done
19107
19108
19109
19110
19111
19112