]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ldns/drill/configure
Upgrade LDNS to 1.7.0.
[FreeBSD/FreeBSD.git] / contrib / ldns / drill / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ldns 1.7.0.
4 #
5 # Report bugs to <libdns@nlnetlabs.nl>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: libdns@nlnetlabs.nl about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='ldns'
582 PACKAGE_TARNAME='libdns'
583 PACKAGE_VERSION='1.7.0'
584 PACKAGE_STRING='ldns 1.7.0'
585 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
586 PACKAGE_URL=''
587
588 ac_unique_file="drill.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 LDNS_TRUST_ANCHOR_FILE
628 LDNSDIR
629 LIBS_STC
630 RUNTIME_PATH
631 HAVE_SSL
632 libtool
633 SET_MAKE
634 EGREP
635 GREP
636 CPP
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 target_alias
645 host_alias
646 build_alias
647 LIBS
648 ECHO_T
649 ECHO_N
650 ECHO_C
651 DEFS
652 mandir
653 localedir
654 libdir
655 psdir
656 pdfdir
657 dvidir
658 htmldir
659 infodir
660 docdir
661 oldincludedir
662 includedir
663 localstatedir
664 sharedstatedir
665 sysconfdir
666 datadir
667 datarootdir
668 libexecdir
669 sbindir
670 bindir
671 program_transform_name
672 prefix
673 exec_prefix
674 PACKAGE_URL
675 PACKAGE_BUGREPORT
676 PACKAGE_STRING
677 PACKAGE_VERSION
678 PACKAGE_TARNAME
679 PACKAGE_NAME
680 PATH_SEPARATOR
681 SHELL'
682 ac_subst_files=''
683 ac_user_opts='
684 enable_option_checking
685 enable_rpath
686 with_ssl
687 with_ldns
688 with_trust_anchor
689 '
690       ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 CPP'
699
700
701 # Initialize some variables set by options.
702 ac_init_help=
703 ac_init_version=false
704 ac_unrecognized_opts=
705 ac_unrecognized_sep=
706 # The variables have the same names as the options, with
707 # dashes changed to underlines.
708 cache_file=/dev/null
709 exec_prefix=NONE
710 no_create=
711 no_recursion=
712 prefix=NONE
713 program_prefix=NONE
714 program_suffix=NONE
715 program_transform_name=s,x,x,
716 silent=
717 site=
718 srcdir=
719 verbose=
720 x_includes=NONE
721 x_libraries=NONE
722
723 # Installation directory options.
724 # These are left unexpanded so users can "make install exec_prefix=/foo"
725 # and all the variables that are supposed to be based on exec_prefix
726 # by default will actually change.
727 # Use braces instead of parens because sh, perl, etc. also accept them.
728 # (The list follows the same order as the GNU Coding Standards.)
729 bindir='${exec_prefix}/bin'
730 sbindir='${exec_prefix}/sbin'
731 libexecdir='${exec_prefix}/libexec'
732 datarootdir='${prefix}/share'
733 datadir='${datarootdir}'
734 sysconfdir='${prefix}/etc'
735 sharedstatedir='${prefix}/com'
736 localstatedir='${prefix}/var'
737 includedir='${prefix}/include'
738 oldincludedir='/usr/include'
739 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
740 infodir='${datarootdir}/info'
741 htmldir='${docdir}'
742 dvidir='${docdir}'
743 pdfdir='${docdir}'
744 psdir='${docdir}'
745 libdir='${exec_prefix}/lib'
746 localedir='${datarootdir}/locale'
747 mandir='${datarootdir}/man'
748
749 ac_prev=
750 ac_dashdash=
751 for ac_option
752 do
753   # If the previous option needs an argument, assign it.
754   if test -n "$ac_prev"; then
755     eval $ac_prev=\$ac_option
756     ac_prev=
757     continue
758   fi
759
760   case $ac_option in
761   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
762   *=)   ac_optarg= ;;
763   *)    ac_optarg=yes ;;
764   esac
765
766   # Accept the important Cygnus configure options, so we can diagnose typos.
767
768   case $ac_dashdash$ac_option in
769   --)
770     ac_dashdash=yes ;;
771
772   -bindir | --bindir | --bindi | --bind | --bin | --bi)
773     ac_prev=bindir ;;
774   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775     bindir=$ac_optarg ;;
776
777   -build | --build | --buil | --bui | --bu)
778     ac_prev=build_alias ;;
779   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780     build_alias=$ac_optarg ;;
781
782   -cache-file | --cache-file | --cache-fil | --cache-fi \
783   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784     ac_prev=cache_file ;;
785   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787     cache_file=$ac_optarg ;;
788
789   --config-cache | -C)
790     cache_file=config.cache ;;
791
792   -datadir | --datadir | --datadi | --datad)
793     ac_prev=datadir ;;
794   -datadir=* | --datadir=* | --datadi=* | --datad=*)
795     datadir=$ac_optarg ;;
796
797   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798   | --dataroo | --dataro | --datar)
799     ac_prev=datarootdir ;;
800   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802     datarootdir=$ac_optarg ;;
803
804   -disable-* | --disable-*)
805     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806     # Reject names that are not valid shell variable names.
807     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808       as_fn_error $? "invalid feature name: $ac_useropt"
809     ac_useropt_orig=$ac_useropt
810     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811     case $ac_user_opts in
812       *"
813 "enable_$ac_useropt"
814 "*) ;;
815       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816          ac_unrecognized_sep=', ';;
817     esac
818     eval enable_$ac_useropt=no ;;
819
820   -docdir | --docdir | --docdi | --doc | --do)
821     ac_prev=docdir ;;
822   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823     docdir=$ac_optarg ;;
824
825   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826     ac_prev=dvidir ;;
827   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828     dvidir=$ac_optarg ;;
829
830   -enable-* | --enable-*)
831     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832     # Reject names that are not valid shell variable names.
833     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834       as_fn_error $? "invalid feature name: $ac_useropt"
835     ac_useropt_orig=$ac_useropt
836     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837     case $ac_user_opts in
838       *"
839 "enable_$ac_useropt"
840 "*) ;;
841       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842          ac_unrecognized_sep=', ';;
843     esac
844     eval enable_$ac_useropt=\$ac_optarg ;;
845
846   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848   | --exec | --exe | --ex)
849     ac_prev=exec_prefix ;;
850   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852   | --exec=* | --exe=* | --ex=*)
853     exec_prefix=$ac_optarg ;;
854
855   -gas | --gas | --ga | --g)
856     # Obsolete; use --with-gas.
857     with_gas=yes ;;
858
859   -help | --help | --hel | --he | -h)
860     ac_init_help=long ;;
861   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862     ac_init_help=recursive ;;
863   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864     ac_init_help=short ;;
865
866   -host | --host | --hos | --ho)
867     ac_prev=host_alias ;;
868   -host=* | --host=* | --hos=* | --ho=*)
869     host_alias=$ac_optarg ;;
870
871   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872     ac_prev=htmldir ;;
873   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874   | --ht=*)
875     htmldir=$ac_optarg ;;
876
877   -includedir | --includedir | --includedi | --included | --include \
878   | --includ | --inclu | --incl | --inc)
879     ac_prev=includedir ;;
880   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881   | --includ=* | --inclu=* | --incl=* | --inc=*)
882     includedir=$ac_optarg ;;
883
884   -infodir | --infodir | --infodi | --infod | --info | --inf)
885     ac_prev=infodir ;;
886   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887     infodir=$ac_optarg ;;
888
889   -libdir | --libdir | --libdi | --libd)
890     ac_prev=libdir ;;
891   -libdir=* | --libdir=* | --libdi=* | --libd=*)
892     libdir=$ac_optarg ;;
893
894   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895   | --libexe | --libex | --libe)
896     ac_prev=libexecdir ;;
897   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898   | --libexe=* | --libex=* | --libe=*)
899     libexecdir=$ac_optarg ;;
900
901   -localedir | --localedir | --localedi | --localed | --locale)
902     ac_prev=localedir ;;
903   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904     localedir=$ac_optarg ;;
905
906   -localstatedir | --localstatedir | --localstatedi | --localstated \
907   | --localstate | --localstat | --localsta | --localst | --locals)
908     ac_prev=localstatedir ;;
909   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911     localstatedir=$ac_optarg ;;
912
913   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914     ac_prev=mandir ;;
915   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916     mandir=$ac_optarg ;;
917
918   -nfp | --nfp | --nf)
919     # Obsolete; use --without-fp.
920     with_fp=no ;;
921
922   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923   | --no-cr | --no-c | -n)
924     no_create=yes ;;
925
926   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928     no_recursion=yes ;;
929
930   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932   | --oldin | --oldi | --old | --ol | --o)
933     ac_prev=oldincludedir ;;
934   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937     oldincludedir=$ac_optarg ;;
938
939   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940     ac_prev=prefix ;;
941   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942     prefix=$ac_optarg ;;
943
944   -program-prefix | --program-prefix | --program-prefi | --program-pref \
945   | --program-pre | --program-pr | --program-p)
946     ac_prev=program_prefix ;;
947   -program-prefix=* | --program-prefix=* | --program-prefi=* \
948   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949     program_prefix=$ac_optarg ;;
950
951   -program-suffix | --program-suffix | --program-suffi | --program-suff \
952   | --program-suf | --program-su | --program-s)
953     ac_prev=program_suffix ;;
954   -program-suffix=* | --program-suffix=* | --program-suffi=* \
955   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956     program_suffix=$ac_optarg ;;
957
958   -program-transform-name | --program-transform-name \
959   | --program-transform-nam | --program-transform-na \
960   | --program-transform-n | --program-transform- \
961   | --program-transform | --program-transfor \
962   | --program-transfo | --program-transf \
963   | --program-trans | --program-tran \
964   | --progr-tra | --program-tr | --program-t)
965     ac_prev=program_transform_name ;;
966   -program-transform-name=* | --program-transform-name=* \
967   | --program-transform-nam=* | --program-transform-na=* \
968   | --program-transform-n=* | --program-transform-=* \
969   | --program-transform=* | --program-transfor=* \
970   | --program-transfo=* | --program-transf=* \
971   | --program-trans=* | --program-tran=* \
972   | --progr-tra=* | --program-tr=* | --program-t=*)
973     program_transform_name=$ac_optarg ;;
974
975   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976     ac_prev=pdfdir ;;
977   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978     pdfdir=$ac_optarg ;;
979
980   -psdir | --psdir | --psdi | --psd | --ps)
981     ac_prev=psdir ;;
982   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983     psdir=$ac_optarg ;;
984
985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986   | -silent | --silent | --silen | --sile | --sil)
987     silent=yes ;;
988
989   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990     ac_prev=sbindir ;;
991   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992   | --sbi=* | --sb=*)
993     sbindir=$ac_optarg ;;
994
995   -sharedstatedir | --sharedstatedir | --sharedstatedi \
996   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997   | --sharedst | --shareds | --shared | --share | --shar \
998   | --sha | --sh)
999     ac_prev=sharedstatedir ;;
1000   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003   | --sha=* | --sh=*)
1004     sharedstatedir=$ac_optarg ;;
1005
1006   -site | --site | --sit)
1007     ac_prev=site ;;
1008   -site=* | --site=* | --sit=*)
1009     site=$ac_optarg ;;
1010
1011   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012     ac_prev=srcdir ;;
1013   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014     srcdir=$ac_optarg ;;
1015
1016   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017   | --syscon | --sysco | --sysc | --sys | --sy)
1018     ac_prev=sysconfdir ;;
1019   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021     sysconfdir=$ac_optarg ;;
1022
1023   -target | --target | --targe | --targ | --tar | --ta | --t)
1024     ac_prev=target_alias ;;
1025   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026     target_alias=$ac_optarg ;;
1027
1028   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029     verbose=yes ;;
1030
1031   -version | --version | --versio | --versi | --vers | -V)
1032     ac_init_version=: ;;
1033
1034   -with-* | --with-*)
1035     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038       as_fn_error $? "invalid package name: $ac_useropt"
1039     ac_useropt_orig=$ac_useropt
1040     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041     case $ac_user_opts in
1042       *"
1043 "with_$ac_useropt"
1044 "*) ;;
1045       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1046          ac_unrecognized_sep=', ';;
1047     esac
1048     eval with_$ac_useropt=\$ac_optarg ;;
1049
1050   -without-* | --without-*)
1051     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054       as_fn_error $? "invalid package name: $ac_useropt"
1055     ac_useropt_orig=$ac_useropt
1056     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057     case $ac_user_opts in
1058       *"
1059 "with_$ac_useropt"
1060 "*) ;;
1061       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062          ac_unrecognized_sep=', ';;
1063     esac
1064     eval with_$ac_useropt=no ;;
1065
1066   --x)
1067     # Obsolete; use --with-x.
1068     with_x=yes ;;
1069
1070   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071   | --x-incl | --x-inc | --x-in | --x-i)
1072     ac_prev=x_includes ;;
1073   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075     x_includes=$ac_optarg ;;
1076
1077   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079     ac_prev=x_libraries ;;
1080   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082     x_libraries=$ac_optarg ;;
1083
1084   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1085 Try \`$0 --help' for more information"
1086     ;;
1087
1088   *=*)
1089     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090     # Reject names that are not valid shell variable names.
1091     case $ac_envvar in #(
1092       '' | [0-9]* | *[!_$as_cr_alnum]* )
1093       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1094     esac
1095     eval $ac_envvar=\$ac_optarg
1096     export $ac_envvar ;;
1097
1098   *)
1099     # FIXME: should be removed in autoconf 3.0.
1100     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104     ;;
1105
1106   esac
1107 done
1108
1109 if test -n "$ac_prev"; then
1110   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111   as_fn_error $? "missing argument to $ac_option"
1112 fi
1113
1114 if test -n "$ac_unrecognized_opts"; then
1115   case $enable_option_checking in
1116     no) ;;
1117     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1118     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1119   esac
1120 fi
1121
1122 # Check all directory arguments for consistency.
1123 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124                 datadir sysconfdir sharedstatedir localstatedir includedir \
1125                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126                 libdir localedir mandir
1127 do
1128   eval ac_val=\$$ac_var
1129   # Remove trailing slashes.
1130   case $ac_val in
1131     */ )
1132       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133       eval $ac_var=\$ac_val;;
1134   esac
1135   # Be sure to have absolute directory names.
1136   case $ac_val in
1137     [\\/$]* | ?:[\\/]* )  continue;;
1138     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1139   esac
1140   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152   if test "x$build_alias" = x; then
1153     cross_compiling=maybe
1154   elif test "x$build_alias" != "x$host_alias"; then
1155     cross_compiling=yes
1156   fi
1157 fi
1158
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162 test "$silent" = yes && exec 6>/dev/null
1163
1164
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168   as_fn_error $? "working directory cannot be determined"
1169 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170   as_fn_error $? "pwd does not report name of working directory"
1171
1172
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175   ac_srcdir_defaulted=yes
1176   # Try the directory containing this script, then the parent directory.
1177   ac_confdir=`$as_dirname -- "$as_myself" ||
1178 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179          X"$as_myself" : 'X\(//\)[^/]' \| \
1180          X"$as_myself" : 'X\(//\)$' \| \
1181          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1182 $as_echo X"$as_myself" |
1183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184             s//\1/
1185             q
1186           }
1187           /^X\(\/\/\)[^/].*/{
1188             s//\1/
1189             q
1190           }
1191           /^X\(\/\/\)$/{
1192             s//\1/
1193             q
1194           }
1195           /^X\(\/\).*/{
1196             s//\1/
1197             q
1198           }
1199           s/.*/./; q'`
1200   srcdir=$ac_confdir
1201   if test ! -r "$srcdir/$ac_unique_file"; then
1202     srcdir=..
1203   fi
1204 else
1205   ac_srcdir_defaulted=no
1206 fi
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1210 fi
1211 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1212 ac_abs_confdir=`(
1213         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1214         pwd)`
1215 # When building in place, set srcdir=.
1216 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217   srcdir=.
1218 fi
1219 # Remove unnecessary trailing slashes from srcdir.
1220 # Double slashes in file names in object file debugging info
1221 # mess up M-x gdb in Emacs.
1222 case $srcdir in
1223 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 esac
1225 for ac_var in $ac_precious_vars; do
1226   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1227   eval ac_env_${ac_var}_value=\$${ac_var}
1228   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1229   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 done
1231
1232 #
1233 # Report the --help message.
1234 #
1235 if test "$ac_init_help" = "long"; then
1236   # Omit some internal or obsolete options to make the list less imposing.
1237   # This message is too long to be a string in the A/UX 3.1 sh.
1238   cat <<_ACEOF
1239 \`configure' configures ldns 1.7.0 to adapt to many kinds of systems.
1240
1241 Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1243 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244 VAR=VALUE.  See below for descriptions of some of the useful variables.
1245
1246 Defaults for the options are specified in brackets.
1247
1248 Configuration:
1249   -h, --help              display this help and exit
1250       --help=short        display options specific to this package
1251       --help=recursive    display the short help of all the included packages
1252   -V, --version           display version information and exit
1253   -q, --quiet, --silent   do not print \`checking ...' messages
1254       --cache-file=FILE   cache test results in FILE [disabled]
1255   -C, --config-cache      alias for \`--cache-file=config.cache'
1256   -n, --no-create         do not create output files
1257       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1258
1259 Installation directories:
1260   --prefix=PREFIX         install architecture-independent files in PREFIX
1261                           [$ac_default_prefix]
1262   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1263                           [PREFIX]
1264
1265 By default, \`make install' will install all the files in
1266 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1267 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268 for instance \`--prefix=\$HOME'.
1269
1270 For better control, use the options below.
1271
1272 Fine tuning of the installation directories:
1273   --bindir=DIR            user executables [EPREFIX/bin]
1274   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1275   --libexecdir=DIR        program executables [EPREFIX/libexec]
1276   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1277   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1278   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1279   --libdir=DIR            object code libraries [EPREFIX/lib]
1280   --includedir=DIR        C header files [PREFIX/include]
1281   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1282   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1283   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1284   --infodir=DIR           info documentation [DATAROOTDIR/info]
1285   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1286   --mandir=DIR            man documentation [DATAROOTDIR/man]
1287   --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1288   --htmldir=DIR           html documentation [DOCDIR]
1289   --dvidir=DIR            dvi documentation [DOCDIR]
1290   --pdfdir=DIR            pdf documentation [DOCDIR]
1291   --psdir=DIR             ps documentation [DOCDIR]
1292 _ACEOF
1293
1294   cat <<\_ACEOF
1295 _ACEOF
1296 fi
1297
1298 if test -n "$ac_init_help"; then
1299   case $ac_init_help in
1300      short | recursive ) echo "Configuration of ldns 1.7.0:";;
1301    esac
1302   cat <<\_ACEOF
1303
1304 Optional Features:
1305   --disable-option-checking  ignore unrecognized --enable/--with options
1306   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1307   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1308   --disable-rpath                disable hardcoded rpath (default=enabled)
1309
1310 Optional Packages:
1311   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1312   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1313   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1314                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1315                           /usr)
1316   --with-ldns=PATH        specify prefix of path of ldns library to use
1317
1318
1319   --with-trust-anchor=KEYFILE
1320                           Default location of the trust anchor file.
1321                           [default=SYSCONFDIR/unbound/root.key]
1322
1323 Some influential environment variables:
1324   CC          C compiler command
1325   CFLAGS      C compiler flags
1326   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1327               nonstandard directory <lib dir>
1328   LIBS        libraries to pass to the linker, e.g. -l<library>
1329   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330               you have headers in a nonstandard directory <include dir>
1331   CPP         C preprocessor
1332
1333 Use these variables to override the choices made by `configure' or to help
1334 it to find libraries and programs with nonstandard names/locations.
1335
1336 Report bugs to <libdns@nlnetlabs.nl>.
1337 _ACEOF
1338 ac_status=$?
1339 fi
1340
1341 if test "$ac_init_help" = "recursive"; then
1342   # If there are subdirs, report their specific --help.
1343   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344     test -d "$ac_dir" ||
1345       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1346       continue
1347     ac_builddir=.
1348
1349 case "$ac_dir" in
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *)
1352   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1353   # A ".." for each directory in $ac_dir_suffix.
1354   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1355   case $ac_top_builddir_sub in
1356   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358   esac ;;
1359 esac
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1364
1365 case $srcdir in
1366   .)  # We are building in place.
1367     ac_srcdir=.
1368     ac_top_srcdir=$ac_top_builddir_sub
1369     ac_abs_top_srcdir=$ac_pwd ;;
1370   [\\/]* | ?:[\\/]* )  # Absolute name.
1371     ac_srcdir=$srcdir$ac_dir_suffix;
1372     ac_top_srcdir=$srcdir
1373     ac_abs_top_srcdir=$srcdir ;;
1374   *) # Relative name.
1375     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376     ac_top_srcdir=$ac_top_build_prefix$srcdir
1377     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 esac
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381     cd "$ac_dir" || { ac_status=$?; continue; }
1382     # Check for guested configure.
1383     if test -f "$ac_srcdir/configure.gnu"; then
1384       echo &&
1385       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386     elif test -f "$ac_srcdir/configure"; then
1387       echo &&
1388       $SHELL "$ac_srcdir/configure" --help=recursive
1389     else
1390       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391     fi || ac_status=$?
1392     cd "$ac_pwd" || { ac_status=$?; break; }
1393   done
1394 fi
1395
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1398   cat <<\_ACEOF
1399 ldns configure 1.7.0
1400 generated by GNU Autoconf 2.69
1401
1402 Copyright (C) 2012 Free Software Foundation, Inc.
1403 This configure script is free software; the Free Software Foundation
1404 gives unlimited permission to copy, distribute and modify it.
1405 _ACEOF
1406   exit
1407 fi
1408
1409 ## ------------------------ ##
1410 ## Autoconf initialization. ##
1411 ## ------------------------ ##
1412
1413 # ac_fn_c_try_compile LINENO
1414 # --------------------------
1415 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1416 ac_fn_c_try_compile ()
1417 {
1418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1419   rm -f conftest.$ac_objext
1420   if { { ac_try="$ac_compile"
1421 case "(($ac_try" in
1422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1423   *) ac_try_echo=$ac_try;;
1424 esac
1425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1426 $as_echo "$ac_try_echo"; } >&5
1427   (eval "$ac_compile") 2>conftest.err
1428   ac_status=$?
1429   if test -s conftest.err; then
1430     grep -v '^ *+' conftest.err >conftest.er1
1431     cat conftest.er1 >&5
1432     mv -f conftest.er1 conftest.err
1433   fi
1434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1435   test $ac_status = 0; } && {
1436          test -z "$ac_c_werror_flag" ||
1437          test ! -s conftest.err
1438        } && test -s conftest.$ac_objext; then :
1439   ac_retval=0
1440 else
1441   $as_echo "$as_me: failed program was:" >&5
1442 sed 's/^/| /' conftest.$ac_ext >&5
1443
1444         ac_retval=1
1445 fi
1446   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1447   as_fn_set_status $ac_retval
1448
1449 } # ac_fn_c_try_compile
1450
1451 # ac_fn_c_try_cpp LINENO
1452 # ----------------------
1453 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1454 ac_fn_c_try_cpp ()
1455 {
1456   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457   if { { ac_try="$ac_cpp conftest.$ac_ext"
1458 case "(($ac_try" in
1459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460   *) ac_try_echo=$ac_try;;
1461 esac
1462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463 $as_echo "$ac_try_echo"; } >&5
1464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1465   ac_status=$?
1466   if test -s conftest.err; then
1467     grep -v '^ *+' conftest.err >conftest.er1
1468     cat conftest.er1 >&5
1469     mv -f conftest.er1 conftest.err
1470   fi
1471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472   test $ac_status = 0; } > conftest.i && {
1473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1474          test ! -s conftest.err
1475        }; then :
1476   ac_retval=0
1477 else
1478   $as_echo "$as_me: failed program was:" >&5
1479 sed 's/^/| /' conftest.$ac_ext >&5
1480
1481     ac_retval=1
1482 fi
1483   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1484   as_fn_set_status $ac_retval
1485
1486 } # ac_fn_c_try_cpp
1487
1488 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1489 # -------------------------------------------------------
1490 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1491 # the include files in INCLUDES and setting the cache variable VAR
1492 # accordingly.
1493 ac_fn_c_check_header_mongrel ()
1494 {
1495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496   if eval \${$3+:} false; then :
1497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1498 $as_echo_n "checking for $2... " >&6; }
1499 if eval \${$3+:} false; then :
1500   $as_echo_n "(cached) " >&6
1501 fi
1502 eval ac_res=\$$3
1503                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1504 $as_echo "$ac_res" >&6; }
1505 else
1506   # Is the header compilable?
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1508 $as_echo_n "checking $2 usability... " >&6; }
1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510 /* end confdefs.h.  */
1511 $4
1512 #include <$2>
1513 _ACEOF
1514 if ac_fn_c_try_compile "$LINENO"; then :
1515   ac_header_compiler=yes
1516 else
1517   ac_header_compiler=no
1518 fi
1519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1521 $as_echo "$ac_header_compiler" >&6; }
1522
1523 # Is the header present?
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1525 $as_echo_n "checking $2 presence... " >&6; }
1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527 /* end confdefs.h.  */
1528 #include <$2>
1529 _ACEOF
1530 if ac_fn_c_try_cpp "$LINENO"; then :
1531   ac_header_preproc=yes
1532 else
1533   ac_header_preproc=no
1534 fi
1535 rm -f conftest.err conftest.i conftest.$ac_ext
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1537 $as_echo "$ac_header_preproc" >&6; }
1538
1539 # So?  What about this header?
1540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1541   yes:no: )
1542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1543 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1544     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1545 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1546     ;;
1547   no:yes:* )
1548     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1549 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1550     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1551 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1552     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1553 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1554     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1555 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1556     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1558 ( $as_echo "## ---------------------------------- ##
1559 ## Report this to libdns@nlnetlabs.nl ##
1560 ## ---------------------------------- ##"
1561      ) | sed "s/^/$as_me: WARNING:     /" >&2
1562     ;;
1563 esac
1564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if eval \${$3+:} false; then :
1567   $as_echo_n "(cached) " >&6
1568 else
1569   eval "$3=\$ac_header_compiler"
1570 fi
1571 eval ac_res=\$$3
1572                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573 $as_echo "$ac_res" >&6; }
1574 fi
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576
1577 } # ac_fn_c_check_header_mongrel
1578
1579 # ac_fn_c_try_run LINENO
1580 # ----------------------
1581 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1582 # that executables *can* be run.
1583 ac_fn_c_try_run ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   if { { ac_try="$ac_link"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_link") 2>&5
1594   ac_status=$?
1595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1597   { { case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_try") 2>&5
1604   ac_status=$?
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; }; }; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: program exited with status $ac_status" >&5
1610        $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613        ac_retval=$ac_status
1614 fi
1615   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_run
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631   $as_echo_n "(cached) " >&6
1632 else
1633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h.  */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639   eval "$3=yes"
1640 else
1641   eval "$3=no"
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 fi
1645 eval ac_res=\$$3
1646                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1653 # -------------------------------------------
1654 # Tests whether TYPE exists after having included INCLUDES, setting cache
1655 # variable VAR accordingly.
1656 ac_fn_c_check_type ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662   $as_echo_n "(cached) " >&6
1663 else
1664   eval "$3=no"
1665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h.  */
1667 $4
1668 int
1669 main ()
1670 {
1671 if (sizeof ($2))
1672          return 0;
1673   ;
1674   return 0;
1675 }
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h.  */
1680 $4
1681 int
1682 main ()
1683 {
1684 if (sizeof (($2)))
1685             return 0;
1686   ;
1687   return 0;
1688 }
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691
1692 else
1693   eval "$3=yes"
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_type
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   rm -f conftest.$ac_objext conftest$ac_exeext
1713   if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_link") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } && {
1729          test -z "$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        } && test -s conftest$ac_exeext && {
1732          test "$cross_compiling" = yes ||
1733          test -x conftest$ac_exeext
1734        }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744   # interfere with the next link command; also delete a directory that is
1745   # left behind by Apple's compiler.  We do this before executing the actions.
1746   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770     which can conflict with char $2 (); below.
1771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772     <limits.h> exists even on freestanding compilers.  */
1773
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1779
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783    Use char because int might match the return type of a GCC
1784    builtin and then its argument prototype would still apply.  */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790     to always fail with ENOSYS.  Some functions are actually named
1791     something starting with __ and the normal name is an alias.  */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main ()
1798 {
1799 return $2 ();
1800   ;
1801   return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805   eval "$3=yes"
1806 else
1807   eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext \
1810     conftest$ac_exeext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_func
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1821
1822 It was created by ldns $as_me 1.7.0, which was
1823 generated by GNU Autoconf 2.69.  Invocation command line was
1824
1825   $ $0 $@
1826
1827 _ACEOF
1828 exec 5>>config.log
1829 {
1830 cat <<_ASUNAME
1831 ## --------- ##
1832 ## Platform. ##
1833 ## --------- ##
1834
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1843
1844 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1845 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1848 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1849 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1850 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1851
1852 _ASUNAME
1853
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859     $as_echo "PATH: $as_dir"
1860   done
1861 IFS=$as_save_IFS
1862
1863 } >&5
1864
1865 cat >&5 <<_ACEOF
1866
1867
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1871
1872 _ACEOF
1873
1874
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1885 do
1886   for ac_arg
1887   do
1888     case $ac_arg in
1889     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891     | -silent | --silent | --silen | --sile | --sil)
1892       continue ;;
1893     *\'*)
1894       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895     esac
1896     case $ac_pass in
1897     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898     2)
1899       as_fn_append ac_configure_args1 " '$ac_arg'"
1900       if test $ac_must_keep_next = true; then
1901         ac_must_keep_next=false # Got value, back to normal.
1902       else
1903         case $ac_arg in
1904           *=* | --config-cache | -C | -disable-* | --disable-* \
1905           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907           | -with-* | --with-* | -without-* | --without-* | --x)
1908             case "$ac_configure_args0 " in
1909               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910             esac
1911             ;;
1912           -* ) ac_must_keep_next=true ;;
1913         esac
1914       fi
1915       as_fn_append ac_configure_args " '$ac_arg'"
1916       ;;
1917     esac
1918   done
1919 done
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1922
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log.  We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929   # Save into config.log some information that might help in debugging.
1930   {
1931     echo
1932
1933     $as_echo "## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##"
1936     echo
1937     # The following way of writing the cache mishandles newlines in values,
1938 (
1939   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940     eval ac_val=\$$ac_var
1941     case $ac_val in #(
1942     *${as_nl}*)
1943       case $ac_var in #(
1944       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946       esac
1947       case $ac_var in #(
1948       _ | IFS | as_nl) ;; #(
1949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950       *) { eval $ac_var=; unset $ac_var;} ;;
1951       esac ;;
1952     esac
1953   done
1954   (set) 2>&1 |
1955     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956     *${as_nl}ac_space=\ *)
1957       sed -n \
1958         "s/'\''/'\''\\\\'\'''\''/g;
1959           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960       ;; #(
1961     *)
1962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963       ;;
1964     esac |
1965     sort
1966 )
1967     echo
1968
1969     $as_echo "## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##"
1972     echo
1973     for ac_var in $ac_subst_vars
1974     do
1975       eval ac_val=\$$ac_var
1976       case $ac_val in
1977       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978       esac
1979       $as_echo "$ac_var='\''$ac_val'\''"
1980     done | sort
1981     echo
1982
1983     if test -n "$ac_subst_files"; then
1984       $as_echo "## ------------------- ##
1985 ## File substitutions. ##
1986 ## ------------------- ##"
1987       echo
1988       for ac_var in $ac_subst_files
1989       do
1990         eval ac_val=\$$ac_var
1991         case $ac_val in
1992         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993         esac
1994         $as_echo "$ac_var='\''$ac_val'\''"
1995       done | sort
1996       echo
1997     fi
1998
1999     if test -s confdefs.h; then
2000       $as_echo "## ----------- ##
2001 ## confdefs.h. ##
2002 ## ----------- ##"
2003       echo
2004       cat confdefs.h
2005       echo
2006     fi
2007     test "$ac_signal" != 0 &&
2008       $as_echo "$as_me: caught signal $ac_signal"
2009     $as_echo "$as_me: exit $exit_status"
2010   } >&5
2011   rm -f core *.core core.conftest.* &&
2012     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013     exit $exit_status
2014 ' 0
2015 for ac_signal in 1 2 13 15; do
2016   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017 done
2018 ac_signal=0
2019
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2022
2023 $as_echo "/* confdefs.h */" > confdefs.h
2024
2025 # Predefined preprocessor variables.
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2049 _ACEOF
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 ac_site_file1=NONE
2055 ac_site_file2=NONE
2056 if test -n "$CONFIG_SITE"; then
2057   # We do not want a PATH search for config.site.
2058   case $CONFIG_SITE in #((
2059     -*)  ac_site_file1=./$CONFIG_SITE;;
2060     */*) ac_site_file1=$CONFIG_SITE;;
2061     *)   ac_site_file1=./$CONFIG_SITE;;
2062   esac
2063 elif test "x$prefix" != xNONE; then
2064   ac_site_file1=$prefix/share/config.site
2065   ac_site_file2=$prefix/etc/config.site
2066 else
2067   ac_site_file1=$ac_default_prefix/share/config.site
2068   ac_site_file2=$ac_default_prefix/etc/config.site
2069 fi
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071 do
2072   test "x$ac_site_file" = xNONE && continue
2073   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076     sed 's/^/| /' "$ac_site_file" >&5
2077     . "$ac_site_file" \
2078       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2082   fi
2083 done
2084
2085 if test -r "$cache_file"; then
2086   # Some versions of bash will fail to source /dev/null (special files
2087   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2088   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2091     case $cache_file in
2092       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093       *)                      . "./$cache_file";;
2094     esac
2095   fi
2096 else
2097   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2099   >$cache_file
2100 fi
2101
2102 # Check that the precious variables saved in the cache have kept the same
2103 # value.
2104 ac_cache_corrupted=false
2105 for ac_var in $ac_precious_vars; do
2106   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107   eval ac_new_set=\$ac_env_${ac_var}_set
2108   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109   eval ac_new_val=\$ac_env_${ac_var}_value
2110   case $ac_old_set,$ac_new_set in
2111     set,)
2112       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114       ac_cache_corrupted=: ;;
2115     ,set)
2116       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118       ac_cache_corrupted=: ;;
2119     ,);;
2120     *)
2121       if test "x$ac_old_val" != "x$ac_new_val"; then
2122         # differences in whitespace do not lead to failure.
2123         ac_old_val_w=`echo x $ac_old_val`
2124         ac_new_val_w=`echo x $ac_new_val`
2125         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128           ac_cache_corrupted=:
2129         else
2130           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132           eval $ac_var=\$ac_old_val
2133         fi
2134         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2135 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2136         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2137 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2138       fi;;
2139   esac
2140   # Pass precious variables to config.status.
2141   if test "$ac_new_set" = set; then
2142     case $ac_new_val in
2143     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144     *) ac_arg=$ac_var=$ac_new_val ;;
2145     esac
2146     case " $ac_configure_args " in
2147       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2148       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149     esac
2150   fi
2151 done
2152 if $ac_cache_corrupted; then
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 fi
2159 ## -------------------- ##
2160 ## Main body of script. ##
2161 ## -------------------- ##
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171 # acx_nlnetlabs.m4 - common macros for configure checks
2172 # Copyright 2009, Wouter Wijngaards, NLnet Labs.
2173 # BSD licensed.
2174 #
2175 # Version 34
2176 # 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0.
2177 # 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0).
2178 # 2016-01-04 -D_DEFAULT_SOURCE defined with -D_BSD_SOURCE for Linux glibc 2.20
2179 # 2015-12-11 FLTO check for new OSX, clang.
2180 # 2015-11-18 spelling check fix.
2181 # 2015-11-05 ACX_SSL_CHECKS no longer adds -ldl needlessly.
2182 # 2015-08-28 ACX_CHECK_PIE and ACX_CHECK_RELRO_NOW added.
2183 # 2015-03-17 AHX_CONFIG_REALLOCARRAY added
2184 # 2013-09-19 FLTO help text improved.
2185 # 2013-07-18 Enable ACX_CHECK_COMPILER_FLAG to test for -Wstrict-prototypes
2186 # 2013-06-25 FLTO has --disable-flto option.
2187 # 2013-05-03 Update W32_SLEEP for newer mingw that links but not defines it.
2188 # 2013-03-22 Fix ACX_RSRC_VERSION for long version numbers.
2189 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2190 # 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2191 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2192 #            Fix ACX_MALLOC for redefined malloc error.
2193 #            Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2194 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2195 # 2011-11-01 Fix FLTO test for llvm on Lion.
2196 # 2011-08-01 Fix nonblock test (broken at v13).
2197 # 2011-08-01 Fix autoconf 2.68 warnings
2198 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2199 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2200 # 2010-07-02 Add check for ss_family (for minix).
2201 # 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2202 # 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2203 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS separate, -ldl
2204 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2205 # 2010-01-20 added AHX_COONFIG_STRLCAT
2206 # 2009-07-14 U_CHAR detection improved for windows crosscompile.
2207 #            added ACX_FUNC_MALLOC
2208 #            fixup some #if to #ifdef
2209 #            NONBLOCKING test for mingw crosscompile.
2210 # 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2211 # 2009-07-03 fixup LDFLAGS for empty ssl dir.
2212 #
2213 # Automates some of the checking constructs.  Aims at portability for POSIX.
2214 # Documentation for functions is below.
2215 #
2216 # the following macro's are provided in this file:
2217 # (see below for details on each macro).
2218 #
2219 # ACX_ESCAPE_BACKSLASH          - escape backslashes in var for C-preproc.
2220 # ACX_RSRC_VERSION              - create windows resource version number.
2221 # ACX_CHECK_COMPILER_FLAG       - see if cc supports a flag.
2222 # ACX_CHECK_ERROR_FLAGS         - see which flag is -werror (used below).
2223 # ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2224 # ACX_DEPFLAG                   - find cc dependency flags.
2225 # ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2226 # ACX_CHECK_FORMAT_ATTRIBUTE    - find cc printf format syntax.
2227 # ACX_CHECK_UNUSED_ATTRIBUTE    - find cc variable unused syntax.
2228 # ACX_CHECK_FLTO                - see if cc supports -flto and use it if so.
2229 # ACX_LIBTOOL_C_ONLY            - create libtool for C only, improved.
2230 # ACX_TYPE_U_CHAR               - u_char type.
2231 # ACX_TYPE_RLIM_T               - rlim_t type.
2232 # ACX_TYPE_SOCKLEN_T            - socklen_t type.
2233 # ACX_TYPE_IN_ADDR_T            - in_addr_t type.
2234 # ACX_TYPE_IN_PORT_T            - in_port_t type.
2235 # ACX_ARG_RPATH                 - add --disable-rpath option.
2236 # ACX_WITH_SSL                  - add --with-ssl option, link -lcrypto.
2237 # ACX_WITH_SSL_OPTIONAL         - add --with-ssl option, link -lcrypto,
2238 #                                 where --without-ssl is also accepted
2239 # ACX_LIB_SSL                   - setup to link -lssl.
2240 # ACX_SYS_LARGEFILE             - improved sys_largefile, fseeko, >2G files.
2241 # ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2242 # ACX_FUNC_DEPRECATED           - see if func is deprecated.
2243 # ACX_CHECK_NONBLOCKING_BROKEN  - see if nonblocking sockets really work.
2244 # ACX_MKDIR_ONE_ARG             - determine mkdir(2) number of arguments.
2245 # ACX_FUNC_IOCTLSOCKET          - find ioctlsocket, portably.
2246 # ACX_FUNC_MALLOC               - check malloc, define replacement .
2247 # AHX_CONFIG_FORMAT_ATTRIBUTE   - config.h text for format.
2248 # AHX_CONFIG_UNUSED_ATTRIBUTE   - config.h text for unused.
2249 # AHX_CONFIG_FSEEKO             - define fseeko, ftello fallback.
2250 # AHX_CONFIG_RAND_MAX           - define RAND_MAX if needed.
2251 # AHX_CONFIG_MAXHOSTNAMELEN     - define MAXHOSTNAMELEN if needed.
2252 # AHX_CONFIG_IPV6_MIN_MTU       - define IPV6_MIN_MTU if needed.
2253 # AHX_CONFIG_SNPRINTF           - snprintf compat prototype
2254 # AHX_CONFIG_INET_PTON          - inet_pton compat prototype
2255 # AHX_CONFIG_INET_NTOP          - inet_ntop compat prototype
2256 # AHX_CONFIG_INET_ATON          - inet_aton compat prototype
2257 # AHX_CONFIG_MEMMOVE            - memmove compat prototype
2258 # AHX_CONFIG_STRLCAT            - strlcat compat prototype
2259 # AHX_CONFIG_STRLCPY            - strlcpy compat prototype
2260 # AHX_CONFIG_GMTIME_R           - gmtime_r compat prototype
2261 # AHX_CONFIG_W32_SLEEP          - w32 compat for sleep
2262 # AHX_CONFIG_W32_USLEEP         - w32 compat for usleep
2263 # AHX_CONFIG_W32_RANDOM         - w32 compat for random
2264 # AHX_CONFIG_W32_SRANDOM        - w32 compat for srandom
2265 # AHX_CONFIG_W32_FD_SET_T       - w32 detection of FD_SET_T.
2266 # ACX_CFLAGS_STRIP              - strip one flag from CFLAGS
2267 # ACX_STRIP_EXT_FLAGS           - strip extension flags from CFLAGS
2268 # AHX_CONFIG_FLAG_OMITTED       - define omitted flag
2269 # AHX_CONFIG_FLAG_EXT           - define omitted extension flag
2270 # AHX_CONFIG_EXT_FLAGS          - define the stripped extension flags
2271 # ACX_CHECK_MEMCMP_SIGNED       - check if memcmp uses signed characters.
2272 # AHX_MEMCMP_BROKEN             - replace memcmp func for CHECK_MEMCMP_SIGNED.
2273 # ACX_CHECK_SS_FAMILY           - check for sockaddr_storage.ss_family
2274 # ACX_CHECK_PIE                 - add --enable-pie option and check if works
2275 # ACX_CHECK_RELRO_NOW           - add --enable-relro-now option and check it
2276 #
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385 OURCPPFLAGS=''
2386 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2387 OURCFLAGS='-g'
2388 CFLAGS=${CFLAGS:-${OURCFLAGS}}
2389
2390 $as_echo "#define WINVER 0x0502" >>confdefs.h
2391
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_CC+:} false; then :
2404   $as_echo_n "(cached) " >&6
2405 else
2406   if test -n "$CC"; then
2407   ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414     for ac_exec_ext in '' $ac_executable_extensions; do
2415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421   done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429 $as_echo "$CC" >&6; }
2430 else
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435
2436 fi
2437 if test -z "$ac_cv_prog_CC"; then
2438   ac_ct_CC=$CC
2439   # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2444   $as_echo_n "(cached) " >&6
2445 else
2446   if test -n "$ac_ct_CC"; then
2447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454     for ac_exec_ext in '' $ac_executable_extensions; do
2455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_ac_ct_CC="gcc"
2457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461   done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 $as_echo "$ac_ct_CC" >&6; }
2470 else
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475   if test "x$ac_ct_CC" = x; then
2476     CC=""
2477   else
2478     case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484     CC=$ac_ct_CC
2485   fi
2486 else
2487   CC="$ac_cv_prog_CC"
2488 fi
2489
2490 if test -z "$CC"; then
2491           if test -n "$ac_tool_prefix"; then
2492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_CC+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$CC"; then
2500   ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509     ac_cv_prog_CC="${ac_tool_prefix}cc"
2510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514   done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522 $as_echo "$CC" >&6; }
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529   fi
2530 fi
2531 if test -z "$CC"; then
2532   # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542   ac_prog_rejected=no
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548     for ac_exec_ext in '' $ac_executable_extensions; do
2549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551        ac_prog_rejected=yes
2552        continue
2553      fi
2554     ac_cv_prog_CC="cc"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 if test $ac_prog_rejected = yes; then
2563   # We found a bogon in the path, so make sure we never use it.
2564   set dummy $ac_cv_prog_CC
2565   shift
2566   if test $# != 0; then
2567     # We chose a different compiler from the bogus one.
2568     # However, it has the same basename, so the bogon will be chosen
2569     # first if we set CC to just the basename; use the full file name.
2570     shift
2571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572   fi
2573 fi
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$CC"; then
2588   if test -n "$ac_tool_prefix"; then
2589   for ac_prog in cl.exe
2590   do
2591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_CC+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test -n "$CC"; then
2599   ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606     for ac_exec_ext in '' $ac_executable_extensions; do
2607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613   done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2622 else
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628     test -n "$CC" && break
2629   done
2630 fi
2631 if test -z "$CC"; then
2632   ac_ct_CC=$CC
2633   for ac_prog in cl.exe
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2640   $as_echo_n "(cached) " >&6
2641 else
2642   if test -n "$ac_ct_CC"; then
2643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     for ac_exec_ext in '' $ac_executable_extensions; do
2651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_ac_ct_CC="$ac_prog"
2653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657   done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2666 else
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672   test -n "$ac_ct_CC" && break
2673 done
2674
2675   if test "x$ac_ct_CC" = x; then
2676     CC=""
2677   else
2678     case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684     CC=$ac_ct_CC
2685   fi
2686 fi
2687
2688 fi
2689
2690
2691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details" "$LINENO" 5; }
2695
2696 # Provide some information about the compiler.
2697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2698 set X $ac_compile
2699 ac_compiler=$2
2700 for ac_option in --version -v -V -qversion; do
2701   { { ac_try="$ac_compiler $ac_option >&5"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2709   ac_status=$?
2710   if test -s conftest.err; then
2711     sed '10a\
2712 ... rest of stderr output deleted ...
2713          10q' conftest.err >conftest.er1
2714     cat conftest.er1 >&5
2715   fi
2716   rm -f conftest.er1 conftest.err
2717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718   test $ac_status = 0; }
2719 done
2720
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h.  */
2723
2724 int
2725 main ()
2726 {
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2736 # of exeext.
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2738 $as_echo_n "checking whether the C compiler works... " >&6; }
2739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740
2741 # The possible output files:
2742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2743
2744 ac_rmfiles=
2745 for ac_file in $ac_files
2746 do
2747   case $ac_file in
2748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2750   esac
2751 done
2752 rm -f $ac_rmfiles
2753
2754 if { { ac_try="$ac_link_default"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761   (eval "$ac_link_default") 2>&5
2762   ac_status=$?
2763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764   test $ac_status = 0; }; then :
2765   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2768 # so that the user can short-circuit this test for compilers unknown to
2769 # Autoconf.
2770 for ac_file in $ac_files ''
2771 do
2772   test -f "$ac_file" || continue
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2775         ;;
2776     [ab].out )
2777         # We found the default executable, but exeext='' is most
2778         # certainly right.
2779         break;;
2780     *.* )
2781         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2782         then :; else
2783            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784         fi
2785         # We set ac_cv_exeext here because the later test for it is not
2786         # safe: cross compilers may not add the suffix if given an `-o'
2787         # argument, so we may need to know it at that point already.
2788         # Even if this section looks crufty: it has the advantage of
2789         # actually working.
2790         break;;
2791     * )
2792         break;;
2793   esac
2794 done
2795 test "$ac_cv_exeext" = no && ac_cv_exeext=
2796
2797 else
2798   ac_file=''
2799 fi
2800 if test -z "$ac_file"; then :
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error 77 "C compiler cannot create executables
2809 See \`config.log' for more details" "$LINENO" 5; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2815 $as_echo_n "checking for C compiler default output file name... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2817 $as_echo "$ac_file" >&6; }
2818 ac_exeext=$ac_cv_exeext
2819
2820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2823 $as_echo_n "checking for suffix of executables... " >&6; }
2824 if { { ac_try="$ac_link"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831   (eval "$ac_link") 2>&5
2832   ac_status=$?
2833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834   test $ac_status = 0; }; then :
2835   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2838 # `rm'.
2839 for ac_file in conftest.exe conftest conftest.*; do
2840   test -f "$ac_file" || continue
2841   case $ac_file in
2842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844           break;;
2845     * ) break;;
2846   esac
2847 done
2848 else
2849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details" "$LINENO" 5; }
2853 fi
2854 rm -f conftest conftest$ac_cv_exeext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2856 $as_echo "$ac_cv_exeext" >&6; }
2857
2858 rm -f conftest.$ac_ext
2859 EXEEXT=$ac_cv_exeext
2860 ac_exeext=$EXEEXT
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h.  */
2863 #include <stdio.h>
2864 int
2865 main ()
2866 {
2867 FILE *f = fopen ("conftest.out", "w");
2868  return ferror (f) || fclose (f) != 0;
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 ac_clean_files="$ac_clean_files conftest.out"
2875 # Check that the compiler produces executables we can run.  If not, either
2876 # the compiler is broken, or we cross compile.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2878 $as_echo_n "checking whether we are cross compiling... " >&6; }
2879 if test "$cross_compiling" != yes; then
2880   { { ac_try="$ac_link"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887   (eval "$ac_link") 2>&5
2888   ac_status=$?
2889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890   test $ac_status = 0; }
2891   if { ac_try='./conftest$ac_cv_exeext'
2892   { { case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898   (eval "$ac_try") 2>&5
2899   ac_status=$?
2900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901   test $ac_status = 0; }; }; then
2902     cross_compiling=no
2903   else
2904     if test "$cross_compiling" = maybe; then
2905         cross_compiling=yes
2906     else
2907         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details" "$LINENO" 5; }
2912     fi
2913   fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2916 $as_echo "$cross_compiling" >&6; }
2917
2918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2919 ac_clean_files=$ac_clean_files_save
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2921 $as_echo_n "checking for suffix of object files... " >&6; }
2922 if ${ac_cv_objext+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { { ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_compile") 2>&5
2945   ac_status=$?
2946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947   test $ac_status = 0; }; then :
2948   for ac_file in conftest.o conftest.obj conftest.*; do
2949   test -f "$ac_file" || continue;
2950   case $ac_file in
2951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2952     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2953        break;;
2954   esac
2955 done
2956 else
2957   $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error $? "cannot compute suffix of object files: cannot compile
2963 See \`config.log' for more details" "$LINENO" 5; }
2964 fi
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2968 $as_echo "$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2973 if ${ac_cv_c_compiler_gnu+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h.  */
2978
2979 int
2980 main ()
2981 {
2982 #ifndef __GNUC__
2983        choke me
2984 #endif
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991   ac_compiler_gnu=yes
2992 else
2993   ac_compiler_gnu=no
2994 fi
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3001 if test $ac_compiler_gnu = yes; then
3002   GCC=yes
3003 else
3004   GCC=
3005 fi
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3010 if ${ac_cv_prog_cc_g+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   ac_save_c_werror_flag=$ac_c_werror_flag
3014    ac_c_werror_flag=yes
3015    ac_cv_prog_cc_g=no
3016    CFLAGS="-g"
3017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h.  */
3019
3020 int
3021 main ()
3022 {
3023
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029   ac_cv_prog_cc_g=yes
3030 else
3031   CFLAGS=""
3032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 if ac_fn_c_try_compile "$LINENO"; then :
3044
3045 else
3046   ac_c_werror_flag=$ac_save_c_werror_flag
3047          CFLAGS="-g"
3048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060   ac_cv_prog_cc_g=yes
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067    ac_c_werror_flag=$ac_save_c_werror_flag
3068 fi
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3070 $as_echo "$ac_cv_prog_cc_g" >&6; }
3071 if test "$ac_test_CFLAGS" = set; then
3072   CFLAGS=$ac_save_CFLAGS
3073 elif test $ac_cv_prog_cc_g = yes; then
3074   if test "$GCC" = yes; then
3075     CFLAGS="-g -O2"
3076   else
3077     CFLAGS="-g"
3078   fi
3079 else
3080   if test "$GCC" = yes; then
3081     CFLAGS="-O2"
3082   else
3083     CFLAGS=
3084   fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3088 if ${ac_cv_prog_cc_c89+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   ac_cv_prog_cc_c89=no
3092 ac_save_CC=$CC
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095 #include <stdarg.h>
3096 #include <stdio.h>
3097 struct stat;
3098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3099 struct buf { int x; };
3100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3101 static char *e (p, i)
3102      char **p;
3103      int i;
3104 {
3105   return p[i];
3106 }
3107 static char *f (char * (*g) (char **, int), char **p, ...)
3108 {
3109   char *s;
3110   va_list v;
3111   va_start (v,p);
3112   s = g (p, va_arg (v,int));
3113   va_end (v);
3114   return s;
3115 }
3116
3117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3118    function prototypes and stuff, but not '\xHH' hex character constants.
3119    These don't provoke an error unfortunately, instead are silently treated
3120    as 'x'.  The following induces an error, until -std is added to get
3121    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3122    array size at least.  It's necessary to write '\x00'==0 to get something
3123    that's true only with -std.  */
3124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3125
3126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3127    inside strings and character constants.  */
3128 #define FOO(x) 'x'
3129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3130
3131 int test (int i, double x);
3132 struct s1 {int (*f) (int a);};
3133 struct s2 {int (*f) (double a);};
3134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3135 int argc;
3136 char **argv;
3137 int
3138 main ()
3139 {
3140 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3146         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3147 do
3148   CC="$ac_save_CC $ac_arg"
3149   if ac_fn_c_try_compile "$LINENO"; then :
3150   ac_cv_prog_cc_c89=$ac_arg
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext
3153   test "x$ac_cv_prog_cc_c89" != "xno" && break
3154 done
3155 rm -f conftest.$ac_ext
3156 CC=$ac_save_CC
3157
3158 fi
3159 # AC_CACHE_VAL
3160 case "x$ac_cv_prog_cc_c89" in
3161   x)
3162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3163 $as_echo "none needed" >&6; } ;;
3164   xno)
3165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3166 $as_echo "unsupported" >&6; } ;;
3167   *)
3168     CC="$CC $ac_cv_prog_cc_c89"
3169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3171 esac
3172 if test "x$ac_cv_prog_cc_c89" != xno; then :
3173
3174 fi
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3190 # On Suns, sometimes $CPP names a directory.
3191 if test -n "$CPP" && test -d "$CPP"; then
3192   CPP=
3193 fi
3194 if test -z "$CPP"; then
3195   if ${ac_cv_prog_CPP+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198       # Double quotes because CPP needs to be expanded
3199     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3200     do
3201       ac_preproc_ok=false
3202 for ac_c_preproc_warn_flag in '' yes
3203 do
3204   # Use a header file that comes with gcc, so configuring glibc
3205   # with a fresh cross-compiler works.
3206   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3207   # <limits.h> exists even on freestanding compilers.
3208   # On the NeXT, cc -E runs the code through the compiler's parser,
3209   # not just through cpp. "Syntax error" is here to catch this case.
3210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h.  */
3212 #ifdef __STDC__
3213 # include <limits.h>
3214 #else
3215 # include <assert.h>
3216 #endif
3217                      Syntax error
3218 _ACEOF
3219 if ac_fn_c_try_cpp "$LINENO"; then :
3220
3221 else
3222   # Broken: fails on valid input.
3223 continue
3224 fi
3225 rm -f conftest.err conftest.i conftest.$ac_ext
3226
3227   # OK, works on sane cases.  Now check whether nonexistent headers
3228   # can be detected and how.
3229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h.  */
3231 #include <ac_nonexistent.h>
3232 _ACEOF
3233 if ac_fn_c_try_cpp "$LINENO"; then :
3234   # Broken: success on invalid input.
3235 continue
3236 else
3237   # Passes both tests.
3238 ac_preproc_ok=:
3239 break
3240 fi
3241 rm -f conftest.err conftest.i conftest.$ac_ext
3242
3243 done
3244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245 rm -f conftest.i conftest.err conftest.$ac_ext
3246 if $ac_preproc_ok; then :
3247   break
3248 fi
3249
3250     done
3251     ac_cv_prog_CPP=$CPP
3252
3253 fi
3254   CPP=$ac_cv_prog_CPP
3255 else
3256   ac_cv_prog_CPP=$CPP
3257 fi
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3259 $as_echo "$CPP" >&6; }
3260 ac_preproc_ok=false
3261 for ac_c_preproc_warn_flag in '' yes
3262 do
3263   # Use a header file that comes with gcc, so configuring glibc
3264   # with a fresh cross-compiler works.
3265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266   # <limits.h> exists even on freestanding compilers.
3267   # On the NeXT, cc -E runs the code through the compiler's parser,
3268   # not just through cpp. "Syntax error" is here to catch this case.
3269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h.  */
3271 #ifdef __STDC__
3272 # include <limits.h>
3273 #else
3274 # include <assert.h>
3275 #endif
3276                      Syntax error
3277 _ACEOF
3278 if ac_fn_c_try_cpp "$LINENO"; then :
3279
3280 else
3281   # Broken: fails on valid input.
3282 continue
3283 fi
3284 rm -f conftest.err conftest.i conftest.$ac_ext
3285
3286   # OK, works on sane cases.  Now check whether nonexistent headers
3287   # can be detected and how.
3288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h.  */
3290 #include <ac_nonexistent.h>
3291 _ACEOF
3292 if ac_fn_c_try_cpp "$LINENO"; then :
3293   # Broken: success on invalid input.
3294 continue
3295 else
3296   # Passes both tests.
3297 ac_preproc_ok=:
3298 break
3299 fi
3300 rm -f conftest.err conftest.i conftest.$ac_ext
3301
3302 done
3303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3304 rm -f conftest.i conftest.err conftest.$ac_ext
3305 if $ac_preproc_ok; then :
3306
3307 else
3308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 fi
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3322 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3323 if ${ac_cv_path_GREP+:} false; then :
3324   $as_echo_n "(cached) " >&6
3325 else
3326   if test -z "$GREP"; then
3327   ac_path_GREP_found=false
3328   # Loop through the user's path and test for each of PROGNAME-LIST
3329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3331 do
3332   IFS=$as_save_IFS
3333   test -z "$as_dir" && as_dir=.
3334     for ac_prog in grep ggrep; do
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3337       as_fn_executable_p "$ac_path_GREP" || continue
3338 # Check for GNU ac_path_GREP and select it if it is found.
3339   # Check for GNU $ac_path_GREP
3340 case `"$ac_path_GREP" --version 2>&1` in
3341 *GNU*)
3342   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3343 *)
3344   ac_count=0
3345   $as_echo_n 0123456789 >"conftest.in"
3346   while :
3347   do
3348     cat "conftest.in" "conftest.in" >"conftest.tmp"
3349     mv "conftest.tmp" "conftest.in"
3350     cp "conftest.in" "conftest.nl"
3351     $as_echo 'GREP' >> "conftest.nl"
3352     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3353     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3354     as_fn_arith $ac_count + 1 && ac_count=$as_val
3355     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3356       # Best one so far, save it but keep looking for a better one
3357       ac_cv_path_GREP="$ac_path_GREP"
3358       ac_path_GREP_max=$ac_count
3359     fi
3360     # 10*(2^10) chars as input seems more than enough
3361     test $ac_count -gt 10 && break
3362   done
3363   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3364 esac
3365
3366       $ac_path_GREP_found && break 3
3367     done
3368   done
3369   done
3370 IFS=$as_save_IFS
3371   if test -z "$ac_cv_path_GREP"; then
3372     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3373   fi
3374 else
3375   ac_cv_path_GREP=$GREP
3376 fi
3377
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3380 $as_echo "$ac_cv_path_GREP" >&6; }
3381  GREP="$ac_cv_path_GREP"
3382
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3385 $as_echo_n "checking for egrep... " >&6; }
3386 if ${ac_cv_path_EGREP+:} false; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3390    then ac_cv_path_EGREP="$GREP -E"
3391    else
3392      if test -z "$EGREP"; then
3393   ac_path_EGREP_found=false
3394   # Loop through the user's path and test for each of PROGNAME-LIST
3395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_prog in egrep; do
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3403       as_fn_executable_p "$ac_path_EGREP" || continue
3404 # Check for GNU ac_path_EGREP and select it if it is found.
3405   # Check for GNU $ac_path_EGREP
3406 case `"$ac_path_EGREP" --version 2>&1` in
3407 *GNU*)
3408   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3409 *)
3410   ac_count=0
3411   $as_echo_n 0123456789 >"conftest.in"
3412   while :
3413   do
3414     cat "conftest.in" "conftest.in" >"conftest.tmp"
3415     mv "conftest.tmp" "conftest.in"
3416     cp "conftest.in" "conftest.nl"
3417     $as_echo 'EGREP' >> "conftest.nl"
3418     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3419     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3420     as_fn_arith $ac_count + 1 && ac_count=$as_val
3421     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3422       # Best one so far, save it but keep looking for a better one
3423       ac_cv_path_EGREP="$ac_path_EGREP"
3424       ac_path_EGREP_max=$ac_count
3425     fi
3426     # 10*(2^10) chars as input seems more than enough
3427     test $ac_count -gt 10 && break
3428   done
3429   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3430 esac
3431
3432       $ac_path_EGREP_found && break 3
3433     done
3434   done
3435   done
3436 IFS=$as_save_IFS
3437   if test -z "$ac_cv_path_EGREP"; then
3438     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3439   fi
3440 else
3441   ac_cv_path_EGREP=$EGREP
3442 fi
3443
3444    fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3447 $as_echo "$ac_cv_path_EGREP" >&6; }
3448  EGREP="$ac_cv_path_EGREP"
3449
3450
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3452 $as_echo_n "checking for ANSI C header files... " >&6; }
3453 if ${ac_cv_header_stdc+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h.  */
3458 #include <stdlib.h>
3459 #include <stdarg.h>
3460 #include <string.h>
3461 #include <float.h>
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472   ac_cv_header_stdc=yes
3473 else
3474   ac_cv_header_stdc=no
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
3478 if test $ac_cv_header_stdc = yes; then
3479   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482 #include <string.h>
3483
3484 _ACEOF
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486   $EGREP "memchr" >/dev/null 2>&1; then :
3487
3488 else
3489   ac_cv_header_stdc=no
3490 fi
3491 rm -f conftest*
3492
3493 fi
3494
3495 if test $ac_cv_header_stdc = yes; then
3496   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499 #include <stdlib.h>
3500
3501 _ACEOF
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503   $EGREP "free" >/dev/null 2>&1; then :
3504
3505 else
3506   ac_cv_header_stdc=no
3507 fi
3508 rm -f conftest*
3509
3510 fi
3511
3512 if test $ac_cv_header_stdc = yes; then
3513   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3514   if test "$cross_compiling" = yes; then :
3515   :
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519 #include <ctype.h>
3520 #include <stdlib.h>
3521 #if ((' ' & 0x0FF) == 0x020)
3522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3524 #else
3525 # define ISLOWER(c) \
3526                    (('a' <= (c) && (c) <= 'i') \
3527                      || ('j' <= (c) && (c) <= 'r') \
3528                      || ('s' <= (c) && (c) <= 'z'))
3529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3530 #endif
3531
3532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3533 int
3534 main ()
3535 {
3536   int i;
3537   for (i = 0; i < 256; i++)
3538     if (XOR (islower (i), ISLOWER (i))
3539         || toupper (i) != TOUPPER (i))
3540       return 2;
3541   return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_run "$LINENO"; then :
3545
3546 else
3547   ac_cv_header_stdc=no
3548 fi
3549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3550   conftest.$ac_objext conftest.beam conftest.$ac_ext
3551 fi
3552
3553 fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3556 $as_echo "$ac_cv_header_stdc" >&6; }
3557 if test $ac_cv_header_stdc = yes; then
3558
3559 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3560
3561 fi
3562
3563 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3565                   inttypes.h stdint.h unistd.h
3566 do :
3567   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3569 "
3570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3571   cat >>confdefs.h <<_ACEOF
3572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3573 _ACEOF
3574
3575 fi
3576
3577 done
3578
3579
3580
3581   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3582 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3583   MINIX=yes
3584 else
3585   MINIX=
3586 fi
3587
3588
3589   if test "$MINIX" = yes; then
3590
3591 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3592
3593
3594 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3595
3596
3597 $as_echo "#define _MINIX 1" >>confdefs.h
3598
3599   fi
3600
3601
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3603 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3604 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 #         define __EXTENSIONS__ 1
3611           $ac_includes_default
3612 int
3613 main ()
3614 {
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621   ac_cv_safe_to_define___extensions__=yes
3622 else
3623   ac_cv_safe_to_define___extensions__=no
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3628 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3629   test $ac_cv_safe_to_define___extensions__ = yes &&
3630     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3631
3632   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3633
3634   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3635
3636   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3637
3638   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3639
3640
3641
3642 # Checks for programs.
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 if test -n "$ac_tool_prefix"; then
3649   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   if test -n "$CC"; then
3657   ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664     for ac_exec_ext in '' $ac_executable_extensions; do
3665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668     break 2
3669   fi
3670 done
3671   done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686 fi
3687 if test -z "$ac_cv_prog_CC"; then
3688   ac_ct_CC=$CC
3689   # Extract the first word of "gcc", so it can be a program name with args.
3690 set dummy gcc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   if test -n "$ac_ct_CC"; then
3697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704     for ac_exec_ext in '' $ac_executable_extensions; do
3705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_ac_ct_CC="gcc"
3707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711   done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717 if test -n "$ac_ct_CC"; then
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3719 $as_echo "$ac_ct_CC" >&6; }
3720 else
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725   if test "x$ac_ct_CC" = x; then
3726     CC=""
3727   else
3728     case $cross_compiling:$ac_tool_warned in
3729 yes:)
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732 ac_tool_warned=yes ;;
3733 esac
3734     CC=$ac_ct_CC
3735   fi
3736 else
3737   CC="$ac_cv_prog_CC"
3738 fi
3739
3740 if test -z "$CC"; then
3741           if test -n "$ac_tool_prefix"; then
3742     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}cc; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_CC+:} false; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749   if test -n "$CC"; then
3750   ac_cv_prog_CC="$CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_prog_CC="${ac_tool_prefix}cc"
3760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764   done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 CC=$ac_cv_prog_CC
3770 if test -n "$CC"; then
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3773 else
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779   fi
3780 fi
3781 if test -z "$CC"; then
3782   # Extract the first word of "cc", so it can be a program name with args.
3783 set dummy cc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_CC+:} false; then :
3787   $as_echo_n "(cached) " >&6
3788 else
3789   if test -n "$CC"; then
3790   ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792   ac_prog_rejected=no
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3801        ac_prog_rejected=yes
3802        continue
3803      fi
3804     ac_cv_prog_CC="cc"
3805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806     break 2
3807   fi
3808 done
3809   done
3810 IFS=$as_save_IFS
3811
3812 if test $ac_prog_rejected = yes; then
3813   # We found a bogon in the path, so make sure we never use it.
3814   set dummy $ac_cv_prog_CC
3815   shift
3816   if test $# != 0; then
3817     # We chose a different compiler from the bogus one.
3818     # However, it has the same basename, so the bogon will be chosen
3819     # first if we set CC to just the basename; use the full file name.
3820     shift
3821     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3822   fi
3823 fi
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836 fi
3837 if test -z "$CC"; then
3838   if test -n "$ac_tool_prefix"; then
3839   for ac_prog in cl.exe
3840   do
3841     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_CC+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -n "$CC"; then
3849   ac_cv_prog_CC="$CC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 CC=$ac_cv_prog_CC
3869 if test -n "$CC"; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871 $as_echo "$CC" >&6; }
3872 else
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878     test -n "$CC" && break
3879   done
3880 fi
3881 if test -z "$CC"; then
3882   ac_ct_CC=$CC
3883   for ac_prog in cl.exe
3884 do
3885   # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   if test -n "$ac_ct_CC"; then
3893   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900     for ac_exec_ext in '' $ac_executable_extensions; do
3901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_prog_ac_ct_CC="$ac_prog"
3903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907   done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3913 if test -n "$ac_ct_CC"; then
3914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3915 $as_echo "$ac_ct_CC" >&6; }
3916 else
3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922   test -n "$ac_ct_CC" && break
3923 done
3924
3925   if test "x$ac_ct_CC" = x; then
3926     CC=""
3927   else
3928     case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932 ac_tool_warned=yes ;;
3933 esac
3934     CC=$ac_ct_CC
3935   fi
3936 fi
3937
3938 fi
3939
3940
3941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details" "$LINENO" 5; }
3945
3946 # Provide some information about the compiler.
3947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3948 set X $ac_compile
3949 ac_compiler=$2
3950 for ac_option in --version -v -V -qversion; do
3951   { { ac_try="$ac_compiler $ac_option >&5"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3959   ac_status=$?
3960   if test -s conftest.err; then
3961     sed '10a\
3962 ... rest of stderr output deleted ...
3963          10q' conftest.err >conftest.er1
3964     cat conftest.er1 >&5
3965   fi
3966   rm -f conftest.er1 conftest.err
3967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968   test $ac_status = 0; }
3969 done
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973 if ${ac_cv_c_compiler_gnu+:} false; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982 #ifndef __GNUC__
3983        choke me
3984 #endif
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991   ac_compiler_gnu=yes
3992 else
3993   ac_compiler_gnu=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4002   GCC=yes
4003 else
4004   GCC=
4005 fi
4006 ac_test_CFLAGS=${CFLAGS+set}
4007 ac_save_CFLAGS=$CFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4010 if ${ac_cv_prog_cc_g+:} false; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   ac_save_c_werror_flag=$ac_c_werror_flag
4014    ac_c_werror_flag=yes
4015    ac_cv_prog_cc_g=no
4016    CFLAGS="-g"
4017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029   ac_cv_prog_cc_g=yes
4030 else
4031   CFLAGS=""
4032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034
4035 int
4036 main ()
4037 {
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044
4045 else
4046   ac_c_werror_flag=$ac_save_c_werror_flag
4047          CFLAGS="-g"
4048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050
4051 int
4052 main ()
4053 {
4054
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060   ac_cv_prog_cc_g=yes
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067    ac_c_werror_flag=$ac_save_c_werror_flag
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070 $as_echo "$ac_cv_prog_cc_g" >&6; }
4071 if test "$ac_test_CFLAGS" = set; then
4072   CFLAGS=$ac_save_CFLAGS
4073 elif test $ac_cv_prog_cc_g = yes; then
4074   if test "$GCC" = yes; then
4075     CFLAGS="-g -O2"
4076   else
4077     CFLAGS="-g"
4078   fi
4079 else
4080   if test "$GCC" = yes; then
4081     CFLAGS="-O2"
4082   else
4083     CFLAGS=
4084   fi
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088 if ${ac_cv_prog_cc_c89+:} false; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   ac_cv_prog_cc_c89=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095 #include <stdarg.h>
4096 #include <stdio.h>
4097 struct stat;
4098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4099 struct buf { int x; };
4100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101 static char *e (p, i)
4102      char **p;
4103      int i;
4104 {
4105   return p[i];
4106 }
4107 static char *f (char * (*g) (char **, int), char **p, ...)
4108 {
4109   char *s;
4110   va_list v;
4111   va_start (v,p);
4112   s = g (p, va_arg (v,int));
4113   va_end (v);
4114   return s;
4115 }
4116
4117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4118    function prototypes and stuff, but not '\xHH' hex character constants.
4119    These don't provoke an error unfortunately, instead are silently treated
4120    as 'x'.  The following induces an error, until -std is added to get
4121    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4122    array size at least.  It's necessary to write '\x00'==0 to get something
4123    that's true only with -std.  */
4124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4125
4126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4127    inside strings and character constants.  */
4128 #define FOO(x) 'x'
4129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4130
4131 int test (int i, double x);
4132 struct s1 {int (*f) (int a);};
4133 struct s2 {int (*f) (double a);};
4134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 int argc;
4136 char **argv;
4137 int
4138 main ()
4139 {
4140 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4146         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4147 do
4148   CC="$ac_save_CC $ac_arg"
4149   if ac_fn_c_try_compile "$LINENO"; then :
4150   ac_cv_prog_cc_c89=$ac_arg
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext
4153   test "x$ac_cv_prog_cc_c89" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CC=$ac_save_CC
4157
4158 fi
4159 # AC_CACHE_VAL
4160 case "x$ac_cv_prog_cc_c89" in
4161   x)
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;;
4164   xno)
4165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;;
4167   *)
4168     CC="$CC $ac_cv_prog_cc_c89"
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4171 esac
4172 if test "x$ac_cv_prog_cc_c89" != xno; then :
4173
4174 fi
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4183 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4184 set x ${MAKE-make}
4185 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4186 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   cat >conftest.make <<\_ACEOF
4190 SHELL = /bin/sh
4191 all:
4192         @echo '@@@%%%=$(MAKE)=@@@%%%'
4193 _ACEOF
4194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4195 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4196   *@@@%%%=?*=@@@%%%*)
4197     eval ac_cv_prog_make_${ac_make}_set=yes;;
4198   *)
4199     eval ac_cv_prog_make_${ac_make}_set=no;;
4200 esac
4201 rm -f conftest.make
4202 fi
4203 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4205 $as_echo "yes" >&6; }
4206   SET_MAKE=
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210   SET_MAKE="MAKE=${MAKE-make}"
4211 fi
4212
4213 for ac_prog in glibtool libtool15 libtool
4214 do
4215   # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_libtool+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$libtool"; then
4223   ac_cv_prog_libtool="$libtool" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_prog_libtool="$ac_prog"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 libtool=$ac_cv_prog_libtool
4243 if test -n "$libtool"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool" >&5
4245 $as_echo "$libtool" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252   test -n "$libtool" && break
4253 done
4254 test -n "$libtool" || libtool="../libtool"
4255
4256
4257 # add option to disable the evil rpath
4258 # Check whether --enable-rpath was given.
4259 if test "${enable_rpath+set}" = set; then :
4260   enableval=$enable_rpath; enable_rpath=$enableval
4261 else
4262   enable_rpath=yes
4263 fi
4264
4265
4266 if test "x$enable_rpath" = xyes; then
4267     RPATH_VAL="-Wl,-rpath=\${libdir}"
4268 fi
4269
4270
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4274 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4275 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4276 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279
4280 echo 'void f(void){}' >conftest.c
4281 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4282 eval "cv_prog_cc_flag_$cache=yes"
4283 else
4284 eval "cv_prog_cc_flag_$cache=no"
4285 fi
4286 rm -f conftest conftest.o conftest.c
4287
4288 fi
4289
4290 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 :
4294 C99FLAG="-std=c99"
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 :
4299
4300 fi
4301
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4305 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4306 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4307 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310
4311 echo 'void f(void){}' >conftest.c
4312 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4313 eval "cv_prog_cc_flag_$cache=yes"
4314 else
4315 eval "cv_prog_cc_flag_$cache=no"
4316 fi
4317 rm -f conftest conftest.o conftest.c
4318
4319 fi
4320
4321 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323 $as_echo "yes" >&6; }
4324 :
4325 C99FLAG="-xc99"
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 :
4330
4331 fi
4332
4333
4334 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4335 if test "x$ac_cv_type_size_t" = xyes; then :
4336
4337 else
4338
4339 cat >>confdefs.h <<_ACEOF
4340 #define size_t unsigned int
4341 _ACEOF
4342
4343 fi
4344
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4348 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4349 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4350 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353
4354 echo 'void f(void){}' >conftest.c
4355 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4356 eval "cv_prog_cc_flag_$cache=yes"
4357 else
4358 eval "cv_prog_cc_flag_$cache=no"
4359 fi
4360 rm -f conftest conftest.o conftest.c
4361
4362 fi
4363
4364 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4367 :
4368 CFLAGS="$CFLAGS -O2"
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 :
4373
4374 fi
4375
4376
4377
4378
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4381 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4382 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4383 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386
4387 echo 'void f(void){}' >conftest.c
4388 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4389 eval "cv_prog_cc_flag_$cache=yes"
4390 else
4391 eval "cv_prog_cc_flag_$cache=no"
4392 fi
4393 rm -f conftest conftest.o conftest.c
4394
4395 fi
4396
4397 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4400 :
4401 ERRFLAG="-Werror"
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4405 :
4406 ERRFLAG="-errwarn"
4407 fi
4408
4409
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4412 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4413 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4414 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417
4418 echo 'void f(void){}' >conftest.c
4419 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4420 eval "cv_prog_cc_flag_$cache=yes"
4421 else
4422 eval "cv_prog_cc_flag_$cache=no"
4423 fi
4424 rm -f conftest conftest.o conftest.c
4425
4426 fi
4427
4428 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 $as_echo "yes" >&6; }
4431 :
4432 ERRFLAG="$ERRFLAG -Wall"
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 :
4437 ERRFLAG="$ERRFLAG -errfmt"
4438 fi
4439
4440
4441
4442
4443
4444 { $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 as a flag for $CC" >&5
4445 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC... " >&6; }
4446 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" | $as_tr_sh`
4447 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450
4451 echo '
4452 #include "confdefs.h"
4453 #include <stdlib.h>
4454 #include <ctype.h>
4455 #include <sys/time.h>
4456 #ifdef HAVE_TIME_H
4457 #include <time.h>
4458 #endif
4459 #include <unistd.h>
4460 #ifdef HAVE_GETOPT_H
4461 #include <getopt.h>
4462 #endif
4463
4464 int test() {
4465         int a;
4466         char **opts = NULL;
4467         struct timeval tv;
4468         char *t;
4469         time_t time = 0;
4470         char *buf = NULL;
4471         t = ctime_r(&time, buf);
4472         tv.tv_usec = 10;
4473         srandom(32);
4474         a = getopt(2, opts, "a");
4475         a = isascii(32);
4476         return a;
4477 }
4478 ' > conftest.c
4479 echo 'void f(){}' >>conftest.c
4480 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4481 eval "cv_prog_cc_flag_needed_$cache=no"
4482 else
4483
4484 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`"; then
4485 eval "cv_prog_cc_flag_needed_$cache=yes"
4486 else
4487 eval "cv_prog_cc_flag_needed_$cache=fail"
4488 #echo 'Test with flag fails too!'
4489 #cat conftest.c
4490 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4491 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4492 #exit 1
4493 fi
4494
4495 fi
4496 rm -f conftest conftest.c conftest.o
4497
4498 fi
4499
4500 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 :
4504 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4505 else
4506 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 #echo 'Test with flag is no!'
4510 #cat conftest.c
4511 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4512 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4513 #exit 1
4514 :
4515
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4518 $as_echo "failed" >&6; }
4519 :
4520
4521 fi
4522 fi
4523
4524
4525
4526
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
4530 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
4531 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
4532 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535
4536 echo '#include <stdbool.h>' > conftest.c
4537 echo 'void f(){}' >>conftest.c
4538 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4539 eval "cv_prog_cc_flag_needed_$cache=no"
4540 else
4541
4542 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
4543 eval "cv_prog_cc_flag_needed_$cache=yes"
4544 else
4545 eval "cv_prog_cc_flag_needed_$cache=fail"
4546 #echo 'Test with flag fails too!'
4547 #cat conftest.c
4548 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4549 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4550 #exit 1
4551 fi
4552
4553 fi
4554 rm -f conftest conftest.c conftest.o
4555
4556 fi
4557
4558 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560 $as_echo "yes" >&6; }
4561 :
4562 CFLAGS="$CFLAGS $C99FLAG"
4563 else
4564 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 #echo 'Test with flag is no!'
4568 #cat conftest.c
4569 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4570 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4571 #exit 1
4572 :
4573
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4576 $as_echo "failed" >&6; }
4577 :
4578
4579 fi
4580 fi
4581
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4584 $as_echo_n "checking for inline... " >&6; }
4585 if ${ac_cv_c_inline+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   ac_cv_c_inline=no
4589 for ac_kw in inline __inline__ __inline; do
4590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592 #ifndef __cplusplus
4593 typedef int foo_t;
4594 static $ac_kw foo_t static_foo () {return 0; }
4595 $ac_kw foo_t foo () {return 0; }
4596 #endif
4597
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600   ac_cv_c_inline=$ac_kw
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603   test "$ac_cv_c_inline" != no && break
4604 done
4605
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4608 $as_echo "$ac_cv_c_inline" >&6; }
4609
4610 case $ac_cv_c_inline in
4611   inline | yes) ;;
4612   *)
4613     case $ac_cv_c_inline in
4614       no) ac_val=;;
4615       *) ac_val=$ac_cv_c_inline;;
4616     esac
4617     cat >>confdefs.h <<_ACEOF
4618 #ifndef __cplusplus
4619 #define inline $ac_val
4620 #endif
4621 _ACEOF
4622     ;;
4623 esac
4624
4625 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4626 if test "x$ac_cv_type_int8_t" = xyes; then :
4627
4628 else
4629
4630 cat >>confdefs.h <<_ACEOF
4631 #define int8_t char
4632 _ACEOF
4633
4634 fi
4635
4636 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4637 if test "x$ac_cv_type_int16_t" = xyes; then :
4638
4639 else
4640
4641 cat >>confdefs.h <<_ACEOF
4642 #define int16_t short
4643 _ACEOF
4644
4645 fi
4646
4647 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4648 if test "x$ac_cv_type_int32_t" = xyes; then :
4649
4650 else
4651
4652 cat >>confdefs.h <<_ACEOF
4653 #define int32_t int
4654 _ACEOF
4655
4656 fi
4657
4658 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
4659 if test "x$ac_cv_type_int64_t" = xyes; then :
4660
4661 else
4662
4663 cat >>confdefs.h <<_ACEOF
4664 #define int64_t long long
4665 _ACEOF
4666
4667 fi
4668
4669 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4670 if test "x$ac_cv_type_uint8_t" = xyes; then :
4671
4672 else
4673
4674 cat >>confdefs.h <<_ACEOF
4675 #define uint8_t unsigned char
4676 _ACEOF
4677
4678 fi
4679
4680 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4681 if test "x$ac_cv_type_uint16_t" = xyes; then :
4682
4683 else
4684
4685 cat >>confdefs.h <<_ACEOF
4686 #define uint16_t unsigned short
4687 _ACEOF
4688
4689 fi
4690
4691 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4692 if test "x$ac_cv_type_uint32_t" = xyes; then :
4693
4694 else
4695
4696 cat >>confdefs.h <<_ACEOF
4697 #define uint32_t unsigned int
4698 _ACEOF
4699
4700 fi
4701
4702 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4703 if test "x$ac_cv_type_uint64_t" = xyes; then :
4704
4705 else
4706
4707 cat >>confdefs.h <<_ACEOF
4708 #define uint64_t unsigned long long
4709 _ACEOF
4710
4711 fi
4712
4713 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4714 if test "x$ac_cv_type_ssize_t" = xyes; then :
4715
4716 else
4717
4718 cat >>confdefs.h <<_ACEOF
4719 #define ssize_t int
4720 _ACEOF
4721
4722 fi
4723
4724
4725 for ac_header in sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h arpa/inet.h sys/time.h sys/socket.h sys/select.h
4726 do :
4727   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4729 "
4730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4731   cat >>confdefs.h <<_ACEOF
4732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4733 _ACEOF
4734
4735 fi
4736
4737 done
4738
4739 for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h
4740 do :
4741   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4742 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4743 $ac_includes_default
4744 #ifdef HAVE_NETINET_IN_SYSTM_H
4745 #include <netinet/in_systm.h>
4746 #endif
4747 #ifdef HAVE_NETINET_IN_H
4748 #include <netinet/in.h>
4749 #endif
4750 #ifdef HAVE_SYS_SOCKET_H
4751 #include <sys/socket.h>
4752 #endif
4753 #ifdef HAVE_NET_IF_H
4754 #include <net/if.h>
4755 #endif
4756 "
4757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4758   cat >>confdefs.h <<_ACEOF
4759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4760 _ACEOF
4761
4762 fi
4763
4764 done
4765
4766 # MinGW32 tests
4767 for ac_header in winsock2.h ws2tcpip.h
4768 do :
4769   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4771 "
4772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4773   cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4776
4777 fi
4778
4779 done
4780
4781
4782
4783 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4784 $ac_includes_default
4785 #ifdef HAVE_SYS_SOCKET_H
4786 #  include <sys/socket.h>
4787 #endif
4788 #ifdef HAVE_WS2TCPIP_H
4789 #  include <ws2tcpip.h>
4790 #endif
4791
4792 "
4793 if test "x$ac_cv_type_socklen_t" = xyes; then :
4794
4795 else
4796
4797 $as_echo "#define socklen_t int" >>confdefs.h
4798
4799 fi
4800
4801 for ac_header in sys/param.h sys/mount.h
4802 do :
4803   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4805
4806
4807    #if HAVE_SYS_PARAM_H
4808    # include <sys/param.h>
4809    #endif
4810
4811
4812 "
4813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4814   cat >>confdefs.h <<_ACEOF
4815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816 _ACEOF
4817
4818 fi
4819
4820 done
4821
4822 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
4823 #if HAVE_SYS_TYPES_H
4824 # include <sys/types.h>
4825 #endif
4826 #if HAVE_NETINET_IN_H
4827 # include <netinet/in.h>
4828 #endif
4829 "
4830 if test "x$ac_cv_type_in_addr_t" = xyes; then :
4831
4832 else
4833
4834 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
4835
4836 fi
4837
4838 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
4839 #if HAVE_SYS_TYPES_H
4840 # include <sys/types.h>
4841 #endif
4842 #if HAVE_NETINET_IN_H
4843 # include <netinet/in.h>
4844 #endif
4845 "
4846 if test "x$ac_cv_type_in_port_t" = xyes; then :
4847
4848 else
4849
4850 $as_echo "#define in_port_t uint16_t" >>confdefs.h
4851
4852 fi
4853
4854
4855 # check to see if libraries are needed for these functions.
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4857 $as_echo_n "checking for library containing socket... " >&6; }
4858 if ${ac_cv_search_socket+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   ac_func_search_save_LIBS=$LIBS
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h.  */
4864
4865 /* Override any GCC internal prototype to avoid an error.
4866    Use char because int might match the return type of a GCC
4867    builtin and then its argument prototype would still apply.  */
4868 #ifdef __cplusplus
4869 extern "C"
4870 #endif
4871 char socket ();
4872 int
4873 main ()
4874 {
4875 return socket ();
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 for ac_lib in '' socket; do
4881   if test -z "$ac_lib"; then
4882     ac_res="none required"
4883   else
4884     ac_res=-l$ac_lib
4885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4886   fi
4887   if ac_fn_c_try_link "$LINENO"; then :
4888   ac_cv_search_socket=$ac_res
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext \
4891     conftest$ac_exeext
4892   if ${ac_cv_search_socket+:} false; then :
4893   break
4894 fi
4895 done
4896 if ${ac_cv_search_socket+:} false; then :
4897
4898 else
4899   ac_cv_search_socket=no
4900 fi
4901 rm conftest.$ac_ext
4902 LIBS=$ac_func_search_save_LIBS
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4905 $as_echo "$ac_cv_search_socket" >&6; }
4906 ac_res=$ac_cv_search_socket
4907 if test "$ac_res" != no; then :
4908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4909
4910 fi
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4913 $as_echo_n "checking for library containing inet_pton... " >&6; }
4914 if ${ac_cv_search_inet_pton+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   ac_func_search_save_LIBS=$LIBS
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h.  */
4920
4921 /* Override any GCC internal prototype to avoid an error.
4922    Use char because int might match the return type of a GCC
4923    builtin and then its argument prototype would still apply.  */
4924 #ifdef __cplusplus
4925 extern "C"
4926 #endif
4927 char inet_pton ();
4928 int
4929 main ()
4930 {
4931 return inet_pton ();
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 for ac_lib in '' nsl; do
4937   if test -z "$ac_lib"; then
4938     ac_res="none required"
4939   else
4940     ac_res=-l$ac_lib
4941     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4942   fi
4943   if ac_fn_c_try_link "$LINENO"; then :
4944   ac_cv_search_inet_pton=$ac_res
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext \
4947     conftest$ac_exeext
4948   if ${ac_cv_search_inet_pton+:} false; then :
4949   break
4950 fi
4951 done
4952 if ${ac_cv_search_inet_pton+:} false; then :
4953
4954 else
4955   ac_cv_search_inet_pton=no
4956 fi
4957 rm conftest.$ac_ext
4958 LIBS=$ac_func_search_save_LIBS
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
4961 $as_echo "$ac_cv_search_inet_pton" >&6; }
4962 ac_res=$ac_cv_search_inet_pton
4963 if test "$ac_res" != no; then :
4964   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4965
4966 fi
4967
4968
4969
4970
4971 # Check whether --with-ssl was given.
4972 if test "${with_ssl+set}" = set; then :
4973   withval=$with_ssl;
4974
4975 else
4976
4977             withval="yes"
4978
4979 fi
4980
4981
4982     withval=$withval
4983     if test x_$withval != x_no; then
4984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4985 $as_echo_n "checking for SSL... " >&6; }
4986         if test x_$withval = x_ -o x_$withval = x_yes; then
4987             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
4988         fi
4989         for dir in $withval; do
4990             ssldir="$dir"
4991             if test -f "$dir/include/openssl/ssl.h"; then
4992                 found_ssl="yes"
4993
4994 cat >>confdefs.h <<_ACEOF
4995 #define HAVE_SSL /**/
4996 _ACEOF
4997
4998                                 if test "$ssldir" != "/usr"; then
4999                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
5000                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
5001                 fi
5002                 break;
5003             fi
5004         done
5005         if test x_$found_ssl != x_yes; then
5006             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
5007         else
5008             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
5009 $as_echo "found in $ssldir" >&6; }
5010             HAVE_SSL=yes
5011                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
5012                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
5013                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
5014
5015         if test "x$enable_rpath" = xyes; then
5016                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
5017                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
5018                 fi
5019         fi
5020
5021             fi
5022
5023             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
5024 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
5025             LIBS="$LIBS -lcrypto"
5026             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
5027             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029
5030 int
5031 main ()
5032 {
5033
5034                 int HMAC_Update(void);
5035                 (void)HMAC_Update();
5036
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 if ac_fn_c_try_link "$LINENO"; then :
5042
5043                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }
5045
5046 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
5047
5048
5049 else
5050
5051                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053                 # check if -lwsock32 or -lgdi32 are needed.
5054                 BAKLIBS="$LIBS"
5055                 BAKSSLLIBS="$LIBSSL_LIBS"
5056                 LIBS="$LIBS -lgdi32"
5057                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
5058                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
5059 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
5060                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h.  */
5062
5063 int
5064 main ()
5065 {
5066
5067                     int HMAC_Update(void);
5068                     (void)HMAC_Update();
5069
5070   ;
5071   return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_link "$LINENO"; then :
5075
5076
5077 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
5078
5079                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5080 $as_echo "yes" >&6; }
5081
5082 else
5083
5084                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086                     LIBS="$BAKLIBS"
5087                     LIBSSL_LIBS="$BAKSSLLIBS"
5088                     LIBS="$LIBS -ldl"
5089                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5090                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
5091 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
5092                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094
5095 int
5096 main ()
5097 {
5098
5099                         int HMAC_Update(void);
5100                         (void)HMAC_Update();
5101
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_c_try_link "$LINENO"; then :
5107
5108
5109 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
5110
5111                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112 $as_echo "yes" >&6; }
5113
5114 else
5115
5116                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118                         LIBS="$BAKLIBS"
5119                         LIBSSL_LIBS="$BAKSSLLIBS"
5120                         LIBS="$LIBS -ldl -pthread"
5121                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
5122                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
5123 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
5124                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h.  */
5126
5127 int
5128 main ()
5129 {
5130
5131                             int HMAC_Update(void);
5132                             (void)HMAC_Update();
5133
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_c_try_link "$LINENO"; then :
5139
5140
5141 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
5142
5143                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5145
5146 else
5147
5148                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
5151
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext \
5154     conftest$ac_exeext conftest.$ac_ext
5155
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158     conftest$ac_exeext conftest.$ac_ext
5159
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext \
5162     conftest$ac_exeext conftest.$ac_ext
5163
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext \
5166     conftest$ac_exeext conftest.$ac_ext
5167         fi
5168
5169
5170     fi
5171 for ac_header in openssl/ssl.h
5172 do :
5173   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
5174 "
5175 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5176   cat >>confdefs.h <<_ACEOF
5177 #define HAVE_OPENSSL_SSL_H 1
5178 _ACEOF
5179
5180 fi
5181
5182 done
5183
5184 for ac_header in openssl/err.h
5185 do :
5186   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
5187 "
5188 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5189   cat >>confdefs.h <<_ACEOF
5190 #define HAVE_OPENSSL_ERR_H 1
5191 _ACEOF
5192
5193 fi
5194
5195 done
5196
5197 for ac_header in openssl/rand.h
5198 do :
5199   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
5200 "
5201 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
5202   cat >>confdefs.h <<_ACEOF
5203 #define HAVE_OPENSSL_RAND_H 1
5204 _ACEOF
5205
5206 fi
5207
5208 done
5209
5210
5211
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5215 $as_echo_n "checking for getaddrinfo... " >&6; }
5216 ac_cv_func_getaddrinfo=no
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h.  */
5219
5220 #ifdef __cplusplus
5221 extern "C"
5222 {
5223 #endif
5224 char* getaddrinfo();
5225 char* (*f) () = getaddrinfo;
5226 #ifdef __cplusplus
5227 }
5228 #endif
5229 int main() {
5230         ;
5231         return 0;
5232 }
5233
5234 _ACEOF
5235 if ac_fn_c_try_link "$LINENO"; then :
5236   ac_cv_func_getaddrinfo="yes"
5237 if test "$ac_cv_header_windows_h" = "yes"; then
5238
5239 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5240
5241         USE_WINSOCK="1"
5242         LIBS="$LIBS -lws2_32"
5243 fi
5244
5245 else
5246   ORIGLIBS="$LIBS"
5247 LIBS="$LIBS -lws2_32"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h.  */
5250
5251 #ifdef HAVE_WS2TCPIP_H
5252 #include <ws2tcpip.h>
5253 #endif
5254
5255 int
5256 main ()
5257 {
5258
5259         (void)getaddrinfo(NULL, NULL, NULL, NULL);
5260
5261
5262   ;
5263   return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267
5268 ac_cv_func_getaddrinfo="yes"
5269
5270 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5271
5272 USE_WINSOCK="1"
5273
5274 else
5275
5276 ac_cv_func_getaddrinfo="no"
5277 LIBS="$ORIGLIBS"
5278
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext \
5281     conftest$ac_exeext conftest.$ac_ext
5282
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext \
5285     conftest$ac_exeext conftest.$ac_ext
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5288 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
5289 if test $ac_cv_func_getaddrinfo = yes; then
5290
5291 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5292
5293 fi
5294
5295
5296 LIBS_STC="$LIBS"
5297
5298
5299 # check for ldns
5300
5301 # Check whether --with-ldns was given.
5302 if test "${with_ldns+set}" = set; then :
5303   withval=$with_ldns;
5304                 specialldnsdir="$withval"
5305                 CPPFLAGS="$CPPFLAGS -I$withval/include"
5306                 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
5307                 LDNSDIR="$withval"
5308                 LIBS="-lldns $LIBS"
5309                 LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
5310
5311
5312 fi
5313
5314
5315 #AC_CHECK_HEADER(ldns/ldns.h,,  [
5316 #       AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
5317 #       ], [AC_INCLUDES_DEFAULT]
5318 #)
5319
5320 for ac_func in isblank
5321 do :
5322   ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
5323 if test "x$ac_cv_func_isblank" = xyes; then :
5324   cat >>confdefs.h <<_ACEOF
5325 #define HAVE_ISBLANK 1
5326 _ACEOF
5327
5328 fi
5329 done
5330
5331
5332 # check for ldns development source tree
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns devel source" >&5
5334 $as_echo_n "checking for ldns devel source... " >&6; }
5335 ldns_dev_dir=..
5336 if test -f $ldns_dev_dir/ldns/util.h && \
5337         grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
5338         ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
5339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ldns_dev_dir with $ldns_version" >&5
5340 $as_echo "using $ldns_dev_dir with $ldns_version" >&6; }
5341         CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
5342         LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
5343         LIBS="-lldns $LIBS"
5344
5345 $as_echo "#define HAVE_LIBLDNS 1" >>confdefs.h
5346
5347         LDNSDIR="$ldns_dev_dir"
5348         LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
5349 else
5350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
5353 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
5354 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   ac_check_lib_save_LIBS=$LIBS
5358 LIBS="-lldns  $LIBS"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361
5362 /* Override any GCC internal prototype to avoid an error.
5363    Use char because int might match the return type of a GCC
5364    builtin and then its argument prototype would still apply.  */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 char ldns_rr_new ();
5369 int
5370 main ()
5371 {
5372 return ldns_rr_new ();
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"; then :
5378   ac_cv_lib_ldns_ldns_rr_new=yes
5379 else
5380   ac_cv_lib_ldns_ldns_rr_new=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext \
5383     conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
5387 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
5388 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
5389   cat >>confdefs.h <<_ACEOF
5390 #define HAVE_LIBLDNS 1
5391 _ACEOF
5392
5393   LIBS="-lldns $LIBS"
5394
5395 else
5396
5397                         as_fn_error $? "Can't find ldns library" "$LINENO" 5
5398
5399 fi
5400
5401 fi
5402
5403
5404
5405
5406 # Check whether --with-trust-anchor was given.
5407 if test "${with_trust_anchor+set}" = set; then :
5408   withval=$with_trust_anchor;
5409  LDNS_TRUST_ANCHOR_FILE="$withval"
5410
5411 else
5412
5413  if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
5414   if test "x$sysconfdir" = 'x${prefix}/etc' ; then
5415    if test "x$prefix" = 'xNONE' ; then
5416     LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
5417    else
5418     LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
5419    fi
5420   else
5421     LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
5422   fi
5423  fi
5424
5425 fi
5426
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
5430 _ACEOF
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
5434 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
5435
5436
5437
5438 ac_config_files="$ac_config_files Makefile drill.1"
5439
5440 ac_config_headers="$ac_config_headers config.h"
5441
5442 cat >confcache <<\_ACEOF
5443 # This file is a shell script that caches the results of configure
5444 # tests run on this system so they can be shared between configure
5445 # scripts and configure runs, see configure's option --config-cache.
5446 # It is not useful on other systems.  If it contains results you don't
5447 # want to keep, you may remove or edit it.
5448 #
5449 # config.status only pays attention to the cache file if you give it
5450 # the --recheck option to rerun configure.
5451 #
5452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5454 # following values.
5455
5456 _ACEOF
5457
5458 # The following way of writing the cache mishandles newlines in values,
5459 # but we know of no workaround that is simple, portable, and efficient.
5460 # So, we kill variables containing newlines.
5461 # Ultrix sh set writes to stderr and can't be redirected directly,
5462 # and sets the high bit in the cache file unless we assign to the vars.
5463 (
5464   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5465     eval ac_val=\$$ac_var
5466     case $ac_val in #(
5467     *${as_nl}*)
5468       case $ac_var in #(
5469       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5471       esac
5472       case $ac_var in #(
5473       _ | IFS | as_nl) ;; #(
5474       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5475       *) { eval $ac_var=; unset $ac_var;} ;;
5476       esac ;;
5477     esac
5478   done
5479
5480   (set) 2>&1 |
5481     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5482     *${as_nl}ac_space=\ *)
5483       # `set' does not quote correctly, so add quotes: double-quote
5484       # substitution turns \\\\ into \\, and sed turns \\ into \.
5485       sed -n \
5486         "s/'/'\\\\''/g;
5487           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5488       ;; #(
5489     *)
5490       # `set' quotes correctly as required by POSIX, so do not add quotes.
5491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5492       ;;
5493     esac |
5494     sort
5495 ) |
5496   sed '
5497      /^ac_cv_env_/b end
5498      t clear
5499      :clear
5500      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5501      t end
5502      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5503      :end' >>confcache
5504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5505   if test -w "$cache_file"; then
5506     if test "x$cache_file" != "x/dev/null"; then
5507       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5508 $as_echo "$as_me: updating cache $cache_file" >&6;}
5509       if test ! -f "$cache_file" || test -h "$cache_file"; then
5510         cat confcache >"$cache_file"
5511       else
5512         case $cache_file in #(
5513         */* | ?:*)
5514           mv -f confcache "$cache_file"$$ &&
5515           mv -f "$cache_file"$$ "$cache_file" ;; #(
5516         *)
5517           mv -f confcache "$cache_file" ;;
5518         esac
5519       fi
5520     fi
5521   else
5522     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5524   fi
5525 fi
5526 rm -f confcache
5527
5528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5529 # Let make expand exec_prefix.
5530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5531
5532 DEFS=-DHAVE_CONFIG_H
5533
5534 ac_libobjs=
5535 ac_ltlibobjs=
5536 U=
5537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5538   # 1. Remove the extension, and $U if already installed.
5539   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5540   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5541   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5542   #    will be set to the directory where LIBOBJS objects are built.
5543   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5544   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5545 done
5546 LIBOBJS=$ac_libobjs
5547
5548 LTLIBOBJS=$ac_ltlibobjs
5549
5550
5551
5552 : "${CONFIG_STATUS=./config.status}"
5553 ac_write_fail=0
5554 ac_clean_files_save=$ac_clean_files
5555 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5557 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5558 as_write_fail=0
5559 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5560 #! $SHELL
5561 # Generated by $as_me.
5562 # Run this file to recreate the current configuration.
5563 # Compiler output produced by configure, useful for debugging
5564 # configure, is in config.log if it exists.
5565
5566 debug=false
5567 ac_cs_recheck=false
5568 ac_cs_silent=false
5569
5570 SHELL=\${CONFIG_SHELL-$SHELL}
5571 export SHELL
5572 _ASEOF
5573 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5574 ## -------------------- ##
5575 ## M4sh Initialization. ##
5576 ## -------------------- ##
5577
5578 # Be more Bourne compatible
5579 DUALCASE=1; export DUALCASE # for MKS sh
5580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5581   emulate sh
5582   NULLCMD=:
5583   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5584   # is contrary to our usage.  Disable this feature.
5585   alias -g '${1+"$@"}'='"$@"'
5586   setopt NO_GLOB_SUBST
5587 else
5588   case `(set -o) 2>/dev/null` in #(
5589   *posix*) :
5590     set -o posix ;; #(
5591   *) :
5592      ;;
5593 esac
5594 fi
5595
5596
5597 as_nl='
5598 '
5599 export as_nl
5600 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5601 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5604 # Prefer a ksh shell builtin over an external printf program on Solaris,
5605 # but without wasting forks for bash or zsh.
5606 if test -z "$BASH_VERSION$ZSH_VERSION" \
5607     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5608   as_echo='print -r --'
5609   as_echo_n='print -rn --'
5610 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5611   as_echo='printf %s\n'
5612   as_echo_n='printf %s'
5613 else
5614   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5615     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5616     as_echo_n='/usr/ucb/echo -n'
5617   else
5618     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5619     as_echo_n_body='eval
5620       arg=$1;
5621       case $arg in #(
5622       *"$as_nl"*)
5623         expr "X$arg" : "X\\(.*\\)$as_nl";
5624         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5625       esac;
5626       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5627     '
5628     export as_echo_n_body
5629     as_echo_n='sh -c $as_echo_n_body as_echo'
5630   fi
5631   export as_echo_body
5632   as_echo='sh -c $as_echo_body as_echo'
5633 fi
5634
5635 # The user is always right.
5636 if test "${PATH_SEPARATOR+set}" != set; then
5637   PATH_SEPARATOR=:
5638   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5639     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5640       PATH_SEPARATOR=';'
5641   }
5642 fi
5643
5644
5645 # IFS
5646 # We need space, tab and new line, in precisely that order.  Quoting is
5647 # there to prevent editors from complaining about space-tab.
5648 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5649 # splitting by setting IFS to empty value.)
5650 IFS=" ""        $as_nl"
5651
5652 # Find who we are.  Look in the path if we contain no directory separator.
5653 as_myself=
5654 case $0 in #((
5655   *[\\/]* ) as_myself=$0 ;;
5656   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5662   done
5663 IFS=$as_save_IFS
5664
5665      ;;
5666 esac
5667 # We did not find ourselves, most probably we were run as `sh COMMAND'
5668 # in which case we are not to be found in the path.
5669 if test "x$as_myself" = x; then
5670   as_myself=$0
5671 fi
5672 if test ! -f "$as_myself"; then
5673   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5674   exit 1
5675 fi
5676
5677 # Unset variables that we do not need and which cause bugs (e.g. in
5678 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5679 # suppresses any "Segmentation fault" message there.  '((' could
5680 # trigger a bug in pdksh 5.2.14.
5681 for as_var in BASH_ENV ENV MAIL MAILPATH
5682 do eval test x\${$as_var+set} = xset \
5683   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5684 done
5685 PS1='$ '
5686 PS2='> '
5687 PS4='+ '
5688
5689 # NLS nuisances.
5690 LC_ALL=C
5691 export LC_ALL
5692 LANGUAGE=C
5693 export LANGUAGE
5694
5695 # CDPATH.
5696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5697
5698
5699 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5700 # ----------------------------------------
5701 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5702 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5703 # script with STATUS, using 1 if that was 0.
5704 as_fn_error ()
5705 {
5706   as_status=$1; test $as_status -eq 0 && as_status=1
5707   if test "$4"; then
5708     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5709     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5710   fi
5711   $as_echo "$as_me: error: $2" >&2
5712   as_fn_exit $as_status
5713 } # as_fn_error
5714
5715
5716 # as_fn_set_status STATUS
5717 # -----------------------
5718 # Set $? to STATUS, without forking.
5719 as_fn_set_status ()
5720 {
5721   return $1
5722 } # as_fn_set_status
5723
5724 # as_fn_exit STATUS
5725 # -----------------
5726 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5727 as_fn_exit ()
5728 {
5729   set +e
5730   as_fn_set_status $1
5731   exit $1
5732 } # as_fn_exit
5733
5734 # as_fn_unset VAR
5735 # ---------------
5736 # Portably unset VAR.
5737 as_fn_unset ()
5738 {
5739   { eval $1=; unset $1;}
5740 }
5741 as_unset=as_fn_unset
5742 # as_fn_append VAR VALUE
5743 # ----------------------
5744 # Append the text in VALUE to the end of the definition contained in VAR. Take
5745 # advantage of any shell optimizations that allow amortized linear growth over
5746 # repeated appends, instead of the typical quadratic growth present in naive
5747 # implementations.
5748 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5749   eval 'as_fn_append ()
5750   {
5751     eval $1+=\$2
5752   }'
5753 else
5754   as_fn_append ()
5755   {
5756     eval $1=\$$1\$2
5757   }
5758 fi # as_fn_append
5759
5760 # as_fn_arith ARG...
5761 # ------------------
5762 # Perform arithmetic evaluation on the ARGs, and store the result in the
5763 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5764 # must be portable across $(()) and expr.
5765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5766   eval 'as_fn_arith ()
5767   {
5768     as_val=$(( $* ))
5769   }'
5770 else
5771   as_fn_arith ()
5772   {
5773     as_val=`expr "$@" || test $? -eq 1`
5774   }
5775 fi # as_fn_arith
5776
5777
5778 if expr a : '\(a\)' >/dev/null 2>&1 &&
5779    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5780   as_expr=expr
5781 else
5782   as_expr=false
5783 fi
5784
5785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5786   as_basename=basename
5787 else
5788   as_basename=false
5789 fi
5790
5791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5792   as_dirname=dirname
5793 else
5794   as_dirname=false
5795 fi
5796
5797 as_me=`$as_basename -- "$0" ||
5798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5799          X"$0" : 'X\(//\)$' \| \
5800          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5801 $as_echo X/"$0" |
5802     sed '/^.*\/\([^/][^/]*\)\/*$/{
5803             s//\1/
5804             q
5805           }
5806           /^X\/\(\/\/\)$/{
5807             s//\1/
5808             q
5809           }
5810           /^X\/\(\/\).*/{
5811             s//\1/
5812             q
5813           }
5814           s/.*/./; q'`
5815
5816 # Avoid depending upon Character Ranges.
5817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5820 as_cr_digits='0123456789'
5821 as_cr_alnum=$as_cr_Letters$as_cr_digits
5822
5823 ECHO_C= ECHO_N= ECHO_T=
5824 case `echo -n x` in #(((((
5825 -n*)
5826   case `echo 'xy\c'` in
5827   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5828   xy)  ECHO_C='\c';;
5829   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5830        ECHO_T=' ';;
5831   esac;;
5832 *)
5833   ECHO_N='-n';;
5834 esac
5835
5836 rm -f conf$$ conf$$.exe conf$$.file
5837 if test -d conf$$.dir; then
5838   rm -f conf$$.dir/conf$$.file
5839 else
5840   rm -f conf$$.dir
5841   mkdir conf$$.dir 2>/dev/null
5842 fi
5843 if (echo >conf$$.file) 2>/dev/null; then
5844   if ln -s conf$$.file conf$$ 2>/dev/null; then
5845     as_ln_s='ln -s'
5846     # ... but there are two gotchas:
5847     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5848     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5849     # In both cases, we have to default to `cp -pR'.
5850     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5851       as_ln_s='cp -pR'
5852   elif ln conf$$.file conf$$ 2>/dev/null; then
5853     as_ln_s=ln
5854   else
5855     as_ln_s='cp -pR'
5856   fi
5857 else
5858   as_ln_s='cp -pR'
5859 fi
5860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5861 rmdir conf$$.dir 2>/dev/null
5862
5863
5864 # as_fn_mkdir_p
5865 # -------------
5866 # Create "$as_dir" as a directory, including parents if necessary.
5867 as_fn_mkdir_p ()
5868 {
5869
5870   case $as_dir in #(
5871   -*) as_dir=./$as_dir;;
5872   esac
5873   test -d "$as_dir" || eval $as_mkdir_p || {
5874     as_dirs=
5875     while :; do
5876       case $as_dir in #(
5877       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5878       *) as_qdir=$as_dir;;
5879       esac
5880       as_dirs="'$as_qdir' $as_dirs"
5881       as_dir=`$as_dirname -- "$as_dir" ||
5882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5883          X"$as_dir" : 'X\(//\)[^/]' \| \
5884          X"$as_dir" : 'X\(//\)$' \| \
5885          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5886 $as_echo X"$as_dir" |
5887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5888             s//\1/
5889             q
5890           }
5891           /^X\(\/\/\)[^/].*/{
5892             s//\1/
5893             q
5894           }
5895           /^X\(\/\/\)$/{
5896             s//\1/
5897             q
5898           }
5899           /^X\(\/\).*/{
5900             s//\1/
5901             q
5902           }
5903           s/.*/./; q'`
5904       test -d "$as_dir" && break
5905     done
5906     test -z "$as_dirs" || eval "mkdir $as_dirs"
5907   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5908
5909
5910 } # as_fn_mkdir_p
5911 if mkdir -p . 2>/dev/null; then
5912   as_mkdir_p='mkdir -p "$as_dir"'
5913 else
5914   test -d ./-p && rmdir ./-p
5915   as_mkdir_p=false
5916 fi
5917
5918
5919 # as_fn_executable_p FILE
5920 # -----------------------
5921 # Test if FILE is an executable regular file.
5922 as_fn_executable_p ()
5923 {
5924   test -f "$1" && test -x "$1"
5925 } # as_fn_executable_p
5926 as_test_x='test -x'
5927 as_executable_p=as_fn_executable_p
5928
5929 # Sed expression to map a string onto a valid CPP name.
5930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5931
5932 # Sed expression to map a string onto a valid variable name.
5933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5934
5935
5936 exec 6>&1
5937 ## ----------------------------------- ##
5938 ## Main body of $CONFIG_STATUS script. ##
5939 ## ----------------------------------- ##
5940 _ASEOF
5941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5942
5943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5944 # Save the log message, to keep $0 and so on meaningful, and to
5945 # report actual input values of CONFIG_FILES etc. instead of their
5946 # values after options handling.
5947 ac_log="
5948 This file was extended by ldns $as_me 1.7.0, which was
5949 generated by GNU Autoconf 2.69.  Invocation command line was
5950
5951   CONFIG_FILES    = $CONFIG_FILES
5952   CONFIG_HEADERS  = $CONFIG_HEADERS
5953   CONFIG_LINKS    = $CONFIG_LINKS
5954   CONFIG_COMMANDS = $CONFIG_COMMANDS
5955   $ $0 $@
5956
5957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5958 "
5959
5960 _ACEOF
5961
5962 case $ac_config_files in *"
5963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5964 esac
5965
5966 case $ac_config_headers in *"
5967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5968 esac
5969
5970
5971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972 # Files that config.status was made for.
5973 config_files="$ac_config_files"
5974 config_headers="$ac_config_headers"
5975
5976 _ACEOF
5977
5978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979 ac_cs_usage="\
5980 \`$as_me' instantiates files and other configuration actions
5981 from templates according to the current configuration.  Unless the files
5982 and actions are specified as TAGs, all are instantiated by default.
5983
5984 Usage: $0 [OPTION]... [TAG]...
5985
5986   -h, --help       print this help, then exit
5987   -V, --version    print version number and configuration settings, then exit
5988       --config     print configuration, then exit
5989   -q, --quiet, --silent
5990                    do not print progress messages
5991   -d, --debug      don't remove temporary files
5992       --recheck    update $as_me by reconfiguring in the same conditions
5993       --file=FILE[:TEMPLATE]
5994                    instantiate the configuration file FILE
5995       --header=FILE[:TEMPLATE]
5996                    instantiate the configuration header FILE
5997
5998 Configuration files:
5999 $config_files
6000
6001 Configuration headers:
6002 $config_headers
6003
6004 Report bugs to <libdns@nlnetlabs.nl>."
6005
6006 _ACEOF
6007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6009 ac_cs_version="\\
6010 ldns config.status 1.7.0
6011 configured by $0, generated by GNU Autoconf 2.69,
6012   with options \\"\$ac_cs_config\\"
6013
6014 Copyright (C) 2012 Free Software Foundation, Inc.
6015 This config.status script is free software; the Free Software Foundation
6016 gives unlimited permission to copy, distribute and modify it."
6017
6018 ac_pwd='$ac_pwd'
6019 srcdir='$srcdir'
6020 test -n "\$AWK" || AWK=awk
6021 _ACEOF
6022
6023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6024 # The default lists apply if the user does not specify any file.
6025 ac_need_defaults=:
6026 while test $# != 0
6027 do
6028   case $1 in
6029   --*=?*)
6030     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6031     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6032     ac_shift=:
6033     ;;
6034   --*=)
6035     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6036     ac_optarg=
6037     ac_shift=:
6038     ;;
6039   *)
6040     ac_option=$1
6041     ac_optarg=$2
6042     ac_shift=shift
6043     ;;
6044   esac
6045
6046   case $ac_option in
6047   # Handling of the options.
6048   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6049     ac_cs_recheck=: ;;
6050   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6051     $as_echo "$ac_cs_version"; exit ;;
6052   --config | --confi | --conf | --con | --co | --c )
6053     $as_echo "$ac_cs_config"; exit ;;
6054   --debug | --debu | --deb | --de | --d | -d )
6055     debug=: ;;
6056   --file | --fil | --fi | --f )
6057     $ac_shift
6058     case $ac_optarg in
6059     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6060     '') as_fn_error $? "missing file argument" ;;
6061     esac
6062     as_fn_append CONFIG_FILES " '$ac_optarg'"
6063     ac_need_defaults=false;;
6064   --header | --heade | --head | --hea )
6065     $ac_shift
6066     case $ac_optarg in
6067     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6068     esac
6069     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6070     ac_need_defaults=false;;
6071   --he | --h)
6072     # Conflict between --help and --header
6073     as_fn_error $? "ambiguous option: \`$1'
6074 Try \`$0 --help' for more information.";;
6075   --help | --hel | -h )
6076     $as_echo "$ac_cs_usage"; exit ;;
6077   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6078   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6079     ac_cs_silent=: ;;
6080
6081   # This is an error.
6082   -*) as_fn_error $? "unrecognized option: \`$1'
6083 Try \`$0 --help' for more information." ;;
6084
6085   *) as_fn_append ac_config_targets " $1"
6086      ac_need_defaults=false ;;
6087
6088   esac
6089   shift
6090 done
6091
6092 ac_configure_extra_args=
6093
6094 if $ac_cs_silent; then
6095   exec 6>/dev/null
6096   ac_configure_extra_args="$ac_configure_extra_args --silent"
6097 fi
6098
6099 _ACEOF
6100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6101 if \$ac_cs_recheck; then
6102   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6103   shift
6104   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6105   CONFIG_SHELL='$SHELL'
6106   export CONFIG_SHELL
6107   exec "\$@"
6108 fi
6109
6110 _ACEOF
6111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6112 exec 5>>config.log
6113 {
6114   echo
6115   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6116 ## Running $as_me. ##
6117 _ASBOX
6118   $as_echo "$ac_log"
6119 } >&5
6120
6121 _ACEOF
6122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6123 _ACEOF
6124
6125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6126
6127 # Handling of arguments.
6128 for ac_config_target in $ac_config_targets
6129 do
6130   case $ac_config_target in
6131     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6132     "drill.1") CONFIG_FILES="$CONFIG_FILES drill.1" ;;
6133     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6134
6135   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6136   esac
6137 done
6138
6139
6140 # If the user did not use the arguments to specify the items to instantiate,
6141 # then the envvar interface is used.  Set only those that are not.
6142 # We use the long form for the default assignment because of an extremely
6143 # bizarre bug on SunOS 4.1.3.
6144 if $ac_need_defaults; then
6145   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6146   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6147 fi
6148
6149 # Have a temporary directory for convenience.  Make it in the build tree
6150 # simply because there is no reason against having it here, and in addition,
6151 # creating and moving files from /tmp can sometimes cause problems.
6152 # Hook for its removal unless debugging.
6153 # Note that there is a small window in which the directory will not be cleaned:
6154 # after its creation but before its name has been assigned to `$tmp'.
6155 $debug ||
6156 {
6157   tmp= ac_tmp=
6158   trap 'exit_status=$?
6159   : "${ac_tmp:=$tmp}"
6160   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6161 ' 0
6162   trap 'as_fn_exit 1' 1 2 13 15
6163 }
6164 # Create a (secure) tmp directory for tmp files.
6165
6166 {
6167   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6168   test -d "$tmp"
6169 }  ||
6170 {
6171   tmp=./conf$$-$RANDOM
6172   (umask 077 && mkdir "$tmp")
6173 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6174 ac_tmp=$tmp
6175
6176 # Set up the scripts for CONFIG_FILES section.
6177 # No need to generate them if there are no CONFIG_FILES.
6178 # This happens for instance with `./config.status config.h'.
6179 if test -n "$CONFIG_FILES"; then
6180
6181
6182 ac_cr=`echo X | tr X '\015'`
6183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6184 # But we know of no other shell where ac_cr would be empty at this
6185 # point, so we can use a bashism as a fallback.
6186 if test "x$ac_cr" = x; then
6187   eval ac_cr=\$\'\\r\'
6188 fi
6189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6191   ac_cs_awk_cr='\\r'
6192 else
6193   ac_cs_awk_cr=$ac_cr
6194 fi
6195
6196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6197 _ACEOF
6198
6199
6200 {
6201   echo "cat >conf$$subs.awk <<_ACEOF" &&
6202   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6203   echo "_ACEOF"
6204 } >conf$$subs.sh ||
6205   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6207 ac_delim='%!_!# '
6208 for ac_last_try in false false false false false :; do
6209   . ./conf$$subs.sh ||
6210     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6211
6212   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6213   if test $ac_delim_n = $ac_delim_num; then
6214     break
6215   elif $ac_last_try; then
6216     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6217   else
6218     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6219   fi
6220 done
6221 rm -f conf$$subs.sh
6222
6223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6224 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6225 _ACEOF
6226 sed -n '
6227 h
6228 s/^/S["/; s/!.*/"]=/
6229 p
6230 g
6231 s/^[^!]*!//
6232 :repl
6233 t repl
6234 s/'"$ac_delim"'$//
6235 t delim
6236 :nl
6237 h
6238 s/\(.\{148\}\)..*/\1/
6239 t more1
6240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6241 p
6242 n
6243 b repl
6244 :more1
6245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6246 p
6247 g
6248 s/.\{148\}//
6249 t nl
6250 :delim
6251 h
6252 s/\(.\{148\}\)..*/\1/
6253 t more2
6254 s/["\\]/\\&/g; s/^/"/; s/$/"/
6255 p
6256 b
6257 :more2
6258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6259 p
6260 g
6261 s/.\{148\}//
6262 t delim
6263 ' <conf$$subs.awk | sed '
6264 /^[^""]/{
6265   N
6266   s/\n//
6267 }
6268 ' >>$CONFIG_STATUS || ac_write_fail=1
6269 rm -f conf$$subs.awk
6270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6271 _ACAWK
6272 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6273   for (key in S) S_is_set[key] = 1
6274   FS = "\a"
6275
6276 }
6277 {
6278   line = $ 0
6279   nfields = split(line, field, "@")
6280   substed = 0
6281   len = length(field[1])
6282   for (i = 2; i < nfields; i++) {
6283     key = field[i]
6284     keylen = length(key)
6285     if (S_is_set[key]) {
6286       value = S[key]
6287       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6288       len += length(value) + length(field[++i])
6289       substed = 1
6290     } else
6291       len += 1 + keylen
6292   }
6293
6294   print line
6295 }
6296
6297 _ACAWK
6298 _ACEOF
6299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6301   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6302 else
6303   cat
6304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6305   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6306 _ACEOF
6307
6308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6310 # trailing colons and then remove the whole line if VPATH becomes empty
6311 # (actually we leave an empty line to preserve line numbers).
6312 if test "x$srcdir" = x.; then
6313   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6314 h
6315 s///
6316 s/^/:/
6317 s/[      ]*$/:/
6318 s/:\$(srcdir):/:/g
6319 s/:\${srcdir}:/:/g
6320 s/:@srcdir@:/:/g
6321 s/^:*//
6322 s/:*$//
6323 x
6324 s/\(=[   ]*\).*/\1/
6325 G
6326 s/\n//
6327 s/^[^=]*=[       ]*$//
6328 }'
6329 fi
6330
6331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332 fi # test -n "$CONFIG_FILES"
6333
6334 # Set up the scripts for CONFIG_HEADERS section.
6335 # No need to generate them if there are no CONFIG_HEADERS.
6336 # This happens for instance with `./config.status Makefile'.
6337 if test -n "$CONFIG_HEADERS"; then
6338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6339 BEGIN {
6340 _ACEOF
6341
6342 # Transform confdefs.h into an awk script `defines.awk', embedded as
6343 # here-document in config.status, that substitutes the proper values into
6344 # config.h.in to produce config.h.
6345
6346 # Create a delimiter string that does not exist in confdefs.h, to ease
6347 # handling of long lines.
6348 ac_delim='%!_!# '
6349 for ac_last_try in false false :; do
6350   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6351   if test -z "$ac_tt"; then
6352     break
6353   elif $ac_last_try; then
6354     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6355   else
6356     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6357   fi
6358 done
6359
6360 # For the awk script, D is an array of macro values keyed by name,
6361 # likewise P contains macro parameters if any.  Preserve backslash
6362 # newline sequences.
6363
6364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6365 sed -n '
6366 s/.\{148\}/&'"$ac_delim"'/g
6367 t rset
6368 :rset
6369 s/^[     ]*#[    ]*define[       ][      ]*/ /
6370 t def
6371 d
6372 :def
6373 s/\\$//
6374 t bsnl
6375 s/["\\]/\\&/g
6376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6377 D["\1"]=" \3"/p
6378 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6379 d
6380 :bsnl
6381 s/["\\]/\\&/g
6382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6383 D["\1"]=" \3\\\\\\n"\\/p
6384 t cont
6385 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6386 t cont
6387 d
6388 :cont
6389 n
6390 s/.\{148\}/&'"$ac_delim"'/g
6391 t clear
6392 :clear
6393 s/\\$//
6394 t bsnlc
6395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6396 d
6397 :bsnlc
6398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6399 b cont
6400 ' <confdefs.h | sed '
6401 s/'"$ac_delim"'/"\\\
6402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6403
6404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6405   for (key in D) D_is_set[key] = 1
6406   FS = "\a"
6407 }
6408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6409   line = \$ 0
6410   split(line, arg, " ")
6411   if (arg[1] == "#") {
6412     defundef = arg[2]
6413     mac1 = arg[3]
6414   } else {
6415     defundef = substr(arg[1], 2)
6416     mac1 = arg[2]
6417   }
6418   split(mac1, mac2, "(") #)
6419   macro = mac2[1]
6420   prefix = substr(line, 1, index(line, defundef) - 1)
6421   if (D_is_set[macro]) {
6422     # Preserve the white space surrounding the "#".
6423     print prefix "define", macro P[macro] D[macro]
6424     next
6425   } else {
6426     # Replace #undef with comments.  This is necessary, for example,
6427     # in the case of _POSIX_SOURCE, which is predefined and required
6428     # on some systems where configure will not decide to define it.
6429     if (defundef == "undef") {
6430       print "/*", prefix defundef, macro, "*/"
6431       next
6432     }
6433   }
6434 }
6435 { print }
6436 _ACAWK
6437 _ACEOF
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6440 fi # test -n "$CONFIG_HEADERS"
6441
6442
6443 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6444 shift
6445 for ac_tag
6446 do
6447   case $ac_tag in
6448   :[FHLC]) ac_mode=$ac_tag; continue;;
6449   esac
6450   case $ac_mode$ac_tag in
6451   :[FHL]*:*);;
6452   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6453   :[FH]-) ac_tag=-:-;;
6454   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6455   esac
6456   ac_save_IFS=$IFS
6457   IFS=:
6458   set x $ac_tag
6459   IFS=$ac_save_IFS
6460   shift
6461   ac_file=$1
6462   shift
6463
6464   case $ac_mode in
6465   :L) ac_source=$1;;
6466   :[FH])
6467     ac_file_inputs=
6468     for ac_f
6469     do
6470       case $ac_f in
6471       -) ac_f="$ac_tmp/stdin";;
6472       *) # Look for the file first in the build tree, then in the source tree
6473          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6474          # because $ac_f cannot contain `:'.
6475          test -f "$ac_f" ||
6476            case $ac_f in
6477            [\\/$]*) false;;
6478            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6479            esac ||
6480            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6481       esac
6482       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6483       as_fn_append ac_file_inputs " '$ac_f'"
6484     done
6485
6486     # Let's still pretend it is `configure' which instantiates (i.e., don't
6487     # use $as_me), people would be surprised to read:
6488     #    /* config.h.  Generated by config.status.  */
6489     configure_input='Generated from '`
6490           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6491         `' by configure.'
6492     if test x"$ac_file" != x-; then
6493       configure_input="$ac_file.  $configure_input"
6494       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6495 $as_echo "$as_me: creating $ac_file" >&6;}
6496     fi
6497     # Neutralize special characters interpreted by sed in replacement strings.
6498     case $configure_input in #(
6499     *\&* | *\|* | *\\* )
6500        ac_sed_conf_input=`$as_echo "$configure_input" |
6501        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6502     *) ac_sed_conf_input=$configure_input;;
6503     esac
6504
6505     case $ac_tag in
6506     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6507       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6508     esac
6509     ;;
6510   esac
6511
6512   ac_dir=`$as_dirname -- "$ac_file" ||
6513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6514          X"$ac_file" : 'X\(//\)[^/]' \| \
6515          X"$ac_file" : 'X\(//\)$' \| \
6516          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6517 $as_echo X"$ac_file" |
6518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6519             s//\1/
6520             q
6521           }
6522           /^X\(\/\/\)[^/].*/{
6523             s//\1/
6524             q
6525           }
6526           /^X\(\/\/\)$/{
6527             s//\1/
6528             q
6529           }
6530           /^X\(\/\).*/{
6531             s//\1/
6532             q
6533           }
6534           s/.*/./; q'`
6535   as_dir="$ac_dir"; as_fn_mkdir_p
6536   ac_builddir=.
6537
6538 case "$ac_dir" in
6539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6540 *)
6541   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6542   # A ".." for each directory in $ac_dir_suffix.
6543   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6544   case $ac_top_builddir_sub in
6545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6547   esac ;;
6548 esac
6549 ac_abs_top_builddir=$ac_pwd
6550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6551 # for backward compatibility:
6552 ac_top_builddir=$ac_top_build_prefix
6553
6554 case $srcdir in
6555   .)  # We are building in place.
6556     ac_srcdir=.
6557     ac_top_srcdir=$ac_top_builddir_sub
6558     ac_abs_top_srcdir=$ac_pwd ;;
6559   [\\/]* | ?:[\\/]* )  # Absolute name.
6560     ac_srcdir=$srcdir$ac_dir_suffix;
6561     ac_top_srcdir=$srcdir
6562     ac_abs_top_srcdir=$srcdir ;;
6563   *) # Relative name.
6564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6565     ac_top_srcdir=$ac_top_build_prefix$srcdir
6566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6567 esac
6568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6569
6570
6571   case $ac_mode in
6572   :F)
6573   #
6574   # CONFIG_FILE
6575   #
6576
6577 _ACEOF
6578
6579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6580 # If the template does not know about datarootdir, expand it.
6581 # FIXME: This hack should be removed a few years after 2.60.
6582 ac_datarootdir_hack=; ac_datarootdir_seen=
6583 ac_sed_dataroot='
6584 /datarootdir/ {
6585   p
6586   q
6587 }
6588 /@datadir@/p
6589 /@docdir@/p
6590 /@infodir@/p
6591 /@localedir@/p
6592 /@mandir@/p'
6593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6594 *datarootdir*) ac_datarootdir_seen=yes;;
6595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6598 _ACEOF
6599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6600   ac_datarootdir_hack='
6601   s&@datadir@&$datadir&g
6602   s&@docdir@&$docdir&g
6603   s&@infodir@&$infodir&g
6604   s&@localedir@&$localedir&g
6605   s&@mandir@&$mandir&g
6606   s&\\\${datarootdir}&$datarootdir&g' ;;
6607 esac
6608 _ACEOF
6609
6610 # Neutralize VPATH when `$srcdir' = `.'.
6611 # Shell code in configure.ac might set extrasub.
6612 # FIXME: do we really want to maintain this feature?
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 ac_sed_extra="$ac_vpsub
6615 $extrasub
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6618 :t
6619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6620 s|@configure_input@|$ac_sed_conf_input|;t t
6621 s&@top_builddir@&$ac_top_builddir_sub&;t t
6622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6623 s&@srcdir@&$ac_srcdir&;t t
6624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6625 s&@top_srcdir@&$ac_top_srcdir&;t t
6626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6627 s&@builddir@&$ac_builddir&;t t
6628 s&@abs_builddir@&$ac_abs_builddir&;t t
6629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6630 $ac_datarootdir_hack
6631 "
6632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6633   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6634
6635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6636   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6637   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6638       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6640 which seems to be undefined.  Please make sure it is defined" >&5
6641 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6642 which seems to be undefined.  Please make sure it is defined" >&2;}
6643
6644   rm -f "$ac_tmp/stdin"
6645   case $ac_file in
6646   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6647   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6648   esac \
6649   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6650  ;;
6651   :H)
6652   #
6653   # CONFIG_HEADER
6654   #
6655   if test x"$ac_file" != x-; then
6656     {
6657       $as_echo "/* $configure_input  */" \
6658       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6659     } >"$ac_tmp/config.h" \
6660       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6661     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6662       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6663 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6664     else
6665       rm -f "$ac_file"
6666       mv "$ac_tmp/config.h" "$ac_file" \
6667         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6668     fi
6669   else
6670     $as_echo "/* $configure_input  */" \
6671       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6672       || as_fn_error $? "could not create -" "$LINENO" 5
6673   fi
6674  ;;
6675
6676
6677   esac
6678
6679 done # for ac_tag
6680
6681
6682 as_fn_exit 0
6683 _ACEOF
6684 ac_clean_files=$ac_clean_files_save
6685
6686 test $ac_write_fail = 0 ||
6687   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6688
6689
6690 # configure is writing to config.log, and then calls config.status.
6691 # config.status does its own redirection, appending to config.log.
6692 # Unfortunately, on DOS this fails, as config.log is still kept open
6693 # by configure, so config.status won't be able to write to it; its
6694 # output is simply discarded.  So we exec the FD to /dev/null,
6695 # effectively closing config.log, so it can be properly (re)opened and
6696 # appended to by config.status.  When coming back to configure, we
6697 # need to make the FD available again.
6698 if test "$no_create" != yes; then
6699   ac_cs_success=:
6700   ac_config_status_args=
6701   test "$silent" = yes &&
6702     ac_config_status_args="$ac_config_status_args --quiet"
6703   exec 5>/dev/null
6704   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6705   exec 5>>config.log
6706   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6707   # would make configure fail if this is the last instruction.
6708   $ac_cs_success || as_fn_exit 1
6709 fi
6710 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6712 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6713 fi
6714