"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.6/configure" (6 Apr 2021, 307965 Bytes) of package /linux/misc/dns/nsd-4.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 4.3.5_vs_4.3.6.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for NSD 4.3.6.
    4 #
    5 # Report bugs to <nsd-bugs@nlnetlabs.nl>.
    6 #
    7 #
    8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9 #
   10 #
   11 # This configure script is free software; the Free Software Foundation
   12 # gives unlimited permission to copy, distribute and modify it.
   13 ## -------------------- ##
   14 ## M4sh Initialization. ##
   15 ## -------------------- ##
   16 
   17 # Be more Bourne compatible
   18 DUALCASE=1; export DUALCASE # for MKS sh
   19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20   emulate sh
   21   NULLCMD=:
   22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23   # is contrary to our usage.  Disable this feature.
   24   alias -g '${1+"$@"}'='"$@"'
   25   setopt NO_GLOB_SUBST
   26 else
   27   case `(set -o) 2>/dev/null` in #(
   28   *posix*) :
   29     set -o posix ;; #(
   30   *) :
   31      ;;
   32 esac
   33 fi
   34 
   35 
   36 as_nl='
   37 '
   38 export as_nl
   39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   43 # Prefer a ksh shell builtin over an external printf program on Solaris,
   44 # but without wasting forks for bash or zsh.
   45 if test -z "$BASH_VERSION$ZSH_VERSION" \
   46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   47   as_echo='print -r --'
   48   as_echo_n='print -rn --'
   49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   50   as_echo='printf %s\n'
   51   as_echo_n='printf %s'
   52 else
   53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   55     as_echo_n='/usr/ucb/echo -n'
   56   else
   57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   58     as_echo_n_body='eval
   59       arg=$1;
   60       case $arg in #(
   61       *"$as_nl"*)
   62     expr "X$arg" : "X\\(.*\\)$as_nl";
   63     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   64       esac;
   65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   66     '
   67     export as_echo_n_body
   68     as_echo_n='sh -c $as_echo_n_body as_echo'
   69   fi
   70   export as_echo_body
   71   as_echo='sh -c $as_echo_body as_echo'
   72 fi
   73 
   74 # The user is always right.
   75 if test "${PATH_SEPARATOR+set}" != set; then
   76   PATH_SEPARATOR=:
   77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   79       PATH_SEPARATOR=';'
   80   }
   81 fi
   82 
   83 
   84 # IFS
   85 # We need space, tab and new line, in precisely that order.  Quoting is
   86 # there to prevent editors from complaining about space-tab.
   87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   88 # splitting by setting IFS to empty value.)
   89 IFS=" ""    $as_nl"
   90 
   91 # Find who we are.  Look in the path if we contain no directory separator.
   92 as_myself=
   93 case $0 in #((
   94   *[\\/]* ) as_myself=$0 ;;
   95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   96 for as_dir in $PATH
   97 do
   98   IFS=$as_save_IFS
   99   test -z "$as_dir" && as_dir=.
  100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101   done
  102 IFS=$as_save_IFS
  103 
  104      ;;
  105 esac
  106 # We did not find ourselves, most probably we were run as `sh COMMAND'
  107 # in which case we are not to be found in the path.
  108 if test "x$as_myself" = x; then
  109   as_myself=$0
  110 fi
  111 if test ! -f "$as_myself"; then
  112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113   exit 1
  114 fi
  115 
  116 # Unset variables that we do not need and which cause bugs (e.g. in
  117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118 # suppresses any "Segmentation fault" message there.  '((' could
  119 # trigger a bug in pdksh 5.2.14.
  120 for as_var in BASH_ENV ENV MAIL MAILPATH
  121 do eval test x\${$as_var+set} = xset \
  122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123 done
  124 PS1='$ '
  125 PS2='> '
  126 PS4='+ '
  127 
  128 # NLS nuisances.
  129 LC_ALL=C
  130 export LC_ALL
  131 LANGUAGE=C
  132 export LANGUAGE
  133 
  134 # CDPATH.
  135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136 
  137 # Use a proper internal environment variable to ensure we don't fall
  138   # into an infinite loop, continuously re-executing ourselves.
  139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140     _as_can_reexec=no; export _as_can_reexec;
  141     # We cannot yet assume a decent shell, so we have to provide a
  142 # neutralization value for shells without unset; and this also
  143 # works around shells that cannot unset nonexistent variables.
  144 # Preserve -v and -x to the replacement shell.
  145 BASH_ENV=/dev/null
  146 ENV=/dev/null
  147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148 case $- in # ((((
  149   *v*x* | *x*v* ) as_opts=-vx ;;
  150   *v* ) as_opts=-v ;;
  151   *x* ) as_opts=-x ;;
  152   * ) as_opts= ;;
  153 esac
  154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155 # Admittedly, this is quite paranoid, since all the known shells bail
  156 # out after a failed `exec'.
  157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158 as_fn_exit 255
  159   fi
  160   # We don't want this to propagate to other subprocesses.
  161           { _as_can_reexec=; unset _as_can_reexec;}
  162 if test "x$CONFIG_SHELL" = x; then
  163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164   emulate sh
  165   NULLCMD=:
  166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167   # is contrary to our usage.  Disable this feature.
  168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169   setopt NO_GLOB_SUBST
  170 else
  171   case \`(set -o) 2>/dev/null\` in #(
  172   *posix*) :
  173     set -o posix ;; #(
  174   *) :
  175      ;;
  176 esac
  177 fi
  178 "
  179   as_required="as_fn_return () { (exit \$1); }
  180 as_fn_success () { as_fn_return 0; }
  181 as_fn_failure () { as_fn_return 1; }
  182 as_fn_ret_success () { return 0; }
  183 as_fn_ret_failure () { return 1; }
  184 
  185 exitcode=0
  186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191 
  192 else
  193   exitcode=1; echo positional parameters were not saved.
  194 fi
  195 test x\$exitcode = x0 || exit 1
  196 test -x / || exit 1"
  197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201 test \$(( 1 + 1 )) = 2 || exit 1"
  202   if (eval "$as_required") 2>/dev/null; then :
  203   as_have_required=yes
  204 else
  205   as_have_required=no
  206 fi
  207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  208 
  209 else
  210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211 as_found=false
  212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  213 do
  214   IFS=$as_save_IFS
  215   test -z "$as_dir" && as_dir=.
  216   as_found=:
  217   case $as_dir in #(
  218      /*)
  219        for as_base in sh bash ksh sh5; do
  220          # Try only shells that exist, to save several forks.
  221          as_shell=$as_dir/$as_base
  222          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  223             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224   CONFIG_SHELL=$as_shell as_have_required=yes
  225            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  226   break 2
  227 fi
  228 fi
  229        done;;
  230        esac
  231   as_found=false
  232 done
  233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  234           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  235   CONFIG_SHELL=$SHELL as_have_required=yes
  236 fi; }
  237 IFS=$as_save_IFS
  238 
  239 
  240       if test "x$CONFIG_SHELL" != x; then :
  241   export CONFIG_SHELL
  242              # We cannot yet assume a decent shell, so we have to provide a
  243 # neutralization value for shells without unset; and this also
  244 # works around shells that cannot unset nonexistent variables.
  245 # Preserve -v and -x to the replacement shell.
  246 BASH_ENV=/dev/null
  247 ENV=/dev/null
  248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  249 case $- in # ((((
  250   *v*x* | *x*v* ) as_opts=-vx ;;
  251   *v* ) as_opts=-v ;;
  252   *x* ) as_opts=-x ;;
  253   * ) as_opts= ;;
  254 esac
  255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  256 # Admittedly, this is quite paranoid, since all the known shells bail
  257 # out after a failed `exec'.
  258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  259 exit 255
  260 fi
  261 
  262     if test x$as_have_required = xno; then :
  263   $as_echo "$0: This script requires a shell more modern than all"
  264   $as_echo "$0: the shells that I found on your system."
  265   if test x${ZSH_VERSION+set} = xset ; then
  266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  268   else
  269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  270 $0: nsd-bugs@nlnetlabs.nl about your system, including any
  271 $0: error possibly output before this message. Then install
  272 $0: a modern shell, or manually run the script under such a
  273 $0: shell if you do have one."
  274   fi
  275   exit 1
  276 fi
  277 fi
  278 fi
  279 SHELL=${CONFIG_SHELL-/bin/sh}
  280 export SHELL
  281 # Unset more variables known to interfere with behavior of common tools.
  282 CLICOLOR_FORCE= GREP_OPTIONS=
  283 unset CLICOLOR_FORCE GREP_OPTIONS
  284 
  285 ## --------------------- ##
  286 ## M4sh Shell Functions. ##
  287 ## --------------------- ##
  288 # as_fn_unset VAR
  289 # ---------------
  290 # Portably unset VAR.
  291 as_fn_unset ()
  292 {
  293   { eval $1=; unset $1;}
  294 }
  295 as_unset=as_fn_unset
  296 
  297 # as_fn_set_status STATUS
  298 # -----------------------
  299 # Set $? to STATUS, without forking.
  300 as_fn_set_status ()
  301 {
  302   return $1
  303 } # as_fn_set_status
  304 
  305 # as_fn_exit STATUS
  306 # -----------------
  307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  308 as_fn_exit ()
  309 {
  310   set +e
  311   as_fn_set_status $1
  312   exit $1
  313 } # as_fn_exit
  314 
  315 # as_fn_mkdir_p
  316 # -------------
  317 # Create "$as_dir" as a directory, including parents if necessary.
  318 as_fn_mkdir_p ()
  319 {
  320 
  321   case $as_dir in #(
  322   -*) as_dir=./$as_dir;;
  323   esac
  324   test -d "$as_dir" || eval $as_mkdir_p || {
  325     as_dirs=
  326     while :; do
  327       case $as_dir in #(
  328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  329       *) as_qdir=$as_dir;;
  330       esac
  331       as_dirs="'$as_qdir' $as_dirs"
  332       as_dir=`$as_dirname -- "$as_dir" ||
  333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  334      X"$as_dir" : 'X\(//\)[^/]' \| \
  335      X"$as_dir" : 'X\(//\)$' \| \
  336      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  337 $as_echo X"$as_dir" |
  338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  339         s//\1/
  340         q
  341       }
  342       /^X\(\/\/\)[^/].*/{
  343         s//\1/
  344         q
  345       }
  346       /^X\(\/\/\)$/{
  347         s//\1/
  348         q
  349       }
  350       /^X\(\/\).*/{
  351         s//\1/
  352         q
  353       }
  354       s/.*/./; q'`
  355       test -d "$as_dir" && break
  356     done
  357     test -z "$as_dirs" || eval "mkdir $as_dirs"
  358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  359 
  360 
  361 } # as_fn_mkdir_p
  362 
  363 # as_fn_executable_p FILE
  364 # -----------------------
  365 # Test if FILE is an executable regular file.
  366 as_fn_executable_p ()
  367 {
  368   test -f "$1" && test -x "$1"
  369 } # as_fn_executable_p
  370 # as_fn_append VAR VALUE
  371 # ----------------------
  372 # Append the text in VALUE to the end of the definition contained in VAR. Take
  373 # advantage of any shell optimizations that allow amortized linear growth over
  374 # repeated appends, instead of the typical quadratic growth present in naive
  375 # implementations.
  376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  377   eval 'as_fn_append ()
  378   {
  379     eval $1+=\$2
  380   }'
  381 else
  382   as_fn_append ()
  383   {
  384     eval $1=\$$1\$2
  385   }
  386 fi # as_fn_append
  387 
  388 # as_fn_arith ARG...
  389 # ------------------
  390 # Perform arithmetic evaluation on the ARGs, and store the result in the
  391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  392 # must be portable across $(()) and expr.
  393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  394   eval 'as_fn_arith ()
  395   {
  396     as_val=$(( $* ))
  397   }'
  398 else
  399   as_fn_arith ()
  400   {
  401     as_val=`expr "$@" || test $? -eq 1`
  402   }
  403 fi # as_fn_arith
  404 
  405 
  406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  407 # ----------------------------------------
  408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  410 # script with STATUS, using 1 if that was 0.
  411 as_fn_error ()
  412 {
  413   as_status=$1; test $as_status -eq 0 && as_status=1
  414   if test "$4"; then
  415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  417   fi
  418   $as_echo "$as_me: error: $2" >&2
  419   as_fn_exit $as_status
  420 } # as_fn_error
  421 
  422 if expr a : '\(a\)' >/dev/null 2>&1 &&
  423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  424   as_expr=expr
  425 else
  426   as_expr=false
  427 fi
  428 
  429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  430   as_basename=basename
  431 else
  432   as_basename=false
  433 fi
  434 
  435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  436   as_dirname=dirname
  437 else
  438   as_dirname=false
  439 fi
  440 
  441 as_me=`$as_basename -- "$0" ||
  442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  443      X"$0" : 'X\(//\)$' \| \
  444      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  445 $as_echo X/"$0" |
  446     sed '/^.*\/\([^/][^/]*\)\/*$/{
  447         s//\1/
  448         q
  449       }
  450       /^X\/\(\/\/\)$/{
  451         s//\1/
  452         q
  453       }
  454       /^X\/\(\/\).*/{
  455         s//\1/
  456         q
  457       }
  458       s/.*/./; q'`
  459 
  460 # Avoid depending upon Character Ranges.
  461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  464 as_cr_digits='0123456789'
  465 as_cr_alnum=$as_cr_Letters$as_cr_digits
  466 
  467 
  468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  473   sed -n '
  474     p
  475     /[$]LINENO/=
  476   ' <$as_myself |
  477     sed '
  478       s/[$]LINENO.*/&-/
  479       t lineno
  480       b
  481       :lineno
  482       N
  483       :loop
  484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  485       t loop
  486       s/-\n.*//
  487     ' >$as_me.lineno &&
  488   chmod +x "$as_me.lineno" ||
  489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  490 
  491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  492   # already done that, so ensure we don't try to do so again and fall
  493   # in an infinite loop.  This has already happened in practice.
  494   _as_can_reexec=no; export _as_can_reexec
  495   # Don't try to exec as it changes $[0], causing all sort of problems
  496   # (the dirname of $[0] is not the place where we might find the
  497   # original and so on.  Autoconf is especially sensitive to this).
  498   . "./$as_me.lineno"
  499   # Exit status is that of the last command.
  500   exit
  501 }
  502 
  503 ECHO_C= ECHO_N= ECHO_T=
  504 case `echo -n x` in #(((((
  505 -n*)
  506   case `echo 'xy\c'` in
  507   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  508   xy)  ECHO_C='\c';;
  509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  510        ECHO_T=' ';;
  511   esac;;
  512 *)
  513   ECHO_N='-n';;
  514 esac
  515 
  516 rm -f conf$$ conf$$.exe conf$$.file
  517 if test -d conf$$.dir; then
  518   rm -f conf$$.dir/conf$$.file
  519 else
  520   rm -f conf$$.dir
  521   mkdir conf$$.dir 2>/dev/null
  522 fi
  523 if (echo >conf$$.file) 2>/dev/null; then
  524   if ln -s conf$$.file conf$$ 2>/dev/null; then
  525     as_ln_s='ln -s'
  526     # ... but there are two gotchas:
  527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  529     # In both cases, we have to default to `cp -pR'.
  530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  531       as_ln_s='cp -pR'
  532   elif ln conf$$.file conf$$ 2>/dev/null; then
  533     as_ln_s=ln
  534   else
  535     as_ln_s='cp -pR'
  536   fi
  537 else
  538   as_ln_s='cp -pR'
  539 fi
  540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  541 rmdir conf$$.dir 2>/dev/null
  542 
  543 if mkdir -p . 2>/dev/null; then
  544   as_mkdir_p='mkdir -p "$as_dir"'
  545 else
  546   test -d ./-p && rmdir ./-p
  547   as_mkdir_p=false
  548 fi
  549 
  550 as_test_x='test -x'
  551 as_executable_p=as_fn_executable_p
  552 
  553 # Sed expression to map a string onto a valid CPP name.
  554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  555 
  556 # Sed expression to map a string onto a valid variable name.
  557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  558 
  559 
  560 test -n "$DJDIR" || exec 7<&0 </dev/null
  561 exec 6>&1
  562 
  563 # Name of the host.
  564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  565 # so uname gets run too.
  566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  567 
  568 #
  569 # Initializations.
  570 #
  571 ac_default_prefix=/usr/local
  572 ac_clean_files=
  573 ac_config_libobj_dir=.
  574 LIBOBJS=
  575 cross_compiling=no
  576 subdirs=
  577 MFLAGS=
  578 MAKEFLAGS=
  579 
  580 # Identity of this package.
  581 PACKAGE_NAME='NSD'
  582 PACKAGE_TARNAME='nsd'
  583 PACKAGE_VERSION='4.3.6'
  584 PACKAGE_STRING='NSD 4.3.6'
  585 PACKAGE_BUGREPORT='nsd-bugs@nlnetlabs.nl'
  586 PACKAGE_URL=''
  587 
  588 # Factoring default headers for most tests.
  589 ac_includes_default="\
  590 #include <stdio.h>
  591 #ifdef HAVE_SYS_TYPES_H
  592 # include <sys/types.h>
  593 #endif
  594 #ifdef HAVE_SYS_STAT_H
  595 # include <sys/stat.h>
  596 #endif
  597 #ifdef STDC_HEADERS
  598 # include <stdlib.h>
  599 # include <stddef.h>
  600 #else
  601 # ifdef HAVE_STDLIB_H
  602 #  include <stdlib.h>
  603 # endif
  604 #endif
  605 #ifdef HAVE_STRING_H
  606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  607 #  include <memory.h>
  608 # endif
  609 # include <string.h>
  610 #endif
  611 #ifdef HAVE_STRINGS_H
  612 # include <strings.h>
  613 #endif
  614 #ifdef HAVE_INTTYPES_H
  615 # include <inttypes.h>
  616 #endif
  617 #ifdef HAVE_STDINT_H
  618 # include <stdint.h>
  619 #endif
  620 #ifdef HAVE_UNISTD_H
  621 # include <unistd.h>
  622 #endif"
  623 
  624 ac_subst_vars='LTLIBOBJS
  625 SYSTEMD_DAEMON_LIBS
  626 SYSTEMD_DAEMON_CFLAGS
  627 SYSTEMD_LIBS
  628 SYSTEMD_CFLAGS
  629 PKG_CONFIG_LIBDIR
  630 PKG_CONFIG_PATH
  631 PKG_CONFIG
  632 DNSTAP_OBJ
  633 DNSTAP_SRC
  634 opt_dnstap_socket_path
  635 ENABLE_DNSTAP
  636 PROTOC_C
  637 SSL_LIBS
  638 HAVE_SSL
  639 ratelimit_default
  640 ratelimit
  641 LIBOBJS
  642 INSTALL_DATA
  643 INSTALL_SCRIPT
  644 INSTALL_PROGRAM
  645 LN_S
  646 YFLAGS
  647 LEXLIB
  648 LEX_OUTPUT_ROOT
  649 user
  650 chrootdir
  651 xfrdir
  652 zonelistfile
  653 xfrdfile
  654 zonesdir
  655 piddir
  656 dbdir
  657 dbfile
  658 pidfile
  659 logfile
  660 nsd_conf_file
  661 configdir
  662 CPP
  663 OBJEXT
  664 EXEEXT
  665 ac_ct_CC
  666 CPPFLAGS
  667 LDFLAGS
  668 CFLAGS
  669 CC
  670 YACC
  671 LEX
  672 EGREP
  673 GREP
  674 AWK
  675 SED
  676 target_alias
  677 host_alias
  678 build_alias
  679 LIBS
  680 ECHO_T
  681 ECHO_N
  682 ECHO_C
  683 DEFS
  684 mandir
  685 localedir
  686 libdir
  687 psdir
  688 pdfdir
  689 dvidir
  690 htmldir
  691 infodir
  692 docdir
  693 oldincludedir
  694 includedir
  695 localstatedir
  696 sharedstatedir
  697 sysconfdir
  698 datadir
  699 datarootdir
  700 libexecdir
  701 sbindir
  702 bindir
  703 program_transform_name
  704 prefix
  705 exec_prefix
  706 PACKAGE_URL
  707 PACKAGE_BUGREPORT
  708 PACKAGE_STRING
  709 PACKAGE_VERSION
  710 PACKAGE_TARNAME
  711 PACKAGE_NAME
  712 PATH_SEPARATOR
  713 SHELL'
  714 ac_subst_files=''
  715 ac_user_opts='
  716 enable_option_checking
  717 with_configdir
  718 with_nsd_conf_file
  719 with_logfile
  720 with_pidfile
  721 with_dbfile
  722 with_zonesdir
  723 with_xfrdfile
  724 with_zonelistfile
  725 with_xfrdir
  726 with_chroot
  727 with_user
  728 enable_flto
  729 enable_pie
  730 enable_relro_now
  731 with_libevent
  732 enable_largefile
  733 enable_recvmmsg
  734 with_facility
  735 with_tcp_timeout
  736 enable_root_server
  737 enable_ipv6
  738 enable_bind8_stats
  739 enable_zone_stats
  740 enable_checking
  741 enable_memclean
  742 enable_ratelimit
  743 enable_ratelimit_default_is_off
  744 with_ssl
  745 enable_nsec3
  746 enable_minimal_responses
  747 enable_mmap
  748 enable_radix_tree
  749 enable_packed
  750 enable_dnstap
  751 with_dnstap_socket_path
  752 with_protobuf_c
  753 with_libfstrm
  754 enable_systemd
  755 enable_tcp_fastopen
  756 '
  757       ac_precious_vars='build_alias
  758 host_alias
  759 target_alias
  760 SED
  761 AWK
  762 GREP
  763 EGREP
  764 LEX
  765 YACC
  766 CC
  767 CFLAGS
  768 LDFLAGS
  769 LIBS
  770 CPPFLAGS
  771 CPP
  772 YFLAGS
  773 PKG_CONFIG
  774 PKG_CONFIG_PATH
  775 PKG_CONFIG_LIBDIR
  776 SYSTEMD_CFLAGS
  777 SYSTEMD_LIBS
  778 SYSTEMD_DAEMON_CFLAGS
  779 SYSTEMD_DAEMON_LIBS'
  780 
  781 
  782 # Initialize some variables set by options.
  783 ac_init_help=
  784 ac_init_version=false
  785 ac_unrecognized_opts=
  786 ac_unrecognized_sep=
  787 # The variables have the same names as the options, with
  788 # dashes changed to underlines.
  789 cache_file=/dev/null
  790 exec_prefix=NONE
  791 no_create=
  792 no_recursion=
  793 prefix=NONE
  794 program_prefix=NONE
  795 program_suffix=NONE
  796 program_transform_name=s,x,x,
  797 silent=
  798 site=
  799 srcdir=
  800 verbose=
  801 x_includes=NONE
  802 x_libraries=NONE
  803 
  804 # Installation directory options.
  805 # These are left unexpanded so users can "make install exec_prefix=/foo"
  806 # and all the variables that are supposed to be based on exec_prefix
  807 # by default will actually change.
  808 # Use braces instead of parens because sh, perl, etc. also accept them.
  809 # (The list follows the same order as the GNU Coding Standards.)
  810 bindir='${exec_prefix}/bin'
  811 sbindir='${exec_prefix}/sbin'
  812 libexecdir='${exec_prefix}/libexec'
  813 datarootdir='${prefix}/share'
  814 datadir='${datarootdir}'
  815 sysconfdir='${prefix}/etc'
  816 sharedstatedir='${prefix}/com'
  817 localstatedir='${prefix}/var'
  818 includedir='${prefix}/include'
  819 oldincludedir='/usr/include'
  820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  821 infodir='${datarootdir}/info'
  822 htmldir='${docdir}'
  823 dvidir='${docdir}'
  824 pdfdir='${docdir}'
  825 psdir='${docdir}'
  826 libdir='${exec_prefix}/lib'
  827 localedir='${datarootdir}/locale'
  828 mandir='${datarootdir}/man'
  829 
  830 ac_prev=
  831 ac_dashdash=
  832 for ac_option
  833 do
  834   # If the previous option needs an argument, assign it.
  835   if test -n "$ac_prev"; then
  836     eval $ac_prev=\$ac_option
  837     ac_prev=
  838     continue
  839   fi
  840 
  841   case $ac_option in
  842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  843   *=)   ac_optarg= ;;
  844   *)    ac_optarg=yes ;;
  845   esac
  846 
  847   # Accept the important Cygnus configure options, so we can diagnose typos.
  848 
  849   case $ac_dashdash$ac_option in
  850   --)
  851     ac_dashdash=yes ;;
  852 
  853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  854     ac_prev=bindir ;;
  855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  856     bindir=$ac_optarg ;;
  857 
  858   -build | --build | --buil | --bui | --bu)
  859     ac_prev=build_alias ;;
  860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  861     build_alias=$ac_optarg ;;
  862 
  863   -cache-file | --cache-file | --cache-fil | --cache-fi \
  864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865     ac_prev=cache_file ;;
  866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868     cache_file=$ac_optarg ;;
  869 
  870   --config-cache | -C)
  871     cache_file=config.cache ;;
  872 
  873   -datadir | --datadir | --datadi | --datad)
  874     ac_prev=datadir ;;
  875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  876     datadir=$ac_optarg ;;
  877 
  878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  879   | --dataroo | --dataro | --datar)
  880     ac_prev=datarootdir ;;
  881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  883     datarootdir=$ac_optarg ;;
  884 
  885   -disable-* | --disable-*)
  886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  887     # Reject names that are not valid shell variable names.
  888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  889       as_fn_error $? "invalid feature name: $ac_useropt"
  890     ac_useropt_orig=$ac_useropt
  891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892     case $ac_user_opts in
  893       *"
  894 "enable_$ac_useropt"
  895 "*) ;;
  896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  897      ac_unrecognized_sep=', ';;
  898     esac
  899     eval enable_$ac_useropt=no ;;
  900 
  901   -docdir | --docdir | --docdi | --doc | --do)
  902     ac_prev=docdir ;;
  903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  904     docdir=$ac_optarg ;;
  905 
  906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  907     ac_prev=dvidir ;;
  908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  909     dvidir=$ac_optarg ;;
  910 
  911   -enable-* | --enable-*)
  912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  913     # Reject names that are not valid shell variable names.
  914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915       as_fn_error $? "invalid feature name: $ac_useropt"
  916     ac_useropt_orig=$ac_useropt
  917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918     case $ac_user_opts in
  919       *"
  920 "enable_$ac_useropt"
  921 "*) ;;
  922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  923      ac_unrecognized_sep=', ';;
  924     esac
  925     eval enable_$ac_useropt=\$ac_optarg ;;
  926 
  927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  929   | --exec | --exe | --ex)
  930     ac_prev=exec_prefix ;;
  931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  933   | --exec=* | --exe=* | --ex=*)
  934     exec_prefix=$ac_optarg ;;
  935 
  936   -gas | --gas | --ga | --g)
  937     # Obsolete; use --with-gas.
  938     with_gas=yes ;;
  939 
  940   -help | --help | --hel | --he | -h)
  941     ac_init_help=long ;;
  942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  943     ac_init_help=recursive ;;
  944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  945     ac_init_help=short ;;
  946 
  947   -host | --host | --hos | --ho)
  948     ac_prev=host_alias ;;
  949   -host=* | --host=* | --hos=* | --ho=*)
  950     host_alias=$ac_optarg ;;
  951 
  952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  953     ac_prev=htmldir ;;
  954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  955   | --ht=*)
  956     htmldir=$ac_optarg ;;
  957 
  958   -includedir | --includedir | --includedi | --included | --include \
  959   | --includ | --inclu | --incl | --inc)
  960     ac_prev=includedir ;;
  961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  962   | --includ=* | --inclu=* | --incl=* | --inc=*)
  963     includedir=$ac_optarg ;;
  964 
  965   -infodir | --infodir | --infodi | --infod | --info | --inf)
  966     ac_prev=infodir ;;
  967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  968     infodir=$ac_optarg ;;
  969 
  970   -libdir | --libdir | --libdi | --libd)
  971     ac_prev=libdir ;;
  972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  973     libdir=$ac_optarg ;;
  974 
  975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  976   | --libexe | --libex | --libe)
  977     ac_prev=libexecdir ;;
  978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  979   | --libexe=* | --libex=* | --libe=*)
  980     libexecdir=$ac_optarg ;;
  981 
  982   -localedir | --localedir | --localedi | --localed | --locale)
  983     ac_prev=localedir ;;
  984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  985     localedir=$ac_optarg ;;
  986 
  987   -localstatedir | --localstatedir | --localstatedi | --localstated \
  988   | --localstate | --localstat | --localsta | --localst | --locals)
  989     ac_prev=localstatedir ;;
  990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  992     localstatedir=$ac_optarg ;;
  993 
  994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  995     ac_prev=mandir ;;
  996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  997     mandir=$ac_optarg ;;
  998 
  999   -nfp | --nfp | --nf)
 1000     # Obsolete; use --without-fp.
 1001     with_fp=no ;;
 1002 
 1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1004   | --no-cr | --no-c | -n)
 1005     no_create=yes ;;
 1006 
 1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1009     no_recursion=yes ;;
 1010 
 1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1013   | --oldin | --oldi | --old | --ol | --o)
 1014     ac_prev=oldincludedir ;;
 1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1018     oldincludedir=$ac_optarg ;;
 1019 
 1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1021     ac_prev=prefix ;;
 1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1023     prefix=$ac_optarg ;;
 1024 
 1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1026   | --program-pre | --program-pr | --program-p)
 1027     ac_prev=program_prefix ;;
 1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1030     program_prefix=$ac_optarg ;;
 1031 
 1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1033   | --program-suf | --program-su | --program-s)
 1034     ac_prev=program_suffix ;;
 1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1037     program_suffix=$ac_optarg ;;
 1038 
 1039   -program-transform-name | --program-transform-name \
 1040   | --program-transform-nam | --program-transform-na \
 1041   | --program-transform-n | --program-transform- \
 1042   | --program-transform | --program-transfor \
 1043   | --program-transfo | --program-transf \
 1044   | --program-trans | --program-tran \
 1045   | --progr-tra | --program-tr | --program-t)
 1046     ac_prev=program_transform_name ;;
 1047   -program-transform-name=* | --program-transform-name=* \
 1048   | --program-transform-nam=* | --program-transform-na=* \
 1049   | --program-transform-n=* | --program-transform-=* \
 1050   | --program-transform=* | --program-transfor=* \
 1051   | --program-transfo=* | --program-transf=* \
 1052   | --program-trans=* | --program-tran=* \
 1053   | --progr-tra=* | --program-tr=* | --program-t=*)
 1054     program_transform_name=$ac_optarg ;;
 1055 
 1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1057     ac_prev=pdfdir ;;
 1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1059     pdfdir=$ac_optarg ;;
 1060 
 1061   -psdir | --psdir | --psdi | --psd | --ps)
 1062     ac_prev=psdir ;;
 1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1064     psdir=$ac_optarg ;;
 1065 
 1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1067   | -silent | --silent | --silen | --sile | --sil)
 1068     silent=yes ;;
 1069 
 1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1071     ac_prev=sbindir ;;
 1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1073   | --sbi=* | --sb=*)
 1074     sbindir=$ac_optarg ;;
 1075 
 1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1078   | --sharedst | --shareds | --shared | --share | --shar \
 1079   | --sha | --sh)
 1080     ac_prev=sharedstatedir ;;
 1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1084   | --sha=* | --sh=*)
 1085     sharedstatedir=$ac_optarg ;;
 1086 
 1087   -site | --site | --sit)
 1088     ac_prev=site ;;
 1089   -site=* | --site=* | --sit=*)
 1090     site=$ac_optarg ;;
 1091 
 1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1093     ac_prev=srcdir ;;
 1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1095     srcdir=$ac_optarg ;;
 1096 
 1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1098   | --syscon | --sysco | --sysc | --sys | --sy)
 1099     ac_prev=sysconfdir ;;
 1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1102     sysconfdir=$ac_optarg ;;
 1103 
 1104   -target | --target | --targe | --targ | --tar | --ta | --t)
 1105     ac_prev=target_alias ;;
 1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1107     target_alias=$ac_optarg ;;
 1108 
 1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1110     verbose=yes ;;
 1111 
 1112   -version | --version | --versio | --versi | --vers | -V)
 1113     ac_init_version=: ;;
 1114 
 1115   -with-* | --with-*)
 1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1117     # Reject names that are not valid shell variable names.
 1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1119       as_fn_error $? "invalid package name: $ac_useropt"
 1120     ac_useropt_orig=$ac_useropt
 1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1122     case $ac_user_opts in
 1123       *"
 1124 "with_$ac_useropt"
 1125 "*) ;;
 1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1127      ac_unrecognized_sep=', ';;
 1128     esac
 1129     eval with_$ac_useropt=\$ac_optarg ;;
 1130 
 1131   -without-* | --without-*)
 1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1133     # Reject names that are not valid shell variable names.
 1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1135       as_fn_error $? "invalid package name: $ac_useropt"
 1136     ac_useropt_orig=$ac_useropt
 1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1138     case $ac_user_opts in
 1139       *"
 1140 "with_$ac_useropt"
 1141 "*) ;;
 1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1143      ac_unrecognized_sep=', ';;
 1144     esac
 1145     eval with_$ac_useropt=no ;;
 1146 
 1147   --x)
 1148     # Obsolete; use --with-x.
 1149     with_x=yes ;;
 1150 
 1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1152   | --x-incl | --x-inc | --x-in | --x-i)
 1153     ac_prev=x_includes ;;
 1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1156     x_includes=$ac_optarg ;;
 1157 
 1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1160     ac_prev=x_libraries ;;
 1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1163     x_libraries=$ac_optarg ;;
 1164 
 1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1166 Try \`$0 --help' for more information"
 1167     ;;
 1168 
 1169   *=*)
 1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1171     # Reject names that are not valid shell variable names.
 1172     case $ac_envvar in #(
 1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1175     esac
 1176     eval $ac_envvar=\$ac_optarg
 1177     export $ac_envvar ;;
 1178 
 1179   *)
 1180     # FIXME: should be removed in autoconf 3.0.
 1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1185     ;;
 1186 
 1187   esac
 1188 done
 1189 
 1190 if test -n "$ac_prev"; then
 1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1192   as_fn_error $? "missing argument to $ac_option"
 1193 fi
 1194 
 1195 if test -n "$ac_unrecognized_opts"; then
 1196   case $enable_option_checking in
 1197     no) ;;
 1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1200   esac
 1201 fi
 1202 
 1203 # Check all directory arguments for consistency.
 1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1205         datadir sysconfdir sharedstatedir localstatedir includedir \
 1206         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1207         libdir localedir mandir
 1208 do
 1209   eval ac_val=\$$ac_var
 1210   # Remove trailing slashes.
 1211   case $ac_val in
 1212     */ )
 1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1214       eval $ac_var=\$ac_val;;
 1215   esac
 1216   # Be sure to have absolute directory names.
 1217   case $ac_val in
 1218     [\\/$]* | ?:[\\/]* )  continue;;
 1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1220   esac
 1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1222 done
 1223 
 1224 # There might be people who depend on the old broken behavior: `$host'
 1225 # used to hold the argument of --host etc.
 1226 # FIXME: To remove some day.
 1227 build=$build_alias
 1228 host=$host_alias
 1229 target=$target_alias
 1230 
 1231 # FIXME: To remove some day.
 1232 if test "x$host_alias" != x; then
 1233   if test "x$build_alias" = x; then
 1234     cross_compiling=maybe
 1235   elif test "x$build_alias" != "x$host_alias"; then
 1236     cross_compiling=yes
 1237   fi
 1238 fi
 1239 
 1240 ac_tool_prefix=
 1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1242 
 1243 test "$silent" = yes && exec 6>/dev/null
 1244 
 1245 
 1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1247 ac_ls_di=`ls -di .` &&
 1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1249   as_fn_error $? "working directory cannot be determined"
 1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1251   as_fn_error $? "pwd does not report name of working directory"
 1252 
 1253 
 1254 # Find the source files, if location was not specified.
 1255 if test -z "$srcdir"; then
 1256   ac_srcdir_defaulted=yes
 1257   # Try the directory containing this script, then the parent directory.
 1258   ac_confdir=`$as_dirname -- "$as_myself" ||
 1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1260      X"$as_myself" : 'X\(//\)[^/]' \| \
 1261      X"$as_myself" : 'X\(//\)$' \| \
 1262      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1263 $as_echo X"$as_myself" |
 1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1265         s//\1/
 1266         q
 1267       }
 1268       /^X\(\/\/\)[^/].*/{
 1269         s//\1/
 1270         q
 1271       }
 1272       /^X\(\/\/\)$/{
 1273         s//\1/
 1274         q
 1275       }
 1276       /^X\(\/\).*/{
 1277         s//\1/
 1278         q
 1279       }
 1280       s/.*/./; q'`
 1281   srcdir=$ac_confdir
 1282   if test ! -r "$srcdir/$ac_unique_file"; then
 1283     srcdir=..
 1284   fi
 1285 else
 1286   ac_srcdir_defaulted=no
 1287 fi
 1288 if test ! -r "$srcdir/$ac_unique_file"; then
 1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1291 fi
 1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1293 ac_abs_confdir=`(
 1294     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1295     pwd)`
 1296 # When building in place, set srcdir=.
 1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1298   srcdir=.
 1299 fi
 1300 # Remove unnecessary trailing slashes from srcdir.
 1301 # Double slashes in file names in object file debugging info
 1302 # mess up M-x gdb in Emacs.
 1303 case $srcdir in
 1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1305 esac
 1306 for ac_var in $ac_precious_vars; do
 1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1308   eval ac_env_${ac_var}_value=\$${ac_var}
 1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1311 done
 1312 
 1313 #
 1314 # Report the --help message.
 1315 #
 1316 if test "$ac_init_help" = "long"; then
 1317   # Omit some internal or obsolete options to make the list less imposing.
 1318   # This message is too long to be a string in the A/UX 3.1 sh.
 1319   cat <<_ACEOF
 1320 \`configure' configures NSD 4.3.6 to adapt to many kinds of systems.
 1321 
 1322 Usage: $0 [OPTION]... [VAR=VALUE]...
 1323 
 1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1326 
 1327 Defaults for the options are specified in brackets.
 1328 
 1329 Configuration:
 1330   -h, --help              display this help and exit
 1331       --help=short        display options specific to this package
 1332       --help=recursive    display the short help of all the included packages
 1333   -V, --version           display version information and exit
 1334   -q, --quiet, --silent   do not print \`checking ...' messages
 1335       --cache-file=FILE   cache test results in FILE [disabled]
 1336   -C, --config-cache      alias for \`--cache-file=config.cache'
 1337   -n, --no-create         do not create output files
 1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1339 
 1340 Installation directories:
 1341   --prefix=PREFIX         install architecture-independent files in PREFIX
 1342                           [$ac_default_prefix]
 1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1344                           [PREFIX]
 1345 
 1346 By default, \`make install' will install all the files in
 1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1349 for instance \`--prefix=\$HOME'.
 1350 
 1351 For better control, use the options below.
 1352 
 1353 Fine tuning of the installation directories:
 1354   --bindir=DIR            user executables [EPREFIX/bin]
 1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1360   --libdir=DIR            object code libraries [EPREFIX/lib]
 1361   --includedir=DIR        C header files [PREFIX/include]
 1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/nsd]
 1369   --htmldir=DIR           html documentation [DOCDIR]
 1370   --dvidir=DIR            dvi documentation [DOCDIR]
 1371   --pdfdir=DIR            pdf documentation [DOCDIR]
 1372   --psdir=DIR             ps documentation [DOCDIR]
 1373 _ACEOF
 1374 
 1375   cat <<\_ACEOF
 1376 _ACEOF
 1377 fi
 1378 
 1379 if test -n "$ac_init_help"; then
 1380   case $ac_init_help in
 1381      short | recursive ) echo "Configuration of NSD 4.3.6:";;
 1382    esac
 1383   cat <<\_ACEOF
 1384 
 1385 Optional Features:
 1386   --disable-option-checking  ignore unrecognized --enable/--with options
 1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1389   --disable-flto          Disable link-time optimization (gcc specific option)
 1390   --enable-pie            Enable Position-Independent Executable (eg. to fully
 1391                           benefit from ASLR, small performance penalty)
 1392   --enable-relro-now      Enable full relocation binding at load-time (RELRO
 1393                           NOW, to protect GOT and .dtor areas)
 1394   --disable-largefile     omit support for large files
 1395   --enable-recvmmsg       Enable recvmmsg and sendmmsg compilation, faster but
 1396                           some kernel versions may have implementation
 1397                           problems for IPv6
 1398   --enable-root-server    Configure NSD as a root server
 1399   --disable-ipv6          Disables IPv6 support
 1400   --enable-bind8-stats    Enables BIND8 like NSTATS & XSTATS and statistics in
 1401                           nsd-control
 1402   --enable-zone-stats     Enable per-zone statistics gathering (needs
 1403                           --enable-bind8-stats)
 1404   --enable-checking       Enable internal runtime checks
 1405   --enable-memclean       Cleanup memory (at exit) for eg. valgrind, memcheck
 1406   --enable-ratelimit      Enable rate limiting
 1407   --enable-ratelimit-default-is-off
 1408                           Enable this to set default of ratelimit to off
 1409                           (enable in nsd.conf), otherwise ratelimit is enabled
 1410                           by default if --enable-ratelimit is enabled
 1411   --disable-nsec3         Disable NSEC3 support
 1412   --disable-minimal-responses
 1413                           Disable response minimization. More truncation.
 1414   --enable-mmap           Use mmap instead of malloc. Experimental.
 1415   --disable-radix-tree    You can disable the radix tree and use the red-black
 1416                           tree for the main lookups, the red-black tree uses
 1417                           less memory, but uses some more CPU.
 1418   --enable-packed         Enable packed structure alignment, uses less memory,
 1419                           but unaligned reads.
 1420   --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
 1421   --enable-systemd        compile with systemd support
 1422   --enable-tcp-fastopen   Enable TCP Fast Open
 1423 
 1424 Optional Packages:
 1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1427   --with-configdir=dir    NSD configuration directory
 1428   --with-nsd_conf_file=path
 1429                           Pathname to the NSD configuration file
 1430   --with-logfile=path     Pathname to the default log file
 1431   --with-pidfile=path     Pathname to the NSD pidfile
 1432   --with-dbfile=path      Pathname to the NSD database
 1433   --with-zonesdir=dir     NSD default location for zone files
 1434   --with-xfrdfile=path    Pathname to the NSD xfrd zone timer state file
 1435   --with-zonelistfile=path
 1436                           Pathname to the NSD zone list file
 1437   --with-xfrdir=path      Pathname to where the NSD transfer dir is created
 1438   --with-chroot=dir       NSD default chroot directory
 1439   --with-user=username    User name or ID to answer the queries with
 1440   --with-libevent=pathname
 1441                           use libevent (will check /usr/local /opt/local
 1442                           /usr/lib /usr/pkg /usr/sfw /usr
 1443                           /usr/local/opt/libevent or you can specify an
 1444                           explicit path), useful when the zone count is high.
 1445   --with-facility=name    Syslog default facility (LOG_DAEMON)
 1446   --with-tcp-timeout=number
 1447                           Limit the default tcp timeout
 1448   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
 1449                           /usr/ssl /usr/pkg /usr/sfw /usr/local /usr
 1450                           /usr/local/opt/openssl)
 1451   --with-dnstap-socket-path=pathname
 1452                           set default dnstap socket path
 1453   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
 1454   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
 1455 
 1456 Some influential environment variables:
 1457   SED         location of the sed program
 1458   AWK         location of the awk program
 1459   GREP        location of the grep program
 1460   EGREP       location of the egrep program
 1461   LEX         location of the lex program with GNU extensions (flex)
 1462   YACC        location of the yacc program with GNU extensions (bison)
 1463   CC          C compiler command
 1464   CFLAGS      C compiler flags
 1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1466               nonstandard directory <lib dir>
 1467   LIBS        libraries to pass to the linker, e.g. -l<library>
 1468   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1469               you have headers in a nonstandard directory <include dir>
 1470   CPP         C preprocessor
 1471   YFLAGS      The list of arguments that will be passed by default to $YACC.
 1472               This script will default YFLAGS to the empty string to avoid a
 1473               default value of `-d' given by some make applications.
 1474   PKG_CONFIG  path to pkg-config utility
 1475   PKG_CONFIG_PATH
 1476               directories to add to pkg-config's search path
 1477   PKG_CONFIG_LIBDIR
 1478               path overriding pkg-config's built-in search path
 1479   SYSTEMD_CFLAGS
 1480               C compiler flags for SYSTEMD, overriding pkg-config
 1481   SYSTEMD_LIBS
 1482               linker flags for SYSTEMD, overriding pkg-config
 1483   SYSTEMD_DAEMON_CFLAGS
 1484               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
 1485   SYSTEMD_DAEMON_LIBS
 1486               linker flags for SYSTEMD_DAEMON, overriding pkg-config
 1487 
 1488 Use these variables to override the choices made by `configure' or to help
 1489 it to find libraries and programs with nonstandard names/locations.
 1490 
 1491 Report bugs to <nsd-bugs@nlnetlabs.nl>.
 1492 _ACEOF
 1493 ac_status=$?
 1494 fi
 1495 
 1496 if test "$ac_init_help" = "recursive"; then
 1497   # If there are subdirs, report their specific --help.
 1498   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1499     test -d "$ac_dir" ||
 1500       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1501       continue
 1502     ac_builddir=.
 1503 
 1504 case "$ac_dir" in
 1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1506 *)
 1507   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1508   # A ".." for each directory in $ac_dir_suffix.
 1509   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1510   case $ac_top_builddir_sub in
 1511   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1512   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1513   esac ;;
 1514 esac
 1515 ac_abs_top_builddir=$ac_pwd
 1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1517 # for backward compatibility:
 1518 ac_top_builddir=$ac_top_build_prefix
 1519 
 1520 case $srcdir in
 1521   .)  # We are building in place.
 1522     ac_srcdir=.
 1523     ac_top_srcdir=$ac_top_builddir_sub
 1524     ac_abs_top_srcdir=$ac_pwd ;;
 1525   [\\/]* | ?:[\\/]* )  # Absolute name.
 1526     ac_srcdir=$srcdir$ac_dir_suffix;
 1527     ac_top_srcdir=$srcdir
 1528     ac_abs_top_srcdir=$srcdir ;;
 1529   *) # Relative name.
 1530     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1531     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1532     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1533 esac
 1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1535 
 1536     cd "$ac_dir" || { ac_status=$?; continue; }
 1537     # Check for guested configure.
 1538     if test -f "$ac_srcdir/configure.gnu"; then
 1539       echo &&
 1540       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1541     elif test -f "$ac_srcdir/configure"; then
 1542       echo &&
 1543       $SHELL "$ac_srcdir/configure" --help=recursive
 1544     else
 1545       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1546     fi || ac_status=$?
 1547     cd "$ac_pwd" || { ac_status=$?; break; }
 1548   done
 1549 fi
 1550 
 1551 test -n "$ac_init_help" && exit $ac_status
 1552 if $ac_init_version; then
 1553   cat <<\_ACEOF
 1554 NSD configure 4.3.6
 1555 generated by GNU Autoconf 2.69
 1556 
 1557 Copyright (C) 2012 Free Software Foundation, Inc.
 1558 This configure script is free software; the Free Software Foundation
 1559 gives unlimited permission to copy, distribute and modify it.
 1560 _ACEOF
 1561   exit
 1562 fi
 1563 
 1564 ## ------------------------ ##
 1565 ## Autoconf initialization. ##
 1566 ## ------------------------ ##
 1567 
 1568 # ac_fn_c_try_compile LINENO
 1569 # --------------------------
 1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1571 ac_fn_c_try_compile ()
 1572 {
 1573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1574   rm -f conftest.$ac_objext
 1575   if { { ac_try="$ac_compile"
 1576 case "(($ac_try" in
 1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1578   *) ac_try_echo=$ac_try;;
 1579 esac
 1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1581 $as_echo "$ac_try_echo"; } >&5
 1582   (eval "$ac_compile") 2>conftest.err
 1583   ac_status=$?
 1584   if test -s conftest.err; then
 1585     grep -v '^ *+' conftest.err >conftest.er1
 1586     cat conftest.er1 >&5
 1587     mv -f conftest.er1 conftest.err
 1588   fi
 1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1590   test $ac_status = 0; } && {
 1591      test -z "$ac_c_werror_flag" ||
 1592      test ! -s conftest.err
 1593        } && test -s conftest.$ac_objext; then :
 1594   ac_retval=0
 1595 else
 1596   $as_echo "$as_me: failed program was:" >&5
 1597 sed 's/^/| /' conftest.$ac_ext >&5
 1598 
 1599     ac_retval=1
 1600 fi
 1601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1602   as_fn_set_status $ac_retval
 1603 
 1604 } # ac_fn_c_try_compile
 1605 
 1606 # ac_fn_c_try_cpp LINENO
 1607 # ----------------------
 1608 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1609 ac_fn_c_try_cpp ()
 1610 {
 1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1612   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1613 case "(($ac_try" in
 1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1615   *) ac_try_echo=$ac_try;;
 1616 esac
 1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1618 $as_echo "$ac_try_echo"; } >&5
 1619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1620   ac_status=$?
 1621   if test -s conftest.err; then
 1622     grep -v '^ *+' conftest.err >conftest.er1
 1623     cat conftest.er1 >&5
 1624     mv -f conftest.er1 conftest.err
 1625   fi
 1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1627   test $ac_status = 0; } > conftest.i && {
 1628      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1629      test ! -s conftest.err
 1630        }; then :
 1631   ac_retval=0
 1632 else
 1633   $as_echo "$as_me: failed program was:" >&5
 1634 sed 's/^/| /' conftest.$ac_ext >&5
 1635 
 1636     ac_retval=1
 1637 fi
 1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1639   as_fn_set_status $ac_retval
 1640 
 1641 } # ac_fn_c_try_cpp
 1642 
 1643 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1644 # -------------------------------------------------------
 1645 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1646 # the include files in INCLUDES and setting the cache variable VAR
 1647 # accordingly.
 1648 ac_fn_c_check_header_mongrel ()
 1649 {
 1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1651   if eval \${$3+:} false; then :
 1652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1653 $as_echo_n "checking for $2... " >&6; }
 1654 if eval \${$3+:} false; then :
 1655   $as_echo_n "(cached) " >&6
 1656 fi
 1657 eval ac_res=\$$3
 1658            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1659 $as_echo "$ac_res" >&6; }
 1660 else
 1661   # Is the header compilable?
 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1663 $as_echo_n "checking $2 usability... " >&6; }
 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1665 /* end confdefs.h.  */
 1666 $4
 1667 #include <$2>
 1668 _ACEOF
 1669 if ac_fn_c_try_compile "$LINENO"; then :
 1670   ac_header_compiler=yes
 1671 else
 1672   ac_header_compiler=no
 1673 fi
 1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1676 $as_echo "$ac_header_compiler" >&6; }
 1677 
 1678 # Is the header present?
 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1680 $as_echo_n "checking $2 presence... " >&6; }
 1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1682 /* end confdefs.h.  */
 1683 #include <$2>
 1684 _ACEOF
 1685 if ac_fn_c_try_cpp "$LINENO"; then :
 1686   ac_header_preproc=yes
 1687 else
 1688   ac_header_preproc=no
 1689 fi
 1690 rm -f conftest.err conftest.i conftest.$ac_ext
 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1692 $as_echo "$ac_header_preproc" >&6; }
 1693 
 1694 # So?  What about this header?
 1695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1696   yes:no: )
 1697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1698 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1700 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1701     ;;
 1702   no:yes:* )
 1703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1704 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1706 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1707     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1708 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1710 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1711     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1712 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1713 ( $as_echo "## ------------------------------------ ##
 1714 ## Report this to nsd-bugs@nlnetlabs.nl ##
 1715 ## ------------------------------------ ##"
 1716      ) | sed "s/^/$as_me: WARNING:     /" >&2
 1717     ;;
 1718 esac
 1719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1720 $as_echo_n "checking for $2... " >&6; }
 1721 if eval \${$3+:} false; then :
 1722   $as_echo_n "(cached) " >&6
 1723 else
 1724   eval "$3=\$ac_header_compiler"
 1725 fi
 1726 eval ac_res=\$$3
 1727            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1728 $as_echo "$ac_res" >&6; }
 1729 fi
 1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1731 
 1732 } # ac_fn_c_check_header_mongrel
 1733 
 1734 # ac_fn_c_try_run LINENO
 1735 # ----------------------
 1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1737 # that executables *can* be run.
 1738 ac_fn_c_try_run ()
 1739 {
 1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1741   if { { ac_try="$ac_link"
 1742 case "(($ac_try" in
 1743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1744   *) ac_try_echo=$ac_try;;
 1745 esac
 1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1747 $as_echo "$ac_try_echo"; } >&5
 1748   (eval "$ac_link") 2>&5
 1749   ac_status=$?
 1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1751   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1752   { { case "(($ac_try" in
 1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1754   *) ac_try_echo=$ac_try;;
 1755 esac
 1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1757 $as_echo "$ac_try_echo"; } >&5
 1758   (eval "$ac_try") 2>&5
 1759   ac_status=$?
 1760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1761   test $ac_status = 0; }; }; then :
 1762   ac_retval=0
 1763 else
 1764   $as_echo "$as_me: program exited with status $ac_status" >&5
 1765        $as_echo "$as_me: failed program was:" >&5
 1766 sed 's/^/| /' conftest.$ac_ext >&5
 1767 
 1768        ac_retval=$ac_status
 1769 fi
 1770   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1772   as_fn_set_status $ac_retval
 1773 
 1774 } # ac_fn_c_try_run
 1775 
 1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1777 # -------------------------------------------------------
 1778 # Tests whether HEADER exists and can be compiled using the include files in
 1779 # INCLUDES, setting the cache variable VAR accordingly.
 1780 ac_fn_c_check_header_compile ()
 1781 {
 1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1784 $as_echo_n "checking for $2... " >&6; }
 1785 if eval \${$3+:} false; then :
 1786   $as_echo_n "(cached) " >&6
 1787 else
 1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1789 /* end confdefs.h.  */
 1790 $4
 1791 #include <$2>
 1792 _ACEOF
 1793 if ac_fn_c_try_compile "$LINENO"; then :
 1794   eval "$3=yes"
 1795 else
 1796   eval "$3=no"
 1797 fi
 1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1799 fi
 1800 eval ac_res=\$$3
 1801            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1802 $as_echo "$ac_res" >&6; }
 1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1804 
 1805 } # ac_fn_c_check_header_compile
 1806 
 1807 # ac_fn_c_try_link LINENO
 1808 # -----------------------
 1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
 1810 ac_fn_c_try_link ()
 1811 {
 1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1813   rm -f conftest.$ac_objext conftest$ac_exeext
 1814   if { { ac_try="$ac_link"
 1815 case "(($ac_try" in
 1816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1817   *) ac_try_echo=$ac_try;;
 1818 esac
 1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1820 $as_echo "$ac_try_echo"; } >&5
 1821   (eval "$ac_link") 2>conftest.err
 1822   ac_status=$?
 1823   if test -s conftest.err; then
 1824     grep -v '^ *+' conftest.err >conftest.er1
 1825     cat conftest.er1 >&5
 1826     mv -f conftest.er1 conftest.err
 1827   fi
 1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1829   test $ac_status = 0; } && {
 1830      test -z "$ac_c_werror_flag" ||
 1831      test ! -s conftest.err
 1832        } && test -s conftest$ac_exeext && {
 1833      test "$cross_compiling" = yes ||
 1834      test -x conftest$ac_exeext
 1835        }; then :
 1836   ac_retval=0
 1837 else
 1838   $as_echo "$as_me: failed program was:" >&5
 1839 sed 's/^/| /' conftest.$ac_ext >&5
 1840 
 1841     ac_retval=1
 1842 fi
 1843   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1844   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1845   # interfere with the next link command; also delete a directory that is
 1846   # left behind by Apple's compiler.  We do this before executing the actions.
 1847   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1849   as_fn_set_status $ac_retval
 1850 
 1851 } # ac_fn_c_try_link
 1852 
 1853 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 1854 # -------------------------------------------
 1855 # Tests whether TYPE exists after having included INCLUDES, setting cache
 1856 # variable VAR accordingly.
 1857 ac_fn_c_check_type ()
 1858 {
 1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1861 $as_echo_n "checking for $2... " >&6; }
 1862 if eval \${$3+:} false; then :
 1863   $as_echo_n "(cached) " >&6
 1864 else
 1865   eval "$3=no"
 1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1867 /* end confdefs.h.  */
 1868 $4
 1869 int
 1870 main ()
 1871 {
 1872 if (sizeof ($2))
 1873      return 0;
 1874   ;
 1875   return 0;
 1876 }
 1877 _ACEOF
 1878 if ac_fn_c_try_compile "$LINENO"; then :
 1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1880 /* end confdefs.h.  */
 1881 $4
 1882 int
 1883 main ()
 1884 {
 1885 if (sizeof (($2)))
 1886         return 0;
 1887   ;
 1888   return 0;
 1889 }
 1890 _ACEOF
 1891 if ac_fn_c_try_compile "$LINENO"; then :
 1892 
 1893 else
 1894   eval "$3=yes"
 1895 fi
 1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1897 fi
 1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1899 fi
 1900 eval ac_res=\$$3
 1901            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1902 $as_echo "$ac_res" >&6; }
 1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1904 
 1905 } # ac_fn_c_check_type
 1906 
 1907 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 1908 # ---------------------------------------------
 1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 1910 # accordingly.
 1911 ac_fn_c_check_decl ()
 1912 {
 1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1914   as_decl_name=`echo $2|sed 's/ *(.*//'`
 1915   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 1917 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 1918 if eval \${$3+:} false; then :
 1919   $as_echo_n "(cached) " >&6
 1920 else
 1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1922 /* end confdefs.h.  */
 1923 $4
 1924 int
 1925 main ()
 1926 {
 1927 #ifndef $as_decl_name
 1928 #ifdef __cplusplus
 1929   (void) $as_decl_use;
 1930 #else
 1931   (void) $as_decl_name;
 1932 #endif
 1933 #endif
 1934 
 1935   ;
 1936   return 0;
 1937 }
 1938 _ACEOF
 1939 if ac_fn_c_try_compile "$LINENO"; then :
 1940   eval "$3=yes"
 1941 else
 1942   eval "$3=no"
 1943 fi
 1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1945 fi
 1946 eval ac_res=\$$3
 1947            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1948 $as_echo "$ac_res" >&6; }
 1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1950 
 1951 } # ac_fn_c_check_decl
 1952 
 1953 # ac_fn_c_check_func LINENO FUNC VAR
 1954 # ----------------------------------
 1955 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1956 ac_fn_c_check_func ()
 1957 {
 1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1960 $as_echo_n "checking for $2... " >&6; }
 1961 if eval \${$3+:} false; then :
 1962   $as_echo_n "(cached) " >&6
 1963 else
 1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1965 /* end confdefs.h.  */
 1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1968 #define $2 innocuous_$2
 1969 
 1970 /* System header to define __stub macros and hopefully few prototypes,
 1971     which can conflict with char $2 (); below.
 1972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1973     <limits.h> exists even on freestanding compilers.  */
 1974 
 1975 #ifdef __STDC__
 1976 # include <limits.h>
 1977 #else
 1978 # include <assert.h>
 1979 #endif
 1980 
 1981 #undef $2
 1982 
 1983 /* Override any GCC internal prototype to avoid an error.
 1984    Use char because int might match the return type of a GCC
 1985    builtin and then its argument prototype would still apply.  */
 1986 #ifdef __cplusplus
 1987 extern "C"
 1988 #endif
 1989 char $2 ();
 1990 /* The GNU C library defines this for functions which it implements
 1991     to always fail with ENOSYS.  Some functions are actually named
 1992     something starting with __ and the normal name is an alias.  */
 1993 #if defined __stub_$2 || defined __stub___$2
 1994 choke me
 1995 #endif
 1996 
 1997 int
 1998 main ()
 1999 {
 2000 return $2 ();
 2001   ;
 2002   return 0;
 2003 }
 2004 _ACEOF
 2005 if ac_fn_c_try_link "$LINENO"; then :
 2006   eval "$3=yes"
 2007 else
 2008   eval "$3=no"
 2009 fi
 2010 rm -f core conftest.err conftest.$ac_objext \
 2011     conftest$ac_exeext conftest.$ac_ext
 2012 fi
 2013 eval ac_res=\$$3
 2014            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2015 $as_echo "$ac_res" >&6; }
 2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2017 
 2018 } # ac_fn_c_check_func
 2019 
 2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 2021 # ----------------------------------------------------
 2022 # Tries to find if the field MEMBER exists in type AGGR, after including
 2023 # INCLUDES, setting cache variable VAR accordingly.
 2024 ac_fn_c_check_member ()
 2025 {
 2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 2028 $as_echo_n "checking for $2.$3... " >&6; }
 2029 if eval \${$4+:} false; then :
 2030   $as_echo_n "(cached) " >&6
 2031 else
 2032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2033 /* end confdefs.h.  */
 2034 $5
 2035 int
 2036 main ()
 2037 {
 2038 static $2 ac_aggr;
 2039 if (ac_aggr.$3)
 2040 return 0;
 2041   ;
 2042   return 0;
 2043 }
 2044 _ACEOF
 2045 if ac_fn_c_try_compile "$LINENO"; then :
 2046   eval "$4=yes"
 2047 else
 2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2049 /* end confdefs.h.  */
 2050 $5
 2051 int
 2052 main ()
 2053 {
 2054 static $2 ac_aggr;
 2055 if (sizeof ac_aggr.$3)
 2056 return 0;
 2057   ;
 2058   return 0;
 2059 }
 2060 _ACEOF
 2061 if ac_fn_c_try_compile "$LINENO"; then :
 2062   eval "$4=yes"
 2063 else
 2064   eval "$4=no"
 2065 fi
 2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2067 fi
 2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2069 fi
 2070 eval ac_res=\$$4
 2071            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2072 $as_echo "$ac_res" >&6; }
 2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2074 
 2075 } # ac_fn_c_check_member
 2076 
 2077 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 2078 # --------------------------------------------
 2079 # Tries to find the compile-time value of EXPR in a program that includes
 2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
 2081 # computed
 2082 ac_fn_c_compute_int ()
 2083 {
 2084   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2085   if test "$cross_compiling" = yes; then
 2086     # Depending upon the size, compute the lo and hi bounds.
 2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2088 /* end confdefs.h.  */
 2089 $4
 2090 int
 2091 main ()
 2092 {
 2093 static int test_array [1 - 2 * !(($2) >= 0)];
 2094 test_array [0] = 0;
 2095 return test_array [0];
 2096 
 2097   ;
 2098   return 0;
 2099 }
 2100 _ACEOF
 2101 if ac_fn_c_try_compile "$LINENO"; then :
 2102   ac_lo=0 ac_mid=0
 2103   while :; do
 2104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2105 /* end confdefs.h.  */
 2106 $4
 2107 int
 2108 main ()
 2109 {
 2110 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 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"; then :
 2119   ac_hi=$ac_mid; break
 2120 else
 2121   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 2122             if test $ac_lo -le $ac_mid; then
 2123               ac_lo= ac_hi=
 2124               break
 2125             fi
 2126             as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 2127 fi
 2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2129   done
 2130 else
 2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2132 /* end confdefs.h.  */
 2133 $4
 2134 int
 2135 main ()
 2136 {
 2137 static int test_array [1 - 2 * !(($2) < 0)];
 2138 test_array [0] = 0;
 2139 return test_array [0];
 2140 
 2141   ;
 2142   return 0;
 2143 }
 2144 _ACEOF
 2145 if ac_fn_c_try_compile "$LINENO"; then :
 2146   ac_hi=-1 ac_mid=-1
 2147   while :; do
 2148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2149 /* end confdefs.h.  */
 2150 $4
 2151 int
 2152 main ()
 2153 {
 2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 2155 test_array [0] = 0;
 2156 return test_array [0];
 2157 
 2158   ;
 2159   return 0;
 2160 }
 2161 _ACEOF
 2162 if ac_fn_c_try_compile "$LINENO"; then :
 2163   ac_lo=$ac_mid; break
 2164 else
 2165   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 2166             if test $ac_mid -le $ac_hi; then
 2167               ac_lo= ac_hi=
 2168               break
 2169             fi
 2170             as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 2171 fi
 2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2173   done
 2174 else
 2175   ac_lo= ac_hi=
 2176 fi
 2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2178 fi
 2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2180 # Binary search between lo and hi bounds.
 2181 while test "x$ac_lo" != "x$ac_hi"; do
 2182   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 2183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2184 /* end confdefs.h.  */
 2185 $4
 2186 int
 2187 main ()
 2188 {
 2189 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2190 test_array [0] = 0;
 2191 return test_array [0];
 2192 
 2193   ;
 2194   return 0;
 2195 }
 2196 _ACEOF
 2197 if ac_fn_c_try_compile "$LINENO"; then :
 2198   ac_hi=$ac_mid
 2199 else
 2200   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 2201 fi
 2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2203 done
 2204 case $ac_lo in #((
 2205 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 2206 '') ac_retval=1 ;;
 2207 esac
 2208   else
 2209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2210 /* end confdefs.h.  */
 2211 $4
 2212 static long int longval () { return $2; }
 2213 static unsigned long int ulongval () { return $2; }
 2214 #include <stdio.h>
 2215 #include <stdlib.h>
 2216 int
 2217 main ()
 2218 {
 2219 
 2220   FILE *f = fopen ("conftest.val", "w");
 2221   if (! f)
 2222     return 1;
 2223   if (($2) < 0)
 2224     {
 2225       long int i = longval ();
 2226       if (i != ($2))
 2227     return 1;
 2228       fprintf (f, "%ld", i);
 2229     }
 2230   else
 2231     {
 2232       unsigned long int i = ulongval ();
 2233       if (i != ($2))
 2234     return 1;
 2235       fprintf (f, "%lu", i);
 2236     }
 2237   /* Do not output a trailing newline, as this causes \r\n confusion
 2238      on some platforms.  */
 2239   return ferror (f) || fclose (f) != 0;
 2240 
 2241   ;
 2242   return 0;
 2243 }
 2244 _ACEOF
 2245 if ac_fn_c_try_run "$LINENO"; then :
 2246   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 2247 else
 2248   ac_retval=1
 2249 fi
 2250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 2251   conftest.$ac_objext conftest.beam conftest.$ac_ext
 2252 rm -f conftest.val
 2253 
 2254   fi
 2255   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2256   as_fn_set_status $ac_retval
 2257 
 2258 } # ac_fn_c_compute_int
 2259 cat >config.log <<_ACEOF
 2260 This file contains any messages produced by compilers while
 2261 running configure, to aid debugging if configure makes a mistake.
 2262 
 2263 It was created by NSD $as_me 4.3.6, which was
 2264 generated by GNU Autoconf 2.69.  Invocation command line was
 2265 
 2266   $ $0 $@
 2267 
 2268 _ACEOF
 2269 exec 5>>config.log
 2270 {
 2271 cat <<_ASUNAME
 2272 ## --------- ##
 2273 ## Platform. ##
 2274 ## --------- ##
 2275 
 2276 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2277 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2278 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2279 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2280 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2281 
 2282 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2283 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2284 
 2285 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2286 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2287 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2288 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2289 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2290 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2291 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2292 
 2293 _ASUNAME
 2294 
 2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2296 for as_dir in $PATH
 2297 do
 2298   IFS=$as_save_IFS
 2299   test -z "$as_dir" && as_dir=.
 2300     $as_echo "PATH: $as_dir"
 2301   done
 2302 IFS=$as_save_IFS
 2303 
 2304 } >&5
 2305 
 2306 cat >&5 <<_ACEOF
 2307 
 2308 
 2309 ## ----------- ##
 2310 ## Core tests. ##
 2311 ## ----------- ##
 2312 
 2313 _ACEOF
 2314 
 2315 
 2316 # Keep a trace of the command line.
 2317 # Strip out --no-create and --no-recursion so they do not pile up.
 2318 # Strip out --silent because we don't want to record it for future runs.
 2319 # Also quote any args containing shell meta-characters.
 2320 # Make two passes to allow for proper duplicate-argument suppression.
 2321 ac_configure_args=
 2322 ac_configure_args0=
 2323 ac_configure_args1=
 2324 ac_must_keep_next=false
 2325 for ac_pass in 1 2
 2326 do
 2327   for ac_arg
 2328   do
 2329     case $ac_arg in
 2330     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2331     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2332     | -silent | --silent | --silen | --sile | --sil)
 2333       continue ;;
 2334     *\'*)
 2335       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2336     esac
 2337     case $ac_pass in
 2338     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2339     2)
 2340       as_fn_append ac_configure_args1 " '$ac_arg'"
 2341       if test $ac_must_keep_next = true; then
 2342     ac_must_keep_next=false # Got value, back to normal.
 2343       else
 2344     case $ac_arg in
 2345       *=* | --config-cache | -C | -disable-* | --disable-* \
 2346       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2347       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2348       | -with-* | --with-* | -without-* | --without-* | --x)
 2349         case "$ac_configure_args0 " in
 2350           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2351         esac
 2352         ;;
 2353       -* ) ac_must_keep_next=true ;;
 2354     esac
 2355       fi
 2356       as_fn_append ac_configure_args " '$ac_arg'"
 2357       ;;
 2358     esac
 2359   done
 2360 done
 2361 { ac_configure_args0=; unset ac_configure_args0;}
 2362 { ac_configure_args1=; unset ac_configure_args1;}
 2363 
 2364 # When interrupted or exit'd, cleanup temporary files, and complete
 2365 # config.log.  We remove comments because anyway the quotes in there
 2366 # would cause problems or look ugly.
 2367 # WARNING: Use '\'' to represent an apostrophe within the trap.
 2368 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2369 trap 'exit_status=$?
 2370   # Save into config.log some information that might help in debugging.
 2371   {
 2372     echo
 2373 
 2374     $as_echo "## ---------------- ##
 2375 ## Cache variables. ##
 2376 ## ---------------- ##"
 2377     echo
 2378     # The following way of writing the cache mishandles newlines in values,
 2379 (
 2380   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2381     eval ac_val=\$$ac_var
 2382     case $ac_val in #(
 2383     *${as_nl}*)
 2384       case $ac_var in #(
 2385       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2387       esac
 2388       case $ac_var in #(
 2389       _ | IFS | as_nl) ;; #(
 2390       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2391       *) { eval $ac_var=; unset $ac_var;} ;;
 2392       esac ;;
 2393     esac
 2394   done
 2395   (set) 2>&1 |
 2396     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2397     *${as_nl}ac_space=\ *)
 2398       sed -n \
 2399     "s/'\''/'\''\\\\'\'''\''/g;
 2400       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2401       ;; #(
 2402     *)
 2403       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2404       ;;
 2405     esac |
 2406     sort
 2407 )
 2408     echo
 2409 
 2410     $as_echo "## ----------------- ##
 2411 ## Output variables. ##
 2412 ## ----------------- ##"
 2413     echo
 2414     for ac_var in $ac_subst_vars
 2415     do
 2416       eval ac_val=\$$ac_var
 2417       case $ac_val in
 2418       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2419       esac
 2420       $as_echo "$ac_var='\''$ac_val'\''"
 2421     done | sort
 2422     echo
 2423 
 2424     if test -n "$ac_subst_files"; then
 2425       $as_echo "## ------------------- ##
 2426 ## File substitutions. ##
 2427 ## ------------------- ##"
 2428       echo
 2429       for ac_var in $ac_subst_files
 2430       do
 2431     eval ac_val=\$$ac_var
 2432     case $ac_val in
 2433     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2434     esac
 2435     $as_echo "$ac_var='\''$ac_val'\''"
 2436       done | sort
 2437       echo
 2438     fi
 2439 
 2440     if test -s confdefs.h; then
 2441       $as_echo "## ----------- ##
 2442 ## confdefs.h. ##
 2443 ## ----------- ##"
 2444       echo
 2445       cat confdefs.h
 2446       echo
 2447     fi
 2448     test "$ac_signal" != 0 &&
 2449       $as_echo "$as_me: caught signal $ac_signal"
 2450     $as_echo "$as_me: exit $exit_status"
 2451   } >&5
 2452   rm -f core *.core core.conftest.* &&
 2453     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2454     exit $exit_status
 2455 ' 0
 2456 for ac_signal in 1 2 13 15; do
 2457   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2458 done
 2459 ac_signal=0
 2460 
 2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2462 rm -f -r conftest* confdefs.h
 2463 
 2464 $as_echo "/* confdefs.h */" > confdefs.h
 2465 
 2466 # Predefined preprocessor variables.
 2467 
 2468 cat >>confdefs.h <<_ACEOF
 2469 #define PACKAGE_NAME "$PACKAGE_NAME"
 2470 _ACEOF
 2471 
 2472 cat >>confdefs.h <<_ACEOF
 2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2474 _ACEOF
 2475 
 2476 cat >>confdefs.h <<_ACEOF
 2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2478 _ACEOF
 2479 
 2480 cat >>confdefs.h <<_ACEOF
 2481 #define PACKAGE_STRING "$PACKAGE_STRING"
 2482 _ACEOF
 2483 
 2484 cat >>confdefs.h <<_ACEOF
 2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2486 _ACEOF
 2487 
 2488 cat >>confdefs.h <<_ACEOF
 2489 #define PACKAGE_URL "$PACKAGE_URL"
 2490 _ACEOF
 2491 
 2492 
 2493 # Let the site file select an alternate cache file if it wants to.
 2494 # Prefer an explicitly selected file to automatically selected ones.
 2495 ac_site_file1=NONE
 2496 ac_site_file2=NONE
 2497 if test -n "$CONFIG_SITE"; then
 2498   # We do not want a PATH search for config.site.
 2499   case $CONFIG_SITE in #((
 2500     -*)  ac_site_file1=./$CONFIG_SITE;;
 2501     */*) ac_site_file1=$CONFIG_SITE;;
 2502     *)   ac_site_file1=./$CONFIG_SITE;;
 2503   esac
 2504 elif test "x$prefix" != xNONE; then
 2505   ac_site_file1=$prefix/share/config.site
 2506   ac_site_file2=$prefix/etc/config.site
 2507 else
 2508   ac_site_file1=$ac_default_prefix/share/config.site
 2509   ac_site_file2=$ac_default_prefix/etc/config.site
 2510 fi
 2511 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2512 do
 2513   test "x$ac_site_file" = xNONE && continue
 2514   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2515     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2516 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2517     sed 's/^/| /' "$ac_site_file" >&5
 2518     . "$ac_site_file" \
 2519       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2521 as_fn_error $? "failed to load site script $ac_site_file
 2522 See \`config.log' for more details" "$LINENO" 5; }
 2523   fi
 2524 done
 2525 
 2526 if test -r "$cache_file"; then
 2527   # Some versions of bash will fail to source /dev/null (special files
 2528   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2529   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2530     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2531 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2532     case $cache_file in
 2533       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2534       *)                      . "./$cache_file";;
 2535     esac
 2536   fi
 2537 else
 2538   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2539 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2540   >$cache_file
 2541 fi
 2542 
 2543 # Check that the precious variables saved in the cache have kept the same
 2544 # value.
 2545 ac_cache_corrupted=false
 2546 for ac_var in $ac_precious_vars; do
 2547   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2548   eval ac_new_set=\$ac_env_${ac_var}_set
 2549   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2550   eval ac_new_val=\$ac_env_${ac_var}_value
 2551   case $ac_old_set,$ac_new_set in
 2552     set,)
 2553       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2555       ac_cache_corrupted=: ;;
 2556     ,set)
 2557       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2559       ac_cache_corrupted=: ;;
 2560     ,);;
 2561     *)
 2562       if test "x$ac_old_val" != "x$ac_new_val"; then
 2563     # differences in whitespace do not lead to failure.
 2564     ac_old_val_w=`echo x $ac_old_val`
 2565     ac_new_val_w=`echo x $ac_new_val`
 2566     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2567       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2569       ac_cache_corrupted=:
 2570     else
 2571       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2573       eval $ac_var=\$ac_old_val
 2574     fi
 2575     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2576 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2577     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2578 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2579       fi;;
 2580   esac
 2581   # Pass precious variables to config.status.
 2582   if test "$ac_new_set" = set; then
 2583     case $ac_new_val in
 2584     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2585     *) ac_arg=$ac_var=$ac_new_val ;;
 2586     esac
 2587     case " $ac_configure_args " in
 2588       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2589       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2590     esac
 2591   fi
 2592 done
 2593 if $ac_cache_corrupted; then
 2594   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2596   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2598   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2599 fi
 2600 ## -------------------- ##
 2601 ## Main body of script. ##
 2602 ## -------------------- ##
 2603 
 2604 ac_ext=c
 2605 ac_cpp='$CPP $CPPFLAGS'
 2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2609 
 2610 
 2611 ac_config_headers="$ac_config_headers config.h"
 2612 
 2613 
 2614 #
 2615 # Setup the standard programs
 2616 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html
 2617 
 2618 
 2619 
 2620 
 2621 
 2622 
 2623 
 2624 
 2625 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
 2626 
 2627 cat >>confdefs.h <<_ACEOF
 2628 #define CONFCMDLINE "$cmdln"
 2629 _ACEOF
 2630 
 2631 
 2632 CFLAGS="$CFLAGS"
 2633 ac_ext=c
 2634 ac_cpp='$CPP $CPPFLAGS'
 2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2638 if test -n "$ac_tool_prefix"; then
 2639   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2642 $as_echo_n "checking for $ac_word... " >&6; }
 2643 if ${ac_cv_prog_CC+:} false; then :
 2644   $as_echo_n "(cached) " >&6
 2645 else
 2646   if test -n "$CC"; then
 2647   ac_cv_prog_CC="$CC" # Let the user override the test.
 2648 else
 2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2650 for as_dir in $PATH
 2651 do
 2652   IFS=$as_save_IFS
 2653   test -z "$as_dir" && as_dir=.
 2654     for ac_exec_ext in '' $ac_executable_extensions; do
 2655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2656     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2658     break 2
 2659   fi
 2660 done
 2661   done
 2662 IFS=$as_save_IFS
 2663 
 2664 fi
 2665 fi
 2666 CC=$ac_cv_prog_CC
 2667 if test -n "$CC"; then
 2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2669 $as_echo "$CC" >&6; }
 2670 else
 2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2672 $as_echo "no" >&6; }
 2673 fi
 2674 
 2675 
 2676 fi
 2677 if test -z "$ac_cv_prog_CC"; then
 2678   ac_ct_CC=$CC
 2679   # Extract the first word of "gcc", so it can be a program name with args.
 2680 set dummy gcc; ac_word=$2
 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2682 $as_echo_n "checking for $ac_word... " >&6; }
 2683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2684   $as_echo_n "(cached) " >&6
 2685 else
 2686   if test -n "$ac_ct_CC"; then
 2687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2688 else
 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2690 for as_dir in $PATH
 2691 do
 2692   IFS=$as_save_IFS
 2693   test -z "$as_dir" && as_dir=.
 2694     for ac_exec_ext in '' $ac_executable_extensions; do
 2695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2696     ac_cv_prog_ac_ct_CC="gcc"
 2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2698     break 2
 2699   fi
 2700 done
 2701   done
 2702 IFS=$as_save_IFS
 2703 
 2704 fi
 2705 fi
 2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2707 if test -n "$ac_ct_CC"; then
 2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2709 $as_echo "$ac_ct_CC" >&6; }
 2710 else
 2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2712 $as_echo "no" >&6; }
 2713 fi
 2714 
 2715   if test "x$ac_ct_CC" = x; then
 2716     CC=""
 2717   else
 2718     case $cross_compiling:$ac_tool_warned in
 2719 yes:)
 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2722 ac_tool_warned=yes ;;
 2723 esac
 2724     CC=$ac_ct_CC
 2725   fi
 2726 else
 2727   CC="$ac_cv_prog_CC"
 2728 fi
 2729 
 2730 if test -z "$CC"; then
 2731           if test -n "$ac_tool_prefix"; then
 2732     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2733 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2735 $as_echo_n "checking for $ac_word... " >&6; }
 2736 if ${ac_cv_prog_CC+:} false; then :
 2737   $as_echo_n "(cached) " >&6
 2738 else
 2739   if test -n "$CC"; then
 2740   ac_cv_prog_CC="$CC" # Let the user override the test.
 2741 else
 2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2743 for as_dir in $PATH
 2744 do
 2745   IFS=$as_save_IFS
 2746   test -z "$as_dir" && as_dir=.
 2747     for ac_exec_ext in '' $ac_executable_extensions; do
 2748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2749     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2751     break 2
 2752   fi
 2753 done
 2754   done
 2755 IFS=$as_save_IFS
 2756 
 2757 fi
 2758 fi
 2759 CC=$ac_cv_prog_CC
 2760 if test -n "$CC"; then
 2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2762 $as_echo "$CC" >&6; }
 2763 else
 2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2765 $as_echo "no" >&6; }
 2766 fi
 2767 
 2768 
 2769   fi
 2770 fi
 2771 if test -z "$CC"; then
 2772   # Extract the first word of "cc", so it can be a program name with args.
 2773 set dummy cc; ac_word=$2
 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2775 $as_echo_n "checking for $ac_word... " >&6; }
 2776 if ${ac_cv_prog_CC+:} false; then :
 2777   $as_echo_n "(cached) " >&6
 2778 else
 2779   if test -n "$CC"; then
 2780   ac_cv_prog_CC="$CC" # Let the user override the test.
 2781 else
 2782   ac_prog_rejected=no
 2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2784 for as_dir in $PATH
 2785 do
 2786   IFS=$as_save_IFS
 2787   test -z "$as_dir" && as_dir=.
 2788     for ac_exec_ext in '' $ac_executable_extensions; do
 2789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2791        ac_prog_rejected=yes
 2792        continue
 2793      fi
 2794     ac_cv_prog_CC="cc"
 2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2796     break 2
 2797   fi
 2798 done
 2799   done
 2800 IFS=$as_save_IFS
 2801 
 2802 if test $ac_prog_rejected = yes; then
 2803   # We found a bogon in the path, so make sure we never use it.
 2804   set dummy $ac_cv_prog_CC
 2805   shift
 2806   if test $# != 0; then
 2807     # We chose a different compiler from the bogus one.
 2808     # However, it has the same basename, so the bogon will be chosen
 2809     # first if we set CC to just the basename; use the full file name.
 2810     shift
 2811     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2812   fi
 2813 fi
 2814 fi
 2815 fi
 2816 CC=$ac_cv_prog_CC
 2817 if test -n "$CC"; then
 2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2819 $as_echo "$CC" >&6; }
 2820 else
 2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2822 $as_echo "no" >&6; }
 2823 fi
 2824 
 2825 
 2826 fi
 2827 if test -z "$CC"; then
 2828   if test -n "$ac_tool_prefix"; then
 2829   for ac_prog in cl.exe
 2830   do
 2831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2834 $as_echo_n "checking for $ac_word... " >&6; }
 2835 if ${ac_cv_prog_CC+:} false; then :
 2836   $as_echo_n "(cached) " >&6
 2837 else
 2838   if test -n "$CC"; then
 2839   ac_cv_prog_CC="$CC" # Let the user override the test.
 2840 else
 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2842 for as_dir in $PATH
 2843 do
 2844   IFS=$as_save_IFS
 2845   test -z "$as_dir" && as_dir=.
 2846     for ac_exec_ext in '' $ac_executable_extensions; do
 2847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2848     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2850     break 2
 2851   fi
 2852 done
 2853   done
 2854 IFS=$as_save_IFS
 2855 
 2856 fi
 2857 fi
 2858 CC=$ac_cv_prog_CC
 2859 if test -n "$CC"; then
 2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2861 $as_echo "$CC" >&6; }
 2862 else
 2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2864 $as_echo "no" >&6; }
 2865 fi
 2866 
 2867 
 2868     test -n "$CC" && break
 2869   done
 2870 fi
 2871 if test -z "$CC"; then
 2872   ac_ct_CC=$CC
 2873   for ac_prog in cl.exe
 2874 do
 2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2876 set dummy $ac_prog; ac_word=$2
 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2878 $as_echo_n "checking for $ac_word... " >&6; }
 2879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2880   $as_echo_n "(cached) " >&6
 2881 else
 2882   if test -n "$ac_ct_CC"; then
 2883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2884 else
 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2886 for as_dir in $PATH
 2887 do
 2888   IFS=$as_save_IFS
 2889   test -z "$as_dir" && as_dir=.
 2890     for ac_exec_ext in '' $ac_executable_extensions; do
 2891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2892     ac_cv_prog_ac_ct_CC="$ac_prog"
 2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2894     break 2
 2895   fi
 2896 done
 2897   done
 2898 IFS=$as_save_IFS
 2899 
 2900 fi
 2901 fi
 2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2903 if test -n "$ac_ct_CC"; then
 2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2905 $as_echo "$ac_ct_CC" >&6; }
 2906 else
 2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2908 $as_echo "no" >&6; }
 2909 fi
 2910 
 2911 
 2912   test -n "$ac_ct_CC" && break
 2913 done
 2914 
 2915   if test "x$ac_ct_CC" = x; then
 2916     CC=""
 2917   else
 2918     case $cross_compiling:$ac_tool_warned in
 2919 yes:)
 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2922 ac_tool_warned=yes ;;
 2923 esac
 2924     CC=$ac_ct_CC
 2925   fi
 2926 fi
 2927 
 2928 fi
 2929 
 2930 
 2931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2933 as_fn_error $? "no acceptable C compiler found in \$PATH
 2934 See \`config.log' for more details" "$LINENO" 5; }
 2935 
 2936 # Provide some information about the compiler.
 2937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2938 set X $ac_compile
 2939 ac_compiler=$2
 2940 for ac_option in --version -v -V -qversion; do
 2941   { { ac_try="$ac_compiler $ac_option >&5"
 2942 case "(($ac_try" in
 2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2944   *) ac_try_echo=$ac_try;;
 2945 esac
 2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2947 $as_echo "$ac_try_echo"; } >&5
 2948   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2949   ac_status=$?
 2950   if test -s conftest.err; then
 2951     sed '10a\
 2952 ... rest of stderr output deleted ...
 2953          10q' conftest.err >conftest.er1
 2954     cat conftest.er1 >&5
 2955   fi
 2956   rm -f conftest.er1 conftest.err
 2957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2958   test $ac_status = 0; }
 2959 done
 2960 
 2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2962 /* end confdefs.h.  */
 2963 
 2964 int
 2965 main ()
 2966 {
 2967 
 2968   ;
 2969   return 0;
 2970 }
 2971 _ACEOF
 2972 ac_clean_files_save=$ac_clean_files
 2973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2974 # Try to create an executable without -o first, disregard a.out.
 2975 # It will help us diagnose broken compilers, and finding out an intuition
 2976 # of exeext.
 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2978 $as_echo_n "checking whether the C compiler works... " >&6; }
 2979 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2980 
 2981 # The possible output files:
 2982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2983 
 2984 ac_rmfiles=
 2985 for ac_file in $ac_files
 2986 do
 2987   case $ac_file in
 2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2989     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2990   esac
 2991 done
 2992 rm -f $ac_rmfiles
 2993 
 2994 if { { ac_try="$ac_link_default"
 2995 case "(($ac_try" in
 2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2997   *) ac_try_echo=$ac_try;;
 2998 esac
 2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3000 $as_echo "$ac_try_echo"; } >&5
 3001   (eval "$ac_link_default") 2>&5
 3002   ac_status=$?
 3003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3004   test $ac_status = 0; }; then :
 3005   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 3006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 3007 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 3008 # so that the user can short-circuit this test for compilers unknown to
 3009 # Autoconf.
 3010 for ac_file in $ac_files ''
 3011 do
 3012   test -f "$ac_file" || continue
 3013   case $ac_file in
 3014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 3015     ;;
 3016     [ab].out )
 3017     # We found the default executable, but exeext='' is most
 3018     # certainly right.
 3019     break;;
 3020     *.* )
 3021     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3022     then :; else
 3023        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3024     fi
 3025     # We set ac_cv_exeext here because the later test for it is not
 3026     # safe: cross compilers may not add the suffix if given an `-o'
 3027     # argument, so we may need to know it at that point already.
 3028     # Even if this section looks crufty: it has the advantage of
 3029     # actually working.
 3030     break;;
 3031     * )
 3032     break;;
 3033   esac
 3034 done
 3035 test "$ac_cv_exeext" = no && ac_cv_exeext=
 3036 
 3037 else
 3038   ac_file=''
 3039 fi
 3040 if test -z "$ac_file"; then :
 3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3042 $as_echo "no" >&6; }
 3043 $as_echo "$as_me: failed program was:" >&5
 3044 sed 's/^/| /' conftest.$ac_ext >&5
 3045 
 3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3048 as_fn_error 77 "C compiler cannot create executables
 3049 See \`config.log' for more details" "$LINENO" 5; }
 3050 else
 3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3052 $as_echo "yes" >&6; }
 3053 fi
 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3057 $as_echo "$ac_file" >&6; }
 3058 ac_exeext=$ac_cv_exeext
 3059 
 3060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3061 ac_clean_files=$ac_clean_files_save
 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3063 $as_echo_n "checking for suffix of executables... " >&6; }
 3064 if { { ac_try="$ac_link"
 3065 case "(($ac_try" in
 3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3067   *) ac_try_echo=$ac_try;;
 3068 esac
 3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3070 $as_echo "$ac_try_echo"; } >&5
 3071   (eval "$ac_link") 2>&5
 3072   ac_status=$?
 3073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3074   test $ac_status = 0; }; then :
 3075   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3076 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3077 # work properly (i.e., refer to `conftest.exe'), while it won't with
 3078 # `rm'.
 3079 for ac_file in conftest.exe conftest conftest.*; do
 3080   test -f "$ac_file" || continue
 3081   case $ac_file in
 3082     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3083     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3084       break;;
 3085     * ) break;;
 3086   esac
 3087 done
 3088 else
 3089   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3091 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3092 See \`config.log' for more details" "$LINENO" 5; }
 3093 fi
 3094 rm -f conftest conftest$ac_cv_exeext
 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3096 $as_echo "$ac_cv_exeext" >&6; }
 3097 
 3098 rm -f conftest.$ac_ext
 3099 EXEEXT=$ac_cv_exeext
 3100 ac_exeext=$EXEEXT
 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3102 /* end confdefs.h.  */
 3103 #include <stdio.h>
 3104 int
 3105 main ()
 3106 {
 3107 FILE *f = fopen ("conftest.out", "w");
 3108  return ferror (f) || fclose (f) != 0;
 3109 
 3110   ;
 3111   return 0;
 3112 }
 3113 _ACEOF
 3114 ac_clean_files="$ac_clean_files conftest.out"
 3115 # Check that the compiler produces executables we can run.  If not, either
 3116 # the compiler is broken, or we cross compile.
 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
 3119 if test "$cross_compiling" != yes; then
 3120   { { ac_try="$ac_link"
 3121 case "(($ac_try" in
 3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3123   *) ac_try_echo=$ac_try;;
 3124 esac
 3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3126 $as_echo "$ac_try_echo"; } >&5
 3127   (eval "$ac_link") 2>&5
 3128   ac_status=$?
 3129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3130   test $ac_status = 0; }
 3131   if { ac_try='./conftest$ac_cv_exeext'
 3132   { { case "(($ac_try" in
 3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3134   *) ac_try_echo=$ac_try;;
 3135 esac
 3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3137 $as_echo "$ac_try_echo"; } >&5
 3138   (eval "$ac_try") 2>&5
 3139   ac_status=$?
 3140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3141   test $ac_status = 0; }; }; then
 3142     cross_compiling=no
 3143   else
 3144     if test "$cross_compiling" = maybe; then
 3145     cross_compiling=yes
 3146     else
 3147     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3149 as_fn_error $? "cannot run C compiled programs.
 3150 If you meant to cross compile, use \`--host'.
 3151 See \`config.log' for more details" "$LINENO" 5; }
 3152     fi
 3153   fi
 3154 fi
 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3156 $as_echo "$cross_compiling" >&6; }
 3157 
 3158 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3159 ac_clean_files=$ac_clean_files_save
 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3161 $as_echo_n "checking for suffix of object files... " >&6; }
 3162 if ${ac_cv_objext+:} false; then :
 3163   $as_echo_n "(cached) " >&6
 3164 else
 3165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3166 /* end confdefs.h.  */
 3167 
 3168 int
 3169 main ()
 3170 {
 3171 
 3172   ;
 3173   return 0;
 3174 }
 3175 _ACEOF
 3176 rm -f conftest.o conftest.obj
 3177 if { { ac_try="$ac_compile"
 3178 case "(($ac_try" in
 3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3180   *) ac_try_echo=$ac_try;;
 3181 esac
 3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3183 $as_echo "$ac_try_echo"; } >&5
 3184   (eval "$ac_compile") 2>&5
 3185   ac_status=$?
 3186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3187   test $ac_status = 0; }; then :
 3188   for ac_file in conftest.o conftest.obj conftest.*; do
 3189   test -f "$ac_file" || continue;
 3190   case $ac_file in
 3191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3192     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3193        break;;
 3194   esac
 3195 done
 3196 else
 3197   $as_echo "$as_me: failed program was:" >&5
 3198 sed 's/^/| /' conftest.$ac_ext >&5
 3199 
 3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3202 as_fn_error $? "cannot compute suffix of object files: cannot compile
 3203 See \`config.log' for more details" "$LINENO" 5; }
 3204 fi
 3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3206 fi
 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3208 $as_echo "$ac_cv_objext" >&6; }
 3209 OBJEXT=$ac_cv_objext
 3210 ac_objext=$OBJEXT
 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3213 if ${ac_cv_c_compiler_gnu+:} false; then :
 3214   $as_echo_n "(cached) " >&6
 3215 else
 3216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3217 /* end confdefs.h.  */
 3218 
 3219 int
 3220 main ()
 3221 {
 3222 #ifndef __GNUC__
 3223        choke me
 3224 #endif
 3225 
 3226   ;
 3227   return 0;
 3228 }
 3229 _ACEOF
 3230 if ac_fn_c_try_compile "$LINENO"; then :
 3231   ac_compiler_gnu=yes
 3232 else
 3233   ac_compiler_gnu=no
 3234 fi
 3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3237 
 3238 fi
 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3241 if test $ac_compiler_gnu = yes; then
 3242   GCC=yes
 3243 else
 3244   GCC=
 3245 fi
 3246 ac_test_CFLAGS=${CFLAGS+set}
 3247 ac_save_CFLAGS=$CFLAGS
 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3250 if ${ac_cv_prog_cc_g+:} false; then :
 3251   $as_echo_n "(cached) " >&6
 3252 else
 3253   ac_save_c_werror_flag=$ac_c_werror_flag
 3254    ac_c_werror_flag=yes
 3255    ac_cv_prog_cc_g=no
 3256    CFLAGS="-g"
 3257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3258 /* end confdefs.h.  */
 3259 
 3260 int
 3261 main ()
 3262 {
 3263 
 3264   ;
 3265   return 0;
 3266 }
 3267 _ACEOF
 3268 if ac_fn_c_try_compile "$LINENO"; then :
 3269   ac_cv_prog_cc_g=yes
 3270 else
 3271   CFLAGS=""
 3272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3273 /* end confdefs.h.  */
 3274 
 3275 int
 3276 main ()
 3277 {
 3278 
 3279   ;
 3280   return 0;
 3281 }
 3282 _ACEOF
 3283 if ac_fn_c_try_compile "$LINENO"; then :
 3284 
 3285 else
 3286   ac_c_werror_flag=$ac_save_c_werror_flag
 3287      CFLAGS="-g"
 3288      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3289 /* end confdefs.h.  */
 3290 
 3291 int
 3292 main ()
 3293 {
 3294 
 3295   ;
 3296   return 0;
 3297 }
 3298 _ACEOF
 3299 if ac_fn_c_try_compile "$LINENO"; then :
 3300   ac_cv_prog_cc_g=yes
 3301 fi
 3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3303 fi
 3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3305 fi
 3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3307    ac_c_werror_flag=$ac_save_c_werror_flag
 3308 fi
 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3311 if test "$ac_test_CFLAGS" = set; then
 3312   CFLAGS=$ac_save_CFLAGS
 3313 elif test $ac_cv_prog_cc_g = yes; then
 3314   if test "$GCC" = yes; then
 3315     CFLAGS="-g -O2"
 3316   else
 3317     CFLAGS="-g"
 3318   fi
 3319 else
 3320   if test "$GCC" = yes; then
 3321     CFLAGS="-O2"
 3322   else
 3323     CFLAGS=
 3324   fi
 3325 fi
 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3328 if ${ac_cv_prog_cc_c89+:} false; then :
 3329   $as_echo_n "(cached) " >&6
 3330 else
 3331   ac_cv_prog_cc_c89=no
 3332 ac_save_CC=$CC
 3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3334 /* end confdefs.h.  */
 3335 #include <stdarg.h>
 3336 #include <stdio.h>
 3337 struct stat;
 3338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3339 struct buf { int x; };
 3340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3341 static char *e (p, i)
 3342      char **p;
 3343      int i;
 3344 {
 3345   return p[i];
 3346 }
 3347 static char *f (char * (*g) (char **, int), char **p, ...)
 3348 {
 3349   char *s;
 3350   va_list v;
 3351   va_start (v,p);
 3352   s = g (p, va_arg (v,int));
 3353   va_end (v);
 3354   return s;
 3355 }
 3356 
 3357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3358    function prototypes and stuff, but not '\xHH' hex character constants.
 3359    These don't provoke an error unfortunately, instead are silently treated
 3360    as 'x'.  The following induces an error, until -std is added to get
 3361    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3362    array size at least.  It's necessary to write '\x00'==0 to get something
 3363    that's true only with -std.  */
 3364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3365 
 3366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3367    inside strings and character constants.  */
 3368 #define FOO(x) 'x'
 3369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3370 
 3371 int test (int i, double x);
 3372 struct s1 {int (*f) (int a);};
 3373 struct s2 {int (*f) (double a);};
 3374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3375 int argc;
 3376 char **argv;
 3377 int
 3378 main ()
 3379 {
 3380 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3381   ;
 3382   return 0;
 3383 }
 3384 _ACEOF
 3385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3386     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3387 do
 3388   CC="$ac_save_CC $ac_arg"
 3389   if ac_fn_c_try_compile "$LINENO"; then :
 3390   ac_cv_prog_cc_c89=$ac_arg
 3391 fi
 3392 rm -f core conftest.err conftest.$ac_objext
 3393   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3394 done
 3395 rm -f conftest.$ac_ext
 3396 CC=$ac_save_CC
 3397 
 3398 fi
 3399 # AC_CACHE_VAL
 3400 case "x$ac_cv_prog_cc_c89" in
 3401   x)
 3402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3403 $as_echo "none needed" >&6; } ;;
 3404   xno)
 3405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3406 $as_echo "unsupported" >&6; } ;;
 3407   *)
 3408     CC="$CC $ac_cv_prog_cc_c89"
 3409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3410 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3411 esac
 3412 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3413 
 3414 fi
 3415 
 3416 ac_ext=c
 3417 ac_cpp='$CPP $CPPFLAGS'
 3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3421 
 3422 
 3423 ac_ext=c
 3424 ac_cpp='$CPP $CPPFLAGS'
 3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 3429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 3430 # On Suns, sometimes $CPP names a directory.
 3431 if test -n "$CPP" && test -d "$CPP"; then
 3432   CPP=
 3433 fi
 3434 if test -z "$CPP"; then
 3435   if ${ac_cv_prog_CPP+:} false; then :
 3436   $as_echo_n "(cached) " >&6
 3437 else
 3438       # Double quotes because CPP needs to be expanded
 3439     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 3440     do
 3441       ac_preproc_ok=false
 3442 for ac_c_preproc_warn_flag in '' yes
 3443 do
 3444   # Use a header file that comes with gcc, so configuring glibc
 3445   # with a fresh cross-compiler works.
 3446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3447   # <limits.h> exists even on freestanding compilers.
 3448   # On the NeXT, cc -E runs the code through the compiler's parser,
 3449   # not just through cpp. "Syntax error" is here to catch this case.
 3450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3451 /* end confdefs.h.  */
 3452 #ifdef __STDC__
 3453 # include <limits.h>
 3454 #else
 3455 # include <assert.h>
 3456 #endif
 3457              Syntax error
 3458 _ACEOF
 3459 if ac_fn_c_try_cpp "$LINENO"; then :
 3460 
 3461 else
 3462   # Broken: fails on valid input.
 3463 continue
 3464 fi
 3465 rm -f conftest.err conftest.i conftest.$ac_ext
 3466 
 3467   # OK, works on sane cases.  Now check whether nonexistent headers
 3468   # can be detected and how.
 3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3470 /* end confdefs.h.  */
 3471 #include <ac_nonexistent.h>
 3472 _ACEOF
 3473 if ac_fn_c_try_cpp "$LINENO"; then :
 3474   # Broken: success on invalid input.
 3475 continue
 3476 else
 3477   # Passes both tests.
 3478 ac_preproc_ok=:
 3479 break
 3480 fi
 3481 rm -f conftest.err conftest.i conftest.$ac_ext
 3482 
 3483 done
 3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3485 rm -f conftest.i conftest.err conftest.$ac_ext
 3486 if $ac_preproc_ok; then :
 3487   break
 3488 fi
 3489 
 3490     done
 3491     ac_cv_prog_CPP=$CPP
 3492 
 3493 fi
 3494   CPP=$ac_cv_prog_CPP
 3495 else
 3496   ac_cv_prog_CPP=$CPP
 3497 fi
 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 3499 $as_echo "$CPP" >&6; }
 3500 ac_preproc_ok=false
 3501 for ac_c_preproc_warn_flag in '' yes
 3502 do
 3503   # Use a header file that comes with gcc, so configuring glibc
 3504   # with a fresh cross-compiler works.
 3505   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3506   # <limits.h> exists even on freestanding compilers.
 3507   # On the NeXT, cc -E runs the code through the compiler's parser,
 3508   # not just through cpp. "Syntax error" is here to catch this case.
 3509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3510 /* end confdefs.h.  */
 3511 #ifdef __STDC__
 3512 # include <limits.h>
 3513 #else
 3514 # include <assert.h>
 3515 #endif
 3516              Syntax error
 3517 _ACEOF
 3518 if ac_fn_c_try_cpp "$LINENO"; then :
 3519 
 3520 else
 3521   # Broken: fails on valid input.
 3522 continue
 3523 fi
 3524 rm -f conftest.err conftest.i conftest.$ac_ext
 3525 
 3526   # OK, works on sane cases.  Now check whether nonexistent headers
 3527   # can be detected and how.
 3528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3529 /* end confdefs.h.  */
 3530 #include <ac_nonexistent.h>
 3531 _ACEOF
 3532 if ac_fn_c_try_cpp "$LINENO"; then :
 3533   # Broken: success on invalid input.
 3534 continue
 3535 else
 3536   # Passes both tests.
 3537 ac_preproc_ok=:
 3538 break
 3539 fi
 3540 rm -f conftest.err conftest.i conftest.$ac_ext
 3541 
 3542 done
 3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3544 rm -f conftest.i conftest.err conftest.$ac_ext
 3545 if $ac_preproc_ok; then :
 3546 
 3547 else
 3548   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3550 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 3551 See \`config.log' for more details" "$LINENO" 5; }
 3552 fi
 3553 
 3554 ac_ext=c
 3555 ac_cpp='$CPP $CPPFLAGS'
 3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3559 
 3560 
 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3563 if ${ac_cv_path_GREP+:} false; then :
 3564   $as_echo_n "(cached) " >&6
 3565 else
 3566   if test -z "$GREP"; then
 3567   ac_path_GREP_found=false
 3568   # Loop through the user's path and test for each of PROGNAME-LIST
 3569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3571 do
 3572   IFS=$as_save_IFS
 3573   test -z "$as_dir" && as_dir=.
 3574     for ac_prog in grep ggrep; do
 3575     for ac_exec_ext in '' $ac_executable_extensions; do
 3576       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3577       as_fn_executable_p "$ac_path_GREP" || continue
 3578 # Check for GNU ac_path_GREP and select it if it is found.
 3579   # Check for GNU $ac_path_GREP
 3580 case `"$ac_path_GREP" --version 2>&1` in
 3581 *GNU*)
 3582   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3583 *)
 3584   ac_count=0
 3585   $as_echo_n 0123456789 >"conftest.in"
 3586   while :
 3587   do
 3588     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3589     mv "conftest.tmp" "conftest.in"
 3590     cp "conftest.in" "conftest.nl"
 3591     $as_echo 'GREP' >> "conftest.nl"
 3592     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3594     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3595     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3596       # Best one so far, save it but keep looking for a better one
 3597       ac_cv_path_GREP="$ac_path_GREP"
 3598       ac_path_GREP_max=$ac_count
 3599     fi
 3600     # 10*(2^10) chars as input seems more than enough
 3601     test $ac_count -gt 10 && break
 3602   done
 3603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3604 esac
 3605 
 3606       $ac_path_GREP_found && break 3
 3607     done
 3608   done
 3609   done
 3610 IFS=$as_save_IFS
 3611   if test -z "$ac_cv_path_GREP"; then
 3612     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3613   fi
 3614 else
 3615   ac_cv_path_GREP=$GREP
 3616 fi
 3617 
 3618 fi
 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 3620 $as_echo "$ac_cv_path_GREP" >&6; }
 3621  GREP="$ac_cv_path_GREP"
 3622 
 3623 
 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 3625 $as_echo_n "checking for egrep... " >&6; }
 3626 if ${ac_cv_path_EGREP+:} false; then :
 3627   $as_echo_n "(cached) " >&6
 3628 else
 3629   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 3630    then ac_cv_path_EGREP="$GREP -E"
 3631    else
 3632      if test -z "$EGREP"; then
 3633   ac_path_EGREP_found=false
 3634   # Loop through the user's path and test for each of PROGNAME-LIST
 3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3637 do
 3638   IFS=$as_save_IFS
 3639   test -z "$as_dir" && as_dir=.
 3640     for ac_prog in egrep; do
 3641     for ac_exec_ext in '' $ac_executable_extensions; do
 3642       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 3643       as_fn_executable_p "$ac_path_EGREP" || continue
 3644 # Check for GNU ac_path_EGREP and select it if it is found.
 3645   # Check for GNU $ac_path_EGREP
 3646 case `"$ac_path_EGREP" --version 2>&1` in
 3647 *GNU*)
 3648   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 3649 *)
 3650   ac_count=0
 3651   $as_echo_n 0123456789 >"conftest.in"
 3652   while :
 3653   do
 3654     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3655     mv "conftest.tmp" "conftest.in"
 3656     cp "conftest.in" "conftest.nl"
 3657     $as_echo 'EGREP' >> "conftest.nl"
 3658     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3660     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3661     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 3662       # Best one so far, save it but keep looking for a better one
 3663       ac_cv_path_EGREP="$ac_path_EGREP"
 3664       ac_path_EGREP_max=$ac_count
 3665     fi
 3666     # 10*(2^10) chars as input seems more than enough
 3667     test $ac_count -gt 10 && break
 3668   done
 3669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3670 esac
 3671 
 3672       $ac_path_EGREP_found && break 3
 3673     done
 3674   done
 3675   done
 3676 IFS=$as_save_IFS
 3677   if test -z "$ac_cv_path_EGREP"; then
 3678     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3679   fi
 3680 else
 3681   ac_cv_path_EGREP=$EGREP
 3682 fi
 3683 
 3684    fi
 3685 fi
 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 3687 $as_echo "$ac_cv_path_EGREP" >&6; }
 3688  EGREP="$ac_cv_path_EGREP"
 3689 
 3690 
 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 3692 $as_echo_n "checking for ANSI C header files... " >&6; }
 3693 if ${ac_cv_header_stdc+:} false; then :
 3694   $as_echo_n "(cached) " >&6
 3695 else
 3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3697 /* end confdefs.h.  */
 3698 #include <stdlib.h>
 3699 #include <stdarg.h>
 3700 #include <string.h>
 3701 #include <float.h>
 3702 
 3703 int
 3704 main ()
 3705 {
 3706 
 3707   ;
 3708   return 0;
 3709 }
 3710 _ACEOF
 3711 if ac_fn_c_try_compile "$LINENO"; then :
 3712   ac_cv_header_stdc=yes
 3713 else
 3714   ac_cv_header_stdc=no
 3715 fi
 3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3717 
 3718 if test $ac_cv_header_stdc = yes; then
 3719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 3720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3721 /* end confdefs.h.  */
 3722 #include <string.h>
 3723 
 3724 _ACEOF
 3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3726   $EGREP "memchr" >/dev/null 2>&1; then :
 3727 
 3728 else
 3729   ac_cv_header_stdc=no
 3730 fi
 3731 rm -f conftest*
 3732 
 3733 fi
 3734 
 3735 if test $ac_cv_header_stdc = yes; then
 3736   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 3737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3738 /* end confdefs.h.  */
 3739 #include <stdlib.h>
 3740 
 3741 _ACEOF
 3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3743   $EGREP "free" >/dev/null 2>&1; then :
 3744 
 3745 else
 3746   ac_cv_header_stdc=no
 3747 fi
 3748 rm -f conftest*
 3749 
 3750 fi
 3751 
 3752 if test $ac_cv_header_stdc = yes; then
 3753   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 3754   if test "$cross_compiling" = yes; then :
 3755   :
 3756 else
 3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3758 /* end confdefs.h.  */
 3759 #include <ctype.h>
 3760 #include <stdlib.h>
 3761 #if ((' ' & 0x0FF) == 0x020)
 3762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 3763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 3764 #else
 3765 # define ISLOWER(c) \
 3766            (('a' <= (c) && (c) <= 'i') \
 3767              || ('j' <= (c) && (c) <= 'r') \
 3768              || ('s' <= (c) && (c) <= 'z'))
 3769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 3770 #endif
 3771 
 3772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 3773 int
 3774 main ()
 3775 {
 3776   int i;
 3777   for (i = 0; i < 256; i++)
 3778     if (XOR (islower (i), ISLOWER (i))
 3779     || toupper (i) != TOUPPER (i))
 3780       return 2;
 3781   return 0;
 3782 }
 3783 _ACEOF
 3784 if ac_fn_c_try_run "$LINENO"; then :
 3785 
 3786 else
 3787   ac_cv_header_stdc=no
 3788 fi
 3789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 3790   conftest.$ac_objext conftest.beam conftest.$ac_ext
 3791 fi
 3792 
 3793 fi
 3794 fi
 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 3796 $as_echo "$ac_cv_header_stdc" >&6; }
 3797 if test $ac_cv_header_stdc = yes; then
 3798 
 3799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 3800 
 3801 fi
 3802 
 3803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 3804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 3805           inttypes.h stdint.h unistd.h
 3806 do :
 3807   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 3808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 3809 "
 3810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 3811   cat >>confdefs.h <<_ACEOF
 3812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 3813 _ACEOF
 3814 
 3815 fi
 3816 
 3817 done
 3818 
 3819 
 3820 
 3821   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 3822 if test "x$ac_cv_header_minix_config_h" = xyes; then :
 3823   MINIX=yes
 3824 else
 3825   MINIX=
 3826 fi
 3827 
 3828 
 3829   if test "$MINIX" = yes; then
 3830 
 3831 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 3832 
 3833 
 3834 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 3835 
 3836 
 3837 $as_echo "#define _MINIX 1" >>confdefs.h
 3838 
 3839   fi
 3840 
 3841 
 3842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 3843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 3844 if ${ac_cv_safe_to_define___extensions__+:} false; then :
 3845   $as_echo_n "(cached) " >&6
 3846 else
 3847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3848 /* end confdefs.h.  */
 3849 
 3850 #         define __EXTENSIONS__ 1
 3851           $ac_includes_default
 3852 int
 3853 main ()
 3854 {
 3855 
 3856   ;
 3857   return 0;
 3858 }
 3859 _ACEOF
 3860 if ac_fn_c_try_compile "$LINENO"; then :
 3861   ac_cv_safe_to_define___extensions__=yes
 3862 else
 3863   ac_cv_safe_to_define___extensions__=no
 3864 fi
 3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3866 fi
 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 3868 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 3869   test $ac_cv_safe_to_define___extensions__ = yes &&
 3870     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 3871 
 3872   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 3873 
 3874   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 3875 
 3876   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 3877 
 3878   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 3879 
 3880 
 3881 if test "$ac_cv_header_minix_config_h" = "yes"; then
 3882 
 3883 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
 3884 
 3885 fi
 3886 
 3887 case "$prefix" in
 3888     NONE)
 3889         case "$sysconfdir" in
 3890             '${prefix}/etc')
 3891                 sysconfdir=/etc
 3892             ;;
 3893                 esac
 3894         case "$localstatedir" in
 3895             '${prefix}/var')
 3896                 localstatedir=/var
 3897             ;;
 3898         esac
 3899     ;;
 3900 esac
 3901 
 3902 #
 3903 # Determine configuration directory
 3904 #
 3905 configdir=$sysconfdir/nsd
 3906 
 3907 # Check whether --with-configdir was given.
 3908 if test "${with_configdir+set}" = set; then :
 3909   withval=$with_configdir; configdir=$withval
 3910 fi
 3911 
 3912 
 3913 cat >>confdefs.h <<_ACEOF
 3914 #define CONFIGDIR "`eval echo $configdir`"
 3915 _ACEOF
 3916 
 3917 
 3918 
 3919 #
 3920 # Determine configuration file
 3921 nsd_conf_file=${configdir}/nsd.conf
 3922 
 3923 # Check whether --with-nsd_conf_file was given.
 3924 if test "${with_nsd_conf_file+set}" = set; then :
 3925   withval=$with_nsd_conf_file; nsd_conf_file=$withval
 3926 fi
 3927 
 3928 
 3929 # the eval is to evaluate shell expansion twice, once
 3930 # for $nsd_conf_file and once for the ${prefix} within it.
 3931 
 3932 cat >>confdefs.h <<_ACEOF
 3933 #define CONFIGFILE "`eval echo $nsd_conf_file`"
 3934 _ACEOF
 3935 
 3936 
 3937 #
 3938 # Default logfile
 3939 #
 3940 logfile=${localstatedir}/log/nsd.log
 3941 
 3942 # Check whether --with-logfile was given.
 3943 if test "${with_logfile+set}" = set; then :
 3944   withval=$with_logfile; logfile=$withval
 3945 fi
 3946 
 3947 
 3948 
 3949 #
 3950 # Database directory
 3951 #
 3952 dbdir=${localstatedir}/db/nsd
 3953 
 3954 #
 3955 # Determine the pidfile location. Check if /var/run exists, if so set pidfile
 3956 # to /var/run/nsd.pid by default
 3957 #
 3958 if test -d ${localstatedir}/run; then
 3959     pidfile=${localstatedir}/run/nsd.pid
 3960 else
 3961     pidfile=${dbdir}/nsd.pid
 3962 fi
 3963 
 3964 # Check whether --with-pidfile was given.
 3965 if test "${with_pidfile+set}" = set; then :
 3966   withval=$with_pidfile; pidfile=$withval
 3967 fi
 3968 
 3969 
 3970 
 3971 cat >>confdefs.h <<_ACEOF
 3972 #define PIDFILE "`eval echo $pidfile`"
 3973 _ACEOF
 3974 
 3975 
 3976 #
 3977 # Determine location of nsd.db
 3978 #
 3979 dbfile=${dbdir}/nsd.db
 3980 
 3981 # Check whether --with-dbfile was given.
 3982 if test "${with_dbfile+set}" = set; then :
 3983   withval=$with_dbfile; dbfile=$withval
 3984 fi
 3985 
 3986 
 3987 
 3988 cat >>confdefs.h <<_ACEOF
 3989 #define DBFILE "`eval echo $dbfile`"
 3990 _ACEOF
 3991 
 3992 
 3993 if test -n "$dbfile"; then
 3994     dbdir=`dirname $dbfile`
 3995 fi
 3996 
 3997 
 3998 piddir=`dirname $pidfile`
 3999 
 4000 
 4001 #
 4002 # Determine the default directory for the zone files
 4003 #
 4004 zonesdir=$configdir
 4005 
 4006 # Check whether --with-zonesdir was given.
 4007 if test "${with_zonesdir+set}" = set; then :
 4008   withval=$with_zonesdir; zonesdir=$withval
 4009 fi
 4010 
 4011 
 4012 
 4013 cat >>confdefs.h <<_ACEOF
 4014 #define ZONESDIR "`eval echo $zonesdir`"
 4015 _ACEOF
 4016 
 4017 
 4018 # default xfrd file location.
 4019 xfrdfile=${dbdir}/xfrd.state
 4020 
 4021 # Check whether --with-xfrdfile was given.
 4022 if test "${with_xfrdfile+set}" = set; then :
 4023   withval=$with_xfrdfile; xfrdfile=$withval
 4024 fi
 4025 
 4026 
 4027 cat >>confdefs.h <<_ACEOF
 4028 #define XFRDFILE "`eval echo $xfrdfile`"
 4029 _ACEOF
 4030 
 4031 
 4032 
 4033 # default zonelist file location.
 4034 zonelistfile=${dbdir}/zone.list
 4035 
 4036 # Check whether --with-zonelistfile was given.
 4037 if test "${with_zonelistfile+set}" = set; then :
 4038   withval=$with_zonelistfile; zonelistfile=$withval
 4039 fi
 4040 
 4041 
 4042 cat >>confdefs.h <<_ACEOF
 4043 #define ZONELISTFILE "`eval echo $zonelistfile`"
 4044 _ACEOF
 4045 
 4046 
 4047 
 4048 # default xfr dir location.
 4049 xfrdir="/tmp"
 4050 
 4051 # Check whether --with-xfrdir was given.
 4052 if test "${with_xfrdir+set}" = set; then :
 4053   withval=$with_xfrdir; xfrdir=$withval
 4054 fi
 4055 
 4056 
 4057 cat >>confdefs.h <<_ACEOF
 4058 #define XFRDIR "`eval echo $xfrdir`"
 4059 _ACEOF
 4060 
 4061 
 4062 
 4063 # nsd sbin location. tmpinstantiate execprefix with defaults if not yet done.
 4064 if test "x${exec_prefix}" = "xNONE"; then
 4065     if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix"
 4066     else exec_prefix="${prefix}"; fi
 4067     nsd_start_path="`eval echo $sbindir`/nsd"
 4068     exec_prefix="NONE"
 4069 else
 4070     nsd_start_path="`eval echo $sbindir`/nsd"
 4071 fi
 4072 
 4073 cat >>confdefs.h <<_ACEOF
 4074 #define NSD_START_PATH "$nsd_start_path"
 4075 _ACEOF
 4076 
 4077 
 4078 #
 4079 # Determine default chroot directory
 4080 #
 4081 
 4082 # Check whether --with-chroot was given.
 4083 if test "${with_chroot+set}" = set; then :
 4084   withval=$with_chroot;
 4085         chrootdir=$withval
 4086 
 4087 cat >>confdefs.h <<_ACEOF
 4088 #define CHROOTDIR "`eval echo $chrootdir`"
 4089 _ACEOF
 4090 
 4091 
 4092 fi
 4093 
 4094 
 4095 
 4096 #
 4097 # Determine the user name to drop privileges to
 4098 #
 4099 user=nsd
 4100 
 4101 # Check whether --with-user was given.
 4102 if test "${with_user+set}" = set; then :
 4103   withval=$with_user; user=$withval
 4104 fi
 4105 
 4106 
 4107 
 4108 cat >>confdefs.h <<_ACEOF
 4109 #define USER "$user"
 4110 _ACEOF
 4111 
 4112 
 4113 ac_ext=c
 4114 ac_cpp='$CPP $CPPFLAGS'
 4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4118 if test -n "$ac_tool_prefix"; then
 4119   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 4120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4122 $as_echo_n "checking for $ac_word... " >&6; }
 4123 if ${ac_cv_prog_CC+:} false; then :
 4124   $as_echo_n "(cached) " >&6
 4125 else
 4126   if test -n "$CC"; then
 4127   ac_cv_prog_CC="$CC" # Let the user override the test.
 4128 else
 4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4130 for as_dir in $PATH
 4131 do
 4132   IFS=$as_save_IFS
 4133   test -z "$as_dir" && as_dir=.
 4134     for ac_exec_ext in '' $ac_executable_extensions; do
 4135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4136     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 4137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4138     break 2
 4139   fi
 4140 done
 4141   done
 4142 IFS=$as_save_IFS
 4143 
 4144 fi
 4145 fi
 4146 CC=$ac_cv_prog_CC
 4147 if test -n "$CC"; then
 4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4149 $as_echo "$CC" >&6; }
 4150 else
 4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4152 $as_echo "no" >&6; }
 4153 fi
 4154 
 4155 
 4156 fi
 4157 if test -z "$ac_cv_prog_CC"; then
 4158   ac_ct_CC=$CC
 4159   # Extract the first word of "gcc", so it can be a program name with args.
 4160 set dummy gcc; ac_word=$2
 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4162 $as_echo_n "checking for $ac_word... " >&6; }
 4163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 4164   $as_echo_n "(cached) " >&6
 4165 else
 4166   if test -n "$ac_ct_CC"; then
 4167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 4168 else
 4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4170 for as_dir in $PATH
 4171 do
 4172   IFS=$as_save_IFS
 4173   test -z "$as_dir" && as_dir=.
 4174     for ac_exec_ext in '' $ac_executable_extensions; do
 4175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4176     ac_cv_prog_ac_ct_CC="gcc"
 4177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4178     break 2
 4179   fi
 4180 done
 4181   done
 4182 IFS=$as_save_IFS
 4183 
 4184 fi
 4185 fi
 4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 4187 if test -n "$ac_ct_CC"; then
 4188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 4189 $as_echo "$ac_ct_CC" >&6; }
 4190 else
 4191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4192 $as_echo "no" >&6; }
 4193 fi
 4194 
 4195   if test "x$ac_ct_CC" = x; then
 4196     CC=""
 4197   else
 4198     case $cross_compiling:$ac_tool_warned in
 4199 yes:)
 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4202 ac_tool_warned=yes ;;
 4203 esac
 4204     CC=$ac_ct_CC
 4205   fi
 4206 else
 4207   CC="$ac_cv_prog_CC"
 4208 fi
 4209 
 4210 if test -z "$CC"; then
 4211           if test -n "$ac_tool_prefix"; then
 4212     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 4213 set dummy ${ac_tool_prefix}cc; ac_word=$2
 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4215 $as_echo_n "checking for $ac_word... " >&6; }
 4216 if ${ac_cv_prog_CC+:} false; then :
 4217   $as_echo_n "(cached) " >&6
 4218 else
 4219   if test -n "$CC"; then
 4220   ac_cv_prog_CC="$CC" # Let the user override the test.
 4221 else
 4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4223 for as_dir in $PATH
 4224 do
 4225   IFS=$as_save_IFS
 4226   test -z "$as_dir" && as_dir=.
 4227     for ac_exec_ext in '' $ac_executable_extensions; do
 4228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4229     ac_cv_prog_CC="${ac_tool_prefix}cc"
 4230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4231     break 2
 4232   fi
 4233 done
 4234   done
 4235 IFS=$as_save_IFS
 4236 
 4237 fi
 4238 fi
 4239 CC=$ac_cv_prog_CC
 4240 if test -n "$CC"; then
 4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4242 $as_echo "$CC" >&6; }
 4243 else
 4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4245 $as_echo "no" >&6; }
 4246 fi
 4247 
 4248 
 4249   fi
 4250 fi
 4251 if test -z "$CC"; then
 4252   # Extract the first word of "cc", so it can be a program name with args.
 4253 set dummy cc; ac_word=$2
 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4255 $as_echo_n "checking for $ac_word... " >&6; }
 4256 if ${ac_cv_prog_CC+:} false; then :
 4257   $as_echo_n "(cached) " >&6
 4258 else
 4259   if test -n "$CC"; then
 4260   ac_cv_prog_CC="$CC" # Let the user override the test.
 4261 else
 4262   ac_prog_rejected=no
 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4264 for as_dir in $PATH
 4265 do
 4266   IFS=$as_save_IFS
 4267   test -z "$as_dir" && as_dir=.
 4268     for ac_exec_ext in '' $ac_executable_extensions; do
 4269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4270     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 4271        ac_prog_rejected=yes
 4272        continue
 4273      fi
 4274     ac_cv_prog_CC="cc"
 4275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4276     break 2
 4277   fi
 4278 done
 4279   done
 4280 IFS=$as_save_IFS
 4281 
 4282 if test $ac_prog_rejected = yes; then
 4283   # We found a bogon in the path, so make sure we never use it.
 4284   set dummy $ac_cv_prog_CC
 4285   shift
 4286   if test $# != 0; then
 4287     # We chose a different compiler from the bogus one.
 4288     # However, it has the same basename, so the bogon will be chosen
 4289     # first if we set CC to just the basename; use the full file name.
 4290     shift
 4291     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 4292   fi
 4293 fi
 4294 fi
 4295 fi
 4296 CC=$ac_cv_prog_CC
 4297 if test -n "$CC"; then
 4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4299 $as_echo "$CC" >&6; }
 4300 else
 4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4302 $as_echo "no" >&6; }
 4303 fi
 4304 
 4305 
 4306 fi
 4307 if test -z "$CC"; then
 4308   if test -n "$ac_tool_prefix"; then
 4309   for ac_prog in cl.exe
 4310   do
 4311     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 4312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4314 $as_echo_n "checking for $ac_word... " >&6; }
 4315 if ${ac_cv_prog_CC+:} false; then :
 4316   $as_echo_n "(cached) " >&6
 4317 else
 4318   if test -n "$CC"; then
 4319   ac_cv_prog_CC="$CC" # Let the user override the test.
 4320 else
 4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4322 for as_dir in $PATH
 4323 do
 4324   IFS=$as_save_IFS
 4325   test -z "$as_dir" && as_dir=.
 4326     for ac_exec_ext in '' $ac_executable_extensions; do
 4327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4328     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 4329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4330     break 2
 4331   fi
 4332 done
 4333   done
 4334 IFS=$as_save_IFS
 4335 
 4336 fi
 4337 fi
 4338 CC=$ac_cv_prog_CC
 4339 if test -n "$CC"; then
 4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4341 $as_echo "$CC" >&6; }
 4342 else
 4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4344 $as_echo "no" >&6; }
 4345 fi
 4346 
 4347 
 4348     test -n "$CC" && break
 4349   done
 4350 fi
 4351 if test -z "$CC"; then
 4352   ac_ct_CC=$CC
 4353   for ac_prog in cl.exe
 4354 do
 4355   # Extract the first word of "$ac_prog", so it can be a program name with args.
 4356 set dummy $ac_prog; ac_word=$2
 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4358 $as_echo_n "checking for $ac_word... " >&6; }
 4359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 4360   $as_echo_n "(cached) " >&6
 4361 else
 4362   if test -n "$ac_ct_CC"; then
 4363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 4364 else
 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4366 for as_dir in $PATH
 4367 do
 4368   IFS=$as_save_IFS
 4369   test -z "$as_dir" && as_dir=.
 4370     for ac_exec_ext in '' $ac_executable_extensions; do
 4371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4372     ac_cv_prog_ac_ct_CC="$ac_prog"
 4373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4374     break 2
 4375   fi
 4376 done
 4377   done
 4378 IFS=$as_save_IFS
 4379 
 4380 fi
 4381 fi
 4382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 4383 if test -n "$ac_ct_CC"; then
 4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 4385 $as_echo "$ac_ct_CC" >&6; }
 4386 else
 4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4388 $as_echo "no" >&6; }
 4389 fi
 4390 
 4391 
 4392   test -n "$ac_ct_CC" && break
 4393 done
 4394 
 4395   if test "x$ac_ct_CC" = x; then
 4396     CC=""
 4397   else
 4398     case $cross_compiling:$ac_tool_warned in
 4399 yes:)
 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4402 ac_tool_warned=yes ;;
 4403 esac
 4404     CC=$ac_ct_CC
 4405   fi
 4406 fi
 4407 
 4408 fi
 4409 
 4410 
 4411 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4413 as_fn_error $? "no acceptable C compiler found in \$PATH
 4414 See \`config.log' for more details" "$LINENO" 5; }
 4415 
 4416 # Provide some information about the compiler.
 4417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 4418 set X $ac_compile
 4419 ac_compiler=$2
 4420 for ac_option in --version -v -V -qversion; do
 4421   { { ac_try="$ac_compiler $ac_option >&5"
 4422 case "(($ac_try" in
 4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4424   *) ac_try_echo=$ac_try;;
 4425 esac
 4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4427 $as_echo "$ac_try_echo"; } >&5
 4428   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 4429   ac_status=$?
 4430   if test -s conftest.err; then
 4431     sed '10a\
 4432 ... rest of stderr output deleted ...
 4433          10q' conftest.err >conftest.er1
 4434     cat conftest.er1 >&5
 4435   fi
 4436   rm -f conftest.er1 conftest.err
 4437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4438   test $ac_status = 0; }
 4439 done
 4440 
 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 4442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 4443 if ${ac_cv_c_compiler_gnu+:} false; then :
 4444   $as_echo_n "(cached) " >&6
 4445 else
 4446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4447 /* end confdefs.h.  */
 4448 
 4449 int
 4450 main ()
 4451 {
 4452 #ifndef __GNUC__
 4453        choke me
 4454 #endif
 4455 
 4456   ;
 4457   return 0;
 4458 }
 4459 _ACEOF
 4460 if ac_fn_c_try_compile "$LINENO"; then :
 4461   ac_compiler_gnu=yes
 4462 else
 4463   ac_compiler_gnu=no
 4464 fi
 4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 4467 
 4468 fi
 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 4470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 4471 if test $ac_compiler_gnu = yes; then
 4472   GCC=yes
 4473 else
 4474   GCC=
 4475 fi
 4476 ac_test_CFLAGS=${CFLAGS+set}
 4477 ac_save_CFLAGS=$CFLAGS
 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 4479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 4480 if ${ac_cv_prog_cc_g+:} false; then :
 4481   $as_echo_n "(cached) " >&6
 4482 else
 4483   ac_save_c_werror_flag=$ac_c_werror_flag
 4484    ac_c_werror_flag=yes
 4485    ac_cv_prog_cc_g=no
 4486    CFLAGS="-g"
 4487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4488 /* end confdefs.h.  */
 4489 
 4490 int
 4491 main ()
 4492 {
 4493 
 4494   ;
 4495   return 0;
 4496 }
 4497 _ACEOF
 4498 if ac_fn_c_try_compile "$LINENO"; then :
 4499   ac_cv_prog_cc_g=yes
 4500 else
 4501   CFLAGS=""
 4502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4503 /* end confdefs.h.  */
 4504 
 4505 int
 4506 main ()
 4507 {
 4508 
 4509   ;
 4510   return 0;
 4511 }
 4512 _ACEOF
 4513 if ac_fn_c_try_compile "$LINENO"; then :
 4514 
 4515 else
 4516   ac_c_werror_flag=$ac_save_c_werror_flag
 4517      CFLAGS="-g"
 4518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4519 /* end confdefs.h.  */
 4520 
 4521 int
 4522 main ()
 4523 {
 4524 
 4525   ;
 4526   return 0;
 4527 }
 4528 _ACEOF
 4529 if ac_fn_c_try_compile "$LINENO"; then :
 4530   ac_cv_prog_cc_g=yes
 4531 fi
 4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4533 fi
 4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4535 fi
 4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4537    ac_c_werror_flag=$ac_save_c_werror_flag
 4538 fi
 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 4540 $as_echo "$ac_cv_prog_cc_g" >&6; }
 4541 if test "$ac_test_CFLAGS" = set; then
 4542   CFLAGS=$ac_save_CFLAGS
 4543 elif test $ac_cv_prog_cc_g = yes; then
 4544   if test "$GCC" = yes; then
 4545     CFLAGS="-g -O2"
 4546   else
 4547     CFLAGS="-g"
 4548   fi
 4549 else
 4550   if test "$GCC" = yes; then
 4551     CFLAGS="-O2"
 4552   else
 4553     CFLAGS=
 4554   fi
 4555 fi
 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 4557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 4558 if ${ac_cv_prog_cc_c89+:} false; then :
 4559   $as_echo_n "(cached) " >&6
 4560 else
 4561   ac_cv_prog_cc_c89=no
 4562 ac_save_CC=$CC
 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4564 /* end confdefs.h.  */
 4565 #include <stdarg.h>
 4566 #include <stdio.h>
 4567 struct stat;
 4568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 4569 struct buf { int x; };
 4570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 4571 static char *e (p, i)
 4572      char **p;
 4573      int i;
 4574 {
 4575   return p[i];
 4576 }
 4577 static char *f (char * (*g) (char **, int), char **p, ...)
 4578 {
 4579   char *s;
 4580   va_list v;
 4581   va_start (v,p);
 4582   s = g (p, va_arg (v,int));
 4583   va_end (v);
 4584   return s;
 4585 }
 4586 
 4587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 4588    function prototypes and stuff, but not '\xHH' hex character constants.
 4589    These don't provoke an error unfortunately, instead are silently treated
 4590    as 'x'.  The following induces an error, until -std is added to get
 4591    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 4592    array size at least.  It's necessary to write '\x00'==0 to get something
 4593    that's true only with -std.  */
 4594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 4595 
 4596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 4597    inside strings and character constants.  */
 4598 #define FOO(x) 'x'
 4599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 4600 
 4601 int test (int i, double x);
 4602 struct s1 {int (*f) (int a);};
 4603 struct s2 {int (*f) (double a);};
 4604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 4605 int argc;
 4606 char **argv;
 4607 int
 4608 main ()
 4609 {
 4610 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 4611   ;
 4612   return 0;
 4613 }
 4614 _ACEOF
 4615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4616     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4617 do
 4618   CC="$ac_save_CC $ac_arg"
 4619   if ac_fn_c_try_compile "$LINENO"; then :
 4620   ac_cv_prog_cc_c89=$ac_arg
 4621 fi
 4622 rm -f core conftest.err conftest.$ac_objext
 4623   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4624 done
 4625 rm -f conftest.$ac_ext
 4626 CC=$ac_save_CC
 4627 
 4628 fi
 4629 # AC_CACHE_VAL
 4630 case "x$ac_cv_prog_cc_c89" in
 4631   x)
 4632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4633 $as_echo "none needed" >&6; } ;;
 4634   xno)
 4635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4636 $as_echo "unsupported" >&6; } ;;
 4637   *)
 4638     CC="$CC $ac_cv_prog_cc_c89"
 4639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4641 esac
 4642 if test "x$ac_cv_prog_cc_c89" != xno; then :
 4643 
 4644 fi
 4645 
 4646 ac_ext=c
 4647 ac_cpp='$CPP $CPPFLAGS'
 4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4651 
 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 4653 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 4654 if ${ac_cv_path_SED+:} false; then :
 4655   $as_echo_n "(cached) " >&6
 4656 else
 4657             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 4658      for ac_i in 1 2 3 4 5 6 7; do
 4659        ac_script="$ac_script$as_nl$ac_script"
 4660      done
 4661      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 4662      { ac_script=; unset ac_script;}
 4663      if test -z "$SED"; then
 4664   ac_path_SED_found=false
 4665   # Loop through the user's path and test for each of PROGNAME-LIST
 4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4667 for as_dir in $PATH
 4668 do
 4669   IFS=$as_save_IFS
 4670   test -z "$as_dir" && as_dir=.
 4671     for ac_prog in sed gsed; do
 4672     for ac_exec_ext in '' $ac_executable_extensions; do
 4673       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 4674       as_fn_executable_p "$ac_path_SED" || continue
 4675 # Check for GNU ac_path_SED and select it if it is found.
 4676   # Check for GNU $ac_path_SED
 4677 case `"$ac_path_SED" --version 2>&1` in
 4678 *GNU*)
 4679   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 4680 *)
 4681   ac_count=0
 4682   $as_echo_n 0123456789 >"conftest.in"
 4683   while :
 4684   do
 4685     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4686     mv "conftest.tmp" "conftest.in"
 4687     cp "conftest.in" "conftest.nl"
 4688     $as_echo '' >> "conftest.nl"
 4689     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4690     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4691     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4692     if test $ac_count -gt ${ac_path_SED_max-0}; then
 4693       # Best one so far, save it but keep looking for a better one
 4694       ac_cv_path_SED="$ac_path_SED"
 4695       ac_path_SED_max=$ac_count
 4696     fi
 4697     # 10*(2^10) chars as input seems more than enough
 4698     test $ac_count -gt 10 && break
 4699   done
 4700   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4701 esac
 4702 
 4703       $ac_path_SED_found && break 3
 4704     done
 4705   done
 4706   done
 4707 IFS=$as_save_IFS
 4708   if test -z "$ac_cv_path_SED"; then
 4709     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 4710   fi
 4711 else
 4712   ac_cv_path_SED=$SED
 4713 fi
 4714 
 4715 fi
 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 4717 $as_echo "$ac_cv_path_SED" >&6; }
 4718  SED="$ac_cv_path_SED"
 4719   rm -f conftest.sed
 4720 
 4721 for ac_prog in gawk mawk nawk awk
 4722 do
 4723   # Extract the first word of "$ac_prog", so it can be a program name with args.
 4724 set dummy $ac_prog; ac_word=$2
 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4726 $as_echo_n "checking for $ac_word... " >&6; }
 4727 if ${ac_cv_prog_AWK+:} false; then :
 4728   $as_echo_n "(cached) " >&6
 4729 else
 4730   if test -n "$AWK"; then
 4731   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 4732 else
 4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4734 for as_dir in $PATH
 4735 do
 4736   IFS=$as_save_IFS
 4737   test -z "$as_dir" && as_dir=.
 4738     for ac_exec_ext in '' $ac_executable_extensions; do
 4739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4740     ac_cv_prog_AWK="$ac_prog"
 4741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4742     break 2
 4743   fi
 4744 done
 4745   done
 4746 IFS=$as_save_IFS
 4747 
 4748 fi
 4749 fi
 4750 AWK=$ac_cv_prog_AWK
 4751 if test -n "$AWK"; then
 4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 4753 $as_echo "$AWK" >&6; }
 4754 else
 4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4756 $as_echo "no" >&6; }
 4757 fi
 4758 
 4759 
 4760   test -n "$AWK" && break
 4761 done
 4762 
 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 4764 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 4765 if ${ac_cv_path_GREP+:} false; then :
 4766   $as_echo_n "(cached) " >&6
 4767 else
 4768   if test -z "$GREP"; then
 4769   ac_path_GREP_found=false
 4770   # Loop through the user's path and test for each of PROGNAME-LIST
 4771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4773 do
 4774   IFS=$as_save_IFS
 4775   test -z "$as_dir" && as_dir=.
 4776     for ac_prog in grep ggrep; do
 4777     for ac_exec_ext in '' $ac_executable_extensions; do
 4778       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 4779       as_fn_executable_p "$ac_path_GREP" || continue
 4780 # Check for GNU ac_path_GREP and select it if it is found.
 4781   # Check for GNU $ac_path_GREP
 4782 case `"$ac_path_GREP" --version 2>&1` in
 4783 *GNU*)
 4784   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 4785 *)
 4786   ac_count=0
 4787   $as_echo_n 0123456789 >"conftest.in"
 4788   while :
 4789   do
 4790     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4791     mv "conftest.tmp" "conftest.in"
 4792     cp "conftest.in" "conftest.nl"
 4793     $as_echo 'GREP' >> "conftest.nl"
 4794     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4796     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4797     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 4798       # Best one so far, save it but keep looking for a better one
 4799       ac_cv_path_GREP="$ac_path_GREP"
 4800       ac_path_GREP_max=$ac_count
 4801     fi
 4802     # 10*(2^10) chars as input seems more than enough
 4803     test $ac_count -gt 10 && break
 4804   done
 4805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4806 esac
 4807 
 4808       $ac_path_GREP_found && break 3
 4809     done
 4810   done
 4811   done
 4812 IFS=$as_save_IFS
 4813   if test -z "$ac_cv_path_GREP"; then
 4814     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4815   fi
 4816 else
 4817   ac_cv_path_GREP=$GREP
 4818 fi
 4819 
 4820 fi
 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 4822 $as_echo "$ac_cv_path_GREP" >&6; }
 4823  GREP="$ac_cv_path_GREP"
 4824 
 4825 
 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 4827 $as_echo_n "checking for egrep... " >&6; }
 4828 if ${ac_cv_path_EGREP+:} false; then :
 4829   $as_echo_n "(cached) " >&6
 4830 else
 4831   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 4832    then ac_cv_path_EGREP="$GREP -E"
 4833    else
 4834      if test -z "$EGREP"; then
 4835   ac_path_EGREP_found=false
 4836   # Loop through the user's path and test for each of PROGNAME-LIST
 4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4839 do
 4840   IFS=$as_save_IFS
 4841   test -z "$as_dir" && as_dir=.
 4842     for ac_prog in egrep; do
 4843     for ac_exec_ext in '' $ac_executable_extensions; do
 4844       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 4845       as_fn_executable_p "$ac_path_EGREP" || continue
 4846 # Check for GNU ac_path_EGREP and select it if it is found.
 4847   # Check for GNU $ac_path_EGREP
 4848 case `"$ac_path_EGREP" --version 2>&1` in
 4849 *GNU*)
 4850   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 4851 *)
 4852   ac_count=0
 4853   $as_echo_n 0123456789 >"conftest.in"
 4854   while :
 4855   do
 4856     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4857     mv "conftest.tmp" "conftest.in"
 4858     cp "conftest.in" "conftest.nl"
 4859     $as_echo 'EGREP' >> "conftest.nl"
 4860     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4861     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4862     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4863     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4864       # Best one so far, save it but keep looking for a better one
 4865       ac_cv_path_EGREP="$ac_path_EGREP"
 4866       ac_path_EGREP_max=$ac_count
 4867     fi
 4868     # 10*(2^10) chars as input seems more than enough
 4869     test $ac_count -gt 10 && break
 4870   done
 4871   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4872 esac
 4873 
 4874       $ac_path_EGREP_found && break 3
 4875     done
 4876   done
 4877   done
 4878 IFS=$as_save_IFS
 4879   if test -z "$ac_cv_path_EGREP"; then
 4880     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4881   fi
 4882 else
 4883   ac_cv_path_EGREP=$EGREP
 4884 fi
 4885 
 4886    fi
 4887 fi
 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4889 $as_echo "$ac_cv_path_EGREP" >&6; }
 4890  EGREP="$ac_cv_path_EGREP"
 4891 
 4892 
 4893 for ac_prog in flex lex
 4894 do
 4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
 4896 set dummy $ac_prog; ac_word=$2
 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4898 $as_echo_n "checking for $ac_word... " >&6; }
 4899 if ${ac_cv_prog_LEX+:} false; then :
 4900   $as_echo_n "(cached) " >&6
 4901 else
 4902   if test -n "$LEX"; then
 4903   ac_cv_prog_LEX="$LEX" # Let the user override the test.
 4904 else
 4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4906 for as_dir in $PATH
 4907 do
 4908   IFS=$as_save_IFS
 4909   test -z "$as_dir" && as_dir=.
 4910     for ac_exec_ext in '' $ac_executable_extensions; do
 4911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4912     ac_cv_prog_LEX="$ac_prog"
 4913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4914     break 2
 4915   fi
 4916 done
 4917   done
 4918 IFS=$as_save_IFS
 4919 
 4920 fi
 4921 fi
 4922 LEX=$ac_cv_prog_LEX
 4923 if test -n "$LEX"; then
 4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 4925 $as_echo "$LEX" >&6; }
 4926 else
 4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4928 $as_echo "no" >&6; }
 4929 fi
 4930 
 4931 
 4932   test -n "$LEX" && break
 4933 done
 4934 test -n "$LEX" || LEX=":"
 4935 
 4936 if test "x$LEX" != "x:"; then
 4937   cat >conftest.l <<_ACEOF
 4938 %%
 4939 a { ECHO; }
 4940 b { REJECT; }
 4941 c { yymore (); }
 4942 d { yyless (1); }
 4943 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
 4944     yyless ((input () != 0)); }
 4945 f { unput (yytext[0]); }
 4946 . { BEGIN INITIAL; }
 4947 %%
 4948 #ifdef YYTEXT_POINTER
 4949 extern char *yytext;
 4950 #endif
 4951 int
 4952 main (void)
 4953 {
 4954   return ! yylex () + ! yywrap ();
 4955 }
 4956 _ACEOF
 4957 { { ac_try="$LEX conftest.l"
 4958 case "(($ac_try" in
 4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4960   *) ac_try_echo=$ac_try;;
 4961 esac
 4962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4963 $as_echo "$ac_try_echo"; } >&5
 4964   (eval "$LEX conftest.l") 2>&5
 4965   ac_status=$?
 4966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4967   test $ac_status = 0; }
 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 4969 $as_echo_n "checking lex output file root... " >&6; }
 4970 if ${ac_cv_prog_lex_root+:} false; then :
 4971   $as_echo_n "(cached) " >&6
 4972 else
 4973 
 4974 if test -f lex.yy.c; then
 4975   ac_cv_prog_lex_root=lex.yy
 4976 elif test -f lexyy.c; then
 4977   ac_cv_prog_lex_root=lexyy
 4978 else
 4979   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
 4980 fi
 4981 fi
 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 4983 $as_echo "$ac_cv_prog_lex_root" >&6; }
 4984 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 4985 
 4986 if test -z "${LEXLIB+set}"; then
 4987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 4988 $as_echo_n "checking lex library... " >&6; }
 4989 if ${ac_cv_lib_lex+:} false; then :
 4990   $as_echo_n "(cached) " >&6
 4991 else
 4992 
 4993     ac_save_LIBS=$LIBS
 4994     ac_cv_lib_lex='none needed'
 4995     for ac_lib in '' -lfl -ll; do
 4996       LIBS="$ac_lib $ac_save_LIBS"
 4997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4998 /* end confdefs.h.  */
 4999 `cat $LEX_OUTPUT_ROOT.c`
 5000 _ACEOF
 5001 if ac_fn_c_try_link "$LINENO"; then :
 5002   ac_cv_lib_lex=$ac_lib
 5003 fi
 5004 rm -f core conftest.err conftest.$ac_objext \
 5005     conftest$ac_exeext conftest.$ac_ext
 5006       test "$ac_cv_lib_lex" != 'none needed' && break
 5007     done
 5008     LIBS=$ac_save_LIBS
 5009 
 5010 fi
 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 5012 $as_echo "$ac_cv_lib_lex" >&6; }
 5013   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 5014 fi
 5015 
 5016 
 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 5018 $as_echo_n "checking whether yytext is a pointer... " >&6; }
 5019 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
 5020   $as_echo_n "(cached) " >&6
 5021 else
 5022   # POSIX says lex can declare yytext either as a pointer or an array; the
 5023 # default is implementation-dependent.  Figure out which it is, since
 5024 # not all implementations provide the %pointer and %array declarations.
 5025 ac_cv_prog_lex_yytext_pointer=no
 5026 ac_save_LIBS=$LIBS
 5027 LIBS="$LEXLIB $ac_save_LIBS"
 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5029 /* end confdefs.h.  */
 5030 
 5031   #define YYTEXT_POINTER 1
 5032 `cat $LEX_OUTPUT_ROOT.c`
 5033 _ACEOF
 5034 if ac_fn_c_try_link "$LINENO"; then :
 5035   ac_cv_prog_lex_yytext_pointer=yes
 5036 fi
 5037 rm -f core conftest.err conftest.$ac_objext \
 5038     conftest$ac_exeext conftest.$ac_ext
 5039 LIBS=$ac_save_LIBS
 5040 
 5041 fi
 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 5043 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 5044 if test $ac_cv_prog_lex_yytext_pointer = yes; then
 5045 
 5046 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 5047 
 5048 fi
 5049 rm -f conftest.l $LEX_OUTPUT_ROOT.c
 5050 
 5051 fi
 5052 for ac_prog in 'bison -y' byacc
 5053 do
 5054   # Extract the first word of "$ac_prog", so it can be a program name with args.
 5055 set dummy $ac_prog; ac_word=$2
 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5057 $as_echo_n "checking for $ac_word... " >&6; }
 5058 if ${ac_cv_prog_YACC+:} false; then :
 5059   $as_echo_n "(cached) " >&6
 5060 else
 5061   if test -n "$YACC"; then
 5062   ac_cv_prog_YACC="$YACC" # Let the user override the test.
 5063 else
 5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5065 for as_dir in $PATH
 5066 do
 5067   IFS=$as_save_IFS
 5068   test -z "$as_dir" && as_dir=.
 5069     for ac_exec_ext in '' $ac_executable_extensions; do
 5070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5071     ac_cv_prog_YACC="$ac_prog"
 5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5073     break 2
 5074   fi
 5075 done
 5076   done
 5077 IFS=$as_save_IFS
 5078 
 5079 fi
 5080 fi
 5081 YACC=$ac_cv_prog_YACC
 5082 if test -n "$YACC"; then
 5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 5084 $as_echo "$YACC" >&6; }
 5085 else
 5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5087 $as_echo "no" >&6; }
 5088 fi
 5089 
 5090 
 5091   test -n "$YACC" && break
 5092 done
 5093 test -n "$YACC" || YACC="yacc"
 5094 
 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 5096 $as_echo_n "checking whether ln -s works... " >&6; }
 5097 LN_S=$as_ln_s
 5098 if test "$LN_S" = "ln -s"; then
 5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5100 $as_echo "yes" >&6; }
 5101 else
 5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 5103 $as_echo "no, using $LN_S" >&6; }
 5104 fi
 5105 
 5106 ac_aux_dir=
 5107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 5108   if test -f "$ac_dir/install-sh"; then
 5109     ac_aux_dir=$ac_dir
 5110     ac_install_sh="$ac_aux_dir/install-sh -c"
 5111     break
 5112   elif test -f "$ac_dir/install.sh"; then
 5113     ac_aux_dir=$ac_dir
 5114     ac_install_sh="$ac_aux_dir/install.sh -c"
 5115     break
 5116   elif test -f "$ac_dir/shtool"; then
 5117     ac_aux_dir=$ac_dir
 5118     ac_install_sh="$ac_aux_dir/shtool install -c"
 5119     break
 5120   fi
 5121 done
 5122 if test -z "$ac_aux_dir"; then
 5123   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 5124 fi
 5125 
 5126 # These three variables are undocumented and unsupported,
 5127 # and are intended to be withdrawn in a future Autoconf release.
 5128 # They can cause serious problems if a builder's source tree is in a directory
 5129 # whose full name contains unusual characters.
 5130 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 5131 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 5132 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 5133 
 5134 
 5135 # Find a good install program.  We prefer a C program (faster),
 5136 # so one script is as good as another.  But avoid the broken or
 5137 # incompatible versions:
 5138 # SysV /etc/install, /usr/sbin/install
 5139 # SunOS /usr/etc/install
 5140 # IRIX /sbin/install
 5141 # AIX /bin/install
 5142 # AmigaOS /C/install, which installs bootblocks on floppy discs
 5143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 5144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 5145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 5146 # OS/2's system install, which has a completely different semantic
 5147 # ./install, which can be erroneously created by make from ./install.sh.
 5148 # Reject install programs that cannot install multiple files.
 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 5150 $as_echo_n "checking for a BSD-compatible install... " >&6; }
 5151 if test -z "$INSTALL"; then
 5152 if ${ac_cv_path_install+:} false; then :
 5153   $as_echo_n "(cached) " >&6
 5154 else
 5155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5156 for as_dir in $PATH
 5157 do
 5158   IFS=$as_save_IFS
 5159   test -z "$as_dir" && as_dir=.
 5160     # Account for people who put trailing slashes in PATH elements.
 5161 case $as_dir/ in #((
 5162   ./ | .// | /[cC]/* | \
 5163   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 5164   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 5165   /usr/ucb/* ) ;;
 5166   *)
 5167     # OSF1 and SCO ODT 3.0 have their own names for install.
 5168     # Don't use installbsd from OSF since it installs stuff as root
 5169     # by default.
 5170     for ac_prog in ginstall scoinst install; do
 5171       for ac_exec_ext in '' $ac_executable_extensions; do
 5172     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 5173       if test $ac_prog = install &&
 5174         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 5175         # AIX install.  It has an incompatible calling convention.
 5176         :
 5177       elif test $ac_prog = install &&
 5178         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 5179         # program-specific install script used by HP pwplus--don't use.
 5180         :
 5181       else
 5182         rm -rf conftest.one conftest.two conftest.dir
 5183         echo one > conftest.one
 5184         echo two > conftest.two
 5185         mkdir conftest.dir
 5186         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 5187           test -s conftest.one && test -s conftest.two &&
 5188           test -s conftest.dir/conftest.one &&
 5189           test -s conftest.dir/conftest.two
 5190         then
 5191           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 5192           break 3
 5193         fi
 5194       fi
 5195     fi
 5196       done
 5197     done
 5198     ;;
 5199 esac
 5200 
 5201   done
 5202 IFS=$as_save_IFS
 5203 
 5204 rm -rf conftest.one conftest.two conftest.dir
 5205 
 5206 fi
 5207   if test "${ac_cv_path_install+set}" = set; then
 5208     INSTALL=$ac_cv_path_install
 5209   else
 5210     # As a last resort, use the slow shell script.  Don't cache a
 5211     # value for INSTALL within a source directory, because that will
 5212     # break other packages using the cache if that directory is
 5213     # removed, or if the value is a relative name.
 5214     INSTALL=$ac_install_sh
 5215   fi
 5216 fi
 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 5218 $as_echo "$INSTALL" >&6; }
 5219 
 5220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 5221 # It thinks the first close brace ends the variable substitution.
 5222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 5223 
 5224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 5225 
 5226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 5227 
 5228 
 5229 if test "$LEX" != ":" -a "$LEX" != ""; then
 5230 # Solaris provides anemic tools, and they don't offer GNU extensions like
 5231 # 'flex -i'. Solaris also does not offer GNU replacements in /usr/gnu/bin.
 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex accepts -i" >&5
 5233 $as_echo_n "checking whether lex accepts -i... " >&6; }
 5234 if echo "%%" | $LEX -i -t >/dev/null 2>&1; then :
 5235 
 5236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5237 $as_echo "yes" >&6; }
 5238 
 5239 else
 5240 
 5241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5242 $as_echo "no" >&6; }
 5243     as_fn_error $? "unable to find a lexer that supports -i. If one is available then set the LEX variable" "$LINENO" 5
 5244 
 5245 
 5246 fi
 5247 
 5248   # Check if lex defines yy_current_buffer, because 2.4.6 and older use it,
 5249   # but later could define it as a macro and then we should not redefine it.
 5250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5
 5251 $as_echo_n "checking if lex defines yy_current_buffer... " >&6; }
 5252   cat <<EOF >conftest.lex
 5253 %%
 5254 EOF
 5255   $LEX -i -t conftest.lex >> conftest.c 2>/dev/null
 5256   if $GREP "^#define yy_current_buffer" conftest.c >/dev/null; then
 5257 
 5258 cat >>confdefs.h <<_ACEOF
 5259 #define LEX_DEFINES_YY_CURRENT_BUFFER 1
 5260 _ACEOF
 5261 
 5262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5263 $as_echo "yes" >&6; }
 5264   else
 5265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5266 $as_echo "no" >&6; }
 5267   fi
 5268   rm -f conftest.lex conftest.c
 5269 fi
 5270 
 5271 
 5272 
 5273 
 5274 
 5275 
 5276 
 5277 # Checks for typedefs, structures, and compiler characteristics.
 5278 # allow user to override the -g -O2 flags.
 5279 if test "x$CFLAGS" = "x" ; then
 5280 
 5281 
 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
 5283 $as_echo_n "checking whether $CC supports -g... " >&6; }
 5284 cache=`echo g | sed 'y%.=/+-%___p_%'`
 5285 if eval \${cv_prog_cc_flag_$cache+:} false; then :
 5286   $as_echo_n "(cached) " >&6
 5287 else
 5288 
 5289 echo 'void f(void){}' >conftest.c
 5290 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
 5291 eval "cv_prog_cc_flag_$cache=yes"
 5292 else
 5293 eval "cv_prog_cc_flag_$cache=no"
 5294 fi
 5295 rm -f conftest conftest.o conftest.c
 5296 
 5297 fi
 5298 
 5299 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5301 $as_echo "yes" >&6; }
 5302 :
 5303 CFLAGS="$CFLAGS -g"
 5304 else
 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5306 $as_echo "no" >&6; }
 5307 :
 5308 
 5309 fi
 5310 
 5311     # we do not use O3 because it causes miscompilations.
 5312 
 5313 
 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
 5315 $as_echo_n "checking whether $CC supports -O2... " >&6; }
 5316 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
 5317 if eval \${cv_prog_cc_flag_$cache+:} false; then :
 5318   $as_echo_n "(cached) " >&6
 5319 else
 5320 
 5321 echo 'void f(void){}' >conftest.c
 5322 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
 5323 eval "cv_prog_cc_flag_$cache=yes"
 5324 else
 5325 eval "cv_prog_cc_flag_$cache=no"
 5326 fi
 5327 rm -f conftest conftest.o conftest.c
 5328 
 5329 fi
 5330 
 5331 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5333 $as_echo "yes" >&6; }
 5334 :
 5335 CFLAGS="$CFLAGS -O2"
 5336 else
 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5338 $as_echo "no" >&6; }
 5339 :
 5340 
 5341 fi
 5342 
 5343 
 5344     # Check whether --enable-flto was given.
 5345 if test "${enable_flto+set}" = set; then :
 5346   enableval=$enable_flto;
 5347 fi
 5348 
 5349     if test "x$enable_flto" != "xno"; then :
 5350 
 5351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
 5352 $as_echo_n "checking if $CC supports -flto... " >&6; }
 5353         BAKCFLAGS="$CFLAGS"
 5354         CFLAGS="$CFLAGS -flto"
 5355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5356 /* end confdefs.h.  */
 5357 
 5358 int
 5359 main ()
 5360 {
 5361 
 5362   ;
 5363   return 0;
 5364 }
 5365 _ACEOF
 5366 if ac_fn_c_try_link "$LINENO"; then :
 5367 
 5368             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
 5369                 CFLAGS="$BAKCFLAGS"
 5370                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5371 $as_echo "no" >&6; }
 5372             else
 5373                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5374 $as_echo "yes" >&6; }
 5375             fi
 5376             rm -f conftest conftest.c conftest.o
 5377 
 5378 else
 5379   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5380 $as_echo "no" >&6; }
 5381 fi
 5382 rm -f core conftest.err conftest.$ac_objext \
 5383     conftest$ac_exeext conftest.$ac_ext
 5384 
 5385 fi
 5386 
 5387 
 5388     # Check whether --enable-pie was given.
 5389 if test "${enable_pie+set}" = set; then :
 5390   enableval=$enable_pie;
 5391 fi
 5392 
 5393     if test "x$enable_pie" = "xyes"; then :
 5394 
 5395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
 5396 $as_echo_n "checking if $CC supports PIE... " >&6; }
 5397     BAKLDFLAGS="$LDFLAGS"
 5398     BAKCFLAGS="$CFLAGS"
 5399     LDFLAGS="$LDFLAGS -pie"
 5400     CFLAGS="$CFLAGS -fPIE"
 5401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5402 /* end confdefs.h.  */
 5403 
 5404 int
 5405 main ()
 5406 {
 5407 
 5408   ;
 5409   return 0;
 5410 }
 5411 _ACEOF
 5412 if ac_fn_c_try_link "$LINENO"; then :
 5413 
 5414         if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
 5415         LDFLAGS="$BAKLDFLAGS"
 5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5417 $as_echo "no" >&6; }
 5418         else
 5419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5420 $as_echo "yes" >&6; }
 5421         fi
 5422         rm -f conftest conftest.c conftest.o
 5423 
 5424 else
 5425   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5426 $as_echo "no" >&6; }
 5427 fi
 5428 rm -f core conftest.err conftest.$ac_objext \
 5429     conftest$ac_exeext conftest.$ac_ext
 5430 
 5431 fi
 5432 
 5433 
 5434     # Check whether --enable-relro_now was given.
 5435 if test "${enable_relro_now+set}" = set; then :
 5436   enableval=$enable_relro_now;
 5437 fi
 5438 
 5439     if test "x$enable_relro_now" = "xyes"; then :
 5440 
 5441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
 5442 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
 5443     BAKLDFLAGS="$LDFLAGS"
 5444     LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
 5445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5446 /* end confdefs.h.  */
 5447 
 5448 int
 5449 main ()
 5450 {
 5451 
 5452   ;
 5453   return 0;
 5454 }
 5455 _ACEOF
 5456 if ac_fn_c_try_link "$LINENO"; then :
 5457 
 5458         if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
 5459         LDFLAGS="$BAKLDFLAGS"
 5460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5461 $as_echo "no" >&6; }
 5462         else
 5463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5464 $as_echo "yes" >&6; }
 5465         fi
 5466         rm -f conftest conftest.c conftest.o
 5467 
 5468 else
 5469   LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5470 $as_echo "no" >&6; }
 5471 fi
 5472 rm -f core conftest.err conftest.$ac_objext \
 5473     conftest$ac_exeext conftest.$ac_ext
 5474 
 5475 fi
 5476