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