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