Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.72 for NSD 4.14.0.
      4 #
      5 # Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
      9 # Inc.
     10 #
     11 #
     12 # This configure script is free software; the Free Software Foundation
     13 # gives unlimited permission to copy, distribute and modify it.
     14 ## -------------------- ##
     15 ## M4sh Initialization. ##
     16 ## -------------------- ##
     17 
     18 # Be more Bourne compatible
     19 DUALCASE=1; export DUALCASE # for MKS sh
     20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     21 then :
     22   emulate sh
     23   NULLCMD=:
     24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   # is contrary to our usage.  Disable this feature.
     26   alias -g '${1+"$@"}'='"$@"'
     27   setopt NO_GLOB_SUBST
     28 else case e in #(
     29   e) case `(set -o) 2>/dev/null` in #(
     30   *posix*) :
     31     set -o posix ;; #(
     32   *) :
     33      ;;
     34 esac ;;
     35 esac
     36 fi
     37 
     38 
     39 
     40 # Reset variables that may have inherited troublesome values from
     41 # the environment.
     42 
     43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     45 # side effect of setting IFS to empty, thus disabling word splitting.)
     46 # Quoting is to prevent editors from complaining about space-tab.
     47 as_nl='
     48 '
     49 export as_nl
     50 IFS=" ""	$as_nl"
     51 
     52 PS1='$ '
     53 PS2='> '
     54 PS4='+ '
     55 
     56 # Ensure predictable behavior from utilities with locale-dependent output.
     57 LC_ALL=C
     58 export LC_ALL
     59 LANGUAGE=C
     60 export LANGUAGE
     61 
     62 # We cannot yet rely on "unset" to work, but we need these variables
     63 # to be unset--not just set to an empty or harmless value--now, to
     64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65 # also avoids known problems related to "unset" and subshell syntax
     66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68 do eval test \${$as_var+y} \
     69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70 done
     71 
     72 # Ensure that fds 0, 1, and 2 are open.
     73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76 
     77 # The user is always right.
     78 if ${PATH_SEPARATOR+false} :; then
     79   PATH_SEPARATOR=:
     80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82       PATH_SEPARATOR=';'
     83   }
     84 fi
     85 
     86 
     87 # Find who we are.  Look in the path if we contain no directory separator.
     88 as_myself=
     89 case $0 in #((
     90   *[\\/]* ) as_myself=$0 ;;
     91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92 for as_dir in $PATH
     93 do
     94   IFS=$as_save_IFS
     95   case $as_dir in #(((
     96     '') as_dir=./ ;;
     97     */) ;;
     98     *) as_dir=$as_dir/ ;;
     99   esac
    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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 
    117 # Use a proper internal environment variable to ensure we don't fall
    118   # into an infinite loop, continuously re-executing ourselves.
    119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    120     _as_can_reexec=no; export _as_can_reexec;
    121     # We cannot yet assume a decent shell, so we have to provide a
    122 # neutralization value for shells without unset; and this also
    123 # works around shells that cannot unset nonexistent variables.
    124 # Preserve -v and -x to the replacement shell.
    125 BASH_ENV=/dev/null
    126 ENV=/dev/null
    127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    128 case $- in # ((((
    129   *v*x* | *x*v* ) as_opts=-vx ;;
    130   *v* ) as_opts=-v ;;
    131   *x* ) as_opts=-x ;;
    132   * ) as_opts= ;;
    133 esac
    134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    135 # Admittedly, this is quite paranoid, since all the known shells bail
    136 # out after a failed 'exec'.
    137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    138 exit 255
    139   fi
    140   # We don't want this to propagate to other subprocesses.
    141           { _as_can_reexec=; unset _as_can_reexec;}
    142 if test "x$CONFIG_SHELL" = x; then
    143   as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    144 then :
    145   emulate sh
    146   NULLCMD=:
    147   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    148   # is contrary to our usage.  Disable this feature.
    149   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    150   setopt NO_GLOB_SUBST
    151 else case e in #(
    152   e) case \`(set -o) 2>/dev/null\` in #(
    153   *posix*) :
    154     set -o posix ;; #(
    155   *) :
    156      ;;
    157 esac ;;
    158 esac
    159 fi
    160 "
    161   as_required="as_fn_return () { (exit \$1); }
    162 as_fn_success () { as_fn_return 0; }
    163 as_fn_failure () { as_fn_return 1; }
    164 as_fn_ret_success () { return 0; }
    165 as_fn_ret_failure () { return 1; }
    166 
    167 exitcode=0
    168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    173 then :
    174 
    175 else case e in #(
    176   e) exitcode=1; echo positional parameters were not saved. ;;
    177 esac
    178 fi
    179 test x\$exitcode = x0 || exit 1
    180 blah=\$(echo \$(echo blah))
    181 test x\"\$blah\" = xblah || exit 1
    182 test -x / || exit 1"
    183   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    184   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    185   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    186   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    187 test \$(( 1 + 1 )) = 2 || exit 1"
    188   if (eval "$as_required") 2>/dev/null
    189 then :
    190   as_have_required=yes
    191 else case e in #(
    192   e) as_have_required=no ;;
    193 esac
    194 fi
    195   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    196 then :
    197 
    198 else case e in #(
    199   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    200 as_found=false
    201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    202 do
    203   IFS=$as_save_IFS
    204   case $as_dir in #(((
    205     '') as_dir=./ ;;
    206     */) ;;
    207     *) as_dir=$as_dir/ ;;
    208   esac
    209   as_found=:
    210   case $as_dir in #(
    211 	 /*)
    212 	   for as_base in sh bash ksh sh5; do
    213 	     # Try only shells that exist, to save several forks.
    214 	     as_shell=$as_dir$as_base
    215 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    216 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    217 then :
    218   CONFIG_SHELL=$as_shell as_have_required=yes
    219 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    220 then :
    221   break 2
    222 fi
    223 fi
    224 	   done;;
    225        esac
    226   as_found=false
    227 done
    228 IFS=$as_save_IFS
    229 if $as_found
    230 then :
    231 
    232 else case e in #(
    233   e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    235 then :
    236   CONFIG_SHELL=$SHELL as_have_required=yes
    237 fi ;;
    238 esac
    239 fi
    240 
    241 
    242       if test "x$CONFIG_SHELL" != x
    243 then :
    244   export CONFIG_SHELL
    245              # We cannot yet assume a decent shell, so we have to provide a
    246 # neutralization value for shells without unset; and this also
    247 # works around shells that cannot unset nonexistent variables.
    248 # Preserve -v and -x to the replacement shell.
    249 BASH_ENV=/dev/null
    250 ENV=/dev/null
    251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    252 case $- in # ((((
    253   *v*x* | *x*v* ) as_opts=-vx ;;
    254   *v* ) as_opts=-v ;;
    255   *x* ) as_opts=-x ;;
    256   * ) as_opts= ;;
    257 esac
    258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    259 # Admittedly, this is quite paranoid, since all the known shells bail
    260 # out after a failed 'exec'.
    261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    262 exit 255
    263 fi
    264 
    265     if test x$as_have_required = xno
    266 then :
    267   printf "%s\n" "$0: This script requires a shell more modern than all"
    268   printf "%s\n" "$0: the shells that I found on your system."
    269   if test ${ZSH_VERSION+y} ; then
    270     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    271     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    272   else
    273     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
    274 $0: https://github.com/NLnetLabs/nsd/issues or
    275 $0: nsd-bugs (at] nlnetlabs.nl about your system, including any
    276 $0: error possibly output before this message. Then install
    277 $0: a modern shell, or manually run the script under such a
    278 $0: shell if you do have one."
    279   fi
    280   exit 1
    281 fi ;;
    282 esac
    283 fi
    284 fi
    285 SHELL=${CONFIG_SHELL-/bin/sh}
    286 export SHELL
    287 # Unset more variables known to interfere with behavior of common tools.
    288 CLICOLOR_FORCE= GREP_OPTIONS=
    289 unset CLICOLOR_FORCE GREP_OPTIONS
    290 
    291 ## --------------------- ##
    292 ## M4sh Shell Functions. ##
    293 ## --------------------- ##
    294 # as_fn_unset VAR
    295 # ---------------
    296 # Portably unset VAR.
    297 as_fn_unset ()
    298 {
    299   { eval $1=; unset $1;}
    300 }
    301 as_unset=as_fn_unset
    302 
    303 
    304 # as_fn_set_status STATUS
    305 # -----------------------
    306 # Set $? to STATUS, without forking.
    307 as_fn_set_status ()
    308 {
    309   return $1
    310 } # as_fn_set_status
    311 
    312 # as_fn_exit STATUS
    313 # -----------------
    314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    315 as_fn_exit ()
    316 {
    317   set +e
    318   as_fn_set_status $1
    319   exit $1
    320 } # as_fn_exit
    321 
    322 # as_fn_mkdir_p
    323 # -------------
    324 # Create "$as_dir" as a directory, including parents if necessary.
    325 as_fn_mkdir_p ()
    326 {
    327 
    328   case $as_dir in #(
    329   -*) as_dir=./$as_dir;;
    330   esac
    331   test -d "$as_dir" || eval $as_mkdir_p || {
    332     as_dirs=
    333     while :; do
    334       case $as_dir in #(
    335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336       *) as_qdir=$as_dir;;
    337       esac
    338       as_dirs="'$as_qdir' $as_dirs"
    339       as_dir=`$as_dirname -- "$as_dir" ||
    340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342 	 X"$as_dir" : 'X\(//\)$' \| \
    343 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344 printf "%s\n" X"$as_dir" |
    345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346 	    s//\1/
    347 	    q
    348 	  }
    349 	  /^X\(\/\/\)[^/].*/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)$/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\).*/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  s/.*/./; q'`
    362       test -d "$as_dir" && break
    363     done
    364     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366 
    367 
    368 } # as_fn_mkdir_p
    369 
    370 # as_fn_executable_p FILE
    371 # -----------------------
    372 # Test if FILE is an executable regular file.
    373 as_fn_executable_p ()
    374 {
    375   test -f "$1" && test -x "$1"
    376 } # as_fn_executable_p
    377 # as_fn_append VAR VALUE
    378 # ----------------------
    379 # Append the text in VALUE to the end of the definition contained in VAR. Take
    380 # advantage of any shell optimizations that allow amortized linear growth over
    381 # repeated appends, instead of the typical quadratic growth present in naive
    382 # implementations.
    383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    384 then :
    385   eval 'as_fn_append ()
    386   {
    387     eval $1+=\$2
    388   }'
    389 else case e in #(
    390   e) as_fn_append ()
    391   {
    392     eval $1=\$$1\$2
    393   } ;;
    394 esac
    395 fi # as_fn_append
    396 
    397 # as_fn_arith ARG...
    398 # ------------------
    399 # Perform arithmetic evaluation on the ARGs, and store the result in the
    400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    401 # must be portable across $(()) and expr.
    402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    403 then :
    404   eval 'as_fn_arith ()
    405   {
    406     as_val=$(( $* ))
    407   }'
    408 else case e in #(
    409   e) as_fn_arith ()
    410   {
    411     as_val=`expr "$@" || test $? -eq 1`
    412   } ;;
    413 esac
    414 fi # as_fn_arith
    415 
    416 
    417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    418 # ----------------------------------------
    419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    421 # script with STATUS, using 1 if that was 0.
    422 as_fn_error ()
    423 {
    424   as_status=$1; test $as_status -eq 0 && as_status=1
    425   if test "$4"; then
    426     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    427     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    428   fi
    429   printf "%s\n" "$as_me: error: $2" >&2
    430   as_fn_exit $as_status
    431 } # as_fn_error
    432 
    433 if expr a : '\(a\)' >/dev/null 2>&1 &&
    434    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    435   as_expr=expr
    436 else
    437   as_expr=false
    438 fi
    439 
    440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    441   as_basename=basename
    442 else
    443   as_basename=false
    444 fi
    445 
    446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    447   as_dirname=dirname
    448 else
    449   as_dirname=false
    450 fi
    451 
    452 as_me=`$as_basename -- "$0" ||
    453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    454 	 X"$0" : 'X\(//\)$' \| \
    455 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    456 printf "%s\n" X/"$0" |
    457     sed '/^.*\/\([^/][^/]*\)\/*$/{
    458 	    s//\1/
    459 	    q
    460 	  }
    461 	  /^X\/\(\/\/\)$/{
    462 	    s//\1/
    463 	    q
    464 	  }
    465 	  /^X\/\(\/\).*/{
    466 	    s//\1/
    467 	    q
    468 	  }
    469 	  s/.*/./; q'`
    470 
    471 # Avoid depending upon Character Ranges.
    472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    475 as_cr_digits='0123456789'
    476 as_cr_alnum=$as_cr_Letters$as_cr_digits
    477 
    478 
    479   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    480   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    481   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    482   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    483   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    484   sed -n '
    485     p
    486     /[$]LINENO/=
    487   ' <$as_myself |
    488     sed '
    489       t clear
    490       :clear
    491       s/[$]LINENO.*/&-/
    492       t lineno
    493       b
    494       :lineno
    495       N
    496       :loop
    497       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    498       t loop
    499       s/-\n.*//
    500     ' >$as_me.lineno &&
    501   chmod +x "$as_me.lineno" ||
    502     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    503 
    504   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    505   # already done that, so ensure we don't try to do so again and fall
    506   # in an infinite loop.  This has already happened in practice.
    507   _as_can_reexec=no; export _as_can_reexec
    508   # Don't try to exec as it changes $[0], causing all sort of problems
    509   # (the dirname of $[0] is not the place where we might find the
    510   # original and so on.  Autoconf is especially sensitive to this).
    511   . "./$as_me.lineno"
    512   # Exit status is that of the last command.
    513   exit
    514 }
    515 
    516 
    517 # Determine whether it's possible to make 'echo' print without a newline.
    518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    519 # for compatibility with existing Makefiles.
    520 ECHO_C= ECHO_N= ECHO_T=
    521 case `echo -n x` in #(((((
    522 -n*)
    523   case `echo 'xy\c'` in
    524   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    525   xy)  ECHO_C='\c';;
    526   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    527        ECHO_T='	';;
    528   esac;;
    529 *)
    530   ECHO_N='-n';;
    531 esac
    532 
    533 # For backward compatibility with old third-party macros, we provide
    534 # the shell variables $as_echo and $as_echo_n.  New code should use
    535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    536 as_echo='printf %s\n'
    537 as_echo_n='printf %s'
    538 
    539 rm -f conf$$ conf$$.exe conf$$.file
    540 if test -d conf$$.dir; then
    541   rm -f conf$$.dir/conf$$.file
    542 else
    543   rm -f conf$$.dir
    544   mkdir conf$$.dir 2>/dev/null
    545 fi
    546 if (echo >conf$$.file) 2>/dev/null; then
    547   if ln -s conf$$.file conf$$ 2>/dev/null; then
    548     as_ln_s='ln -s'
    549     # ... but there are two gotchas:
    550     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
    551     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
    552     # In both cases, we have to default to 'cp -pR'.
    553     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    554       as_ln_s='cp -pR'
    555   elif ln conf$$.file conf$$ 2>/dev/null; then
    556     as_ln_s=ln
    557   else
    558     as_ln_s='cp -pR'
    559   fi
    560 else
    561   as_ln_s='cp -pR'
    562 fi
    563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    564 rmdir conf$$.dir 2>/dev/null
    565 
    566 if mkdir -p . 2>/dev/null; then
    567   as_mkdir_p='mkdir -p "$as_dir"'
    568 else
    569   test -d ./-p && rmdir ./-p
    570   as_mkdir_p=false
    571 fi
    572 
    573 as_test_x='test -x'
    574 as_executable_p=as_fn_executable_p
    575 
    576 # Sed expression to map a string onto a valid CPP name.
    577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
    579 
    580 # Sed expression to map a string onto a valid variable name.
    581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
    583 
    584 
    585 test -n "$DJDIR" || exec 7<&0 </dev/null
    586 exec 6>&1
    587 
    588 # Name of the host.
    589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    590 # so uname gets run too.
    591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    592 
    593 #
    594 # Initializations.
    595 #
    596 ac_default_prefix=/usr/local
    597 ac_clean_files=
    598 ac_config_libobj_dir=.
    599 LIBOBJS=
    600 cross_compiling=no
    601 subdirs=
    602 MFLAGS=
    603 MAKEFLAGS=
    604 
    605 # Identity of this package.
    606 PACKAGE_NAME='NSD'
    607 PACKAGE_TARNAME='nsd'
    608 PACKAGE_VERSION='4.14.0'
    609 PACKAGE_STRING='NSD 4.14.0'
    610 PACKAGE_BUGREPORT='https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl'
    611 PACKAGE_URL=''
    612 
    613 # Factoring default headers for most tests.
    614 ac_includes_default="\
    615 #include <stddef.h>
    616 #ifdef HAVE_STDIO_H
    617 # include <stdio.h>
    618 #endif
    619 #ifdef HAVE_STDLIB_H
    620 # include <stdlib.h>
    621 #endif
    622 #ifdef HAVE_STRING_H
    623 # include <string.h>
    624 #endif
    625 #ifdef HAVE_INTTYPES_H
    626 # include <inttypes.h>
    627 #endif
    628 #ifdef HAVE_STDINT_H
    629 # include <stdint.h>
    630 #endif
    631 #ifdef HAVE_STRINGS_H
    632 # include <strings.h>
    633 #endif
    634 #ifdef HAVE_SYS_TYPES_H
    635 # include <sys/types.h>
    636 #endif
    637 #ifdef HAVE_SYS_STAT_H
    638 # include <sys/stat.h>
    639 #endif
    640 #ifdef HAVE_UNISTD_H
    641 # include <unistd.h>
    642 #endif"
    643 
    644 ac_header_c_list=
    645 ac_func_c_list=
    646 enable_option_checking=no
    647 enable_year2038=no
    648 ac_subst_vars='LTLIBOBJS
    649 subdirs
    650 SYSTEMD_DAEMON_LIBS
    651 SYSTEMD_DAEMON_CFLAGS
    652 SYSTEMD_LIBS
    653 SYSTEMD_CFLAGS
    654 PKG_CONFIG_LIBDIR
    655 PKG_CONFIG_PATH
    656 PKG_CONFIG
    657 DNSTAP_OBJ
    658 DNSTAP_SRC
    659 opt_dnstap_socket_path
    660 ENABLE_DNSTAP
    661 PROTOC_GEN_C
    662 PROTOC_C
    663 PROTOC
    664 xdp
    665 xdp_targets
    666 BPF_CFLAGS
    667 LLC
    668 CLANG
    669 SSL_LIBS
    670 HAVE_SSL
    671 ratelimit_default
    672 host_os
    673 host_vendor
    674 host_cpu
    675 host
    676 build_os
    677 build_vendor
    678 build_cpu
    679 build
    680 CPP
    681 LIBOBJS
    682 INSTALL_DATA
    683 INSTALL_SCRIPT
    684 INSTALL_PROGRAM
    685 LN_S
    686 YFLAGS
    687 LEXLIB
    688 LEX_OUTPUT_ROOT
    689 user
    690 chrootdir
    691 sharedfilesdir
    692 xfrdir
    693 cookiesecretsfile
    694 zonelistfile
    695 xfrdfile
    696 zonesdir
    697 piddir
    698 pidfile
    699 logfile
    700 nsd_conf_file
    701 configdir
    702 OBJEXT
    703 EXEEXT
    704 ac_ct_CC
    705 CPPFLAGS
    706 LDFLAGS
    707 CFLAGS
    708 CC
    709 YACC
    710 LEX
    711 EGREP
    712 GREP
    713 AWK
    714 SED
    715 target_alias
    716 host_alias
    717 build_alias
    718 LIBS
    719 ECHO_T
    720 ECHO_N
    721 ECHO_C
    722 DEFS
    723 mandir
    724 localedir
    725 libdir
    726 psdir
    727 pdfdir
    728 dvidir
    729 htmldir
    730 infodir
    731 docdir
    732 oldincludedir
    733 includedir
    734 runstatedir
    735 localstatedir
    736 sharedstatedir
    737 sysconfdir
    738 datadir
    739 datarootdir
    740 libexecdir
    741 sbindir
    742 bindir
    743 program_transform_name
    744 prefix
    745 exec_prefix
    746 PACKAGE_URL
    747 PACKAGE_BUGREPORT
    748 PACKAGE_STRING
    749 PACKAGE_VERSION
    750 PACKAGE_TARNAME
    751 PACKAGE_NAME
    752 PATH_SEPARATOR
    753 SHELL'
    754 ac_subst_files=''
    755 ac_user_opts='
    756 enable_option_checking
    757 with_configdir
    758 with_nsd_conf_file
    759 with_logfile
    760 with_dbdir
    761 with_pidfile
    762 with_dbfile
    763 with_zonesdir
    764 with_xfrdfile
    765 with_zonelistfile
    766 with_cookiesecretsfile
    767 with_xfrdir
    768 with_sharedfilesdir
    769 with_chroot
    770 with_user
    771 enable_flto
    772 enable_pie
    773 enable_relro_now
    774 with_libevent
    775 enable_largefile
    776 enable_recvmmsg
    777 with_facility
    778 with_tcp_timeout
    779 enable_root_server
    780 enable_ipv6
    781 enable_bind8_stats
    782 enable_zone_stats
    783 enable_checking
    784 enable_log_role
    785 enable_memclean
    786 enable_ratelimit
    787 enable_ratelimit_default_is_off
    788 with_ssl
    789 enable_nsec3
    790 enable_minimal_responses
    791 enable_mmap
    792 enable_radix_tree
    793 enable_packed
    794 enable_xdp
    795 enable_dnstap
    796 with_dnstap_socket_path
    797 with_protobuf_c
    798 with_libfstrm
    799 enable_systemd
    800 enable_tcp_fastopen
    801 enable_westmere
    802 enable_haswell
    803 enable_year2038
    804 '
    805       ac_precious_vars='build_alias
    806 host_alias
    807 target_alias
    808 SED
    809 AWK
    810 GREP
    811 EGREP
    812 LEX
    813 YACC
    814 CC
    815 CFLAGS
    816 LDFLAGS
    817 LIBS
    818 CPPFLAGS
    819 YFLAGS
    820 CPP
    821 CLANG
    822 LLC
    823 BPF_CFLAGS
    824 PKG_CONFIG
    825 PKG_CONFIG_PATH
    826 PKG_CONFIG_LIBDIR
    827 SYSTEMD_CFLAGS
    828 SYSTEMD_LIBS
    829 SYSTEMD_DAEMON_CFLAGS
    830 SYSTEMD_DAEMON_LIBS'
    831 ac_subdirs_all='simdzone'
    832 
    833 # Initialize some variables set by options.
    834 ac_init_help=
    835 ac_init_version=false
    836 ac_unrecognized_opts=
    837 ac_unrecognized_sep=
    838 # The variables have the same names as the options, with
    839 # dashes changed to underlines.
    840 cache_file=/dev/null
    841 exec_prefix=NONE
    842 no_create=
    843 no_recursion=
    844 prefix=NONE
    845 program_prefix=NONE
    846 program_suffix=NONE
    847 program_transform_name=s,x,x,
    848 silent=
    849 site=
    850 srcdir=
    851 verbose=
    852 x_includes=NONE
    853 x_libraries=NONE
    854 
    855 # Installation directory options.
    856 # These are left unexpanded so users can "make install exec_prefix=/foo"
    857 # and all the variables that are supposed to be based on exec_prefix
    858 # by default will actually change.
    859 # Use braces instead of parens because sh, perl, etc. also accept them.
    860 # (The list follows the same order as the GNU Coding Standards.)
    861 bindir='${exec_prefix}/bin'
    862 sbindir='${exec_prefix}/sbin'
    863 libexecdir='${exec_prefix}/libexec'
    864 datarootdir='${prefix}/share'
    865 datadir='${datarootdir}'
    866 sysconfdir='${prefix}/etc'
    867 sharedstatedir='${prefix}/com'
    868 localstatedir='${prefix}/var'
    869 runstatedir='${localstatedir}/run'
    870 includedir='${prefix}/include'
    871 oldincludedir='/usr/include'
    872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    873 infodir='${datarootdir}/info'
    874 htmldir='${docdir}'
    875 dvidir='${docdir}'
    876 pdfdir='${docdir}'
    877 psdir='${docdir}'
    878 libdir='${exec_prefix}/lib'
    879 localedir='${datarootdir}/locale'
    880 mandir='${datarootdir}/man'
    881 
    882 ac_prev=
    883 ac_dashdash=
    884 for ac_option
    885 do
    886   # If the previous option needs an argument, assign it.
    887   if test -n "$ac_prev"; then
    888     eval $ac_prev=\$ac_option
    889     ac_prev=
    890     continue
    891   fi
    892 
    893   case $ac_option in
    894   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    895   *=)   ac_optarg= ;;
    896   *)    ac_optarg=yes ;;
    897   esac
    898 
    899   case $ac_dashdash$ac_option in
    900   --)
    901     ac_dashdash=yes ;;
    902 
    903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    904     ac_prev=bindir ;;
    905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    906     bindir=$ac_optarg ;;
    907 
    908   -build | --build | --buil | --bui | --bu)
    909     ac_prev=build_alias ;;
    910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    911     build_alias=$ac_optarg ;;
    912 
    913   -cache-file | --cache-file | --cache-fil | --cache-fi \
    914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    915     ac_prev=cache_file ;;
    916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    918     cache_file=$ac_optarg ;;
    919 
    920   --config-cache | -C)
    921     cache_file=config.cache ;;
    922 
    923   -datadir | --datadir | --datadi | --datad)
    924     ac_prev=datadir ;;
    925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    926     datadir=$ac_optarg ;;
    927 
    928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    929   | --dataroo | --dataro | --datar)
    930     ac_prev=datarootdir ;;
    931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    933     datarootdir=$ac_optarg ;;
    934 
    935   -disable-* | --disable-*)
    936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    937     # Reject names that are not valid shell variable names.
    938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    939       as_fn_error $? "invalid feature name: '$ac_useropt'"
    940     ac_useropt_orig=$ac_useropt
    941     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    942     case $ac_user_opts in
    943       *"
    944 "enable_$ac_useropt"
    945 "*) ;;
    946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    947 	 ac_unrecognized_sep=', ';;
    948     esac
    949     eval enable_$ac_useropt=no ;;
    950 
    951   -docdir | --docdir | --docdi | --doc | --do)
    952     ac_prev=docdir ;;
    953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    954     docdir=$ac_optarg ;;
    955 
    956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    957     ac_prev=dvidir ;;
    958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    959     dvidir=$ac_optarg ;;
    960 
    961   -enable-* | --enable-*)
    962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    963     # Reject names that are not valid shell variable names.
    964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    965       as_fn_error $? "invalid feature name: '$ac_useropt'"
    966     ac_useropt_orig=$ac_useropt
    967     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    968     case $ac_user_opts in
    969       *"
    970 "enable_$ac_useropt"
    971 "*) ;;
    972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    973 	 ac_unrecognized_sep=', ';;
    974     esac
    975     eval enable_$ac_useropt=\$ac_optarg ;;
    976 
    977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    979   | --exec | --exe | --ex)
    980     ac_prev=exec_prefix ;;
    981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    983   | --exec=* | --exe=* | --ex=*)
    984     exec_prefix=$ac_optarg ;;
    985 
    986   -gas | --gas | --ga | --g)
    987     # Obsolete; use --with-gas.
    988     with_gas=yes ;;
    989 
    990   -help | --help | --hel | --he | -h)
    991     ac_init_help=long ;;
    992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    993     ac_init_help=recursive ;;
    994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    995     ac_init_help=short ;;
    996 
    997   -host | --host | --hos | --ho)
    998     ac_prev=host_alias ;;
    999   -host=* | --host=* | --hos=* | --ho=*)
   1000     host_alias=$ac_optarg ;;
   1001 
   1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1003     ac_prev=htmldir ;;
   1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1005   | --ht=*)
   1006     htmldir=$ac_optarg ;;
   1007 
   1008   -includedir | --includedir | --includedi | --included | --include \
   1009   | --includ | --inclu | --incl | --inc)
   1010     ac_prev=includedir ;;
   1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1013     includedir=$ac_optarg ;;
   1014 
   1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1016     ac_prev=infodir ;;
   1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1018     infodir=$ac_optarg ;;
   1019 
   1020   -libdir | --libdir | --libdi | --libd)
   1021     ac_prev=libdir ;;
   1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1023     libdir=$ac_optarg ;;
   1024 
   1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1026   | --libexe | --libex | --libe)
   1027     ac_prev=libexecdir ;;
   1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1029   | --libexe=* | --libex=* | --libe=*)
   1030     libexecdir=$ac_optarg ;;
   1031 
   1032   -localedir | --localedir | --localedi | --localed | --locale)
   1033     ac_prev=localedir ;;
   1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1035     localedir=$ac_optarg ;;
   1036 
   1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1038   | --localstate | --localstat | --localsta | --localst | --locals)
   1039     ac_prev=localstatedir ;;
   1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1042     localstatedir=$ac_optarg ;;
   1043 
   1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1045     ac_prev=mandir ;;
   1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1047     mandir=$ac_optarg ;;
   1048 
   1049   -nfp | --nfp | --nf)
   1050     # Obsolete; use --without-fp.
   1051     with_fp=no ;;
   1052 
   1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1054   | --no-cr | --no-c | -n)
   1055     no_create=yes ;;
   1056 
   1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1059     no_recursion=yes ;;
   1060 
   1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1063   | --oldin | --oldi | --old | --ol | --o)
   1064     ac_prev=oldincludedir ;;
   1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1068     oldincludedir=$ac_optarg ;;
   1069 
   1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1071     ac_prev=prefix ;;
   1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1073     prefix=$ac_optarg ;;
   1074 
   1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1076   | --program-pre | --program-pr | --program-p)
   1077     ac_prev=program_prefix ;;
   1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1080     program_prefix=$ac_optarg ;;
   1081 
   1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1083   | --program-suf | --program-su | --program-s)
   1084     ac_prev=program_suffix ;;
   1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1087     program_suffix=$ac_optarg ;;
   1088 
   1089   -program-transform-name | --program-transform-name \
   1090   | --program-transform-nam | --program-transform-na \
   1091   | --program-transform-n | --program-transform- \
   1092   | --program-transform | --program-transfor \
   1093   | --program-transfo | --program-transf \
   1094   | --program-trans | --program-tran \
   1095   | --progr-tra | --program-tr | --program-t)
   1096     ac_prev=program_transform_name ;;
   1097   -program-transform-name=* | --program-transform-name=* \
   1098   | --program-transform-nam=* | --program-transform-na=* \
   1099   | --program-transform-n=* | --program-transform-=* \
   1100   | --program-transform=* | --program-transfor=* \
   1101   | --program-transfo=* | --program-transf=* \
   1102   | --program-trans=* | --program-tran=* \
   1103   | --progr-tra=* | --program-tr=* | --program-t=*)
   1104     program_transform_name=$ac_optarg ;;
   1105 
   1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1107     ac_prev=pdfdir ;;
   1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1109     pdfdir=$ac_optarg ;;
   1110 
   1111   -psdir | --psdir | --psdi | --psd | --ps)
   1112     ac_prev=psdir ;;
   1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1114     psdir=$ac_optarg ;;
   1115 
   1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1117   | -silent | --silent | --silen | --sile | --sil)
   1118     silent=yes ;;
   1119 
   1120   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1121   | --runstate | --runstat | --runsta | --runst | --runs \
   1122   | --run | --ru | --r)
   1123     ac_prev=runstatedir ;;
   1124   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1125   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1126   | --run=* | --ru=* | --r=*)
   1127     runstatedir=$ac_optarg ;;
   1128 
   1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1130     ac_prev=sbindir ;;
   1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1132   | --sbi=* | --sb=*)
   1133     sbindir=$ac_optarg ;;
   1134 
   1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1137   | --sharedst | --shareds | --shared | --share | --shar \
   1138   | --sha | --sh)
   1139     ac_prev=sharedstatedir ;;
   1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1143   | --sha=* | --sh=*)
   1144     sharedstatedir=$ac_optarg ;;
   1145 
   1146   -site | --site | --sit)
   1147     ac_prev=site ;;
   1148   -site=* | --site=* | --sit=*)
   1149     site=$ac_optarg ;;
   1150 
   1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1152     ac_prev=srcdir ;;
   1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1154     srcdir=$ac_optarg ;;
   1155 
   1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1157   | --syscon | --sysco | --sysc | --sys | --sy)
   1158     ac_prev=sysconfdir ;;
   1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1161     sysconfdir=$ac_optarg ;;
   1162 
   1163   -target | --target | --targe | --targ | --tar | --ta | --t)
   1164     ac_prev=target_alias ;;
   1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1166     target_alias=$ac_optarg ;;
   1167 
   1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1169     verbose=yes ;;
   1170 
   1171   -version | --version | --versio | --versi | --vers | -V)
   1172     ac_init_version=: ;;
   1173 
   1174   -with-* | --with-*)
   1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1176     # Reject names that are not valid shell variable names.
   1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1178       as_fn_error $? "invalid package name: '$ac_useropt'"
   1179     ac_useropt_orig=$ac_useropt
   1180     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1181     case $ac_user_opts in
   1182       *"
   1183 "with_$ac_useropt"
   1184 "*) ;;
   1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1186 	 ac_unrecognized_sep=', ';;
   1187     esac
   1188     eval with_$ac_useropt=\$ac_optarg ;;
   1189 
   1190   -without-* | --without-*)
   1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1192     # Reject names that are not valid shell variable names.
   1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1194       as_fn_error $? "invalid package name: '$ac_useropt'"
   1195     ac_useropt_orig=$ac_useropt
   1196     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1197     case $ac_user_opts in
   1198       *"
   1199 "with_$ac_useropt"
   1200 "*) ;;
   1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1202 	 ac_unrecognized_sep=', ';;
   1203     esac
   1204     eval with_$ac_useropt=no ;;
   1205 
   1206   --x)
   1207     # Obsolete; use --with-x.
   1208     with_x=yes ;;
   1209 
   1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1211   | --x-incl | --x-inc | --x-in | --x-i)
   1212     ac_prev=x_includes ;;
   1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1215     x_includes=$ac_optarg ;;
   1216 
   1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1219     ac_prev=x_libraries ;;
   1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1222     x_libraries=$ac_optarg ;;
   1223 
   1224   -*) as_fn_error $? "unrecognized option: '$ac_option'
   1225 Try '$0 --help' for more information"
   1226     ;;
   1227 
   1228   *=*)
   1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1230     # Reject names that are not valid shell variable names.
   1231     case $ac_envvar in #(
   1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1233       as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
   1234     esac
   1235     eval $ac_envvar=\$ac_optarg
   1236     export $ac_envvar ;;
   1237 
   1238   *)
   1239     # FIXME: should be removed in autoconf 3.0.
   1240     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1242       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1244     ;;
   1245 
   1246   esac
   1247 done
   1248 
   1249 if test -n "$ac_prev"; then
   1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1251   as_fn_error $? "missing argument to $ac_option"
   1252 fi
   1253 
   1254 if test -n "$ac_unrecognized_opts"; then
   1255   case $enable_option_checking in
   1256     no) ;;
   1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1258     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1259   esac
   1260 fi
   1261 
   1262 # Check all directory arguments for consistency.
   1263 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1264 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1265 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1266 		libdir localedir mandir runstatedir
   1267 do
   1268   eval ac_val=\$$ac_var
   1269   # Remove trailing slashes.
   1270   case $ac_val in
   1271     */ )
   1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1273       eval $ac_var=\$ac_val;;
   1274   esac
   1275   # Be sure to have absolute directory names.
   1276   case $ac_val in
   1277     [\\/$]* | ?:[\\/]* )  continue;;
   1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1279   esac
   1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1281 done
   1282 
   1283 # There might be people who depend on the old broken behavior: '$host'
   1284 # used to hold the argument of --host etc.
   1285 # FIXME: To remove some day.
   1286 build=$build_alias
   1287 host=$host_alias
   1288 target=$target_alias
   1289 
   1290 # FIXME: To remove some day.
   1291 if test "x$host_alias" != x; then
   1292   if test "x$build_alias" = x; then
   1293     cross_compiling=maybe
   1294   elif test "x$build_alias" != "x$host_alias"; then
   1295     cross_compiling=yes
   1296   fi
   1297 fi
   1298 
   1299 ac_tool_prefix=
   1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1301 
   1302 test "$silent" = yes && exec 6>/dev/null
   1303 
   1304 
   1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1306 ac_ls_di=`ls -di .` &&
   1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1308   as_fn_error $? "working directory cannot be determined"
   1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1310   as_fn_error $? "pwd does not report name of working directory"
   1311 
   1312 
   1313 # Find the source files, if location was not specified.
   1314 if test -z "$srcdir"; then
   1315   ac_srcdir_defaulted=yes
   1316   # Try the directory containing this script, then the parent directory.
   1317   ac_confdir=`$as_dirname -- "$as_myself" ||
   1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1319 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1320 	 X"$as_myself" : 'X\(//\)$' \| \
   1321 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1322 printf "%s\n" X"$as_myself" |
   1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1324 	    s//\1/
   1325 	    q
   1326 	  }
   1327 	  /^X\(\/\/\)[^/].*/{
   1328 	    s//\1/
   1329 	    q
   1330 	  }
   1331 	  /^X\(\/\/\)$/{
   1332 	    s//\1/
   1333 	    q
   1334 	  }
   1335 	  /^X\(\/\).*/{
   1336 	    s//\1/
   1337 	    q
   1338 	  }
   1339 	  s/.*/./; q'`
   1340   srcdir=$ac_confdir
   1341   if test ! -r "$srcdir/$ac_unique_file"; then
   1342     srcdir=..
   1343   fi
   1344 else
   1345   ac_srcdir_defaulted=no
   1346 fi
   1347 if test ! -r "$srcdir/$ac_unique_file"; then
   1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1350 fi
   1351 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
   1352 ac_abs_confdir=`(
   1353 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1354 	pwd)`
   1355 # When building in place, set srcdir=.
   1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1357   srcdir=.
   1358 fi
   1359 # Remove unnecessary trailing slashes from srcdir.
   1360 # Double slashes in file names in object file debugging info
   1361 # mess up M-x gdb in Emacs.
   1362 case $srcdir in
   1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1364 esac
   1365 for ac_var in $ac_precious_vars; do
   1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1367   eval ac_env_${ac_var}_value=\$${ac_var}
   1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1370 done
   1371 
   1372 #
   1373 # Report the --help message.
   1374 #
   1375 if test "$ac_init_help" = "long"; then
   1376   # Omit some internal or obsolete options to make the list less imposing.
   1377   # This message is too long to be a string in the A/UX 3.1 sh.
   1378   cat <<_ACEOF
   1379 'configure' configures NSD 4.14.0 to adapt to many kinds of systems.
   1380 
   1381 Usage: $0 [OPTION]... [VAR=VALUE]...
   1382 
   1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1385 
   1386 Defaults for the options are specified in brackets.
   1387 
   1388 Configuration:
   1389   -h, --help              display this help and exit
   1390       --help=short        display options specific to this package
   1391       --help=recursive    display the short help of all the included packages
   1392   -V, --version           display version information and exit
   1393   -q, --quiet, --silent   do not print 'checking ...' messages
   1394       --cache-file=FILE   cache test results in FILE [disabled]
   1395   -C, --config-cache      alias for '--cache-file=config.cache'
   1396   -n, --no-create         do not create output files
   1397       --srcdir=DIR        find the sources in DIR [configure dir or '..']
   1398 
   1399 Installation directories:
   1400   --prefix=PREFIX         install architecture-independent files in PREFIX
   1401                           [$ac_default_prefix]
   1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1403                           [PREFIX]
   1404 
   1405 By default, 'make install' will install all the files in
   1406 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
   1407 an installation prefix other than '$ac_default_prefix' using '--prefix',
   1408 for instance '--prefix=\$HOME'.
   1409 
   1410 For better control, use the options below.
   1411 
   1412 Fine tuning of the installation directories:
   1413   --bindir=DIR            user executables [EPREFIX/bin]
   1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1419   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1420   --libdir=DIR            object code libraries [EPREFIX/lib]
   1421   --includedir=DIR        C header files [PREFIX/include]
   1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1428   --docdir=DIR            documentation root [DATAROOTDIR/doc/nsd]
   1429   --htmldir=DIR           html documentation [DOCDIR]
   1430   --dvidir=DIR            dvi documentation [DOCDIR]
   1431   --pdfdir=DIR            pdf documentation [DOCDIR]
   1432   --psdir=DIR             ps documentation [DOCDIR]
   1433 _ACEOF
   1434 
   1435   cat <<\_ACEOF
   1436 
   1437 System types:
   1438   --build=BUILD     configure for building on BUILD [guessed]
   1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1440 _ACEOF
   1441 fi
   1442 
   1443 if test -n "$ac_init_help"; then
   1444   case $ac_init_help in
   1445      short | recursive ) echo "Configuration of NSD 4.14.0:";;
   1446    esac
   1447   cat <<\_ACEOF
   1448 
   1449 Optional Features:
   1450   --disable-option-checking  ignore unrecognized --enable/--with options
   1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1453   --disable-flto          Disable link-time optimization (gcc specific option)
   1454   --enable-pie            Enable Position-Independent Executable (eg. to fully
   1455                           benefit from ASLR, small performance penalty)
   1456   --enable-relro-now      Enable full relocation binding at load-time (RELRO
   1457                           NOW, to protect GOT and .dtor areas)
   1458   --disable-largefile     omit support for large files
   1459   --enable-recvmmsg       Enable recvmmsg and sendmmsg compilation, faster but
   1460                           some kernel versions may have implementation
   1461                           problems for IPv6
   1462   --enable-root-server    Configure NSD as a root server (obsolete)
   1463   --disable-ipv6          Disables IPv6 support
   1464   --disable-bind8-stats   Disable BIND8 like NSTATS & XSTATS and statistics in
   1465                           nsd-control
   1466   --disable-zone-stats    Disable per-zone statistics gathering (if enabled,
   1467                           it needs bind8-stats)
   1468   --enable-checking       Enable internal runtime checks
   1469   --enable-log-role       Shows the role of processes in the logfile (enable
   1470                           this only for debugging purposes)
   1471   --enable-memclean       Cleanup memory (at exit) for eg. valgrind, memcheck
   1472   --disable-ratelimit     Disable rate limiting
   1473   --disable-ratelimit-default-is-off
   1474                           Disable this to set default of ratelimit to on (this
   1475                           controls the default, ratelimits can be enabled and
   1476                           disabled in nsd.conf)
   1477   --disable-nsec3         Disable NSEC3 support
   1478   --disable-minimal-responses
   1479                           Disable response minimization. More truncation.
   1480   --enable-mmap           Use mmap instead of malloc. Experimental.
   1481   --disable-radix-tree    You can disable the radix tree and use the red-black
   1482                           tree for the main lookups, the red-black tree uses
   1483                           less memory, but uses some more CPU.
   1484   --enable-packed         Enable packed structure alignment, uses less memory,
   1485                           but unaligned reads.
   1486   --enable-xdp            Enable XDP support.
   1487   --disable-dnstap        Disable dnstap support (requires fstrm, protobuf-c)
   1488   --enable-systemd        compile with systemd support
   1489   --enable-tcp-fastopen   Enable TCP Fast Open
   1490   --disable-westmere      Disable Westmere (SSE4.2) parser kernel
   1491   --disable-haswell       Disable Haswell (AVX2) parser kernel
   1492   --enable-year2038       support timestamps after 2038
   1493 
   1494 Optional Packages:
   1495   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1496   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1497   --with-configdir=dir    NSD configuration directory
   1498   --with-nsd_conf_file=path
   1499                           Pathname to the NSD configuration file
   1500   --with-logfile=path     Pathname to the default log file
   1501   --with-dbdir=dir        Base directory for the xfrd zone timer state file,
   1502                           the zone list file and the cookie secrets file
   1503   --with-pidfile=path     Pathname to the NSD pidfile
   1504   --with-dbfile=path      Pathname to the NSD database (obsolete)
   1505   --with-zonesdir=dir     NSD default location for zone files
   1506   --with-xfrdfile=path    Pathname to the NSD xfrd zone timer state file
   1507   --with-zonelistfile=path
   1508                           Pathname to the NSD zone list file
   1509   --with-cookiesecretsfile=path
   1510                           Pathname to the NSD cookie secrets file
   1511   --with-xfrdir=path      Pathname to where the NSD transfer dir is created
   1512   --with-sharedfilesdir=dir
   1513                           NSD shared files directory
   1514   --with-chroot=dir       NSD default chroot directory
   1515   --with-user=username    User name or ID to answer the queries with
   1516   --with-libevent=pathname
   1517                           use libevent (will check /usr/local /opt/local
   1518                           /usr/lib  /usr/sfw /usr
   1519                           /usr/local/opt/libevent or you can specify an
   1520                           explicit path), useful when the zone count is high.
   1521   --with-facility=name    Syslog default facility (LOG_DAEMON)
   1522   --with-tcp-timeout=number
   1523                           Limit the default tcp timeout
   1524   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
   1525                           /usr/ssl  /usr/sfw /usr/local /usr
   1526                           /usr/local/opt/openssl)
   1527   --with-dnstap-socket-path=pathname
   1528                           set default dnstap socket path
   1529   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1530   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1531 
   1532 Some influential environment variables:
   1533   SED         location of the sed program
   1534   AWK         location of the awk program
   1535   GREP        location of the grep program
   1536   EGREP       location of the egrep program
   1537   LEX         location of the lex program with GNU extensions (flex)
   1538   YACC        location of the yacc program with GNU extensions (bison)
   1539   CC          C compiler command
   1540   CFLAGS      C compiler flags
   1541   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1542               nonstandard directory <lib dir>
   1543   LIBS        libraries to pass to the linker, e.g. -l<library>
   1544   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1545               you have headers in a nonstandard directory <include dir>
   1546   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1547               This script will default YFLAGS to the empty string to avoid a
   1548               default value of '-d' given by some make applications.
   1549   CPP         C preprocessor
   1550   CLANG       location of clang compiler (only needed for xdp)
   1551   LLC         location of LLVM static compiler (only needed for xdp)
   1552   BPF_CFLAGS  The list of arguments passed to the BPF compiler
   1553   PKG_CONFIG  path to pkg-config utility
   1554   PKG_CONFIG_PATH
   1555               directories to add to pkg-config's search path
   1556   PKG_CONFIG_LIBDIR
   1557               path overriding pkg-config's built-in search path
   1558   SYSTEMD_CFLAGS
   1559               C compiler flags for SYSTEMD, overriding pkg-config
   1560   SYSTEMD_LIBS
   1561               linker flags for SYSTEMD, overriding pkg-config
   1562   SYSTEMD_DAEMON_CFLAGS
   1563               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
   1564   SYSTEMD_DAEMON_LIBS
   1565               linker flags for SYSTEMD_DAEMON, overriding pkg-config
   1566 
   1567 Use these variables to override the choices made by 'configure' or to help
   1568 it to find libraries and programs with nonstandard names/locations.
   1569 
   1570 Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl>.
   1571 _ACEOF
   1572 ac_status=$?
   1573 fi
   1574 
   1575 if test "$ac_init_help" = "recursive"; then
   1576   # If there are subdirs, report their specific --help.
   1577   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1578     test -d "$ac_dir" ||
   1579       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1580       continue
   1581     ac_builddir=.
   1582 
   1583 case "$ac_dir" in
   1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1585 *)
   1586   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1587   # A ".." for each directory in $ac_dir_suffix.
   1588   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1589   case $ac_top_builddir_sub in
   1590   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1591   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1592   esac ;;
   1593 esac
   1594 ac_abs_top_builddir=$ac_pwd
   1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1596 # for backward compatibility:
   1597 ac_top_builddir=$ac_top_build_prefix
   1598 
   1599 case $srcdir in
   1600   .)  # We are building in place.
   1601     ac_srcdir=.
   1602     ac_top_srcdir=$ac_top_builddir_sub
   1603     ac_abs_top_srcdir=$ac_pwd ;;
   1604   [\\/]* | ?:[\\/]* )  # Absolute name.
   1605     ac_srcdir=$srcdir$ac_dir_suffix;
   1606     ac_top_srcdir=$srcdir
   1607     ac_abs_top_srcdir=$srcdir ;;
   1608   *) # Relative name.
   1609     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1610     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1611     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1612 esac
   1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1614 
   1615     cd "$ac_dir" || { ac_status=$?; continue; }
   1616     # Check for configure.gnu first; this name is used for a wrapper for
   1617     # Metaconfig's "Configure" on case-insensitive file systems.
   1618     if test -f "$ac_srcdir/configure.gnu"; then
   1619       echo &&
   1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1621     elif test -f "$ac_srcdir/configure"; then
   1622       echo &&
   1623       $SHELL "$ac_srcdir/configure" --help=recursive
   1624     else
   1625       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1626     fi || ac_status=$?
   1627     cd "$ac_pwd" || { ac_status=$?; break; }
   1628   done
   1629 fi
   1630 
   1631 test -n "$ac_init_help" && exit $ac_status
   1632 if $ac_init_version; then
   1633   cat <<\_ACEOF
   1634 NSD configure 4.14.0
   1635 generated by GNU Autoconf 2.72
   1636 
   1637 Copyright (C) 2023 Free Software Foundation, Inc.
   1638 This configure script is free software; the Free Software Foundation
   1639 gives unlimited permission to copy, distribute and modify it.
   1640 _ACEOF
   1641   exit
   1642 fi
   1643 
   1644 ## ------------------------ ##
   1645 ## Autoconf initialization. ##
   1646 ## ------------------------ ##
   1647 
   1648 # ac_fn_c_try_compile LINENO
   1649 # --------------------------
   1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1651 ac_fn_c_try_compile ()
   1652 {
   1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1654   rm -f conftest.$ac_objext conftest.beam
   1655   if { { ac_try="$ac_compile"
   1656 case "(($ac_try" in
   1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1658   *) ac_try_echo=$ac_try;;
   1659 esac
   1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1661 printf "%s\n" "$ac_try_echo"; } >&5
   1662   (eval "$ac_compile") 2>conftest.err
   1663   ac_status=$?
   1664   if test -s conftest.err; then
   1665     grep -v '^ *+' conftest.err >conftest.er1
   1666     cat conftest.er1 >&5
   1667     mv -f conftest.er1 conftest.err
   1668   fi
   1669   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1670   test $ac_status = 0; } && {
   1671 	 test -z "$ac_c_werror_flag" ||
   1672 	 test ! -s conftest.err
   1673        } && test -s conftest.$ac_objext
   1674 then :
   1675   ac_retval=0
   1676 else case e in #(
   1677   e) printf "%s\n" "$as_me: failed program was:" >&5
   1678 sed 's/^/| /' conftest.$ac_ext >&5
   1679 
   1680 	ac_retval=1 ;;
   1681 esac
   1682 fi
   1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1684   as_fn_set_status $ac_retval
   1685 
   1686 } # ac_fn_c_try_compile
   1687 
   1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1689 # -------------------------------------------------------
   1690 # Tests whether HEADER exists and can be compiled using the include files in
   1691 # INCLUDES, setting the cache variable VAR accordingly.
   1692 ac_fn_c_check_header_compile ()
   1693 {
   1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1696 printf %s "checking for $2... " >&6; }
   1697 if eval test \${$3+y}
   1698 then :
   1699   printf %s "(cached) " >&6
   1700 else case e in #(
   1701   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1702 /* end confdefs.h.  */
   1703 $4
   1704 #include <$2>
   1705 _ACEOF
   1706 if ac_fn_c_try_compile "$LINENO"
   1707 then :
   1708   eval "$3=yes"
   1709 else case e in #(
   1710   e) eval "$3=no" ;;
   1711 esac
   1712 fi
   1713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1714 esac
   1715 fi
   1716 eval ac_res=\$$3
   1717 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1718 printf "%s\n" "$ac_res" >&6; }
   1719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1720 
   1721 } # ac_fn_c_check_header_compile
   1722 
   1723 # ac_fn_c_try_link LINENO
   1724 # -----------------------
   1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1726 ac_fn_c_try_link ()
   1727 {
   1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1729   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1730   if { { ac_try="$ac_link"
   1731 case "(($ac_try" in
   1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1733   *) ac_try_echo=$ac_try;;
   1734 esac
   1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1736 printf "%s\n" "$ac_try_echo"; } >&5
   1737   (eval "$ac_link") 2>conftest.err
   1738   ac_status=$?
   1739   if test -s conftest.err; then
   1740     grep -v '^ *+' conftest.err >conftest.er1
   1741     cat conftest.er1 >&5
   1742     mv -f conftest.er1 conftest.err
   1743   fi
   1744   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1745   test $ac_status = 0; } && {
   1746 	 test -z "$ac_c_werror_flag" ||
   1747 	 test ! -s conftest.err
   1748        } && test -s conftest$ac_exeext && {
   1749 	 test "$cross_compiling" = yes ||
   1750 	 test -x conftest$ac_exeext
   1751        }
   1752 then :
   1753   ac_retval=0
   1754 else case e in #(
   1755   e) printf "%s\n" "$as_me: failed program was:" >&5
   1756 sed 's/^/| /' conftest.$ac_ext >&5
   1757 
   1758 	ac_retval=1 ;;
   1759 esac
   1760 fi
   1761   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1762   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1763   # interfere with the next link command; also delete a directory that is
   1764   # left behind by Apple's compiler.  We do this before executing the actions.
   1765   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1767   as_fn_set_status $ac_retval
   1768 
   1769 } # ac_fn_c_try_link
   1770 
   1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1772 # -------------------------------------------
   1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1774 # variable VAR accordingly.
   1775 ac_fn_c_check_type ()
   1776 {
   1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1779 printf %s "checking for $2... " >&6; }
   1780 if eval test \${$3+y}
   1781 then :
   1782   printf %s "(cached) " >&6
   1783 else case e in #(
   1784   e) eval "$3=no"
   1785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1786 /* end confdefs.h.  */
   1787 $4
   1788 int
   1789 main (void)
   1790 {
   1791 if (sizeof ($2))
   1792 	 return 0;
   1793   ;
   1794   return 0;
   1795 }
   1796 _ACEOF
   1797 if ac_fn_c_try_compile "$LINENO"
   1798 then :
   1799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1800 /* end confdefs.h.  */
   1801 $4
   1802 int
   1803 main (void)
   1804 {
   1805 if (sizeof (($2)))
   1806 	    return 0;
   1807   ;
   1808   return 0;
   1809 }
   1810 _ACEOF
   1811 if ac_fn_c_try_compile "$LINENO"
   1812 then :
   1813 
   1814 else case e in #(
   1815   e) eval "$3=yes" ;;
   1816 esac
   1817 fi
   1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1819 fi
   1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1821 esac
   1822 fi
   1823 eval ac_res=\$$3
   1824 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1825 printf "%s\n" "$ac_res" >&6; }
   1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1827 
   1828 } # ac_fn_c_check_type
   1829 
   1830 # ac_fn_c_try_run LINENO
   1831 # ----------------------
   1832 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   1833 # executables *can* be run.
   1834 ac_fn_c_try_run ()
   1835 {
   1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1837   if { { ac_try="$ac_link"
   1838 case "(($ac_try" in
   1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1840   *) ac_try_echo=$ac_try;;
   1841 esac
   1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1843 printf "%s\n" "$ac_try_echo"; } >&5
   1844   (eval "$ac_link") 2>&5
   1845   ac_status=$?
   1846   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1847   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1848   { { case "(($ac_try" in
   1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1850   *) ac_try_echo=$ac_try;;
   1851 esac
   1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1853 printf "%s\n" "$ac_try_echo"; } >&5
   1854   (eval "$ac_try") 2>&5
   1855   ac_status=$?
   1856   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1857   test $ac_status = 0; }; }
   1858 then :
   1859   ac_retval=0
   1860 else case e in #(
   1861   e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   1862        printf "%s\n" "$as_me: failed program was:" >&5
   1863 sed 's/^/| /' conftest.$ac_ext >&5
   1864 
   1865        ac_retval=$ac_status ;;
   1866 esac
   1867 fi
   1868   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1870   as_fn_set_status $ac_retval
   1871 
   1872 } # ac_fn_c_try_run
   1873 
   1874 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1875 # ------------------------------------------------------------------
   1876 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1877 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1878 ac_fn_check_decl ()
   1879 {
   1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1881   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1883 printf %s "checking whether $as_decl_name is declared... " >&6; }
   1884 if eval test \${$3+y}
   1885 then :
   1886   printf %s "(cached) " >&6
   1887 else case e in #(
   1888   e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1889   eval ac_save_FLAGS=\$$6
   1890   as_fn_append $6 " $5"
   1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1892 /* end confdefs.h.  */
   1893 $4
   1894 int
   1895 main (void)
   1896 {
   1897 #ifndef $as_decl_name
   1898 #ifdef __cplusplus
   1899   (void) $as_decl_use;
   1900 #else
   1901   (void) $as_decl_name;
   1902 #endif
   1903 #endif
   1904 
   1905   ;
   1906   return 0;
   1907 }
   1908 _ACEOF
   1909 if ac_fn_c_try_compile "$LINENO"
   1910 then :
   1911   eval "$3=yes"
   1912 else case e in #(
   1913   e) eval "$3=no" ;;
   1914 esac
   1915 fi
   1916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1917   eval $6=\$ac_save_FLAGS
   1918  ;;
   1919 esac
   1920 fi
   1921 eval ac_res=\$$3
   1922 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1923 printf "%s\n" "$ac_res" >&6; }
   1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1925 
   1926 } # ac_fn_check_decl
   1927 
   1928 # ac_fn_c_check_func LINENO FUNC VAR
   1929 # ----------------------------------
   1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1931 ac_fn_c_check_func ()
   1932 {
   1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1935 printf %s "checking for $2... " >&6; }
   1936 if eval test \${$3+y}
   1937 then :
   1938   printf %s "(cached) " >&6
   1939 else case e in #(
   1940   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1941 /* end confdefs.h.  */
   1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1944 #define $2 innocuous_$2
   1945 
   1946 /* System header to define __stub macros and hopefully few prototypes,
   1947    which can conflict with char $2 (void); below.  */
   1948 
   1949 #include <limits.h>
   1950 #undef $2
   1951 
   1952 /* Override any GCC internal prototype to avoid an error.
   1953    Use char because int might match the return type of a GCC
   1954    builtin and then its argument prototype would still apply.  */
   1955 #ifdef __cplusplus
   1956 extern "C"
   1957 #endif
   1958 char $2 (void);
   1959 /* The GNU C library defines this for functions which it implements
   1960     to always fail with ENOSYS.  Some functions are actually named
   1961     something starting with __ and the normal name is an alias.  */
   1962 #if defined __stub_$2 || defined __stub___$2
   1963 choke me
   1964 #endif
   1965 
   1966 int
   1967 main (void)
   1968 {
   1969 return $2 ();
   1970   ;
   1971   return 0;
   1972 }
   1973 _ACEOF
   1974 if ac_fn_c_try_link "$LINENO"
   1975 then :
   1976   eval "$3=yes"
   1977 else case e in #(
   1978   e) eval "$3=no" ;;
   1979 esac
   1980 fi
   1981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1982     conftest$ac_exeext conftest.$ac_ext ;;
   1983 esac
   1984 fi
   1985 eval ac_res=\$$3
   1986 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1987 printf "%s\n" "$ac_res" >&6; }
   1988   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1989 
   1990 } # ac_fn_c_check_func
   1991 
   1992 # ac_fn_c_try_cpp LINENO
   1993 # ----------------------
   1994 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1995 ac_fn_c_try_cpp ()
   1996 {
   1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1998   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1999 case "(($ac_try" in
   2000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2001   *) ac_try_echo=$ac_try;;
   2002 esac
   2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2004 printf "%s\n" "$ac_try_echo"; } >&5
   2005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2006   ac_status=$?
   2007   if test -s conftest.err; then
   2008     grep -v '^ *+' conftest.err >conftest.er1
   2009     cat conftest.er1 >&5
   2010     mv -f conftest.er1 conftest.err
   2011   fi
   2012   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2013   test $ac_status = 0; } > conftest.i && {
   2014 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2015 	 test ! -s conftest.err
   2016        }
   2017 then :
   2018   ac_retval=0
   2019 else case e in #(
   2020   e) printf "%s\n" "$as_me: failed program was:" >&5
   2021 sed 's/^/| /' conftest.$ac_ext >&5
   2022 
   2023     ac_retval=1 ;;
   2024 esac
   2025 fi
   2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2027   as_fn_set_status $ac_retval
   2028 
   2029 } # ac_fn_c_try_cpp
   2030 
   2031 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2032 # ----------------------------------------------------
   2033 # Tries to find if the field MEMBER exists in type AGGR, after including
   2034 # INCLUDES, setting cache variable VAR accordingly.
   2035 ac_fn_c_check_member ()
   2036 {
   2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2039 printf %s "checking for $2.$3... " >&6; }
   2040 if eval test \${$4+y}
   2041 then :
   2042   printf %s "(cached) " >&6
   2043 else case e in #(
   2044   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2045 /* end confdefs.h.  */
   2046 $5
   2047 int
   2048 main (void)
   2049 {
   2050 static $2 ac_aggr;
   2051 if (ac_aggr.$3)
   2052 return 0;
   2053   ;
   2054   return 0;
   2055 }
   2056 _ACEOF
   2057 if ac_fn_c_try_compile "$LINENO"
   2058 then :
   2059   eval "$4=yes"
   2060 else case e in #(
   2061   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2062 /* end confdefs.h.  */
   2063 $5
   2064 int
   2065 main (void)
   2066 {
   2067 static $2 ac_aggr;
   2068 if (sizeof ac_aggr.$3)
   2069 return 0;
   2070   ;
   2071   return 0;
   2072 }
   2073 _ACEOF
   2074 if ac_fn_c_try_compile "$LINENO"
   2075 then :
   2076   eval "$4=yes"
   2077 else case e in #(
   2078   e) eval "$4=no" ;;
   2079 esac
   2080 fi
   2081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   2082 esac
   2083 fi
   2084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   2085 esac
   2086 fi
   2087 eval ac_res=\$$4
   2088 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2089 printf "%s\n" "$ac_res" >&6; }
   2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2091 
   2092 } # ac_fn_c_check_member
   2093 
   2094 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2095 # --------------------------------------------
   2096 # Tries to find the compile-time value of EXPR in a program that includes
   2097 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2098 # computed
   2099 ac_fn_c_compute_int ()
   2100 {
   2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2102   if test "$cross_compiling" = yes; then
   2103     # Depending upon the size, compute the lo and hi bounds.
   2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2105 /* end confdefs.h.  */
   2106 $4
   2107 int
   2108 main (void)
   2109 {
   2110 static int test_array [1 - 2 * !(($2) >= 0)];
   2111 test_array [0] = 0;
   2112 return test_array [0];
   2113 
   2114   ;
   2115   return 0;
   2116 }
   2117 _ACEOF
   2118 if ac_fn_c_try_compile "$LINENO"
   2119 then :
   2120   ac_lo=0 ac_mid=0
   2121   while :; do
   2122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2123 /* end confdefs.h.  */
   2124 $4
   2125 int
   2126 main (void)
   2127 {
   2128 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2129 test_array [0] = 0;
   2130 return test_array [0];
   2131 
   2132   ;
   2133   return 0;
   2134 }
   2135 _ACEOF
   2136 if ac_fn_c_try_compile "$LINENO"
   2137 then :
   2138   ac_hi=$ac_mid; break
   2139 else case e in #(
   2140   e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2141 			if test $ac_lo -le $ac_mid; then
   2142 			  ac_lo= ac_hi=
   2143 			  break
   2144 			fi
   2145 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
   2146 esac
   2147 fi
   2148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2149   done
   2150 else case e in #(
   2151   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2152 /* end confdefs.h.  */
   2153 $4
   2154 int
   2155 main (void)
   2156 {
   2157 static int test_array [1 - 2 * !(($2) < 0)];
   2158 test_array [0] = 0;
   2159 return test_array [0];
   2160 
   2161   ;
   2162   return 0;
   2163 }
   2164 _ACEOF
   2165 if ac_fn_c_try_compile "$LINENO"
   2166 then :
   2167   ac_hi=-1 ac_mid=-1
   2168   while :; do
   2169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2170 /* end confdefs.h.  */
   2171 $4
   2172 int
   2173 main (void)
   2174 {
   2175 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2176 test_array [0] = 0;
   2177 return test_array [0];
   2178 
   2179   ;
   2180   return 0;
   2181 }
   2182 _ACEOF
   2183 if ac_fn_c_try_compile "$LINENO"
   2184 then :
   2185   ac_lo=$ac_mid; break
   2186 else case e in #(
   2187   e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2188 			if test $ac_mid -le $ac_hi; then
   2189 			  ac_lo= ac_hi=
   2190 			  break
   2191 			fi
   2192 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
   2193 esac
   2194 fi
   2195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2196   done
   2197 else case e in #(
   2198   e) ac_lo= ac_hi= ;;
   2199 esac
   2200 fi
   2201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   2202 esac
   2203 fi
   2204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2205 # Binary search between lo and hi bounds.
   2206 while test "x$ac_lo" != "x$ac_hi"; do
   2207   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2209 /* end confdefs.h.  */
   2210 $4
   2211 int
   2212 main (void)
   2213 {
   2214 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2215 test_array [0] = 0;
   2216 return test_array [0];
   2217 
   2218   ;
   2219   return 0;
   2220 }
   2221 _ACEOF
   2222 if ac_fn_c_try_compile "$LINENO"
   2223 then :
   2224   ac_hi=$ac_mid
   2225 else case e in #(
   2226   e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
   2227 esac
   2228 fi
   2229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2230 done
   2231 case $ac_lo in #((
   2232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2233 '') ac_retval=1 ;;
   2234 esac
   2235   else
   2236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2237 /* end confdefs.h.  */
   2238 $4
   2239 static long int longval (void) { return $2; }
   2240 static unsigned long int ulongval (void) { return $2; }
   2241 #include <stdio.h>
   2242 #include <stdlib.h>
   2243 int
   2244 main (void)
   2245 {
   2246 
   2247   FILE *f = fopen ("conftest.val", "w");
   2248   if (! f)
   2249     return 1;
   2250   if (($2) < 0)
   2251     {
   2252       long int i = longval ();
   2253       if (i != ($2))
   2254 	return 1;
   2255       fprintf (f, "%ld", i);
   2256     }
   2257   else
   2258     {
   2259       unsigned long int i = ulongval ();
   2260       if (i != ($2))
   2261 	return 1;
   2262       fprintf (f, "%lu", i);
   2263     }
   2264   /* Do not output a trailing newline, as this causes \r\n confusion
   2265      on some platforms.  */
   2266   return ferror (f) || fclose (f) != 0;
   2267 
   2268   ;
   2269   return 0;
   2270 }
   2271 _ACEOF
   2272 if ac_fn_c_try_run "$LINENO"
   2273 then :
   2274   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2275 else case e in #(
   2276   e) ac_retval=1 ;;
   2277 esac
   2278 fi
   2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2280   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2281 rm -f conftest.val
   2282 
   2283   fi
   2284   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2285   as_fn_set_status $ac_retval
   2286 
   2287 } # ac_fn_c_compute_int
   2288 ac_configure_args_raw=
   2289 for ac_arg
   2290 do
   2291   case $ac_arg in
   2292   *\'*)
   2293     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2294   esac
   2295   as_fn_append ac_configure_args_raw " '$ac_arg'"
   2296 done
   2297 
   2298 case $ac_configure_args_raw in
   2299   *$as_nl*)
   2300     ac_safe_unquote= ;;
   2301   *)
   2302     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   2303     ac_unsafe_a="$ac_unsafe_z#~"
   2304     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   2305     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   2306 esac
   2307 
   2308 cat >config.log <<_ACEOF
   2309 This file contains any messages produced by compilers while
   2310 running configure, to aid debugging if configure makes a mistake.
   2311 
   2312 It was created by NSD $as_me 4.14.0, which was
   2313 generated by GNU Autoconf 2.72.  Invocation command line was
   2314 
   2315   $ $0$ac_configure_args_raw
   2316 
   2317 _ACEOF
   2318 exec 5>>config.log
   2319 {
   2320 cat <<_ASUNAME
   2321 ## --------- ##
   2322 ## Platform. ##
   2323 ## --------- ##
   2324 
   2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2330 
   2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2332 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2333 
   2334 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2335 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2337 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2338 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2339 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2340 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2341 
   2342 _ASUNAME
   2343 
   2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2345 for as_dir in $PATH
   2346 do
   2347   IFS=$as_save_IFS
   2348   case $as_dir in #(((
   2349     '') as_dir=./ ;;
   2350     */) ;;
   2351     *) as_dir=$as_dir/ ;;
   2352   esac
   2353     printf "%s\n" "PATH: $as_dir"
   2354   done
   2355 IFS=$as_save_IFS
   2356 
   2357 } >&5
   2358 
   2359 cat >&5 <<_ACEOF
   2360 
   2361 
   2362 ## ----------- ##
   2363 ## Core tests. ##
   2364 ## ----------- ##
   2365 
   2366 _ACEOF
   2367 
   2368 
   2369 # Keep a trace of the command line.
   2370 # Strip out --no-create and --no-recursion so they do not pile up.
   2371 # Strip out --silent because we don't want to record it for future runs.
   2372 # Also quote any args containing shell meta-characters.
   2373 # Make two passes to allow for proper duplicate-argument suppression.
   2374 ac_configure_args=
   2375 ac_configure_args0=
   2376 ac_configure_args1=
   2377 ac_must_keep_next=false
   2378 for ac_pass in 1 2
   2379 do
   2380   for ac_arg
   2381   do
   2382     case $ac_arg in
   2383     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2384     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2385     | -silent | --silent | --silen | --sile | --sil)
   2386       continue ;;
   2387     *\'*)
   2388       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2389     esac
   2390     case $ac_pass in
   2391     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2392     2)
   2393       as_fn_append ac_configure_args1 " '$ac_arg'"
   2394       if test $ac_must_keep_next = true; then
   2395 	ac_must_keep_next=false # Got value, back to normal.
   2396       else
   2397 	case $ac_arg in
   2398 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2399 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2400 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2401 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2402 	    case "$ac_configure_args0 " in
   2403 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2404 	    esac
   2405 	    ;;
   2406 	  -* ) ac_must_keep_next=true ;;
   2407 	esac
   2408       fi
   2409       as_fn_append ac_configure_args " '$ac_arg'"
   2410       ;;
   2411     esac
   2412   done
   2413 done
   2414 { ac_configure_args0=; unset ac_configure_args0;}
   2415 { ac_configure_args1=; unset ac_configure_args1;}
   2416 
   2417 # When interrupted or exit'd, cleanup temporary files, and complete
   2418 # config.log.  We remove comments because anyway the quotes in there
   2419 # would cause problems or look ugly.
   2420 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2421 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2422 trap 'exit_status=$?
   2423   # Sanitize IFS.
   2424   IFS=" ""	$as_nl"
   2425   # Save into config.log some information that might help in debugging.
   2426   {
   2427     echo
   2428 
   2429     printf "%s\n" "## ---------------- ##
   2430 ## Cache variables. ##
   2431 ## ---------------- ##"
   2432     echo
   2433     # The following way of writing the cache mishandles newlines in values,
   2434 (
   2435   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2436     eval ac_val=\$$ac_var
   2437     case $ac_val in #(
   2438     *${as_nl}*)
   2439       case $ac_var in #(
   2440       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2441 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2442       esac
   2443       case $ac_var in #(
   2444       _ | IFS | as_nl) ;; #(
   2445       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2446       *) { eval $ac_var=; unset $ac_var;} ;;
   2447       esac ;;
   2448     esac
   2449   done
   2450   (set) 2>&1 |
   2451     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2452     *${as_nl}ac_space=\ *)
   2453       sed -n \
   2454 	"s/'\''/'\''\\\\'\'''\''/g;
   2455 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2456       ;; #(
   2457     *)
   2458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2459       ;;
   2460     esac |
   2461     sort
   2462 )
   2463     echo
   2464 
   2465     printf "%s\n" "## ----------------- ##
   2466 ## Output variables. ##
   2467 ## ----------------- ##"
   2468     echo
   2469     for ac_var in $ac_subst_vars
   2470     do
   2471       eval ac_val=\$$ac_var
   2472       case $ac_val in
   2473       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2474       esac
   2475       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2476     done | sort
   2477     echo
   2478 
   2479     if test -n "$ac_subst_files"; then
   2480       printf "%s\n" "## ------------------- ##
   2481 ## File substitutions. ##
   2482 ## ------------------- ##"
   2483       echo
   2484       for ac_var in $ac_subst_files
   2485       do
   2486 	eval ac_val=\$$ac_var
   2487 	case $ac_val in
   2488 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2489 	esac
   2490 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2491       done | sort
   2492       echo
   2493     fi
   2494 
   2495     if test -s confdefs.h; then
   2496       printf "%s\n" "## ----------- ##
   2497 ## confdefs.h. ##
   2498 ## ----------- ##"
   2499       echo
   2500       cat confdefs.h
   2501       echo
   2502     fi
   2503     test "$ac_signal" != 0 &&
   2504       printf "%s\n" "$as_me: caught signal $ac_signal"
   2505     printf "%s\n" "$as_me: exit $exit_status"
   2506   } >&5
   2507   rm -f core *.core core.conftest.* &&
   2508     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2509     exit $exit_status
   2510 ' 0
   2511 for ac_signal in 1 2 13 15; do
   2512   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2513 done
   2514 ac_signal=0
   2515 
   2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2517 rm -f -r conftest* confdefs.h
   2518 
   2519 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2520 
   2521 # Predefined preprocessor variables.
   2522 
   2523 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2524 
   2525 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2526 
   2527 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2528 
   2529 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2530 
   2531 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2532 
   2533 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2534 
   2535 
   2536 # Let the site file select an alternate cache file if it wants to.
   2537 # Prefer an explicitly selected file to automatically selected ones.
   2538 if test -n "$CONFIG_SITE"; then
   2539   ac_site_files="$CONFIG_SITE"
   2540 elif test "x$prefix" != xNONE; then
   2541   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2542 else
   2543   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2544 fi
   2545 
   2546 for ac_site_file in $ac_site_files
   2547 do
   2548   case $ac_site_file in #(
   2549   */*) :
   2550      ;; #(
   2551   *) :
   2552     ac_site_file=./$ac_site_file ;;
   2553 esac
   2554   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2555     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2556 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2557     sed 's/^/| /' "$ac_site_file" >&5
   2558     . "$ac_site_file" \
   2559       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   2560 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   2561 as_fn_error $? "failed to load site script $ac_site_file
   2562 See 'config.log' for more details" "$LINENO" 5; }
   2563   fi
   2564 done
   2565 
   2566 if test -r "$cache_file"; then
   2567   # Some versions of bash will fail to source /dev/null (special files
   2568   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2569   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2570     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2571 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2572     case $cache_file in
   2573       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2574       *)                      . "./$cache_file";;
   2575     esac
   2576   fi
   2577 else
   2578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2579 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2580   >$cache_file
   2581 fi
   2582 
   2583 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2584 # Test code for whether the C compiler supports C89 (global declarations)
   2585 ac_c_conftest_c89_globals='
   2586 /* Does the compiler advertise C89 conformance?
   2587    Do not test the value of __STDC__, because some compilers set it to 0
   2588    while being otherwise adequately conformant. */
   2589 #if !defined __STDC__
   2590 # error "Compiler does not advertise C89 conformance"
   2591 #endif
   2592 
   2593 #include <stddef.h>
   2594 #include <stdarg.h>
   2595 struct stat;
   2596 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2597 struct buf { int x; };
   2598 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2599 static char *e (char **p, int i)
   2600 {
   2601   return p[i];
   2602 }
   2603 static char *f (char * (*g) (char **, int), char **p, ...)
   2604 {
   2605   char *s;
   2606   va_list v;
   2607   va_start (v,p);
   2608   s = g (p, va_arg (v,int));
   2609   va_end (v);
   2610   return s;
   2611 }
   2612 
   2613 /* C89 style stringification. */
   2614 #define noexpand_stringify(a) #a
   2615 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
   2616 
   2617 /* C89 style token pasting.  Exercises some of the corner cases that
   2618    e.g. old MSVC gets wrong, but not very hard. */
   2619 #define noexpand_concat(a,b) a##b
   2620 #define expand_concat(a,b) noexpand_concat(a,b)
   2621 extern int vA;
   2622 extern int vbee;
   2623 #define aye A
   2624 #define bee B
   2625 int *pvA = &expand_concat(v,aye);
   2626 int *pvbee = &noexpand_concat(v,bee);
   2627 
   2628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2629    function prototypes and stuff, but not \xHH hex character constants.
   2630    These do not provoke an error unfortunately, instead are silently treated
   2631    as an "x".  The following induces an error, until -std is added to get
   2632    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2633    array size at least.  It is necessary to write \x00 == 0 to get something
   2634    that is true only with -std.  */
   2635 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2636 
   2637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2638    inside strings and character constants.  */
   2639 #define FOO(x) '\''x'\''
   2640 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2641 
   2642 int test (int i, double x);
   2643 struct s1 {int (*f) (int a);};
   2644 struct s2 {int (*f) (double a);};
   2645 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2646                int, int);'
   2647 
   2648 # Test code for whether the C compiler supports C89 (body of main).
   2649 ac_c_conftest_c89_main='
   2650 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2651 '
   2652 
   2653 # Test code for whether the C compiler supports C99 (global declarations)
   2654 ac_c_conftest_c99_globals='
   2655 /* Does the compiler advertise C99 conformance? */
   2656 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2657 # error "Compiler does not advertise C99 conformance"
   2658 #endif
   2659 
   2660 // See if C++-style comments work.
   2661 
   2662 #include <stdbool.h>
   2663 extern int puts (const char *);
   2664 extern int printf (const char *, ...);
   2665 extern int dprintf (int, const char *, ...);
   2666 extern void *malloc (size_t);
   2667 extern void free (void *);
   2668 
   2669 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2670 // dprintf is used instead of fprintf to avoid needing to declare
   2671 // FILE and stderr.
   2672 #define debug(...) dprintf (2, __VA_ARGS__)
   2673 #define showlist(...) puts (#__VA_ARGS__)
   2674 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2675 static void
   2676 test_varargs_macros (void)
   2677 {
   2678   int x = 1234;
   2679   int y = 5678;
   2680   debug ("Flag");
   2681   debug ("X = %d\n", x);
   2682   showlist (The first, second, and third items.);
   2683   report (x>y, "x is %d but y is %d", x, y);
   2684 }
   2685 
   2686 // Check long long types.
   2687 #define BIG64 18446744073709551615ull
   2688 #define BIG32 4294967295ul
   2689 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2690 #if !BIG_OK
   2691   #error "your preprocessor is broken"
   2692 #endif
   2693 #if BIG_OK
   2694 #else
   2695   #error "your preprocessor is broken"
   2696 #endif
   2697 static long long int bignum = -9223372036854775807LL;
   2698 static unsigned long long int ubignum = BIG64;
   2699 
   2700 struct incomplete_array
   2701 {
   2702   int datasize;
   2703   double data[];
   2704 };
   2705 
   2706 struct named_init {
   2707   int number;
   2708   const wchar_t *name;
   2709   double average;
   2710 };
   2711 
   2712 typedef const char *ccp;
   2713 
   2714 static inline int
   2715 test_restrict (ccp restrict text)
   2716 {
   2717   // Iterate through items via the restricted pointer.
   2718   // Also check for declarations in for loops.
   2719   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2720     continue;
   2721   return 0;
   2722 }
   2723 
   2724 // Check varargs and va_copy.
   2725 static bool
   2726 test_varargs (const char *format, ...)
   2727 {
   2728   va_list args;
   2729   va_start (args, format);
   2730   va_list args_copy;
   2731   va_copy (args_copy, args);
   2732 
   2733   const char *str = "";
   2734   int number = 0;
   2735   float fnumber = 0;
   2736 
   2737   while (*format)
   2738     {
   2739       switch (*format++)
   2740 	{
   2741 	case '\''s'\'': // string
   2742 	  str = va_arg (args_copy, const char *);
   2743 	  break;
   2744 	case '\''d'\'': // int
   2745 	  number = va_arg (args_copy, int);
   2746 	  break;
   2747 	case '\''f'\'': // float
   2748 	  fnumber = va_arg (args_copy, double);
   2749 	  break;
   2750 	default:
   2751 	  break;
   2752 	}
   2753     }
   2754   va_end (args_copy);
   2755   va_end (args);
   2756 
   2757   return *str && number && fnumber;
   2758 }
   2759 '
   2760 
   2761 # Test code for whether the C compiler supports C99 (body of main).
   2762 ac_c_conftest_c99_main='
   2763   // Check bool.
   2764   _Bool success = false;
   2765   success |= (argc != 0);
   2766 
   2767   // Check restrict.
   2768   if (test_restrict ("String literal") == 0)
   2769     success = true;
   2770   char *restrict newvar = "Another string";
   2771 
   2772   // Check varargs.
   2773   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2774   test_varargs_macros ();
   2775 
   2776   // Check flexible array members.
   2777   struct incomplete_array *ia =
   2778     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2779   ia->datasize = 10;
   2780   for (int i = 0; i < ia->datasize; ++i)
   2781     ia->data[i] = i * 1.234;
   2782   // Work around memory leak warnings.
   2783   free (ia);
   2784 
   2785   // Check named initializers.
   2786   struct named_init ni = {
   2787     .number = 34,
   2788     .name = L"Test wide string",
   2789     .average = 543.34343,
   2790   };
   2791 
   2792   ni.number = 58;
   2793 
   2794   int dynamic_array[ni.number];
   2795   dynamic_array[0] = argv[0][0];
   2796   dynamic_array[ni.number - 1] = 543;
   2797 
   2798   // work around unused variable warnings
   2799   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2800 	 || dynamic_array[ni.number - 1] != 543);
   2801 '
   2802 
   2803 # Test code for whether the C compiler supports C11 (global declarations)
   2804 ac_c_conftest_c11_globals='
   2805 /* Does the compiler advertise C11 conformance? */
   2806 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2807 # error "Compiler does not advertise C11 conformance"
   2808 #endif
   2809 
   2810 // Check _Alignas.
   2811 char _Alignas (double) aligned_as_double;
   2812 char _Alignas (0) no_special_alignment;
   2813 extern char aligned_as_int;
   2814 char _Alignas (0) _Alignas (int) aligned_as_int;
   2815 
   2816 // Check _Alignof.
   2817 enum
   2818 {
   2819   int_alignment = _Alignof (int),
   2820   int_array_alignment = _Alignof (int[100]),
   2821   char_alignment = _Alignof (char)
   2822 };
   2823 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2824 
   2825 // Check _Noreturn.
   2826 int _Noreturn does_not_return (void) { for (;;) continue; }
   2827 
   2828 // Check _Static_assert.
   2829 struct test_static_assert
   2830 {
   2831   int x;
   2832   _Static_assert (sizeof (int) <= sizeof (long int),
   2833                   "_Static_assert does not work in struct");
   2834   long int y;
   2835 };
   2836 
   2837 // Check UTF-8 literals.
   2838 #define u8 syntax error!
   2839 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2840 
   2841 // Check duplicate typedefs.
   2842 typedef long *long_ptr;
   2843 typedef long int *long_ptr;
   2844 typedef long_ptr long_ptr;
   2845 
   2846 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2847 struct anonymous
   2848 {
   2849   union {
   2850     struct { int i; int j; };
   2851     struct { int k; long int l; } w;
   2852   };
   2853   int m;
   2854 } v1;
   2855 '
   2856 
   2857 # Test code for whether the C compiler supports C11 (body of main).
   2858 ac_c_conftest_c11_main='
   2859   _Static_assert ((offsetof (struct anonymous, i)
   2860 		   == offsetof (struct anonymous, w.k)),
   2861 		  "Anonymous union alignment botch");
   2862   v1.i = 2;
   2863   v1.w.k = 5;
   2864   ok |= v1.i != 5;
   2865 '
   2866 
   2867 # Test code for whether the C compiler supports C11 (complete).
   2868 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2869 ${ac_c_conftest_c99_globals}
   2870 ${ac_c_conftest_c11_globals}
   2871 
   2872 int
   2873 main (int argc, char **argv)
   2874 {
   2875   int ok = 0;
   2876   ${ac_c_conftest_c89_main}
   2877   ${ac_c_conftest_c99_main}
   2878   ${ac_c_conftest_c11_main}
   2879   return ok;
   2880 }
   2881 "
   2882 
   2883 # Test code for whether the C compiler supports C99 (complete).
   2884 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2885 ${ac_c_conftest_c99_globals}
   2886 
   2887 int
   2888 main (int argc, char **argv)
   2889 {
   2890   int ok = 0;
   2891   ${ac_c_conftest_c89_main}
   2892   ${ac_c_conftest_c99_main}
   2893   return ok;
   2894 }
   2895 "
   2896 
   2897 # Test code for whether the C compiler supports C89 (complete).
   2898 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2899 
   2900 int
   2901 main (int argc, char **argv)
   2902 {
   2903   int ok = 0;
   2904   ${ac_c_conftest_c89_main}
   2905   return ok;
   2906 }
   2907 "
   2908 
   2909 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2910 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2911 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2912 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2913 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2914 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2915 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2916 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2917 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
   2918 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
   2919 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
   2920 as_fn_append ac_func_c_list " fork HAVE_FORK"
   2921 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
   2922 
   2923 # Auxiliary files required by this configure script.
   2924 ac_aux_files="config.guess config.sub install-sh"
   2925 
   2926 # Locations in which to look for auxiliary files.
   2927 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2928 
   2929 # Search for a directory containing all of the required auxiliary files,
   2930 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2931 # If we don't find one directory that contains all the files we need,
   2932 # we report the set of missing files from the *first* directory in
   2933 # $ac_aux_dir_candidates and give up.
   2934 ac_missing_aux_files=""
   2935 ac_first_candidate=:
   2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2938 as_found=false
   2939 for as_dir in $ac_aux_dir_candidates
   2940 do
   2941   IFS=$as_save_IFS
   2942   case $as_dir in #(((
   2943     '') as_dir=./ ;;
   2944     */) ;;
   2945     *) as_dir=$as_dir/ ;;
   2946   esac
   2947   as_found=:
   2948 
   2949   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2950   ac_aux_dir_found=yes
   2951   ac_install_sh=
   2952   for ac_aux in $ac_aux_files
   2953   do
   2954     # As a special case, if "install-sh" is required, that requirement
   2955     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2956     # and $ac_install_sh is set appropriately for whichever one is found.
   2957     if test x"$ac_aux" = x"install-sh"
   2958     then
   2959       if test -f "${as_dir}install-sh"; then
   2960         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2961         ac_install_sh="${as_dir}install-sh -c"
   2962       elif test -f "${as_dir}install.sh"; then
   2963         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2964         ac_install_sh="${as_dir}install.sh -c"
   2965       elif test -f "${as_dir}shtool"; then
   2966         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2967         ac_install_sh="${as_dir}shtool install -c"
   2968       else
   2969         ac_aux_dir_found=no
   2970         if $ac_first_candidate; then
   2971           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2972         else
   2973           break
   2974         fi
   2975       fi
   2976     else
   2977       if test -f "${as_dir}${ac_aux}"; then
   2978         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2979       else
   2980         ac_aux_dir_found=no
   2981         if $ac_first_candidate; then
   2982           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2983         else
   2984           break
   2985         fi
   2986       fi
   2987     fi
   2988   done
   2989   if test "$ac_aux_dir_found" = yes; then
   2990     ac_aux_dir="$as_dir"
   2991     break
   2992   fi
   2993   ac_first_candidate=false
   2994 
   2995   as_found=false
   2996 done
   2997 IFS=$as_save_IFS
   2998 if $as_found
   2999 then :
   3000 
   3001 else case e in #(
   3002   e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
   3003 esac
   3004 fi
   3005 
   3006 
   3007 # These three variables are undocumented and unsupported,
   3008 # and are intended to be withdrawn in a future Autoconf release.
   3009 # They can cause serious problems if a builder's source tree is in a directory
   3010 # whose full name contains unusual characters.
   3011 if test -f "${ac_aux_dir}config.guess"; then
   3012   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   3013 fi
   3014 if test -f "${ac_aux_dir}config.sub"; then
   3015   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   3016 fi
   3017 if test -f "$ac_aux_dir/configure"; then
   3018   ac_configure="$SHELL ${ac_aux_dir}configure"
   3019 fi
   3020 
   3021 # Check that the precious variables saved in the cache have kept the same
   3022 # value.
   3023 ac_cache_corrupted=false
   3024 for ac_var in $ac_precious_vars; do
   3025   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   3026   eval ac_new_set=\$ac_env_${ac_var}_set
   3027   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   3028   eval ac_new_val=\$ac_env_${ac_var}_value
   3029   case $ac_old_set,$ac_new_set in
   3030     set,)
   3031       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
   3032 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
   3033       ac_cache_corrupted=: ;;
   3034     ,set)
   3035       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
   3036 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
   3037       ac_cache_corrupted=: ;;
   3038     ,);;
   3039     *)
   3040       if test "x$ac_old_val" != "x$ac_new_val"; then
   3041 	# differences in whitespace do not lead to failure.
   3042 	ac_old_val_w=`echo x $ac_old_val`
   3043 	ac_new_val_w=`echo x $ac_new_val`
   3044 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   3045 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
   3046 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
   3047 	  ac_cache_corrupted=:
   3048 	else
   3049 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
   3050 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
   3051 	  eval $ac_var=\$ac_old_val
   3052 	fi
   3053 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
   3054 printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
   3055 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
   3056 printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
   3057       fi;;
   3058   esac
   3059   # Pass precious variables to config.status.
   3060   if test "$ac_new_set" = set; then
   3061     case $ac_new_val in
   3062     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   3063     *) ac_arg=$ac_var=$ac_new_val ;;
   3064     esac
   3065     case " $ac_configure_args " in
   3066       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   3067       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   3068     esac
   3069   fi
   3070 done
   3071 if $ac_cache_corrupted; then
   3072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3073 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3075 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   3076   as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
   3077 	    and start over" "$LINENO" 5
   3078 fi
   3079 ## -------------------- ##
   3080 ## Main body of script. ##
   3081 ## -------------------- ##
   3082 
   3083 ac_ext=c
   3084 ac_cpp='$CPP $CPPFLAGS'
   3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3088 
   3089 
   3090 ac_config_headers="$ac_config_headers config.h"
   3091 
   3092 
   3093 #
   3094 # Setup the standard programs
   3095 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html
   3096 
   3097 
   3098 
   3099 
   3100 
   3101 
   3102 
   3103 
   3104 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
   3105 
   3106 printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h
   3107 
   3108 
   3109 CFLAGS="$CFLAGS"
   3110 
   3111 
   3112 
   3113 
   3114 
   3115 
   3116 
   3117 
   3118 
   3119 ac_ext=c
   3120 ac_cpp='$CPP $CPPFLAGS'
   3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3124 if test -n "$ac_tool_prefix"; then
   3125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3128 printf %s "checking for $ac_word... " >&6; }
   3129 if test ${ac_cv_prog_CC+y}
   3130 then :
   3131   printf %s "(cached) " >&6
   3132 else case e in #(
   3133   e) if test -n "$CC"; then
   3134   ac_cv_prog_CC="$CC" # Let the user override the test.
   3135 else
   3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3137 for as_dir in $PATH
   3138 do
   3139   IFS=$as_save_IFS
   3140   case $as_dir in #(((
   3141     '') as_dir=./ ;;
   3142     */) ;;
   3143     *) as_dir=$as_dir/ ;;
   3144   esac
   3145     for ac_exec_ext in '' $ac_executable_extensions; do
   3146   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3147     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3148     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3149     break 2
   3150   fi
   3151 done
   3152   done
   3153 IFS=$as_save_IFS
   3154 
   3155 fi ;;
   3156 esac
   3157 fi
   3158 CC=$ac_cv_prog_CC
   3159 if test -n "$CC"; then
   3160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3161 printf "%s\n" "$CC" >&6; }
   3162 else
   3163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3164 printf "%s\n" "no" >&6; }
   3165 fi
   3166 
   3167 
   3168 fi
   3169 if test -z "$ac_cv_prog_CC"; then
   3170   ac_ct_CC=$CC
   3171   # Extract the first word of "gcc", so it can be a program name with args.
   3172 set dummy gcc; ac_word=$2
   3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3174 printf %s "checking for $ac_word... " >&6; }
   3175 if test ${ac_cv_prog_ac_ct_CC+y}
   3176 then :
   3177   printf %s "(cached) " >&6
   3178 else case e in #(
   3179   e) if test -n "$ac_ct_CC"; then
   3180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3181 else
   3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3183 for as_dir in $PATH
   3184 do
   3185   IFS=$as_save_IFS
   3186   case $as_dir in #(((
   3187     '') as_dir=./ ;;
   3188     */) ;;
   3189     *) as_dir=$as_dir/ ;;
   3190   esac
   3191     for ac_exec_ext in '' $ac_executable_extensions; do
   3192   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3193     ac_cv_prog_ac_ct_CC="gcc"
   3194     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3195     break 2
   3196   fi
   3197 done
   3198   done
   3199 IFS=$as_save_IFS
   3200 
   3201 fi ;;
   3202 esac
   3203 fi
   3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3205 if test -n "$ac_ct_CC"; then
   3206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3207 printf "%s\n" "$ac_ct_CC" >&6; }
   3208 else
   3209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3210 printf "%s\n" "no" >&6; }
   3211 fi
   3212 
   3213   if test "x$ac_ct_CC" = x; then
   3214     CC=""
   3215   else
   3216     case $cross_compiling:$ac_tool_warned in
   3217 yes:)
   3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3220 ac_tool_warned=yes ;;
   3221 esac
   3222     CC=$ac_ct_CC
   3223   fi
   3224 else
   3225   CC="$ac_cv_prog_CC"
   3226 fi
   3227 
   3228 if test -z "$CC"; then
   3229           if test -n "$ac_tool_prefix"; then
   3230     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3233 printf %s "checking for $ac_word... " >&6; }
   3234 if test ${ac_cv_prog_CC+y}
   3235 then :
   3236   printf %s "(cached) " >&6
   3237 else case e in #(
   3238   e) if test -n "$CC"; then
   3239   ac_cv_prog_CC="$CC" # Let the user override the test.
   3240 else
   3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3242 for as_dir in $PATH
   3243 do
   3244   IFS=$as_save_IFS
   3245   case $as_dir in #(((
   3246     '') as_dir=./ ;;
   3247     */) ;;
   3248     *) as_dir=$as_dir/ ;;
   3249   esac
   3250     for ac_exec_ext in '' $ac_executable_extensions; do
   3251   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3252     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3253     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3254     break 2
   3255   fi
   3256 done
   3257   done
   3258 IFS=$as_save_IFS
   3259 
   3260 fi ;;
   3261 esac
   3262 fi
   3263 CC=$ac_cv_prog_CC
   3264 if test -n "$CC"; then
   3265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3266 printf "%s\n" "$CC" >&6; }
   3267 else
   3268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3269 printf "%s\n" "no" >&6; }
   3270 fi
   3271 
   3272 
   3273   fi
   3274 fi
   3275 if test -z "$CC"; then
   3276   # Extract the first word of "cc", so it can be a program name with args.
   3277 set dummy cc; ac_word=$2
   3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3279 printf %s "checking for $ac_word... " >&6; }
   3280 if test ${ac_cv_prog_CC+y}
   3281 then :
   3282   printf %s "(cached) " >&6
   3283 else case e in #(
   3284   e) if test -n "$CC"; then
   3285   ac_cv_prog_CC="$CC" # Let the user override the test.
   3286 else
   3287   ac_prog_rejected=no
   3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3289 for as_dir in $PATH
   3290 do
   3291   IFS=$as_save_IFS
   3292   case $as_dir in #(((
   3293     '') as_dir=./ ;;
   3294     */) ;;
   3295     *) as_dir=$as_dir/ ;;
   3296   esac
   3297     for ac_exec_ext in '' $ac_executable_extensions; do
   3298   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3299     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3300        ac_prog_rejected=yes
   3301        continue
   3302      fi
   3303     ac_cv_prog_CC="cc"
   3304     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3305     break 2
   3306   fi
   3307 done
   3308   done
   3309 IFS=$as_save_IFS
   3310 
   3311 if test $ac_prog_rejected = yes; then
   3312   # We found a bogon in the path, so make sure we never use it.
   3313   set dummy $ac_cv_prog_CC
   3314   shift
   3315   if test $# != 0; then
   3316     # We chose a different compiler from the bogus one.
   3317     # However, it has the same basename, so the bogon will be chosen
   3318     # first if we set CC to just the basename; use the full file name.
   3319     shift
   3320     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   3321   fi
   3322 fi
   3323 fi ;;
   3324 esac
   3325 fi
   3326 CC=$ac_cv_prog_CC
   3327 if test -n "$CC"; then
   3328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3329 printf "%s\n" "$CC" >&6; }
   3330 else
   3331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3332 printf "%s\n" "no" >&6; }
   3333 fi
   3334 
   3335 
   3336 fi
   3337 if test -z "$CC"; then
   3338   if test -n "$ac_tool_prefix"; then
   3339   for ac_prog in cl.exe
   3340   do
   3341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3344 printf %s "checking for $ac_word... " >&6; }
   3345 if test ${ac_cv_prog_CC+y}
   3346 then :
   3347   printf %s "(cached) " >&6
   3348 else case e in #(
   3349   e) if test -n "$CC"; then
   3350   ac_cv_prog_CC="$CC" # Let the user override the test.
   3351 else
   3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3353 for as_dir in $PATH
   3354 do
   3355   IFS=$as_save_IFS
   3356   case $as_dir in #(((
   3357     '') as_dir=./ ;;
   3358     */) ;;
   3359     *) as_dir=$as_dir/ ;;
   3360   esac
   3361     for ac_exec_ext in '' $ac_executable_extensions; do
   3362   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3363     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3364     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3365     break 2
   3366   fi
   3367 done
   3368   done
   3369 IFS=$as_save_IFS
   3370 
   3371 fi ;;
   3372 esac
   3373 fi
   3374 CC=$ac_cv_prog_CC
   3375 if test -n "$CC"; then
   3376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3377 printf "%s\n" "$CC" >&6; }
   3378 else
   3379   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3380 printf "%s\n" "no" >&6; }
   3381 fi
   3382 
   3383 
   3384     test -n "$CC" && break
   3385   done
   3386 fi
   3387 if test -z "$CC"; then
   3388   ac_ct_CC=$CC
   3389   for ac_prog in cl.exe
   3390 do
   3391   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3392 set dummy $ac_prog; ac_word=$2
   3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3394 printf %s "checking for $ac_word... " >&6; }
   3395 if test ${ac_cv_prog_ac_ct_CC+y}
   3396 then :
   3397   printf %s "(cached) " >&6
   3398 else case e in #(
   3399   e) if test -n "$ac_ct_CC"; then
   3400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3401 else
   3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3403 for as_dir in $PATH
   3404 do
   3405   IFS=$as_save_IFS
   3406   case $as_dir in #(((
   3407     '') as_dir=./ ;;
   3408     */) ;;
   3409     *) as_dir=$as_dir/ ;;
   3410   esac
   3411     for ac_exec_ext in '' $ac_executable_extensions; do
   3412   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3413     ac_cv_prog_ac_ct_CC="$ac_prog"
   3414     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3415     break 2
   3416   fi
   3417 done
   3418   done
   3419 IFS=$as_save_IFS
   3420 
   3421 fi ;;
   3422 esac
   3423 fi
   3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3425 if test -n "$ac_ct_CC"; then
   3426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3427 printf "%s\n" "$ac_ct_CC" >&6; }
   3428 else
   3429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3430 printf "%s\n" "no" >&6; }
   3431 fi
   3432 
   3433 
   3434   test -n "$ac_ct_CC" && break
   3435 done
   3436 
   3437   if test "x$ac_ct_CC" = x; then
   3438     CC=""
   3439   else
   3440     case $cross_compiling:$ac_tool_warned in
   3441 yes:)
   3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3444 ac_tool_warned=yes ;;
   3445 esac
   3446     CC=$ac_ct_CC
   3447   fi
   3448 fi
   3449 
   3450 fi
   3451 if test -z "$CC"; then
   3452   if test -n "$ac_tool_prefix"; then
   3453   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   3454 set dummy ${ac_tool_prefix}clang; ac_word=$2
   3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3456 printf %s "checking for $ac_word... " >&6; }
   3457 if test ${ac_cv_prog_CC+y}
   3458 then :
   3459   printf %s "(cached) " >&6
   3460 else case e in #(
   3461   e) if test -n "$CC"; then
   3462   ac_cv_prog_CC="$CC" # Let the user override the test.
   3463 else
   3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3465 for as_dir in $PATH
   3466 do
   3467   IFS=$as_save_IFS
   3468   case $as_dir in #(((
   3469     '') as_dir=./ ;;
   3470     */) ;;
   3471     *) as_dir=$as_dir/ ;;
   3472   esac
   3473     for ac_exec_ext in '' $ac_executable_extensions; do
   3474   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3475     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3476     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3477     break 2
   3478   fi
   3479 done
   3480   done
   3481 IFS=$as_save_IFS
   3482 
   3483 fi ;;
   3484 esac
   3485 fi
   3486 CC=$ac_cv_prog_CC
   3487 if test -n "$CC"; then
   3488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3489 printf "%s\n" "$CC" >&6; }
   3490 else
   3491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3492 printf "%s\n" "no" >&6; }
   3493 fi
   3494 
   3495 
   3496 fi
   3497 if test -z "$ac_cv_prog_CC"; then
   3498   ac_ct_CC=$CC
   3499   # Extract the first word of "clang", so it can be a program name with args.
   3500 set dummy clang; ac_word=$2
   3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3502 printf %s "checking for $ac_word... " >&6; }
   3503 if test ${ac_cv_prog_ac_ct_CC+y}
   3504 then :
   3505   printf %s "(cached) " >&6
   3506 else case e in #(
   3507   e) if test -n "$ac_ct_CC"; then
   3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3509 else
   3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3511 for as_dir in $PATH
   3512 do
   3513   IFS=$as_save_IFS
   3514   case $as_dir in #(((
   3515     '') as_dir=./ ;;
   3516     */) ;;
   3517     *) as_dir=$as_dir/ ;;
   3518   esac
   3519     for ac_exec_ext in '' $ac_executable_extensions; do
   3520   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3521     ac_cv_prog_ac_ct_CC="clang"
   3522     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3523     break 2
   3524   fi
   3525 done
   3526   done
   3527 IFS=$as_save_IFS
   3528 
   3529 fi ;;
   3530 esac
   3531 fi
   3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3533 if test -n "$ac_ct_CC"; then
   3534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3535 printf "%s\n" "$ac_ct_CC" >&6; }
   3536 else
   3537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3538 printf "%s\n" "no" >&6; }
   3539 fi
   3540 
   3541   if test "x$ac_ct_CC" = x; then
   3542     CC=""
   3543   else
   3544     case $cross_compiling:$ac_tool_warned in
   3545 yes:)
   3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3548 ac_tool_warned=yes ;;
   3549 esac
   3550     CC=$ac_ct_CC
   3551   fi
   3552 else
   3553   CC="$ac_cv_prog_CC"
   3554 fi
   3555 
   3556 fi
   3557 
   3558 
   3559 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3560 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3561 as_fn_error $? "no acceptable C compiler found in \$PATH
   3562 See 'config.log' for more details" "$LINENO" 5; }
   3563 
   3564 # Provide some information about the compiler.
   3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3566 set X $ac_compile
   3567 ac_compiler=$2
   3568 for ac_option in --version -v -V -qversion -version; do
   3569   { { ac_try="$ac_compiler $ac_option >&5"
   3570 case "(($ac_try" in
   3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3572   *) ac_try_echo=$ac_try;;
   3573 esac
   3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3575 printf "%s\n" "$ac_try_echo"; } >&5
   3576   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3577   ac_status=$?
   3578   if test -s conftest.err; then
   3579     sed '10a\
   3580 ... rest of stderr output deleted ...
   3581          10q' conftest.err >conftest.er1
   3582     cat conftest.er1 >&5
   3583   fi
   3584   rm -f conftest.er1 conftest.err
   3585   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3586   test $ac_status = 0; }
   3587 done
   3588 
   3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3590 /* end confdefs.h.  */
   3591 
   3592 int
   3593 main (void)
   3594 {
   3595 
   3596   ;
   3597   return 0;
   3598 }
   3599 _ACEOF
   3600 ac_clean_files_save=$ac_clean_files
   3601 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3602 # Try to create an executable without -o first, disregard a.out.
   3603 # It will help us diagnose broken compilers, and finding out an intuition
   3604 # of exeext.
   3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3606 printf %s "checking whether the C compiler works... " >&6; }
   3607 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3608 
   3609 # The possible output files:
   3610 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3611 
   3612 ac_rmfiles=
   3613 for ac_file in $ac_files
   3614 do
   3615   case $ac_file in
   3616     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3617     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3618   esac
   3619 done
   3620 rm -f $ac_rmfiles
   3621 
   3622 if { { ac_try="$ac_link_default"
   3623 case "(($ac_try" in
   3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3625   *) ac_try_echo=$ac_try;;
   3626 esac
   3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3628 printf "%s\n" "$ac_try_echo"; } >&5
   3629   (eval "$ac_link_default") 2>&5
   3630   ac_status=$?
   3631   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3632   test $ac_status = 0; }
   3633 then :
   3634   # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
   3635 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
   3636 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3637 # so that the user can short-circuit this test for compilers unknown to
   3638 # Autoconf.
   3639 for ac_file in $ac_files ''
   3640 do
   3641   test -f "$ac_file" || continue
   3642   case $ac_file in
   3643     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3644 	;;
   3645     [ab].out )
   3646 	# We found the default executable, but exeext='' is most
   3647 	# certainly right.
   3648 	break;;
   3649     *.* )
   3650 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3651 	then :; else
   3652 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3653 	fi
   3654 	# We set ac_cv_exeext here because the later test for it is not
   3655 	# safe: cross compilers may not add the suffix if given an '-o'
   3656 	# argument, so we may need to know it at that point already.
   3657 	# Even if this section looks crufty: it has the advantage of
   3658 	# actually working.
   3659 	break;;
   3660     * )
   3661 	break;;
   3662   esac
   3663 done
   3664 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3665 
   3666 else case e in #(
   3667   e) ac_file='' ;;
   3668 esac
   3669 fi
   3670 if test -z "$ac_file"
   3671 then :
   3672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3673 printf "%s\n" "no" >&6; }
   3674 printf "%s\n" "$as_me: failed program was:" >&5
   3675 sed 's/^/| /' conftest.$ac_ext >&5
   3676 
   3677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3678 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3679 as_fn_error 77 "C compiler cannot create executables
   3680 See 'config.log' for more details" "$LINENO" 5; }
   3681 else case e in #(
   3682   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3683 printf "%s\n" "yes" >&6; } ;;
   3684 esac
   3685 fi
   3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3687 printf %s "checking for C compiler default output file name... " >&6; }
   3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3689 printf "%s\n" "$ac_file" >&6; }
   3690 ac_exeext=$ac_cv_exeext
   3691 
   3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3693 ac_clean_files=$ac_clean_files_save
   3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3695 printf %s "checking for suffix of executables... " >&6; }
   3696 if { { ac_try="$ac_link"
   3697 case "(($ac_try" in
   3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3699   *) ac_try_echo=$ac_try;;
   3700 esac
   3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3702 printf "%s\n" "$ac_try_echo"; } >&5
   3703   (eval "$ac_link") 2>&5
   3704   ac_status=$?
   3705   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3706   test $ac_status = 0; }
   3707 then :
   3708   # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
   3709 # catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
   3710 # work properly (i.e., refer to 'conftest.exe'), while it won't with
   3711 # 'rm'.
   3712 for ac_file in conftest.exe conftest conftest.*; do
   3713   test -f "$ac_file" || continue
   3714   case $ac_file in
   3715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3716     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3717 	  break;;
   3718     * ) break;;
   3719   esac
   3720 done
   3721 else case e in #(
   3722   e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3723 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3724 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3725 See 'config.log' for more details" "$LINENO" 5; } ;;
   3726 esac
   3727 fi
   3728 rm -f conftest conftest$ac_cv_exeext
   3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3730 printf "%s\n" "$ac_cv_exeext" >&6; }
   3731 
   3732 rm -f conftest.$ac_ext
   3733 EXEEXT=$ac_cv_exeext
   3734 ac_exeext=$EXEEXT
   3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3736 /* end confdefs.h.  */
   3737 #include <stdio.h>
   3738 int
   3739 main (void)
   3740 {
   3741 FILE *f = fopen ("conftest.out", "w");
   3742  if (!f)
   3743   return 1;
   3744  return ferror (f) || fclose (f) != 0;
   3745 
   3746   ;
   3747   return 0;
   3748 }
   3749 _ACEOF
   3750 ac_clean_files="$ac_clean_files conftest.out"
   3751 # Check that the compiler produces executables we can run.  If not, either
   3752 # the compiler is broken, or we cross compile.
   3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3754 printf %s "checking whether we are cross compiling... " >&6; }
   3755 if test "$cross_compiling" != yes; then
   3756   { { ac_try="$ac_link"
   3757 case "(($ac_try" in
   3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3759   *) ac_try_echo=$ac_try;;
   3760 esac
   3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3762 printf "%s\n" "$ac_try_echo"; } >&5
   3763   (eval "$ac_link") 2>&5
   3764   ac_status=$?
   3765   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3766   test $ac_status = 0; }
   3767   if { ac_try='./conftest$ac_cv_exeext'
   3768   { { case "(($ac_try" in
   3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3770   *) ac_try_echo=$ac_try;;
   3771 esac
   3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3773 printf "%s\n" "$ac_try_echo"; } >&5
   3774   (eval "$ac_try") 2>&5
   3775   ac_status=$?
   3776   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3777   test $ac_status = 0; }; }; then
   3778     cross_compiling=no
   3779   else
   3780     if test "$cross_compiling" = maybe; then
   3781 	cross_compiling=yes
   3782     else
   3783 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3784 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3785 as_fn_error 77 "cannot run C compiled programs.
   3786 If you meant to cross compile, use '--host'.
   3787 See 'config.log' for more details" "$LINENO" 5; }
   3788     fi
   3789   fi
   3790 fi
   3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3792 printf "%s\n" "$cross_compiling" >&6; }
   3793 
   3794 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
   3795   conftest.o conftest.obj conftest.out
   3796 ac_clean_files=$ac_clean_files_save
   3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3798 printf %s "checking for suffix of object files... " >&6; }
   3799 if test ${ac_cv_objext+y}
   3800 then :
   3801   printf %s "(cached) " >&6
   3802 else case e in #(
   3803   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3804 /* end confdefs.h.  */
   3805 
   3806 int
   3807 main (void)
   3808 {
   3809 
   3810   ;
   3811   return 0;
   3812 }
   3813 _ACEOF
   3814 rm -f conftest.o conftest.obj
   3815 if { { ac_try="$ac_compile"
   3816 case "(($ac_try" in
   3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3818   *) ac_try_echo=$ac_try;;
   3819 esac
   3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3821 printf "%s\n" "$ac_try_echo"; } >&5
   3822   (eval "$ac_compile") 2>&5
   3823   ac_status=$?
   3824   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3825   test $ac_status = 0; }
   3826 then :
   3827   for ac_file in conftest.o conftest.obj conftest.*; do
   3828   test -f "$ac_file" || continue;
   3829   case $ac_file in
   3830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3831     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3832        break;;
   3833   esac
   3834 done
   3835 else case e in #(
   3836   e) printf "%s\n" "$as_me: failed program was:" >&5
   3837 sed 's/^/| /' conftest.$ac_ext >&5
   3838 
   3839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3840 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3841 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3842 See 'config.log' for more details" "$LINENO" 5; } ;;
   3843 esac
   3844 fi
   3845 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
   3846 esac
   3847 fi
   3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3849 printf "%s\n" "$ac_cv_objext" >&6; }
   3850 OBJEXT=$ac_cv_objext
   3851 ac_objext=$OBJEXT
   3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3853 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3854 if test ${ac_cv_c_compiler_gnu+y}
   3855 then :
   3856   printf %s "(cached) " >&6
   3857 else case e in #(
   3858   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3859 /* end confdefs.h.  */
   3860 
   3861 int
   3862 main (void)
   3863 {
   3864 #ifndef __GNUC__
   3865        choke me
   3866 #endif
   3867 
   3868   ;
   3869   return 0;
   3870 }
   3871 _ACEOF
   3872 if ac_fn_c_try_compile "$LINENO"
   3873 then :
   3874   ac_compiler_gnu=yes
   3875 else case e in #(
   3876   e) ac_compiler_gnu=no ;;
   3877 esac
   3878 fi
   3879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3880 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3881  ;;
   3882 esac
   3883 fi
   3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3885 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3887 
   3888 if test $ac_compiler_gnu = yes; then
   3889   GCC=yes
   3890 else
   3891   GCC=
   3892 fi
   3893 ac_test_CFLAGS=${CFLAGS+y}
   3894 ac_save_CFLAGS=$CFLAGS
   3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3896 printf %s "checking whether $CC accepts -g... " >&6; }
   3897 if test ${ac_cv_prog_cc_g+y}
   3898 then :
   3899   printf %s "(cached) " >&6
   3900 else case e in #(
   3901   e) ac_save_c_werror_flag=$ac_c_werror_flag
   3902    ac_c_werror_flag=yes
   3903    ac_cv_prog_cc_g=no
   3904    CFLAGS="-g"
   3905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3906 /* end confdefs.h.  */
   3907 
   3908 int
   3909 main (void)
   3910 {
   3911 
   3912   ;
   3913   return 0;
   3914 }
   3915 _ACEOF
   3916 if ac_fn_c_try_compile "$LINENO"
   3917 then :
   3918   ac_cv_prog_cc_g=yes
   3919 else case e in #(
   3920   e) CFLAGS=""
   3921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3922 /* end confdefs.h.  */
   3923 
   3924 int
   3925 main (void)
   3926 {
   3927 
   3928   ;
   3929   return 0;
   3930 }
   3931 _ACEOF
   3932 if ac_fn_c_try_compile "$LINENO"
   3933 then :
   3934 
   3935 else case e in #(
   3936   e) ac_c_werror_flag=$ac_save_c_werror_flag
   3937 	 CFLAGS="-g"
   3938 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3939 /* end confdefs.h.  */
   3940 
   3941 int
   3942 main (void)
   3943 {
   3944 
   3945   ;
   3946   return 0;
   3947 }
   3948 _ACEOF
   3949 if ac_fn_c_try_compile "$LINENO"
   3950 then :
   3951   ac_cv_prog_cc_g=yes
   3952 fi
   3953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3954 esac
   3955 fi
   3956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3957 esac
   3958 fi
   3959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3960    ac_c_werror_flag=$ac_save_c_werror_flag ;;
   3961 esac
   3962 fi
   3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3964 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3965 if test $ac_test_CFLAGS; then
   3966   CFLAGS=$ac_save_CFLAGS
   3967 elif test $ac_cv_prog_cc_g = yes; then
   3968   if test "$GCC" = yes; then
   3969     CFLAGS="-g -O2"
   3970   else
   3971     CFLAGS="-g"
   3972   fi
   3973 else
   3974   if test "$GCC" = yes; then
   3975     CFLAGS="-O2"
   3976   else
   3977     CFLAGS=
   3978   fi
   3979 fi
   3980 ac_prog_cc_stdc=no
   3981 if test x$ac_prog_cc_stdc = xno
   3982 then :
   3983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3984 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3985 if test ${ac_cv_prog_cc_c11+y}
   3986 then :
   3987   printf %s "(cached) " >&6
   3988 else case e in #(
   3989   e) ac_cv_prog_cc_c11=no
   3990 ac_save_CC=$CC
   3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3992 /* end confdefs.h.  */
   3993 $ac_c_conftest_c11_program
   3994 _ACEOF
   3995 for ac_arg in '' -std=gnu11
   3996 do
   3997   CC="$ac_save_CC $ac_arg"
   3998   if ac_fn_c_try_compile "$LINENO"
   3999 then :
   4000   ac_cv_prog_cc_c11=$ac_arg
   4001 fi
   4002 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4003   test "x$ac_cv_prog_cc_c11" != "xno" && break
   4004 done
   4005 rm -f conftest.$ac_ext
   4006 CC=$ac_save_CC ;;
   4007 esac
   4008 fi
   4009 
   4010 if test "x$ac_cv_prog_cc_c11" = xno
   4011 then :
   4012   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4013 printf "%s\n" "unsupported" >&6; }
   4014 else case e in #(
   4015   e) if test "x$ac_cv_prog_cc_c11" = x
   4016 then :
   4017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4018 printf "%s\n" "none needed" >&6; }
   4019 else case e in #(
   4020   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   4021 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   4022      CC="$CC $ac_cv_prog_cc_c11" ;;
   4023 esac
   4024 fi
   4025   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   4026   ac_prog_cc_stdc=c11 ;;
   4027 esac
   4028 fi
   4029 fi
   4030 if test x$ac_prog_cc_stdc = xno
   4031 then :
   4032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   4033 printf %s "checking for $CC option to enable C99 features... " >&6; }
   4034 if test ${ac_cv_prog_cc_c99+y}
   4035 then :
   4036   printf %s "(cached) " >&6
   4037 else case e in #(
   4038   e) ac_cv_prog_cc_c99=no
   4039 ac_save_CC=$CC
   4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4041 /* end confdefs.h.  */
   4042 $ac_c_conftest_c99_program
   4043 _ACEOF
   4044 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   4045 do
   4046   CC="$ac_save_CC $ac_arg"
   4047   if ac_fn_c_try_compile "$LINENO"
   4048 then :
   4049   ac_cv_prog_cc_c99=$ac_arg
   4050 fi
   4051 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4052   test "x$ac_cv_prog_cc_c99" != "xno" && break
   4053 done
   4054 rm -f conftest.$ac_ext
   4055 CC=$ac_save_CC ;;
   4056 esac
   4057 fi
   4058 
   4059 if test "x$ac_cv_prog_cc_c99" = xno
   4060 then :
   4061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4062 printf "%s\n" "unsupported" >&6; }
   4063 else case e in #(
   4064   e) if test "x$ac_cv_prog_cc_c99" = x
   4065 then :
   4066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4067 printf "%s\n" "none needed" >&6; }
   4068 else case e in #(
   4069   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4070 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   4071      CC="$CC $ac_cv_prog_cc_c99" ;;
   4072 esac
   4073 fi
   4074   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   4075   ac_prog_cc_stdc=c99 ;;
   4076 esac
   4077 fi
   4078 fi
   4079 if test x$ac_prog_cc_stdc = xno
   4080 then :
   4081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   4082 printf %s "checking for $CC option to enable C89 features... " >&6; }
   4083 if test ${ac_cv_prog_cc_c89+y}
   4084 then :
   4085   printf %s "(cached) " >&6
   4086 else case e in #(
   4087   e) ac_cv_prog_cc_c89=no
   4088 ac_save_CC=$CC
   4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4090 /* end confdefs.h.  */
   4091 $ac_c_conftest_c89_program
   4092 _ACEOF
   4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4094 do
   4095   CC="$ac_save_CC $ac_arg"
   4096   if ac_fn_c_try_compile "$LINENO"
   4097 then :
   4098   ac_cv_prog_cc_c89=$ac_arg
   4099 fi
   4100 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4101   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4102 done
   4103 rm -f conftest.$ac_ext
   4104 CC=$ac_save_CC ;;
   4105 esac
   4106 fi
   4107 
   4108 if test "x$ac_cv_prog_cc_c89" = xno
   4109 then :
   4110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4111 printf "%s\n" "unsupported" >&6; }
   4112 else case e in #(
   4113   e) if test "x$ac_cv_prog_cc_c89" = x
   4114 then :
   4115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4116 printf "%s\n" "none needed" >&6; }
   4117 else case e in #(
   4118   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4119 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   4120      CC="$CC $ac_cv_prog_cc_c89" ;;
   4121 esac
   4122 fi
   4123   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   4124   ac_prog_cc_stdc=c89 ;;
   4125 esac
   4126 fi
   4127 fi
   4128 
   4129 ac_ext=c
   4130 ac_cpp='$CPP $CPPFLAGS'
   4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4134 
   4135 
   4136 ac_header= ac_cache=
   4137 for ac_item in $ac_header_c_list
   4138 do
   4139   if test $ac_cache; then
   4140     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   4141     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   4142       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   4143     fi
   4144     ac_header= ac_cache=
   4145   elif test $ac_header; then
   4146     ac_cache=$ac_item
   4147   else
   4148     ac_header=$ac_item
   4149   fi
   4150 done
   4151 
   4152 
   4153 
   4154 
   4155 
   4156 
   4157 
   4158 
   4159 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   4160 then :
   4161 
   4162 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   4163 
   4164 fi
   4165 
   4166 
   4167 
   4168 
   4169 
   4170 
   4171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4172 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4173 if test ${ac_cv_safe_to_define___extensions__+y}
   4174 then :
   4175   printf %s "(cached) " >&6
   4176 else case e in #(
   4177   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4178 /* end confdefs.h.  */
   4179 
   4180 #         define __EXTENSIONS__ 1
   4181           $ac_includes_default
   4182 int
   4183 main (void)
   4184 {
   4185 
   4186   ;
   4187   return 0;
   4188 }
   4189 _ACEOF
   4190 if ac_fn_c_try_compile "$LINENO"
   4191 then :
   4192   ac_cv_safe_to_define___extensions__=yes
   4193 else case e in #(
   4194   e) ac_cv_safe_to_define___extensions__=no ;;
   4195 esac
   4196 fi
   4197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   4198 esac
   4199 fi
   4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4201 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
   4202 
   4203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   4204 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   4205 if test ${ac_cv_should_define__xopen_source+y}
   4206 then :
   4207   printf %s "(cached) " >&6
   4208 else case e in #(
   4209   e) ac_cv_should_define__xopen_source=no
   4210     if test $ac_cv_header_wchar_h = yes
   4211 then :
   4212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4213 /* end confdefs.h.  */
   4214 
   4215           #include <wchar.h>
   4216           mbstate_t x;
   4217 int
   4218 main (void)
   4219 {
   4220 
   4221   ;
   4222   return 0;
   4223 }
   4224 _ACEOF
   4225 if ac_fn_c_try_compile "$LINENO"
   4226 then :
   4227 
   4228 else case e in #(
   4229   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4230 /* end confdefs.h.  */
   4231 
   4232             #define _XOPEN_SOURCE 500
   4233             #include <wchar.h>
   4234             mbstate_t x;
   4235 int
   4236 main (void)
   4237 {
   4238 
   4239   ;
   4240   return 0;
   4241 }
   4242 _ACEOF
   4243 if ac_fn_c_try_compile "$LINENO"
   4244 then :
   4245   ac_cv_should_define__xopen_source=yes
   4246 fi
   4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   4248 esac
   4249 fi
   4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4251 fi ;;
   4252 esac
   4253 fi
   4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   4255 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
   4256 
   4257   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
   4258 
   4259   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   4260 
   4261   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
   4262 
   4263   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   4264 
   4265   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   4266 
   4267   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
   4268 
   4269   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4270 
   4271   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   4272 
   4273   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   4274 
   4275   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   4276 
   4277   printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
   4278 
   4279   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   4280 
   4281   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   4282 
   4283   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   4284 
   4285   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   4286 
   4287   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
   4288 
   4289   if test $ac_cv_header_minix_config_h = yes
   4290 then :
   4291   MINIX=yes
   4292     printf "%s\n" "#define _MINIX 1" >>confdefs.h
   4293 
   4294     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   4295 
   4296     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4297 
   4298 else case e in #(
   4299   e) MINIX= ;;
   4300 esac
   4301 fi
   4302   if test $ac_cv_safe_to_define___extensions__ = yes
   4303 then :
   4304   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
   4305 
   4306 fi
   4307   if test $ac_cv_should_define__xopen_source = yes
   4308 then :
   4309   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
   4310 
   4311 fi
   4312 
   4313 if test "$ac_cv_header_minix_config_h" = "yes"; then
   4314 
   4315 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   4316 
   4317 fi
   4318 
   4319 case "$prefix" in
   4320 	NONE)
   4321 		case "$sysconfdir" in
   4322 			'${prefix}/etc')
   4323 				sysconfdir=/etc
   4324 			;;
   4325                 esac
   4326 		case "$localstatedir" in
   4327 			'${prefix}/var')
   4328 				localstatedir=/var
   4329 			;;
   4330 		esac
   4331 	;;
   4332 esac
   4333 
   4334 #
   4335 # Determine configuration directory
   4336 #
   4337 configdir=$sysconfdir/nsd
   4338 
   4339 # Check whether --with-configdir was given.
   4340 if test ${with_configdir+y}
   4341 then :
   4342   withval=$with_configdir; configdir=$withval
   4343 fi
   4344 
   4345 
   4346 cat >>confdefs.h <<_ACEOF
   4347 #define CONFIGDIR "`eval echo $configdir`"
   4348 _ACEOF
   4349 
   4350 
   4351 
   4352 #
   4353 # Determine configuration file
   4354 nsd_conf_file=${configdir}/nsd.conf
   4355 
   4356 # Check whether --with-nsd_conf_file was given.
   4357 if test ${with_nsd_conf_file+y}
   4358 then :
   4359   withval=$with_nsd_conf_file; nsd_conf_file=$withval
   4360 fi
   4361 
   4362 
   4363 # the eval is to evaluate shell expansion twice, once
   4364 # for $nsd_conf_file and once for the ${prefix} within it.
   4365 
   4366 cat >>confdefs.h <<_ACEOF
   4367 #define CONFIGFILE "`eval echo $nsd_conf_file`"
   4368 _ACEOF
   4369 
   4370 
   4371 #
   4372 # Default logfile
   4373 #
   4374 logfile=${localstatedir}/log/nsd.log
   4375 
   4376 # Check whether --with-logfile was given.
   4377 if test ${with_logfile+y}
   4378 then :
   4379   withval=$with_logfile; logfile=$withval
   4380 fi
   4381 
   4382 
   4383 
   4384 #
   4385 # Database directory
   4386 #
   4387 dbdir=${localstatedir}/db/nsd
   4388 
   4389 # Check whether --with-dbdir was given.
   4390 if test ${with_dbdir+y}
   4391 then :
   4392   withval=$with_dbdir; dbdir=$withval
   4393 fi
   4394 
   4395 
   4396 #
   4397 # Determine the pidfile location. Check if /var/run exists, if so set pidfile
   4398 # to /var/run/nsd.pid by default
   4399 #
   4400 if test -d ${localstatedir}/run; then
   4401 	pidfile=${localstatedir}/run/nsd.pid
   4402 else
   4403 	pidfile=${dbdir}/nsd.pid
   4404 fi
   4405 
   4406 # Check whether --with-pidfile was given.
   4407 if test ${with_pidfile+y}
   4408 then :
   4409   withval=$with_pidfile; pidfile=$withval
   4410 fi
   4411 
   4412 
   4413 
   4414 cat >>confdefs.h <<_ACEOF
   4415 #define PIDFILE "`eval echo $pidfile`"
   4416 _ACEOF
   4417 
   4418 
   4419 
   4420 # Check whether --with-dbfile was given.
   4421 if test ${with_dbfile+y}
   4422 then :
   4423   withval=$with_dbfile;
   4424 fi
   4425 
   4426 
   4427 piddir=`dirname $pidfile`
   4428 
   4429 
   4430 #
   4431 # Determine the default directory for the zone files
   4432 #
   4433 zonesdir=$configdir
   4434 
   4435 # Check whether --with-zonesdir was given.
   4436 if test ${with_zonesdir+y}
   4437 then :
   4438   withval=$with_zonesdir; zonesdir=$withval
   4439 fi
   4440 
   4441 
   4442 
   4443 cat >>confdefs.h <<_ACEOF
   4444 #define ZONESDIR "`eval echo $zonesdir`"
   4445 _ACEOF
   4446 
   4447 
   4448 # default xfrd file location.
   4449 xfrdfile=${dbdir}/xfrd.state
   4450 
   4451 # Check whether --with-xfrdfile was given.
   4452 if test ${with_xfrdfile+y}
   4453 then :
   4454   withval=$with_xfrdfile; xfrdfile=$withval
   4455 fi
   4456 
   4457 
   4458 cat >>confdefs.h <<_ACEOF
   4459 #define XFRDFILE "`eval echo $xfrdfile`"
   4460 _ACEOF
   4461 
   4462 
   4463 
   4464 # default zonelist file location.
   4465 zonelistfile=${dbdir}/zone.list
   4466 
   4467 # Check whether --with-zonelistfile was given.
   4468 if test ${with_zonelistfile+y}
   4469 then :
   4470   withval=$with_zonelistfile; zonelistfile=$withval
   4471 fi
   4472 
   4473 
   4474 cat >>confdefs.h <<_ACEOF
   4475 #define ZONELISTFILE "`eval echo $zonelistfile`"
   4476 _ACEOF
   4477 
   4478 
   4479 
   4480 # default cookiesecrets file location.
   4481 cookiesecretsfile=${dbdir}/cookiesecrets.txt
   4482 
   4483 # Check whether --with-cookiesecretsfile was given.
   4484 if test ${with_cookiesecretsfile+y}
   4485 then :
   4486   withval=$with_cookiesecretsfile; cookiesecretsfile=$withval
   4487 fi
   4488 
   4489 
   4490 cat >>confdefs.h <<_ACEOF
   4491 #define COOKIESECRETSFILE "`eval echo $cookiesecretsfile`"
   4492 _ACEOF
   4493 
   4494 
   4495 
   4496 # default xfr dir location.
   4497 xfrdir="/tmp"
   4498 
   4499 # Check whether --with-xfrdir was given.
   4500 if test ${with_xfrdir+y}
   4501 then :
   4502   withval=$with_xfrdir; xfrdir=$withval
   4503 fi
   4504 
   4505 
   4506 cat >>confdefs.h <<_ACEOF
   4507 #define XFRDIR "`eval echo $xfrdir`"
   4508 _ACEOF
   4509 
   4510 
   4511 
   4512 sharedfilesdir=${datarootdir}/nsd
   4513 
   4514 # Check whether --with-sharedfilesdir was given.
   4515 if test ${with_sharedfilesdir+y}
   4516 then :
   4517   withval=$with_sharedfilesdir; sharedfilesdir=$withval
   4518 fi
   4519 
   4520 
   4521 cat >>confdefs.h <<_ACEOF
   4522 #define SHAREDFILESDIR "`eval echo $sharedfilesdir`"
   4523 _ACEOF
   4524 
   4525 
   4526 
   4527 # nsd sbin location. tmpinstantiate execprefix with defaults if not yet done.
   4528 if test "x${exec_prefix}" = "xNONE"; then
   4529 	if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix"
   4530 	else exec_prefix="${prefix}"; fi
   4531 	nsd_start_path="`eval echo $sbindir`/nsd"
   4532 	exec_prefix="NONE"
   4533 else
   4534 	nsd_start_path="`eval echo $sbindir`/nsd"
   4535 fi
   4536 
   4537 printf "%s\n" "#define NSD_START_PATH \"$nsd_start_path\"" >>confdefs.h
   4538 
   4539 
   4540 #
   4541 # Determine default chroot directory
   4542 #
   4543 
   4544 # Check whether --with-chroot was given.
   4545 if test ${with_chroot+y}
   4546 then :
   4547   withval=$with_chroot;
   4548 		chrootdir=$withval
   4549 
   4550 cat >>confdefs.h <<_ACEOF
   4551 #define CHROOTDIR "`eval echo $chrootdir`"
   4552 _ACEOF
   4553 
   4554 
   4555 fi
   4556 
   4557 
   4558 
   4559 #
   4560 # Determine the user name to drop privileges to
   4561 #
   4562 user=nsd
   4563 
   4564 # Check whether --with-user was given.
   4565 if test ${with_user+y}
   4566 then :
   4567   withval=$with_user; user=$withval
   4568 fi
   4569 
   4570 
   4571 
   4572 printf "%s\n" "#define USER \"$user\"" >>confdefs.h
   4573 
   4574 
   4575 ac_ext=c
   4576 ac_cpp='$CPP $CPPFLAGS'
   4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4580 if test -n "$ac_tool_prefix"; then
   4581   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4582 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4584 printf %s "checking for $ac_word... " >&6; }
   4585 if test ${ac_cv_prog_CC+y}
   4586 then :
   4587   printf %s "(cached) " >&6
   4588 else case e in #(
   4589   e) if test -n "$CC"; then
   4590   ac_cv_prog_CC="$CC" # Let the user override the test.
   4591 else
   4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4593 for as_dir in $PATH
   4594 do
   4595   IFS=$as_save_IFS
   4596   case $as_dir in #(((
   4597     '') as_dir=./ ;;
   4598     */) ;;
   4599     *) as_dir=$as_dir/ ;;
   4600   esac
   4601     for ac_exec_ext in '' $ac_executable_extensions; do
   4602   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4603     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4604     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4605     break 2
   4606   fi
   4607 done
   4608   done
   4609 IFS=$as_save_IFS
   4610 
   4611 fi ;;
   4612 esac
   4613 fi
   4614 CC=$ac_cv_prog_CC
   4615 if test -n "$CC"; then
   4616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4617 printf "%s\n" "$CC" >&6; }
   4618 else
   4619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4620 printf "%s\n" "no" >&6; }
   4621 fi
   4622 
   4623 
   4624 fi
   4625 if test -z "$ac_cv_prog_CC"; then
   4626   ac_ct_CC=$CC
   4627   # Extract the first word of "gcc", so it can be a program name with args.
   4628 set dummy gcc; ac_word=$2
   4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4630 printf %s "checking for $ac_word... " >&6; }
   4631 if test ${ac_cv_prog_ac_ct_CC+y}
   4632 then :
   4633   printf %s "(cached) " >&6
   4634 else case e in #(
   4635   e) if test -n "$ac_ct_CC"; then
   4636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4637 else
   4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4639 for as_dir in $PATH
   4640 do
   4641   IFS=$as_save_IFS
   4642   case $as_dir in #(((
   4643     '') as_dir=./ ;;
   4644     */) ;;
   4645     *) as_dir=$as_dir/ ;;
   4646   esac
   4647     for ac_exec_ext in '' $ac_executable_extensions; do
   4648   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4649     ac_cv_prog_ac_ct_CC="gcc"
   4650     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4651     break 2
   4652   fi
   4653 done
   4654   done
   4655 IFS=$as_save_IFS
   4656 
   4657 fi ;;
   4658 esac
   4659 fi
   4660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4661 if test -n "$ac_ct_CC"; then
   4662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4663 printf "%s\n" "$ac_ct_CC" >&6; }
   4664 else
   4665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4666 printf "%s\n" "no" >&6; }
   4667 fi
   4668 
   4669   if test "x$ac_ct_CC" = x; then
   4670     CC=""
   4671   else
   4672     case $cross_compiling:$ac_tool_warned in
   4673 yes:)
   4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4676 ac_tool_warned=yes ;;
   4677 esac
   4678     CC=$ac_ct_CC
   4679   fi
   4680 else
   4681   CC="$ac_cv_prog_CC"
   4682 fi
   4683 
   4684 if test -z "$CC"; then
   4685           if test -n "$ac_tool_prefix"; then
   4686     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4687 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4689 printf %s "checking for $ac_word... " >&6; }
   4690 if test ${ac_cv_prog_CC+y}
   4691 then :
   4692   printf %s "(cached) " >&6
   4693 else case e in #(
   4694   e) if test -n "$CC"; then
   4695   ac_cv_prog_CC="$CC" # Let the user override the test.
   4696 else
   4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4698 for as_dir in $PATH
   4699 do
   4700   IFS=$as_save_IFS
   4701   case $as_dir in #(((
   4702     '') as_dir=./ ;;
   4703     */) ;;
   4704     *) as_dir=$as_dir/ ;;
   4705   esac
   4706     for ac_exec_ext in '' $ac_executable_extensions; do
   4707   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4708     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4709     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4710     break 2
   4711   fi
   4712 done
   4713   done
   4714 IFS=$as_save_IFS
   4715 
   4716 fi ;;
   4717 esac
   4718 fi
   4719 CC=$ac_cv_prog_CC
   4720 if test -n "$CC"; then
   4721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4722 printf "%s\n" "$CC" >&6; }
   4723 else
   4724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4725 printf "%s\n" "no" >&6; }
   4726 fi
   4727 
   4728 
   4729   fi
   4730 fi
   4731 if test -z "$CC"; then
   4732   # Extract the first word of "cc", so it can be a program name with args.
   4733 set dummy cc; ac_word=$2
   4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4735 printf %s "checking for $ac_word... " >&6; }
   4736 if test ${ac_cv_prog_CC+y}
   4737 then :
   4738   printf %s "(cached) " >&6
   4739 else case e in #(
   4740   e) if test -n "$CC"; then
   4741   ac_cv_prog_CC="$CC" # Let the user override the test.
   4742 else
   4743   ac_prog_rejected=no
   4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4745 for as_dir in $PATH
   4746 do
   4747   IFS=$as_save_IFS
   4748   case $as_dir in #(((
   4749     '') as_dir=./ ;;
   4750     */) ;;
   4751     *) as_dir=$as_dir/ ;;
   4752   esac
   4753     for ac_exec_ext in '' $ac_executable_extensions; do
   4754   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4755     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4756        ac_prog_rejected=yes
   4757        continue
   4758      fi
   4759     ac_cv_prog_CC="cc"
   4760     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4761     break 2
   4762   fi
   4763 done
   4764   done
   4765 IFS=$as_save_IFS
   4766 
   4767 if test $ac_prog_rejected = yes; then
   4768   # We found a bogon in the path, so make sure we never use it.
   4769   set dummy $ac_cv_prog_CC
   4770   shift
   4771   if test $# != 0; then
   4772     # We chose a different compiler from the bogus one.
   4773     # However, it has the same basename, so the bogon will be chosen
   4774     # first if we set CC to just the basename; use the full file name.
   4775     shift
   4776     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   4777   fi
   4778 fi
   4779 fi ;;
   4780 esac
   4781 fi
   4782 CC=$ac_cv_prog_CC
   4783 if test -n "$CC"; then
   4784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4785 printf "%s\n" "$CC" >&6; }
   4786 else
   4787   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4788 printf "%s\n" "no" >&6; }
   4789 fi
   4790 
   4791 
   4792 fi
   4793 if test -z "$CC"; then
   4794   if test -n "$ac_tool_prefix"; then
   4795   for ac_prog in cl.exe
   4796   do
   4797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4800 printf %s "checking for $ac_word... " >&6; }
   4801 if test ${ac_cv_prog_CC+y}
   4802 then :
   4803   printf %s "(cached) " >&6
   4804 else case e in #(
   4805   e) if test -n "$CC"; then
   4806   ac_cv_prog_CC="$CC" # Let the user override the test.
   4807 else
   4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4809 for as_dir in $PATH
   4810 do
   4811   IFS=$as_save_IFS
   4812   case $as_dir in #(((
   4813     '') as_dir=./ ;;
   4814     */) ;;
   4815     *) as_dir=$as_dir/ ;;
   4816   esac
   4817     for ac_exec_ext in '' $ac_executable_extensions; do
   4818   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4819     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4820     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4821     break 2
   4822   fi
   4823 done
   4824   done
   4825 IFS=$as_save_IFS
   4826 
   4827 fi ;;
   4828 esac
   4829 fi
   4830 CC=$ac_cv_prog_CC
   4831 if test -n "$CC"; then
   4832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4833 printf "%s\n" "$CC" >&6; }
   4834 else
   4835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4836 printf "%s\n" "no" >&6; }
   4837 fi
   4838 
   4839 
   4840     test -n "$CC" && break
   4841   done
   4842 fi
   4843 if test -z "$CC"; then
   4844   ac_ct_CC=$CC
   4845   for ac_prog in cl.exe
   4846 do
   4847   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4848 set dummy $ac_prog; ac_word=$2
   4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4850 printf %s "checking for $ac_word... " >&6; }
   4851 if test ${ac_cv_prog_ac_ct_CC+y}
   4852 then :
   4853   printf %s "(cached) " >&6
   4854 else case e in #(
   4855   e) if test -n "$ac_ct_CC"; then
   4856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4857 else
   4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4859 for as_dir in $PATH
   4860 do
   4861   IFS=$as_save_IFS
   4862   case $as_dir in #(((
   4863     '') as_dir=./ ;;
   4864     */) ;;
   4865     *) as_dir=$as_dir/ ;;
   4866   esac
   4867     for ac_exec_ext in '' $ac_executable_extensions; do
   4868   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4869     ac_cv_prog_ac_ct_CC="$ac_prog"
   4870     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4871     break 2
   4872   fi
   4873 done
   4874   done
   4875 IFS=$as_save_IFS
   4876 
   4877 fi ;;
   4878 esac
   4879 fi
   4880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4881 if test -n "$ac_ct_CC"; then
   4882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4883 printf "%s\n" "$ac_ct_CC" >&6; }
   4884 else
   4885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4886 printf "%s\n" "no" >&6; }
   4887 fi
   4888 
   4889 
   4890   test -n "$ac_ct_CC" && break
   4891 done
   4892 
   4893   if test "x$ac_ct_CC" = x; then
   4894     CC=""
   4895   else
   4896     case $cross_compiling:$ac_tool_warned in
   4897 yes:)
   4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4900 ac_tool_warned=yes ;;
   4901 esac
   4902     CC=$ac_ct_CC
   4903   fi
   4904 fi
   4905 
   4906 fi
   4907 if test -z "$CC"; then
   4908   if test -n "$ac_tool_prefix"; then
   4909   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   4910 set dummy ${ac_tool_prefix}clang; ac_word=$2
   4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4912 printf %s "checking for $ac_word... " >&6; }
   4913 if test ${ac_cv_prog_CC+y}
   4914 then :
   4915   printf %s "(cached) " >&6
   4916 else case e in #(
   4917   e) if test -n "$CC"; then
   4918   ac_cv_prog_CC="$CC" # Let the user override the test.
   4919 else
   4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4921 for as_dir in $PATH
   4922 do
   4923   IFS=$as_save_IFS
   4924   case $as_dir in #(((
   4925     '') as_dir=./ ;;
   4926     */) ;;
   4927     *) as_dir=$as_dir/ ;;
   4928   esac
   4929     for ac_exec_ext in '' $ac_executable_extensions; do
   4930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4931     ac_cv_prog_CC="${ac_tool_prefix}clang"
   4932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4933     break 2
   4934   fi
   4935 done
   4936   done
   4937 IFS=$as_save_IFS
   4938 
   4939 fi ;;
   4940 esac
   4941 fi
   4942 CC=$ac_cv_prog_CC
   4943 if test -n "$CC"; then
   4944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4945 printf "%s\n" "$CC" >&6; }
   4946 else
   4947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4948 printf "%s\n" "no" >&6; }
   4949 fi
   4950 
   4951 
   4952 fi
   4953 if test -z "$ac_cv_prog_CC"; then
   4954   ac_ct_CC=$CC
   4955   # Extract the first word of "clang", so it can be a program name with args.
   4956 set dummy clang; ac_word=$2
   4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4958 printf %s "checking for $ac_word... " >&6; }
   4959 if test ${ac_cv_prog_ac_ct_CC+y}
   4960 then :
   4961   printf %s "(cached) " >&6
   4962 else case e in #(
   4963   e) if test -n "$ac_ct_CC"; then
   4964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4965 else
   4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4967 for as_dir in $PATH
   4968 do
   4969   IFS=$as_save_IFS
   4970   case $as_dir in #(((
   4971     '') as_dir=./ ;;
   4972     */) ;;
   4973     *) as_dir=$as_dir/ ;;
   4974   esac
   4975     for ac_exec_ext in '' $ac_executable_extensions; do
   4976   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4977     ac_cv_prog_ac_ct_CC="clang"
   4978     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4979     break 2
   4980   fi
   4981 done
   4982   done
   4983 IFS=$as_save_IFS
   4984 
   4985 fi ;;
   4986 esac
   4987 fi
   4988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4989 if test -n "$ac_ct_CC"; then
   4990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4991 printf "%s\n" "$ac_ct_CC" >&6; }
   4992 else
   4993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4994 printf "%s\n" "no" >&6; }
   4995 fi
   4996 
   4997   if test "x$ac_ct_CC" = x; then
   4998     CC=""
   4999   else
   5000     case $cross_compiling:$ac_tool_warned in
   5001 yes:)
   5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5004 ac_tool_warned=yes ;;
   5005 esac
   5006     CC=$ac_ct_CC
   5007   fi
   5008 else
   5009   CC="$ac_cv_prog_CC"
   5010 fi
   5011 
   5012 fi
   5013 
   5014 
   5015 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   5016 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   5017 as_fn_error $? "no acceptable C compiler found in \$PATH
   5018 See 'config.log' for more details" "$LINENO" 5; }
   5019 
   5020 # Provide some information about the compiler.
   5021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   5022 set X $ac_compile
   5023 ac_compiler=$2
   5024 for ac_option in --version -v -V -qversion -version; do
   5025   { { ac_try="$ac_compiler $ac_option >&5"
   5026 case "(($ac_try" in
   5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5028   *) ac_try_echo=$ac_try;;
   5029 esac
   5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5031 printf "%s\n" "$ac_try_echo"; } >&5
   5032   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5033   ac_status=$?
   5034   if test -s conftest.err; then
   5035     sed '10a\
   5036 ... rest of stderr output deleted ...
   5037          10q' conftest.err >conftest.er1
   5038     cat conftest.er1 >&5
   5039   fi
   5040   rm -f conftest.er1 conftest.err
   5041   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5042   test $ac_status = 0; }
   5043 done
   5044 
   5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   5046 printf %s "checking whether the compiler supports GNU C... " >&6; }
   5047 if test ${ac_cv_c_compiler_gnu+y}
   5048 then :
   5049   printf %s "(cached) " >&6
   5050 else case e in #(
   5051   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5052 /* end confdefs.h.  */
   5053 
   5054 int
   5055 main (void)
   5056 {
   5057 #ifndef __GNUC__
   5058        choke me
   5059 #endif
   5060 
   5061   ;
   5062   return 0;
   5063 }
   5064 _ACEOF
   5065 if ac_fn_c_try_compile "$LINENO"
   5066 then :
   5067   ac_compiler_gnu=yes
   5068 else case e in #(
   5069   e) ac_compiler_gnu=no ;;
   5070 esac
   5071 fi
   5072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   5074  ;;
   5075 esac
   5076 fi
   5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   5078 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5080 
   5081 if test $ac_compiler_gnu = yes; then
   5082   GCC=yes
   5083 else
   5084   GCC=
   5085 fi
   5086 ac_test_CFLAGS=${CFLAGS+y}
   5087 ac_save_CFLAGS=$CFLAGS
   5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   5089 printf %s "checking whether $CC accepts -g... " >&6; }
   5090 if test ${ac_cv_prog_cc_g+y}
   5091 then :
   5092   printf %s "(cached) " >&6
   5093 else case e in #(
   5094   e) ac_save_c_werror_flag=$ac_c_werror_flag
   5095    ac_c_werror_flag=yes
   5096    ac_cv_prog_cc_g=no
   5097    CFLAGS="-g"
   5098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5099 /* end confdefs.h.  */
   5100 
   5101 int
   5102 main (void)
   5103 {
   5104 
   5105   ;
   5106   return 0;
   5107 }
   5108 _ACEOF
   5109 if ac_fn_c_try_compile "$LINENO"
   5110 then :
   5111   ac_cv_prog_cc_g=yes
   5112 else case e in #(
   5113   e) CFLAGS=""
   5114       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5115 /* end confdefs.h.  */
   5116 
   5117 int
   5118 main (void)
   5119 {
   5120 
   5121   ;
   5122   return 0;
   5123 }
   5124 _ACEOF
   5125 if ac_fn_c_try_compile "$LINENO"
   5126 then :
   5127 
   5128 else case e in #(
   5129   e) ac_c_werror_flag=$ac_save_c_werror_flag
   5130 	 CFLAGS="-g"
   5131 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5132 /* end confdefs.h.  */
   5133 
   5134 int
   5135 main (void)
   5136 {
   5137 
   5138   ;
   5139   return 0;
   5140 }
   5141 _ACEOF
   5142 if ac_fn_c_try_compile "$LINENO"
   5143 then :
   5144   ac_cv_prog_cc_g=yes
   5145 fi
   5146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5147 esac
   5148 fi
   5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5150 esac
   5151 fi
   5152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5153    ac_c_werror_flag=$ac_save_c_werror_flag ;;
   5154 esac
   5155 fi
   5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   5157 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   5158 if test $ac_test_CFLAGS; then
   5159   CFLAGS=$ac_save_CFLAGS
   5160 elif test $ac_cv_prog_cc_g = yes; then
   5161   if test "$GCC" = yes; then
   5162     CFLAGS="-g -O2"
   5163   else
   5164     CFLAGS="-g"
   5165   fi
   5166 else
   5167   if test "$GCC" = yes; then
   5168     CFLAGS="-O2"
   5169   else
   5170     CFLAGS=
   5171   fi
   5172 fi
   5173 ac_prog_cc_stdc=no
   5174 if test x$ac_prog_cc_stdc = xno
   5175 then :
   5176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   5177 printf %s "checking for $CC option to enable C11 features... " >&6; }
   5178 if test ${ac_cv_prog_cc_c11+y}
   5179 then :
   5180   printf %s "(cached) " >&6
   5181 else case e in #(
   5182   e) ac_cv_prog_cc_c11=no
   5183 ac_save_CC=$CC
   5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5185 /* end confdefs.h.  */
   5186 $ac_c_conftest_c11_program
   5187 _ACEOF
   5188 for ac_arg in '' -std=gnu11
   5189 do
   5190   CC="$ac_save_CC $ac_arg"
   5191   if ac_fn_c_try_compile "$LINENO"
   5192 then :
   5193   ac_cv_prog_cc_c11=$ac_arg
   5194 fi
   5195 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5196   test "x$ac_cv_prog_cc_c11" != "xno" && break
   5197 done
   5198 rm -f conftest.$ac_ext
   5199 CC=$ac_save_CC ;;
   5200 esac
   5201 fi
   5202 
   5203 if test "x$ac_cv_prog_cc_c11" = xno
   5204 then :
   5205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5206 printf "%s\n" "unsupported" >&6; }
   5207 else case e in #(
   5208   e) if test "x$ac_cv_prog_cc_c11" = x
   5209 then :
   5210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5211 printf "%s\n" "none needed" >&6; }
   5212 else case e in #(
   5213   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   5214 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   5215      CC="$CC $ac_cv_prog_cc_c11" ;;
   5216 esac
   5217 fi
   5218   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   5219   ac_prog_cc_stdc=c11 ;;
   5220 esac
   5221 fi
   5222 fi
   5223 if test x$ac_prog_cc_stdc = xno
   5224 then :
   5225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   5226 printf %s "checking for $CC option to enable C99 features... " >&6; }
   5227 if test ${ac_cv_prog_cc_c99+y}
   5228 then :
   5229   printf %s "(cached) " >&6
   5230 else case e in #(
   5231   e) ac_cv_prog_cc_c99=no
   5232 ac_save_CC=$CC
   5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5234 /* end confdefs.h.  */
   5235 $ac_c_conftest_c99_program
   5236 _ACEOF
   5237 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   5238 do
   5239   CC="$ac_save_CC $ac_arg"
   5240   if ac_fn_c_try_compile "$LINENO"
   5241 then :
   5242   ac_cv_prog_cc_c99=$ac_arg
   5243 fi
   5244 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5245   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5246 done
   5247 rm -f conftest.$ac_ext
   5248 CC=$ac_save_CC ;;
   5249 esac
   5250 fi
   5251 
   5252 if test "x$ac_cv_prog_cc_c99" = xno
   5253 then :
   5254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5255 printf "%s\n" "unsupported" >&6; }
   5256 else case e in #(
   5257   e) if test "x$ac_cv_prog_cc_c99" = x
   5258 then :
   5259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5260 printf "%s\n" "none needed" >&6; }
   5261 else case e in #(
   5262   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5263 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   5264      CC="$CC $ac_cv_prog_cc_c99" ;;
   5265 esac
   5266 fi
   5267   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   5268   ac_prog_cc_stdc=c99 ;;
   5269 esac
   5270 fi
   5271 fi
   5272 if test x$ac_prog_cc_stdc = xno
   5273 then :
   5274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   5275 printf %s "checking for $CC option to enable C89 features... " >&6; }
   5276 if test ${ac_cv_prog_cc_c89+y}
   5277 then :
   5278   printf %s "(cached) " >&6
   5279 else case e in #(
   5280   e) ac_cv_prog_cc_c89=no
   5281 ac_save_CC=$CC
   5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5283 /* end confdefs.h.  */
   5284 $ac_c_conftest_c89_program
   5285 _ACEOF
   5286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5287 do
   5288   CC="$ac_save_CC $ac_arg"
   5289   if ac_fn_c_try_compile "$LINENO"
   5290 then :
   5291   ac_cv_prog_cc_c89=$ac_arg
   5292 fi
   5293 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5294   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5295 done
   5296 rm -f conftest.$ac_ext
   5297 CC=$ac_save_CC ;;
   5298 esac
   5299 fi
   5300 
   5301 if test "x$ac_cv_prog_cc_c89" = xno
   5302 then :
   5303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5304 printf "%s\n" "unsupported" >&6; }
   5305 else case e in #(
   5306   e) if test "x$ac_cv_prog_cc_c89" = x
   5307 then :
   5308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5309 printf "%s\n" "none needed" >&6; }
   5310 else case e in #(
   5311   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5312 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   5313      CC="$CC $ac_cv_prog_cc_c89" ;;
   5314 esac
   5315 fi
   5316   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   5317   ac_prog_cc_stdc=c89 ;;
   5318 esac
   5319 fi
   5320 fi
   5321 
   5322 ac_ext=c
   5323 ac_cpp='$CPP $CPPFLAGS'
   5324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5327 
   5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   5329 printf %s "checking for a sed that does not truncate output... " >&6; }
   5330 if test ${ac_cv_path_SED+y}
   5331 then :
   5332   printf %s "(cached) " >&6
   5333 else case e in #(
   5334   e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   5335      for ac_i in 1 2 3 4 5 6 7; do
   5336        ac_script="$ac_script$as_nl$ac_script"
   5337      done
   5338      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   5339      { ac_script=; unset ac_script;}
   5340      if test -z "$SED"; then
   5341   ac_path_SED_found=false
   5342   # Loop through the user's path and test for each of PROGNAME-LIST
   5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5344 for as_dir in $PATH
   5345 do
   5346   IFS=$as_save_IFS
   5347   case $as_dir in #(((
   5348     '') as_dir=./ ;;
   5349     */) ;;
   5350     *) as_dir=$as_dir/ ;;
   5351   esac
   5352     for ac_prog in sed gsed
   5353    do
   5354     for ac_exec_ext in '' $ac_executable_extensions; do
   5355       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   5356       as_fn_executable_p "$ac_path_SED" || continue
   5357 # Check for GNU ac_path_SED and select it if it is found.
   5358   # Check for GNU $ac_path_SED
   5359 case `"$ac_path_SED" --version 2>&1` in #(
   5360 *GNU*)
   5361   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   5362 #(
   5363 *)
   5364   ac_count=0
   5365   printf %s 0123456789 >"conftest.in"
   5366   while :
   5367   do
   5368     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5369     mv "conftest.tmp" "conftest.in"
   5370     cp "conftest.in" "conftest.nl"
   5371     printf "%s\n" '' >> "conftest.nl"
   5372     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5373     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5374     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5375     if test $ac_count -gt ${ac_path_SED_max-0}; then
   5376       # Best one so far, save it but keep looking for a better one
   5377       ac_cv_path_SED="$ac_path_SED"
   5378       ac_path_SED_max=$ac_count
   5379     fi
   5380     # 10*(2^10) chars as input seems more than enough
   5381     test $ac_count -gt 10 && break
   5382   done
   5383   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5384 esac
   5385 
   5386       $ac_path_SED_found && break 3
   5387     done
   5388   done
   5389   done
   5390 IFS=$as_save_IFS
   5391   if test -z "$ac_cv_path_SED"; then
   5392     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   5393   fi
   5394 else
   5395   ac_cv_path_SED=$SED
   5396 fi
   5397  ;;
   5398 esac
   5399 fi
   5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   5401 printf "%s\n" "$ac_cv_path_SED" >&6; }
   5402  SED="$ac_cv_path_SED"
   5403   rm -f conftest.sed
   5404 
   5405 for ac_prog in gawk mawk nawk awk
   5406 do
   5407   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5408 set dummy $ac_prog; ac_word=$2
   5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5410 printf %s "checking for $ac_word... " >&6; }
   5411 if test ${ac_cv_prog_AWK+y}
   5412 then :
   5413   printf %s "(cached) " >&6
   5414 else case e in #(
   5415   e) if test -n "$AWK"; then
   5416   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5417 else
   5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5419 for as_dir in $PATH
   5420 do
   5421   IFS=$as_save_IFS
   5422   case $as_dir in #(((
   5423     '') as_dir=./ ;;
   5424     */) ;;
   5425     *) as_dir=$as_dir/ ;;
   5426   esac
   5427     for ac_exec_ext in '' $ac_executable_extensions; do
   5428   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5429     ac_cv_prog_AWK="$ac_prog"
   5430     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5431     break 2
   5432   fi
   5433 done
   5434   done
   5435 IFS=$as_save_IFS
   5436 
   5437 fi ;;
   5438 esac
   5439 fi
   5440 AWK=$ac_cv_prog_AWK
   5441 if test -n "$AWK"; then
   5442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5443 printf "%s\n" "$AWK" >&6; }
   5444 else
   5445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5446 printf "%s\n" "no" >&6; }
   5447 fi
   5448 
   5449 
   5450   test -n "$AWK" && break
   5451 done
   5452 
   5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5454 printf %s "checking for grep that handles long lines and -e... " >&6; }
   5455 if test ${ac_cv_path_GREP+y}
   5456 then :
   5457   printf %s "(cached) " >&6
   5458 else case e in #(
   5459   e) if test -z "$GREP"; then
   5460   ac_path_GREP_found=false
   5461   # Loop through the user's path and test for each of PROGNAME-LIST
   5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5464 do
   5465   IFS=$as_save_IFS
   5466   case $as_dir in #(((
   5467     '') as_dir=./ ;;
   5468     */) ;;
   5469     *) as_dir=$as_dir/ ;;
   5470   esac
   5471     for ac_prog in grep ggrep
   5472    do
   5473     for ac_exec_ext in '' $ac_executable_extensions; do
   5474       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   5475       as_fn_executable_p "$ac_path_GREP" || continue
   5476 # Check for GNU ac_path_GREP and select it if it is found.
   5477   # Check for GNU $ac_path_GREP
   5478 case `"$ac_path_GREP" --version 2>&1` in #(
   5479 *GNU*)
   5480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5481 #(
   5482 *)
   5483   ac_count=0
   5484   printf %s 0123456789 >"conftest.in"
   5485   while :
   5486   do
   5487     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5488     mv "conftest.tmp" "conftest.in"
   5489     cp "conftest.in" "conftest.nl"
   5490     printf "%s\n" 'GREP' >> "conftest.nl"
   5491     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5493     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5494     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5495       # Best one so far, save it but keep looking for a better one
   5496       ac_cv_path_GREP="$ac_path_GREP"
   5497       ac_path_GREP_max=$ac_count
   5498     fi
   5499     # 10*(2^10) chars as input seems more than enough
   5500     test $ac_count -gt 10 && break
   5501   done
   5502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5503 esac
   5504 
   5505       $ac_path_GREP_found && break 3
   5506     done
   5507   done
   5508   done
   5509 IFS=$as_save_IFS
   5510   if test -z "$ac_cv_path_GREP"; then
   5511     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5512   fi
   5513 else
   5514   ac_cv_path_GREP=$GREP
   5515 fi
   5516  ;;
   5517 esac
   5518 fi
   5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5520 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   5521  GREP="$ac_cv_path_GREP"
   5522 
   5523 
   5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5525 printf %s "checking for egrep... " >&6; }
   5526 if test ${ac_cv_path_EGREP+y}
   5527 then :
   5528   printf %s "(cached) " >&6
   5529 else case e in #(
   5530   e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5531    then ac_cv_path_EGREP="$GREP -E"
   5532    else
   5533      if test -z "$EGREP"; then
   5534   ac_path_EGREP_found=false
   5535   # Loop through the user's path and test for each of PROGNAME-LIST
   5536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5538 do
   5539   IFS=$as_save_IFS
   5540   case $as_dir in #(((
   5541     '') as_dir=./ ;;
   5542     */) ;;
   5543     *) as_dir=$as_dir/ ;;
   5544   esac
   5545     for ac_prog in egrep
   5546    do
   5547     for ac_exec_ext in '' $ac_executable_extensions; do
   5548       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   5549       as_fn_executable_p "$ac_path_EGREP" || continue
   5550 # Check for GNU ac_path_EGREP and select it if it is found.
   5551   # Check for GNU $ac_path_EGREP
   5552 case `"$ac_path_EGREP" --version 2>&1` in #(
   5553 *GNU*)
   5554   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5555 #(
   5556 *)
   5557   ac_count=0
   5558   printf %s 0123456789 >"conftest.in"
   5559   while :
   5560   do
   5561     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5562     mv "conftest.tmp" "conftest.in"
   5563     cp "conftest.in" "conftest.nl"
   5564     printf "%s\n" 'EGREP' >> "conftest.nl"
   5565     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5567     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5568     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5569       # Best one so far, save it but keep looking for a better one
   5570       ac_cv_path_EGREP="$ac_path_EGREP"
   5571       ac_path_EGREP_max=$ac_count
   5572     fi
   5573     # 10*(2^10) chars as input seems more than enough
   5574     test $ac_count -gt 10 && break
   5575   done
   5576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5577 esac
   5578 
   5579       $ac_path_EGREP_found && break 3
   5580     done
   5581   done
   5582   done
   5583 IFS=$as_save_IFS
   5584   if test -z "$ac_cv_path_EGREP"; then
   5585     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5586   fi
   5587 else
   5588   ac_cv_path_EGREP=$EGREP
   5589 fi
   5590 
   5591    fi ;;
   5592 esac
   5593 fi
   5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5595 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   5596  EGREP="$ac_cv_path_EGREP"
   5597 
   5598          EGREP_TRADITIONAL=$EGREP
   5599  ac_cv_path_EGREP_TRADITIONAL=$EGREP
   5600 
   5601 for ac_prog in flex lex
   5602 do
   5603   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5604 set dummy $ac_prog; ac_word=$2
   5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5606 printf %s "checking for $ac_word... " >&6; }
   5607 if test ${ac_cv_prog_LEX+y}
   5608 then :
   5609   printf %s "(cached) " >&6
   5610 else case e in #(
   5611   e) if test -n "$LEX"; then
   5612   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   5613 else
   5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5615 for as_dir in $PATH
   5616 do
   5617   IFS=$as_save_IFS
   5618   case $as_dir in #(((
   5619     '') as_dir=./ ;;
   5620     */) ;;
   5621     *) as_dir=$as_dir/ ;;
   5622   esac
   5623     for ac_exec_ext in '' $ac_executable_extensions; do
   5624   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5625     ac_cv_prog_LEX="$ac_prog"
   5626     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5627     break 2
   5628   fi
   5629 done
   5630   done
   5631 IFS=$as_save_IFS
   5632 
   5633 fi ;;
   5634 esac
   5635 fi
   5636 LEX=$ac_cv_prog_LEX
   5637 if test -n "$LEX"; then
   5638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   5639 printf "%s\n" "$LEX" >&6; }
   5640 else
   5641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5642 printf "%s\n" "no" >&6; }
   5643 fi
   5644 
   5645 
   5646   test -n "$LEX" && break
   5647 done
   5648 test -n "$LEX" || LEX=":"
   5649 
   5650   if test "x$LEX" != "x:"; then
   5651     cat >conftest.l <<_ACEOF
   5652 %{
   5653 #ifdef __cplusplus
   5654 extern "C"
   5655 #endif
   5656 int yywrap(void);
   5657 %}
   5658 %%
   5659 a { ECHO; }
   5660 b { REJECT; }
   5661 c { yymore (); }
   5662 d { yyless (1); }
   5663 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
   5664 #ifdef __cplusplus
   5665     yyless ((yyinput () != 0));
   5666 #else
   5667     yyless ((input () != 0));
   5668 #endif
   5669   }
   5670 f { unput (yytext[0]); }
   5671 . { BEGIN INITIAL; }
   5672 %%
   5673 #ifdef YYTEXT_POINTER
   5674 extern char *yytext;
   5675 #endif
   5676 int
   5677 yywrap (void)
   5678 {
   5679   return 1;
   5680 }
   5681 int
   5682 main (void)
   5683 {
   5684   return ! yylex ();
   5685 }
   5686 _ACEOF
   5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
   5688 printf %s "checking for lex output file root... " >&6; }
   5689 if test ${ac_cv_prog_lex_root+y}
   5690 then :
   5691   printf %s "(cached) " >&6
   5692 else case e in #(
   5693   e)
   5694 ac_cv_prog_lex_root=unknown
   5695 { { ac_try="$LEX conftest.l"
   5696 case "(($ac_try" in
   5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5698   *) ac_try_echo=$ac_try;;
   5699 esac
   5700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5701 printf "%s\n" "$ac_try_echo"; } >&5
   5702   (eval "$LEX conftest.l") 2>&5
   5703   ac_status=$?
   5704   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5705   test $ac_status = 0; } &&
   5706 if test -f lex.yy.c; then
   5707   ac_cv_prog_lex_root=lex.yy
   5708 elif test -f lexyy.c; then
   5709   ac_cv_prog_lex_root=lexyy
   5710 fi ;;
   5711 esac
   5712 fi
   5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
   5714 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
   5715 if test "$ac_cv_prog_lex_root" = unknown
   5716 then :
   5717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
   5718 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
   5719    LEX=: LEXLIB=
   5720 fi
   5721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
   5722 
   5723 if test ${LEXLIB+y}
   5724 then :
   5725 
   5726 else case e in #(
   5727   e)
   5728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
   5729 printf %s "checking for lex library... " >&6; }
   5730 if test ${ac_cv_lib_lex+y}
   5731 then :
   5732   printf %s "(cached) " >&6
   5733 else case e in #(
   5734   e)
   5735     ac_save_LIBS="$LIBS"
   5736     ac_found=false
   5737     for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
   5738       case $ac_cv_lib_lex in #(
   5739   'none needed') :
   5740      ;; #(
   5741   'not found') :
   5742     break ;; #(
   5743   *) :
   5744     LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
   5745   *) :
   5746      ;;
   5747 esac
   5748 
   5749       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5750 /* end confdefs.h.  */
   5751 `cat $LEX_OUTPUT_ROOT.c`
   5752 _ACEOF
   5753 if ac_fn_c_try_link "$LINENO"
   5754 then :
   5755   ac_found=:
   5756 fi
   5757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5758     conftest$ac_exeext conftest.$ac_ext
   5759       if $ac_found; then
   5760         break
   5761       fi
   5762     done
   5763     LIBS="$ac_save_LIBS"
   5764    ;;
   5765 esac
   5766 fi
   5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
   5768 printf "%s\n" "$ac_cv_lib_lex" >&6; }
   5769   if test "$ac_cv_lib_lex" = 'not found'
   5770 then :
   5771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
   5772 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
   5773 	 LEX=: LEXLIB=
   5774 elif test "$ac_cv_lib_lex" = 'none needed'
   5775 then :
   5776   LEXLIB=''
   5777 else case e in #(
   5778   e) LEXLIB=$ac_cv_lib_lex ;;
   5779 esac
   5780 fi
   5781    ;;
   5782 esac
   5783 fi
   5784 
   5785 
   5786 if test "$LEX" != :
   5787 then :
   5788 
   5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
   5790 printf %s "checking whether yytext is a pointer... " >&6; }
   5791 if test ${ac_cv_prog_lex_yytext_pointer+y}
   5792 then :
   5793   printf %s "(cached) " >&6
   5794 else case e in #(
   5795   e) # POSIX says lex can declare yytext either as a pointer or an array; the
   5796 # default is implementation-dependent.  Figure out which it is, since
   5797 # not all implementations provide the %pointer and %array declarations.
   5798 ac_cv_prog_lex_yytext_pointer=no
   5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5800 /* end confdefs.h.  */
   5801 
   5802   #define YYTEXT_POINTER 1
   5803 `cat $LEX_OUTPUT_ROOT.c`
   5804 _ACEOF
   5805 if ac_fn_c_try_compile "$LINENO"
   5806 then :
   5807   ac_cv_prog_lex_yytext_pointer=yes
   5808 fi
   5809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5810  ;;
   5811 esac
   5812 fi
   5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
   5814 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
   5815 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   5816 
   5817 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
   5818 
   5819 fi
   5820 
   5821 fi
   5822 rm -f conftest.l $LEX_OUTPUT_ROOT.c
   5823 
   5824 fi
   5825 for ac_prog in 'bison -y' byacc
   5826 do
   5827   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5828 set dummy $ac_prog; ac_word=$2
   5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5830 printf %s "checking for $ac_word... " >&6; }
   5831 if test ${ac_cv_prog_YACC+y}
   5832 then :
   5833   printf %s "(cached) " >&6
   5834 else case e in #(
   5835   e) if test -n "$YACC"; then
   5836   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   5837 else
   5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5839 for as_dir in $PATH
   5840 do
   5841   IFS=$as_save_IFS
   5842   case $as_dir in #(((
   5843     '') as_dir=./ ;;
   5844     */) ;;
   5845     *) as_dir=$as_dir/ ;;
   5846   esac
   5847     for ac_exec_ext in '' $ac_executable_extensions; do
   5848   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5849     ac_cv_prog_YACC="$ac_prog"
   5850     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5851     break 2
   5852   fi
   5853 done
   5854   done
   5855 IFS=$as_save_IFS
   5856 
   5857 fi ;;
   5858 esac
   5859 fi
   5860 YACC=$ac_cv_prog_YACC
   5861 if test -n "$YACC"; then
   5862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   5863 printf "%s\n" "$YACC" >&6; }
   5864 else
   5865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5866 printf "%s\n" "no" >&6; }
   5867 fi
   5868 
   5869 
   5870   test -n "$YACC" && break
   5871 done
   5872 test -n "$YACC" || YACC="yacc"
   5873 
   5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   5875 printf %s "checking whether ln -s works... " >&6; }
   5876 LN_S=$as_ln_s
   5877 if test "$LN_S" = "ln -s"; then
   5878   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5879 printf "%s\n" "yes" >&6; }
   5880 else
   5881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   5882 printf "%s\n" "no, using $LN_S" >&6; }
   5883 fi
   5884 
   5885 
   5886 
   5887   # Find a good install program.  We prefer a C program (faster),
   5888 # so one script is as good as another.  But avoid the broken or
   5889 # incompatible versions:
   5890 # SysV /etc/install, /usr/sbin/install
   5891 # SunOS /usr/etc/install
   5892 # IRIX /sbin/install
   5893 # AIX /bin/install
   5894 # AmigaOS /C/install, which installs bootblocks on floppy discs
   5895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5898 # OS/2's system install, which has a completely different semantic
   5899 # ./install, which can be erroneously created by make from ./install.sh.
   5900 # Reject install programs that cannot install multiple files.
   5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   5902 printf %s "checking for a BSD-compatible install... " >&6; }
   5903 if test -z "$INSTALL"; then
   5904 if test ${ac_cv_path_install+y}
   5905 then :
   5906   printf %s "(cached) " >&6
   5907 else case e in #(
   5908   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5909 for as_dir in $PATH
   5910 do
   5911   IFS=$as_save_IFS
   5912   case $as_dir in #(((
   5913     '') as_dir=./ ;;
   5914     */) ;;
   5915     *) as_dir=$as_dir/ ;;
   5916   esac
   5917     # Account for fact that we put trailing slashes in our PATH walk.
   5918 case $as_dir in #((
   5919   ./ | /[cC]/* | \
   5920   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5921   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   5922   /usr/ucb/* ) ;;
   5923   *)
   5924     # OSF1 and SCO ODT 3.0 have their own names for install.
   5925     # Don't use installbsd from OSF since it installs stuff as root
   5926     # by default.
   5927     for ac_prog in ginstall scoinst install; do
   5928       for ac_exec_ext in '' $ac_executable_extensions; do
   5929 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   5930 	  if test $ac_prog = install &&
   5931 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5932 	    # AIX install.  It has an incompatible calling convention.
   5933 	    :
   5934 	  elif test $ac_prog = install &&
   5935 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5936 	    # program-specific install script used by HP pwplus--don't use.
   5937 	    :
   5938 	  else
   5939 	    rm -rf conftest.one conftest.two conftest.dir
   5940 	    echo one > conftest.one
   5941 	    echo two > conftest.two
   5942 	    mkdir conftest.dir
   5943 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   5944 	      test -s conftest.one && test -s conftest.two &&
   5945 	      test -s conftest.dir/conftest.one &&
   5946 	      test -s conftest.dir/conftest.two
   5947 	    then
   5948 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   5949 	      break 3
   5950 	    fi
   5951 	  fi
   5952 	fi
   5953       done
   5954     done
   5955     ;;
   5956 esac
   5957 
   5958   done
   5959 IFS=$as_save_IFS
   5960 
   5961 rm -rf conftest.one conftest.two conftest.dir
   5962  ;;
   5963 esac
   5964 fi
   5965   if test ${ac_cv_path_install+y}; then
   5966     INSTALL=$ac_cv_path_install
   5967   else
   5968     # As a last resort, use the slow shell script.  Don't cache a
   5969     # value for INSTALL within a source directory, because that will
   5970     # break other packages using the cache if that directory is
   5971     # removed, or if the value is a relative name.
   5972     INSTALL=$ac_install_sh
   5973   fi
   5974 fi
   5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   5976 printf "%s\n" "$INSTALL" >&6; }
   5977 
   5978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5979 # It thinks the first close brace ends the variable substitution.
   5980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5981 
   5982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5983 
   5984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5985 
   5986 
   5987 if test "$LEX" != ":" -a "$LEX" != ""; then
   5988 # Solaris provides anemic tools, and they don't offer GNU extensions like
   5989 # 'flex -i'. Solaris also does not offer GNU replacements in /usr/gnu/bin.
   5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lex accepts -i" >&5
   5991 printf %s "checking whether lex accepts -i... " >&6; }
   5992 if echo "%%" | $LEX -i -t >/dev/null 2>&1
   5993 then :
   5994 
   5995     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5996 printf "%s\n" "yes" >&6; }
   5997 
   5998 else case e in #(
   5999   e)
   6000     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6001 printf "%s\n" "no" >&6; }
   6002     as_fn_error $? "unable to find a lexer that supports -i. If one is available then set the LEX variable" "$LINENO" 5
   6003 
   6004  ;;
   6005 esac
   6006 fi
   6007 
   6008   # Check if lex defines yy_current_buffer, because 2.4.6 and older use it,
   6009   # but later could define it as a macro and then we should not redefine it.
   6010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5
   6011 printf %s "checking if lex defines yy_current_buffer... " >&6; }
   6012   cat <<EOF >conftest.lex
   6013 %%
   6014 EOF
   6015   $LEX -i -t conftest.lex >> conftest.c 2>/dev/null
   6016   if $GREP "^#define yy_current_buffer" conftest.c >/dev/null; then
   6017 
   6018 printf "%s\n" "#define LEX_DEFINES_YY_CURRENT_BUFFER 1" >>confdefs.h
   6019 
   6020 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6021 printf "%s\n" "yes" >&6; }
   6022   else
   6023 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6024 printf "%s\n" "no" >&6; }
   6025   fi
   6026   rm -f conftest.lex conftest.c
   6027 fi
   6028 
   6029 
   6030 
   6031 
   6032 
   6033 
   6034 
   6035 
   6036 # Checks for typedefs, structures, and compiler characteristics.
   6037 # allow user to override the -g -O2 flags.
   6038 if test "x$CFLAGS" = "x" ; then
   6039 
   6040 
   6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
   6042 printf %s "checking whether $CC supports -g... " >&6; }
   6043 cache=`echo g | sed 'y%.=/+-%___p_%'`
   6044 if eval test \${cv_prog_cc_flag_$cache+y}
   6045 then :
   6046   printf %s "(cached) " >&6
   6047 else case e in #(
   6048   e)
   6049 echo 'void f(void){}' >conftest.c
   6050 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
   6051 eval "cv_prog_cc_flag_$cache=yes"
   6052 else
   6053 eval "cv_prog_cc_flag_$cache=no"
   6054 fi
   6055 rm -f conftest conftest.o conftest.c
   6056  ;;
   6057 esac
   6058 fi
   6059 
   6060 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6062 printf "%s\n" "yes" >&6; }
   6063 :
   6064 CFLAGS="$CFLAGS -g"
   6065 else
   6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6067 printf "%s\n" "no" >&6; }
   6068 :
   6069 
   6070 fi
   6071 
   6072 	# we do not use O3 because it causes miscompilations.
   6073 
   6074 
   6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
   6076 printf %s "checking whether $CC supports -O2... " >&6; }
   6077 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
   6078 if eval test \${cv_prog_cc_flag_$cache+y}
   6079 then :
   6080   printf %s "(cached) " >&6
   6081 else case e in #(
   6082   e)
   6083 echo 'void f(void){}' >conftest.c
   6084 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
   6085 eval "cv_prog_cc_flag_$cache=yes"
   6086 else
   6087 eval "cv_prog_cc_flag_$cache=no"
   6088 fi
   6089 rm -f conftest conftest.o conftest.c
   6090  ;;
   6091 esac
   6092 fi
   6093 
   6094 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6096 printf "%s\n" "yes" >&6; }
   6097 :
   6098 CFLAGS="$CFLAGS -O2"
   6099 else
   6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6101 printf "%s\n" "no" >&6; }
   6102 :
   6103 
   6104 fi
   6105 
   6106 
   6107     # Check whether --enable-flto was given.
   6108 if test ${enable_flto+y}
   6109 then :
   6110   enableval=$enable_flto;
   6111 fi
   6112 
   6113     if test "x$enable_flto" != "xno"
   6114 then :
   6115 
   6116         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
   6117 printf %s "checking if $CC supports -flto... " >&6; }
   6118         BAKCFLAGS="$CFLAGS"
   6119         CFLAGS="$CFLAGS -flto"
   6120         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6121 /* end confdefs.h.  */
   6122 
   6123 int
   6124 main (void)
   6125 {
   6126 
   6127   ;
   6128   return 0;
   6129 }
   6130 _ACEOF
   6131 if ac_fn_c_try_link "$LINENO"
   6132 then :
   6133 
   6134             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
   6135                 CFLAGS="$BAKCFLAGS"
   6136                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6137 printf "%s\n" "no" >&6; }
   6138             else
   6139                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6140 printf "%s\n" "yes" >&6; }
   6141             fi
   6142             rm -f conftest conftest.c conftest.o
   6143 
   6144 else case e in #(
   6145   e) CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6146 printf "%s\n" "no" >&6; } ;;
   6147 esac
   6148 fi
   6149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6150     conftest$ac_exeext conftest.$ac_ext
   6151 
   6152 fi
   6153 
   6154 
   6155     # Check whether --enable-pie was given.
   6156 if test ${enable_pie+y}
   6157 then :
   6158   enableval=$enable_pie;
   6159 fi
   6160 
   6161     if test "x$enable_pie" = "xyes"
   6162 then :
   6163 
   6164 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
   6165 printf %s "checking if $CC supports PIE... " >&6; }
   6166 	BAKLDFLAGS="$LDFLAGS"
   6167 	BAKCFLAGS="$CFLAGS"
   6168 	LDFLAGS="$LDFLAGS -pie"
   6169 	CFLAGS="$CFLAGS -fPIE"
   6170 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6171 /* end confdefs.h.  */
   6172 
   6173 int
   6174 main (void)
   6175 {
   6176 
   6177   ;
   6178   return 0;
   6179 }
   6180 _ACEOF
   6181 if ac_fn_c_try_link "$LINENO"
   6182 then :
   6183 
   6184 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6185 		LDFLAGS="$BAKLDFLAGS"
   6186 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6187 printf "%s\n" "no" >&6; }
   6188 	    else
   6189 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6190 printf "%s\n" "yes" >&6; }
   6191 	    fi
   6192 	    rm -f conftest conftest.c conftest.o
   6193 
   6194 else case e in #(
   6195   e) LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6196 printf "%s\n" "no" >&6; } ;;
   6197 esac
   6198 fi
   6199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6200     conftest$ac_exeext conftest.$ac_ext
   6201 
   6202 fi
   6203 
   6204 
   6205     # Check whether --enable-relro_now was given.
   6206 if test ${enable_relro_now+y}
   6207 then :
   6208   enableval=$enable_relro_now;
   6209 fi
   6210 
   6211     if test "x$enable_relro_now" = "xyes"
   6212 then :
   6213 
   6214 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
   6215 printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
   6216 	BAKLDFLAGS="$LDFLAGS"
   6217 	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
   6218 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6219 /* end confdefs.h.  */
   6220 
   6221 int
   6222 main (void)
   6223 {
   6224 
   6225   ;
   6226   return 0;
   6227 }
   6228 _ACEOF
   6229 if ac_fn_c_try_link "$LINENO"
   6230 then :
   6231 
   6232 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6233 		LDFLAGS="$BAKLDFLAGS"
   6234 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6235 printf "%s\n" "no" >&6; }
   6236 	    else
   6237 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6238 printf "%s\n" "yes" >&6; }
   6239 	    fi
   6240 	    rm -f conftest conftest.c conftest.o
   6241 
   6242 else case e in #(
   6243   e) LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6244 printf "%s\n" "no" >&6; } ;;
   6245 esac
   6246 fi
   6247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6248     conftest$ac_exeext conftest.$ac_ext
   6249 
   6250 fi
   6251 
   6252 fi
   6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   6254 printf %s "checking for an ANSI C-conforming const... " >&6; }
   6255 if test ${ac_cv_c_const+y}
   6256 then :
   6257   printf %s "(cached) " >&6
   6258 else case e in #(
   6259   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6260 /* end confdefs.h.  */
   6261 
   6262 int
   6263 main (void)
   6264 {
   6265 
   6266 #ifndef __cplusplus
   6267   /* Ultrix mips cc rejects this sort of thing.  */
   6268   typedef int charset[2];
   6269   const charset cs = { 0, 0 };
   6270   /* SunOS 4.1.1 cc rejects this.  */
   6271   char const *const *pcpcc;
   6272   char **ppc;
   6273   /* NEC SVR4.0.2 mips cc rejects this.  */
   6274   struct point {int x, y;};
   6275   static struct point const zero = {0,0};
   6276   /* IBM XL C 1.02.0.0 rejects this.
   6277      It does not let you subtract one const X* pointer from another in
   6278      an arm of an if-expression whose if-part is not a constant
   6279      expression */
   6280   const char *g = "string";
   6281   pcpcc = &g + (g ? g-g : 0);
   6282   /* HPUX 7.0 cc rejects these. */
   6283   ++pcpcc;
   6284   ppc = (char**) pcpcc;
   6285   pcpcc = (char const *const *) ppc;
   6286   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   6287     char tx;
   6288     char *t = &tx;
   6289     char const *s = 0 ? (char *) 0 : (char const *) 0;
   6290 
   6291     *t++ = 0;
   6292     if (s) return 0;
   6293   }
   6294   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   6295     int x[] = {25, 17};
   6296     const int *foo = &x[0];
   6297     ++foo;
   6298   }
   6299   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   6300     typedef const int *iptr;
   6301     iptr p = 0;
   6302     ++p;
   6303   }
   6304   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
   6305        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   6306     struct s { int j; const int *ap[3]; } bx;
   6307     struct s *b = &bx; b->j = 5;
   6308   }
   6309   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   6310     const int foo = 10;
   6311     if (!foo) return 0;
   6312   }
   6313   return !cs[0] && !zero.x;
   6314 #endif
   6315 
   6316   ;
   6317   return 0;
   6318 }
   6319 _ACEOF
   6320 if ac_fn_c_try_compile "$LINENO"
   6321 then :
   6322   ac_cv_c_const=yes
   6323 else case e in #(
   6324   e) ac_cv_c_const=no ;;
   6325 esac
   6326 fi
   6327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6328 esac
   6329 fi
   6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   6331 printf "%s\n" "$ac_cv_c_const" >&6; }
   6332 if test $ac_cv_c_const = no; then
   6333 
   6334 printf "%s\n" "#define const /**/" >>confdefs.h
   6335 
   6336 fi
   6337 
   6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   6339 printf %s "checking for inline... " >&6; }
   6340 if test ${ac_cv_c_inline+y}
   6341 then :
   6342   printf %s "(cached) " >&6
   6343 else case e in #(
   6344   e) ac_cv_c_inline=no
   6345 for ac_kw in inline __inline__ __inline; do
   6346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6347 /* end confdefs.h.  */
   6348 #ifndef __cplusplus
   6349 typedef int foo_t;
   6350 static $ac_kw foo_t static_foo (void) {return 0; }
   6351 $ac_kw foo_t foo (void) {return 0; }
   6352 #endif
   6353 
   6354 _ACEOF
   6355 if ac_fn_c_try_compile "$LINENO"
   6356 then :
   6357   ac_cv_c_inline=$ac_kw
   6358 fi
   6359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6360   test "$ac_cv_c_inline" != no && break
   6361 done
   6362  ;;
   6363 esac
   6364 fi
   6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   6366 printf "%s\n" "$ac_cv_c_inline" >&6; }
   6367 
   6368 case $ac_cv_c_inline in
   6369   inline | yes) ;;
   6370   *)
   6371     case $ac_cv_c_inline in
   6372       no) ac_val=;;
   6373       *) ac_val=$ac_cv_c_inline;;
   6374     esac
   6375     cat >>confdefs.h <<_ACEOF
   6376 #ifndef __cplusplus
   6377 #define inline $ac_val
   6378 #endif
   6379 _ACEOF
   6380     ;;
   6381 esac
   6382 
   6383 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
   6384 if test "x$ac_cv_type_uid_t" = xyes
   6385 then :
   6386 
   6387 else case e in #(
   6388   e)
   6389 printf "%s\n" "#define uid_t int" >>confdefs.h
   6390  ;;
   6391 esac
   6392 fi
   6393 
   6394 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
   6395 if test "x$ac_cv_type_gid_t" = xyes
   6396 then :
   6397 
   6398 else case e in #(
   6399   e)
   6400 printf "%s\n" "#define gid_t int" >>confdefs.h
   6401  ;;
   6402 esac
   6403 fi
   6404 
   6405 
   6406   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
   6407 "
   6408 if test "x$ac_cv_type_pid_t" = xyes
   6409 then :
   6410 
   6411 else case e in #(
   6412   e)                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6413 /* end confdefs.h.  */
   6414 
   6415           #if defined _WIN64 && !defined __CYGWIN__
   6416           LLP64
   6417           #endif
   6418 
   6419 int
   6420 main (void)
   6421 {
   6422 
   6423   ;
   6424   return 0;
   6425 }
   6426 
   6427 _ACEOF
   6428 if ac_fn_c_try_compile "$LINENO"
   6429 then :
   6430   ac_pid_type='int'
   6431 else case e in #(
   6432   e) ac_pid_type='__int64' ;;
   6433 esac
   6434 fi
   6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6436 
   6437 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
   6438 
   6439      ;;
   6440 esac
   6441 fi
   6442 
   6443 
   6444 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   6445 if test "x$ac_cv_type_size_t" = xyes
   6446 then :
   6447 
   6448 else case e in #(
   6449   e)
   6450 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
   6451  ;;
   6452 esac
   6453 fi
   6454 
   6455 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   6456 if test "x$ac_cv_type_off_t" = xyes
   6457 then :
   6458 
   6459 else case e in #(
   6460   e)
   6461 printf "%s\n" "#define off_t long int" >>confdefs.h
   6462  ;;
   6463 esac
   6464 fi
   6465 
   6466 
   6467 
   6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
   6469 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
   6470 if test ${ac_cv_c_format_attribute+y}
   6471 then :
   6472   printf %s "(cached) " >&6
   6473 else case e in #(
   6474   e) ac_cv_c_format_attribute=no
   6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6476 /* end confdefs.h.  */
   6477 #include <stdio.h>
   6478 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6479 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6480 
   6481 int
   6482 main (void)
   6483 {
   6484 
   6485    f ("%s", "str");
   6486 
   6487   ;
   6488   return 0;
   6489 }
   6490 _ACEOF
   6491 if ac_fn_c_try_compile "$LINENO"
   6492 then :
   6493   ac_cv_c_format_attribute="yes"
   6494 else case e in #(
   6495   e) ac_cv_c_format_attribute="no" ;;
   6496 esac
   6497 fi
   6498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6499  ;;
   6500 esac
   6501 fi
   6502 
   6503 
   6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
   6505 printf "%s\n" "$ac_cv_c_format_attribute" >&6; }
   6506 if test $ac_cv_c_format_attribute = yes; then
   6507 
   6508 printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
   6509 
   6510 fi
   6511 
   6512 
   6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
   6514 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
   6515 if test ${ac_cv_c_unused_attribute+y}
   6516 then :
   6517   printf %s "(cached) " >&6
   6518 else case e in #(
   6519   e) ac_cv_c_unused_attribute=no
   6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6521 /* end confdefs.h.  */
   6522 #include <stdio.h>
   6523 void f (char *u __attribute__((unused)));
   6524 
   6525 int
   6526 main (void)
   6527 {
   6528 
   6529    f ("x");
   6530 
   6531   ;
   6532   return 0;
   6533 }
   6534 _ACEOF
   6535 if ac_fn_c_try_compile "$LINENO"
   6536 then :
   6537   ac_cv_c_unused_attribute="yes"
   6538 else case e in #(
   6539   e) ac_cv_c_unused_attribute="no" ;;
   6540 esac
   6541 fi
   6542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6543  ;;
   6544 esac
   6545 fi
   6546 
   6547 
   6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
   6549 printf "%s\n" "$ac_cv_c_unused_attribute" >&6; }
   6550 if test $ac_cv_c_unused_attribute = yes; then
   6551 
   6552 printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
   6553 
   6554 fi
   6555 
   6556 
   6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
   6558 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
   6559 if test ${ac_cv_c_weak_attribute+y}
   6560 then :
   6561   printf %s "(cached) " >&6
   6562 else case e in #(
   6563   e) ac_cv_c_weak_attribute=no
   6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6565 /* end confdefs.h.  */
   6566  #include <stdio.h>
   6567 __attribute__((weak)) void f(int x) { printf("%d", x); }
   6568 
   6569 int
   6570 main (void)
   6571 {
   6572 
   6573    f(1);
   6574 
   6575   ;
   6576   return 0;
   6577 }
   6578 _ACEOF
   6579 if ac_fn_c_try_compile "$LINENO"
   6580 then :
   6581   ac_cv_c_weak_attribute="yes"
   6582 else case e in #(
   6583   e) ac_cv_c_weak_attribute="no" ;;
   6584 esac
   6585 fi
   6586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6587  ;;
   6588 esac
   6589 fi
   6590 
   6591 
   6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
   6593 printf "%s\n" "$ac_cv_c_weak_attribute" >&6; }
   6594 if test $ac_cv_c_weak_attribute = yes; then
   6595 
   6596 printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h
   6597 
   6598 
   6599 printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
   6600 
   6601 fi
   6602 
   6603 
   6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
   6605 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
   6606 if test ${ac_cv_c_noreturn_attribute+y}
   6607 then :
   6608   printf %s "(cached) " >&6
   6609 else case e in #(
   6610   e) ac_cv_c_noreturn_attribute=no
   6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6612 /* end confdefs.h.  */
   6613  #include <stdio.h>
   6614 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
   6615 
   6616 int
   6617 main (void)
   6618 {
   6619 
   6620    f(1);
   6621 
   6622   ;
   6623   return 0;
   6624 }
   6625 _ACEOF
   6626 if ac_fn_c_try_compile "$LINENO"
   6627 then :
   6628   ac_cv_c_noreturn_attribute="yes"
   6629 else case e in #(
   6630   e) ac_cv_c_noreturn_attribute="no" ;;
   6631 esac
   6632 fi
   6633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6634  ;;
   6635 esac
   6636 fi
   6637 
   6638 
   6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
   6640 printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; }
   6641 if test $ac_cv_c_noreturn_attribute = yes; then
   6642 
   6643 printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
   6644 
   6645 
   6646 printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
   6647 
   6648 fi
   6649 
   6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
   6651 printf %s "checking if memcmp compares unsigned... " >&6; }
   6652 if test "$cross_compiling" = yes
   6653 then :
   6654    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
   6655 printf "%s\n" "cross-compile no" >&6; }
   6656 
   6657 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   6658 
   6659   case " $LIBOBJS " in
   6660   *" memcmp.$ac_objext "* ) ;;
   6661   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   6662  ;;
   6663 esac
   6664 
   6665 
   6666 else case e in #(
   6667   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6668 /* end confdefs.h.  */
   6669 
   6670 #include <stdio.h>
   6671 #include <stdlib.h>
   6672 #include <string.h>
   6673 int main(void)
   6674 {
   6675 	char a = 255, b = 0;
   6676 	if(memcmp(&a, &b, 1) < 0)
   6677 		return 1;
   6678 	return 0;
   6679 }
   6680 
   6681 _ACEOF
   6682 if ac_fn_c_try_run "$LINENO"
   6683 then :
   6684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6685 printf "%s\n" "yes" >&6; }
   6686 else case e in #(
   6687   e)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6688 printf "%s\n" "no" >&6; }
   6689 
   6690 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   6691 
   6692   case " $LIBOBJS " in
   6693   *" memcmp.$ac_objext "* ) ;;
   6694   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   6695  ;;
   6696 esac
   6697 
   6698  ;;
   6699 esac
   6700 fi
   6701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6702   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6703 esac
   6704 fi
   6705 
   6706 
   6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5
   6708 printf %s "checking whether ctime_r works with two arguments... " >&6; }
   6709 if test ${ac_cv_c_ctime_c+y}
   6710 then :
   6711   printf %s "(cached) " >&6
   6712 else case e in #(
   6713   e) ac_cv_c_ctime_c=no
   6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6715 /* end confdefs.h.  */
   6716 #include <time.h>
   6717 void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); }
   6718 int
   6719 main (void)
   6720 {
   6721 
   6722         testing();
   6723 
   6724   ;
   6725   return 0;
   6726 }
   6727 _ACEOF
   6728 if ac_fn_c_try_compile "$LINENO"
   6729 then :
   6730   ac_cv_c_ctime_c="yes"
   6731 else case e in #(
   6732   e) ac_cv_c_ctime_c="no" ;;
   6733 esac
   6734 fi
   6735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6736  ;;
   6737 esac
   6738 fi
   6739 
   6740 
   6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5
   6742 printf "%s\n" "$ac_cv_c_ctime_c" >&6; }
   6743 if test $ac_cv_c_ctime_c = no; then
   6744         CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
   6745 fi
   6746 
   6747 
   6748 # Checks for libraries.
   6749 
   6750 # Check for SSL, original taken from
   6751 # http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and
   6752 # modified for NSD.
   6753 
   6754 # check for libevent
   6755 
   6756 # Check whether --with-libevent was given.
   6757 if test ${with_libevent+y}
   6758 then :
   6759   withval=$with_libevent;
   6760 else case e in #(
   6761   e)  withval="yes"  ;;
   6762 esac
   6763 fi
   6764 
   6765 if test x_$withval = x_yes -o x_$withval != x_no; then
   6766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
   6767 printf %s "checking for libevent... " >&6; }
   6768         if test x_$withval = x_ -o x_$withval = x_yes; then
   6769             withval="/usr/local /opt/local /usr/lib  /usr/sfw /usr /usr/local/opt/libevent"
   6770         fi
   6771         for dir in $withval; do
   6772             thedir="$dir"
   6773             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
   6774                 found_libevent="yes"
   6775 				if test "$thedir" != "/usr"; then
   6776                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
   6777 		fi
   6778                 break;
   6779             fi
   6780         done
   6781         if test x_$found_libevent != x_yes; then
   6782 		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
   6783 			# libevent source directory
   6784             		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   6785 printf "%s\n" "found in $thedir" >&6; }
   6786                 	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
   6787 			# remove evdns from linking
   6788 			ev_files_o=`ls $thedir/*.o | $GREP -v evdns\.o | $GREP -v bufferevent_openssl\.o`
   6789 			cp $ev_files_o .
   6790 			LDFLAGS="$ev_files_o $LDFLAGS -lm"
   6791 		else
   6792             		as_fn_error $? "Cannot find the libevent library.
   6793 You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5
   6794 		fi
   6795         else
   6796             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   6797 printf "%s\n" "found in $thedir" >&6; }
   6798 	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
   6799 		LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
   6800 
   6801 	if test "x$enable_rpath" = xyes; then
   6802 		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
   6803 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
   6804 		fi
   6805 	fi
   6806 
   6807 	    else
   6808 		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
   6809 			LDFLAGS="$LDFLAGS -L$thedir/lib"
   6810 
   6811 	if test "x$enable_rpath" = xyes; then
   6812 		if echo "$thedir/lib" | grep "^/" >/dev/null; then
   6813 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
   6814 		fi
   6815 	fi
   6816 
   6817 		    fi
   6818 	    fi
   6819         fi
   6820 	# check for library used by libevent after 1.3c
   6821 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   6822 printf %s "checking for library containing clock_gettime... " >&6; }
   6823 if test ${ac_cv_search_clock_gettime+y}
   6824 then :
   6825   printf %s "(cached) " >&6
   6826 else case e in #(
   6827   e) ac_func_search_save_LIBS=$LIBS
   6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6829 /* end confdefs.h.  */
   6830 
   6831 /* Override any GCC internal prototype to avoid an error.
   6832    Use char because int might match the return type of a GCC
   6833    builtin and then its argument prototype would still apply.
   6834    The 'extern "C"' is for builds by C++ compilers;
   6835    although this is not generally supported in C code supporting it here
   6836    has little cost and some practical benefit (sr 110532).  */
   6837 #ifdef __cplusplus
   6838 extern "C"
   6839 #endif
   6840 char clock_gettime (void);
   6841 int
   6842 main (void)
   6843 {
   6844 return clock_gettime ();
   6845   ;
   6846   return 0;
   6847 }
   6848 _ACEOF
   6849 for ac_lib in '' rt
   6850 do
   6851   if test -z "$ac_lib"; then
   6852     ac_res="none required"
   6853   else
   6854     ac_res=-l$ac_lib
   6855     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6856   fi
   6857   if ac_fn_c_try_link "$LINENO"
   6858 then :
   6859   ac_cv_search_clock_gettime=$ac_res
   6860 fi
   6861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6862     conftest$ac_exeext
   6863   if test ${ac_cv_search_clock_gettime+y}
   6864 then :
   6865   break
   6866 fi
   6867 done
   6868 if test ${ac_cv_search_clock_gettime+y}
   6869 then :
   6870 
   6871 else case e in #(
   6872   e) ac_cv_search_clock_gettime=no ;;
   6873 esac
   6874 fi
   6875 rm conftest.$ac_ext
   6876 LIBS=$ac_func_search_save_LIBS ;;
   6877 esac
   6878 fi
   6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   6880 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
   6881 ac_res=$ac_cv_search_clock_gettime
   6882 if test "$ac_res" != no
   6883 then :
   6884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6885 
   6886 fi
   6887 
   6888 
   6889 	# is the event.h header libev or libevent?
   6890 	ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
   6891 "
   6892 if test "x$ac_cv_header_event_h" = xyes
   6893 then :
   6894   printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h
   6895 
   6896 fi
   6897 
   6898 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   6899 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   6900 if test ${ac_cv_c_undeclared_builtin_options+y}
   6901 then :
   6902   printf %s "(cached) " >&6
   6903 else case e in #(
   6904   e) ac_save_CFLAGS=$CFLAGS
   6905    ac_cv_c_undeclared_builtin_options='cannot detect'
   6906    for ac_arg in '' -fno-builtin; do
   6907      CFLAGS="$ac_save_CFLAGS $ac_arg"
   6908      # This test program should *not* compile successfully.
   6909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6910 /* end confdefs.h.  */
   6911 
   6912 int
   6913 main (void)
   6914 {
   6915 (void) strchr;
   6916   ;
   6917   return 0;
   6918 }
   6919 _ACEOF
   6920 if ac_fn_c_try_compile "$LINENO"
   6921 then :
   6922 
   6923 else case e in #(
   6924   e) # This test program should compile successfully.
   6925         # No library function is consistently available on
   6926         # freestanding implementations, so test against a dummy
   6927         # declaration.  Include always-available headers on the
   6928         # off chance that they somehow elicit warnings.
   6929         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6930 /* end confdefs.h.  */
   6931 #include <float.h>
   6932 #include <limits.h>
   6933 #include <stdarg.h>
   6934 #include <stddef.h>
   6935 extern void ac_decl (int, char *);
   6936 
   6937 int
   6938 main (void)
   6939 {
   6940 (void) ac_decl (0, (char *) 0);
   6941   (void) ac_decl;
   6942 
   6943   ;
   6944   return 0;
   6945 }
   6946 _ACEOF
   6947 if ac_fn_c_try_compile "$LINENO"
   6948 then :
   6949   if test x"$ac_arg" = x
   6950 then :
   6951   ac_cv_c_undeclared_builtin_options='none needed'
   6952 else case e in #(
   6953   e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
   6954 esac
   6955 fi
   6956           break
   6957 fi
   6958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6959 esac
   6960 fi
   6961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6962     done
   6963     CFLAGS=$ac_save_CFLAGS
   6964    ;;
   6965 esac
   6966 fi
   6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   6968 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   6969   case $ac_cv_c_undeclared_builtin_options in #(
   6970   'cannot detect') :
   6971     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   6972 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   6973 as_fn_error $? "cannot make $CC report undeclared builtins
   6974 See 'config.log' for more details" "$LINENO" 5; } ;; #(
   6975   'none needed') :
   6976     ac_c_undeclared_builtin_options='' ;; #(
   6977   *) :
   6978     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   6979 esac
   6980 
   6981 ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
   6982 #include <event.h>
   6983 
   6984 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6985 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes
   6986 then :
   6987 
   6988 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   6989 printf %s "checking for library containing event_set... " >&6; }
   6990 if test ${ac_cv_search_event_set+y}
   6991 then :
   6992   printf %s "(cached) " >&6
   6993 else case e in #(
   6994   e) ac_func_search_save_LIBS=$LIBS
   6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6996 /* end confdefs.h.  */
   6997 
   6998 /* Override any GCC internal prototype to avoid an error.
   6999    Use char because int might match the return type of a GCC
   7000    builtin and then its argument prototype would still apply.
   7001    The 'extern "C"' is for builds by C++ compilers;
   7002    although this is not generally supported in C code supporting it here
   7003    has little cost and some practical benefit (sr 110532).  */
   7004 #ifdef __cplusplus
   7005 extern "C"
   7006 #endif
   7007 char event_set (void);
   7008 int
   7009 main (void)
   7010 {
   7011 return event_set ();
   7012   ;
   7013   return 0;
   7014 }
   7015 _ACEOF
   7016 for ac_lib in '' ev
   7017 do
   7018   if test -z "$ac_lib"; then
   7019     ac_res="none required"
   7020   else
   7021     ac_res=-l$ac_lib
   7022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7023   fi
   7024   if ac_fn_c_try_link "$LINENO"
   7025 then :
   7026   ac_cv_search_event_set=$ac_res
   7027 fi
   7028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7029     conftest$ac_exeext
   7030   if test ${ac_cv_search_event_set+y}
   7031 then :
   7032   break
   7033 fi
   7034 done
   7035 if test ${ac_cv_search_event_set+y}
   7036 then :
   7037 
   7038 else case e in #(
   7039   e) ac_cv_search_event_set=no ;;
   7040 esac
   7041 fi
   7042 rm conftest.$ac_ext
   7043 LIBS=$ac_func_search_save_LIBS ;;
   7044 esac
   7045 fi
   7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   7047 printf "%s\n" "$ac_cv_search_event_set" >&6; }
   7048 ac_res=$ac_cv_search_event_set
   7049 if test "$ac_res" != no
   7050 then :
   7051   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7052 
   7053 fi
   7054 
   7055 
   7056 else case e in #(
   7057   e)
   7058 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   7059 printf %s "checking for library containing event_set... " >&6; }
   7060 if test ${ac_cv_search_event_set+y}
   7061 then :
   7062   printf %s "(cached) " >&6
   7063 else case e in #(
   7064   e) ac_func_search_save_LIBS=$LIBS
   7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7066 /* end confdefs.h.  */
   7067 
   7068 /* Override any GCC internal prototype to avoid an error.
   7069    Use char because int might match the return type of a GCC
   7070    builtin and then its argument prototype would still apply.
   7071    The 'extern "C"' is for builds by C++ compilers;
   7072    although this is not generally supported in C code supporting it here
   7073    has little cost and some practical benefit (sr 110532).  */
   7074 #ifdef __cplusplus
   7075 extern "C"
   7076 #endif
   7077 char event_set (void);
   7078 int
   7079 main (void)
   7080 {
   7081 return event_set ();
   7082   ;
   7083   return 0;
   7084 }
   7085 _ACEOF
   7086 for ac_lib in '' event
   7087 do
   7088   if test -z "$ac_lib"; then
   7089     ac_res="none required"
   7090   else
   7091     ac_res=-l$ac_lib
   7092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7093   fi
   7094   if ac_fn_c_try_link "$LINENO"
   7095 then :
   7096   ac_cv_search_event_set=$ac_res
   7097 fi
   7098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7099     conftest$ac_exeext
   7100   if test ${ac_cv_search_event_set+y}
   7101 then :
   7102   break
   7103 fi
   7104 done
   7105 if test ${ac_cv_search_event_set+y}
   7106 then :
   7107 
   7108 else case e in #(
   7109   e) ac_cv_search_event_set=no ;;
   7110 esac
   7111 fi
   7112 rm conftest.$ac_ext
   7113 LIBS=$ac_func_search_save_LIBS ;;
   7114 esac
   7115 fi
   7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   7117 printf "%s\n" "$ac_cv_search_event_set" >&6; }
   7118 ac_res=$ac_cv_search_event_set
   7119 if test "$ac_res" != no
   7120 then :
   7121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7122 
   7123 fi
   7124 
   7125 	 ;;
   7126 esac
   7127 fi
   7128 	ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
   7129 if test "x$ac_cv_func_event_base_free" = xyes
   7130 then :
   7131   printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h
   7132 
   7133 fi
   7134  # only in libevent 1.2 and later
   7135 	ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
   7136 if test "x$ac_cv_func_event_base_once" = xyes
   7137 then :
   7138   printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h
   7139 
   7140 fi
   7141  # only in libevent 1.4.1 and later
   7142 	ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
   7143 if test "x$ac_cv_func_event_base_new" = xyes
   7144 then :
   7145   printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h
   7146 
   7147 fi
   7148  # only in libevent 1.4.1 and later
   7149 	ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
   7150 if test "x$ac_cv_func_event_base_get_method" = xyes
   7151 then :
   7152   printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h
   7153 
   7154 fi
   7155  # only in libevent 1.4.3 and later
   7156 	ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
   7157 if test "x$ac_cv_func_ev_loop" = xyes
   7158 then :
   7159   printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h
   7160 
   7161 fi
   7162  # only in libev. (tested on 3.51)
   7163 	ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
   7164 if test "x$ac_cv_func_ev_default_loop" = xyes
   7165 then :
   7166   printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h
   7167 
   7168 fi
   7169  # only in libev. (tested on 4.00)
   7170 
   7171 	# prometheus metrics depend on libevent 2.0 and later, and is therefore
   7172 	# only enabled when the required version is found and used
   7173 
   7174   for ac_func in evhttp_free
   7175 do :
   7176   ac_fn_c_check_func "$LINENO" "evhttp_free" "ac_cv_func_evhttp_free"
   7177 if test "x$ac_cv_func_evhttp_free" = xyes
   7178 then :
   7179   printf "%s\n" "#define HAVE_EVHTTP_FREE 1" >>confdefs.h
   7180 
   7181 
   7182 printf "%s\n" "#define USE_METRICS /**/" >>confdefs.h
   7183 
   7184 
   7185 printf "%s\n" "#define NSD_METRICS_PORT 9100" >>confdefs.h
   7186 
   7187 
   7188 else case e in #(
   7189   e)
   7190 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling prometheus metrics" >&5
   7191 printf "%s\n" "$as_me: disabling prometheus metrics" >&6;}
   7192 	 ;;
   7193 esac
   7194 fi
   7195 
   7196 done
   7197 else
   7198 
   7199 printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h
   7200 
   7201 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Prometheus metrics are disabled with the builtin libevent alternative" >&5
   7202 printf "%s\n" "$as_me: Prometheus metrics are disabled with the builtin libevent alternative" >&6;}
   7203 fi
   7204 
   7205 # Checks for header files.
   7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   7207 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   7208 if test ${ac_cv_header_sys_wait_h+y}
   7209 then :
   7210   printf %s "(cached) " >&6
   7211 else case e in #(
   7212   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7213 /* end confdefs.h.  */
   7214 #include <sys/types.h>
   7215 #include <sys/wait.h>
   7216 #ifndef WEXITSTATUS
   7217 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   7218 #endif
   7219 #ifndef WIFEXITED
   7220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   7221 #endif
   7222 
   7223 int
   7224 main (void)
   7225 {
   7226   int s;
   7227   wait (&s);
   7228   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   7229   ;
   7230   return 0;
   7231 }
   7232 _ACEOF
   7233 if ac_fn_c_try_compile "$LINENO"
   7234 then :
   7235   ac_cv_header_sys_wait_h=yes
   7236 else case e in #(
   7237   e) ac_cv_header_sys_wait_h=no ;;
   7238 esac
   7239 fi
   7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7241 esac
   7242 fi
   7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   7244 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
   7245 if test $ac_cv_header_sys_wait_h = yes; then
   7246 
   7247 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   7248 
   7249 fi
   7250 
   7251 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
   7252 "
   7253 if test "x$ac_cv_header_time_h" = xyes
   7254 then :
   7255   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
   7256 
   7257 fi
   7258 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
   7259 "
   7260 if test "x$ac_cv_header_arpa_inet_h" = xyes
   7261 then :
   7262   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
   7263 
   7264 fi
   7265 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default
   7266 "
   7267 if test "x$ac_cv_header_signal_h" = xyes
   7268 then :
   7269   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
   7270 
   7271 fi
   7272 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default
   7273 "
   7274 if test "x$ac_cv_header_string_h" = xyes
   7275 then :
   7276   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
   7277 
   7278 fi
   7279 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default
   7280 "
   7281 if test "x$ac_cv_header_strings_h" = xyes
   7282 then :
   7283   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
   7284 
   7285 fi
   7286 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default
   7287 "
   7288 if test "x$ac_cv_header_fcntl_h" = xyes
   7289 then :
   7290   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
   7291 
   7292 fi
   7293 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default
   7294 "
   7295 if test "x$ac_cv_header_limits_h" = xyes
   7296 then :
   7297   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
   7298 
   7299 fi
   7300 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
   7301 "
   7302 if test "x$ac_cv_header_netinet_in_h" = xyes
   7303 then :
   7304   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
   7305 
   7306 fi
   7307 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
   7308 "
   7309 if test "x$ac_cv_header_netinet_tcp_h" = xyes
   7310 then :
   7311   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
   7312 
   7313 fi
   7314 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default
   7315 "
   7316 if test "x$ac_cv_header_stddef_h" = xyes
   7317 then :
   7318   printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
   7319 
   7320 fi
   7321 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
   7322 "
   7323 if test "x$ac_cv_header_sys_param_h" = xyes
   7324 then :
   7325   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
   7326 
   7327 fi
   7328 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
   7329 "
   7330 if test "x$ac_cv_header_sys_socket_h" = xyes
   7331 then :
   7332   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
   7333 
   7334 fi
   7335 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default
   7336 "
   7337 if test "x$ac_cv_header_sys_un_h" = xyes
   7338 then :
   7339   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
   7340 
   7341 fi
   7342 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default
   7343 "
   7344 if test "x$ac_cv_header_syslog_h" = xyes
   7345 then :
   7346   printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
   7347 
   7348 fi
   7349 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
   7350 "
   7351 if test "x$ac_cv_header_unistd_h" = xyes
   7352 then :
   7353   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
   7354 
   7355 fi
   7356 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
   7357 "
   7358 if test "x$ac_cv_header_sys_select_h" = xyes
   7359 then :
   7360   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
   7361 
   7362 fi
   7363 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default
   7364 "
   7365 if test "x$ac_cv_header_stdarg_h" = xyes
   7366 then :
   7367   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
   7368 
   7369 fi
   7370 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default
   7371 "
   7372 if test "x$ac_cv_header_stdint_h" = xyes
   7373 then :
   7374   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
   7375 
   7376 fi
   7377 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
   7378 "
   7379 if test "x$ac_cv_header_netdb_h" = xyes
   7380 then :
   7381   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
   7382 
   7383 fi
   7384 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default
   7385 "
   7386 if test "x$ac_cv_header_sys_bitypes_h" = xyes
   7387 then :
   7388   printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
   7389 
   7390 fi
   7391 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default
   7392 "
   7393 if test "x$ac_cv_header_tcpd_h" = xyes
   7394 then :
   7395   printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
   7396 
   7397 fi
   7398 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default
   7399 "
   7400 if test "x$ac_cv_header_glob_h" = xyes
   7401 then :
   7402   printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
   7403 
   7404 fi
   7405 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default
   7406 "
   7407 if test "x$ac_cv_header_grp_h" = xyes
   7408 then :
   7409   printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
   7410 
   7411 fi
   7412 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default
   7413 "
   7414 if test "x$ac_cv_header_endian_h" = xyes
   7415 then :
   7416   printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
   7417 
   7418 fi
   7419 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default
   7420 "
   7421 if test "x$ac_cv_header_sys_random_h" = xyes
   7422 then :
   7423   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
   7424 
   7425 fi
   7426 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
   7427 "
   7428 if test "x$ac_cv_header_ifaddrs_h" = xyes
   7429 then :
   7430   printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
   7431 
   7432 fi
   7433 
   7434 
   7435 
   7436 
   7437 
   7438 
   7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5
   7440 printf %s "checking for double definition of struct va_list... " >&6; }
   7441 if test ${ac_cv_c_va_list_def+y}
   7442 then :
   7443   printf %s "(cached) " >&6
   7444 else case e in #(
   7445   e)
   7446 cat >conftest.c <<EOF
   7447 #include <stdio.h>
   7448 #include <stdarg.h>
   7449 int foo(void);
   7450 EOF
   7451 if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then
   7452 eval "ac_cv_c_va_list_def=no"
   7453 else
   7454 eval "ac_cv_c_va_list_def=yes"
   7455 fi
   7456 rm -f conftest*
   7457  ;;
   7458 esac
   7459 fi
   7460 
   7461 if test $ac_cv_c_va_list_def = yes; then
   7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7463 printf "%s\n" "yes" >&6; }
   7464 :
   7465 
   7466 printf "%s\n" "#define HAVE_VA_LIST_DOUBLE_DEF /**/" >>confdefs.h
   7467 
   7468 else
   7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7470 printf "%s\n" "no" >&6; }
   7471 :
   7472 
   7473 fi
   7474 
   7475 
   7476 
   7477 
   7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5
   7479 printf %s "checking whether strptime needs defines... " >&6; }
   7480 if test ${ac_cv_c_strptime_needs_defs+y}
   7481 then :
   7482   printf %s "(cached) " >&6
   7483 else case e in #(
   7484   e)
   7485 cat >conftest.c <<EOF
   7486 #include <time.h>
   7487 int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; }
   7488 EOF
   7489 if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then
   7490 eval "ac_cv_c_strptime_needs_defs=no"
   7491 else
   7492 eval "ac_cv_c_strptime_needs_defs=yes"
   7493 fi
   7494 rm -f conftest*
   7495  ;;
   7496 esac
   7497 fi
   7498 
   7499 
   7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5
   7501 printf "%s\n" "$ac_cv_c_strptime_needs_defs" >&6; }
   7502 if test $ac_cv_c_strptime_needs_defs = yes; then
   7503 
   7504 printf "%s\n" "#define STRPTIME_NEEDS_DEFINES 1" >>confdefs.h
   7505 
   7506 fi
   7507 
   7508 
   7509 # check wether strptime also works
   7510 
   7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
   7512 printf %s "checking for library containing inet_pton... " >&6; }
   7513 if test ${ac_cv_search_inet_pton+y}
   7514 then :
   7515   printf %s "(cached) " >&6
   7516 else case e in #(
   7517   e) ac_func_search_save_LIBS=$LIBS
   7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7519 /* end confdefs.h.  */
   7520 
   7521 /* Override any GCC internal prototype to avoid an error.
   7522    Use char because int might match the return type of a GCC
   7523    builtin and then its argument prototype would still apply.
   7524    The 'extern "C"' is for builds by C++ compilers;
   7525    although this is not generally supported in C code supporting it here
   7526    has little cost and some practical benefit (sr 110532).  */
   7527 #ifdef __cplusplus
   7528 extern "C"
   7529 #endif
   7530 char inet_pton (void);
   7531 int
   7532 main (void)
   7533 {
   7534 return inet_pton ();
   7535   ;
   7536   return 0;
   7537 }
   7538 _ACEOF
   7539 for ac_lib in '' nsl
   7540 do
   7541   if test -z "$ac_lib"; then
   7542     ac_res="none required"
   7543   else
   7544     ac_res=-l$ac_lib
   7545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7546   fi
   7547   if ac_fn_c_try_link "$LINENO"
   7548 then :
   7549   ac_cv_search_inet_pton=$ac_res
   7550 fi
   7551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7552     conftest$ac_exeext
   7553   if test ${ac_cv_search_inet_pton+y}
   7554 then :
   7555   break
   7556 fi
   7557 done
   7558 if test ${ac_cv_search_inet_pton+y}
   7559 then :
   7560 
   7561 else case e in #(
   7562   e) ac_cv_search_inet_pton=no ;;
   7563 esac
   7564 fi
   7565 rm conftest.$ac_ext
   7566 LIBS=$ac_func_search_save_LIBS ;;
   7567 esac
   7568 fi
   7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
   7570 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
   7571 ac_res=$ac_cv_search_inet_pton
   7572 if test "$ac_res" != no
   7573 then :
   7574   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7575 
   7576 fi
   7577 
   7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   7579 printf %s "checking for library containing socket... " >&6; }
   7580 if test ${ac_cv_search_socket+y}
   7581 then :
   7582   printf %s "(cached) " >&6
   7583 else case e in #(
   7584   e) ac_func_search_save_LIBS=$LIBS
   7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7586 /* end confdefs.h.  */
   7587 
   7588 /* Override any GCC internal prototype to avoid an error.
   7589    Use char because int might match the return type of a GCC
   7590    builtin and then its argument prototype would still apply.
   7591    The 'extern "C"' is for builds by C++ compilers;
   7592    although this is not generally supported in C code supporting it here
   7593    has little cost and some practical benefit (sr 110532).  */
   7594 #ifdef __cplusplus
   7595 extern "C"
   7596 #endif
   7597 char socket (void);
   7598 int
   7599 main (void)
   7600 {
   7601 return socket ();
   7602   ;
   7603   return 0;
   7604 }
   7605 _ACEOF
   7606 for ac_lib in '' socket
   7607 do
   7608   if test -z "$ac_lib"; then
   7609     ac_res="none required"
   7610   else
   7611     ac_res=-l$ac_lib
   7612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7613   fi
   7614   if ac_fn_c_try_link "$LINENO"
   7615 then :
   7616   ac_cv_search_socket=$ac_res
   7617 fi
   7618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7619     conftest$ac_exeext
   7620   if test ${ac_cv_search_socket+y}
   7621 then :
   7622   break
   7623 fi
   7624 done
   7625 if test ${ac_cv_search_socket+y}
   7626 then :
   7627 
   7628 else case e in #(
   7629   e) ac_cv_search_socket=no ;;
   7630 esac
   7631 fi
   7632 rm conftest.$ac_ext
   7633 LIBS=$ac_func_search_save_LIBS ;;
   7634 esac
   7635 fi
   7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   7637 printf "%s\n" "$ac_cv_search_socket" >&6; }
   7638 ac_res=$ac_cv_search_socket
   7639 if test "$ac_res" != no
   7640 then :
   7641   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7642 
   7643 fi
   7644 
   7645 
   7646 
   7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
   7648 printf %s "checking whether strptime works... " >&6; }
   7649 if test c${cross_compiling} = cno; then
   7650 if test "$cross_compiling" = yes
   7651 then :
   7652   eval "ac_cv_c_strptime_works=maybe"
   7653 else case e in #(
   7654   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7655 /* end confdefs.h.  */
   7656 
   7657 #define _XOPEN_SOURCE 600
   7658 #include <time.h>
   7659 int main(void) { struct tm tm; char *res;
   7660 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
   7661 if (!res) return 1; return 0; }
   7662 
   7663 _ACEOF
   7664 if ac_fn_c_try_run "$LINENO"
   7665 then :
   7666   eval "ac_cv_c_strptime_works=yes"
   7667 else case e in #(
   7668   e) eval "ac_cv_c_strptime_works=no" ;;
   7669 esac
   7670 fi
   7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7672   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7673 esac
   7674 fi
   7675 
   7676 else
   7677 eval "ac_cv_c_strptime_works=maybe"
   7678 fi
   7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
   7680 printf "%s\n" "$ac_cv_c_strptime_works" >&6; }
   7681 if test $ac_cv_c_strptime_works = no; then
   7682 case " $LIBOBJS " in
   7683   *" strptime.$ac_objext "* ) ;;
   7684   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   7685  ;;
   7686 esac
   7687 
   7688 else
   7689 
   7690 printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h
   7691 
   7692 fi
   7693 
   7694 
   7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
   7696 printf %s "checking if nonblocking sockets work... " >&6; }
   7697 if echo $host | grep mingw >/dev/null; then
   7698 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
   7699 printf "%s\n" "no (windows)" >&6; }
   7700 
   7701 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   7702 
   7703 else
   7704 if test "$cross_compiling" = yes
   7705 then :
   7706 
   7707 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
   7708 printf "%s\n" "crosscompile(yes)" >&6; }
   7709 
   7710 else case e in #(
   7711   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7712 /* end confdefs.h.  */
   7713 
   7714 
   7715 #include <stdio.h>
   7716 #include <string.h>
   7717 #include <stdlib.h>
   7718 #include <fcntl.h>
   7719 #include <errno.h>
   7720 #ifdef HAVE_SYS_TYPES_H
   7721 #include <sys/types.h>
   7722 #endif
   7723 #ifdef HAVE_SYS_SELECT_H
   7724 #include <sys/select.h>
   7725 #endif
   7726 #ifdef HAVE_SYS_SOCKET_H
   7727 #include <sys/socket.h>
   7728 #endif
   7729 #ifdef HAVE_NETINET_IN_H
   7730 #include <netinet/in.h>
   7731 #endif
   7732 #ifdef HAVE_ARPA_INET_H
   7733 #include <arpa/inet.h>
   7734 #endif
   7735 #ifdef HAVE_UNISTD_H
   7736 #include <unistd.h>
   7737 #endif
   7738 #ifdef HAVE_TIME_H
   7739 #include <time.h>
   7740 #endif
   7741 
   7742 int main(void)
   7743 {
   7744 	int port;
   7745 	int sfd, cfd;
   7746 	int num = 10;
   7747 	int i, p;
   7748 	struct sockaddr_in a;
   7749 	/* test if select and nonblocking reads work well together */
   7750 	/* open port.
   7751 	   fork child to send 10 messages.
   7752 	   select to read.
   7753 	   then try to nonblocking read the 10 messages
   7754 	   then, nonblocking read must give EAGAIN
   7755 	*/
   7756 
   7757 	port = 12345 + (time(0)%32);
   7758 	sfd = socket(PF_INET, SOCK_DGRAM, 0);
   7759 	if(sfd == -1) {
   7760 		perror("socket");
   7761 		return 1;
   7762 	}
   7763 	memset(&a, 0, sizeof(a));
   7764 	a.sin_family = AF_INET;
   7765 	a.sin_port = htons(port);
   7766 	a.sin_addr.s_addr = inet_addr("127.0.0.1");
   7767 	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   7768 		perror("bind");
   7769 		return 1;
   7770 	}
   7771 	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
   7772 		perror("fcntl");
   7773 		return 1;
   7774 	}
   7775 
   7776 	cfd = socket(PF_INET, SOCK_DGRAM, 0);
   7777 	if(cfd == -1) {
   7778 		perror("client socket");
   7779 		return 1;
   7780 	}
   7781 	a.sin_port = 0;
   7782 	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   7783 		perror("client bind");
   7784 		return 1;
   7785 	}
   7786 	a.sin_port = htons(port);
   7787 
   7788 	/* no handler, causes exit in 10 seconds */
   7789 	alarm(10);
   7790 
   7791 	/* send and receive on the socket */
   7792 	if((p=fork()) == 0) {
   7793 		for(i=0; i<num; i++) {
   7794 			if(sendto(cfd, &i, sizeof(i), 0,
   7795 				(struct sockaddr*)&a, sizeof(a)) < 0) {
   7796 				perror("sendto");
   7797 				return 1;
   7798 			}
   7799 		}
   7800 	} else {
   7801 		/* parent */
   7802 		fd_set rset;
   7803 		int x;
   7804 		if(p == -1) {
   7805 			perror("fork");
   7806 			return 1;
   7807 		}
   7808 		FD_ZERO(&rset);
   7809 		FD_SET(sfd, &rset);
   7810 		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
   7811 			perror("select");
   7812 			return 1;
   7813 		}
   7814 		i = 0;
   7815 		while(i < num) {
   7816 			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
   7817 				if(errno == EAGAIN)
   7818 					continue;
   7819 				perror("recv");
   7820 				return 1;
   7821 			}
   7822 			i++;
   7823 		}
   7824 		/* now we want to get EAGAIN: nonblocking goodness */
   7825 		errno = 0;
   7826 		recv(sfd, &x, sizeof(x), 0);
   7827 		if(errno != EAGAIN) {
   7828 			perror("trying to recv again");
   7829 			return 1;
   7830 		}
   7831 		/* EAGAIN encountered */
   7832 	}
   7833 
   7834 	close(sfd);
   7835 	close(cfd);
   7836 	return 0;
   7837 }
   7838 
   7839 _ACEOF
   7840 if ac_fn_c_try_run "$LINENO"
   7841 then :
   7842 
   7843 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7844 printf "%s\n" "yes" >&6; }
   7845 
   7846 else case e in #(
   7847   e)
   7848 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7849 printf "%s\n" "no" >&6; }
   7850 
   7851 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   7852 
   7853  ;;
   7854 esac
   7855 fi
   7856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7857   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7858 esac
   7859 fi
   7860 
   7861 fi
   7862 
   7863 
   7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
   7865 printf %s "checking whether mkdir has one arg... " >&6; }
   7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7867 /* end confdefs.h.  */
   7868 
   7869 #include <stdio.h>
   7870 #include <unistd.h>
   7871 #ifdef HAVE_WINSOCK2_H
   7872 #include <winsock2.h>
   7873 #endif
   7874 #ifdef HAVE_SYS_STAT_H
   7875 #include <sys/stat.h>
   7876 #endif
   7877 
   7878 int
   7879 main (void)
   7880 {
   7881 
   7882 	(void)mkdir("directory");
   7883 
   7884   ;
   7885   return 0;
   7886 }
   7887 _ACEOF
   7888 if ac_fn_c_try_compile "$LINENO"
   7889 then :
   7890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7891 printf "%s\n" "yes" >&6; }
   7892 
   7893 printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
   7894 
   7895 
   7896 else case e in #(
   7897   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7898 printf "%s\n" "no" >&6; }
   7899  ;;
   7900 esac
   7901 fi
   7902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7903 
   7904 
   7905 # set -I. and -Isrcdir
   7906 if test -n "$CPPFLAGS"; then
   7907 	CPPFLAGS="$CPPFLAGS -I."
   7908 else
   7909 	CPPFLAGS="-I."
   7910 fi
   7911 if test "$srcdir" != "."; then
   7912 	CPPFLAGS="$CPPFLAGS -I$srcdir"
   7913 	if test -f $srcdir/config.h; then
   7914 		as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5
   7915 	fi
   7916 fi
   7917 
   7918 
   7919 
   7920 
   7921 ac_ext=c
   7922 ac_cpp='$CPP $CPPFLAGS'
   7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   7927 printf %s "checking how to run the C preprocessor... " >&6; }
   7928 # On Suns, sometimes $CPP names a directory.
   7929 if test -n "$CPP" && test -d "$CPP"; then
   7930   CPP=
   7931 fi
   7932 if test -z "$CPP"; then
   7933   if test ${ac_cv_prog_CPP+y}
   7934 then :
   7935   printf %s "(cached) " >&6
   7936 else case e in #(
   7937   e)     # Double quotes because $CC needs to be expanded
   7938     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   7939     do
   7940       ac_preproc_ok=false
   7941 for ac_c_preproc_warn_flag in '' yes
   7942 do
   7943   # Use a header file that comes with gcc, so configuring glibc
   7944   # with a fresh cross-compiler works.
   7945   # On the NeXT, cc -E runs the code through the compiler's parser,
   7946   # not just through cpp. "Syntax error" is here to catch this case.
   7947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7948 /* end confdefs.h.  */
   7949 #include <limits.h>
   7950 		     Syntax error
   7951 _ACEOF
   7952 if ac_fn_c_try_cpp "$LINENO"
   7953 then :
   7954 
   7955 else case e in #(
   7956   e) # Broken: fails on valid input.
   7957 continue ;;
   7958 esac
   7959 fi
   7960 rm -f conftest.err conftest.i conftest.$ac_ext
   7961 
   7962   # OK, works on sane cases.  Now check whether nonexistent headers
   7963   # can be detected and how.
   7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7965 /* end confdefs.h.  */
   7966 #include <ac_nonexistent.h>
   7967 _ACEOF
   7968 if ac_fn_c_try_cpp "$LINENO"
   7969 then :
   7970   # Broken: success on invalid input.
   7971 continue
   7972 else case e in #(
   7973   e) # Passes both tests.
   7974 ac_preproc_ok=:
   7975 break ;;
   7976 esac
   7977 fi
   7978 rm -f conftest.err conftest.i conftest.$ac_ext
   7979 
   7980 done
   7981 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   7982 rm -f conftest.i conftest.err conftest.$ac_ext
   7983 if $ac_preproc_ok
   7984 then :
   7985   break
   7986 fi
   7987 
   7988     done
   7989     ac_cv_prog_CPP=$CPP
   7990    ;;
   7991 esac
   7992 fi
   7993   CPP=$ac_cv_prog_CPP
   7994 else
   7995   ac_cv_prog_CPP=$CPP
   7996 fi
   7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   7998 printf "%s\n" "$CPP" >&6; }
   7999 ac_preproc_ok=false
   8000 for ac_c_preproc_warn_flag in '' yes
   8001 do
   8002   # Use a header file that comes with gcc, so configuring glibc
   8003   # with a fresh cross-compiler works.
   8004   # On the NeXT, cc -E runs the code through the compiler's parser,
   8005   # not just through cpp. "Syntax error" is here to catch this case.
   8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8007 /* end confdefs.h.  */
   8008 #include <limits.h>
   8009 		     Syntax error
   8010 _ACEOF
   8011 if ac_fn_c_try_cpp "$LINENO"
   8012 then :
   8013 
   8014 else case e in #(
   8015   e) # Broken: fails on valid input.
   8016 continue ;;
   8017 esac
   8018 fi
   8019 rm -f conftest.err conftest.i conftest.$ac_ext
   8020 
   8021   # OK, works on sane cases.  Now check whether nonexistent headers
   8022   # can be detected and how.
   8023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8024 /* end confdefs.h.  */
   8025 #include <ac_nonexistent.h>
   8026 _ACEOF
   8027 if ac_fn_c_try_cpp "$LINENO"
   8028 then :
   8029   # Broken: success on invalid input.
   8030 continue
   8031 else case e in #(
   8032   e) # Passes both tests.
   8033 ac_preproc_ok=:
   8034 break ;;
   8035 esac
   8036 fi
   8037 rm -f conftest.err conftest.i conftest.$ac_ext
   8038 
   8039 done
   8040 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   8041 rm -f conftest.i conftest.err conftest.$ac_ext
   8042 if $ac_preproc_ok
   8043 then :
   8044 
   8045 else case e in #(
   8046   e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   8047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   8048 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   8049 See 'config.log' for more details" "$LINENO" 5; } ;;
   8050 esac
   8051 fi
   8052 
   8053 ac_ext=c
   8054 ac_cpp='$CPP $CPPFLAGS'
   8055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8058 
   8059 
   8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
   8061 printf %s "checking for egrep -e... " >&6; }
   8062 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
   8063 then :
   8064   printf %s "(cached) " >&6
   8065 else case e in #(
   8066   e) if test -z "$EGREP_TRADITIONAL"; then
   8067   ac_path_EGREP_TRADITIONAL_found=false
   8068   # Loop through the user's path and test for each of PROGNAME-LIST
   8069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   8071 do
   8072   IFS=$as_save_IFS
   8073   case $as_dir in #(((
   8074     '') as_dir=./ ;;
   8075     */) ;;
   8076     *) as_dir=$as_dir/ ;;
   8077   esac
   8078     for ac_prog in grep ggrep
   8079    do
   8080     for ac_exec_ext in '' $ac_executable_extensions; do
   8081       ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
   8082       as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
   8083 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
   8084   # Check for GNU $ac_path_EGREP_TRADITIONAL
   8085 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
   8086 *GNU*)
   8087   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
   8088 #(
   8089 *)
   8090   ac_count=0
   8091   printf %s 0123456789 >"conftest.in"
   8092   while :
   8093   do
   8094     cat "conftest.in" "conftest.in" >"conftest.tmp"
   8095     mv "conftest.tmp" "conftest.in"
   8096     cp "conftest.in" "conftest.nl"
   8097     printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
   8098     "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   8099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   8100     as_fn_arith $ac_count + 1 && ac_count=$as_val
   8101     if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
   8102       # Best one so far, save it but keep looking for a better one
   8103       ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
   8104       ac_path_EGREP_TRADITIONAL_max=$ac_count
   8105     fi
   8106     # 10*(2^10) chars as input seems more than enough
   8107     test $ac_count -gt 10 && break
   8108   done
   8109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   8110 esac
   8111 
   8112       $ac_path_EGREP_TRADITIONAL_found && break 3
   8113     done
   8114   done
   8115   done
   8116 IFS=$as_save_IFS
   8117   if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
   8118     :
   8119   fi
   8120 else
   8121   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
   8122 fi
   8123 
   8124     if test "$ac_cv_path_EGREP_TRADITIONAL"
   8125 then :
   8126   ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
   8127 else case e in #(
   8128   e) if test -z "$EGREP_TRADITIONAL"; then
   8129   ac_path_EGREP_TRADITIONAL_found=false
   8130   # Loop through the user's path and test for each of PROGNAME-LIST
   8131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   8133 do
   8134   IFS=$as_save_IFS
   8135   case $as_dir in #(((
   8136     '') as_dir=./ ;;
   8137     */) ;;
   8138     *) as_dir=$as_dir/ ;;
   8139   esac
   8140     for ac_prog in egrep
   8141    do
   8142     for ac_exec_ext in '' $ac_executable_extensions; do
   8143       ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
   8144       as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
   8145 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
   8146   # Check for GNU $ac_path_EGREP_TRADITIONAL
   8147 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
   8148 *GNU*)
   8149   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
   8150 #(
   8151 *)
   8152   ac_count=0
   8153   printf %s 0123456789 >"conftest.in"
   8154   while :
   8155   do
   8156     cat "conftest.in" "conftest.in" >"conftest.tmp"
   8157     mv "conftest.tmp" "conftest.in"
   8158     cp "conftest.in" "conftest.nl"
   8159     printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
   8160     "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   8161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   8162     as_fn_arith $ac_count + 1 && ac_count=$as_val
   8163     if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
   8164       # Best one so far, save it but keep looking for a better one
   8165       ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
   8166       ac_path_EGREP_TRADITIONAL_max=$ac_count
   8167     fi
   8168     # 10*(2^10) chars as input seems more than enough
   8169     test $ac_count -gt 10 && break
   8170   done
   8171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   8172 esac
   8173 
   8174       $ac_path_EGREP_TRADITIONAL_found && break 3
   8175     done
   8176   done
   8177   done
   8178 IFS=$as_save_IFS
   8179   if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
   8180     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   8181   fi
   8182 else
   8183   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
   8184 fi
   8185  ;;
   8186 esac
   8187 fi ;;
   8188 esac
   8189 fi
   8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
   8191 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
   8192  EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
   8193 
   8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5
   8195 printf %s "checking for int8_t... " >&6; }
   8196 if test ${ac_cv_type_int8_t+y}
   8197 then :
   8198   printf %s "(cached) " >&6
   8199 else case e in #(
   8200   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8201 /* end confdefs.h.  */
   8202 
   8203 #include <sys/types.h>
   8204 #include <stdlib.h>
   8205 #include <stddef.h>
   8206 
   8207 #ifdef HAVE_STDINT_H
   8208 #include <stdint.h>
   8209 #endif
   8210 
   8211 #ifdef HAVE_SYS_SOCKET_H
   8212 #include <sys/socket.h>
   8213 #endif
   8214 
   8215 #ifdef HAVE_ARPA_INET_H
   8216 #include <arpa/inet.h>
   8217 #endif
   8218 
   8219 #ifdef HAVE_SIGNAL_H
   8220 #include <signal.h>
   8221 #endif
   8222 
   8223 /* For Tru64 */
   8224 #ifdef HAVE_SYS_BITYPES_H
   8225 #include <sys/bitypes.h>
   8226 #endif
   8227 
   8228 _ACEOF
   8229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8230   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8231 then :
   8232   ac_cv_type_int8_t=yes
   8233 else case e in #(
   8234   e) ac_cv_type_int8_t=no ;;
   8235 esac
   8236 fi
   8237 rm -rf conftest*
   8238  ;;
   8239 esac
   8240 fi
   8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5
   8242 printf "%s\n" "$ac_cv_type_int8_t" >&6; }
   8243 if test $ac_cv_type_int8_t = no; then
   8244 
   8245 printf "%s\n" "#define int8_t char" >>confdefs.h
   8246 
   8247 fi
   8248 
   8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5
   8250 printf %s "checking for int16_t... " >&6; }
   8251 if test ${ac_cv_type_int16_t+y}
   8252 then :
   8253   printf %s "(cached) " >&6
   8254 else case e in #(
   8255   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8256 /* end confdefs.h.  */
   8257 
   8258 #include <sys/types.h>
   8259 #include <stdlib.h>
   8260 #include <stddef.h>
   8261 
   8262 #ifdef HAVE_STDINT_H
   8263 #include <stdint.h>
   8264 #endif
   8265 
   8266 #ifdef HAVE_SYS_SOCKET_H
   8267 #include <sys/socket.h>
   8268 #endif
   8269 
   8270 #ifdef HAVE_ARPA_INET_H
   8271 #include <arpa/inet.h>
   8272 #endif
   8273 
   8274 #ifdef HAVE_SIGNAL_H
   8275 #include <signal.h>
   8276 #endif
   8277 
   8278 /* For Tru64 */
   8279 #ifdef HAVE_SYS_BITYPES_H
   8280 #include <sys/bitypes.h>
   8281 #endif
   8282 
   8283 _ACEOF
   8284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8285   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8286 then :
   8287   ac_cv_type_int16_t=yes
   8288 else case e in #(
   8289   e) ac_cv_type_int16_t=no ;;
   8290 esac
   8291 fi
   8292 rm -rf conftest*
   8293  ;;
   8294 esac
   8295 fi
   8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5
   8297 printf "%s\n" "$ac_cv_type_int16_t" >&6; }
   8298 if test $ac_cv_type_int16_t = no; then
   8299 
   8300 printf "%s\n" "#define int16_t short" >>confdefs.h
   8301 
   8302 fi
   8303 
   8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
   8305 printf %s "checking for int32_t... " >&6; }
   8306 if test ${ac_cv_type_int32_t+y}
   8307 then :
   8308   printf %s "(cached) " >&6
   8309 else case e in #(
   8310   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8311 /* end confdefs.h.  */
   8312 
   8313 #include <sys/types.h>
   8314 #include <stdlib.h>
   8315 #include <stddef.h>
   8316 
   8317 #ifdef HAVE_STDINT_H
   8318 #include <stdint.h>
   8319 #endif
   8320 
   8321 #ifdef HAVE_SYS_SOCKET_H
   8322 #include <sys/socket.h>
   8323 #endif
   8324 
   8325 #ifdef HAVE_ARPA_INET_H
   8326 #include <arpa/inet.h>
   8327 #endif
   8328 
   8329 #ifdef HAVE_SIGNAL_H
   8330 #include <signal.h>
   8331 #endif
   8332 
   8333 /* For Tru64 */
   8334 #ifdef HAVE_SYS_BITYPES_H
   8335 #include <sys/bitypes.h>
   8336 #endif
   8337 
   8338 _ACEOF
   8339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8340   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8341 then :
   8342   ac_cv_type_int32_t=yes
   8343 else case e in #(
   8344   e) ac_cv_type_int32_t=no ;;
   8345 esac
   8346 fi
   8347 rm -rf conftest*
   8348  ;;
   8349 esac
   8350 fi
   8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5
   8352 printf "%s\n" "$ac_cv_type_int32_t" >&6; }
   8353 if test $ac_cv_type_int32_t = no; then
   8354 
   8355 printf "%s\n" "#define int32_t int" >>confdefs.h
   8356 
   8357 fi
   8358 
   8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
   8360 printf %s "checking for int64_t... " >&6; }
   8361 if test ${ac_cv_type_int64_t+y}
   8362 then :
   8363   printf %s "(cached) " >&6
   8364 else case e in #(
   8365   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8366 /* end confdefs.h.  */
   8367 
   8368 #include <sys/types.h>
   8369 #include <stdlib.h>
   8370 #include <stddef.h>
   8371 
   8372 #ifdef HAVE_STDINT_H
   8373 #include <stdint.h>
   8374 #endif
   8375 
   8376 #ifdef HAVE_SYS_SOCKET_H
   8377 #include <sys/socket.h>
   8378 #endif
   8379 
   8380 #ifdef HAVE_ARPA_INET_H
   8381 #include <arpa/inet.h>
   8382 #endif
   8383 
   8384 #ifdef HAVE_SIGNAL_H
   8385 #include <signal.h>
   8386 #endif
   8387 
   8388 /* For Tru64 */
   8389 #ifdef HAVE_SYS_BITYPES_H
   8390 #include <sys/bitypes.h>
   8391 #endif
   8392 
   8393 _ACEOF
   8394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8395   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8396 then :
   8397   ac_cv_type_int64_t=yes
   8398 else case e in #(
   8399   e) ac_cv_type_int64_t=no ;;
   8400 esac
   8401 fi
   8402 rm -rf conftest*
   8403  ;;
   8404 esac
   8405 fi
   8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5
   8407 printf "%s\n" "$ac_cv_type_int64_t" >&6; }
   8408 if test $ac_cv_type_int64_t = no; then
   8409 
   8410 printf "%s\n" "#define int64_t long long" >>confdefs.h
   8411 
   8412 fi
   8413 
   8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
   8415 printf %s "checking for uint8_t... " >&6; }
   8416 if test ${ac_cv_type_uint8_t+y}
   8417 then :
   8418   printf %s "(cached) " >&6
   8419 else case e in #(
   8420   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8421 /* end confdefs.h.  */
   8422 
   8423 #include <sys/types.h>
   8424 #include <stdlib.h>
   8425 #include <stddef.h>
   8426 
   8427 #ifdef HAVE_STDINT_H
   8428 #include <stdint.h>
   8429 #endif
   8430 
   8431 #ifdef HAVE_SYS_SOCKET_H
   8432 #include <sys/socket.h>
   8433 #endif
   8434 
   8435 #ifdef HAVE_ARPA_INET_H
   8436 #include <arpa/inet.h>
   8437 #endif
   8438 
   8439 #ifdef HAVE_SIGNAL_H
   8440 #include <signal.h>
   8441 #endif
   8442 
   8443 /* For Tru64 */
   8444 #ifdef HAVE_SYS_BITYPES_H
   8445 #include <sys/bitypes.h>
   8446 #endif
   8447 
   8448 _ACEOF
   8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8450   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8451 then :
   8452   ac_cv_type_uint8_t=yes
   8453 else case e in #(
   8454   e) ac_cv_type_uint8_t=no ;;
   8455 esac
   8456 fi
   8457 rm -rf conftest*
   8458  ;;
   8459 esac
   8460 fi
   8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
   8462 printf "%s\n" "$ac_cv_type_uint8_t" >&6; }
   8463 if test $ac_cv_type_uint8_t = no; then
   8464 
   8465 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
   8466 
   8467 fi
   8468 
   8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
   8470 printf %s "checking for uint16_t... " >&6; }
   8471 if test ${ac_cv_type_uint16_t+y}
   8472 then :
   8473   printf %s "(cached) " >&6
   8474 else case e in #(
   8475   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8476 /* end confdefs.h.  */
   8477 
   8478 #include <sys/types.h>
   8479 #include <stdlib.h>
   8480 #include <stddef.h>
   8481 
   8482 #ifdef HAVE_STDINT_H
   8483 #include <stdint.h>
   8484 #endif
   8485 
   8486 #ifdef HAVE_SYS_SOCKET_H
   8487 #include <sys/socket.h>
   8488 #endif
   8489 
   8490 #ifdef HAVE_ARPA_INET_H
   8491 #include <arpa/inet.h>
   8492 #endif
   8493 
   8494 #ifdef HAVE_SIGNAL_H
   8495 #include <signal.h>
   8496 #endif
   8497 
   8498 /* For Tru64 */
   8499 #ifdef HAVE_SYS_BITYPES_H
   8500 #include <sys/bitypes.h>
   8501 #endif
   8502 
   8503 _ACEOF
   8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8505   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8506 then :
   8507   ac_cv_type_uint16_t=yes
   8508 else case e in #(
   8509   e) ac_cv_type_uint16_t=no ;;
   8510 esac
   8511 fi
   8512 rm -rf conftest*
   8513  ;;
   8514 esac
   8515 fi
   8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
   8517 printf "%s\n" "$ac_cv_type_uint16_t" >&6; }
   8518 if test $ac_cv_type_uint16_t = no; then
   8519 
   8520 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
   8521 
   8522 fi
   8523 
   8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
   8525 printf %s "checking for uint32_t... " >&6; }
   8526 if test ${ac_cv_type_uint32_t+y}
   8527 then :
   8528   printf %s "(cached) " >&6
   8529 else case e in #(
   8530   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8531 /* end confdefs.h.  */
   8532 
   8533 #include <sys/types.h>
   8534 #include <stdlib.h>
   8535 #include <stddef.h>
   8536 
   8537 #ifdef HAVE_STDINT_H
   8538 #include <stdint.h>
   8539 #endif
   8540 
   8541 #ifdef HAVE_SYS_SOCKET_H
   8542 #include <sys/socket.h>
   8543 #endif
   8544 
   8545 #ifdef HAVE_ARPA_INET_H
   8546 #include <arpa/inet.h>
   8547 #endif
   8548 
   8549 #ifdef HAVE_SIGNAL_H
   8550 #include <signal.h>
   8551 #endif
   8552 
   8553 /* For Tru64 */
   8554 #ifdef HAVE_SYS_BITYPES_H
   8555 #include <sys/bitypes.h>
   8556 #endif
   8557 
   8558 _ACEOF
   8559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8560   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8561 then :
   8562   ac_cv_type_uint32_t=yes
   8563 else case e in #(
   8564   e) ac_cv_type_uint32_t=no ;;
   8565 esac
   8566 fi
   8567 rm -rf conftest*
   8568  ;;
   8569 esac
   8570 fi
   8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
   8572 printf "%s\n" "$ac_cv_type_uint32_t" >&6; }
   8573 if test $ac_cv_type_uint32_t = no; then
   8574 
   8575 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
   8576 
   8577 fi
   8578 
   8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
   8580 printf %s "checking for uint64_t... " >&6; }
   8581 if test ${ac_cv_type_uint64_t+y}
   8582 then :
   8583   printf %s "(cached) " >&6
   8584 else case e in #(
   8585   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8586 /* end confdefs.h.  */
   8587 
   8588 #include <sys/types.h>
   8589 #include <stdlib.h>
   8590 #include <stddef.h>
   8591 
   8592 #ifdef HAVE_STDINT_H
   8593 #include <stdint.h>
   8594 #endif
   8595 
   8596 #ifdef HAVE_SYS_SOCKET_H
   8597 #include <sys/socket.h>
   8598 #endif
   8599 
   8600 #ifdef HAVE_ARPA_INET_H
   8601 #include <arpa/inet.h>
   8602 #endif
   8603 
   8604 #ifdef HAVE_SIGNAL_H
   8605 #include <signal.h>
   8606 #endif
   8607 
   8608 /* For Tru64 */
   8609 #ifdef HAVE_SYS_BITYPES_H
   8610 #include <sys/bitypes.h>
   8611 #endif
   8612 
   8613 _ACEOF
   8614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8615   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8616 then :
   8617   ac_cv_type_uint64_t=yes
   8618 else case e in #(
   8619   e) ac_cv_type_uint64_t=no ;;
   8620 esac
   8621 fi
   8622 rm -rf conftest*
   8623  ;;
   8624 esac
   8625 fi
   8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
   8627 printf "%s\n" "$ac_cv_type_uint64_t" >&6; }
   8628 if test $ac_cv_type_uint64_t = no; then
   8629 
   8630 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
   8631 
   8632 fi
   8633 
   8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
   8635 printf %s "checking for socklen_t... " >&6; }
   8636 if test ${ac_cv_type_socklen_t+y}
   8637 then :
   8638   printf %s "(cached) " >&6
   8639 else case e in #(
   8640   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8641 /* end confdefs.h.  */
   8642 
   8643 #include <sys/types.h>
   8644 #include <stdlib.h>
   8645 #include <stddef.h>
   8646 
   8647 #ifdef HAVE_STDINT_H
   8648 #include <stdint.h>
   8649 #endif
   8650 
   8651 #ifdef HAVE_SYS_SOCKET_H
   8652 #include <sys/socket.h>
   8653 #endif
   8654 
   8655 #ifdef HAVE_ARPA_INET_H
   8656 #include <arpa/inet.h>
   8657 #endif
   8658 
   8659 #ifdef HAVE_SIGNAL_H
   8660 #include <signal.h>
   8661 #endif
   8662 
   8663 /* For Tru64 */
   8664 #ifdef HAVE_SYS_BITYPES_H
   8665 #include <sys/bitypes.h>
   8666 #endif
   8667 
   8668 _ACEOF
   8669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8670   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8671 then :
   8672   ac_cv_type_socklen_t=yes
   8673 else case e in #(
   8674   e) ac_cv_type_socklen_t=no ;;
   8675 esac
   8676 fi
   8677 rm -rf conftest*
   8678  ;;
   8679 esac
   8680 fi
   8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
   8682 printf "%s\n" "$ac_cv_type_socklen_t" >&6; }
   8683 if test $ac_cv_type_socklen_t = no; then
   8684 
   8685 printf "%s\n" "#define socklen_t int" >>confdefs.h
   8686 
   8687 fi
   8688 
   8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
   8690 printf %s "checking for sig_atomic_t... " >&6; }
   8691 if test ${ac_cv_type_sig_atomic_t+y}
   8692 then :
   8693   printf %s "(cached) " >&6
   8694 else case e in #(
   8695   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8696 /* end confdefs.h.  */
   8697 
   8698 #include <sys/types.h>
   8699 #include <stdlib.h>
   8700 #include <stddef.h>
   8701 
   8702 #ifdef HAVE_STDINT_H
   8703 #include <stdint.h>
   8704 #endif
   8705 
   8706 #ifdef HAVE_SYS_SOCKET_H
   8707 #include <sys/socket.h>
   8708 #endif
   8709 
   8710 #ifdef HAVE_ARPA_INET_H
   8711 #include <arpa/inet.h>
   8712 #endif
   8713 
   8714 #ifdef HAVE_SIGNAL_H
   8715 #include <signal.h>
   8716 #endif
   8717 
   8718 /* For Tru64 */
   8719 #ifdef HAVE_SYS_BITYPES_H
   8720 #include <sys/bitypes.h>
   8721 #endif
   8722 
   8723 _ACEOF
   8724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8725   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8726 then :
   8727   ac_cv_type_sig_atomic_t=yes
   8728 else case e in #(
   8729   e) ac_cv_type_sig_atomic_t=no ;;
   8730 esac
   8731 fi
   8732 rm -rf conftest*
   8733  ;;
   8734 esac
   8735 fi
   8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
   8737 printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; }
   8738 if test $ac_cv_type_sig_atomic_t = no; then
   8739 
   8740 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
   8741 
   8742 fi
   8743 
   8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
   8745 printf %s "checking for ssize_t... " >&6; }
   8746 if test ${ac_cv_type_ssize_t+y}
   8747 then :
   8748   printf %s "(cached) " >&6
   8749 else case e in #(
   8750   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8751 /* end confdefs.h.  */
   8752 
   8753 #include <sys/types.h>
   8754 #include <stdlib.h>
   8755 #include <stddef.h>
   8756 
   8757 #ifdef HAVE_STDINT_H
   8758 #include <stdint.h>
   8759 #endif
   8760 
   8761 #ifdef HAVE_SYS_SOCKET_H
   8762 #include <sys/socket.h>
   8763 #endif
   8764 
   8765 #ifdef HAVE_ARPA_INET_H
   8766 #include <arpa/inet.h>
   8767 #endif
   8768 
   8769 #ifdef HAVE_SIGNAL_H
   8770 #include <signal.h>
   8771 #endif
   8772 
   8773 /* For Tru64 */
   8774 #ifdef HAVE_SYS_BITYPES_H
   8775 #include <sys/bitypes.h>
   8776 #endif
   8777 
   8778 _ACEOF
   8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8780   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8781 then :
   8782   ac_cv_type_ssize_t=yes
   8783 else case e in #(
   8784   e) ac_cv_type_ssize_t=no ;;
   8785 esac
   8786 fi
   8787 rm -rf conftest*
   8788  ;;
   8789 esac
   8790 fi
   8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5
   8792 printf "%s\n" "$ac_cv_type_ssize_t" >&6; }
   8793 if test $ac_cv_type_ssize_t = no; then
   8794 
   8795 printf "%s\n" "#define ssize_t int" >>confdefs.h
   8796 
   8797 fi
   8798 
   8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5
   8800 printf %s "checking for suseconds_t... " >&6; }
   8801 if test ${ac_cv_type_suseconds_t+y}
   8802 then :
   8803   printf %s "(cached) " >&6
   8804 else case e in #(
   8805   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8806 /* end confdefs.h.  */
   8807 
   8808 #include <sys/types.h>
   8809 #include <stdlib.h>
   8810 #include <stddef.h>
   8811 
   8812 #ifdef HAVE_STDINT_H
   8813 #include <stdint.h>
   8814 #endif
   8815 
   8816 #ifdef HAVE_SYS_SOCKET_H
   8817 #include <sys/socket.h>
   8818 #endif
   8819 
   8820 #ifdef HAVE_ARPA_INET_H
   8821 #include <arpa/inet.h>
   8822 #endif
   8823 
   8824 #ifdef HAVE_SIGNAL_H
   8825 #include <signal.h>
   8826 #endif
   8827 
   8828 /* For Tru64 */
   8829 #ifdef HAVE_SYS_BITYPES_H
   8830 #include <sys/bitypes.h>
   8831 #endif
   8832 
   8833 _ACEOF
   8834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8835   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   8836 then :
   8837   ac_cv_type_suseconds_t=yes
   8838 else case e in #(
   8839   e) ac_cv_type_suseconds_t=no ;;
   8840 esac
   8841 fi
   8842 rm -rf conftest*
   8843  ;;
   8844 esac
   8845 fi
   8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5
   8847 printf "%s\n" "$ac_cv_type_suseconds_t" >&6; }
   8848 if test $ac_cv_type_suseconds_t = no; then
   8849 
   8850 printf "%s\n" "#define suseconds_t time_t" >>confdefs.h
   8851 
   8852 fi
   8853 
   8854 
   8855 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
   8856 #if HAVE_SYS_TYPES_H
   8857 # include <sys/types.h>
   8858 #endif
   8859 #if HAVE_NETINET_IN_H
   8860 # include <netinet/in.h>
   8861 #endif
   8862 "
   8863 if test "x$ac_cv_type_in_addr_t" = xyes
   8864 then :
   8865 
   8866 else case e in #(
   8867   e)
   8868 printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h
   8869  ;;
   8870 esac
   8871 fi
   8872 
   8873 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
   8874 #ifdef HAVE_NETINET_IN_H
   8875 #include <netinet/in.h>
   8876 #endif
   8877 #ifdef HAVE_SYS_SOCKET_H
   8878 #include <sys/socket.h>
   8879 #endif
   8880 #ifdef HAVE_NETDB_H
   8881 #include <netdb.h>
   8882 #endif
   8883 #ifdef HAVE_ARPA_INET_H
   8884 #include <arpa/inet.h>
   8885 #endif
   8886 
   8887 "
   8888 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
   8889 then :
   8890 
   8891 else case e in #(
   8892   e)
   8893         ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
   8894 #ifdef HAVE_NETINET_IN_H
   8895 #include <netinet/in.h>
   8896 #endif
   8897 #ifdef HAVE_SYS_SOCKET_H
   8898 #include <sys/socket.h>
   8899 #endif
   8900 #ifdef HAVE_NETDB_H
   8901 #include <netdb.h>
   8902 #endif
   8903 #ifdef HAVE_ARPA_INET_H
   8904 #include <arpa/inet.h>
   8905 #endif
   8906 
   8907 "
   8908 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
   8909 then :
   8910 
   8911 
   8912 printf "%s\n" "#define ss_family __ss_family" >>confdefs.h
   8913 
   8914 
   8915 fi
   8916 
   8917  ;;
   8918 esac
   8919 fi
   8920 
   8921 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
   8922 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
   8923 then :
   8924 
   8925 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
   8926 
   8927 
   8928 fi
   8929 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
   8930 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
   8931 then :
   8932 
   8933 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
   8934 
   8935 
   8936 fi
   8937 
   8938 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
   8939 $ac_includes_default
   8940 #ifdef HAVE_SYS_UN_H
   8941 #include <sys/un.h>
   8942 #endif
   8943 
   8944 "
   8945 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
   8946 then :
   8947 
   8948 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
   8949 
   8950 
   8951 fi
   8952 
   8953 
   8954 # Checks for library functions.
   8955 
   8956 
   8957   # Make sure we can run config.sub.
   8958 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   8959   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   8960 
   8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   8962 printf %s "checking build system type... " >&6; }
   8963 if test ${ac_cv_build+y}
   8964 then :
   8965   printf %s "(cached) " >&6
   8966 else case e in #(
   8967   e) ac_build_alias=$build_alias
   8968 test "x$ac_build_alias" = x &&
   8969   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   8970 test "x$ac_build_alias" = x &&
   8971   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   8972 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   8973   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   8974  ;;
   8975 esac
   8976 fi
   8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   8978 printf "%s\n" "$ac_cv_build" >&6; }
   8979 case $ac_cv_build in
   8980 *-*-*) ;;
   8981 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   8982 esac
   8983 build=$ac_cv_build
   8984 ac_save_IFS=$IFS; IFS='-'
   8985 set x $ac_cv_build
   8986 shift
   8987 build_cpu=$1
   8988 build_vendor=$2
   8989 shift; shift
   8990 # Remember, the first character of IFS is used to create $*,
   8991 # except with old shells:
   8992 build_os=$*
   8993 IFS=$ac_save_IFS
   8994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   8995 
   8996 
   8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   8998 printf %s "checking host system type... " >&6; }
   8999 if test ${ac_cv_host+y}
   9000 then :
   9001   printf %s "(cached) " >&6
   9002 else case e in #(
   9003   e) if test "x$host_alias" = x; then
   9004   ac_cv_host=$ac_cv_build
   9005 else
   9006   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   9007     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   9008 fi
   9009  ;;
   9010 esac
   9011 fi
   9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   9013 printf "%s\n" "$ac_cv_host" >&6; }
   9014 case $ac_cv_host in
   9015 *-*-*) ;;
   9016 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   9017 esac
   9018 host=$ac_cv_host
   9019 ac_save_IFS=$IFS; IFS='-'
   9020 set x $ac_cv_host
   9021 shift
   9022 host_cpu=$1
   9023 host_vendor=$2
   9024 shift; shift
   9025 # Remember, the first character of IFS is used to create $*,
   9026 # except with old shells:
   9027 host_os=$*
   9028 IFS=$ac_save_IFS
   9029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   9030 
   9031 
   9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   9033 printf %s "checking for working chown... " >&6; }
   9034 if test ${ac_cv_func_chown_works+y}
   9035 then :
   9036   printf %s "(cached) " >&6
   9037 else case e in #(
   9038   e) if test "$cross_compiling" = yes
   9039 then :
   9040   case "$host_os" in # ((
   9041 			  # Guess yes on glibc systems.
   9042 		  *-gnu*) ac_cv_func_chown_works=yes ;;
   9043 			  # If we don't know, assume the worst.
   9044 		  *)      ac_cv_func_chown_works=no ;;
   9045 		esac
   9046 else case e in #(
   9047   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9048 /* end confdefs.h.  */
   9049 $ac_includes_default
   9050 #include <fcntl.h>
   9051 
   9052 int
   9053 main (void)
   9054 {
   9055   char *f = "conftest.chown";
   9056   struct stat before, after;
   9057 
   9058   if (creat (f, 0600) < 0)
   9059     return 1;
   9060   if (stat (f, &before) < 0)
   9061     return 1;
   9062   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
   9063     return 1;
   9064   if (stat (f, &after) < 0)
   9065     return 1;
   9066   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   9067 
   9068   ;
   9069   return 0;
   9070 }
   9071 _ACEOF
   9072 if ac_fn_c_try_run "$LINENO"
   9073 then :
   9074   ac_cv_func_chown_works=yes
   9075 else case e in #(
   9076   e) ac_cv_func_chown_works=no ;;
   9077 esac
   9078 fi
   9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9080   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9081 esac
   9082 fi
   9083 
   9084 rm -f conftest.chown
   9085  ;;
   9086 esac
   9087 fi
   9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   9089 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
   9090 if test $ac_cv_func_chown_works = yes; then
   9091 
   9092 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
   9093 
   9094 fi
   9095 
   9096 
   9097 ac_func=
   9098 for ac_item in $ac_func_c_list
   9099 do
   9100   if test $ac_func; then
   9101     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
   9102     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
   9103       echo "#define $ac_item 1" >> confdefs.h
   9104     fi
   9105     ac_func=
   9106   else
   9107     ac_func=$ac_item
   9108   fi
   9109 done
   9110 
   9111 
   9112 
   9113 if test "x$ac_cv_func_fork" = xyes; then
   9114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   9115 printf %s "checking for working fork... " >&6; }
   9116 if test ${ac_cv_func_fork_works+y}
   9117 then :
   9118   printf %s "(cached) " >&6
   9119 else case e in #(
   9120   e) if test "$cross_compiling" = yes
   9121 then :
   9122   ac_cv_func_fork_works=cross
   9123 else case e in #(
   9124   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9125 /* end confdefs.h.  */
   9126 $ac_includes_default
   9127 int
   9128 main (void)
   9129 {
   9130 
   9131 	  /* By R. Kuhlmann. */
   9132 	  return fork () < 0;
   9133 
   9134   ;
   9135   return 0;
   9136 }
   9137 _ACEOF
   9138 if ac_fn_c_try_run "$LINENO"
   9139 then :
   9140   ac_cv_func_fork_works=yes
   9141 else case e in #(
   9142   e) ac_cv_func_fork_works=no ;;
   9143 esac
   9144 fi
   9145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9146   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9147 esac
   9148 fi
   9149  ;;
   9150 esac
   9151 fi
   9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   9153 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
   9154 
   9155 else
   9156   ac_cv_func_fork_works=$ac_cv_func_fork
   9157 fi
   9158 if test "x$ac_cv_func_fork_works" = xcross; then
   9159   case $host in
   9160     *-*-amigaos* | *-*-msdosdjgpp*)
   9161       # Override, as these systems have only a dummy fork() stub
   9162       ac_cv_func_fork_works=no
   9163       ;;
   9164     *)
   9165       ac_cv_func_fork_works=yes
   9166       ;;
   9167   esac
   9168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   9169 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   9170 fi
   9171 ac_cv_func_vfork_works=$ac_cv_func_vfork
   9172 if test "x$ac_cv_func_vfork" = xyes; then
   9173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   9174 printf %s "checking for working vfork... " >&6; }
   9175 if test ${ac_cv_func_vfork_works+y}
   9176 then :
   9177   printf %s "(cached) " >&6
   9178 else case e in #(
   9179   e) if test "$cross_compiling" = yes
   9180 then :
   9181   ac_cv_func_vfork_works=cross
   9182 else case e in #(
   9183   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9184 /* end confdefs.h.  */
   9185 /* Thanks to Paul Eggert for this test.  */
   9186 $ac_includes_default
   9187 #include <signal.h>
   9188 #include <sys/wait.h>
   9189 #ifdef HAVE_VFORK_H
   9190 # include <vfork.h>
   9191 #endif
   9192 
   9193 static void
   9194 do_nothing (int sig)
   9195 {
   9196   (void) sig;
   9197 }
   9198 
   9199 /* On some sparc systems, changes by the child to local and incoming
   9200    argument registers are propagated back to the parent.  The compiler
   9201    is told about this with #include <vfork.h>, but some compilers
   9202    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   9203    static variable whose address is put into a register that is
   9204    clobbered by the vfork.  */
   9205 static void
   9206 sparc_address_test (int arg)
   9207 {
   9208   static pid_t child;
   9209   if (!child) {
   9210     child = vfork ();
   9211     if (child < 0) {
   9212       perror ("vfork");
   9213       _exit(2);
   9214     }
   9215     if (!child) {
   9216       arg = getpid();
   9217       write(-1, "", 0);
   9218       _exit (arg);
   9219     }
   9220   }
   9221 }
   9222 
   9223 int
   9224 main (void)
   9225 {
   9226   pid_t parent = getpid ();
   9227   pid_t child;
   9228 
   9229   sparc_address_test (0);
   9230 
   9231   /* On Solaris 2.4, changes by the child to the signal handler
   9232      also munge signal handlers in the parent.  To detect this,
   9233      start by putting the parent's handler in a known state.  */
   9234   signal (SIGTERM, SIG_DFL);
   9235 
   9236   child = vfork ();
   9237 
   9238   if (child == 0) {
   9239     /* Here is another test for sparc vfork register problems.  This
   9240        test uses lots of local variables, at least as many local
   9241        variables as main has allocated so far including compiler
   9242        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   9243        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   9244        reuse the register of parent for one of the local variables,
   9245        since it will think that parent can't possibly be used any more
   9246        in this routine.  Assigning to the local variable will thus
   9247        munge parent in the parent process.  */
   9248     pid_t
   9249       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   9250       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   9251     /* Convince the compiler that p..p7 are live; otherwise, it might
   9252        use the same hardware register for all 8 local variables.  */
   9253     if (p != p1 || p != p2 || p != p3 || p != p4
   9254 	|| p != p5 || p != p6 || p != p7)
   9255       _exit(1);
   9256 
   9257     /* Alter the child's signal handler.  */
   9258     if (signal (SIGTERM, do_nothing) != SIG_DFL)
   9259       _exit(1);
   9260 
   9261     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   9262        from child file descriptors.  If the child closes a descriptor
   9263        before it execs or exits, this munges the parent's descriptor
   9264        as well.  Test for this by closing stdout in the child.  */
   9265     _exit(close(fileno(stdout)) != 0);
   9266   } else {
   9267     int status;
   9268     struct stat st;
   9269 
   9270     while (wait(&status) != child)
   9271       ;
   9272     return (
   9273 	 /* Was there some problem with vforking?  */
   9274 	 child < 0
   9275 
   9276 	 /* Did the child munge the parent's signal handler?  */
   9277 	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
   9278 
   9279 	 /* Did the child fail?  (This shouldn't happen.)  */
   9280 	 || status
   9281 
   9282 	 /* Did the vfork/compiler bug occur?  */
   9283 	 || parent != getpid()
   9284 
   9285 	 /* Did the file descriptor bug occur?  */
   9286 	 || fstat(fileno(stdout), &st) != 0
   9287 	 );
   9288   }
   9289 }
   9290 _ACEOF
   9291 if ac_fn_c_try_run "$LINENO"
   9292 then :
   9293   ac_cv_func_vfork_works=yes
   9294 else case e in #(
   9295   e) ac_cv_func_vfork_works=no ;;
   9296 esac
   9297 fi
   9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9299   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9300 esac
   9301 fi
   9302  ;;
   9303 esac
   9304 fi
   9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   9306 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
   9307 
   9308 fi;
   9309 if test "x$ac_cv_func_fork_works" = xcross; then
   9310   ac_cv_func_vfork_works=$ac_cv_func_vfork
   9311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   9312 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   9313 fi
   9314 
   9315 if test "x$ac_cv_func_vfork_works" = xyes; then
   9316 
   9317 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   9318 
   9319 else
   9320 
   9321 printf "%s\n" "#define vfork fork" >>confdefs.h
   9322 
   9323 fi
   9324 if test "x$ac_cv_func_fork_works" = xyes; then
   9325 
   9326 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
   9327 
   9328 fi
   9329 
   9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   9331 printf %s "checking for GNU libc compatible malloc... " >&6; }
   9332 if test ${ac_cv_func_malloc_0_nonnull+y}
   9333 then :
   9334   printf %s "(cached) " >&6
   9335 else case e in #(
   9336   e) if test "$cross_compiling" = yes
   9337 then :
   9338   case "$host_os" in # ((
   9339 		  # Guess yes on platforms where we know the result.
   9340 		  *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
   9341 		  | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
   9342 		    ac_cv_func_malloc_0_nonnull=yes ;;
   9343 		  # If we don't know, assume the worst.
   9344 		  *) ac_cv_func_malloc_0_nonnull=no ;;
   9345 		esac
   9346 else case e in #(
   9347   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9348 /* end confdefs.h.  */
   9349 #include <stdlib.h>
   9350 
   9351 int
   9352 main (void)
   9353 {
   9354 void *p = malloc (0);
   9355 		   int result = !p;
   9356 		   free (p);
   9357 		   return result;
   9358   ;
   9359   return 0;
   9360 }
   9361 _ACEOF
   9362 if ac_fn_c_try_run "$LINENO"
   9363 then :
   9364   ac_cv_func_malloc_0_nonnull=yes
   9365 else case e in #(
   9366   e) ac_cv_func_malloc_0_nonnull=no ;;
   9367 esac
   9368 fi
   9369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9370   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9371 esac
   9372 fi
   9373  ;;
   9374 esac
   9375 fi
   9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   9377 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
   9378 if test $ac_cv_func_malloc_0_nonnull = yes
   9379 then :
   9380 
   9381 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
   9382 
   9383 else case e in #(
   9384   e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
   9385 
   9386    case " $LIBOBJS " in
   9387   *" malloc.$ac_objext "* ) ;;
   9388   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   9389  ;;
   9390 esac
   9391 
   9392 
   9393 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
   9394  ;;
   9395 esac
   9396 fi
   9397 
   9398 
   9399 
   9400 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
   9401 
   9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
   9403 printf %s "checking for declarations of fseeko and ftello... " >&6; }
   9404 if test ${ac_cv_func_fseeko_ftello+y}
   9405 then :
   9406   printf %s "(cached) " >&6
   9407 else case e in #(
   9408   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9409 /* end confdefs.h.  */
   9410 
   9411 #if defined __hpux && !defined _LARGEFILE_SOURCE
   9412 # include <limits.h>
   9413 # if LONG_MAX >> 31 == 0
   9414 #  error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
   9415 # endif
   9416 #endif
   9417 #include <sys/types.h> /* for off_t */
   9418 #include <stdio.h>
   9419 
   9420 int
   9421 main (void)
   9422 {
   9423 
   9424   int (*fp1) (FILE *, off_t, int) = fseeko;
   9425   off_t (*fp2) (FILE *) = ftello;
   9426   return fseeko (stdin, 0, 0)
   9427       && fp1 (stdin, 0, 0)
   9428       && ftello (stdin) >= 0
   9429       && fp2 (stdin) >= 0;
   9430 
   9431   ;
   9432   return 0;
   9433 }
   9434 _ACEOF
   9435 if ac_fn_c_try_compile "$LINENO"
   9436 then :
   9437   ac_cv_func_fseeko_ftello=yes
   9438 else case e in #(
   9439   e) ac_save_CPPFLAGS="$CPPFLAGS"
   9440     CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
   9441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9442 /* end confdefs.h.  */
   9443 
   9444 #if defined __hpux && !defined _LARGEFILE_SOURCE
   9445 # include <limits.h>
   9446 # if LONG_MAX >> 31 == 0
   9447 #  error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
   9448 # endif
   9449 #endif
   9450 #include <sys/types.h> /* for off_t */
   9451 #include <stdio.h>
   9452 
   9453 int
   9454 main (void)
   9455 {
   9456 
   9457   int (*fp1) (FILE *, off_t, int) = fseeko;
   9458   off_t (*fp2) (FILE *) = ftello;
   9459   return fseeko (stdin, 0, 0)
   9460       && fp1 (stdin, 0, 0)
   9461       && ftello (stdin) >= 0
   9462       && fp2 (stdin) >= 0;
   9463 
   9464   ;
   9465   return 0;
   9466 }
   9467 _ACEOF
   9468 if ac_fn_c_try_compile "$LINENO"
   9469 then :
   9470   ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
   9471 else case e in #(
   9472   e) ac_cv_func_fseeko_ftello=no ;;
   9473 esac
   9474 fi
   9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9476 esac
   9477 fi
   9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   9479 esac
   9480 fi
   9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
   9482 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
   9483 if test "$ac_cv_func_fseeko_ftello" != no
   9484 then :
   9485 
   9486 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
   9487 
   9488 fi
   9489 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
   9490 then :
   9491 
   9492 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
   9493 
   9494 fi
   9495 
   9496 # Check whether --enable-largefile was given.
   9497 if test ${enable_largefile+y}
   9498 then :
   9499   enableval=$enable_largefile;
   9500 fi
   9501 if test "$enable_largefile,$enable_year2038" != no,no
   9502 then :
   9503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
   9504 printf %s "checking for $CC option to enable large file support... " >&6; }
   9505 if test ${ac_cv_sys_largefile_opts+y}
   9506 then :
   9507   printf %s "(cached) " >&6
   9508 else case e in #(
   9509   e) ac_save_CC="$CC"
   9510   ac_opt_found=no
   9511   for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
   9512     if test x"$ac_opt" != x"none needed"
   9513 then :
   9514   CC="$ac_save_CC $ac_opt"
   9515 fi
   9516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9517 /* end confdefs.h.  */
   9518 #include <sys/types.h>
   9519 #ifndef FTYPE
   9520 # define FTYPE off_t
   9521 #endif
   9522  /* Check that FTYPE can represent 2**63 - 1 correctly.
   9523     We can't simply define LARGE_FTYPE to be 9223372036854775807,
   9524     since some C++ compilers masquerading as C compilers
   9525     incorrectly reject 9223372036854775807.  */
   9526 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
   9527   int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
   9528 		       && LARGE_FTYPE % 2147483647 == 1)
   9529 		      ? 1 : -1];
   9530 int
   9531 main (void)
   9532 {
   9533 
   9534   ;
   9535   return 0;
   9536 }
   9537 _ACEOF
   9538 if ac_fn_c_try_compile "$LINENO"
   9539 then :
   9540   if test x"$ac_opt" = x"none needed"
   9541 then :
   9542   # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
   9543 	 CC="$CC -DFTYPE=ino_t"
   9544 	 if ac_fn_c_try_compile "$LINENO"
   9545 then :
   9546 
   9547 else case e in #(
   9548   e) CC="$CC -D_FILE_OFFSET_BITS=64"
   9549 	    if ac_fn_c_try_compile "$LINENO"
   9550 then :
   9551   ac_opt='-D_FILE_OFFSET_BITS=64'
   9552 fi
   9553 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
   9554 esac
   9555 fi
   9556 rm -f core conftest.err conftest.$ac_objext conftest.beam
   9557 fi
   9558       ac_cv_sys_largefile_opts=$ac_opt
   9559       ac_opt_found=yes
   9560 fi
   9561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9562     test $ac_opt_found = no || break
   9563   done
   9564   CC="$ac_save_CC"
   9565 
   9566   test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
   9567 esac
   9568 fi
   9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
   9570 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
   9571 
   9572 ac_have_largefile=yes
   9573 case $ac_cv_sys_largefile_opts in #(
   9574   "none needed") :
   9575      ;; #(
   9576   "supported through gnulib") :
   9577      ;; #(
   9578   "support not detected") :
   9579     ac_have_largefile=no ;; #(
   9580   "-D_FILE_OFFSET_BITS=64") :
   9581 
   9582 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
   9583  ;; #(
   9584   "-D_LARGE_FILES=1") :
   9585 
   9586 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
   9587  ;; #(
   9588   "-n32") :
   9589     CC="$CC -n32" ;; #(
   9590   *) :
   9591     as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
   9592 esac
   9593 
   9594 if test "$enable_year2038" != no
   9595 then :
   9596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
   9597 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
   9598 if test ${ac_cv_sys_year2038_opts+y}
   9599 then :
   9600   printf %s "(cached) " >&6
   9601 else case e in #(
   9602   e) ac_save_CPPFLAGS="$CPPFLAGS"
   9603   ac_opt_found=no
   9604   for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
   9605     if test x"$ac_opt" != x"none needed"
   9606 then :
   9607   CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
   9608 fi
   9609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9610 /* end confdefs.h.  */
   9611 
   9612   #include <time.h>
   9613   /* Check that time_t can represent 2**32 - 1 correctly.  */
   9614   #define LARGE_TIME_T \\
   9615     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
   9616   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
   9617                            && LARGE_TIME_T % 65537 == 0)
   9618                           ? 1 : -1];
   9619 
   9620 int
   9621 main (void)
   9622 {
   9623 
   9624   ;
   9625   return 0;
   9626 }
   9627 _ACEOF
   9628 if ac_fn_c_try_compile "$LINENO"
   9629 then :
   9630   ac_cv_sys_year2038_opts="$ac_opt"
   9631       ac_opt_found=yes
   9632 fi
   9633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9634     test $ac_opt_found = no || break
   9635   done
   9636   CPPFLAGS="$ac_save_CPPFLAGS"
   9637   test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
   9638 esac
   9639 fi
   9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
   9641 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
   9642 
   9643 ac_have_year2038=yes
   9644 case $ac_cv_sys_year2038_opts in #(
   9645   "none needed") :
   9646      ;; #(
   9647   "support not detected") :
   9648     ac_have_year2038=no ;; #(
   9649   "-D_TIME_BITS=64") :
   9650 
   9651 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
   9652  ;; #(
   9653   "-D__MINGW_USE_VC2005_COMPAT") :
   9654 
   9655 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
   9656  ;; #(
   9657   "-U_USE_32_BIT_TIME_T"*) :
   9658     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   9659 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   9660 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
   9661 will stop working after mid-January 2038. Remove
   9662 _USE_32BIT_TIME_T from the compiler flags.
   9663 See 'config.log' for more details" "$LINENO" 5; } ;; #(
   9664   *) :
   9665     as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
   9666 esac
   9667 
   9668 fi
   9669 
   9670 fi
   9671 # The cast to long int works around a bug in the HP C Compiler
   9672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9673 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
   9674 # This bug is HP SR number 8606223364.
   9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
   9676 printf %s "checking size of void*... " >&6; }
   9677 if test ${ac_cv_sizeof_voidp+y}
   9678 then :
   9679   printf %s "(cached) " >&6
   9680 else case e in #(
   9681   e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"
   9682 then :
   9683 
   9684 else case e in #(
   9685   e) if test "$ac_cv_type_voidp" = yes; then
   9686      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   9687 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   9688 as_fn_error 77 "cannot compute sizeof (void*)
   9689 See 'config.log' for more details" "$LINENO" 5; }
   9690    else
   9691      ac_cv_sizeof_voidp=0
   9692    fi ;;
   9693 esac
   9694 fi
   9695  ;;
   9696 esac
   9697 fi
   9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
   9699 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
   9700 
   9701 
   9702 
   9703 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
   9704 
   9705 
   9706 # The cast to long int works around a bug in the HP C Compiler
   9707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9708 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
   9709 # This bug is HP SR number 8606223364.
   9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
   9711 printf %s "checking size of off_t... " >&6; }
   9712 if test ${ac_cv_sizeof_off_t+y}
   9713 then :
   9714   printf %s "(cached) " >&6
   9715 else case e in #(
   9716   e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
   9717 then :
   9718 
   9719 else case e in #(
   9720   e) if test "$ac_cv_type_off_t" = yes; then
   9721      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   9722 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   9723 as_fn_error 77 "cannot compute sizeof (off_t)
   9724 See 'config.log' for more details" "$LINENO" 5; }
   9725    else
   9726      ac_cv_sizeof_off_t=0
   9727    fi ;;
   9728 esac
   9729 fi
   9730  ;;
   9731 esac
   9732 fi
   9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
   9734 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
   9735 
   9736 
   9737 
   9738 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
   9739 
   9740 
   9741 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
   9742 if test "x$ac_cv_func_getrandom" = xyes
   9743 then :
   9744   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
   9745 
   9746 fi
   9747 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
   9748 if test "x$ac_cv_func_arc4random" = xyes
   9749 then :
   9750   printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
   9751 
   9752 fi
   9753 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
   9754 if test "x$ac_cv_func_arc4random_uniform" = xyes
   9755 then :
   9756   printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
   9757 
   9758 fi
   9759 
   9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
   9761 printf %s "checking for library containing setusercontext... " >&6; }
   9762 if test ${ac_cv_search_setusercontext+y}
   9763 then :
   9764   printf %s "(cached) " >&6
   9765 else case e in #(
   9766   e) ac_func_search_save_LIBS=$LIBS
   9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9768 /* end confdefs.h.  */
   9769 
   9770 /* Override any GCC internal prototype to avoid an error.
   9771    Use char because int might match the return type of a GCC
   9772    builtin and then its argument prototype would still apply.
   9773    The 'extern "C"' is for builds by C++ compilers;
   9774    although this is not generally supported in C code supporting it here
   9775    has little cost and some practical benefit (sr 110532).  */
   9776 #ifdef __cplusplus
   9777 extern "C"
   9778 #endif
   9779 char setusercontext (void);
   9780 int
   9781 main (void)
   9782 {
   9783 return setusercontext ();
   9784   ;
   9785   return 0;
   9786 }
   9787 _ACEOF
   9788 for ac_lib in '' util
   9789 do
   9790   if test -z "$ac_lib"; then
   9791     ac_res="none required"
   9792   else
   9793     ac_res=-l$ac_lib
   9794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9795   fi
   9796   if ac_fn_c_try_link "$LINENO"
   9797 then :
   9798   ac_cv_search_setusercontext=$ac_res
   9799 fi
   9800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9801     conftest$ac_exeext
   9802   if test ${ac_cv_search_setusercontext+y}
   9803 then :
   9804   break
   9805 fi
   9806 done
   9807 if test ${ac_cv_search_setusercontext+y}
   9808 then :
   9809 
   9810 else case e in #(
   9811   e) ac_cv_search_setusercontext=no ;;
   9812 esac
   9813 fi
   9814 rm conftest.$ac_ext
   9815 LIBS=$ac_func_search_save_LIBS ;;
   9816 esac
   9817 fi
   9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
   9819 printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
   9820 ac_res=$ac_cv_search_setusercontext
   9821 if test "$ac_res" != no
   9822 then :
   9823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9824   ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default
   9825 "
   9826 if test "x$ac_cv_header_login_cap_h" = xyes
   9827 then :
   9828   printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h
   9829 
   9830 fi
   9831 
   9832 fi
   9833 
   9834 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   9835 if test "x$ac_cv_func_tzset" = xyes
   9836 then :
   9837   printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
   9838 
   9839 fi
   9840 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
   9841 if test "x$ac_cv_func_alarm" = xyes
   9842 then :
   9843   printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
   9844 
   9845 fi
   9846 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   9847 if test "x$ac_cv_func_chroot" = xyes
   9848 then :
   9849   printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
   9850 
   9851 fi
   9852 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
   9853 if test "x$ac_cv_func_dup2" = xyes
   9854 then :
   9855   printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
   9856 
   9857 fi
   9858 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
   9859 if test "x$ac_cv_func_endpwent" = xyes
   9860 then :
   9861   printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
   9862 
   9863 fi
   9864 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
   9865 if test "x$ac_cv_func_gethostname" = xyes
   9866 then :
   9867   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
   9868 
   9869 fi
   9870 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
   9871 if test "x$ac_cv_func_memset" = xyes
   9872 then :
   9873   printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
   9874 
   9875 fi
   9876 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
   9877 if test "x$ac_cv_func_memcpy" = xyes
   9878 then :
   9879   printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
   9880 
   9881 fi
   9882 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
   9883 if test "x$ac_cv_func_pwrite" = xyes
   9884 then :
   9885   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
   9886 
   9887 fi
   9888 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
   9889 if test "x$ac_cv_func_socket" = xyes
   9890 then :
   9891   printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
   9892 
   9893 fi
   9894 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
   9895 if test "x$ac_cv_func_strcasecmp" = xyes
   9896 then :
   9897   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
   9898 
   9899 fi
   9900 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
   9901 if test "x$ac_cv_func_strchr" = xyes
   9902 then :
   9903   printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
   9904 
   9905 fi
   9906 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   9907 if test "x$ac_cv_func_strdup" = xyes
   9908 then :
   9909   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
   9910 
   9911 fi
   9912 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
   9913 if test "x$ac_cv_func_strerror" = xyes
   9914 then :
   9915   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
   9916 
   9917 fi
   9918 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
   9919 if test "x$ac_cv_func_strncasecmp" = xyes
   9920 then :
   9921   printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
   9922 
   9923 fi
   9924 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
   9925 if test "x$ac_cv_func_strtol" = xyes
   9926 then :
   9927   printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
   9928 
   9929 fi
   9930 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
   9931 if test "x$ac_cv_func_writev" = xyes
   9932 then :
   9933   printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
   9934 
   9935 fi
   9936 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
   9937 if test "x$ac_cv_func_getaddrinfo" = xyes
   9938 then :
   9939   printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
   9940 
   9941 fi
   9942 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
   9943 if test "x$ac_cv_func_getnameinfo" = xyes
   9944 then :
   9945   printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
   9946 
   9947 fi
   9948 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
   9949 if test "x$ac_cv_func_freeaddrinfo" = xyes
   9950 then :
   9951   printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
   9952 
   9953 fi
   9954 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
   9955 if test "x$ac_cv_func_gai_strerror" = xyes
   9956 then :
   9957   printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
   9958 
   9959 fi
   9960 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
   9961 if test "x$ac_cv_func_sigaction" = xyes
   9962 then :
   9963   printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
   9964 
   9965 fi
   9966 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
   9967 if test "x$ac_cv_func_sigprocmask" = xyes
   9968 then :
   9969   printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
   9970 
   9971 fi
   9972 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
   9973 if test "x$ac_cv_func_strptime" = xyes
   9974 then :
   9975   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
   9976 
   9977 fi
   9978 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
   9979 if test "x$ac_cv_func_strftime" = xyes
   9980 then :
   9981   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
   9982 
   9983 fi
   9984 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
   9985 if test "x$ac_cv_func_localtime_r" = xyes
   9986 then :
   9987   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
   9988 
   9989 fi
   9990 ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
   9991 if test "x$ac_cv_func_setusercontext" = xyes
   9992 then :
   9993   printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h
   9994 
   9995 fi
   9996 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
   9997 if test "x$ac_cv_func_glob" = xyes
   9998 then :
   9999   printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
   10000 
   10001 fi
   10002 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
   10003 if test "x$ac_cv_func_initgroups" = xyes
   10004 then :
   10005   printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
   10006 
   10007 fi
   10008 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
   10009 if test "x$ac_cv_func_setresuid" = xyes
   10010 then :
   10011   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
   10012 
   10013 fi
   10014 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
   10015 if test "x$ac_cv_func_setreuid" = xyes
   10016 then :
   10017   printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
   10018 
   10019 fi
   10020 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
   10021 if test "x$ac_cv_func_setresgid" = xyes
   10022 then :
   10023   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
   10024 
   10025 fi
   10026 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
   10027 if test "x$ac_cv_func_setregid" = xyes
   10028 then :
   10029   printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
   10030 
   10031 fi
   10032 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
   10033 if test "x$ac_cv_func_getpwnam" = xyes
   10034 then :
   10035   printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
   10036 
   10037 fi
   10038 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   10039 if test "x$ac_cv_func_mmap" = xyes
   10040 then :
   10041   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
   10042 
   10043 fi
   10044 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
   10045 if test "x$ac_cv_func_ppoll" = xyes
   10046 then :
   10047   printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
   10048 
   10049 fi
   10050 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   10051 if test "x$ac_cv_func_clock_gettime" = xyes
   10052 then :
   10053   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   10054 
   10055 fi
   10056 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
   10057 if test "x$ac_cv_func_accept4" = xyes
   10058 then :
   10059   printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
   10060 
   10061 fi
   10062 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
   10063 if test "x$ac_cv_func_getifaddrs" = xyes
   10064 then :
   10065   printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
   10066 
   10067 fi
   10068 
   10069 
   10070 ac_fn_c_check_type "$LINENO" "struct mmsghdr" "ac_cv_type_struct_mmsghdr" "
   10071 $ac_includes_default
   10072 #include <sys/socket.h>
   10073 
   10074 "
   10075 if test "x$ac_cv_type_struct_mmsghdr" = xyes
   10076 then :
   10077 
   10078 printf "%s\n" "#define HAVE_MMSGHDR 1" >>confdefs.h
   10079 
   10080 fi
   10081 
   10082 
   10083 # Check whether --enable-recvmmsg was given.
   10084 if test ${enable_recvmmsg+y}
   10085 then :
   10086   enableval=$enable_recvmmsg;
   10087 fi
   10088 
   10089 case "$enable_recvmmsg" in
   10090         yes)
   10091 		ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg"
   10092 if test "x$ac_cv_func_recvmmsg" = xyes
   10093 then :
   10094 
   10095 if test "$cross_compiling" = yes
   10096 then :
   10097 
   10098 
   10099 printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h
   10100 
   10101 
   10102 else case e in #(
   10103   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10104 /* end confdefs.h.  */
   10105 
   10106 #ifdef HAVE_UNISTD_H
   10107 #include <unistd.h>
   10108 #endif
   10109 #include <sys/socket.h>
   10110 #include <errno.h>
   10111 int main(void)
   10112 {
   10113 	int s = socket(AF_INET, SOCK_DGRAM, 0);
   10114 	int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS;
   10115 	close(s);
   10116 	return r;
   10117 }
   10118 
   10119 _ACEOF
   10120 if ac_fn_c_try_run "$LINENO"
   10121 then :
   10122 
   10123 
   10124 printf "%s\n" "#define HAVE_RECVMMSG 1" >>confdefs.h
   10125 
   10126 fi
   10127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10128   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10129 esac
   10130 fi
   10131 
   10132 fi
   10133 
   10134 		ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg"
   10135 if test "x$ac_cv_func_sendmmsg" = xyes
   10136 then :
   10137 
   10138 if test "$cross_compiling" = yes
   10139 then :
   10140 
   10141 
   10142 printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h
   10143 
   10144 
   10145 else case e in #(
   10146   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10147 /* end confdefs.h.  */
   10148 
   10149 #ifdef HAVE_UNISTD_H
   10150 #include <unistd.h>
   10151 #endif
   10152 #include <sys/socket.h>
   10153 #include <errno.h>
   10154 int main(void)
   10155 {
   10156 	int s = socket(AF_INET, SOCK_DGRAM, 0);
   10157 	int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS;
   10158 	close(s);
   10159 	return r;
   10160 }
   10161 
   10162 _ACEOF
   10163 if ac_fn_c_try_run "$LINENO"
   10164 then :
   10165 
   10166 
   10167 printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h
   10168 
   10169 fi
   10170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10171   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   10172 esac
   10173 fi
   10174 
   10175 fi
   10176 
   10177 
   10178 		;;
   10179         no|*)
   10180                 ;;
   10181 esac
   10182 
   10183 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
   10184 if echo $target_os | $GREP -i darwin8 > /dev/null; then
   10185 
   10186 printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
   10187 
   10188 fi
   10189 
   10190 # GNU HURD needs _GNU_SOURCE defined for cpu affinity gear
   10191 if echo $target_os | $EGREP -i 'linux|hurd' > /dev/null; then
   10192   printf "%s\n" "#define _GNU_SOURCE, 1, Define this if on Linux or GNU Hurd for cpu affinity interface 1" >>confdefs.h
   10193 
   10194 fi
   10195 
   10196 # see comment on _GNU_SOURCE above
   10197 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default
   10198 "
   10199 if test "x$ac_cv_header_sched_h" = xyes
   10200 then :
   10201   printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
   10202 
   10203 fi
   10204 ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default
   10205 "
   10206 if test "x$ac_cv_header_sys_cpuset_h" = xyes
   10207 then :
   10208   printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
   10209 
   10210 fi
   10211 
   10212 
   10213 # Check for cpu_set_t (Linux) and cpuset_t (FreeBSD and NetBSD)
   10214 ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" "
   10215 $ac_includes_default
   10216 #if HAVE_SCHED_H
   10217 # include <sched.h>
   10218 #endif
   10219 #if HAVE_SYS_CPUSET_H
   10220 # include <sys/cpuset.h>
   10221 #endif
   10222 
   10223 "
   10224 if test "x$ac_cv_type_cpu_set_t" = xyes
   10225 then :
   10226 
   10227 printf "%s\n" "#define HAVE_CPU_SET_T 1" >>confdefs.h
   10228 
   10229 
   10230 fi
   10231 ac_fn_c_check_type "$LINENO" "cpuset_t" "ac_cv_type_cpuset_t" "
   10232 $ac_includes_default
   10233 #if HAVE_SCHED_H
   10234 # include <sched.h>
   10235 #endif
   10236 #if HAVE_SYS_CPUSET_H
   10237 # include <sys/cpuset.h>
   10238 #endif
   10239 
   10240 "
   10241 if test "x$ac_cv_type_cpuset_t" = xyes
   10242 then :
   10243 
   10244 printf "%s\n" "#define HAVE_CPUSET_T 1" >>confdefs.h
   10245 
   10246 
   10247 fi
   10248 ac_fn_c_check_type "$LINENO" "cpuid_t" "ac_cv_type_cpuid_t" "
   10249 $ac_includes_default
   10250 #if HAVE_SCHED_H
   10251 # include <sched.h>
   10252 #endif
   10253 #if HAVE_SYS_CPUSET_H
   10254 # include <sys/cpuset.h>
   10255 #endif
   10256 
   10257 "
   10258 if test "x$ac_cv_type_cpuid_t" = xyes
   10259 then :
   10260 
   10261 printf "%s\n" "#define HAVE_CPUID_T 1" >>confdefs.h
   10262 
   10263 
   10264 fi
   10265 
   10266 
   10267 
   10268 
   10269 if test x"$ac_cv_type_cpuset_t" = xyes -o x"$ac_cv_type_cpu_set_t" = xyes
   10270 then :
   10271 
   10272 	ac_fn_c_check_func "$LINENO" "cpuset_create" "ac_cv_func_cpuset_create"
   10273 if test "x$ac_cv_func_cpuset_create" = xyes
   10274 then :
   10275 
   10276 fi
   10277 
   10278 	ac_fn_c_check_func "$LINENO" "cpuset_destroy" "ac_cv_func_cpuset_destroy"
   10279 if test "x$ac_cv_func_cpuset_destroy" = xyes
   10280 then :
   10281 
   10282 fi
   10283 
   10284 	ac_fn_c_check_func "$LINENO" "cpuset_zero" "ac_cv_func_cpuset_zero"
   10285 if test "x$ac_cv_func_cpuset_zero" = xyes
   10286 then :
   10287 
   10288 fi
   10289 
   10290 	ac_fn_c_check_func "$LINENO" "cpuset_set" "ac_cv_func_cpuset_set"
   10291 if test "x$ac_cv_func_cpuset_set" = xyes
   10292 then :
   10293 
   10294 fi
   10295 
   10296 	ac_fn_c_check_func "$LINENO" "cpuset_clr" "ac_cv_func_cpuset_clr"
   10297 if test "x$ac_cv_func_cpuset_clr" = xyes
   10298 then :
   10299 
   10300 fi
   10301 
   10302 	ac_fn_c_check_func "$LINENO" "cpuset_isset" "ac_cv_func_cpuset_isset"
   10303 if test "x$ac_cv_func_cpuset_isset" = xyes
   10304 then :
   10305 
   10306 fi
   10307 
   10308 	ac_fn_c_check_func "$LINENO" "cpuset_size" "ac_cv_func_cpuset_size"
   10309 if test "x$ac_cv_func_cpuset_size" = xyes
   10310 then :
   10311 
   10312 fi
   10313 
   10314 	case " $LIBOBJS " in
   10315   *" cpuset.$ac_objext "* ) ;;
   10316   *) LIBOBJS="$LIBOBJS cpuset.$ac_objext"
   10317  ;;
   10318 esac
   10319 
   10320 	ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   10321 if test "x$ac_cv_func_sysconf" = xyes
   10322 then :
   10323   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
   10324 
   10325 fi
   10326 
   10327 
   10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CPU_OR works with three arguments" >&5
   10329 printf %s "checking whether CPU_OR works with three arguments... " >&6; }
   10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10331 /* end confdefs.h.  */
   10332 #ifdef HAVE_SCHED_H
   10333 # include <sched.h>
   10334 #endif
   10335 #ifdef HAVE_SYS_CPUSET_H
   10336 # include <sys/cpuset.h>
   10337 #endif
   10338 #include <string.h>
   10339 #ifdef HAVE_CPUSET_T
   10340 #define MY_CPUSET_TYPE cpuset_t
   10341 #endif
   10342 #ifdef HAVE_CPU_SET_T
   10343 #define MY_CPUSET_TYPE cpu_set_t
   10344 #endif
   10345 void testing (void) {
   10346 	MY_CPUSET_TYPE a, b;
   10347 	memset(&a, 0, sizeof(a));
   10348 	memset(&b, 0, sizeof(b));
   10349 	CPU_OR(&a, &a, &b);
   10350 }
   10351 int
   10352 main (void)
   10353 {
   10354 
   10355         testing();
   10356 
   10357   ;
   10358   return 0;
   10359 }
   10360 _ACEOF
   10361 if ac_fn_c_try_compile "$LINENO"
   10362 then :
   10363 
   10364 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10365 printf "%s\n" "yes" >&6; }
   10366 
   10367 printf "%s\n" "#define CPU_OR_THREE_ARGS 1" >>confdefs.h
   10368 
   10369 
   10370 else case e in #(
   10371   e)
   10372 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10373 printf "%s\n" "no" >&6; }
   10374  ;;
   10375 esac
   10376 fi
   10377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10378 
   10379 fi
   10380 
   10381 #
   10382 # sched_setaffinity must be checked using proper includes.
   10383 # also needs _GNU_SOURCE on Linux and Hurd; see above.
   10384 # also see https://github.com/NLnetLabs/nsd/issues/82.
   10385 #
   10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
   10387 printf %s "checking for sched_setaffinity... " >&6; }
   10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10389 /* end confdefs.h.  */
   10390 
   10391     #ifdef HAVE_SCHED_H
   10392     # include <sched.h>
   10393     #endif
   10394     #ifdef HAVE_SYS_CPUSET_H
   10395     #include <sys/cpuset.h>
   10396     #endif
   10397     #ifdef HAVE_CPUSET_T
   10398     #define MY_CPUSET_TYPE cpuset_t
   10399     #endif
   10400     #ifdef HAVE_CPU_SET_T
   10401     #define MY_CPUSET_TYPE cpu_set_t
   10402     #endif
   10403     void testing (void) {
   10404       MY_CPUSET_TYPE set;
   10405       CPU_ZERO(&set);
   10406       (void)sched_setaffinity(-1, sizeof(set), &set);
   10407     }
   10408 
   10409 int
   10410 main (void)
   10411 {
   10412 
   10413   ;
   10414   return 0;
   10415 }
   10416 _ACEOF
   10417 if ac_fn_c_try_compile "$LINENO"
   10418 then :
   10419     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10420 printf "%s\n" "yes" >&6; }
   10421 
   10422 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
   10423 
   10424 else case e in #(
   10425   e)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10426 printf "%s\n" "no" >&6; } ;;
   10427 esac
   10428 fi
   10429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10430 
   10431 #
   10432 # Checking for missing functions we can replace
   10433 #
   10434 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
   10435 if test "x$ac_cv_func_basename" = xyes
   10436 then :
   10437   printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
   10438 
   10439 else case e in #(
   10440   e) case " $LIBOBJS " in
   10441   *" basename.$ac_objext "* ) ;;
   10442   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
   10443  ;;
   10444 esac
   10445  ;;
   10446 esac
   10447 fi
   10448 
   10449 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
   10450 if test "x$ac_cv_func_inet_aton" = xyes
   10451 then :
   10452   printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
   10453 
   10454 else case e in #(
   10455   e) case " $LIBOBJS " in
   10456   *" inet_aton.$ac_objext "* ) ;;
   10457   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   10458  ;;
   10459 esac
   10460  ;;
   10461 esac
   10462 fi
   10463 
   10464 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
   10465 if test "x$ac_cv_func_inet_pton" = xyes
   10466 then :
   10467   printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
   10468 
   10469 else case e in #(
   10470   e) case " $LIBOBJS " in
   10471   *" inet_pton.$ac_objext "* ) ;;
   10472   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   10473  ;;
   10474 esac
   10475  ;;
   10476 esac
   10477 fi
   10478 
   10479 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   10480 if test "x$ac_cv_func_inet_ntop" = xyes
   10481 then :
   10482   printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
   10483 
   10484 else case e in #(
   10485   e) case " $LIBOBJS " in
   10486   *" inet_ntop.$ac_objext "* ) ;;
   10487   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   10488  ;;
   10489 esac
   10490  ;;
   10491 esac
   10492 fi
   10493 
   10494 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   10495 if test "x$ac_cv_func_snprintf" = xyes
   10496 then :
   10497   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
   10498 
   10499 else case e in #(
   10500   e) case " $LIBOBJS " in
   10501   *" snprintf.$ac_objext "* ) ;;
   10502   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   10503  ;;
   10504 esac
   10505  ;;
   10506 esac
   10507 fi
   10508 
   10509 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   10510 if test "x$ac_cv_func_strlcat" = xyes
   10511 then :
   10512   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   10513 
   10514 else case e in #(
   10515   e) case " $LIBOBJS " in
   10516   *" strlcat.$ac_objext "* ) ;;
   10517   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   10518  ;;
   10519 esac
   10520  ;;
   10521 esac
   10522 fi
   10523 
   10524 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   10525 if test "x$ac_cv_func_strlcpy" = xyes
   10526 then :
   10527   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   10528 
   10529 else case e in #(
   10530   e) case " $LIBOBJS " in
   10531   *" strlcpy.$ac_objext "* ) ;;
   10532   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   10533  ;;
   10534 esac
   10535  ;;
   10536 esac
   10537 fi
   10538 
   10539 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
   10540 if test "x$ac_cv_func_strptime" = xyes
   10541 then :
   10542   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
   10543 
   10544 else case e in #(
   10545   e) case " $LIBOBJS " in
   10546   *" strptime.$ac_objext "* ) ;;
   10547   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   10548  ;;
   10549 esac
   10550  ;;
   10551 esac
   10552 fi
   10553 
   10554 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
   10555 if test "x$ac_cv_func_b64_pton" = xyes
   10556 then :
   10557   printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h
   10558 
   10559 else case e in #(
   10560   e) case " $LIBOBJS " in
   10561   *" b64_pton.$ac_objext "* ) ;;
   10562   *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
   10563  ;;
   10564 esac
   10565  ;;
   10566 esac
   10567 fi
   10568 
   10569 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
   10570 if test "x$ac_cv_func_b64_ntop" = xyes
   10571 then :
   10572   printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h
   10573 
   10574 else case e in #(
   10575   e) case " $LIBOBJS " in
   10576   *" b64_ntop.$ac_objext "* ) ;;
   10577   *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
   10578  ;;
   10579 esac
   10580  ;;
   10581 esac
   10582 fi
   10583 
   10584 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
   10585 if test "x$ac_cv_func_pselect" = xyes
   10586 then :
   10587   printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
   10588 
   10589 else case e in #(
   10590   e) case " $LIBOBJS " in
   10591   *" pselect.$ac_objext "* ) ;;
   10592   *) LIBOBJS="$LIBOBJS pselect.$ac_objext"
   10593  ;;
   10594 esac
   10595  ;;
   10596 esac
   10597 fi
   10598 
   10599 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   10600 if test "x$ac_cv_func_memmove" = xyes
   10601 then :
   10602   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
   10603 
   10604 else case e in #(
   10605   e) case " $LIBOBJS " in
   10606   *" memmove.$ac_objext "* ) ;;
   10607   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
   10608  ;;
   10609 esac
   10610  ;;
   10611 esac
   10612 fi
   10613 
   10614 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
   10615 if test "x$ac_cv_func_setproctitle" = xyes
   10616 then :
   10617   printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
   10618 
   10619 else case e in #(
   10620   e) case " $LIBOBJS " in
   10621   *" setproctitle.$ac_objext "* ) ;;
   10622   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
   10623  ;;
   10624 esac
   10625  ;;
   10626 esac
   10627 fi
   10628 
   10629 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   10630 if test "x$ac_cv_func_explicit_bzero" = xyes
   10631 then :
   10632   printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   10633 
   10634 else case e in #(
   10635   e) case " $LIBOBJS " in
   10636   *" explicit_bzero.$ac_objext "* ) ;;
   10637   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   10638  ;;
   10639 esac
   10640  ;;
   10641 esac
   10642 fi
   10643 
   10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
   10645 printf %s "checking for reallocarray... " >&6; }
   10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10647 /* end confdefs.h.  */
   10648 
   10649 #ifndef _OPENBSD_SOURCE
   10650 #define _OPENBSD_SOURCE 1
   10651 #endif
   10652 
   10653 $ac_includes_default
   10654 
   10655 #include <stdlib.h>
   10656 int main(void) {
   10657 	void* p = reallocarray(NULL, 10, 100);
   10658 	free(p);
   10659 	return 0;
   10660 }
   10661 
   10662 _ACEOF
   10663 if ac_fn_c_try_link "$LINENO"
   10664 then :
   10665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10666 printf "%s\n" "yes" >&6; }
   10667 
   10668 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   10669 
   10670 	ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
   10671 $ac_includes_default
   10672 #include <stdlib.h>
   10673 
   10674 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   10675 if test "x$ac_cv_have_decl_reallocarray" = xyes
   10676 then :
   10677   ac_have_decl=1
   10678 else case e in #(
   10679   e) ac_have_decl=0 ;;
   10680 esac
   10681 fi
   10682 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
   10683 if test $ac_have_decl = 1
   10684 then :
   10685 
   10686 else case e in #(
   10687   e)
   10688 
   10689 printf "%s\n" "#define REALLOCARRAY_NEEDS_DEFINES 1" >>confdefs.h
   10690 
   10691 	 ;;
   10692 esac
   10693 fi
   10694 
   10695 
   10696 else case e in #(
   10697   e)
   10698 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10699 printf "%s\n" "no" >&6; }
   10700 	case " $LIBOBJS " in
   10701   *" reallocarray.$ac_objext "* ) ;;
   10702   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   10703  ;;
   10704 esac
   10705 
   10706  ;;
   10707 esac
   10708 fi
   10709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10710     conftest$ac_exeext conftest.$ac_ext
   10711 
   10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5
   10713 printf %s "checking for pselect prototype in sys/select.h... " >&6; }
   10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10715 /* end confdefs.h.  */
   10716 #include <sys/select.h>
   10717 
   10718 _ACEOF
   10719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10720   $EGREP_TRADITIONAL "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1
   10721 then :
   10722 
   10723 printf "%s\n" "#define HAVE_PSELECT_PROTO 1" >>confdefs.h
   10724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10725 printf "%s\n" "yes" >&6; }
   10726 else case e in #(
   10727   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10728 printf "%s\n" "no" >&6; } ;;
   10729 esac
   10730 fi
   10731 rm -rf conftest*
   10732 
   10733 
   10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5
   10735 printf %s "checking for ctime_r prototype in time.h... " >&6; }
   10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10737 /* end confdefs.h.  */
   10738 #include <time.h>
   10739 
   10740 _ACEOF
   10741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10742   $EGREP_TRADITIONAL "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1
   10743 then :
   10744 
   10745 printf "%s\n" "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h
   10746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10747 printf "%s\n" "yes" >&6; }
   10748 else case e in #(
   10749   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10750 printf "%s\n" "no" >&6; } ;;
   10751 esac
   10752 fi
   10753 rm -rf conftest*
   10754 
   10755 
   10756 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "
   10757 $ac_includes_default
   10758 #ifdef HAVE_SIGNAL_H
   10759 #include <signal.h>
   10760 #endif
   10761 #ifdef HAVE_TIME_H
   10762 #include <time.h>
   10763 #endif
   10764 
   10765 "
   10766 if test "x$ac_cv_type_struct_timespec" = xyes
   10767 then :
   10768 
   10769 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
   10770 
   10771 fi
   10772 
   10773 
   10774 
   10775 printf "%s\n" "#define IDENTITY \"unidentified server\"" >>confdefs.h
   10776 
   10777 
   10778 printf "%s\n" "#define VERSION PACKAGE_STRING" >>confdefs.h
   10779 
   10780 
   10781 case "$host" in
   10782     *bsd*|*BSD*|*linux*|*Linux*)
   10783 
   10784 printf "%s\n" "#define TCP_BACKLOG -1" >>confdefs.h
   10785 
   10786 	;;
   10787     *)
   10788 
   10789 printf "%s\n" "#define TCP_BACKLOG 256" >>confdefs.h
   10790 
   10791 	;;
   10792 esac
   10793 
   10794 
   10795 printf "%s\n" "#define TCP_PORT \"53\"" >>confdefs.h
   10796 
   10797 
   10798 printf "%s\n" "#define TCP_MAX_MESSAGE_LEN 65535" >>confdefs.h
   10799 
   10800 
   10801 printf "%s\n" "#define UDP_PORT \"53\"" >>confdefs.h
   10802 
   10803 
   10804 printf "%s\n" "#define UDP_MAX_MESSAGE_LEN 512" >>confdefs.h
   10805 
   10806 
   10807 printf "%s\n" "#define EDNS_MAX_MESSAGE_LEN 1232" >>confdefs.h
   10808 
   10809 
   10810 printf "%s\n" "#define TLS_PORT \"853\"" >>confdefs.h
   10811 
   10812 
   10813 printf "%s\n" "#define MAXSYSLOGMSGLEN 512" >>confdefs.h
   10814 
   10815 
   10816 printf "%s\n" "#define NSD_CONTROL_PORT 8952" >>confdefs.h
   10817 
   10818 
   10819 printf "%s\n" "#define NSD_CONTROL_VERSION 1" >>confdefs.h
   10820 
   10821 
   10822 printf "%s\n" "#define VERIFY_PORT \"5347\"" >>confdefs.h
   10823 
   10824 
   10825 facility=LOG_DAEMON
   10826 
   10827 # Check whether --with-facility was given.
   10828 if test ${with_facility+y}
   10829 then :
   10830   withval=$with_facility; facility=$withval
   10831 fi
   10832 
   10833 
   10834 printf "%s\n" "#define FACILITY $facility" >>confdefs.h
   10835 
   10836 
   10837 tcp_timeout=120
   10838 
   10839 # Check whether --with-tcp_timeout was given.
   10840 if test ${with_tcp_timeout+y}
   10841 then :
   10842   withval=$with_tcp_timeout; tcp_timeout=$withval
   10843 fi
   10844 
   10845 
   10846 printf "%s\n" "#define TCP_TIMEOUT $tcp_timeout" >>confdefs.h
   10847 
   10848 
   10849 # Check whether --enable-root-server was given.
   10850 if test ${enable_root_server+y}
   10851 then :
   10852   enableval=$enable_root_server;
   10853 fi
   10854 
   10855 
   10856 # Check whether --enable-ipv6 was given.
   10857 if test ${enable_ipv6+y}
   10858 then :
   10859   enableval=$enable_ipv6;
   10860 fi
   10861 
   10862 case "$enable_ipv6" in
   10863         no)
   10864                 ;;
   10865         yes|*)
   10866 
   10867 printf "%s\n" "#define INET6 /**/" >>confdefs.h
   10868 
   10869 		;;
   10870 esac
   10871 
   10872 # Check whether --enable-bind8-stats was given.
   10873 if test ${enable_bind8_stats+y}
   10874 then :
   10875   enableval=$enable_bind8_stats;
   10876 fi
   10877 
   10878 
   10879 case "$enable_bind8_stats" in
   10880 	no)
   10881 		;;
   10882 	yes|*)
   10883 
   10884 printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h
   10885 
   10886 		;;
   10887 esac
   10888 
   10889 # Check whether --enable-zone-stats was given.
   10890 if test ${enable_zone_stats+y}
   10891 then :
   10892   enableval=$enable_zone_stats;
   10893 fi
   10894 
   10895 case "$enable_zone_stats" in
   10896 	no)
   10897 		;;
   10898 	yes|*)
   10899 
   10900 printf "%s\n" "#define USE_ZONE_STATS /**/" >>confdefs.h
   10901 
   10902 
   10903 printf "%s\n" "#define BIND8_STATS /**/" >>confdefs.h
   10904 
   10905 		;;
   10906 esac
   10907 
   10908 # Check whether --enable-checking was given.
   10909 if test ${enable_checking+y}
   10910 then :
   10911   enableval=$enable_checking;
   10912 fi
   10913 
   10914 case "$enable_checking" in
   10915         yes)
   10916 
   10917 
   10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
   10919 printf %s "checking whether $CC supports -W... " >&6; }
   10920 cache=`echo W | $SED 'y%.=/+-%___p_%'`
   10921 if eval test \${cv_prog_cc_flag_$cache+y}
   10922 then :
   10923   printf %s "(cached) " >&6
   10924 else case e in #(
   10925   e)
   10926 echo 'void f(void){}' >conftest.c
   10927 if test -z "`$CC -W -c conftest.c 2>&1`"; then
   10928 eval "cv_prog_cc_flag_$cache=yes"
   10929 else
   10930 eval "cv_prog_cc_flag_$cache=no"
   10931 fi
   10932 rm -f conftest*
   10933  ;;
   10934 esac
   10935 fi
   10936 
   10937 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10939 printf "%s\n" "yes" >&6; }
   10940 :
   10941  CFLAGS="$CFLAGS -W"
   10942 else
   10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10944 printf "%s\n" "no" >&6; }
   10945 :
   10946 
   10947 fi
   10948 
   10949 
   10950 
   10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   10952 printf %s "checking whether $CC supports -Wall... " >&6; }
   10953 cache=`echo Wall | $SED 'y%.=/+-%___p_%'`
   10954 if eval test \${cv_prog_cc_flag_$cache+y}
   10955 then :
   10956   printf %s "(cached) " >&6
   10957 else case e in #(
   10958   e)
   10959 echo 'void f(void){}' >conftest.c
   10960 if test -z "`$CC -Wall -c conftest.c 2>&1`"; then
   10961 eval "cv_prog_cc_flag_$cache=yes"
   10962 else
   10963 eval "cv_prog_cc_flag_$cache=no"
   10964 fi
   10965 rm -f conftest*
   10966  ;;
   10967 esac
   10968 fi
   10969 
   10970 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10972 printf "%s\n" "yes" >&6; }
   10973 :
   10974  CFLAGS="$CFLAGS -Wall"
   10975 else
   10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10977 printf "%s\n" "no" >&6; }
   10978 :
   10979 
   10980 fi
   10981 
   10982 
   10983 
   10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
   10985 printf %s "checking whether $CC supports -Wextra... " >&6; }
   10986 cache=`echo Wextra | $SED 'y%.=/+-%___p_%'`
   10987 if eval test \${cv_prog_cc_flag_$cache+y}
   10988 then :
   10989   printf %s "(cached) " >&6
   10990 else case e in #(
   10991   e)
   10992 echo 'void f(void){}' >conftest.c
   10993 if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then
   10994 eval "cv_prog_cc_flag_$cache=yes"
   10995 else
   10996 eval "cv_prog_cc_flag_$cache=no"
   10997 fi
   10998 rm -f conftest*
   10999  ;;
   11000 esac
   11001 fi
   11002 
   11003 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11005 printf "%s\n" "yes" >&6; }
   11006 :
   11007  CFLAGS="$CFLAGS -Wextra"
   11008 else
   11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11010 printf "%s\n" "no" >&6; }
   11011 :
   11012 
   11013 fi
   11014 
   11015 
   11016 
   11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
   11018 printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
   11019 cache=`echo Wdeclaration-after-statement | $SED 'y%.=/+-%___p_%'`
   11020 if eval test \${cv_prog_cc_flag_$cache+y}
   11021 then :
   11022   printf %s "(cached) " >&6
   11023 else case e in #(
   11024   e)
   11025 echo 'void f(void){}' >conftest.c
   11026 if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
   11027 eval "cv_prog_cc_flag_$cache=yes"
   11028 else
   11029 eval "cv_prog_cc_flag_$cache=no"
   11030 fi
   11031 rm -f conftest*
   11032  ;;
   11033 esac
   11034 fi
   11035 
   11036 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11038 printf "%s\n" "yes" >&6; }
   11039 :
   11040  CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   11041 else
   11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11043 printf "%s\n" "no" >&6; }
   11044 :
   11045 
   11046 fi
   11047 
   11048 		;;
   11049         no|*)
   11050 
   11051 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
   11052 
   11053                 ;;
   11054 esac
   11055 
   11056 # Check whether --enable-log-role was given.
   11057 if test ${enable_log_role+y}
   11058 then :
   11059   enableval=$enable_log_role;
   11060 fi
   11061 
   11062 case "$enable_log_role" in
   11063         yes)
   11064 
   11065 printf "%s\n" "#define USE_LOG_PROCESS_ROLE /**/" >>confdefs.h
   11066 
   11067 		;;
   11068         no|*)
   11069                 ;;
   11070 esac
   11071 
   11072 
   11073 # Check whether --enable-memclean was given.
   11074 if test ${enable_memclean+y}
   11075 then :
   11076   enableval=$enable_memclean;
   11077 fi
   11078 
   11079 if test "$enable_memclean" = "yes"; then
   11080 printf "%s\n" "#define MEMCLEAN 1" >>confdefs.h
   11081 
   11082 fi
   11083 
   11084 # Check whether --enable-ratelimit was given.
   11085 if test ${enable_ratelimit+y}
   11086 then :
   11087   enableval=$enable_ratelimit;
   11088 fi
   11089 
   11090 case "$enable_ratelimit" in
   11091 	no)
   11092 		;;
   11093 	yes|*)
   11094 
   11095 printf "%s\n" "#define RATELIMIT /**/" >>confdefs.h
   11096 
   11097 		;;
   11098 esac
   11099 
   11100 # Check whether --enable-ratelimit-default-is-off was given.
   11101 if test ${enable_ratelimit_default_is_off+y}
   11102 then :
   11103   enableval=$enable_ratelimit_default_is_off;
   11104 fi
   11105 
   11106 case "$enable_ratelimit_default_is_off" in
   11107 	no)
   11108 		ratelimit_default="on"
   11109 		;;
   11110 	yes|*)
   11111 
   11112 printf "%s\n" "#define RATELIMIT_DEFAULT_OFF /**/" >>confdefs.h
   11113 
   11114 		ratelimit_default="off"
   11115 		;;
   11116 esac
   11117 
   11118 
   11119 # we need SSL for TSIG (and maybe also for NSEC3).
   11120 
   11121 
   11122 # Check whether --with-ssl was given.
   11123 if test ${with_ssl+y}
   11124 then :
   11125   withval=$with_ssl;
   11126 
   11127 else case e in #(
   11128   e)
   11129             withval="yes"
   11130          ;;
   11131 esac
   11132 fi
   11133 
   11134     if test x_$withval != x_no; then
   11135         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
   11136 printf %s "checking for SSL... " >&6; }
   11137         if test -n "$withval"; then
   11138                                                                 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
   11139                         ssldir="$withval"
   11140                         found_ssl="yes"
   11141                         withval=""
   11142                         ssldir_include="$ssldir"
   11143                         CPPFLAGS="$CPPFLAGS -I$ssldir_include";
   11144                                                 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
   11145                         if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   11146                                 : # found here
   11147                         else
   11148                                 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
   11149                                 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   11150                                         : # found here
   11151                                 else
   11152                                         as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
   11153                                 fi
   11154                         fi
   11155                 fi
   11156             fi
   11157         if test x_$withval = x_ -o x_$withval = x_yes; then
   11158             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl  /usr/sfw /usr/local /usr /usr/local/opt/openssl"
   11159         fi
   11160         for dir in $withval; do
   11161             ssldir="$dir"
   11162             if test -f "$dir/include/openssl/ssl.h"; then
   11163                 found_ssl="yes";
   11164                 if test x_$ssldir != x_/usr; then
   11165                     CPPFLAGS="$CPPFLAGS -I$ssldir/include";
   11166                 fi
   11167                 ssldir_include="$ssldir/include"
   11168                 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
   11169                     ssldir_lib="$ssldir/lib64"
   11170                 else
   11171                     ssldir_lib="$ssldir/lib"
   11172                 fi
   11173                 break;
   11174             fi
   11175         done
   11176         if test x_$found_ssl != x_yes; then
   11177             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
   11178         else
   11179             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
   11180 printf "%s\n" "found in $ssldir" >&6; }
   11181             HAVE_SSL=yes
   11182 
   11183 printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h
   11184 
   11185             if test x_$ssldir != x_/usr; then
   11186                 LDFLAGS="$LDFLAGS -L$ssldir_lib";
   11187             fi
   11188             if test x_$ssldir = x_/usr/sfw; then
   11189                 LDFLAGS="$LDFLAGS -R$ssldir_lib";
   11190             fi
   11191         fi
   11192 
   11193     fi
   11194 
   11195 if test x$HAVE_SSL = x"yes"; then
   11196 
   11197 # check if libssl needs libdl
   11198 BAKLIBS="$LIBS"
   11199 LIBS="-lssl $LIBS"
   11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
   11201 printf %s "checking if libssl needs libdl... " >&6; }
   11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11203 /* end confdefs.h.  */
   11204 
   11205 /* Override any GCC internal prototype to avoid an error.
   11206    Use char because int might match the return type of a GCC
   11207    builtin and then its argument prototype would still apply.
   11208    The 'extern "C"' is for builds by C++ compilers;
   11209    although this is not generally supported in C code supporting it here
   11210    has little cost and some practical benefit (sr 110532).  */
   11211 #ifdef __cplusplus
   11212 extern "C"
   11213 #endif
   11214 char SSL_CTX_new (void);
   11215 int
   11216 main (void)
   11217 {
   11218 return SSL_CTX_new ();
   11219   ;
   11220   return 0;
   11221 }
   11222 _ACEOF
   11223 if ac_fn_c_try_link "$LINENO"
   11224 then :
   11225 
   11226 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11227 printf "%s\n" "no" >&6; }
   11228 	LIBS="$BAKLIBS"
   11229 
   11230 else case e in #(
   11231   e)
   11232 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11233 printf "%s\n" "yes" >&6; }
   11234 	LIBS="$BAKLIBS"
   11235 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   11236 printf %s "checking for library containing dlopen... " >&6; }
   11237 if test ${ac_cv_search_dlopen+y}
   11238 then :
   11239   printf %s "(cached) " >&6
   11240 else case e in #(
   11241   e) ac_func_search_save_LIBS=$LIBS
   11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11243 /* end confdefs.h.  */
   11244 
   11245 /* Override any GCC internal prototype to avoid an error.
   11246    Use char because int might match the return type of a GCC
   11247    builtin and then its argument prototype would still apply.
   11248    The 'extern "C"' is for builds by C++ compilers;
   11249    although this is not generally supported in C code supporting it here
   11250    has little cost and some practical benefit (sr 110532).  */
   11251 #ifdef __cplusplus
   11252 extern "C"
   11253 #endif
   11254 char dlopen (void);
   11255 int
   11256 main (void)
   11257 {
   11258 return dlopen ();
   11259   ;
   11260   return 0;
   11261 }
   11262 _ACEOF
   11263 for ac_lib in '' dl
   11264 do
   11265   if test -z "$ac_lib"; then
   11266     ac_res="none required"
   11267   else
   11268     ac_res=-l$ac_lib
   11269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11270   fi
   11271   if ac_fn_c_try_link "$LINENO"
   11272 then :
   11273   ac_cv_search_dlopen=$ac_res
   11274 fi
   11275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11276     conftest$ac_exeext
   11277   if test ${ac_cv_search_dlopen+y}
   11278 then :
   11279   break
   11280 fi
   11281 done
   11282 if test ${ac_cv_search_dlopen+y}
   11283 then :
   11284 
   11285 else case e in #(
   11286   e) ac_cv_search_dlopen=no ;;
   11287 esac
   11288 fi
   11289 rm conftest.$ac_ext
   11290 LIBS=$ac_func_search_save_LIBS ;;
   11291 esac
   11292 fi
   11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   11294 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
   11295 ac_res=$ac_cv_search_dlopen
   11296 if test "$ac_res" != no
   11297 then :
   11298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11299 
   11300 fi
   11301 
   11302  ;;
   11303 esac
   11304 fi
   11305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11306     conftest$ac_exeext conftest.$ac_ext
   11307 	# remove space after -ldl if there.
   11308 	LIBS=`echo "$LIBS" | sed -e 's/ $//'`
   11309 
   11310 	# Check for -pthread
   11311 	BAKLIBS="$LIBS"
   11312 	LIBS="-lcrypto $LIBS"
   11313 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11314 /* end confdefs.h.  */
   11315 
   11316 int
   11317 main (void)
   11318 {
   11319 
   11320 		int EVP_sha256(void);
   11321 		(void)EVP_sha256();
   11322 
   11323   ;
   11324   return 0;
   11325 }
   11326 _ACEOF
   11327 if ac_fn_c_try_link "$LINENO"
   11328 then :
   11329 
   11330 else case e in #(
   11331   e)
   11332 				BAKCFLAGS="$CFLAGS"
   11333 		CFLAGS="$CFLAGS -pthread"
   11334 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5
   11335 printf %s "checking if libcrypto needs -pthread... " >&6; }
   11336 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11337 /* end confdefs.h.  */
   11338 
   11339 /* Override any GCC internal prototype to avoid an error.
   11340    Use char because int might match the return type of a GCC
   11341    builtin and then its argument prototype would still apply.
   11342    The 'extern "C"' is for builds by C++ compilers;
   11343    although this is not generally supported in C code supporting it here
   11344    has little cost and some practical benefit (sr 110532).  */
   11345 #ifdef __cplusplus
   11346 extern "C"
   11347 #endif
   11348 char EVP_sha256 (void);
   11349 int
   11350 main (void)
   11351 {
   11352 return EVP_sha256 ();
   11353   ;
   11354   return 0;
   11355 }
   11356 _ACEOF
   11357 if ac_fn_c_try_link "$LINENO"
   11358 then :
   11359 
   11360 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11361 printf "%s\n" "yes" >&6; }
   11362 
   11363 else case e in #(
   11364   e)
   11365 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11366 printf "%s\n" "no" >&6; }
   11367 						CFLAGS="$BAKCFLAGS"
   11368 		 ;;
   11369 esac
   11370 fi
   11371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11372     conftest$ac_exeext conftest.$ac_ext
   11373 	 ;;
   11374 esac
   11375 fi
   11376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11377     conftest$ac_exeext conftest.$ac_ext
   11378 	LIBS="$BAKLIBS"
   11379 
   11380 	if test -n "$ssldir"; then
   11381             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
   11382 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
   11383 if test ${ac_cv_lib_crypto_EVP_sha256+y}
   11384 then :
   11385   printf %s "(cached) " >&6
   11386 else case e in #(
   11387   e) ac_check_lib_save_LIBS=$LIBS
   11388 LIBS="-lcrypto  $LIBS"
   11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11390 /* end confdefs.h.  */
   11391 
   11392 /* Override any GCC internal prototype to avoid an error.
   11393    Use char because int might match the return type of a GCC
   11394    builtin and then its argument prototype would still apply.
   11395    The 'extern "C"' is for builds by C++ compilers;
   11396    although this is not generally supported in C code supporting it here
   11397    has little cost and some practical benefit (sr 110532).  */
   11398 #ifdef __cplusplus
   11399 extern "C"
   11400 #endif
   11401 char EVP_sha256 (void);
   11402 int
   11403 main (void)
   11404 {
   11405 return EVP_sha256 ();
   11406   ;
   11407   return 0;
   11408 }
   11409 _ACEOF
   11410 if ac_fn_c_try_link "$LINENO"
   11411 then :
   11412   ac_cv_lib_crypto_EVP_sha256=yes
   11413 else case e in #(
   11414   e) ac_cv_lib_crypto_EVP_sha256=no ;;
   11415 esac
   11416 fi
   11417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11418     conftest$ac_exeext conftest.$ac_ext
   11419 LIBS=$ac_check_lib_save_LIBS ;;
   11420 esac
   11421 fi
   11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha256" >&5
   11423 printf "%s\n" "$ac_cv_lib_crypto_EVP_sha256" >&6; }
   11424 if test "x$ac_cv_lib_crypto_EVP_sha256" = xyes
   11425 then :
   11426   printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
   11427 
   11428   LIBS="-lcrypto $LIBS"
   11429 
   11430 else case e in #(
   11431   e)
   11432                     as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
   11433                  ;;
   11434 esac
   11435 fi
   11436 
   11437 	fi
   11438 	SSL_LIBS="-lssl"
   11439 
   11440 	ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
   11441 "
   11442 if test "x$ac_cv_header_openssl_ssl_h" = xyes
   11443 then :
   11444   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
   11445 
   11446 fi
   11447 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
   11448 "
   11449 if test "x$ac_cv_header_openssl_err_h" = xyes
   11450 then :
   11451   printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
   11452 
   11453 fi
   11454 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
   11455 "
   11456 if test "x$ac_cv_header_openssl_rand_h" = xyes
   11457 then :
   11458   printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h
   11459 
   11460 fi
   11461 ac_fn_c_check_header_compile "$LINENO" "openssl/ocsp.h" "ac_cv_header_openssl_ocsp_h" "$ac_includes_default
   11462 "
   11463 if test "x$ac_cv_header_openssl_ocsp_h" = xyes
   11464 then :
   11465   printf "%s\n" "#define HAVE_OPENSSL_OCSP_H 1" >>confdefs.h
   11466 
   11467 fi
   11468 ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default
   11469 "
   11470 if test "x$ac_cv_header_openssl_core_names_h" = xyes
   11471 then :
   11472   printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h
   11473 
   11474 fi
   11475 ac_fn_c_check_header_compile "$LINENO" "openssl/x509v3.h" "ac_cv_header_openssl_x509v3_h" "$ac_includes_default
   11476 "
   11477 if test "x$ac_cv_header_openssl_x509v3_h" = xyes
   11478 then :
   11479   printf "%s\n" "#define HAVE_OPENSSL_X509V3_H 1" >>confdefs.h
   11480 
   11481 fi
   11482 
   11483 	ac_fn_c_check_func "$LINENO" "HMAC_CTX_reset" "ac_cv_func_HMAC_CTX_reset"
   11484 if test "x$ac_cv_func_HMAC_CTX_reset" = xyes
   11485 then :
   11486   printf "%s\n" "#define HAVE_HMAC_CTX_RESET 1" >>confdefs.h
   11487 
   11488 fi
   11489 ac_fn_c_check_func "$LINENO" "HMAC_CTX_new" "ac_cv_func_HMAC_CTX_new"
   11490 if test "x$ac_cv_func_HMAC_CTX_new" = xyes
   11491 then :
   11492   printf "%s\n" "#define HAVE_HMAC_CTX_NEW 1" >>confdefs.h
   11493 
   11494 fi
   11495 ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup"
   11496 if test "x$ac_cv_func_EVP_cleanup" = xyes
   11497 then :
   11498   printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h
   11499 
   11500 fi
   11501 ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings"
   11502 if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes
   11503 then :
   11504   printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h
   11505 
   11506 fi
   11507 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
   11508 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
   11509 then :
   11510   printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
   11511 
   11512 fi
   11513 ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp"
   11514 if test "x$ac_cv_func_CRYPTO_memcmp" = xyes
   11515 then :
   11516   printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h
   11517 
   11518 fi
   11519 ac_fn_c_check_func "$LINENO" "EC_KEY_new_by_curve_name" "ac_cv_func_EC_KEY_new_by_curve_name"
   11520 if test "x$ac_cv_func_EC_KEY_new_by_curve_name" = xyes
   11521 then :
   11522   printf "%s\n" "#define HAVE_EC_KEY_NEW_BY_CURVE_NAME 1" >>confdefs.h
   11523 
   11524 fi
   11525 ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_new" "ac_cv_func_EVP_MAC_CTX_new"
   11526 if test "x$ac_cv_func_EVP_MAC_CTX_new" = xyes
   11527 then :
   11528   printf "%s\n" "#define HAVE_EVP_MAC_CTX_NEW 1" >>confdefs.h
   11529 
   11530 fi
   11531 ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params"
   11532 if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes
   11533 then :
   11534   printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h
   11535 
   11536 fi
   11537 ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_get_mac_size" "ac_cv_func_EVP_MAC_CTX_get_mac_size"
   11538 if test "x$ac_cv_func_EVP_MAC_CTX_get_mac_size" = xyes
   11539 then :
   11540   printf "%s\n" "#define HAVE_EVP_MAC_CTX_GET_MAC_SIZE 1" >>confdefs.h
   11541 
   11542 fi
   11543 ac_fn_c_check_func "$LINENO" "SHA1_Init" "ac_cv_func_SHA1_Init"
   11544 if test "x$ac_cv_func_SHA1_Init" = xyes
   11545 then :
   11546   printf "%s\n" "#define HAVE_SHA1_INIT 1" >>confdefs.h
   11547 
   11548 fi
   11549 ac_fn_c_check_func "$LINENO" "ASN1_STRING_get0_data" "ac_cv_func_ASN1_STRING_get0_data"
   11550 if test "x$ac_cv_func_ASN1_STRING_get0_data" = xyes
   11551 then :
   11552   printf "%s\n" "#define HAVE_ASN1_STRING_GET0_DATA 1" >>confdefs.h
   11553 
   11554 fi
   11555 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_type_name" "ac_cv_func_EVP_PKEY_get0_type_name"
   11556 if test "x$ac_cv_func_EVP_PKEY_get0_type_name" = xyes
   11557 then :
   11558   printf "%s\n" "#define HAVE_EVP_PKEY_GET0_TYPE_NAME 1" >>confdefs.h
   11559 
   11560 fi
   11561 
   11562 	if test "$ac_cv_func_SHA1_Init" = "yes"; then
   11563 
   11564 
   11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SHA1_Init is deprecated" >&5
   11566 printf %s "checking if SHA1_Init is deprecated... " >&6; }
   11567 cache=`echo SHA1_Init | sed 'y%.=/+-%___p_%'`
   11568 if eval test \${cv_cc_deprecated_$cache+y}
   11569 then :
   11570   printf %s "(cached) " >&6
   11571 else case e in #(
   11572   e)
   11573 echo '
   11574 #include <openssl/sha.h>
   11575 ' >conftest.c
   11576 echo 'void f(void){ (void)SHA1_Init(NULL); }' >>conftest.c
   11577 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
   11578 eval "cv_cc_deprecated_$cache=no"
   11579 else
   11580 eval "cv_cc_deprecated_$cache=yes"
   11581 fi
   11582 rm -f conftest conftest.o conftest.c
   11583  ;;
   11584 esac
   11585 fi
   11586 
   11587 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
   11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11589 printf "%s\n" "yes" >&6; }
   11590 
   11591 printf "%s\n" "#define DEPRECATED_SHA1_INIT 1" >>confdefs.h
   11592 
   11593 :
   11594 
   11595 else
   11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11597 printf "%s\n" "no" >&6; }
   11598 :
   11599 
   11600 fi
   11601 
   11602 	fi
   11603 	ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
   11604 $ac_includes_default
   11605 #ifdef HAVE_OPENSSL_ERR_H
   11606 #include <openssl/err.h>
   11607 #endif
   11608 
   11609 #ifdef HAVE_OPENSSL_RAND_H
   11610 #include <openssl/rand.h>
   11611 #endif
   11612 
   11613 #ifdef HAVE_OPENSSL_CONF_H
   11614 #include <openssl/conf.h>
   11615 #endif
   11616 
   11617 #ifdef HAVE_OPENSSL_ENGINE_H
   11618 #include <openssl/engine.h>
   11619 #endif
   11620 #include <openssl/ssl.h>
   11621 #include <openssl/evp.h>
   11622 #ifdef HAVE_OPENSSL_X509V3_h
   11623 #include <openssl/x509v3.h>
   11624 #endif
   11625 
   11626 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   11627 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes
   11628 then :
   11629   ac_have_decl=1
   11630 else case e in #(
   11631   e) ac_have_decl=0 ;;
   11632 esac
   11633 fi
   11634 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h
   11635 ac_fn_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" "
   11636 $ac_includes_default
   11637 #ifdef HAVE_OPENSSL_ERR_H
   11638 #include <openssl/err.h>
   11639 #endif
   11640 
   11641 #ifdef HAVE_OPENSSL_RAND_H
   11642 #include <openssl/rand.h>
   11643 #endif
   11644 
   11645 #ifdef HAVE_OPENSSL_CONF_H
   11646 #include <openssl/conf.h>
   11647 #endif
   11648 
   11649 #ifdef HAVE_OPENSSL_ENGINE_H
   11650 #include <openssl/engine.h>
   11651 #endif
   11652 #include <openssl/ssl.h>
   11653 #include <openssl/evp.h>
   11654 #ifdef HAVE_OPENSSL_X509V3_h
   11655 #include <openssl/x509v3.h>
   11656 #endif
   11657 
   11658 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   11659 if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes
   11660 then :
   11661   ac_have_decl=1
   11662 else case e in #(
   11663   e) ac_have_decl=0 ;;
   11664 esac
   11665 fi
   11666 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl" >>confdefs.h
   11667 
   11668 	ac_fn_check_decl "$LINENO" "TLS1_3_VERSION" "ac_cv_have_decl_TLS1_3_VERSION" "#include <openssl/ssl.h>
   11669 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   11670 if test "x$ac_cv_have_decl_TLS1_3_VERSION" = xyes
   11671 then :
   11672 
   11673 printf "%s\n" "#define HAVE_TLS_1_3 1" >>confdefs.h
   11674 
   11675 else case e in #(
   11676   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&5
   11677 printf "%s\n" "$as_me: WARNING: No TLS 1.3, therefore XFR-over-TLS is disabled" >&2;} ;;
   11678 esac
   11679 fi
   11680 
   11681 	BAKLIBS="$LIBS"
   11682 	LIBS="-lssl $LIBS"
   11683 	ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
   11684 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
   11685 then :
   11686   printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
   11687 
   11688 fi
   11689 ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate"
   11690 if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes
   11691 then :
   11692   printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h
   11693 
   11694 fi
   11695 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level"
   11696 if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes
   11697 then :
   11698   printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h
   11699 
   11700 fi
   11701 ac_fn_c_check_func "$LINENO" "ERR_load_SSL_strings" "ac_cv_func_ERR_load_SSL_strings"
   11702 if test "x$ac_cv_func_ERR_load_SSL_strings" = xyes
   11703 then :
   11704   printf "%s\n" "#define HAVE_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h
   11705 
   11706 fi
   11707 
   11708 	if test "$ac_cv_func_ERR_load_SSL_strings" = "yes"; then
   11709 
   11710 
   11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ERR_load_SSL_strings is deprecated" >&5
   11712 printf %s "checking if ERR_load_SSL_strings is deprecated... " >&6; }
   11713 cache=`echo ERR_load_SSL_strings | sed 'y%.=/+-%___p_%'`
   11714 if eval test \${cv_cc_deprecated_$cache+y}
   11715 then :
   11716   printf %s "(cached) " >&6
   11717 else case e in #(
   11718   e)
   11719 echo '
   11720 #include <openssl/ssl.h>
   11721 ' >conftest.c
   11722 echo 'void f(void){ (void)ERR_load_SSL_strings(); }' >>conftest.c
   11723 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
   11724 eval "cv_cc_deprecated_$cache=no"
   11725 else
   11726 eval "cv_cc_deprecated_$cache=yes"
   11727 fi
   11728 rm -f conftest conftest.o conftest.c
   11729  ;;
   11730 esac
   11731 fi
   11732 
   11733 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
   11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11735 printf "%s\n" "yes" >&6; }
   11736 
   11737 printf "%s\n" "#define DEPRECATED_ERR_LOAD_SSL_STRINGS 1" >>confdefs.h
   11738 
   11739 :
   11740 
   11741 else
   11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11743 printf "%s\n" "no" >&6; }
   11744 :
   11745 
   11746 fi
   11747 
   11748 	fi
   11749 	LIBS="$BAKLIBS"
   11750 
   11751 else
   11752 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore TLS is disabled" >&5
   11753 printf "%s\n" "$as_me: WARNING: No SSL, therefore TLS is disabled" >&2;}
   11754 fi
   11755 
   11756 # Check whether --enable-nsec3 was given.
   11757 if test ${enable_nsec3+y}
   11758 then :
   11759   enableval=$enable_nsec3;
   11760 fi
   11761 
   11762 case "$enable_nsec3" in
   11763         no)
   11764 		;;
   11765         yes)
   11766 
   11767 printf "%s\n" "#define NSEC3 /**/" >>confdefs.h
   11768 
   11769 		;;
   11770 		*)
   11771 		if test x$HAVE_SSL = x"yes"; then
   11772 
   11773 printf "%s\n" "#define NSEC3 /**/" >>confdefs.h
   11774 
   11775 		else
   11776 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5
   11777 printf "%s\n" "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;}
   11778 		fi
   11779                 ;;
   11780 esac
   11781 
   11782 # Check whether --enable-minimal-responses was given.
   11783 if test ${enable_minimal_responses+y}
   11784 then :
   11785   enableval=$enable_minimal_responses;
   11786 fi
   11787 
   11788 case "$enable_minimal_responses" in
   11789         no)
   11790 		;;
   11791         yes|*)
   11792 
   11793 printf "%s\n" "#define MINIMAL_RESPONSES /**/" >>confdefs.h
   11794 
   11795                 ;;
   11796 esac
   11797 
   11798 # Check whether --enable-mmap was given.
   11799 if test ${enable_mmap+y}
   11800 then :
   11801   enableval=$enable_mmap;
   11802 fi
   11803 
   11804 case "$enable_mmap" in
   11805         yes)
   11806 		ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default
   11807 "
   11808 if test "x$ac_cv_header_sys_mman_h" = xyes
   11809 then :
   11810   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
   11811 
   11812 fi
   11813 
   11814 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
   11815 printf %s "checking for uintptr_t... " >&6; }
   11816 if test ${ac_cv_type_uintptr_t+y}
   11817 then :
   11818   printf %s "(cached) " >&6
   11819 else case e in #(
   11820   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11821 /* end confdefs.h.  */
   11822 
   11823 #include <sys/types.h>
   11824 #include <stdlib.h>
   11825 #include <stddef.h>
   11826 
   11827 #ifdef HAVE_STDINT_H
   11828 #include <stdint.h>
   11829 #endif
   11830 
   11831 #ifdef HAVE_SYS_SOCKET_H
   11832 #include <sys/socket.h>
   11833 #endif
   11834 
   11835 #ifdef HAVE_ARPA_INET_H
   11836 #include <arpa/inet.h>
   11837 #endif
   11838 
   11839 #ifdef HAVE_SIGNAL_H
   11840 #include <signal.h>
   11841 #endif
   11842 
   11843 /* For Tru64 */
   11844 #ifdef HAVE_SYS_BITYPES_H
   11845 #include <sys/bitypes.h>
   11846 #endif
   11847 
   11848 _ACEOF
   11849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11850   $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1
   11851 then :
   11852   ac_cv_type_uintptr_t=yes
   11853 else case e in #(
   11854   e) ac_cv_type_uintptr_t=no ;;
   11855 esac
   11856 fi
   11857 rm -rf conftest*
   11858  ;;
   11859 esac
   11860 fi
   11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5
   11862 printf "%s\n" "$ac_cv_type_uintptr_t" >&6; }
   11863 if test $ac_cv_type_uintptr_t = no; then
   11864 
   11865 printf "%s\n" "#define uintptr_t void*" >>confdefs.h
   11866 
   11867 fi
   11868 
   11869 		ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   11870 if test "x$ac_cv_func_mmap" = xyes
   11871 then :
   11872   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
   11873 
   11874 fi
   11875 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
   11876 if test "x$ac_cv_func_munmap" = xyes
   11877 then :
   11878   printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
   11879 
   11880 fi
   11881 
   11882 
   11883 printf "%s\n" "#define USE_MMAP_ALLOC /**/" >>confdefs.h
   11884 
   11885 		;;
   11886         no|*)
   11887                 ;;
   11888 esac
   11889 
   11890 # Check whether --enable-radix-tree was given.
   11891 if test ${enable_radix_tree+y}
   11892 then :
   11893   enableval=$enable_radix_tree;
   11894 fi
   11895 
   11896 case "$enable_radix_tree" in
   11897         no)
   11898 	;;
   11899 	yes|*)
   11900 
   11901 printf "%s\n" "#define USE_RADIX_TREE /**/" >>confdefs.h
   11902 
   11903 	;;
   11904 esac
   11905 
   11906 # Check whether --enable-packed was given.
   11907 if test ${enable_packed+y}
   11908 then :
   11909   enableval=$enable_packed;
   11910 fi
   11911 
   11912 case "$enable_packed" in
   11913 	yes)
   11914 
   11915 printf "%s\n" "#define PACKED_STRUCTS /**/" >>confdefs.h
   11916 
   11917 
   11918 
   11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-address-of-packed-member" >&5
   11920 printf %s "checking whether $CC supports -Wno-address-of-packed-member... " >&6; }
   11921 cache=`echo Wno-address-of-packed-member | sed 'y%.=/+-%___p_%'`
   11922 if eval test \${cv_prog_cc_flag_$cache+y}
   11923 then :
   11924   printf %s "(cached) " >&6
   11925 else case e in #(
   11926   e)
   11927 echo 'void f(void){}' >conftest.c
   11928 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-address-of-packed-member -c conftest.c 2>&1`"; then
   11929 eval "cv_prog_cc_flag_$cache=yes"
   11930 else
   11931 eval "cv_prog_cc_flag_$cache=no"
   11932 fi
   11933 rm -f conftest conftest.o conftest.c
   11934  ;;
   11935 esac
   11936 fi
   11937 
   11938 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11940 printf "%s\n" "yes" >&6; }
   11941 :
   11942 CFLAGS="$CFLAGS -Wno-address-of-packed-member"
   11943 else
   11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11945 printf "%s\n" "no" >&6; }
   11946 :
   11947 
   11948 fi
   11949 
   11950 	;;
   11951 	no|*)
   11952 	;;
   11953 esac
   11954 
   11955 # Check whether --enable-xdp was given.
   11956 if test ${enable_xdp+y}
   11957 then :
   11958   enableval=$enable_xdp;
   11959 fi
   11960 
   11961 case "$enable_xdp" in
   11962 	yes)
   11963 
   11964 printf "%s\n" "#define USE_XDP /**/" >>confdefs.h
   11965 
   11966 
   11967 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing xdp_program__open_file" >&5
   11968 printf %s "checking for library containing xdp_program__open_file... " >&6; }
   11969 if test ${ac_cv_search_xdp_program__open_file+y}
   11970 then :
   11971   printf %s "(cached) " >&6
   11972 else case e in #(
   11973   e) ac_func_search_save_LIBS=$LIBS
   11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11975 /* end confdefs.h.  */
   11976 
   11977 /* Override any GCC internal prototype to avoid an error.
   11978    Use char because int might match the return type of a GCC
   11979    builtin and then its argument prototype would still apply.
   11980    The 'extern "C"' is for builds by C++ compilers;
   11981    although this is not generally supported in C code supporting it here
   11982    has little cost and some practical benefit (sr 110532).  */
   11983 #ifdef __cplusplus
   11984 extern "C"
   11985 #endif
   11986 char xdp_program__open_file (void);
   11987 int
   11988 main (void)
   11989 {
   11990 return xdp_program__open_file ();
   11991   ;
   11992   return 0;
   11993 }
   11994 _ACEOF
   11995 for ac_lib in '' xdp
   11996 do
   11997   if test -z "$ac_lib"; then
   11998     ac_res="none required"
   11999   else
   12000     ac_res=-l$ac_lib
   12001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12002   fi
   12003   if ac_fn_c_try_link "$LINENO"
   12004 then :
   12005   ac_cv_search_xdp_program__open_file=$ac_res
   12006 fi
   12007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12008     conftest$ac_exeext
   12009   if test ${ac_cv_search_xdp_program__open_file+y}
   12010 then :
   12011   break
   12012 fi
   12013 done
   12014 if test ${ac_cv_search_xdp_program__open_file+y}
   12015 then :
   12016 
   12017 else case e in #(
   12018   e) ac_cv_search_xdp_program__open_file=no ;;
   12019 esac
   12020 fi
   12021 rm conftest.$ac_ext
   12022 LIBS=$ac_func_search_save_LIBS ;;
   12023 esac
   12024 fi
   12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdp_program__open_file" >&5
   12026 printf "%s\n" "$ac_cv_search_xdp_program__open_file" >&6; }
   12027 ac_res=$ac_cv_search_xdp_program__open_file
   12028 if test "$ac_res" != no
   12029 then :
   12030   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12031 
   12032 else case e in #(
   12033   e) as_fn_error $? "Cannot find libxdp, but is needed for xdp support." "$LINENO" 5 ;;
   12034 esac
   12035 fi
   12036 
   12037 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bpf_map__fd" >&5
   12038 printf %s "checking for library containing bpf_map__fd... " >&6; }
   12039 if test ${ac_cv_search_bpf_map__fd+y}
   12040 then :
   12041   printf %s "(cached) " >&6
   12042 else case e in #(
   12043   e) ac_func_search_save_LIBS=$LIBS
   12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12045 /* end confdefs.h.  */
   12046 
   12047 /* Override any GCC internal prototype to avoid an error.
   12048    Use char because int might match the return type of a GCC
   12049    builtin and then its argument prototype would still apply.
   12050    The 'extern "C"' is for builds by C++ compilers;
   12051    although this is not generally supported in C code supporting it here
   12052    has little cost and some practical benefit (sr 110532).  */
   12053 #ifdef __cplusplus
   12054 extern "C"
   12055 #endif
   12056 char bpf_map__fd (void);
   12057 int
   12058 main (void)
   12059 {
   12060 return bpf_map__fd ();
   12061   ;
   12062   return 0;
   12063 }
   12064 _ACEOF
   12065 for ac_lib in '' bpf
   12066 do
   12067   if test -z "$ac_lib"; then
   12068     ac_res="none required"
   12069   else
   12070     ac_res=-l$ac_lib
   12071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12072   fi
   12073   if ac_fn_c_try_link "$LINENO"
   12074 then :
   12075   ac_cv_search_bpf_map__fd=$ac_res
   12076 fi
   12077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12078     conftest$ac_exeext
   12079   if test ${ac_cv_search_bpf_map__fd+y}
   12080 then :
   12081   break
   12082 fi
   12083 done
   12084 if test ${ac_cv_search_bpf_map__fd+y}
   12085 then :
   12086 
   12087 else case e in #(
   12088   e) ac_cv_search_bpf_map__fd=no ;;
   12089 esac
   12090 fi
   12091 rm conftest.$ac_ext
   12092 LIBS=$ac_func_search_save_LIBS ;;
   12093 esac
   12094 fi
   12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bpf_map__fd" >&5
   12096 printf "%s\n" "$ac_cv_search_bpf_map__fd" >&6; }
   12097 ac_res=$ac_cv_search_bpf_map__fd
   12098 if test "$ac_res" != no
   12099 then :
   12100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12101 
   12102 else case e in #(
   12103   e) as_fn_error $? "Cannot find libbpf, but is needed for xdp support." "$LINENO" 5 ;;
   12104 esac
   12105 fi
   12106 
   12107 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   12108 printf %s "checking for library containing cap_set_proc... " >&6; }
   12109 if test ${ac_cv_search_cap_set_proc+y}
   12110 then :
   12111   printf %s "(cached) " >&6
   12112 else case e in #(
   12113   e) ac_func_search_save_LIBS=$LIBS
   12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12115 /* end confdefs.h.  */
   12116 
   12117 /* Override any GCC internal prototype to avoid an error.
   12118    Use char because int might match the return type of a GCC
   12119    builtin and then its argument prototype would still apply.
   12120    The 'extern "C"' is for builds by C++ compilers;
   12121    although this is not generally supported in C code supporting it here
   12122    has little cost and some practical benefit (sr 110532).  */
   12123 #ifdef __cplusplus
   12124 extern "C"
   12125 #endif
   12126 char cap_set_proc (void);
   12127 int
   12128 main (void)
   12129 {
   12130 return cap_set_proc ();
   12131   ;
   12132   return 0;
   12133 }
   12134 _ACEOF
   12135 for ac_lib in '' cap
   12136 do
   12137   if test -z "$ac_lib"; then
   12138     ac_res="none required"
   12139   else
   12140     ac_res=-l$ac_lib
   12141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12142   fi
   12143   if ac_fn_c_try_link "$LINENO"
   12144 then :
   12145   ac_cv_search_cap_set_proc=$ac_res
   12146 fi
   12147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12148     conftest$ac_exeext
   12149   if test ${ac_cv_search_cap_set_proc+y}
   12150 then :
   12151   break
   12152 fi
   12153 done
   12154 if test ${ac_cv_search_cap_set_proc+y}
   12155 then :
   12156 
   12157 else case e in #(
   12158   e) ac_cv_search_cap_set_proc=no ;;
   12159 esac
   12160 fi
   12161 rm conftest.$ac_ext
   12162 LIBS=$ac_func_search_save_LIBS ;;
   12163 esac
   12164 fi
   12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   12166 printf "%s\n" "$ac_cv_search_cap_set_proc" >&6; }
   12167 ac_res=$ac_cv_search_cap_set_proc
   12168 if test "$ac_res" != no
   12169 then :
   12170   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12171 
   12172 else case e in #(
   12173   e) as_fn_error $? "Cannot find libcap, but is needed for xdp support." "$LINENO" 5 ;;
   12174 esac
   12175 fi
   12176 
   12177 
   12178 	# Using ARG_VAR here because AC_PROG_xxx doesn't exist for CLANG and LLC
   12179 
   12180 
   12181 	# CHECK_PROG will not overwrite a variable if it is already provided by the user on the commandline
   12182 	# Extract the first word of "clang", so it can be a program name with args.
   12183 set dummy clang; ac_word=$2
   12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12185 printf %s "checking for $ac_word... " >&6; }
   12186 if test ${ac_cv_prog_CLANG+y}
   12187 then :
   12188   printf %s "(cached) " >&6
   12189 else case e in #(
   12190   e) if test -n "$CLANG"; then
   12191   ac_cv_prog_CLANG="$CLANG" # Let the user override the test.
   12192 else
   12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12194 for as_dir in $PATH
   12195 do
   12196   IFS=$as_save_IFS
   12197   case $as_dir in #(((
   12198     '') as_dir=./ ;;
   12199     */) ;;
   12200     *) as_dir=$as_dir/ ;;
   12201   esac
   12202     for ac_exec_ext in '' $ac_executable_extensions; do
   12203   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12204     ac_cv_prog_CLANG="clang"
   12205     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12206     break 2
   12207   fi
   12208 done
   12209   done
   12210 IFS=$as_save_IFS
   12211 
   12212 fi ;;
   12213 esac
   12214 fi
   12215 CLANG=$ac_cv_prog_CLANG
   12216 if test -n "$CLANG"; then
   12217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
   12218 printf "%s\n" "$CLANG" >&6; }
   12219 else
   12220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12221 printf "%s\n" "no" >&6; }
   12222 fi
   12223 
   12224 
   12225 	# Extract the first word of "llc", so it can be a program name with args.
   12226 set dummy llc; ac_word=$2
   12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12228 printf %s "checking for $ac_word... " >&6; }
   12229 if test ${ac_cv_prog_LLC+y}
   12230 then :
   12231   printf %s "(cached) " >&6
   12232 else case e in #(
   12233   e) if test -n "$LLC"; then
   12234   ac_cv_prog_LLC="$LLC" # Let the user override the test.
   12235 else
   12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12237 for as_dir in $PATH
   12238 do
   12239   IFS=$as_save_IFS
   12240   case $as_dir in #(((
   12241     '') as_dir=./ ;;
   12242     */) ;;
   12243     *) as_dir=$as_dir/ ;;
   12244   esac
   12245     for ac_exec_ext in '' $ac_executable_extensions; do
   12246   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12247     ac_cv_prog_LLC="llc"
   12248     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12249     break 2
   12250   fi
   12251 done
   12252   done
   12253 IFS=$as_save_IFS
   12254 
   12255 fi ;;
   12256 esac
   12257 fi
   12258 LLC=$ac_cv_prog_LLC
   12259 if test -n "$LLC"; then
   12260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLC" >&5
   12261 printf "%s\n" "$LLC" >&6; }
   12262 else
   12263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12264 printf "%s\n" "no" >&6; }
   12265 fi
   12266 
   12267 
   12268 	test "$CLANG" = "" && as_fn_error $? "Cannot find clang, but is needed for xdp support." "$LINENO" 5
   12269 	test "$LLC" = "" && as_fn_error $? "Cannot find llc, but is needed for xdp support." "$LINENO" 5
   12270 
   12271 
   12272 	test "$BPF_CFLAGS" = "" && BPF_CFLAGS="-Wall -Wextra -Wconversion -Werror"
   12273 
   12274 	xdp_targets="xdp-dns-redirect_kern.o xdp-dns-redirect_kern_pinned.o"
   12275 
   12276 
   12277 	xdp="xx"
   12278 	;;
   12279 	no|*)
   12280 	xdp=""
   12281 	;;
   12282 esac
   12283 
   12284 # check for dnstap if requested
   12285 
   12286   # Check whether --enable-dnstap was given.
   12287 if test ${enable_dnstap+y}
   12288 then :
   12289   enableval=$enable_dnstap; opt_dnstap=$enableval
   12290 else case e in #(
   12291   e) opt_dnstap=yes ;;
   12292 esac
   12293 fi
   12294 
   12295 
   12296 
   12297 # Check whether --with-dnstap-socket-path was given.
   12298 if test ${with_dnstap_socket_path+y}
   12299 then :
   12300   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
   12301 else case e in #(
   12302   e) opt_dnstap_socket_path="${localstatedir}/run/nsd-dnstap.sock" ;;
   12303 esac
   12304 fi
   12305 
   12306 
   12307   if test "x$opt_dnstap" != "xno"; then
   12308     # Extract the first word of "protoc", so it can be a program name with args.
   12309 set dummy protoc; ac_word=$2
   12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12311 printf %s "checking for $ac_word... " >&6; }
   12312 if test ${ac_cv_path_PROTOC+y}
   12313 then :
   12314   printf %s "(cached) " >&6
   12315 else case e in #(
   12316   e) case $PROTOC in
   12317   [\\/]* | ?:[\\/]*)
   12318   ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
   12319   ;;
   12320   *)
   12321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12322 for as_dir in $PATH
   12323 do
   12324   IFS=$as_save_IFS
   12325   case $as_dir in #(((
   12326     '') as_dir=./ ;;
   12327     */) ;;
   12328     *) as_dir=$as_dir/ ;;
   12329   esac
   12330     for ac_exec_ext in '' $ac_executable_extensions; do
   12331   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12332     ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext"
   12333     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12334     break 2
   12335   fi
   12336 done
   12337   done
   12338 IFS=$as_save_IFS
   12339 
   12340   ;;
   12341 esac ;;
   12342 esac
   12343 fi
   12344 PROTOC=$ac_cv_path_PROTOC
   12345 if test -n "$PROTOC"; then
   12346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
   12347 printf "%s\n" "$PROTOC" >&6; }
   12348 else
   12349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12350 printf "%s\n" "no" >&6; }
   12351 fi
   12352 
   12353 
   12354     # 'protoc-c' is deprecated. We use 'protoc' instead. If it can not be
   12355     # found, try 'protoc-c'.
   12356     if test -z "$PROTOC"; then
   12357 	# Extract the first word of "protoc-c", so it can be a program name with args.
   12358 set dummy protoc-c; ac_word=$2
   12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12360 printf %s "checking for $ac_word... " >&6; }
   12361 if test ${ac_cv_path_PROTOC_C+y}
   12362 then :
   12363   printf %s "(cached) " >&6
   12364 else case e in #(
   12365   e) case $PROTOC_C in
   12366   [\\/]* | ?:[\\/]*)
   12367   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   12368   ;;
   12369   *)
   12370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12371 for as_dir in $PATH
   12372 do
   12373   IFS=$as_save_IFS
   12374   case $as_dir in #(((
   12375     '') as_dir=./ ;;
   12376     */) ;;
   12377     *) as_dir=$as_dir/ ;;
   12378   esac
   12379     for ac_exec_ext in '' $ac_executable_extensions; do
   12380   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12381     ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext"
   12382     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12383     break 2
   12384   fi
   12385 done
   12386   done
   12387 IFS=$as_save_IFS
   12388 
   12389   ;;
   12390 esac ;;
   12391 esac
   12392 fi
   12393 PROTOC_C=$ac_cv_path_PROTOC_C
   12394 if test -n "$PROTOC_C"; then
   12395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   12396 printf "%s\n" "$PROTOC_C" >&6; }
   12397 else
   12398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12399 printf "%s\n" "no" >&6; }
   12400 fi
   12401 
   12402 
   12403     else
   12404 	PROTOC_C="$PROTOC"
   12405     fi
   12406     if test -z "$PROTOC_C"; then
   12407       as_fn_error $? "The protoc or protoc-c program was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c to provide protoc or protoc-c" "$LINENO" 5
   12408     fi
   12409 
   12410     # Check for protoc-gen-c plugin
   12411     # Extract the first word of "protoc-gen-c", so it can be a program name with args.
   12412 set dummy protoc-gen-c; ac_word=$2
   12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12414 printf %s "checking for $ac_word... " >&6; }
   12415 if test ${ac_cv_path_PROTOC_GEN_C+y}
   12416 then :
   12417   printf %s "(cached) " >&6
   12418 else case e in #(
   12419   e) case $PROTOC_GEN_C in
   12420   [\\/]* | ?:[\\/]*)
   12421   ac_cv_path_PROTOC_GEN_C="$PROTOC_GEN_C" # Let the user override the test with a path.
   12422   ;;
   12423   *)
   12424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12425 for as_dir in $PATH
   12426 do
   12427   IFS=$as_save_IFS
   12428   case $as_dir in #(((
   12429     '') as_dir=./ ;;
   12430     */) ;;
   12431     *) as_dir=$as_dir/ ;;
   12432   esac
   12433     for ac_exec_ext in '' $ac_executable_extensions; do
   12434   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12435     ac_cv_path_PROTOC_GEN_C="$as_dir$ac_word$ac_exec_ext"
   12436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12437     break 2
   12438   fi
   12439 done
   12440   done
   12441 IFS=$as_save_IFS
   12442 
   12443   ;;
   12444 esac ;;
   12445 esac
   12446 fi
   12447 PROTOC_GEN_C=$ac_cv_path_PROTOC_GEN_C
   12448 if test -n "$PROTOC_GEN_C"; then
   12449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_GEN_C" >&5
   12450 printf "%s\n" "$PROTOC_GEN_C" >&6; }
   12451 else
   12452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12453 printf "%s\n" "no" >&6; }
   12454 fi
   12455 
   12456 
   12457     if test -z "$PROTOC_GEN_C"; then
   12458       as_fn_error $? "The protoc-gen-c plugin was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c-compiler to provide protoc-gen-c" "$LINENO" 5
   12459     fi
   12460 
   12461     # Test that protoc-gen-c actually works
   12462     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if protoc-gen-c plugin works" >&5
   12463 printf %s "checking if protoc-gen-c plugin works... " >&6; }
   12464     cat > conftest.proto << EOF
   12465 syntax = "proto2";
   12466 message TestMessage {
   12467   optional string test_field = 1;
   12468 }
   12469 EOF
   12470     if $PROTOC_C --c_out=. conftest.proto >/dev/null 2>&1; then
   12471       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12472 printf "%s\n" "yes" >&6; }
   12473       rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h
   12474     else
   12475       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12476 printf "%s\n" "no" >&6; }
   12477       rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h
   12478       as_fn_error $? "The protoc-gen-c plugin is not working properly. Please ensure protobuf-c-compiler is properly installed" "$LINENO" 5
   12479     fi
   12480 
   12481 
   12482 # Check whether --with-protobuf-c was given.
   12483 if test ${with_protobuf_c+y}
   12484 then :
   12485   withval=$with_protobuf_c;
   12486 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   12487 	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
   12488 	    CFLAGS="$CFLAGS -I$withval/include/google"
   12489 	  else
   12490 	    CFLAGS="$CFLAGS -I$withval/include"
   12491 	  fi
   12492 	  LDFLAGS="$LDFLAGS -L$withval/lib"
   12493 
   12494 else case e in #(
   12495   e)
   12496 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   12497 	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   12498 	    CFLAGS="$CFLAGS -I/usr/include/google"
   12499 	  else
   12500 	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   12501 	      CFLAGS="$CFLAGS -I/usr/local/include/google"
   12502 	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
   12503 	    fi
   12504 	  fi
   12505      ;;
   12506 esac
   12507 fi
   12508 
   12509 
   12510 # Check whether --with-libfstrm was given.
   12511 if test ${with_libfstrm+y}
   12512 then :
   12513   withval=$with_libfstrm;
   12514 	CFLAGS="$CFLAGS -I$withval/include"
   12515 	LDFLAGS="$LDFLAGS -L$withval/lib"
   12516 
   12517 fi
   12518 
   12519     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   12520 printf %s "checking for library containing fstrm_iothr_init... " >&6; }
   12521 if test ${ac_cv_search_fstrm_iothr_init+y}
   12522 then :
   12523   printf %s "(cached) " >&6
   12524 else case e in #(
   12525   e) ac_func_search_save_LIBS=$LIBS
   12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12527 /* end confdefs.h.  */
   12528 
   12529 /* Override any GCC internal prototype to avoid an error.
   12530    Use char because int might match the return type of a GCC
   12531    builtin and then its argument prototype would still apply.
   12532    The 'extern "C"' is for builds by C++ compilers;
   12533    although this is not generally supported in C code supporting it here
   12534    has little cost and some practical benefit (sr 110532).  */
   12535 #ifdef __cplusplus
   12536 extern "C"
   12537 #endif
   12538 char fstrm_iothr_init (void);
   12539 int
   12540 main (void)
   12541 {
   12542 return fstrm_iothr_init ();
   12543   ;
   12544   return 0;
   12545 }
   12546 _ACEOF
   12547 for ac_lib in '' fstrm
   12548 do
   12549   if test -z "$ac_lib"; then
   12550     ac_res="none required"
   12551   else
   12552     ac_res=-l$ac_lib
   12553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12554   fi
   12555   if ac_fn_c_try_link "$LINENO"
   12556 then :
   12557   ac_cv_search_fstrm_iothr_init=$ac_res
   12558 fi
   12559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12560     conftest$ac_exeext
   12561   if test ${ac_cv_search_fstrm_iothr_init+y}
   12562 then :
   12563   break
   12564 fi
   12565 done
   12566 if test ${ac_cv_search_fstrm_iothr_init+y}
   12567 then :
   12568 
   12569 else case e in #(
   12570   e) ac_cv_search_fstrm_iothr_init=no ;;
   12571 esac
   12572 fi
   12573 rm conftest.$ac_ext
   12574 LIBS=$ac_func_search_save_LIBS ;;
   12575 esac
   12576 fi
   12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   12578 printf "%s\n" "$ac_cv_search_fstrm_iothr_init" >&6; }
   12579 ac_res=$ac_cv_search_fstrm_iothr_init
   12580 if test "$ac_res" != no
   12581 then :
   12582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12583 
   12584 else case e in #(
   12585   e) as_fn_error $? "The fstrm library was not found. It is needed for dnstap, use --disable-dnstap, or install fstrm-devel" "$LINENO" 5 ;;
   12586 esac
   12587 fi
   12588 
   12589 
   12590   for ac_func in fstrm_tcp_writer_options_init
   12591 do :
   12592   ac_fn_c_check_func "$LINENO" "fstrm_tcp_writer_options_init" "ac_cv_func_fstrm_tcp_writer_options_init"
   12593 if test "x$ac_cv_func_fstrm_tcp_writer_options_init" = xyes
   12594 then :
   12595   printf "%s\n" "#define HAVE_FSTRM_TCP_WRITER_OPTIONS_INIT 1" >>confdefs.h
   12596 
   12597 else case e in #(
   12598   e) as_fn_error $? "The fstrm library >= 0.4 was not found. It is needed for dnstap, use --disable-dnstap, or install fstrm-devel" "$LINENO" 5 ;;
   12599 esac
   12600 fi
   12601 
   12602 done
   12603     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   12604 printf %s "checking for library containing protobuf_c_message_pack... " >&6; }
   12605 if test ${ac_cv_search_protobuf_c_message_pack+y}
   12606 then :
   12607   printf %s "(cached) " >&6
   12608 else case e in #(
   12609   e) ac_func_search_save_LIBS=$LIBS
   12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12611 /* end confdefs.h.  */
   12612 
   12613 /* Override any GCC internal prototype to avoid an error.
   12614    Use char because int might match the return type of a GCC
   12615    builtin and then its argument prototype would still apply.
   12616    The 'extern "C"' is for builds by C++ compilers;
   12617    although this is not generally supported in C code supporting it here
   12618    has little cost and some practical benefit (sr 110532).  */
   12619 #ifdef __cplusplus
   12620 extern "C"
   12621 #endif
   12622 char protobuf_c_message_pack (void);
   12623 int
   12624 main (void)
   12625 {
   12626 return protobuf_c_message_pack ();
   12627   ;
   12628   return 0;
   12629 }
   12630 _ACEOF
   12631 for ac_lib in '' protobuf-c
   12632 do
   12633   if test -z "$ac_lib"; then
   12634     ac_res="none required"
   12635   else
   12636     ac_res=-l$ac_lib
   12637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12638   fi
   12639   if ac_fn_c_try_link "$LINENO"
   12640 then :
   12641   ac_cv_search_protobuf_c_message_pack=$ac_res
   12642 fi
   12643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12644     conftest$ac_exeext
   12645   if test ${ac_cv_search_protobuf_c_message_pack+y}
   12646 then :
   12647   break
   12648 fi
   12649 done
   12650 if test ${ac_cv_search_protobuf_c_message_pack+y}
   12651 then :
   12652 
   12653 else case e in #(
   12654   e) ac_cv_search_protobuf_c_message_pack=no ;;
   12655 esac
   12656 fi
   12657 rm conftest.$ac_ext
   12658 LIBS=$ac_func_search_save_LIBS ;;
   12659 esac
   12660 fi
   12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   12662 printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; }
   12663 ac_res=$ac_cv_search_protobuf_c_message_pack
   12664 if test "$ac_res" != no
   12665 then :
   12666   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12667 
   12668 else case e in #(
   12669   e) as_fn_error $? "The protobuf-c library was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c" "$LINENO" 5 ;;
   12670 esac
   12671 fi
   12672 
   12673 
   12674 
   12675 printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h
   12676 
   12677         ENABLE_DNSTAP=1
   12678 
   12679 
   12680 
   12681         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
   12682 
   12683 
   12684 printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h
   12685 
   12686 
   12687         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_collector.c"
   12688 
   12689         DNSTAP_OBJ="dnstap.o dnstap_collector.o dnstap.pb-c.o"
   12690 
   12691 	dnstap_config="dnstap/dnstap_config.h.tmp:dnstap/dnstap_config.h.in"
   12692 	dnstap_config_tmp="dnstap/dnstap_config.h.tmp"
   12693 	dnstap_config_out="dnstap/dnstap_config.h"
   12694 
   12695   else
   12696 
   12697         ENABLE_DNSTAP=0
   12698 
   12699 
   12700 
   12701   fi
   12702 
   12703 
   12704 # Include systemd.m4 - begin
   12705 #   macros for configuring systemd
   12706 #   Copyright 2015, Sami Kerola, CloudFlare.
   12707 #   BSD licensed.
   12708 # Check whether --enable-systemd was given.
   12709 if test ${enable_systemd+y}
   12710 then :
   12711   enableval=$enable_systemd;
   12712 else case e in #(
   12713   e) enable_systemd=no ;;
   12714 esac
   12715 fi
   12716 
   12717 have_systemd=no
   12718 
   12719 
   12720 
   12721 
   12722 
   12723 
   12724 
   12725 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12726 	if test -n "$ac_tool_prefix"; then
   12727   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12728 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12730 printf %s "checking for $ac_word... " >&6; }
   12731 if test ${ac_cv_path_PKG_CONFIG+y}
   12732 then :
   12733   printf %s "(cached) " >&6
   12734 else case e in #(
   12735   e) case $PKG_CONFIG in
   12736   [\\/]* | ?:[\\/]*)
   12737   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12738   ;;
   12739   *)
   12740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12741 for as_dir in $PATH
   12742 do
   12743   IFS=$as_save_IFS
   12744   case $as_dir in #(((
   12745     '') as_dir=./ ;;
   12746     */) ;;
   12747     *) as_dir=$as_dir/ ;;
   12748   esac
   12749     for ac_exec_ext in '' $ac_executable_extensions; do
   12750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12751     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   12752     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12753     break 2
   12754   fi
   12755 done
   12756   done
   12757 IFS=$as_save_IFS
   12758 
   12759   ;;
   12760 esac ;;
   12761 esac
   12762 fi
   12763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12764 if test -n "$PKG_CONFIG"; then
   12765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12766 printf "%s\n" "$PKG_CONFIG" >&6; }
   12767 else
   12768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12769 printf "%s\n" "no" >&6; }
   12770 fi
   12771 
   12772 
   12773 fi
   12774 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12775   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12776   # Extract the first word of "pkg-config", so it can be a program name with args.
   12777 set dummy pkg-config; ac_word=$2
   12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12779 printf %s "checking for $ac_word... " >&6; }
   12780 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   12781 then :
   12782   printf %s "(cached) " >&6
   12783 else case e in #(
   12784   e) case $ac_pt_PKG_CONFIG in
   12785   [\\/]* | ?:[\\/]*)
   12786   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12787   ;;
   12788   *)
   12789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12790 for as_dir in $PATH
   12791 do
   12792   IFS=$as_save_IFS
   12793   case $as_dir in #(((
   12794     '') as_dir=./ ;;
   12795     */) ;;
   12796     *) as_dir=$as_dir/ ;;
   12797   esac
   12798     for ac_exec_ext in '' $ac_executable_extensions; do
   12799   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12800     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   12801     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12802     break 2
   12803   fi
   12804 done
   12805   done
   12806 IFS=$as_save_IFS
   12807 
   12808   ;;
   12809 esac ;;
   12810 esac
   12811 fi
   12812 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12813 if test -n "$ac_pt_PKG_CONFIG"; then
   12814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12815 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   12816 else
   12817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12818 printf "%s\n" "no" >&6; }
   12819 fi
   12820 
   12821   if test "x$ac_pt_PKG_CONFIG" = x; then
   12822     PKG_CONFIG=""
   12823   else
   12824     case $cross_compiling:$ac_tool_warned in
   12825 yes:)
   12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12828 ac_tool_warned=yes ;;
   12829 esac
   12830     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12831   fi
   12832 else
   12833   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12834 fi
   12835 
   12836 fi
   12837 if test -n "$PKG_CONFIG"; then
   12838 	_pkg_min_version=0.9.0
   12839 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   12840 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   12841 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   12842 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12843 printf "%s\n" "yes" >&6; }
   12844 	else
   12845 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12846 printf "%s\n" "no" >&6; }
   12847 		PKG_CONFIG=""
   12848 	fi
   12849 fi
   12850 if test -z "$PKG_CONFIG"; then
   12851 	as_fn_error $? "pkg-config not found" "$LINENO" 5
   12852 fi
   12853 if test "x$enable_systemd" != xno
   12854 then :
   12855 
   12856 
   12857 
   12858 pkg_failed=no
   12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
   12860 printf %s "checking for libsystemd... " >&6; }
   12861 
   12862 if test -n "$SYSTEMD_CFLAGS"; then
   12863     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
   12864  elif test -n "$PKG_CONFIG"; then
   12865     if test -n "$PKG_CONFIG" && \
   12866     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   12867   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   12868   ac_status=$?
   12869   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12870   test $ac_status = 0; }; then
   12871   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
   12872 		      test "x$?" != "x0" && pkg_failed=yes
   12873 else
   12874   pkg_failed=yes
   12875 fi
   12876  else
   12877     pkg_failed=untried
   12878 fi
   12879 if test -n "$SYSTEMD_LIBS"; then
   12880     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
   12881  elif test -n "$PKG_CONFIG"; then
   12882     if test -n "$PKG_CONFIG" && \
   12883     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   12884   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   12885   ac_status=$?
   12886   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12887   test $ac_status = 0; }; then
   12888   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
   12889 		      test "x$?" != "x0" && pkg_failed=yes
   12890 else
   12891   pkg_failed=yes
   12892 fi
   12893  else
   12894     pkg_failed=untried
   12895 fi
   12896 
   12897 
   12898 
   12899 if test $pkg_failed = yes; then
   12900         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12901 printf "%s\n" "no" >&6; }
   12902 
   12903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   12904         _pkg_short_errors_supported=yes
   12905 else
   12906         _pkg_short_errors_supported=no
   12907 fi
   12908         if test $_pkg_short_errors_supported = yes; then
   12909                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
   12910         else
   12911                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
   12912         fi
   12913         # Put the nasty error message in config.log where it belongs
   12914         echo "$SYSTEMD_PKG_ERRORS" >&5
   12915 
   12916         have_systemd=no
   12917 elif test $pkg_failed = untried; then
   12918         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12919 printf "%s\n" "no" >&6; }
   12920         have_systemd=no
   12921 else
   12922         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
   12923         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
   12924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12925 printf "%s\n" "yes" >&6; }
   12926         have_systemd=yes
   12927 fi
   12928 		if test "x$have_systemd" != "xyes"
   12929 then :
   12930 
   12931 
   12932 pkg_failed=no
   12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
   12934 printf %s "checking for libsystemd-daemon... " >&6; }
   12935 
   12936 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
   12937     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
   12938  elif test -n "$PKG_CONFIG"; then
   12939     if test -n "$PKG_CONFIG" && \
   12940     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   12941   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   12942   ac_status=$?
   12943   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12944   test $ac_status = 0; }; then
   12945   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
   12946 		      test "x$?" != "x0" && pkg_failed=yes
   12947 else
   12948   pkg_failed=yes
   12949 fi
   12950  else
   12951     pkg_failed=untried
   12952 fi
   12953 if test -n "$SYSTEMD_DAEMON_LIBS"; then
   12954     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
   12955  elif test -n "$PKG_CONFIG"; then
   12956     if test -n "$PKG_CONFIG" && \
   12957     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   12958   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   12959   ac_status=$?
   12960   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12961   test $ac_status = 0; }; then
   12962   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
   12963 		      test "x$?" != "x0" && pkg_failed=yes
   12964 else
   12965   pkg_failed=yes
   12966 fi
   12967  else
   12968     pkg_failed=untried
   12969 fi
   12970 
   12971 
   12972 
   12973 if test $pkg_failed = yes; then
   12974         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12975 printf "%s\n" "no" >&6; }
   12976 
   12977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   12978         _pkg_short_errors_supported=yes
   12979 else
   12980         _pkg_short_errors_supported=no
   12981 fi
   12982         if test $_pkg_short_errors_supported = yes; then
   12983                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   12984         else
   12985                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   12986         fi
   12987         # Put the nasty error message in config.log where it belongs
   12988         echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
   12989 
   12990         have_systemd_daemon=no
   12991 elif test $pkg_failed = untried; then
   12992         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12993 printf "%s\n" "no" >&6; }
   12994         have_systemd_daemon=no
   12995 else
   12996         SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
   12997         SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
   12998         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12999 printf "%s\n" "yes" >&6; }
   13000         have_systemd_daemon=yes
   13001 fi
   13002 		if test "x$have_systemd_daemon" = "xyes"
   13003 then :
   13004   have_systemd=yes
   13005 fi
   13006 
   13007 fi
   13008 	case $enable_systemd:$have_systemd in #(
   13009   yes:no) :
   13010     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
   13011   *:yes) :
   13012 
   13013 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
   13014 
   13015 		LIBS="$LIBS $SYSTEMD_LIBS"
   13016 
   13017 	 ;; #(
   13018   *) :
   13019      ;;
   13020 esac
   13021 
   13022 
   13023 fi
   13024 
   13025 # Include systemd.m4 - end
   13026 
   13027 # Check whether --enable-tcp-fastopen was given.
   13028 if test ${enable_tcp_fastopen+y}
   13029 then :
   13030   enableval=$enable_tcp_fastopen;
   13031 fi
   13032 
   13033 case "$enable_tcp_fastopen" in
   13034        yes)
   13035              ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
   13036 #include <netinet/tcp.h>
   13037 
   13038 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   13039 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes
   13040 then :
   13041 
   13042 else case e in #(
   13043   e) as_fn_error $? "TCP Fast Open is not available: please rerun without --enable-tcp-fastopen" "$LINENO" 5 ;;
   13044 esac
   13045 fi
   13046 
   13047 printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h
   13048 
   13049                ;;
   13050        no|*)
   13051                ;;
   13052 esac
   13053 
   13054 
   13055 
   13056 
   13057 
   13058 
   13059 
   13060 
   13061 
   13062 
   13063 
   13064 if test $ac_cv_func_getaddrinfo = no; then
   13065 case " $LIBOBJS " in
   13066   *" fake-rfc2553.$ac_objext "* ) ;;
   13067   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
   13068  ;;
   13069 esac
   13070 
   13071 fi
   13072 
   13073 
   13074 
   13075 
   13076 
   13077 
   13078 
   13079 # big fat warning
   13080 if test "$enable_checking" = "yes"; then
   13081         echo "************************************************"
   13082         echo "* You have activated \"--enable-checking\"       *"
   13083         echo "*                                              *"
   13084         echo "* This will instruct NSD to be stricter        *"
   13085         echo "* when validating its input. This could lead   *"
   13086         echo "* to a reduced service level.                  *"
   13087         echo "*                                              *"
   13088         echo "************************************************"
   13089 fi
   13090 
   13091 ac_config_files="$ac_config_files Makefile $dnstap_config"
   13092 
   13093 
   13094 # Arguments introduced specifically for simdzone.
   13095 # Check whether --enable-westmere was given.
   13096 if test ${enable_westmere+y}
   13097 then :
   13098   enableval=$enable_westmere;
   13099 fi
   13100 
   13101 # Check whether --enable-haswell was given.
   13102 if test ${enable_haswell+y}
   13103 then :
   13104   enableval=$enable_haswell;
   13105 fi
   13106 
   13107 
   13108 
   13109 subdirs="$subdirs simdzone"
   13110 
   13111 cat >confcache <<\_ACEOF
   13112 # This file is a shell script that caches the results of configure
   13113 # tests run on this system so they can be shared between configure
   13114 # scripts and configure runs, see configure's option --config-cache.
   13115 # It is not useful on other systems.  If it contains results you don't
   13116 # want to keep, you may remove or edit it.
   13117 #
   13118 # config.status only pays attention to the cache file if you give it
   13119 # the --recheck option to rerun configure.
   13120 #
   13121 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
   13122 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
   13123 # following values.
   13124 
   13125 _ACEOF
   13126 
   13127 # The following way of writing the cache mishandles newlines in values,
   13128 # but we know of no workaround that is simple, portable, and efficient.
   13129 # So, we kill variables containing newlines.
   13130 # Ultrix sh set writes to stderr and can't be redirected directly,
   13131 # and sets the high bit in the cache file unless we assign to the vars.
   13132 (
   13133   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   13134     eval ac_val=\$$ac_var
   13135     case $ac_val in #(
   13136     *${as_nl}*)
   13137       case $ac_var in #(
   13138       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   13139 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   13140       esac
   13141       case $ac_var in #(
   13142       _ | IFS | as_nl) ;; #(
   13143       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   13144       *) { eval $ac_var=; unset $ac_var;} ;;
   13145       esac ;;
   13146     esac
   13147   done
   13148 
   13149   (set) 2>&1 |
   13150     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   13151     *${as_nl}ac_space=\ *)
   13152       # 'set' does not quote correctly, so add quotes: double-quote
   13153       # substitution turns \\\\ into \\, and sed turns \\ into \.
   13154       sed -n \
   13155 	"s/'/'\\\\''/g;
   13156 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   13157       ;; #(
   13158     *)
   13159       # 'set' quotes correctly as required by POSIX, so do not add quotes.
   13160       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   13161       ;;
   13162     esac |
   13163     sort
   13164 ) |
   13165   sed '
   13166      /^ac_cv_env_/b end
   13167      t clear
   13168      :clear
   13169      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   13170      t end
   13171      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   13172      :end' >>confcache
   13173 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   13174   if test -w "$cache_file"; then
   13175     if test "x$cache_file" != "x/dev/null"; then
   13176       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   13177 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   13178       if test ! -f "$cache_file" || test -h "$cache_file"; then
   13179 	cat confcache >"$cache_file"
   13180       else
   13181         case $cache_file in #(
   13182         */* | ?:*)
   13183 	  mv -f confcache "$cache_file"$$ &&
   13184 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   13185         *)
   13186 	  mv -f confcache "$cache_file" ;;
   13187 	esac
   13188       fi
   13189     fi
   13190   else
   13191     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   13192 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   13193   fi
   13194 fi
   13195 rm -f confcache
   13196 
   13197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   13198 # Let make expand exec_prefix.
   13199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   13200 
   13201 DEFS=-DHAVE_CONFIG_H
   13202 
   13203 ac_libobjs=
   13204 ac_ltlibobjs=
   13205 U=
   13206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   13207   # 1. Remove the extension, and $U if already installed.
   13208   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   13209   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   13210   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   13211   #    will be set to the directory where LIBOBJS objects are built.
   13212   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   13213   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   13214 done
   13215 LIBOBJS=$ac_libobjs
   13216 
   13217 LTLIBOBJS=$ac_ltlibobjs
   13218 
   13219 
   13220 # Check whether --enable-year2038 was given.
   13221 if test ${enable_year2038+y}
   13222 then :
   13223   enableval=$enable_year2038;
   13224 fi
   13225 
   13226 
   13227 : "${CONFIG_STATUS=./config.status}"
   13228 ac_write_fail=0
   13229 ac_clean_files_save=$ac_clean_files
   13230 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   13232 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   13233 as_write_fail=0
   13234 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   13235 #! $SHELL
   13236 # Generated by $as_me.
   13237 # Run this file to recreate the current configuration.
   13238 # Compiler output produced by configure, useful for debugging
   13239 # configure, is in config.log if it exists.
   13240 
   13241 debug=false
   13242 ac_cs_recheck=false
   13243 ac_cs_silent=false
   13244 
   13245 SHELL=\${CONFIG_SHELL-$SHELL}
   13246 export SHELL
   13247 _ASEOF
   13248 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   13249 ## -------------------- ##
   13250 ## M4sh Initialization. ##
   13251 ## -------------------- ##
   13252 
   13253 # Be more Bourne compatible
   13254 DUALCASE=1; export DUALCASE # for MKS sh
   13255 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   13256 then :
   13257   emulate sh
   13258   NULLCMD=:
   13259   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   13260   # is contrary to our usage.  Disable this feature.
   13261   alias -g '${1+"$@"}'='"$@"'
   13262   setopt NO_GLOB_SUBST
   13263 else case e in #(
   13264   e) case `(set -o) 2>/dev/null` in #(
   13265   *posix*) :
   13266     set -o posix ;; #(
   13267   *) :
   13268      ;;
   13269 esac ;;
   13270 esac
   13271 fi
   13272 
   13273 
   13274 
   13275 # Reset variables that may have inherited troublesome values from
   13276 # the environment.
   13277 
   13278 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   13279 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   13280 # side effect of setting IFS to empty, thus disabling word splitting.)
   13281 # Quoting is to prevent editors from complaining about space-tab.
   13282 as_nl='
   13283 '
   13284 export as_nl
   13285 IFS=" ""	$as_nl"
   13286 
   13287 PS1='$ '
   13288 PS2='> '
   13289 PS4='+ '
   13290 
   13291 # Ensure predictable behavior from utilities with locale-dependent output.
   13292 LC_ALL=C
   13293 export LC_ALL
   13294 LANGUAGE=C
   13295 export LANGUAGE
   13296 
   13297 # We cannot yet rely on "unset" to work, but we need these variables
   13298 # to be unset--not just set to an empty or harmless value--now, to
   13299 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   13300 # also avoids known problems related to "unset" and subshell syntax
   13301 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   13302 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   13303 do eval test \${$as_var+y} \
   13304   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   13305 done
   13306 
   13307 # Ensure that fds 0, 1, and 2 are open.
   13308 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   13309 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   13310 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   13311 
   13312 # The user is always right.
   13313 if ${PATH_SEPARATOR+false} :; then
   13314   PATH_SEPARATOR=:
   13315   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   13316     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   13317       PATH_SEPARATOR=';'
   13318   }
   13319 fi
   13320 
   13321 
   13322 # Find who we are.  Look in the path if we contain no directory separator.
   13323 as_myself=
   13324 case $0 in #((
   13325   *[\\/]* ) as_myself=$0 ;;
   13326   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13327 for as_dir in $PATH
   13328 do
   13329   IFS=$as_save_IFS
   13330   case $as_dir in #(((
   13331     '') as_dir=./ ;;
   13332     */) ;;
   13333     *) as_dir=$as_dir/ ;;
   13334   esac
   13335     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   13336   done
   13337 IFS=$as_save_IFS
   13338 
   13339      ;;
   13340 esac
   13341 # We did not find ourselves, most probably we were run as 'sh COMMAND'
   13342 # in which case we are not to be found in the path.
   13343 if test "x$as_myself" = x; then
   13344   as_myself=$0
   13345 fi
   13346 if test ! -f "$as_myself"; then
   13347   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   13348   exit 1
   13349 fi
   13350 
   13351 
   13352 
   13353 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   13354 # ----------------------------------------
   13355 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   13356 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   13357 # script with STATUS, using 1 if that was 0.
   13358 as_fn_error ()
   13359 {
   13360   as_status=$1; test $as_status -eq 0 && as_status=1
   13361   if test "$4"; then
   13362     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   13363     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   13364   fi
   13365   printf "%s\n" "$as_me: error: $2" >&2
   13366   as_fn_exit $as_status
   13367 } # as_fn_error
   13368 
   13369 
   13370 # as_fn_set_status STATUS
   13371 # -----------------------
   13372 # Set $? to STATUS, without forking.
   13373 as_fn_set_status ()
   13374 {
   13375   return $1
   13376 } # as_fn_set_status
   13377 
   13378 # as_fn_exit STATUS
   13379 # -----------------
   13380 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   13381 as_fn_exit ()
   13382 {
   13383   set +e
   13384   as_fn_set_status $1
   13385   exit $1
   13386 } # as_fn_exit
   13387 
   13388 # as_fn_unset VAR
   13389 # ---------------
   13390 # Portably unset VAR.
   13391 as_fn_unset ()
   13392 {
   13393   { eval $1=; unset $1;}
   13394 }
   13395 as_unset=as_fn_unset
   13396 
   13397 # as_fn_append VAR VALUE
   13398 # ----------------------
   13399 # Append the text in VALUE to the end of the definition contained in VAR. Take
   13400 # advantage of any shell optimizations that allow amortized linear growth over
   13401 # repeated appends, instead of the typical quadratic growth present in naive
   13402 # implementations.
   13403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   13404 then :
   13405   eval 'as_fn_append ()
   13406   {
   13407     eval $1+=\$2
   13408   }'
   13409 else case e in #(
   13410   e) as_fn_append ()
   13411   {
   13412     eval $1=\$$1\$2
   13413   } ;;
   13414 esac
   13415 fi # as_fn_append
   13416 
   13417 # as_fn_arith ARG...
   13418 # ------------------
   13419 # Perform arithmetic evaluation on the ARGs, and store the result in the
   13420 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   13421 # must be portable across $(()) and expr.
   13422 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   13423 then :
   13424   eval 'as_fn_arith ()
   13425   {
   13426     as_val=$(( $* ))
   13427   }'
   13428 else case e in #(
   13429   e) as_fn_arith ()
   13430   {
   13431     as_val=`expr "$@" || test $? -eq 1`
   13432   } ;;
   13433 esac
   13434 fi # as_fn_arith
   13435 
   13436 
   13437 if expr a : '\(a\)' >/dev/null 2>&1 &&
   13438    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   13439   as_expr=expr
   13440 else
   13441   as_expr=false
   13442 fi
   13443 
   13444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   13445   as_basename=basename
   13446 else
   13447   as_basename=false
   13448 fi
   13449 
   13450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   13451   as_dirname=dirname
   13452 else
   13453   as_dirname=false
   13454 fi
   13455 
   13456 as_me=`$as_basename -- "$0" ||
   13457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   13458 	 X"$0" : 'X\(//\)$' \| \
   13459 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   13460 printf "%s\n" X/"$0" |
   13461     sed '/^.*\/\([^/][^/]*\)\/*$/{
   13462 	    s//\1/
   13463 	    q
   13464 	  }
   13465 	  /^X\/\(\/\/\)$/{
   13466 	    s//\1/
   13467 	    q
   13468 	  }
   13469 	  /^X\/\(\/\).*/{
   13470 	    s//\1/
   13471 	    q
   13472 	  }
   13473 	  s/.*/./; q'`
   13474 
   13475 # Avoid depending upon Character Ranges.
   13476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   13477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   13478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   13479 as_cr_digits='0123456789'
   13480 as_cr_alnum=$as_cr_Letters$as_cr_digits
   13481 
   13482 
   13483 # Determine whether it's possible to make 'echo' print without a newline.
   13484 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   13485 # for compatibility with existing Makefiles.
   13486 ECHO_C= ECHO_N= ECHO_T=
   13487 case `echo -n x` in #(((((
   13488 -n*)
   13489   case `echo 'xy\c'` in
   13490   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   13491   xy)  ECHO_C='\c';;
   13492   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   13493        ECHO_T='	';;
   13494   esac;;
   13495 *)
   13496   ECHO_N='-n';;
   13497 esac
   13498 
   13499 # For backward compatibility with old third-party macros, we provide
   13500 # the shell variables $as_echo and $as_echo_n.  New code should use
   13501 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   13502 as_echo='printf %s\n'
   13503 as_echo_n='printf %s'
   13504 
   13505 rm -f conf$$ conf$$.exe conf$$.file
   13506 if test -d conf$$.dir; then
   13507   rm -f conf$$.dir/conf$$.file
   13508 else
   13509   rm -f conf$$.dir
   13510   mkdir conf$$.dir 2>/dev/null
   13511 fi
   13512 if (echo >conf$$.file) 2>/dev/null; then
   13513   if ln -s conf$$.file conf$$ 2>/dev/null; then
   13514     as_ln_s='ln -s'
   13515     # ... but there are two gotchas:
   13516     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
   13517     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
   13518     # In both cases, we have to default to 'cp -pR'.
   13519     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   13520       as_ln_s='cp -pR'
   13521   elif ln conf$$.file conf$$ 2>/dev/null; then
   13522     as_ln_s=ln
   13523   else
   13524     as_ln_s='cp -pR'
   13525   fi
   13526 else
   13527   as_ln_s='cp -pR'
   13528 fi
   13529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   13530 rmdir conf$$.dir 2>/dev/null
   13531 
   13532 
   13533 # as_fn_mkdir_p
   13534 # -------------
   13535 # Create "$as_dir" as a directory, including parents if necessary.
   13536 as_fn_mkdir_p ()
   13537 {
   13538 
   13539   case $as_dir in #(
   13540   -*) as_dir=./$as_dir;;
   13541   esac
   13542   test -d "$as_dir" || eval $as_mkdir_p || {
   13543     as_dirs=
   13544     while :; do
   13545       case $as_dir in #(
   13546       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   13547       *) as_qdir=$as_dir;;
   13548       esac
   13549       as_dirs="'$as_qdir' $as_dirs"
   13550       as_dir=`$as_dirname -- "$as_dir" ||
   13551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13552 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   13553 	 X"$as_dir" : 'X\(//\)$' \| \
   13554 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   13555 printf "%s\n" X"$as_dir" |
   13556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13557 	    s//\1/
   13558 	    q
   13559 	  }
   13560 	  /^X\(\/\/\)[^/].*/{
   13561 	    s//\1/
   13562 	    q
   13563 	  }
   13564 	  /^X\(\/\/\)$/{
   13565 	    s//\1/
   13566 	    q
   13567 	  }
   13568 	  /^X\(\/\).*/{
   13569 	    s//\1/
   13570 	    q
   13571 	  }
   13572 	  s/.*/./; q'`
   13573       test -d "$as_dir" && break
   13574     done
   13575     test -z "$as_dirs" || eval "mkdir $as_dirs"
   13576   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   13577 
   13578 
   13579 } # as_fn_mkdir_p
   13580 if mkdir -p . 2>/dev/null; then
   13581   as_mkdir_p='mkdir -p "$as_dir"'
   13582 else
   13583   test -d ./-p && rmdir ./-p
   13584   as_mkdir_p=false
   13585 fi
   13586 
   13587 
   13588 # as_fn_executable_p FILE
   13589 # -----------------------
   13590 # Test if FILE is an executable regular file.
   13591 as_fn_executable_p ()
   13592 {
   13593   test -f "$1" && test -x "$1"
   13594 } # as_fn_executable_p
   13595 as_test_x='test -x'
   13596 as_executable_p=as_fn_executable_p
   13597 
   13598 # Sed expression to map a string onto a valid CPP name.
   13599 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
   13600 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
   13601 
   13602 # Sed expression to map a string onto a valid variable name.
   13603 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
   13604 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
   13605 
   13606 
   13607 exec 6>&1
   13608 ## ----------------------------------- ##
   13609 ## Main body of $CONFIG_STATUS script. ##
   13610 ## ----------------------------------- ##
   13611 _ASEOF
   13612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   13613 
   13614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13615 # Save the log message, to keep $0 and so on meaningful, and to
   13616 # report actual input values of CONFIG_FILES etc. instead of their
   13617 # values after options handling.
   13618 ac_log="
   13619 This file was extended by NSD $as_me 4.14.0, which was
   13620 generated by GNU Autoconf 2.72.  Invocation command line was
   13621 
   13622   CONFIG_FILES    = $CONFIG_FILES
   13623   CONFIG_HEADERS  = $CONFIG_HEADERS
   13624   CONFIG_LINKS    = $CONFIG_LINKS
   13625   CONFIG_COMMANDS = $CONFIG_COMMANDS
   13626   $ $0 $@
   13627 
   13628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   13629 "
   13630 
   13631 _ACEOF
   13632 
   13633 case $ac_config_files in *"
   13634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   13635 esac
   13636 
   13637 case $ac_config_headers in *"
   13638 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   13639 esac
   13640 
   13641 
   13642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13643 # Files that config.status was made for.
   13644 config_files="$ac_config_files"
   13645 config_headers="$ac_config_headers"
   13646 
   13647 _ACEOF
   13648 
   13649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13650 ac_cs_usage="\
   13651 '$as_me' instantiates files and other configuration actions
   13652 from templates according to the current configuration.  Unless the files
   13653 and actions are specified as TAGs, all are instantiated by default.
   13654 
   13655 Usage: $0 [OPTION]... [TAG]...
   13656 
   13657   -h, --help       print this help, then exit
   13658   -V, --version    print version number and configuration settings, then exit
   13659       --config     print configuration, then exit
   13660   -q, --quiet, --silent
   13661                    do not print progress messages
   13662   -d, --debug      don't remove temporary files
   13663       --recheck    update $as_me by reconfiguring in the same conditions
   13664       --file=FILE[:TEMPLATE]
   13665                    instantiate the configuration file FILE
   13666       --header=FILE[:TEMPLATE]
   13667                    instantiate the configuration header FILE
   13668 
   13669 Configuration files:
   13670 $config_files
   13671 
   13672 Configuration headers:
   13673 $config_headers
   13674 
   13675 Report bugs to <https://github.com/NLnetLabs/nsd/issues or nsd-bugs (at] nlnetlabs.nl>."
   13676 
   13677 _ACEOF
   13678 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   13679 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   13680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13681 ac_cs_config='$ac_cs_config_escaped'
   13682 ac_cs_version="\\
   13683 NSD config.status 4.14.0
   13684 configured by $0, generated by GNU Autoconf 2.72,
   13685   with options \\"\$ac_cs_config\\"
   13686 
   13687 Copyright (C) 2023 Free Software Foundation, Inc.
   13688 This config.status script is free software; the Free Software Foundation
   13689 gives unlimited permission to copy, distribute and modify it."
   13690 
   13691 ac_pwd='$ac_pwd'
   13692 srcdir='$srcdir'
   13693 INSTALL='$INSTALL'
   13694 AWK='$AWK'
   13695 test -n "\$AWK" || AWK=awk
   13696 _ACEOF
   13697 
   13698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13699 # The default lists apply if the user does not specify any file.
   13700 ac_need_defaults=:
   13701 while test $# != 0
   13702 do
   13703   case $1 in
   13704   --*=?*)
   13705     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   13706     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   13707     ac_shift=:
   13708     ;;
   13709   --*=)
   13710     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   13711     ac_optarg=
   13712     ac_shift=:
   13713     ;;
   13714   *)
   13715     ac_option=$1
   13716     ac_optarg=$2
   13717     ac_shift=shift
   13718     ;;
   13719   esac
   13720 
   13721   case $ac_option in
   13722   # Handling of the options.
   13723   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   13724     ac_cs_recheck=: ;;
   13725   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   13726     printf "%s\n" "$ac_cs_version"; exit ;;
   13727   --config | --confi | --conf | --con | --co | --c )
   13728     printf "%s\n" "$ac_cs_config"; exit ;;
   13729   --debug | --debu | --deb | --de | --d | -d )
   13730     debug=: ;;
   13731   --file | --fil | --fi | --f )
   13732     $ac_shift
   13733     case $ac_optarg in
   13734     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   13735     '') as_fn_error $? "missing file argument" ;;
   13736     esac
   13737     as_fn_append CONFIG_FILES " '$ac_optarg'"
   13738     ac_need_defaults=false;;
   13739   --header | --heade | --head | --hea )
   13740     $ac_shift
   13741     case $ac_optarg in
   13742     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   13743     esac
   13744     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   13745     ac_need_defaults=false;;
   13746   --he | --h)
   13747     # Conflict between --help and --header
   13748     as_fn_error $? "ambiguous option: '$1'
   13749 Try '$0 --help' for more information.";;
   13750   --help | --hel | -h )
   13751     printf "%s\n" "$ac_cs_usage"; exit ;;
   13752   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   13753   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   13754     ac_cs_silent=: ;;
   13755 
   13756   # This is an error.
   13757   -*) as_fn_error $? "unrecognized option: '$1'
   13758 Try '$0 --help' for more information." ;;
   13759 
   13760   *) as_fn_append ac_config_targets " $1"
   13761      ac_need_defaults=false ;;
   13762 
   13763   esac
   13764   shift
   13765 done
   13766 
   13767 ac_configure_extra_args=
   13768 
   13769 if $ac_cs_silent; then
   13770   exec 6>/dev/null
   13771   ac_configure_extra_args="$ac_configure_extra_args --silent"
   13772 fi
   13773 
   13774 _ACEOF
   13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13776 if \$ac_cs_recheck; then
   13777   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   13778   shift
   13779   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   13780   CONFIG_SHELL='$SHELL'
   13781   export CONFIG_SHELL
   13782   exec "\$@"
   13783 fi
   13784 
   13785 _ACEOF
   13786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13787 exec 5>>config.log
   13788 {
   13789   echo
   13790   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   13791 ## Running $as_me. ##
   13792 _ASBOX
   13793   printf "%s\n" "$ac_log"
   13794 } >&5
   13795 
   13796 _ACEOF
   13797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13798 _ACEOF
   13799 
   13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13801 
   13802 # Handling of arguments.
   13803 for ac_config_target in $ac_config_targets
   13804 do
   13805   case $ac_config_target in
   13806     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   13807     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   13808     "$dnstap_config") CONFIG_FILES="$CONFIG_FILES $dnstap_config" ;;
   13809 
   13810   *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
   13811   esac
   13812 done
   13813 
   13814 
   13815 # If the user did not use the arguments to specify the items to instantiate,
   13816 # then the envvar interface is used.  Set only those that are not.
   13817 # We use the long form for the default assignment because of an extremely
   13818 # bizarre bug on SunOS 4.1.3.
   13819 if $ac_need_defaults; then
   13820   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   13821   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   13822 fi
   13823 
   13824 # Have a temporary directory for convenience.  Make it in the build tree
   13825 # simply because there is no reason against having it here, and in addition,
   13826 # creating and moving files from /tmp can sometimes cause problems.
   13827 # Hook for its removal unless debugging.
   13828 # Note that there is a small window in which the directory will not be cleaned:
   13829 # after its creation but before its name has been assigned to '$tmp'.
   13830 $debug ||
   13831 {
   13832   tmp= ac_tmp=
   13833   trap 'exit_status=$?
   13834   : "${ac_tmp:=$tmp}"
   13835   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   13836 ' 0
   13837   trap 'as_fn_exit 1' 1 2 13 15
   13838 }
   13839 # Create a (secure) tmp directory for tmp files.
   13840 
   13841 {
   13842   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   13843   test -d "$tmp"
   13844 }  ||
   13845 {
   13846   tmp=./conf$$-$RANDOM
   13847   (umask 077 && mkdir "$tmp")
   13848 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   13849 ac_tmp=$tmp
   13850 
   13851 # Set up the scripts for CONFIG_FILES section.
   13852 # No need to generate them if there are no CONFIG_FILES.
   13853 # This happens for instance with './config.status config.h'.
   13854 if test -n "$CONFIG_FILES"; then
   13855 
   13856 
   13857 ac_cr=`echo X | tr X '\015'`
   13858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   13859 # But we know of no other shell where ac_cr would be empty at this
   13860 # point, so we can use a bashism as a fallback.
   13861 if test "x$ac_cr" = x; then
   13862   eval ac_cr=\$\'\\r\'
   13863 fi
   13864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   13865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   13866   ac_cs_awk_cr='\\r'
   13867 else
   13868   ac_cs_awk_cr=$ac_cr
   13869 fi
   13870 
   13871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   13872 _ACEOF
   13873 
   13874 
   13875 {
   13876   echo "cat >conf$$subs.awk <<_ACEOF" &&
   13877   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   13878   echo "_ACEOF"
   13879 } >conf$$subs.sh ||
   13880   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   13882 ac_delim='%!_!# '
   13883 for ac_last_try in false false false false false :; do
   13884   . ./conf$$subs.sh ||
   13885     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13886 
   13887   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   13888   if test $ac_delim_n = $ac_delim_num; then
   13889     break
   13890   elif $ac_last_try; then
   13891     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13892   else
   13893     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13894   fi
   13895 done
   13896 rm -f conf$$subs.sh
   13897 
   13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   13900 _ACEOF
   13901 sed -n '
   13902 h
   13903 s/^/S["/; s/!.*/"]=/
   13904 p
   13905 g
   13906 s/^[^!]*!//
   13907 :repl
   13908 t repl
   13909 s/'"$ac_delim"'$//
   13910 t delim
   13911 :nl
   13912 h
   13913 s/\(.\{148\}\)..*/\1/
   13914 t more1
   13915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   13916 p
   13917 n
   13918 b repl
   13919 :more1
   13920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13921 p
   13922 g
   13923 s/.\{148\}//
   13924 t nl
   13925 :delim
   13926 h
   13927 s/\(.\{148\}\)..*/\1/
   13928 t more2
   13929 s/["\\]/\\&/g; s/^/"/; s/$/"/
   13930 p
   13931 b
   13932 :more2
   13933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13934 p
   13935 g
   13936 s/.\{148\}//
   13937 t delim
   13938 ' <conf$$subs.awk | sed '
   13939 /^[^""]/{
   13940   N
   13941   s/\n//
   13942 }
   13943 ' >>$CONFIG_STATUS || ac_write_fail=1
   13944 rm -f conf$$subs.awk
   13945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13946 _ACAWK
   13947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   13948   for (key in S) S_is_set[key] = 1
   13949   FS = ""
   13950 
   13951 }
   13952 {
   13953   line = $ 0
   13954   nfields = split(line, field, "@")
   13955   substed = 0
   13956   len = length(field[1])
   13957   for (i = 2; i < nfields; i++) {
   13958     key = field[i]
   13959     keylen = length(key)
   13960     if (S_is_set[key]) {
   13961       value = S[key]
   13962       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   13963       len += length(value) + length(field[++i])
   13964       substed = 1
   13965     } else
   13966       len += 1 + keylen
   13967   }
   13968 
   13969   print line
   13970 }
   13971 
   13972 _ACAWK
   13973 _ACEOF
   13974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   13976   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   13977 else
   13978   cat
   13979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   13980   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   13981 _ACEOF
   13982 
   13983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   13984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   13985 # trailing colons and then remove the whole line if VPATH becomes empty
   13986 # (actually we leave an empty line to preserve line numbers).
   13987 if test "x$srcdir" = x.; then
   13988   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   13989 h
   13990 s///
   13991 s/^/:/
   13992 s/[	 ]*$/:/
   13993 s/:\$(srcdir):/:/g
   13994 s/:\${srcdir}:/:/g
   13995 s/:@srcdir@:/:/g
   13996 s/^:*//
   13997 s/:*$//
   13998 x
   13999 s/\(=[	 ]*\).*/\1/
   14000 G
   14001 s/\n//
   14002 s/^[^=]*=[	 ]*$//
   14003 }'
   14004 fi
   14005 
   14006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14007 fi # test -n "$CONFIG_FILES"
   14008 
   14009 # Set up the scripts for CONFIG_HEADERS section.
   14010 # No need to generate them if there are no CONFIG_HEADERS.
   14011 # This happens for instance with './config.status Makefile'.
   14012 if test -n "$CONFIG_HEADERS"; then
   14013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   14014 BEGIN {
   14015 _ACEOF
   14016 
   14017 # Transform confdefs.h into an awk script 'defines.awk', embedded as
   14018 # here-document in config.status, that substitutes the proper values into
   14019 # config.h.in to produce config.h.
   14020 
   14021 # Create a delimiter string that does not exist in confdefs.h, to ease
   14022 # handling of long lines.
   14023 ac_delim='%!_!# '
   14024 for ac_last_try in false false :; do
   14025   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   14026   if test -z "$ac_tt"; then
   14027     break
   14028   elif $ac_last_try; then
   14029     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   14030   else
   14031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   14032   fi
   14033 done
   14034 
   14035 # For the awk script, D is an array of macro values keyed by name,
   14036 # likewise P contains macro parameters if any.  Preserve backslash
   14037 # newline sequences.
   14038 
   14039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   14040 sed -n '
   14041 s/.\{148\}/&'"$ac_delim"'/g
   14042 t rset
   14043 :rset
   14044 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   14045 t def
   14046 d
   14047 :def
   14048 s/\\$//
   14049 t bsnl
   14050 s/["\\]/\\&/g
   14051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   14052 D["\1"]=" \3"/p
   14053 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   14054 d
   14055 :bsnl
   14056 s/["\\]/\\&/g
   14057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   14058 D["\1"]=" \3\\\\\\n"\\/p
   14059 t cont
   14060 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   14061 t cont
   14062 d
   14063 :cont
   14064 n
   14065 s/.\{148\}/&'"$ac_delim"'/g
   14066 t clear
   14067 :clear
   14068 s/\\$//
   14069 t bsnlc
   14070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   14071 d
   14072 :bsnlc
   14073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   14074 b cont
   14075 ' <confdefs.h | sed '
   14076 s/'"$ac_delim"'/"\\\
   14077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   14078 
   14079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14080   for (key in D) D_is_set[key] = 1
   14081   FS = ""
   14082 }
   14083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   14084   line = \$ 0
   14085   split(line, arg, " ")
   14086   if (arg[1] == "#") {
   14087     defundef = arg[2]
   14088     mac1 = arg[3]
   14089   } else {
   14090     defundef = substr(arg[1], 2)
   14091     mac1 = arg[2]
   14092   }
   14093   split(mac1, mac2, "(") #)
   14094   macro = mac2[1]
   14095   prefix = substr(line, 1, index(line, defundef) - 1)
   14096   if (D_is_set[macro]) {
   14097     # Preserve the white space surrounding the "#".
   14098     print prefix "define", macro P[macro] D[macro]
   14099     next
   14100   } else {
   14101     # Replace #undef with comments.  This is necessary, for example,
   14102     # in the case of _POSIX_SOURCE, which is predefined and required
   14103     # on some systems where configure will not decide to define it.
   14104     if (defundef == "undef") {
   14105       print "/*", prefix defundef, macro, "*/"
   14106       next
   14107     }
   14108   }
   14109 }
   14110 { print }
   14111 _ACAWK
   14112 _ACEOF
   14113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14114   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   14115 fi # test -n "$CONFIG_HEADERS"
   14116 
   14117 
   14118 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   14119 shift
   14120 for ac_tag
   14121 do
   14122   case $ac_tag in
   14123   :[FHLC]) ac_mode=$ac_tag; continue;;
   14124   esac
   14125   case $ac_mode$ac_tag in
   14126   :[FHL]*:*);;
   14127   :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
   14128   :[FH]-) ac_tag=-:-;;
   14129   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   14130   esac
   14131   ac_save_IFS=$IFS
   14132   IFS=:
   14133   set x $ac_tag
   14134   IFS=$ac_save_IFS
   14135   shift
   14136   ac_file=$1
   14137   shift
   14138 
   14139   case $ac_mode in
   14140   :L) ac_source=$1;;
   14141   :[FH])
   14142     ac_file_inputs=
   14143     for ac_f
   14144     do
   14145       case $ac_f in
   14146       -) ac_f="$ac_tmp/stdin";;
   14147       *) # Look for the file first in the build tree, then in the source tree
   14148 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   14149 	 # because $ac_f cannot contain ':'.
   14150 	 test -f "$ac_f" ||
   14151 	   case $ac_f in
   14152 	   [\\/$]*) false;;
   14153 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   14154 	   esac ||
   14155 	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
   14156       esac
   14157       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   14158       as_fn_append ac_file_inputs " '$ac_f'"
   14159     done
   14160 
   14161     # Let's still pretend it is 'configure' which instantiates (i.e., don't
   14162     # use $as_me), people would be surprised to read:
   14163     #    /* config.h.  Generated by config.status.  */
   14164     configure_input='Generated from '`
   14165 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   14166 	`' by configure.'
   14167     if test x"$ac_file" != x-; then
   14168       configure_input="$ac_file.  $configure_input"
   14169       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   14170 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   14171     fi
   14172     # Neutralize special characters interpreted by sed in replacement strings.
   14173     case $configure_input in #(
   14174     *\&* | *\|* | *\\* )
   14175        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   14176        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   14177     *) ac_sed_conf_input=$configure_input;;
   14178     esac
   14179 
   14180     case $ac_tag in
   14181     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   14182       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   14183     esac
   14184     ;;
   14185   esac
   14186 
   14187   ac_dir=`$as_dirname -- "$ac_file" ||
   14188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14189 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   14190 	 X"$ac_file" : 'X\(//\)$' \| \
   14191 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   14192 printf "%s\n" X"$ac_file" |
   14193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   14194 	    s//\1/
   14195 	    q
   14196 	  }
   14197 	  /^X\(\/\/\)[^/].*/{
   14198 	    s//\1/
   14199 	    q
   14200 	  }
   14201 	  /^X\(\/\/\)$/{
   14202 	    s//\1/
   14203 	    q
   14204 	  }
   14205 	  /^X\(\/\).*/{
   14206 	    s//\1/
   14207 	    q
   14208 	  }
   14209 	  s/.*/./; q'`
   14210   as_dir="$ac_dir"; as_fn_mkdir_p
   14211   ac_builddir=.
   14212 
   14213 case "$ac_dir" in
   14214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14215 *)
   14216   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   14217   # A ".." for each directory in $ac_dir_suffix.
   14218   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   14219   case $ac_top_builddir_sub in
   14220   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14221   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   14222   esac ;;
   14223 esac
   14224 ac_abs_top_builddir=$ac_pwd
   14225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   14226 # for backward compatibility:
   14227 ac_top_builddir=$ac_top_build_prefix
   14228 
   14229 case $srcdir in
   14230   .)  # We are building in place.
   14231     ac_srcdir=.
   14232     ac_top_srcdir=$ac_top_builddir_sub
   14233     ac_abs_top_srcdir=$ac_pwd ;;
   14234   [\\/]* | ?:[\\/]* )  # Absolute name.
   14235     ac_srcdir=$srcdir$ac_dir_suffix;
   14236     ac_top_srcdir=$srcdir
   14237     ac_abs_top_srcdir=$srcdir ;;
   14238   *) # Relative name.
   14239     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   14240     ac_top_srcdir=$ac_top_build_prefix$srcdir
   14241     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   14242 esac
   14243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   14244 
   14245 
   14246   case $ac_mode in
   14247   :F)
   14248   #
   14249   # CONFIG_FILE
   14250   #
   14251 
   14252   case $INSTALL in
   14253   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   14254   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   14255   esac
   14256 _ACEOF
   14257 
   14258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14259 # If the template does not know about datarootdir, expand it.
   14260 # FIXME: This hack should be removed a few years after 2.60.
   14261 ac_datarootdir_hack=; ac_datarootdir_seen=
   14262 ac_sed_dataroot='
   14263 /datarootdir/ {
   14264   p
   14265   q
   14266 }
   14267 /@datadir@/p
   14268 /@docdir@/p
   14269 /@infodir@/p
   14270 /@localedir@/p
   14271 /@mandir@/p'
   14272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   14273 *datarootdir*) ac_datarootdir_seen=yes;;
   14274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   14275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   14276 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   14277 _ACEOF
   14278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14279   ac_datarootdir_hack='
   14280   s&@datadir@&$datadir&g
   14281   s&@docdir@&$docdir&g
   14282   s&@infodir@&$infodir&g
   14283   s&@localedir@&$localedir&g
   14284   s&@mandir@&$mandir&g
   14285   s&\\\${datarootdir}&$datarootdir&g' ;;
   14286 esac
   14287 _ACEOF
   14288 
   14289 # Neutralize VPATH when '$srcdir' = '.'.
   14290 # Shell code in configure.ac might set extrasub.
   14291 # FIXME: do we really want to maintain this feature?
   14292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14293 ac_sed_extra="$ac_vpsub
   14294 $extrasub
   14295 _ACEOF
   14296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14297 :t
   14298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   14299 s|@configure_input@|$ac_sed_conf_input|;t t
   14300 s&@top_builddir@&$ac_top_builddir_sub&;t t
   14301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   14302 s&@srcdir@&$ac_srcdir&;t t
   14303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   14304 s&@top_srcdir@&$ac_top_srcdir&;t t
   14305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   14306 s&@builddir@&$ac_builddir&;t t
   14307 s&@abs_builddir@&$ac_abs_builddir&;t t
   14308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   14309 s&@INSTALL@&$ac_INSTALL&;t t
   14310 $ac_datarootdir_hack
   14311 "
   14312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   14313   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   14314 
   14315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   14316   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   14317   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   14318       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   14319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   14320 which seems to be undefined.  Please make sure it is defined" >&5
   14321 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   14322 which seems to be undefined.  Please make sure it is defined" >&2;}
   14323 
   14324   rm -f "$ac_tmp/stdin"
   14325   case $ac_file in
   14326   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   14327   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   14328   esac \
   14329   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   14330  ;;
   14331   :H)
   14332   #
   14333   # CONFIG_HEADER
   14334   #
   14335   if test x"$ac_file" != x-; then
   14336     {
   14337       printf "%s\n" "/* $configure_input  */" >&1 \
   14338       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   14339     } >"$ac_tmp/config.h" \
   14340       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   14341     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   14342       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   14343 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   14344     else
   14345       rm -f "$ac_file"
   14346       mv "$ac_tmp/config.h" "$ac_file" \
   14347 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   14348     fi
   14349   else
   14350     printf "%s\n" "/* $configure_input  */" >&1 \
   14351       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   14352       || as_fn_error $? "could not create -" "$LINENO" 5
   14353   fi
   14354  ;;
   14355 
   14356 
   14357   esac
   14358 
   14359 done # for ac_tag
   14360 
   14361 
   14362 as_fn_exit 0
   14363 _ACEOF
   14364 ac_clean_files=$ac_clean_files_save
   14365 
   14366 test $ac_write_fail = 0 ||
   14367   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   14368 
   14369 
   14370 # configure is writing to config.log, and then calls config.status.
   14371 # config.status does its own redirection, appending to config.log.
   14372 # Unfortunately, on DOS this fails, as config.log is still kept open
   14373 # by configure, so config.status won't be able to write to it; its
   14374 # output is simply discarded.  So we exec the FD to /dev/null,
   14375 # effectively closing config.log, so it can be properly (re)opened and
   14376 # appended to by config.status.  When coming back to configure, we
   14377 # need to make the FD available again.
   14378 if test "$no_create" != yes; then
   14379   ac_cs_success=:
   14380   ac_config_status_args=
   14381   test "$silent" = yes &&
   14382     ac_config_status_args="$ac_config_status_args --quiet"
   14383   exec 5>/dev/null
   14384   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   14385   exec 5>>config.log
   14386   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   14387   # would make configure fail if this is the last instruction.
   14388   $ac_cs_success || as_fn_exit 1
   14389 fi
   14390 
   14391 #
   14392 # CONFIG_SUBDIRS section.
   14393 #
   14394 if test "$no_recursion" != yes; then
   14395 
   14396   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   14397   # so they do not pile up.
   14398   ac_sub_configure_args=
   14399   ac_prev=
   14400   eval "set x $ac_configure_args"
   14401   shift
   14402   for ac_arg
   14403   do
   14404     if test -n "$ac_prev"; then
   14405       ac_prev=
   14406       continue
   14407     fi
   14408     case $ac_arg in
   14409     -cache-file | --cache-file | --cache-fil | --cache-fi \
   14410     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   14411       ac_prev=cache_file ;;
   14412     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   14413     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   14414     | --c=*)
   14415       ;;
   14416     --config-cache | -C)
   14417       ;;
   14418     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   14419       ac_prev=srcdir ;;
   14420     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   14421       ;;
   14422     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   14423       ac_prev=prefix ;;
   14424     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   14425       ;;
   14426     --disable-option-checking)
   14427       ;;
   14428     *)
   14429       case $ac_arg in
   14430       *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   14431       esac
   14432       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   14433     esac
   14434   done
   14435 
   14436   # Always prepend --prefix to ensure using the same prefix
   14437   # in subdir configurations.
   14438   ac_arg="--prefix=$prefix"
   14439   case $ac_arg in
   14440   *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   14441   esac
   14442   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   14443 
   14444   # Pass --silent
   14445   if test "$silent" = yes; then
   14446     ac_sub_configure_args="--silent $ac_sub_configure_args"
   14447   fi
   14448 
   14449   # Always prepend --disable-option-checking to silence warnings, since
   14450   # different subdirs can have different --enable and --with options.
   14451   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   14452 
   14453   ac_popdir=`pwd`
   14454   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   14455 
   14456     # Do not complain, so a configure script can configure whichever
   14457     # parts of a large source tree are present.
   14458     test -d "$srcdir/$ac_dir" || continue
   14459 
   14460     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   14461     printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   14462     printf "%s\n" "$ac_msg" >&6
   14463     as_dir="$ac_dir"; as_fn_mkdir_p
   14464     ac_builddir=.
   14465 
   14466 case "$ac_dir" in
   14467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14468 *)
   14469   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   14470   # A ".." for each directory in $ac_dir_suffix.
   14471   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   14472   case $ac_top_builddir_sub in
   14473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   14474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   14475   esac ;;
   14476 esac
   14477 ac_abs_top_builddir=$ac_pwd
   14478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   14479 # for backward compatibility:
   14480 ac_top_builddir=$ac_top_build_prefix
   14481 
   14482 case $srcdir in
   14483   .)  # We are building in place.
   14484     ac_srcdir=.
   14485     ac_top_srcdir=$ac_top_builddir_sub
   14486     ac_abs_top_srcdir=$ac_pwd ;;
   14487   [\\/]* | ?:[\\/]* )  # Absolute name.
   14488     ac_srcdir=$srcdir$ac_dir_suffix;
   14489     ac_top_srcdir=$srcdir
   14490     ac_abs_top_srcdir=$srcdir ;;
   14491   *) # Relative name.
   14492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   14493     ac_top_srcdir=$ac_top_build_prefix$srcdir
   14494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   14495 esac
   14496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   14497 
   14498 
   14499     cd "$ac_dir"
   14500 
   14501     # Check for configure.gnu first; this name is used for a wrapper for
   14502     # Metaconfig's "Configure" on case-insensitive file systems.
   14503     if test -f "$ac_srcdir/configure.gnu"; then
   14504       ac_sub_configure=$ac_srcdir/configure.gnu
   14505     elif test -f "$ac_srcdir/configure"; then
   14506       ac_sub_configure=$ac_srcdir/configure
   14507     else
   14508       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   14509 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   14510       ac_sub_configure=
   14511     fi
   14512 
   14513     # The recursion is here.
   14514     if test -n "$ac_sub_configure"; then
   14515       # Make the cache file name correct relative to the subdirectory.
   14516       case $cache_file in
   14517       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   14518       *) # Relative name.
   14519 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   14520       esac
   14521 
   14522       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   14523 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   14524       # The eval makes quoting arguments work.
   14525       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   14526 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   14527 	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   14528     fi
   14529 
   14530     cd "$ac_popdir"
   14531   done
   14532 fi
   14533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   14534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   14535 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   14536 fi
   14537 
   14538 # If dnstap config has changed, overwrite it.
   14539 if test -n "$dnstap_config"; then
   14540 	if test ! -f "$dnstap_config_out"; then
   14541 		mv "$dnstap_config_tmp" "$dnstap_config_out" || as_fn_error $? "Could not create $dnstap_config_out" "$LINENO" 5
   14542 	else if diff "$dnstap_config_out" "$dnstap_config_tmp" >/dev/null 2>&1; then
   14543 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: In $srcdir: $dnstap_config_out is unchanged" >&5
   14544 printf "%s\n" "$as_me: In $srcdir: $dnstap_config_out is unchanged" >&6;}
   14545 		rm -f "$dnstap_config_tmp"
   14546 	else
   14547 		rm -f "$dnstap_config_out"
   14548 		mv "$dnstap_config_tmp" "$dnstap_config_out" || as_fn_error $? "Could not create $dnstap_config_out" "$LINENO" 5
   14549 	  fi
   14550 	fi
   14551 fi
   14552 
   14553