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