Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.8
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for tmux 3.2a.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME='tmux'
    579 PACKAGE_TARNAME='tmux'
    580 PACKAGE_VERSION='3.2a'
    581 PACKAGE_STRING='tmux 3.2a'
    582 PACKAGE_BUGREPORT=''
    583 PACKAGE_URL=''
    584 
    585 ac_config_libobj_dir=compat
    586 # Factoring default headers for most tests.
    587 ac_includes_default="\
    588 #include <stdio.h>
    589 #ifdef HAVE_SYS_TYPES_H
    590 # include <sys/types.h>
    591 #endif
    592 #ifdef HAVE_SYS_STAT_H
    593 # include <sys/stat.h>
    594 #endif
    595 #ifdef STDC_HEADERS
    596 # include <stdlib.h>
    597 # include <stddef.h>
    598 #else
    599 # ifdef HAVE_STDLIB_H
    600 #  include <stdlib.h>
    601 # endif
    602 #endif
    603 #ifdef HAVE_STRING_H
    604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    605 #  include <memory.h>
    606 # endif
    607 # include <string.h>
    608 #endif
    609 #ifdef HAVE_STRINGS_H
    610 # include <strings.h>
    611 #endif
    612 #ifdef HAVE_INTTYPES_H
    613 # include <inttypes.h>
    614 #endif
    615 #ifdef HAVE_STDINT_H
    616 # include <stdint.h>
    617 #endif
    618 #ifdef HAVE_UNISTD_H
    619 # include <unistd.h>
    620 #endif"
    621 
    622 ac_subst_vars='am__EXEEXT_FALSE
    623 am__EXEEXT_TRUE
    624 LTLIBOBJS
    625 AM_LDFLAGS
    626 AM_CFLAGS
    627 AM_CPPFLAGS
    628 IS_UNKNOWN_FALSE
    629 IS_UNKNOWN_TRUE
    630 IS_HAIKU_FALSE
    631 IS_HAIKU_TRUE
    632 IS_HPUX_FALSE
    633 IS_HPUX_TRUE
    634 IS_SUNOS_FALSE
    635 IS_SUNOS_TRUE
    636 IS_OPENBSD_FALSE
    637 IS_OPENBSD_TRUE
    638 IS_NETBSD_FALSE
    639 IS_NETBSD_TRUE
    640 IS_FREEBSD_FALSE
    641 IS_FREEBSD_TRUE
    642 IS_LINUX_FALSE
    643 IS_LINUX_TRUE
    644 IS_DRAGONFLY_FALSE
    645 IS_DRAGONFLY_TRUE
    646 IS_DARWIN_FALSE
    647 IS_DARWIN_TRUE
    648 IS_AIX_FALSE
    649 IS_AIX_TRUE
    650 PLATFORM
    651 MANFORMAT
    652 NEED_FORKPTY_FALSE
    653 NEED_FORKPTY_TRUE
    654 XOPEN_DEFINES
    655 HAVE_UTF8PROC_FALSE
    656 HAVE_UTF8PROC_TRUE
    657 LIBNCURSESW_LIBS
    658 LIBNCURSESW_CFLAGS
    659 LIBNCURSES_LIBS
    660 LIBNCURSES_CFLAGS
    661 LIBTINFO_LIBS
    662 LIBTINFO_CFLAGS
    663 LIBEVENT_LIBS
    664 LIBEVENT_CFLAGS
    665 LIBEVENT_CORE_LIBS
    666 LIBEVENT_CORE_CFLAGS
    667 LIBOBJS
    668 IS_SUNCC_FALSE
    669 IS_SUNCC_TRUE
    670 IS_GCC_FALSE
    671 IS_GCC_TRUE
    672 NEED_FUZZING_FALSE
    673 NEED_FUZZING_TRUE
    674 IS_DEBUG_FALSE
    675 IS_DEBUG_TRUE
    676 PKG_CONFIG_LIBDIR
    677 PKG_CONFIG_PATH
    678 PKG_CONFIG
    679 YFLAGS
    680 YACC
    681 EGREP
    682 GREP
    683 CPP
    684 am__fastdepCC_FALSE
    685 am__fastdepCC_TRUE
    686 CCDEPMODE
    687 am__nodep
    688 AMDEPBACKSLASH
    689 AMDEP_FALSE
    690 AMDEP_TRUE
    691 am__quote
    692 am__include
    693 DEPDIR
    694 OBJEXT
    695 EXEEXT
    696 ac_ct_CC
    697 CPPFLAGS
    698 LDFLAGS
    699 CFLAGS
    700 CC
    701 FUZZING_LIBS
    702 host_os
    703 host_vendor
    704 host_cpu
    705 host
    706 build_os
    707 build_vendor
    708 build_cpu
    709 build
    710 AM_BACKSLASH
    711 AM_DEFAULT_VERBOSITY
    712 AM_DEFAULT_V
    713 AM_V
    714 am__untar
    715 am__tar
    716 AMTAR
    717 am__leading_dot
    718 SET_MAKE
    719 AWK
    720 mkdir_p
    721 MKDIR_P
    722 INSTALL_STRIP_PROGRAM
    723 STRIP
    724 install_sh
    725 MAKEINFO
    726 AUTOHEADER
    727 AUTOMAKE
    728 AUTOCONF
    729 ACLOCAL
    730 VERSION
    731 PACKAGE
    732 CYGPATH_W
    733 am__isrc
    734 INSTALL_DATA
    735 INSTALL_SCRIPT
    736 INSTALL_PROGRAM
    737 target_alias
    738 host_alias
    739 build_alias
    740 LIBS
    741 ECHO_T
    742 ECHO_N
    743 ECHO_C
    744 DEFS
    745 mandir
    746 localedir
    747 libdir
    748 psdir
    749 pdfdir
    750 dvidir
    751 htmldir
    752 infodir
    753 docdir
    754 oldincludedir
    755 includedir
    756 runstatedir
    757 localstatedir
    758 sharedstatedir
    759 sysconfdir
    760 datadir
    761 datarootdir
    762 libexecdir
    763 sbindir
    764 bindir
    765 program_transform_name
    766 prefix
    767 exec_prefix
    768 PACKAGE_URL
    769 PACKAGE_BUGREPORT
    770 PACKAGE_STRING
    771 PACKAGE_VERSION
    772 PACKAGE_TARNAME
    773 PACKAGE_NAME
    774 PATH_SEPARATOR
    775 SHELL'
    776 ac_subst_files=''
    777 ac_user_opts='
    778 enable_option_checking
    779 enable_silent_rules
    780 enable_fuzzing
    781 enable_dependency_tracking
    782 enable_debug
    783 enable_static
    784 enable_utempter
    785 enable_utf8proc
    786 '
    787       ac_precious_vars='build_alias
    788 host_alias
    789 target_alias
    790 FUZZING_LIBS
    791 CC
    792 CFLAGS
    793 LDFLAGS
    794 LIBS
    795 CPPFLAGS
    796 CPP
    797 YACC
    798 YFLAGS
    799 PKG_CONFIG
    800 PKG_CONFIG_PATH
    801 PKG_CONFIG_LIBDIR
    802 LIBEVENT_CORE_CFLAGS
    803 LIBEVENT_CORE_LIBS
    804 LIBEVENT_CFLAGS
    805 LIBEVENT_LIBS
    806 LIBTINFO_CFLAGS
    807 LIBTINFO_LIBS
    808 LIBNCURSES_CFLAGS
    809 LIBNCURSES_LIBS
    810 LIBNCURSESW_CFLAGS
    811 LIBNCURSESW_LIBS'
    812 
    813 
    814 # Initialize some variables set by options.
    815 ac_init_help=
    816 ac_init_version=false
    817 ac_unrecognized_opts=
    818 ac_unrecognized_sep=
    819 # The variables have the same names as the options, with
    820 # dashes changed to underlines.
    821 cache_file=/dev/null
    822 exec_prefix=NONE
    823 no_create=
    824 no_recursion=
    825 prefix=NONE
    826 program_prefix=NONE
    827 program_suffix=NONE
    828 program_transform_name=s,x,x,
    829 silent=
    830 site=
    831 srcdir=
    832 verbose=
    833 x_includes=NONE
    834 x_libraries=NONE
    835 
    836 # Installation directory options.
    837 # These are left unexpanded so users can "make install exec_prefix=/foo"
    838 # and all the variables that are supposed to be based on exec_prefix
    839 # by default will actually change.
    840 # Use braces instead of parens because sh, perl, etc. also accept them.
    841 # (The list follows the same order as the GNU Coding Standards.)
    842 bindir='${exec_prefix}/bin'
    843 sbindir='${exec_prefix}/sbin'
    844 libexecdir='${exec_prefix}/libexec'
    845 datarootdir='${prefix}/share'
    846 datadir='${datarootdir}'
    847 sysconfdir='${prefix}/etc'
    848 sharedstatedir='${prefix}/com'
    849 localstatedir='${prefix}/var'
    850 runstatedir='${localstatedir}/run'
    851 includedir='${prefix}/include'
    852 oldincludedir='/usr/include'
    853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    854 infodir='${datarootdir}/info'
    855 htmldir='${docdir}'
    856 dvidir='${docdir}'
    857 pdfdir='${docdir}'
    858 psdir='${docdir}'
    859 libdir='${exec_prefix}/lib'
    860 localedir='${datarootdir}/locale'
    861 mandir='${datarootdir}/man'
    862 
    863 ac_prev=
    864 ac_dashdash=
    865 for ac_option
    866 do
    867   # If the previous option needs an argument, assign it.
    868   if test -n "$ac_prev"; then
    869     eval $ac_prev=\$ac_option
    870     ac_prev=
    871     continue
    872   fi
    873 
    874   case $ac_option in
    875   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    876   *=)   ac_optarg= ;;
    877   *)    ac_optarg=yes ;;
    878   esac
    879 
    880   # Accept the important Cygnus configure options, so we can diagnose typos.
    881 
    882   case $ac_dashdash$ac_option in
    883   --)
    884     ac_dashdash=yes ;;
    885 
    886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    887     ac_prev=bindir ;;
    888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    889     bindir=$ac_optarg ;;
    890 
    891   -build | --build | --buil | --bui | --bu)
    892     ac_prev=build_alias ;;
    893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    894     build_alias=$ac_optarg ;;
    895 
    896   -cache-file | --cache-file | --cache-fil | --cache-fi \
    897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    898     ac_prev=cache_file ;;
    899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    901     cache_file=$ac_optarg ;;
    902 
    903   --config-cache | -C)
    904     cache_file=config.cache ;;
    905 
    906   -datadir | --datadir | --datadi | --datad)
    907     ac_prev=datadir ;;
    908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    909     datadir=$ac_optarg ;;
    910 
    911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    912   | --dataroo | --dataro | --datar)
    913     ac_prev=datarootdir ;;
    914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    916     datarootdir=$ac_optarg ;;
    917 
    918   -disable-* | --disable-*)
    919     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    920     # Reject names that are not valid shell variable names.
    921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    922       as_fn_error $? "invalid feature name: $ac_useropt"
    923     ac_useropt_orig=$ac_useropt
    924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    925     case $ac_user_opts in
    926       *"
    927 "enable_$ac_useropt"
    928 "*) ;;
    929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    930 	 ac_unrecognized_sep=', ';;
    931     esac
    932     eval enable_$ac_useropt=no ;;
    933 
    934   -docdir | --docdir | --docdi | --doc | --do)
    935     ac_prev=docdir ;;
    936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    937     docdir=$ac_optarg ;;
    938 
    939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    940     ac_prev=dvidir ;;
    941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    942     dvidir=$ac_optarg ;;
    943 
    944   -enable-* | --enable-*)
    945     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    946     # Reject names that are not valid shell variable names.
    947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    948       as_fn_error $? "invalid feature name: $ac_useropt"
    949     ac_useropt_orig=$ac_useropt
    950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    951     case $ac_user_opts in
    952       *"
    953 "enable_$ac_useropt"
    954 "*) ;;
    955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    956 	 ac_unrecognized_sep=', ';;
    957     esac
    958     eval enable_$ac_useropt=\$ac_optarg ;;
    959 
    960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    962   | --exec | --exe | --ex)
    963     ac_prev=exec_prefix ;;
    964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    966   | --exec=* | --exe=* | --ex=*)
    967     exec_prefix=$ac_optarg ;;
    968 
    969   -gas | --gas | --ga | --g)
    970     # Obsolete; use --with-gas.
    971     with_gas=yes ;;
    972 
    973   -help | --help | --hel | --he | -h)
    974     ac_init_help=long ;;
    975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    976     ac_init_help=recursive ;;
    977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    978     ac_init_help=short ;;
    979 
    980   -host | --host | --hos | --ho)
    981     ac_prev=host_alias ;;
    982   -host=* | --host=* | --hos=* | --ho=*)
    983     host_alias=$ac_optarg ;;
    984 
    985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    986     ac_prev=htmldir ;;
    987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    988   | --ht=*)
    989     htmldir=$ac_optarg ;;
    990 
    991   -includedir | --includedir | --includedi | --included | --include \
    992   | --includ | --inclu | --incl | --inc)
    993     ac_prev=includedir ;;
    994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    995   | --includ=* | --inclu=* | --incl=* | --inc=*)
    996     includedir=$ac_optarg ;;
    997 
    998   -infodir | --infodir | --infodi | --infod | --info | --inf)
    999     ac_prev=infodir ;;
   1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1001     infodir=$ac_optarg ;;
   1002 
   1003   -libdir | --libdir | --libdi | --libd)
   1004     ac_prev=libdir ;;
   1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1006     libdir=$ac_optarg ;;
   1007 
   1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1009   | --libexe | --libex | --libe)
   1010     ac_prev=libexecdir ;;
   1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1012   | --libexe=* | --libex=* | --libe=*)
   1013     libexecdir=$ac_optarg ;;
   1014 
   1015   -localedir | --localedir | --localedi | --localed | --locale)
   1016     ac_prev=localedir ;;
   1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1018     localedir=$ac_optarg ;;
   1019 
   1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1021   | --localstate | --localstat | --localsta | --localst | --locals)
   1022     ac_prev=localstatedir ;;
   1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1025     localstatedir=$ac_optarg ;;
   1026 
   1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1028     ac_prev=mandir ;;
   1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1030     mandir=$ac_optarg ;;
   1031 
   1032   -nfp | --nfp | --nf)
   1033     # Obsolete; use --without-fp.
   1034     with_fp=no ;;
   1035 
   1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1037   | --no-cr | --no-c | -n)
   1038     no_create=yes ;;
   1039 
   1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1042     no_recursion=yes ;;
   1043 
   1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1046   | --oldin | --oldi | --old | --ol | --o)
   1047     ac_prev=oldincludedir ;;
   1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1051     oldincludedir=$ac_optarg ;;
   1052 
   1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1054     ac_prev=prefix ;;
   1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1056     prefix=$ac_optarg ;;
   1057 
   1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1059   | --program-pre | --program-pr | --program-p)
   1060     ac_prev=program_prefix ;;
   1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1063     program_prefix=$ac_optarg ;;
   1064 
   1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1066   | --program-suf | --program-su | --program-s)
   1067     ac_prev=program_suffix ;;
   1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1070     program_suffix=$ac_optarg ;;
   1071 
   1072   -program-transform-name | --program-transform-name \
   1073   | --program-transform-nam | --program-transform-na \
   1074   | --program-transform-n | --program-transform- \
   1075   | --program-transform | --program-transfor \
   1076   | --program-transfo | --program-transf \
   1077   | --program-trans | --program-tran \
   1078   | --progr-tra | --program-tr | --program-t)
   1079     ac_prev=program_transform_name ;;
   1080   -program-transform-name=* | --program-transform-name=* \
   1081   | --program-transform-nam=* | --program-transform-na=* \
   1082   | --program-transform-n=* | --program-transform-=* \
   1083   | --program-transform=* | --program-transfor=* \
   1084   | --program-transfo=* | --program-transf=* \
   1085   | --program-trans=* | --program-tran=* \
   1086   | --progr-tra=* | --program-tr=* | --program-t=*)
   1087     program_transform_name=$ac_optarg ;;
   1088 
   1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1090     ac_prev=pdfdir ;;
   1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1092     pdfdir=$ac_optarg ;;
   1093 
   1094   -psdir | --psdir | --psdi | --psd | --ps)
   1095     ac_prev=psdir ;;
   1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1097     psdir=$ac_optarg ;;
   1098 
   1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1100   | -silent | --silent | --silen | --sile | --sil)
   1101     silent=yes ;;
   1102 
   1103   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1104   | --runstate | --runstat | --runsta | --runst | --runs \
   1105   | --run | --ru | --r)
   1106     ac_prev=runstatedir ;;
   1107   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1108   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1109   | --run=* | --ru=* | --r=*)
   1110     runstatedir=$ac_optarg ;;
   1111 
   1112   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1113     ac_prev=sbindir ;;
   1114   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1115   | --sbi=* | --sb=*)
   1116     sbindir=$ac_optarg ;;
   1117 
   1118   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1119   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1120   | --sharedst | --shareds | --shared | --share | --shar \
   1121   | --sha | --sh)
   1122     ac_prev=sharedstatedir ;;
   1123   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1124   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1125   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1126   | --sha=* | --sh=*)
   1127     sharedstatedir=$ac_optarg ;;
   1128 
   1129   -site | --site | --sit)
   1130     ac_prev=site ;;
   1131   -site=* | --site=* | --sit=*)
   1132     site=$ac_optarg ;;
   1133 
   1134   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1135     ac_prev=srcdir ;;
   1136   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1137     srcdir=$ac_optarg ;;
   1138 
   1139   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1140   | --syscon | --sysco | --sysc | --sys | --sy)
   1141     ac_prev=sysconfdir ;;
   1142   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1143   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1144     sysconfdir=$ac_optarg ;;
   1145 
   1146   -target | --target | --targe | --targ | --tar | --ta | --t)
   1147     ac_prev=target_alias ;;
   1148   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1149     target_alias=$ac_optarg ;;
   1150 
   1151   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1152     verbose=yes ;;
   1153 
   1154   -version | --version | --versio | --versi | --vers | -V)
   1155     ac_init_version=: ;;
   1156 
   1157   -with-* | --with-*)
   1158     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1159     # Reject names that are not valid shell variable names.
   1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1161       as_fn_error $? "invalid package name: $ac_useropt"
   1162     ac_useropt_orig=$ac_useropt
   1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1164     case $ac_user_opts in
   1165       *"
   1166 "with_$ac_useropt"
   1167 "*) ;;
   1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1169 	 ac_unrecognized_sep=', ';;
   1170     esac
   1171     eval with_$ac_useropt=\$ac_optarg ;;
   1172 
   1173   -without-* | --without-*)
   1174     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1175     # Reject names that are not valid shell variable names.
   1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1177       as_fn_error $? "invalid package name: $ac_useropt"
   1178     ac_useropt_orig=$ac_useropt
   1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1180     case $ac_user_opts in
   1181       *"
   1182 "with_$ac_useropt"
   1183 "*) ;;
   1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1185 	 ac_unrecognized_sep=', ';;
   1186     esac
   1187     eval with_$ac_useropt=no ;;
   1188 
   1189   --x)
   1190     # Obsolete; use --with-x.
   1191     with_x=yes ;;
   1192 
   1193   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1194   | --x-incl | --x-inc | --x-in | --x-i)
   1195     ac_prev=x_includes ;;
   1196   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1197   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1198     x_includes=$ac_optarg ;;
   1199 
   1200   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1201   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1202     ac_prev=x_libraries ;;
   1203   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1204   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1205     x_libraries=$ac_optarg ;;
   1206 
   1207   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1208 Try \`$0 --help' for more information"
   1209     ;;
   1210 
   1211   *=*)
   1212     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1213     # Reject names that are not valid shell variable names.
   1214     case $ac_envvar in #(
   1215       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1216       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1217     esac
   1218     eval $ac_envvar=\$ac_optarg
   1219     export $ac_envvar ;;
   1220 
   1221   *)
   1222     # FIXME: should be removed in autoconf 3.0.
   1223     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1224     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1225       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1226     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1227     ;;
   1228 
   1229   esac
   1230 done
   1231 
   1232 if test -n "$ac_prev"; then
   1233   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1234   as_fn_error $? "missing argument to $ac_option"
   1235 fi
   1236 
   1237 if test -n "$ac_unrecognized_opts"; then
   1238   case $enable_option_checking in
   1239     no) ;;
   1240     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1241     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1242   esac
   1243 fi
   1244 
   1245 # Check all directory arguments for consistency.
   1246 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1247 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1248 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1249 		libdir localedir mandir runstatedir
   1250 do
   1251   eval ac_val=\$$ac_var
   1252   # Remove trailing slashes.
   1253   case $ac_val in
   1254     */ )
   1255       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1256       eval $ac_var=\$ac_val;;
   1257   esac
   1258   # Be sure to have absolute directory names.
   1259   case $ac_val in
   1260     [\\/$]* | ?:[\\/]* )  continue;;
   1261     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1262   esac
   1263   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1264 done
   1265 
   1266 # There might be people who depend on the old broken behavior: `$host'
   1267 # used to hold the argument of --host etc.
   1268 # FIXME: To remove some day.
   1269 build=$build_alias
   1270 host=$host_alias
   1271 target=$target_alias
   1272 
   1273 # FIXME: To remove some day.
   1274 if test "x$host_alias" != x; then
   1275   if test "x$build_alias" = x; then
   1276     cross_compiling=maybe
   1277   elif test "x$build_alias" != "x$host_alias"; then
   1278     cross_compiling=yes
   1279   fi
   1280 fi
   1281 
   1282 ac_tool_prefix=
   1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1284 
   1285 test "$silent" = yes && exec 6>/dev/null
   1286 
   1287 
   1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1289 ac_ls_di=`ls -di .` &&
   1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1291   as_fn_error $? "working directory cannot be determined"
   1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1293   as_fn_error $? "pwd does not report name of working directory"
   1294 
   1295 
   1296 # Find the source files, if location was not specified.
   1297 if test -z "$srcdir"; then
   1298   ac_srcdir_defaulted=yes
   1299   # Try the directory containing this script, then the parent directory.
   1300   ac_confdir=`$as_dirname -- "$as_myself" ||
   1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1302 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1303 	 X"$as_myself" : 'X\(//\)$' \| \
   1304 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1305 $as_echo X"$as_myself" |
   1306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1307 	    s//\1/
   1308 	    q
   1309 	  }
   1310 	  /^X\(\/\/\)[^/].*/{
   1311 	    s//\1/
   1312 	    q
   1313 	  }
   1314 	  /^X\(\/\/\)$/{
   1315 	    s//\1/
   1316 	    q
   1317 	  }
   1318 	  /^X\(\/\).*/{
   1319 	    s//\1/
   1320 	    q
   1321 	  }
   1322 	  s/.*/./; q'`
   1323   srcdir=$ac_confdir
   1324   if test ! -r "$srcdir/$ac_unique_file"; then
   1325     srcdir=..
   1326   fi
   1327 else
   1328   ac_srcdir_defaulted=no
   1329 fi
   1330 if test ! -r "$srcdir/$ac_unique_file"; then
   1331   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1332   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1333 fi
   1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1335 ac_abs_confdir=`(
   1336 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1337 	pwd)`
   1338 # When building in place, set srcdir=.
   1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1340   srcdir=.
   1341 fi
   1342 # Remove unnecessary trailing slashes from srcdir.
   1343 # Double slashes in file names in object file debugging info
   1344 # mess up M-x gdb in Emacs.
   1345 case $srcdir in
   1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1347 esac
   1348 for ac_var in $ac_precious_vars; do
   1349   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1350   eval ac_env_${ac_var}_value=\$${ac_var}
   1351   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1352   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1353 done
   1354 
   1355 #
   1356 # Report the --help message.
   1357 #
   1358 if test "$ac_init_help" = "long"; then
   1359   # Omit some internal or obsolete options to make the list less imposing.
   1360   # This message is too long to be a string in the A/UX 3.1 sh.
   1361   cat <<_ACEOF
   1362 \`configure' configures tmux 3.2a to adapt to many kinds of systems.
   1363 
   1364 Usage: $0 [OPTION]... [VAR=VALUE]...
   1365 
   1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1367 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1368 
   1369 Defaults for the options are specified in brackets.
   1370 
   1371 Configuration:
   1372   -h, --help              display this help and exit
   1373       --help=short        display options specific to this package
   1374       --help=recursive    display the short help of all the included packages
   1375   -V, --version           display version information and exit
   1376   -q, --quiet, --silent   do not print \`checking ...' messages
   1377       --cache-file=FILE   cache test results in FILE [disabled]
   1378   -C, --config-cache      alias for \`--cache-file=config.cache'
   1379   -n, --no-create         do not create output files
   1380       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1381 
   1382 Installation directories:
   1383   --prefix=PREFIX         install architecture-independent files in PREFIX
   1384                           [$ac_default_prefix]
   1385   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1386                           [PREFIX]
   1387 
   1388 By default, \`make install' will install all the files in
   1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1391 for instance \`--prefix=\$HOME'.
   1392 
   1393 For better control, use the options below.
   1394 
   1395 Fine tuning of the installation directories:
   1396   --bindir=DIR            user executables [EPREFIX/bin]
   1397   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1398   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1399   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1400   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1401   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1402   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1403   --libdir=DIR            object code libraries [EPREFIX/lib]
   1404   --includedir=DIR        C header files [PREFIX/include]
   1405   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1406   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1407   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1408   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1409   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1410   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1411   --docdir=DIR            documentation root [DATAROOTDIR/doc/tmux]
   1412   --htmldir=DIR           html documentation [DOCDIR]
   1413   --dvidir=DIR            dvi documentation [DOCDIR]
   1414   --pdfdir=DIR            pdf documentation [DOCDIR]
   1415   --psdir=DIR             ps documentation [DOCDIR]
   1416 _ACEOF
   1417 
   1418   cat <<\_ACEOF
   1419 
   1420 Program names:
   1421   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1422   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1423   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1424 
   1425 System types:
   1426   --build=BUILD     configure for building on BUILD [guessed]
   1427   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1428 _ACEOF
   1429 fi
   1430 
   1431 if test -n "$ac_init_help"; then
   1432   case $ac_init_help in
   1433      short | recursive ) echo "Configuration of tmux 3.2a:";;
   1434    esac
   1435   cat <<\_ACEOF
   1436 
   1437 Optional Features:
   1438   --disable-option-checking  ignore unrecognized --enable/--with options
   1439   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1440   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1441   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1442   --disable-silent-rules  verbose build output (undo: "make V=0")
   1443   --enable-fuzzing        build fuzzers
   1444 
   1445   --enable-dependency-tracking
   1446                           do not reject slow dependency extractors
   1447   --disable-dependency-tracking
   1448                           speeds up one-time build
   1449   --enable-debug          enable debug build flags
   1450   --enable-static         create a static build
   1451 
   1452   --enable-utempter       use utempter if it is installed
   1453 
   1454   --enable-utf8proc       use utf8proc if it is installed
   1455 
   1456 
   1457 Some influential environment variables:
   1458   FUZZING_LIBS
   1459               libraries to link fuzzing targets with
   1460   CC          C compiler command
   1461   CFLAGS      C compiler flags
   1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1463               nonstandard directory <lib dir>
   1464   LIBS        libraries to pass to the linker, e.g. -l<library>
   1465   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1466               you have headers in a nonstandard directory <include dir>
   1467   CPP         C preprocessor
   1468   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1469               Defaults to the first program found out of: `bison -y', `byacc',
   1470               `yacc'.
   1471   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1472               This script will default YFLAGS to the empty string to avoid a
   1473               default value of `-d' given by some make applications.
   1474   PKG_CONFIG  path to pkg-config utility
   1475   PKG_CONFIG_PATH
   1476               directories to add to pkg-config's search path
   1477   PKG_CONFIG_LIBDIR
   1478               path overriding pkg-config's built-in search path
   1479   LIBEVENT_CORE_CFLAGS
   1480               C compiler flags for LIBEVENT_CORE, overriding pkg-config
   1481   LIBEVENT_CORE_LIBS
   1482               linker flags for LIBEVENT_CORE, overriding pkg-config
   1483   LIBEVENT_CFLAGS
   1484               C compiler flags for LIBEVENT, overriding pkg-config
   1485   LIBEVENT_LIBS
   1486               linker flags for LIBEVENT, overriding pkg-config
   1487   LIBTINFO_CFLAGS
   1488               C compiler flags for LIBTINFO, overriding pkg-config
   1489   LIBTINFO_LIBS
   1490               linker flags for LIBTINFO, overriding pkg-config
   1491   LIBNCURSES_CFLAGS
   1492               C compiler flags for LIBNCURSES, overriding pkg-config
   1493   LIBNCURSES_LIBS
   1494               linker flags for LIBNCURSES, overriding pkg-config
   1495   LIBNCURSESW_CFLAGS
   1496               C compiler flags for LIBNCURSESW, overriding pkg-config
   1497   LIBNCURSESW_LIBS
   1498               linker flags for LIBNCURSESW, overriding pkg-config
   1499 
   1500 Use these variables to override the choices made by `configure' or to help
   1501 it to find libraries and programs with nonstandard names/locations.
   1502 
   1503 Report bugs to the package provider.
   1504 _ACEOF
   1505 ac_status=$?
   1506 fi
   1507 
   1508 if test "$ac_init_help" = "recursive"; then
   1509   # If there are subdirs, report their specific --help.
   1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1511     test -d "$ac_dir" ||
   1512       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1513       continue
   1514     ac_builddir=.
   1515 
   1516 case "$ac_dir" in
   1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1518 *)
   1519   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1520   # A ".." for each directory in $ac_dir_suffix.
   1521   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1522   case $ac_top_builddir_sub in
   1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1525   esac ;;
   1526 esac
   1527 ac_abs_top_builddir=$ac_pwd
   1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1529 # for backward compatibility:
   1530 ac_top_builddir=$ac_top_build_prefix
   1531 
   1532 case $srcdir in
   1533   .)  # We are building in place.
   1534     ac_srcdir=.
   1535     ac_top_srcdir=$ac_top_builddir_sub
   1536     ac_abs_top_srcdir=$ac_pwd ;;
   1537   [\\/]* | ?:[\\/]* )  # Absolute name.
   1538     ac_srcdir=$srcdir$ac_dir_suffix;
   1539     ac_top_srcdir=$srcdir
   1540     ac_abs_top_srcdir=$srcdir ;;
   1541   *) # Relative name.
   1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1545 esac
   1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1547 
   1548     cd "$ac_dir" || { ac_status=$?; continue; }
   1549     # Check for guested configure.
   1550     if test -f "$ac_srcdir/configure.gnu"; then
   1551       echo &&
   1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1553     elif test -f "$ac_srcdir/configure"; then
   1554       echo &&
   1555       $SHELL "$ac_srcdir/configure" --help=recursive
   1556     else
   1557       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1558     fi || ac_status=$?
   1559     cd "$ac_pwd" || { ac_status=$?; break; }
   1560   done
   1561 fi
   1562 
   1563 test -n "$ac_init_help" && exit $ac_status
   1564 if $ac_init_version; then
   1565   cat <<\_ACEOF
   1566 tmux configure 3.2a
   1567 generated by GNU Autoconf 2.69
   1568 
   1569 Copyright (C) 2012 Free Software Foundation, Inc.
   1570 This configure script is free software; the Free Software Foundation
   1571 gives unlimited permission to copy, distribute and modify it.
   1572 _ACEOF
   1573   exit
   1574 fi
   1575 
   1576 ## ------------------------ ##
   1577 ## Autoconf initialization. ##
   1578 ## ------------------------ ##
   1579 
   1580 # ac_fn_c_try_compile LINENO
   1581 # --------------------------
   1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1583 ac_fn_c_try_compile ()
   1584 {
   1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1586   rm -f conftest.$ac_objext
   1587   if { { ac_try="$ac_compile"
   1588 case "(($ac_try" in
   1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1590   *) ac_try_echo=$ac_try;;
   1591 esac
   1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1593 $as_echo "$ac_try_echo"; } >&5
   1594   (eval "$ac_compile") 2>conftest.err
   1595   ac_status=$?
   1596   if test -s conftest.err; then
   1597     grep -v '^ *+' conftest.err >conftest.er1
   1598     cat conftest.er1 >&5
   1599     mv -f conftest.er1 conftest.err
   1600   fi
   1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1602   test $ac_status = 0; } && {
   1603 	 test -z "$ac_c_werror_flag" ||
   1604 	 test ! -s conftest.err
   1605        } && test -s conftest.$ac_objext; then :
   1606   ac_retval=0
   1607 else
   1608   $as_echo "$as_me: failed program was:" >&5
   1609 sed 's/^/| /' conftest.$ac_ext >&5
   1610 
   1611 	ac_retval=1
   1612 fi
   1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1614   as_fn_set_status $ac_retval
   1615 
   1616 } # ac_fn_c_try_compile
   1617 
   1618 # ac_fn_c_try_cpp LINENO
   1619 # ----------------------
   1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1621 ac_fn_c_try_cpp ()
   1622 {
   1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1624   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1625 case "(($ac_try" in
   1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1627   *) ac_try_echo=$ac_try;;
   1628 esac
   1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1630 $as_echo "$ac_try_echo"; } >&5
   1631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1632   ac_status=$?
   1633   if test -s conftest.err; then
   1634     grep -v '^ *+' conftest.err >conftest.er1
   1635     cat conftest.er1 >&5
   1636     mv -f conftest.er1 conftest.err
   1637   fi
   1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1639   test $ac_status = 0; } > conftest.i && {
   1640 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1641 	 test ! -s conftest.err
   1642        }; then :
   1643   ac_retval=0
   1644 else
   1645   $as_echo "$as_me: failed program was:" >&5
   1646 sed 's/^/| /' conftest.$ac_ext >&5
   1647 
   1648     ac_retval=1
   1649 fi
   1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1651   as_fn_set_status $ac_retval
   1652 
   1653 } # ac_fn_c_try_cpp
   1654 
   1655 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1656 # -------------------------------------------------------
   1657 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1658 # the include files in INCLUDES and setting the cache variable VAR
   1659 # accordingly.
   1660 ac_fn_c_check_header_mongrel ()
   1661 {
   1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1663   if eval \${$3+:} false; then :
   1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1665 $as_echo_n "checking for $2... " >&6; }
   1666 if eval \${$3+:} false; then :
   1667   $as_echo_n "(cached) " >&6
   1668 fi
   1669 eval ac_res=\$$3
   1670 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1671 $as_echo "$ac_res" >&6; }
   1672 else
   1673   # Is the header compilable?
   1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1675 $as_echo_n "checking $2 usability... " >&6; }
   1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1677 /* end confdefs.h.  */
   1678 $4
   1679 #include <$2>
   1680 _ACEOF
   1681 if ac_fn_c_try_compile "$LINENO"; then :
   1682   ac_header_compiler=yes
   1683 else
   1684   ac_header_compiler=no
   1685 fi
   1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1688 $as_echo "$ac_header_compiler" >&6; }
   1689 
   1690 # Is the header present?
   1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1692 $as_echo_n "checking $2 presence... " >&6; }
   1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1694 /* end confdefs.h.  */
   1695 #include <$2>
   1696 _ACEOF
   1697 if ac_fn_c_try_cpp "$LINENO"; then :
   1698   ac_header_preproc=yes
   1699 else
   1700   ac_header_preproc=no
   1701 fi
   1702 rm -f conftest.err conftest.i conftest.$ac_ext
   1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1704 $as_echo "$ac_header_preproc" >&6; }
   1705 
   1706 # So?  What about this header?
   1707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1708   yes:no: )
   1709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1710 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1711     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1712 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1713     ;;
   1714   no:yes:* )
   1715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1716 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1718 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1720 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1722 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1725     ;;
   1726 esac
   1727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1728 $as_echo_n "checking for $2... " >&6; }
   1729 if eval \${$3+:} false; then :
   1730   $as_echo_n "(cached) " >&6
   1731 else
   1732   eval "$3=\$ac_header_compiler"
   1733 fi
   1734 eval ac_res=\$$3
   1735 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1736 $as_echo "$ac_res" >&6; }
   1737 fi
   1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1739 
   1740 } # ac_fn_c_check_header_mongrel
   1741 
   1742 # ac_fn_c_try_run LINENO
   1743 # ----------------------
   1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1745 # that executables *can* be run.
   1746 ac_fn_c_try_run ()
   1747 {
   1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1749   if { { ac_try="$ac_link"
   1750 case "(($ac_try" in
   1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1752   *) ac_try_echo=$ac_try;;
   1753 esac
   1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1755 $as_echo "$ac_try_echo"; } >&5
   1756   (eval "$ac_link") 2>&5
   1757   ac_status=$?
   1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1759   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1760   { { case "(($ac_try" in
   1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1762   *) ac_try_echo=$ac_try;;
   1763 esac
   1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1765 $as_echo "$ac_try_echo"; } >&5
   1766   (eval "$ac_try") 2>&5
   1767   ac_status=$?
   1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1769   test $ac_status = 0; }; }; then :
   1770   ac_retval=0
   1771 else
   1772   $as_echo "$as_me: program exited with status $ac_status" >&5
   1773        $as_echo "$as_me: failed program was:" >&5
   1774 sed 's/^/| /' conftest.$ac_ext >&5
   1775 
   1776        ac_retval=$ac_status
   1777 fi
   1778   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1780   as_fn_set_status $ac_retval
   1781 
   1782 } # ac_fn_c_try_run
   1783 
   1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1785 # -------------------------------------------------------
   1786 # Tests whether HEADER exists and can be compiled using the include files in
   1787 # INCLUDES, setting the cache variable VAR accordingly.
   1788 ac_fn_c_check_header_compile ()
   1789 {
   1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1792 $as_echo_n "checking for $2... " >&6; }
   1793 if eval \${$3+:} false; then :
   1794   $as_echo_n "(cached) " >&6
   1795 else
   1796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1797 /* end confdefs.h.  */
   1798 $4
   1799 #include <$2>
   1800 _ACEOF
   1801 if ac_fn_c_try_compile "$LINENO"; then :
   1802   eval "$3=yes"
   1803 else
   1804   eval "$3=no"
   1805 fi
   1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1807 fi
   1808 eval ac_res=\$$3
   1809 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1810 $as_echo "$ac_res" >&6; }
   1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1812 
   1813 } # ac_fn_c_check_header_compile
   1814 
   1815 # ac_fn_c_try_link LINENO
   1816 # -----------------------
   1817 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1818 ac_fn_c_try_link ()
   1819 {
   1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1821   rm -f conftest.$ac_objext conftest$ac_exeext
   1822   if { { ac_try="$ac_link"
   1823 case "(($ac_try" in
   1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1825   *) ac_try_echo=$ac_try;;
   1826 esac
   1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1828 $as_echo "$ac_try_echo"; } >&5
   1829   (eval "$ac_link") 2>conftest.err
   1830   ac_status=$?
   1831   if test -s conftest.err; then
   1832     grep -v '^ *+' conftest.err >conftest.er1
   1833     cat conftest.er1 >&5
   1834     mv -f conftest.er1 conftest.err
   1835   fi
   1836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1837   test $ac_status = 0; } && {
   1838 	 test -z "$ac_c_werror_flag" ||
   1839 	 test ! -s conftest.err
   1840        } && test -s conftest$ac_exeext && {
   1841 	 test "$cross_compiling" = yes ||
   1842 	 test -x conftest$ac_exeext
   1843        }; then :
   1844   ac_retval=0
   1845 else
   1846   $as_echo "$as_me: failed program was:" >&5
   1847 sed 's/^/| /' conftest.$ac_ext >&5
   1848 
   1849 	ac_retval=1
   1850 fi
   1851   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1852   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1853   # interfere with the next link command; also delete a directory that is
   1854   # left behind by Apple's compiler.  We do this before executing the actions.
   1855   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1857   as_fn_set_status $ac_retval
   1858 
   1859 } # ac_fn_c_try_link
   1860 
   1861 # ac_fn_c_check_func LINENO FUNC VAR
   1862 # ----------------------------------
   1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1864 ac_fn_c_check_func ()
   1865 {
   1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1868 $as_echo_n "checking for $2... " >&6; }
   1869 if eval \${$3+:} false; then :
   1870   $as_echo_n "(cached) " >&6
   1871 else
   1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1873 /* end confdefs.h.  */
   1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1876 #define $2 innocuous_$2
   1877 
   1878 /* System header to define __stub macros and hopefully few prototypes,
   1879     which can conflict with char $2 (); below.
   1880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1881     <limits.h> exists even on freestanding compilers.  */
   1882 
   1883 #ifdef __STDC__
   1884 # include <limits.h>
   1885 #else
   1886 # include <assert.h>
   1887 #endif
   1888 
   1889 #undef $2
   1890 
   1891 /* Override any GCC internal prototype to avoid an error.
   1892    Use char because int might match the return type of a GCC
   1893    builtin and then its argument prototype would still apply.  */
   1894 #ifdef __cplusplus
   1895 extern "C"
   1896 #endif
   1897 char $2 ();
   1898 /* The GNU C library defines this for functions which it implements
   1899     to always fail with ENOSYS.  Some functions are actually named
   1900     something starting with __ and the normal name is an alias.  */
   1901 #if defined __stub_$2 || defined __stub___$2
   1902 choke me
   1903 #endif
   1904 
   1905 int
   1906 main ()
   1907 {
   1908 return $2 ();
   1909   ;
   1910   return 0;
   1911 }
   1912 _ACEOF
   1913 if ac_fn_c_try_link "$LINENO"; then :
   1914   eval "$3=yes"
   1915 else
   1916   eval "$3=no"
   1917 fi
   1918 rm -f core conftest.err conftest.$ac_objext \
   1919     conftest$ac_exeext conftest.$ac_ext
   1920 fi
   1921 eval ac_res=\$$3
   1922 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1923 $as_echo "$ac_res" >&6; }
   1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1925 
   1926 } # ac_fn_c_check_func
   1927 
   1928 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1929 # ---------------------------------------------
   1930 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1931 # accordingly.
   1932 ac_fn_c_check_decl ()
   1933 {
   1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1935   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1936   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1938 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1939 if eval \${$3+:} false; then :
   1940   $as_echo_n "(cached) " >&6
   1941 else
   1942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1943 /* end confdefs.h.  */
   1944 $4
   1945 int
   1946 main ()
   1947 {
   1948 #ifndef $as_decl_name
   1949 #ifdef __cplusplus
   1950   (void) $as_decl_use;
   1951 #else
   1952   (void) $as_decl_name;
   1953 #endif
   1954 #endif
   1955 
   1956   ;
   1957   return 0;
   1958 }
   1959 _ACEOF
   1960 if ac_fn_c_try_compile "$LINENO"; then :
   1961   eval "$3=yes"
   1962 else
   1963   eval "$3=no"
   1964 fi
   1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1966 fi
   1967 eval ac_res=\$$3
   1968 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1969 $as_echo "$ac_res" >&6; }
   1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1971 
   1972 } # ac_fn_c_check_decl
   1973 cat >config.log <<_ACEOF
   1974 This file contains any messages produced by compilers while
   1975 running configure, to aid debugging if configure makes a mistake.
   1976 
   1977 It was created by tmux $as_me 3.2a, which was
   1978 generated by GNU Autoconf 2.69.  Invocation command line was
   1979 
   1980   $ $0 $@
   1981 
   1982 _ACEOF
   1983 exec 5>>config.log
   1984 {
   1985 cat <<_ASUNAME
   1986 ## --------- ##
   1987 ## Platform. ##
   1988 ## --------- ##
   1989 
   1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1995 
   1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1997 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1998 
   1999 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2000 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2002 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2003 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2004 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2005 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2006 
   2007 _ASUNAME
   2008 
   2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2010 for as_dir in $PATH
   2011 do
   2012   IFS=$as_save_IFS
   2013   test -z "$as_dir" && as_dir=.
   2014     $as_echo "PATH: $as_dir"
   2015   done
   2016 IFS=$as_save_IFS
   2017 
   2018 } >&5
   2019 
   2020 cat >&5 <<_ACEOF
   2021 
   2022 
   2023 ## ----------- ##
   2024 ## Core tests. ##
   2025 ## ----------- ##
   2026 
   2027 _ACEOF
   2028 
   2029 
   2030 # Keep a trace of the command line.
   2031 # Strip out --no-create and --no-recursion so they do not pile up.
   2032 # Strip out --silent because we don't want to record it for future runs.
   2033 # Also quote any args containing shell meta-characters.
   2034 # Make two passes to allow for proper duplicate-argument suppression.
   2035 ac_configure_args=
   2036 ac_configure_args0=
   2037 ac_configure_args1=
   2038 ac_must_keep_next=false
   2039 for ac_pass in 1 2
   2040 do
   2041   for ac_arg
   2042   do
   2043     case $ac_arg in
   2044     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2045     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2046     | -silent | --silent | --silen | --sile | --sil)
   2047       continue ;;
   2048     *\'*)
   2049       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2050     esac
   2051     case $ac_pass in
   2052     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2053     2)
   2054       as_fn_append ac_configure_args1 " '$ac_arg'"
   2055       if test $ac_must_keep_next = true; then
   2056 	ac_must_keep_next=false # Got value, back to normal.
   2057       else
   2058 	case $ac_arg in
   2059 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2060 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2061 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2062 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2063 	    case "$ac_configure_args0 " in
   2064 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2065 	    esac
   2066 	    ;;
   2067 	  -* ) ac_must_keep_next=true ;;
   2068 	esac
   2069       fi
   2070       as_fn_append ac_configure_args " '$ac_arg'"
   2071       ;;
   2072     esac
   2073   done
   2074 done
   2075 { ac_configure_args0=; unset ac_configure_args0;}
   2076 { ac_configure_args1=; unset ac_configure_args1;}
   2077 
   2078 # When interrupted or exit'd, cleanup temporary files, and complete
   2079 # config.log.  We remove comments because anyway the quotes in there
   2080 # would cause problems or look ugly.
   2081 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2082 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2083 trap 'exit_status=$?
   2084   # Save into config.log some information that might help in debugging.
   2085   {
   2086     echo
   2087 
   2088     $as_echo "## ---------------- ##
   2089 ## Cache variables. ##
   2090 ## ---------------- ##"
   2091     echo
   2092     # The following way of writing the cache mishandles newlines in values,
   2093 (
   2094   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2095     eval ac_val=\$$ac_var
   2096     case $ac_val in #(
   2097     *${as_nl}*)
   2098       case $ac_var in #(
   2099       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2101       esac
   2102       case $ac_var in #(
   2103       _ | IFS | as_nl) ;; #(
   2104       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2105       *) { eval $ac_var=; unset $ac_var;} ;;
   2106       esac ;;
   2107     esac
   2108   done
   2109   (set) 2>&1 |
   2110     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2111     *${as_nl}ac_space=\ *)
   2112       sed -n \
   2113 	"s/'\''/'\''\\\\'\'''\''/g;
   2114 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2115       ;; #(
   2116     *)
   2117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2118       ;;
   2119     esac |
   2120     sort
   2121 )
   2122     echo
   2123 
   2124     $as_echo "## ----------------- ##
   2125 ## Output variables. ##
   2126 ## ----------------- ##"
   2127     echo
   2128     for ac_var in $ac_subst_vars
   2129     do
   2130       eval ac_val=\$$ac_var
   2131       case $ac_val in
   2132       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2133       esac
   2134       $as_echo "$ac_var='\''$ac_val'\''"
   2135     done | sort
   2136     echo
   2137 
   2138     if test -n "$ac_subst_files"; then
   2139       $as_echo "## ------------------- ##
   2140 ## File substitutions. ##
   2141 ## ------------------- ##"
   2142       echo
   2143       for ac_var in $ac_subst_files
   2144       do
   2145 	eval ac_val=\$$ac_var
   2146 	case $ac_val in
   2147 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2148 	esac
   2149 	$as_echo "$ac_var='\''$ac_val'\''"
   2150       done | sort
   2151       echo
   2152     fi
   2153 
   2154     if test -s confdefs.h; then
   2155       $as_echo "## ----------- ##
   2156 ## confdefs.h. ##
   2157 ## ----------- ##"
   2158       echo
   2159       cat confdefs.h
   2160       echo
   2161     fi
   2162     test "$ac_signal" != 0 &&
   2163       $as_echo "$as_me: caught signal $ac_signal"
   2164     $as_echo "$as_me: exit $exit_status"
   2165   } >&5
   2166   rm -f core *.core core.conftest.* &&
   2167     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2168     exit $exit_status
   2169 ' 0
   2170 for ac_signal in 1 2 13 15; do
   2171   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2172 done
   2173 ac_signal=0
   2174 
   2175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2176 rm -f -r conftest* confdefs.h
   2177 
   2178 $as_echo "/* confdefs.h */" > confdefs.h
   2179 
   2180 # Predefined preprocessor variables.
   2181 
   2182 cat >>confdefs.h <<_ACEOF
   2183 #define PACKAGE_NAME "$PACKAGE_NAME"
   2184 _ACEOF
   2185 
   2186 cat >>confdefs.h <<_ACEOF
   2187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2188 _ACEOF
   2189 
   2190 cat >>confdefs.h <<_ACEOF
   2191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2192 _ACEOF
   2193 
   2194 cat >>confdefs.h <<_ACEOF
   2195 #define PACKAGE_STRING "$PACKAGE_STRING"
   2196 _ACEOF
   2197 
   2198 cat >>confdefs.h <<_ACEOF
   2199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2200 _ACEOF
   2201 
   2202 cat >>confdefs.h <<_ACEOF
   2203 #define PACKAGE_URL "$PACKAGE_URL"
   2204 _ACEOF
   2205 
   2206 
   2207 # Let the site file select an alternate cache file if it wants to.
   2208 # Prefer an explicitly selected file to automatically selected ones.
   2209 ac_site_file1=NONE
   2210 ac_site_file2=NONE
   2211 if test -n "$CONFIG_SITE"; then
   2212   # We do not want a PATH search for config.site.
   2213   case $CONFIG_SITE in #((
   2214     -*)  ac_site_file1=./$CONFIG_SITE;;
   2215     */*) ac_site_file1=$CONFIG_SITE;;
   2216     *)   ac_site_file1=./$CONFIG_SITE;;
   2217   esac
   2218 elif test "x$prefix" != xNONE; then
   2219   ac_site_file1=$prefix/share/config.site
   2220   ac_site_file2=$prefix/etc/config.site
   2221 else
   2222   ac_site_file1=$ac_default_prefix/share/config.site
   2223   ac_site_file2=$ac_default_prefix/etc/config.site
   2224 fi
   2225 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2226 do
   2227   test "x$ac_site_file" = xNONE && continue
   2228   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2229     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2230 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2231     sed 's/^/| /' "$ac_site_file" >&5
   2232     . "$ac_site_file" \
   2233       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2235 as_fn_error $? "failed to load site script $ac_site_file
   2236 See \`config.log' for more details" "$LINENO" 5; }
   2237   fi
   2238 done
   2239 
   2240 if test -r "$cache_file"; then
   2241   # Some versions of bash will fail to source /dev/null (special files
   2242   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2243   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2244     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2245 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2246     case $cache_file in
   2247       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2248       *)                      . "./$cache_file";;
   2249     esac
   2250   fi
   2251 else
   2252   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2253 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2254   >$cache_file
   2255 fi
   2256 
   2257 # Check that the precious variables saved in the cache have kept the same
   2258 # value.
   2259 ac_cache_corrupted=false
   2260 for ac_var in $ac_precious_vars; do
   2261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2262   eval ac_new_set=\$ac_env_${ac_var}_set
   2263   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2264   eval ac_new_val=\$ac_env_${ac_var}_value
   2265   case $ac_old_set,$ac_new_set in
   2266     set,)
   2267       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2269       ac_cache_corrupted=: ;;
   2270     ,set)
   2271       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2273       ac_cache_corrupted=: ;;
   2274     ,);;
   2275     *)
   2276       if test "x$ac_old_val" != "x$ac_new_val"; then
   2277 	# differences in whitespace do not lead to failure.
   2278 	ac_old_val_w=`echo x $ac_old_val`
   2279 	ac_new_val_w=`echo x $ac_new_val`
   2280 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2281 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2283 	  ac_cache_corrupted=:
   2284 	else
   2285 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2287 	  eval $ac_var=\$ac_old_val
   2288 	fi
   2289 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2290 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2291 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2292 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2293       fi;;
   2294   esac
   2295   # Pass precious variables to config.status.
   2296   if test "$ac_new_set" = set; then
   2297     case $ac_new_val in
   2298     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2299     *) ac_arg=$ac_var=$ac_new_val ;;
   2300     esac
   2301     case " $ac_configure_args " in
   2302       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2303       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2304     esac
   2305   fi
   2306 done
   2307 if $ac_cache_corrupted; then
   2308   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2310   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2312   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2313 fi
   2314 ## -------------------- ##
   2315 ## Main body of script. ##
   2316 ## -------------------- ##
   2317 
   2318 ac_ext=c
   2319 ac_cpp='$CPP $CPPFLAGS'
   2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2323 
   2324 
   2325 
   2326 
   2327 ac_aux_dir=
   2328 for ac_dir in etc "$srcdir"/etc; do
   2329   if test -f "$ac_dir/install-sh"; then
   2330     ac_aux_dir=$ac_dir
   2331     ac_install_sh="$ac_aux_dir/install-sh -c"
   2332     break
   2333   elif test -f "$ac_dir/install.sh"; then
   2334     ac_aux_dir=$ac_dir
   2335     ac_install_sh="$ac_aux_dir/install.sh -c"
   2336     break
   2337   elif test -f "$ac_dir/shtool"; then
   2338     ac_aux_dir=$ac_dir
   2339     ac_install_sh="$ac_aux_dir/shtool install -c"
   2340     break
   2341   fi
   2342 done
   2343 if test -z "$ac_aux_dir"; then
   2344   as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc \"$srcdir\"/etc" "$LINENO" 5
   2345 fi
   2346 
   2347 # These three variables are undocumented and unsupported,
   2348 # and are intended to be withdrawn in a future Autoconf release.
   2349 # They can cause serious problems if a builder's source tree is in a directory
   2350 # whose full name contains unusual characters.
   2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2353 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2354 
   2355 
   2356 
   2357 am__api_version='1.15'
   2358 
   2359 # Find a good install program.  We prefer a C program (faster),
   2360 # so one script is as good as another.  But avoid the broken or
   2361 # incompatible versions:
   2362 # SysV /etc/install, /usr/sbin/install
   2363 # SunOS /usr/etc/install
   2364 # IRIX /sbin/install
   2365 # AIX /bin/install
   2366 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2370 # OS/2's system install, which has a completely different semantic
   2371 # ./install, which can be erroneously created by make from ./install.sh.
   2372 # Reject install programs that cannot install multiple files.
   2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2375 if test -z "$INSTALL"; then
   2376 if ${ac_cv_path_install+:} false; then :
   2377   $as_echo_n "(cached) " >&6
   2378 else
   2379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2380 for as_dir in $PATH
   2381 do
   2382   IFS=$as_save_IFS
   2383   test -z "$as_dir" && as_dir=.
   2384     # Account for people who put trailing slashes in PATH elements.
   2385 case $as_dir/ in #((
   2386   ./ | .// | /[cC]/* | \
   2387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2388   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2389   /usr/ucb/* ) ;;
   2390   *)
   2391     # OSF1 and SCO ODT 3.0 have their own names for install.
   2392     # Don't use installbsd from OSF since it installs stuff as root
   2393     # by default.
   2394     for ac_prog in ginstall scoinst install; do
   2395       for ac_exec_ext in '' $ac_executable_extensions; do
   2396 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2397 	  if test $ac_prog = install &&
   2398 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2399 	    # AIX install.  It has an incompatible calling convention.
   2400 	    :
   2401 	  elif test $ac_prog = install &&
   2402 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2403 	    # program-specific install script used by HP pwplus--don't use.
   2404 	    :
   2405 	  else
   2406 	    rm -rf conftest.one conftest.two conftest.dir
   2407 	    echo one > conftest.one
   2408 	    echo two > conftest.two
   2409 	    mkdir conftest.dir
   2410 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2411 	      test -s conftest.one && test -s conftest.two &&
   2412 	      test -s conftest.dir/conftest.one &&
   2413 	      test -s conftest.dir/conftest.two
   2414 	    then
   2415 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2416 	      break 3
   2417 	    fi
   2418 	  fi
   2419 	fi
   2420       done
   2421     done
   2422     ;;
   2423 esac
   2424 
   2425   done
   2426 IFS=$as_save_IFS
   2427 
   2428 rm -rf conftest.one conftest.two conftest.dir
   2429 
   2430 fi
   2431   if test "${ac_cv_path_install+set}" = set; then
   2432     INSTALL=$ac_cv_path_install
   2433   else
   2434     # As a last resort, use the slow shell script.  Don't cache a
   2435     # value for INSTALL within a source directory, because that will
   2436     # break other packages using the cache if that directory is
   2437     # removed, or if the value is a relative name.
   2438     INSTALL=$ac_install_sh
   2439   fi
   2440 fi
   2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2442 $as_echo "$INSTALL" >&6; }
   2443 
   2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2445 # It thinks the first close brace ends the variable substitution.
   2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2447 
   2448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2449 
   2450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2451 
   2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2453 $as_echo_n "checking whether build environment is sane... " >&6; }
   2454 # Reject unsafe characters in $srcdir or the absolute working directory
   2455 # name.  Accept space and tab only in the latter.
   2456 am_lf='
   2457 '
   2458 case `pwd` in
   2459   *[\\\"\#\$\&\'\`$am_lf]*)
   2460     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2461 esac
   2462 case $srcdir in
   2463   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2464     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   2465 esac
   2466 
   2467 # Do 'set' in a subshell so we don't clobber the current shell's
   2468 # arguments.  Must try -L first in case configure is actually a
   2469 # symlink; some systems play weird games with the mod time of symlinks
   2470 # (eg FreeBSD returns the mod time of the symlink's containing
   2471 # directory).
   2472 if (
   2473    am_has_slept=no
   2474    for am_try in 1 2; do
   2475      echo "timestamp, slept: $am_has_slept" > conftest.file
   2476      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2477      if test "$*" = "X"; then
   2478 	# -L didn't work.
   2479 	set X `ls -t "$srcdir/configure" conftest.file`
   2480      fi
   2481      if test "$*" != "X $srcdir/configure conftest.file" \
   2482 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   2483 
   2484 	# If neither matched, then we have a broken ls.  This can happen
   2485 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   2486 	# broken ls alias from the environment.  This has actually
   2487 	# happened.  Such a system could not be considered "sane".
   2488 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2489   alias in your environment" "$LINENO" 5
   2490      fi
   2491      if test "$2" = conftest.file || test $am_try -eq 2; then
   2492        break
   2493      fi
   2494      # Just in case.
   2495      sleep 1
   2496      am_has_slept=yes
   2497    done
   2498    test "$2" = conftest.file
   2499    )
   2500 then
   2501    # Ok.
   2502    :
   2503 else
   2504    as_fn_error $? "newly created file is older than distributed files!
   2505 Check your system clock" "$LINENO" 5
   2506 fi
   2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2508 $as_echo "yes" >&6; }
   2509 # If we didn't sleep, we still need to ensure time stamps of config.status and
   2510 # generated files are strictly newer.
   2511 am_sleep_pid=
   2512 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   2513   ( sleep 1 ) &
   2514   am_sleep_pid=$!
   2515 fi
   2516 
   2517 rm -f conftest.file
   2518 
   2519 test "$program_prefix" != NONE &&
   2520   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2521 # Use a double $ so make ignores it.
   2522 test "$program_suffix" != NONE &&
   2523   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2524 # Double any \ or $.
   2525 # By default was `s,x,x', remove it if useless.
   2526 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2527 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2528 
   2529 # Expand $ac_aux_dir to an absolute path.
   2530 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2531 
   2532 if test x"${MISSING+set}" != xset; then
   2533   case $am_aux_dir in
   2534   *\ * | *\	*)
   2535     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2536   *)
   2537     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2538   esac
   2539 fi
   2540 # Use eval to expand $SHELL
   2541 if eval "$MISSING --is-lightweight"; then
   2542   am_missing_run="$MISSING "
   2543 else
   2544   am_missing_run=
   2545   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   2546 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   2547 fi
   2548 
   2549 if test x"${install_sh+set}" != xset; then
   2550   case $am_aux_dir in
   2551   *\ * | *\	*)
   2552     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2553   *)
   2554     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2555   esac
   2556 fi
   2557 
   2558 # Installed binaries are usually stripped using 'strip' when the user
   2559 # run "make install-strip".  However 'strip' might not be the right
   2560 # tool to use in cross-compilation environments, therefore Automake
   2561 # will honor the 'STRIP' environment variable to overrule this program.
   2562 if test "$cross_compiling" != no; then
   2563   if test -n "$ac_tool_prefix"; then
   2564   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2565 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2567 $as_echo_n "checking for $ac_word... " >&6; }
   2568 if ${ac_cv_prog_STRIP+:} false; then :
   2569   $as_echo_n "(cached) " >&6
   2570 else
   2571   if test -n "$STRIP"; then
   2572   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2573 else
   2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2575 for as_dir in $PATH
   2576 do
   2577   IFS=$as_save_IFS
   2578   test -z "$as_dir" && as_dir=.
   2579     for ac_exec_ext in '' $ac_executable_extensions; do
   2580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2581     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2583     break 2
   2584   fi
   2585 done
   2586   done
   2587 IFS=$as_save_IFS
   2588 
   2589 fi
   2590 fi
   2591 STRIP=$ac_cv_prog_STRIP
   2592 if test -n "$STRIP"; then
   2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2594 $as_echo "$STRIP" >&6; }
   2595 else
   2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2597 $as_echo "no" >&6; }
   2598 fi
   2599 
   2600 
   2601 fi
   2602 if test -z "$ac_cv_prog_STRIP"; then
   2603   ac_ct_STRIP=$STRIP
   2604   # Extract the first word of "strip", so it can be a program name with args.
   2605 set dummy strip; ac_word=$2
   2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2607 $as_echo_n "checking for $ac_word... " >&6; }
   2608 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2609   $as_echo_n "(cached) " >&6
   2610 else
   2611   if test -n "$ac_ct_STRIP"; then
   2612   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2613 else
   2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2615 for as_dir in $PATH
   2616 do
   2617   IFS=$as_save_IFS
   2618   test -z "$as_dir" && as_dir=.
   2619     for ac_exec_ext in '' $ac_executable_extensions; do
   2620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2621     ac_cv_prog_ac_ct_STRIP="strip"
   2622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2623     break 2
   2624   fi
   2625 done
   2626   done
   2627 IFS=$as_save_IFS
   2628 
   2629 fi
   2630 fi
   2631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2632 if test -n "$ac_ct_STRIP"; then
   2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2634 $as_echo "$ac_ct_STRIP" >&6; }
   2635 else
   2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2637 $as_echo "no" >&6; }
   2638 fi
   2639 
   2640   if test "x$ac_ct_STRIP" = x; then
   2641     STRIP=":"
   2642   else
   2643     case $cross_compiling:$ac_tool_warned in
   2644 yes:)
   2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2647 ac_tool_warned=yes ;;
   2648 esac
   2649     STRIP=$ac_ct_STRIP
   2650   fi
   2651 else
   2652   STRIP="$ac_cv_prog_STRIP"
   2653 fi
   2654 
   2655 fi
   2656 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2657 
   2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2659 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2660 if test -z "$MKDIR_P"; then
   2661   if ${ac_cv_path_mkdir+:} false; then :
   2662   $as_echo_n "(cached) " >&6
   2663 else
   2664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2665 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2666 do
   2667   IFS=$as_save_IFS
   2668   test -z "$as_dir" && as_dir=.
   2669     for ac_prog in mkdir gmkdir; do
   2670 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2671 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   2672 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2673 	     'mkdir (GNU coreutils) '* | \
   2674 	     'mkdir (coreutils) '* | \
   2675 	     'mkdir (fileutils) '4.1*)
   2676 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2677 	       break 3;;
   2678 	   esac
   2679 	 done
   2680        done
   2681   done
   2682 IFS=$as_save_IFS
   2683 
   2684 fi
   2685 
   2686   test -d ./--version && rmdir ./--version
   2687   if test "${ac_cv_path_mkdir+set}" = set; then
   2688     MKDIR_P="$ac_cv_path_mkdir -p"
   2689   else
   2690     # As a last resort, use the slow shell script.  Don't cache a
   2691     # value for MKDIR_P within a source directory, because that will
   2692     # break other packages using the cache if that directory is
   2693     # removed, or if the value is a relative name.
   2694     MKDIR_P="$ac_install_sh -d"
   2695   fi
   2696 fi
   2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2698 $as_echo "$MKDIR_P" >&6; }
   2699 
   2700 for ac_prog in gawk mawk nawk awk
   2701 do
   2702   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2703 set dummy $ac_prog; ac_word=$2
   2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2705 $as_echo_n "checking for $ac_word... " >&6; }
   2706 if ${ac_cv_prog_AWK+:} false; then :
   2707   $as_echo_n "(cached) " >&6
   2708 else
   2709   if test -n "$AWK"; then
   2710   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2711 else
   2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2713 for as_dir in $PATH
   2714 do
   2715   IFS=$as_save_IFS
   2716   test -z "$as_dir" && as_dir=.
   2717     for ac_exec_ext in '' $ac_executable_extensions; do
   2718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2719     ac_cv_prog_AWK="$ac_prog"
   2720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2721     break 2
   2722   fi
   2723 done
   2724   done
   2725 IFS=$as_save_IFS
   2726 
   2727 fi
   2728 fi
   2729 AWK=$ac_cv_prog_AWK
   2730 if test -n "$AWK"; then
   2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2732 $as_echo "$AWK" >&6; }
   2733 else
   2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2735 $as_echo "no" >&6; }
   2736 fi
   2737 
   2738 
   2739   test -n "$AWK" && break
   2740 done
   2741 
   2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2744 set x ${MAKE-make}
   2745 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2746 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   2747   $as_echo_n "(cached) " >&6
   2748 else
   2749   cat >conftest.make <<\_ACEOF
   2750 SHELL = /bin/sh
   2751 all:
   2752 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2753 _ACEOF
   2754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   2755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2756   *@@@%%%=?*=@@@%%%*)
   2757     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2758   *)
   2759     eval ac_cv_prog_make_${ac_make}_set=no;;
   2760 esac
   2761 rm -f conftest.make
   2762 fi
   2763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2765 $as_echo "yes" >&6; }
   2766   SET_MAKE=
   2767 else
   2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2769 $as_echo "no" >&6; }
   2770   SET_MAKE="MAKE=${MAKE-make}"
   2771 fi
   2772 
   2773 rm -rf .tst 2>/dev/null
   2774 mkdir .tst 2>/dev/null
   2775 if test -d .tst; then
   2776   am__leading_dot=.
   2777 else
   2778   am__leading_dot=_
   2779 fi
   2780 rmdir .tst 2>/dev/null
   2781 
   2782 # Check whether --enable-silent-rules was given.
   2783 if test "${enable_silent_rules+set}" = set; then :
   2784   enableval=$enable_silent_rules;
   2785 fi
   2786 
   2787 case $enable_silent_rules in # (((
   2788   yes) AM_DEFAULT_VERBOSITY=0;;
   2789    no) AM_DEFAULT_VERBOSITY=1;;
   2790     *) AM_DEFAULT_VERBOSITY=1;;
   2791 esac
   2792 am_make=${MAKE-make}
   2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   2794 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   2795 if ${am_cv_make_support_nested_variables+:} false; then :
   2796   $as_echo_n "(cached) " >&6
   2797 else
   2798   if $as_echo 'TRUE=$(BAR$(V))
   2799 BAR0=false
   2800 BAR1=true
   2801 V=1
   2802 am__doit:
   2803 	@$(TRUE)
   2804 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   2805   am_cv_make_support_nested_variables=yes
   2806 else
   2807   am_cv_make_support_nested_variables=no
   2808 fi
   2809 fi
   2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   2811 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   2812 if test $am_cv_make_support_nested_variables = yes; then
   2813     AM_V='$(V)'
   2814   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   2815 else
   2816   AM_V=$AM_DEFAULT_VERBOSITY
   2817   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   2818 fi
   2819 AM_BACKSLASH='\'
   2820 
   2821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   2822   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   2823   # is not polluted with repeated "-I."
   2824   am__isrc=' -I$(srcdir)'
   2825   # test to see if srcdir already configured
   2826   if test -f $srcdir/config.status; then
   2827     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   2828   fi
   2829 fi
   2830 
   2831 # test whether we have cygpath
   2832 if test -z "$CYGPATH_W"; then
   2833   if (cygpath --version) >/dev/null 2>/dev/null; then
   2834     CYGPATH_W='cygpath -w'
   2835   else
   2836     CYGPATH_W=echo
   2837   fi
   2838 fi
   2839 
   2840 
   2841 # Define the identity of the package.
   2842  PACKAGE='tmux'
   2843  VERSION='3.2a'
   2844 
   2845 
   2846 cat >>confdefs.h <<_ACEOF
   2847 #define PACKAGE "$PACKAGE"
   2848 _ACEOF
   2849 
   2850 
   2851 cat >>confdefs.h <<_ACEOF
   2852 #define VERSION "$VERSION"
   2853 _ACEOF
   2854 
   2855 # Some tools Automake needs.
   2856 
   2857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2858 
   2859 
   2860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2861 
   2862 
   2863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2864 
   2865 
   2866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2867 
   2868 
   2869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2870 
   2871 # For better backward compatibility.  To be removed once Automake 1.9.x
   2872 # dies out for good.  For more background, see:
   2873 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   2874 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   2875 mkdir_p='$(MKDIR_P)'
   2876 
   2877 # We need awk for the "check" target (and possibly the TAP driver).  The
   2878 # system "awk" is bad on some platforms.
   2879 # Always define AMTAR for backward compatibility.  Yes, it's still used
   2880 # in the wild :-(  We should find a proper way to deprecate it ...
   2881 AMTAR='$${TAR-tar}'
   2882 
   2883 
   2884 # We'll loop over all known methods to create a tar archive until one works.
   2885 _am_tools='gnutar  pax cpio none'
   2886 
   2887 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   2888 
   2889 
   2890 
   2891 
   2892 
   2893 
   2894 # POSIX will say in a future version that running "rm -f" with no argument
   2895 # is OK; and we want to be able to make that assumption in our Makefile
   2896 # recipes.  So use an aggressive probe to check that the usage we want is
   2897 # actually supported "in the wild" to an acceptable degree.
   2898 # See automake bug#10828.
   2899 # To make any issue more visible, cause the running configure to be aborted
   2900 # by default if the 'rm' program in use doesn't match our expectations; the
   2901 # user can still override this though.
   2902 if rm -f && rm -fr && rm -rf; then : OK; else
   2903   cat >&2 <<'END'
   2904 Oops!
   2905 
   2906 Your 'rm' program seems unable to run without file operands specified
   2907 on the command line, even when the '-f' option is present.  This is contrary
   2908 to the behaviour of most rm programs out there, and not conforming with
   2909 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   2910 
   2911 Please tell bug-automake@gnu.org about your system, including the value
   2912 of your $PATH and any error possibly output before this message.  This
   2913 can help us improve future automake versions.
   2914 
   2915 END
   2916   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   2917     echo 'Configuration will proceed anyway, since you have set the' >&2
   2918     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   2919     echo >&2
   2920   else
   2921     cat >&2 <<'END'
   2922 Aborting the configuration process, to ensure you take notice of the issue.
   2923 
   2924 You can download and install GNU coreutils to get an 'rm' implementation
   2925 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   2926 
   2927 If you want to complete the configuration process using your problematic
   2928 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   2929 to "yes", and re-run configure.
   2930 
   2931 END
   2932     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   2933   fi
   2934 fi
   2935 
   2936 
   2937 # Make sure we can run config.sub.
   2938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2939   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2940 
   2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2942 $as_echo_n "checking build system type... " >&6; }
   2943 if ${ac_cv_build+:} false; then :
   2944   $as_echo_n "(cached) " >&6
   2945 else
   2946   ac_build_alias=$build_alias
   2947 test "x$ac_build_alias" = x &&
   2948   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2949 test "x$ac_build_alias" = x &&
   2950   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2952   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2953 
   2954 fi
   2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2956 $as_echo "$ac_cv_build" >&6; }
   2957 case $ac_cv_build in
   2958 *-*-*) ;;
   2959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2960 esac
   2961 build=$ac_cv_build
   2962 ac_save_IFS=$IFS; IFS='-'
   2963 set x $ac_cv_build
   2964 shift
   2965 build_cpu=$1
   2966 build_vendor=$2
   2967 shift; shift
   2968 # Remember, the first character of IFS is used to create $*,
   2969 # except with old shells:
   2970 build_os=$*
   2971 IFS=$ac_save_IFS
   2972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2973 
   2974 
   2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2976 $as_echo_n "checking host system type... " >&6; }
   2977 if ${ac_cv_host+:} false; then :
   2978   $as_echo_n "(cached) " >&6
   2979 else
   2980   if test "x$host_alias" = x; then
   2981   ac_cv_host=$ac_cv_build
   2982 else
   2983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2984     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2985 fi
   2986 
   2987 fi
   2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2989 $as_echo "$ac_cv_host" >&6; }
   2990 case $ac_cv_host in
   2991 *-*-*) ;;
   2992 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2993 esac
   2994 host=$ac_cv_host
   2995 ac_save_IFS=$IFS; IFS='-'
   2996 set x $ac_cv_host
   2997 shift
   2998 host_cpu=$1
   2999 host_vendor=$2
   3000 shift; shift
   3001 # Remember, the first character of IFS is used to create $*,
   3002 # except with old shells:
   3003 host_os=$*
   3004 IFS=$ac_save_IFS
   3005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3006 
   3007 
   3008 
   3009 # When CFLAGS isn't set at this stage and gcc is detected by the macro below,
   3010 # autoconf will automatically use CFLAGS="-O2 -g". Prevent that by using an
   3011 # empty default.
   3012 : ${CFLAGS=""}
   3013 
   3014 # Save user CPPFLAGS, CFLAGS and LDFLAGS. We need to change them because
   3015 # AC_CHECK_HEADER doesn't give us any other way to update the include
   3016 # paths. But for Makefile.am we want to use AM_CPPFLAGS and friends.
   3017 SAVED_CFLAGS="$CFLAGS"
   3018 SAVED_CPPFLAGS="$CPPFLAGS"
   3019 SAVED_LDFLAGS="$LDFLAGS"
   3020 
   3021 # Is this oss-fuzz build?
   3022 # Check whether --enable-fuzzing was given.
   3023 if test "${enable_fuzzing+set}" = set; then :
   3024   enableval=$enable_fuzzing;
   3025 fi
   3026 
   3027 
   3028 
   3029 # Set up convenient fuzzing defaults before initializing compiler.
   3030 if test "x$enable_fuzzing" = xyes; then
   3031 	$as_echo "#define NEED_FUZZING 1" >>confdefs.h
   3032 
   3033 	test "x$CC" = x && CC=clang
   3034 	test "x$FUZZING_LIBS" = x && \
   3035 		FUZZING_LIBS="-fsanitize=fuzzer"
   3036 	test "x$SAVED_CFLAGS" = x && \
   3037 		AM_CFLAGS="-g -fsanitize=fuzzer-no-link,address"
   3038 fi
   3039 
   3040 # Set up the compiler in two different ways and say yes we may want to install.
   3041 ac_ext=c
   3042 ac_cpp='$CPP $CPPFLAGS'
   3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3046 if test -n "$ac_tool_prefix"; then
   3047   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3048 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3050 $as_echo_n "checking for $ac_word... " >&6; }
   3051 if ${ac_cv_prog_CC+:} false; then :
   3052   $as_echo_n "(cached) " >&6
   3053 else
   3054   if test -n "$CC"; then
   3055   ac_cv_prog_CC="$CC" # Let the user override the test.
   3056 else
   3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3058 for as_dir in $PATH
   3059 do
   3060   IFS=$as_save_IFS
   3061   test -z "$as_dir" && as_dir=.
   3062     for ac_exec_ext in '' $ac_executable_extensions; do
   3063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3064     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3066     break 2
   3067   fi
   3068 done
   3069   done
   3070 IFS=$as_save_IFS
   3071 
   3072 fi
   3073 fi
   3074 CC=$ac_cv_prog_CC
   3075 if test -n "$CC"; then
   3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3077 $as_echo "$CC" >&6; }
   3078 else
   3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3080 $as_echo "no" >&6; }
   3081 fi
   3082 
   3083 
   3084 fi
   3085 if test -z "$ac_cv_prog_CC"; then
   3086   ac_ct_CC=$CC
   3087   # Extract the first word of "gcc", so it can be a program name with args.
   3088 set dummy gcc; ac_word=$2
   3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3090 $as_echo_n "checking for $ac_word... " >&6; }
   3091 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3092   $as_echo_n "(cached) " >&6
   3093 else
   3094   if test -n "$ac_ct_CC"; then
   3095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3096 else
   3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3098 for as_dir in $PATH
   3099 do
   3100   IFS=$as_save_IFS
   3101   test -z "$as_dir" && as_dir=.
   3102     for ac_exec_ext in '' $ac_executable_extensions; do
   3103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3104     ac_cv_prog_ac_ct_CC="gcc"
   3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3106     break 2
   3107   fi
   3108 done
   3109   done
   3110 IFS=$as_save_IFS
   3111 
   3112 fi
   3113 fi
   3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3115 if test -n "$ac_ct_CC"; then
   3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3117 $as_echo "$ac_ct_CC" >&6; }
   3118 else
   3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3120 $as_echo "no" >&6; }
   3121 fi
   3122 
   3123   if test "x$ac_ct_CC" = x; then
   3124     CC=""
   3125   else
   3126     case $cross_compiling:$ac_tool_warned in
   3127 yes:)
   3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3130 ac_tool_warned=yes ;;
   3131 esac
   3132     CC=$ac_ct_CC
   3133   fi
   3134 else
   3135   CC="$ac_cv_prog_CC"
   3136 fi
   3137 
   3138 if test -z "$CC"; then
   3139           if test -n "$ac_tool_prefix"; then
   3140     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3141 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3143 $as_echo_n "checking for $ac_word... " >&6; }
   3144 if ${ac_cv_prog_CC+:} false; then :
   3145   $as_echo_n "(cached) " >&6
   3146 else
   3147   if test -n "$CC"; then
   3148   ac_cv_prog_CC="$CC" # Let the user override the test.
   3149 else
   3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3151 for as_dir in $PATH
   3152 do
   3153   IFS=$as_save_IFS
   3154   test -z "$as_dir" && as_dir=.
   3155     for ac_exec_ext in '' $ac_executable_extensions; do
   3156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3157     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3159     break 2
   3160   fi
   3161 done
   3162   done
   3163 IFS=$as_save_IFS
   3164 
   3165 fi
   3166 fi
   3167 CC=$ac_cv_prog_CC
   3168 if test -n "$CC"; then
   3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3170 $as_echo "$CC" >&6; }
   3171 else
   3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3173 $as_echo "no" >&6; }
   3174 fi
   3175 
   3176 
   3177   fi
   3178 fi
   3179 if test -z "$CC"; then
   3180   # Extract the first word of "cc", so it can be a program name with args.
   3181 set dummy cc; ac_word=$2
   3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3183 $as_echo_n "checking for $ac_word... " >&6; }
   3184 if ${ac_cv_prog_CC+:} false; then :
   3185   $as_echo_n "(cached) " >&6
   3186 else
   3187   if test -n "$CC"; then
   3188   ac_cv_prog_CC="$CC" # Let the user override the test.
   3189 else
   3190   ac_prog_rejected=no
   3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3192 for as_dir in $PATH
   3193 do
   3194   IFS=$as_save_IFS
   3195   test -z "$as_dir" && as_dir=.
   3196     for ac_exec_ext in '' $ac_executable_extensions; do
   3197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3198     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3199        ac_prog_rejected=yes
   3200        continue
   3201      fi
   3202     ac_cv_prog_CC="cc"
   3203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3204     break 2
   3205   fi
   3206 done
   3207   done
   3208 IFS=$as_save_IFS
   3209 
   3210 if test $ac_prog_rejected = yes; then
   3211   # We found a bogon in the path, so make sure we never use it.
   3212   set dummy $ac_cv_prog_CC
   3213   shift
   3214   if test $# != 0; then
   3215     # We chose a different compiler from the bogus one.
   3216     # However, it has the same basename, so the bogon will be chosen
   3217     # first if we set CC to just the basename; use the full file name.
   3218     shift
   3219     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3220   fi
   3221 fi
   3222 fi
   3223 fi
   3224 CC=$ac_cv_prog_CC
   3225 if test -n "$CC"; then
   3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3227 $as_echo "$CC" >&6; }
   3228 else
   3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3230 $as_echo "no" >&6; }
   3231 fi
   3232 
   3233 
   3234 fi
   3235 if test -z "$CC"; then
   3236   if test -n "$ac_tool_prefix"; then
   3237   for ac_prog in cl.exe
   3238   do
   3239     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3242 $as_echo_n "checking for $ac_word... " >&6; }
   3243 if ${ac_cv_prog_CC+:} false; then :
   3244   $as_echo_n "(cached) " >&6
   3245 else
   3246   if test -n "$CC"; then
   3247   ac_cv_prog_CC="$CC" # Let the user override the test.
   3248 else
   3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3250 for as_dir in $PATH
   3251 do
   3252   IFS=$as_save_IFS
   3253   test -z "$as_dir" && as_dir=.
   3254     for ac_exec_ext in '' $ac_executable_extensions; do
   3255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3256     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3258     break 2
   3259   fi
   3260 done
   3261   done
   3262 IFS=$as_save_IFS
   3263 
   3264 fi
   3265 fi
   3266 CC=$ac_cv_prog_CC
   3267 if test -n "$CC"; then
   3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3269 $as_echo "$CC" >&6; }
   3270 else
   3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3272 $as_echo "no" >&6; }
   3273 fi
   3274 
   3275 
   3276     test -n "$CC" && break
   3277   done
   3278 fi
   3279 if test -z "$CC"; then
   3280   ac_ct_CC=$CC
   3281   for ac_prog in cl.exe
   3282 do
   3283   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3284 set dummy $ac_prog; ac_word=$2
   3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3286 $as_echo_n "checking for $ac_word... " >&6; }
   3287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3288   $as_echo_n "(cached) " >&6
   3289 else
   3290   if test -n "$ac_ct_CC"; then
   3291   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3292 else
   3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3294 for as_dir in $PATH
   3295 do
   3296   IFS=$as_save_IFS
   3297   test -z "$as_dir" && as_dir=.
   3298     for ac_exec_ext in '' $ac_executable_extensions; do
   3299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3300     ac_cv_prog_ac_ct_CC="$ac_prog"
   3301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3302     break 2
   3303   fi
   3304 done
   3305   done
   3306 IFS=$as_save_IFS
   3307 
   3308 fi
   3309 fi
   3310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3311 if test -n "$ac_ct_CC"; then
   3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3313 $as_echo "$ac_ct_CC" >&6; }
   3314 else
   3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3316 $as_echo "no" >&6; }
   3317 fi
   3318 
   3319 
   3320   test -n "$ac_ct_CC" && break
   3321 done
   3322 
   3323   if test "x$ac_ct_CC" = x; then
   3324     CC=""
   3325   else
   3326     case $cross_compiling:$ac_tool_warned in
   3327 yes:)
   3328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3330 ac_tool_warned=yes ;;
   3331 esac
   3332     CC=$ac_ct_CC
   3333   fi
   3334 fi
   3335 
   3336 fi
   3337 
   3338 
   3339 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3341 as_fn_error $? "no acceptable C compiler found in \$PATH
   3342 See \`config.log' for more details" "$LINENO" 5; }
   3343 
   3344 # Provide some information about the compiler.
   3345 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3346 set X $ac_compile
   3347 ac_compiler=$2
   3348 for ac_option in --version -v -V -qversion; do
   3349   { { ac_try="$ac_compiler $ac_option >&5"
   3350 case "(($ac_try" in
   3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3352   *) ac_try_echo=$ac_try;;
   3353 esac
   3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3355 $as_echo "$ac_try_echo"; } >&5
   3356   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3357   ac_status=$?
   3358   if test -s conftest.err; then
   3359     sed '10a\
   3360 ... rest of stderr output deleted ...
   3361          10q' conftest.err >conftest.er1
   3362     cat conftest.er1 >&5
   3363   fi
   3364   rm -f conftest.er1 conftest.err
   3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3366   test $ac_status = 0; }
   3367 done
   3368 
   3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3370 /* end confdefs.h.  */
   3371 
   3372 int
   3373 main ()
   3374 {
   3375 
   3376   ;
   3377   return 0;
   3378 }
   3379 _ACEOF
   3380 ac_clean_files_save=$ac_clean_files
   3381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3382 # Try to create an executable without -o first, disregard a.out.
   3383 # It will help us diagnose broken compilers, and finding out an intuition
   3384 # of exeext.
   3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3386 $as_echo_n "checking whether the C compiler works... " >&6; }
   3387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3388 
   3389 # The possible output files:
   3390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3391 
   3392 ac_rmfiles=
   3393 for ac_file in $ac_files
   3394 do
   3395   case $ac_file in
   3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3397     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3398   esac
   3399 done
   3400 rm -f $ac_rmfiles
   3401 
   3402 if { { ac_try="$ac_link_default"
   3403 case "(($ac_try" in
   3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3405   *) ac_try_echo=$ac_try;;
   3406 esac
   3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3408 $as_echo "$ac_try_echo"; } >&5
   3409   (eval "$ac_link_default") 2>&5
   3410   ac_status=$?
   3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3412   test $ac_status = 0; }; then :
   3413   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3415 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3416 # so that the user can short-circuit this test for compilers unknown to
   3417 # Autoconf.
   3418 for ac_file in $ac_files ''
   3419 do
   3420   test -f "$ac_file" || continue
   3421   case $ac_file in
   3422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3423 	;;
   3424     [ab].out )
   3425 	# We found the default executable, but exeext='' is most
   3426 	# certainly right.
   3427 	break;;
   3428     *.* )
   3429 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3430 	then :; else
   3431 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3432 	fi
   3433 	# We set ac_cv_exeext here because the later test for it is not
   3434 	# safe: cross compilers may not add the suffix if given an `-o'
   3435 	# argument, so we may need to know it at that point already.
   3436 	# Even if this section looks crufty: it has the advantage of
   3437 	# actually working.
   3438 	break;;
   3439     * )
   3440 	break;;
   3441   esac
   3442 done
   3443 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3444 
   3445 else
   3446   ac_file=''
   3447 fi
   3448 if test -z "$ac_file"; then :
   3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3450 $as_echo "no" >&6; }
   3451 $as_echo "$as_me: failed program was:" >&5
   3452 sed 's/^/| /' conftest.$ac_ext >&5
   3453 
   3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3456 as_fn_error 77 "C compiler cannot create executables
   3457 See \`config.log' for more details" "$LINENO" 5; }
   3458 else
   3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3460 $as_echo "yes" >&6; }
   3461 fi
   3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3465 $as_echo "$ac_file" >&6; }
   3466 ac_exeext=$ac_cv_exeext
   3467 
   3468 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3469 ac_clean_files=$ac_clean_files_save
   3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3471 $as_echo_n "checking for suffix of executables... " >&6; }
   3472 if { { ac_try="$ac_link"
   3473 case "(($ac_try" in
   3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3475   *) ac_try_echo=$ac_try;;
   3476 esac
   3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3478 $as_echo "$ac_try_echo"; } >&5
   3479   (eval "$ac_link") 2>&5
   3480   ac_status=$?
   3481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3482   test $ac_status = 0; }; then :
   3483   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3484 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3485 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3486 # `rm'.
   3487 for ac_file in conftest.exe conftest conftest.*; do
   3488   test -f "$ac_file" || continue
   3489   case $ac_file in
   3490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3491     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3492 	  break;;
   3493     * ) break;;
   3494   esac
   3495 done
   3496 else
   3497   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3499 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3500 See \`config.log' for more details" "$LINENO" 5; }
   3501 fi
   3502 rm -f conftest conftest$ac_cv_exeext
   3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3504 $as_echo "$ac_cv_exeext" >&6; }
   3505 
   3506 rm -f conftest.$ac_ext
   3507 EXEEXT=$ac_cv_exeext
   3508 ac_exeext=$EXEEXT
   3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3510 /* end confdefs.h.  */
   3511 #include <stdio.h>
   3512 int
   3513 main ()
   3514 {
   3515 FILE *f = fopen ("conftest.out", "w");
   3516  return ferror (f) || fclose (f) != 0;
   3517 
   3518   ;
   3519   return 0;
   3520 }
   3521 _ACEOF
   3522 ac_clean_files="$ac_clean_files conftest.out"
   3523 # Check that the compiler produces executables we can run.  If not, either
   3524 # the compiler is broken, or we cross compile.
   3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3526 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3527 if test "$cross_compiling" != yes; then
   3528   { { ac_try="$ac_link"
   3529 case "(($ac_try" in
   3530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3531   *) ac_try_echo=$ac_try;;
   3532 esac
   3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3534 $as_echo "$ac_try_echo"; } >&5
   3535   (eval "$ac_link") 2>&5
   3536   ac_status=$?
   3537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3538   test $ac_status = 0; }
   3539   if { ac_try='./conftest$ac_cv_exeext'
   3540   { { case "(($ac_try" in
   3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3542   *) ac_try_echo=$ac_try;;
   3543 esac
   3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3545 $as_echo "$ac_try_echo"; } >&5
   3546   (eval "$ac_try") 2>&5
   3547   ac_status=$?
   3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3549   test $ac_status = 0; }; }; then
   3550     cross_compiling=no
   3551   else
   3552     if test "$cross_compiling" = maybe; then
   3553 	cross_compiling=yes
   3554     else
   3555 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3557 as_fn_error $? "cannot run C compiled programs.
   3558 If you meant to cross compile, use \`--host'.
   3559 See \`config.log' for more details" "$LINENO" 5; }
   3560     fi
   3561   fi
   3562 fi
   3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3564 $as_echo "$cross_compiling" >&6; }
   3565 
   3566 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3567 ac_clean_files=$ac_clean_files_save
   3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3569 $as_echo_n "checking for suffix of object files... " >&6; }
   3570 if ${ac_cv_objext+:} false; then :
   3571   $as_echo_n "(cached) " >&6
   3572 else
   3573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3574 /* end confdefs.h.  */
   3575 
   3576 int
   3577 main ()
   3578 {
   3579 
   3580   ;
   3581   return 0;
   3582 }
   3583 _ACEOF
   3584 rm -f conftest.o conftest.obj
   3585 if { { ac_try="$ac_compile"
   3586 case "(($ac_try" in
   3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3588   *) ac_try_echo=$ac_try;;
   3589 esac
   3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3591 $as_echo "$ac_try_echo"; } >&5
   3592   (eval "$ac_compile") 2>&5
   3593   ac_status=$?
   3594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3595   test $ac_status = 0; }; then :
   3596   for ac_file in conftest.o conftest.obj conftest.*; do
   3597   test -f "$ac_file" || continue;
   3598   case $ac_file in
   3599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3600     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3601        break;;
   3602   esac
   3603 done
   3604 else
   3605   $as_echo "$as_me: failed program was:" >&5
   3606 sed 's/^/| /' conftest.$ac_ext >&5
   3607 
   3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3610 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3611 See \`config.log' for more details" "$LINENO" 5; }
   3612 fi
   3613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3614 fi
   3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3616 $as_echo "$ac_cv_objext" >&6; }
   3617 OBJEXT=$ac_cv_objext
   3618 ac_objext=$OBJEXT
   3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3620 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3621 if ${ac_cv_c_compiler_gnu+:} false; then :
   3622   $as_echo_n "(cached) " >&6
   3623 else
   3624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3625 /* end confdefs.h.  */
   3626 
   3627 int
   3628 main ()
   3629 {
   3630 #ifndef __GNUC__
   3631        choke me
   3632 #endif
   3633 
   3634   ;
   3635   return 0;
   3636 }
   3637 _ACEOF
   3638 if ac_fn_c_try_compile "$LINENO"; then :
   3639   ac_compiler_gnu=yes
   3640 else
   3641   ac_compiler_gnu=no
   3642 fi
   3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3644 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3645 
   3646 fi
   3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3648 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3649 if test $ac_compiler_gnu = yes; then
   3650   GCC=yes
   3651 else
   3652   GCC=
   3653 fi
   3654 ac_test_CFLAGS=${CFLAGS+set}
   3655 ac_save_CFLAGS=$CFLAGS
   3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3657 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3658 if ${ac_cv_prog_cc_g+:} false; then :
   3659   $as_echo_n "(cached) " >&6
   3660 else
   3661   ac_save_c_werror_flag=$ac_c_werror_flag
   3662    ac_c_werror_flag=yes
   3663    ac_cv_prog_cc_g=no
   3664    CFLAGS="-g"
   3665    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3666 /* end confdefs.h.  */
   3667 
   3668 int
   3669 main ()
   3670 {
   3671 
   3672   ;
   3673   return 0;
   3674 }
   3675 _ACEOF
   3676 if ac_fn_c_try_compile "$LINENO"; then :
   3677   ac_cv_prog_cc_g=yes
   3678 else
   3679   CFLAGS=""
   3680       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3681 /* end confdefs.h.  */
   3682 
   3683 int
   3684 main ()
   3685 {
   3686 
   3687   ;
   3688   return 0;
   3689 }
   3690 _ACEOF
   3691 if ac_fn_c_try_compile "$LINENO"; then :
   3692 
   3693 else
   3694   ac_c_werror_flag=$ac_save_c_werror_flag
   3695 	 CFLAGS="-g"
   3696 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3697 /* end confdefs.h.  */
   3698 
   3699 int
   3700 main ()
   3701 {
   3702 
   3703   ;
   3704   return 0;
   3705 }
   3706 _ACEOF
   3707 if ac_fn_c_try_compile "$LINENO"; then :
   3708   ac_cv_prog_cc_g=yes
   3709 fi
   3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3711 fi
   3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3713 fi
   3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3715    ac_c_werror_flag=$ac_save_c_werror_flag
   3716 fi
   3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3718 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3719 if test "$ac_test_CFLAGS" = set; then
   3720   CFLAGS=$ac_save_CFLAGS
   3721 elif test $ac_cv_prog_cc_g = yes; then
   3722   if test "$GCC" = yes; then
   3723     CFLAGS="-g -O2"
   3724   else
   3725     CFLAGS="-g"
   3726   fi
   3727 else
   3728   if test "$GCC" = yes; then
   3729     CFLAGS="-O2"
   3730   else
   3731     CFLAGS=
   3732   fi
   3733 fi
   3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3735 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3736 if ${ac_cv_prog_cc_c89+:} false; then :
   3737   $as_echo_n "(cached) " >&6
   3738 else
   3739   ac_cv_prog_cc_c89=no
   3740 ac_save_CC=$CC
   3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3742 /* end confdefs.h.  */
   3743 #include <stdarg.h>
   3744 #include <stdio.h>
   3745 struct stat;
   3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3747 struct buf { int x; };
   3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3749 static char *e (p, i)
   3750      char **p;
   3751      int i;
   3752 {
   3753   return p[i];
   3754 }
   3755 static char *f (char * (*g) (char **, int), char **p, ...)
   3756 {
   3757   char *s;
   3758   va_list v;
   3759   va_start (v,p);
   3760   s = g (p, va_arg (v,int));
   3761   va_end (v);
   3762   return s;
   3763 }
   3764 
   3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3766    function prototypes and stuff, but not '\xHH' hex character constants.
   3767    These don't provoke an error unfortunately, instead are silently treated
   3768    as 'x'.  The following induces an error, until -std is added to get
   3769    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3770    array size at least.  It's necessary to write '\x00'==0 to get something
   3771    that's true only with -std.  */
   3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3773 
   3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3775    inside strings and character constants.  */
   3776 #define FOO(x) 'x'
   3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3778 
   3779 int test (int i, double x);
   3780 struct s1 {int (*f) (int a);};
   3781 struct s2 {int (*f) (double a);};
   3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3783 int argc;
   3784 char **argv;
   3785 int
   3786 main ()
   3787 {
   3788 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3789   ;
   3790   return 0;
   3791 }
   3792 _ACEOF
   3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3794 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3795 do
   3796   CC="$ac_save_CC $ac_arg"
   3797   if ac_fn_c_try_compile "$LINENO"; then :
   3798   ac_cv_prog_cc_c89=$ac_arg
   3799 fi
   3800 rm -f core conftest.err conftest.$ac_objext
   3801   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3802 done
   3803 rm -f conftest.$ac_ext
   3804 CC=$ac_save_CC
   3805 
   3806 fi
   3807 # AC_CACHE_VAL
   3808 case "x$ac_cv_prog_cc_c89" in
   3809   x)
   3810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3811 $as_echo "none needed" >&6; } ;;
   3812   xno)
   3813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3814 $as_echo "unsupported" >&6; } ;;
   3815   *)
   3816     CC="$CC $ac_cv_prog_cc_c89"
   3817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3819 esac
   3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3821 
   3822 fi
   3823 
   3824 ac_ext=c
   3825 ac_cpp='$CPP $CPPFLAGS'
   3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3829 
   3830 ac_ext=c
   3831 ac_cpp='$CPP $CPPFLAGS'
   3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3836 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
   3837 if ${am_cv_prog_cc_c_o+:} false; then :
   3838   $as_echo_n "(cached) " >&6
   3839 else
   3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3841 /* end confdefs.h.  */
   3842 
   3843 int
   3844 main ()
   3845 {
   3846 
   3847   ;
   3848   return 0;
   3849 }
   3850 _ACEOF
   3851   # Make sure it works both with $CC and with simple cc.
   3852   # Following AC_PROG_CC_C_O, we do the test twice because some
   3853   # compilers refuse to overwrite an existing .o file with -o,
   3854   # though they will create one.
   3855   am_cv_prog_cc_c_o=yes
   3856   for am_i in 1 2; do
   3857     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3858    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3859    ac_status=$?
   3860    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3861    (exit $ac_status); } \
   3862          && test -f conftest2.$ac_objext; then
   3863       : OK
   3864     else
   3865       am_cv_prog_cc_c_o=no
   3866       break
   3867     fi
   3868   done
   3869   rm -f core conftest*
   3870   unset am_i
   3871 fi
   3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3873 $as_echo "$am_cv_prog_cc_c_o" >&6; }
   3874 if test "$am_cv_prog_cc_c_o" != yes; then
   3875    # Losing compiler, so override with the script.
   3876    # FIXME: It is wrong to rewrite CC.
   3877    # But if we don't then we get into trouble of one sort or another.
   3878    # A longer-term fix would be to have automake use am__CC in this case,
   3879    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3880    CC="$am_aux_dir/compile $CC"
   3881 fi
   3882 ac_ext=c
   3883 ac_cpp='$CPP $CPPFLAGS'
   3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3887 
   3888 DEPDIR="${am__leading_dot}deps"
   3889 
   3890 ac_config_commands="$ac_config_commands depfiles"
   3891 
   3892 
   3893 am_make=${MAKE-make}
   3894 cat > confinc << 'END'
   3895 am__doit:
   3896 	@echo this is the am__doit target
   3897 .PHONY: am__doit
   3898 END
   3899 # If we don't find an include directive, just comment out the code.
   3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3902 am__include="#"
   3903 am__quote=
   3904 _am_result=none
   3905 # First try GNU make style include.
   3906 echo "include confinc" > confmf
   3907 # Ignore all kinds of additional output from 'make'.
   3908 case `$am_make -s -f confmf 2> /dev/null` in #(
   3909 *the\ am__doit\ target*)
   3910   am__include=include
   3911   am__quote=
   3912   _am_result=GNU
   3913   ;;
   3914 esac
   3915 # Now try BSD make style include.
   3916 if test "$am__include" = "#"; then
   3917    echo '.include "confinc"' > confmf
   3918    case `$am_make -s -f confmf 2> /dev/null` in #(
   3919    *the\ am__doit\ target*)
   3920      am__include=.include
   3921      am__quote="\""
   3922      _am_result=BSD
   3923      ;;
   3924    esac
   3925 fi
   3926 
   3927 
   3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3929 $as_echo "$_am_result" >&6; }
   3930 rm -f confinc confmf
   3931 
   3932 # Check whether --enable-dependency-tracking was given.
   3933 if test "${enable_dependency_tracking+set}" = set; then :
   3934   enableval=$enable_dependency_tracking;
   3935 fi
   3936 
   3937 if test "x$enable_dependency_tracking" != xno; then
   3938   am_depcomp="$ac_aux_dir/depcomp"
   3939   AMDEPBACKSLASH='\'
   3940   am__nodep='_no'
   3941 fi
   3942  if test "x$enable_dependency_tracking" != xno; then
   3943   AMDEP_TRUE=
   3944   AMDEP_FALSE='#'
   3945 else
   3946   AMDEP_TRUE='#'
   3947   AMDEP_FALSE=
   3948 fi
   3949 
   3950 
   3951 
   3952 depcc="$CC"   am_compiler_list=
   3953 
   3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   3955 $as_echo_n "checking dependency style of $depcc... " >&6; }
   3956 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   3957   $as_echo_n "(cached) " >&6
   3958 else
   3959   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3960   # We make a subdir and do the tests there.  Otherwise we can end up
   3961   # making bogus files that we don't know about and never remove.  For
   3962   # instance it was reported that on HP-UX the gcc test will end up
   3963   # making a dummy file named 'D' -- because '-MD' means "put the output
   3964   # in D".
   3965   rm -rf conftest.dir
   3966   mkdir conftest.dir
   3967   # Copy depcomp to subdir because otherwise we won't find it if we're
   3968   # using a relative directory.
   3969   cp "$am_depcomp" conftest.dir
   3970   cd conftest.dir
   3971   # We will build objects and dependencies in a subdirectory because
   3972   # it helps to detect inapplicable dependency modes.  For instance
   3973   # both Tru64's cc and ICC support -MD to output dependencies as a
   3974   # side effect of compilation, but ICC will put the dependencies in
   3975   # the current directory while Tru64 will put them in the object
   3976   # directory.
   3977   mkdir sub
   3978 
   3979   am_cv_CC_dependencies_compiler_type=none
   3980   if test "$am_compiler_list" = ""; then
   3981      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3982   fi
   3983   am__universal=false
   3984   case " $depcc " in #(
   3985      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   3986      esac
   3987 
   3988   for depmode in $am_compiler_list; do
   3989     # Setup a source with many dependencies, because some compilers
   3990     # like to wrap large dependency lists on column 80 (with \), and
   3991     # we should not choose a depcomp mode which is confused by this.
   3992     #
   3993     # We need to recreate these files for each test, as the compiler may
   3994     # overwrite some of them when testing with obscure command lines.
   3995     # This happens at least with the AIX C compiler.
   3996     : > sub/conftest.c
   3997     for i in 1 2 3 4 5 6; do
   3998       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3999       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4000       # Solaris 10 /bin/sh.
   4001       echo '/* dummy */' > sub/conftst$i.h
   4002     done
   4003     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4004 
   4005     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4006     # mode.  It turns out that the SunPro C++ compiler does not properly
   4007     # handle '-M -o', and we need to detect this.  Also, some Intel
   4008     # versions had trouble with output in subdirs.
   4009     am__obj=sub/conftest.${OBJEXT-o}
   4010     am__minus_obj="-o $am__obj"
   4011     case $depmode in
   4012     gcc)
   4013       # This depmode causes a compiler race in universal mode.
   4014       test "$am__universal" = false || continue
   4015       ;;
   4016     nosideeffect)
   4017       # After this tag, mechanisms are not by side-effect, so they'll
   4018       # only be used when explicitly requested.
   4019       if test "x$enable_dependency_tracking" = xyes; then
   4020 	continue
   4021       else
   4022 	break
   4023       fi
   4024       ;;
   4025     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4026       # This compiler won't grok '-c -o', but also, the minuso test has
   4027       # not run yet.  These depmodes are late enough in the game, and
   4028       # so weak that their functioning should not be impacted.
   4029       am__obj=conftest.${OBJEXT-o}
   4030       am__minus_obj=
   4031       ;;
   4032     none) break ;;
   4033     esac
   4034     if depmode=$depmode \
   4035        source=sub/conftest.c object=$am__obj \
   4036        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4037        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4038          >/dev/null 2>conftest.err &&
   4039        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4040        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4041        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4042        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4043       # icc doesn't choke on unknown options, it will just issue warnings
   4044       # or remarks (even with -Werror).  So we grep stderr for any message
   4045       # that says an option was ignored or not supported.
   4046       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4047       #   icc: Command line warning: ignoring option '-M'; no argument required
   4048       # The diagnosis changed in icc 8.0:
   4049       #   icc: Command line remark: option '-MP' not supported
   4050       if (grep 'ignoring option' conftest.err ||
   4051           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4052         am_cv_CC_dependencies_compiler_type=$depmode
   4053         break
   4054       fi
   4055     fi
   4056   done
   4057 
   4058   cd ..
   4059   rm -rf conftest.dir
   4060 else
   4061   am_cv_CC_dependencies_compiler_type=none
   4062 fi
   4063 
   4064 fi
   4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4066 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4067 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4068 
   4069  if
   4070   test "x$enable_dependency_tracking" != xno \
   4071   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4072   am__fastdepCC_TRUE=
   4073   am__fastdepCC_FALSE='#'
   4074 else
   4075   am__fastdepCC_TRUE='#'
   4076   am__fastdepCC_FALSE=
   4077 fi
   4078 
   4079 
   4080 
   4081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   4082 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   4083 if ${ac_cv_prog_cc_c99+:} false; then :
   4084   $as_echo_n "(cached) " >&6
   4085 else
   4086   ac_cv_prog_cc_c99=no
   4087 ac_save_CC=$CC
   4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4089 /* end confdefs.h.  */
   4090 #include <stdarg.h>
   4091 #include <stdbool.h>
   4092 #include <stdlib.h>
   4093 #include <wchar.h>
   4094 #include <stdio.h>
   4095 
   4096 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   4097 #define debug(...) fprintf (stderr, __VA_ARGS__)
   4098 #define showlist(...) puts (#__VA_ARGS__)
   4099 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   4100 static void
   4101 test_varargs_macros (void)
   4102 {
   4103   int x = 1234;
   4104   int y = 5678;
   4105   debug ("Flag");
   4106   debug ("X = %d\n", x);
   4107   showlist (The first, second, and third items.);
   4108   report (x>y, "x is %d but y is %d", x, y);
   4109 }
   4110 
   4111 // Check long long types.
   4112 #define BIG64 18446744073709551615ull
   4113 #define BIG32 4294967295ul
   4114 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   4115 #if !BIG_OK
   4116   your preprocessor is broken;
   4117 #endif
   4118 #if BIG_OK
   4119 #else
   4120   your preprocessor is broken;
   4121 #endif
   4122 static long long int bignum = -9223372036854775807LL;
   4123 static unsigned long long int ubignum = BIG64;
   4124 
   4125 struct incomplete_array
   4126 {
   4127   int datasize;
   4128   double data[];
   4129 };
   4130 
   4131 struct named_init {
   4132   int number;
   4133   const wchar_t *name;
   4134   double average;
   4135 };
   4136 
   4137 typedef const char *ccp;
   4138 
   4139 static inline int
   4140 test_restrict (ccp restrict text)
   4141 {
   4142   // See if C++-style comments work.
   4143   // Iterate through items via the restricted pointer.
   4144   // Also check for declarations in for loops.
   4145   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   4146     continue;
   4147   return 0;
   4148 }
   4149 
   4150 // Check varargs and va_copy.
   4151 static void
   4152 test_varargs (const char *format, ...)
   4153 {
   4154   va_list args;
   4155   va_start (args, format);
   4156   va_list args_copy;
   4157   va_copy (args_copy, args);
   4158 
   4159   const char *str;
   4160   int number;
   4161   float fnumber;
   4162 
   4163   while (*format)
   4164     {
   4165       switch (*format++)
   4166 	{
   4167 	case 's': // string
   4168 	  str = va_arg (args_copy, const char *);
   4169 	  break;
   4170 	case 'd': // int
   4171 	  number = va_arg (args_copy, int);
   4172 	  break;
   4173 	case 'f': // float
   4174 	  fnumber = va_arg (args_copy, double);
   4175 	  break;
   4176 	default:
   4177 	  break;
   4178 	}
   4179     }
   4180   va_end (args_copy);
   4181   va_end (args);
   4182 }
   4183 
   4184 int
   4185 main ()
   4186 {
   4187 
   4188   // Check bool.
   4189   _Bool success = false;
   4190 
   4191   // Check restrict.
   4192   if (test_restrict ("String literal") == 0)
   4193     success = true;
   4194   char *restrict newvar = "Another string";
   4195 
   4196   // Check varargs.
   4197   test_varargs ("s, d' f .", "string", 65, 34.234);
   4198   test_varargs_macros ();
   4199 
   4200   // Check flexible array members.
   4201   struct incomplete_array *ia =
   4202     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   4203   ia->datasize = 10;
   4204   for (int i = 0; i < ia->datasize; ++i)
   4205     ia->data[i] = i * 1.234;
   4206 
   4207   // Check named initializers.
   4208   struct named_init ni = {
   4209     .number = 34,
   4210     .name = L"Test wide string",
   4211     .average = 543.34343,
   4212   };
   4213 
   4214   ni.number = 58;
   4215 
   4216   int dynamic_array[ni.number];
   4217   dynamic_array[ni.number - 1] = 543;
   4218 
   4219   // work around unused variable warnings
   4220   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   4221 	  || dynamic_array[ni.number - 1] != 543);
   4222 
   4223   ;
   4224   return 0;
   4225 }
   4226 _ACEOF
   4227 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   4228 do
   4229   CC="$ac_save_CC $ac_arg"
   4230   if ac_fn_c_try_compile "$LINENO"; then :
   4231   ac_cv_prog_cc_c99=$ac_arg
   4232 fi
   4233 rm -f core conftest.err conftest.$ac_objext
   4234   test "x$ac_cv_prog_cc_c99" != "xno" && break
   4235 done
   4236 rm -f conftest.$ac_ext
   4237 CC=$ac_save_CC
   4238 
   4239 fi
   4240 # AC_CACHE_VAL
   4241 case "x$ac_cv_prog_cc_c99" in
   4242   x)
   4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4244 $as_echo "none needed" >&6; } ;;
   4245   xno)
   4246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4247 $as_echo "unsupported" >&6; } ;;
   4248   *)
   4249     CC="$CC $ac_cv_prog_cc_c99"
   4250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4251 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   4252 esac
   4253 if test "x$ac_cv_prog_cc_c99" != xno; then :
   4254 
   4255 fi
   4256 
   4257 
   4258 ac_ext=c
   4259 ac_cpp='$CPP $CPPFLAGS'
   4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4265 # On Suns, sometimes $CPP names a directory.
   4266 if test -n "$CPP" && test -d "$CPP"; then
   4267   CPP=
   4268 fi
   4269 if test -z "$CPP"; then
   4270   if ${ac_cv_prog_CPP+:} false; then :
   4271   $as_echo_n "(cached) " >&6
   4272 else
   4273       # Double quotes because CPP needs to be expanded
   4274     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4275     do
   4276       ac_preproc_ok=false
   4277 for ac_c_preproc_warn_flag in '' yes
   4278 do
   4279   # Use a header file that comes with gcc, so configuring glibc
   4280   # with a fresh cross-compiler works.
   4281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4282   # <limits.h> exists even on freestanding compilers.
   4283   # On the NeXT, cc -E runs the code through the compiler's parser,
   4284   # not just through cpp. "Syntax error" is here to catch this case.
   4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4286 /* end confdefs.h.  */
   4287 #ifdef __STDC__
   4288 # include <limits.h>
   4289 #else
   4290 # include <assert.h>
   4291 #endif
   4292 		     Syntax error
   4293 _ACEOF
   4294 if ac_fn_c_try_cpp "$LINENO"; then :
   4295 
   4296 else
   4297   # Broken: fails on valid input.
   4298 continue
   4299 fi
   4300 rm -f conftest.err conftest.i conftest.$ac_ext
   4301 
   4302   # OK, works on sane cases.  Now check whether nonexistent headers
   4303   # can be detected and how.
   4304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4305 /* end confdefs.h.  */
   4306 #include <ac_nonexistent.h>
   4307 _ACEOF
   4308 if ac_fn_c_try_cpp "$LINENO"; then :
   4309   # Broken: success on invalid input.
   4310 continue
   4311 else
   4312   # Passes both tests.
   4313 ac_preproc_ok=:
   4314 break
   4315 fi
   4316 rm -f conftest.err conftest.i conftest.$ac_ext
   4317 
   4318 done
   4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4320 rm -f conftest.i conftest.err conftest.$ac_ext
   4321 if $ac_preproc_ok; then :
   4322   break
   4323 fi
   4324 
   4325     done
   4326     ac_cv_prog_CPP=$CPP
   4327 
   4328 fi
   4329   CPP=$ac_cv_prog_CPP
   4330 else
   4331   ac_cv_prog_CPP=$CPP
   4332 fi
   4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4334 $as_echo "$CPP" >&6; }
   4335 ac_preproc_ok=false
   4336 for ac_c_preproc_warn_flag in '' yes
   4337 do
   4338   # Use a header file that comes with gcc, so configuring glibc
   4339   # with a fresh cross-compiler works.
   4340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4341   # <limits.h> exists even on freestanding compilers.
   4342   # On the NeXT, cc -E runs the code through the compiler's parser,
   4343   # not just through cpp. "Syntax error" is here to catch this case.
   4344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4345 /* end confdefs.h.  */
   4346 #ifdef __STDC__
   4347 # include <limits.h>
   4348 #else
   4349 # include <assert.h>
   4350 #endif
   4351 		     Syntax error
   4352 _ACEOF
   4353 if ac_fn_c_try_cpp "$LINENO"; then :
   4354 
   4355 else
   4356   # Broken: fails on valid input.
   4357 continue
   4358 fi
   4359 rm -f conftest.err conftest.i conftest.$ac_ext
   4360 
   4361   # OK, works on sane cases.  Now check whether nonexistent headers
   4362   # can be detected and how.
   4363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4364 /* end confdefs.h.  */
   4365 #include <ac_nonexistent.h>
   4366 _ACEOF
   4367 if ac_fn_c_try_cpp "$LINENO"; then :
   4368   # Broken: success on invalid input.
   4369 continue
   4370 else
   4371   # Passes both tests.
   4372 ac_preproc_ok=:
   4373 break
   4374 fi
   4375 rm -f conftest.err conftest.i conftest.$ac_ext
   4376 
   4377 done
   4378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4379 rm -f conftest.i conftest.err conftest.$ac_ext
   4380 if $ac_preproc_ok; then :
   4381 
   4382 else
   4383   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4385 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4386 See \`config.log' for more details" "$LINENO" 5; }
   4387 fi
   4388 
   4389 ac_ext=c
   4390 ac_cpp='$CPP $CPPFLAGS'
   4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4394 
   4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4397 if ${ac_cv_path_GREP+:} false; then :
   4398   $as_echo_n "(cached) " >&6
   4399 else
   4400   if test -z "$GREP"; then
   4401   ac_path_GREP_found=false
   4402   # Loop through the user's path and test for each of PROGNAME-LIST
   4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4405 do
   4406   IFS=$as_save_IFS
   4407   test -z "$as_dir" && as_dir=.
   4408     for ac_prog in grep ggrep; do
   4409     for ac_exec_ext in '' $ac_executable_extensions; do
   4410       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4411       as_fn_executable_p "$ac_path_GREP" || continue
   4412 # Check for GNU ac_path_GREP and select it if it is found.
   4413   # Check for GNU $ac_path_GREP
   4414 case `"$ac_path_GREP" --version 2>&1` in
   4415 *GNU*)
   4416   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4417 *)
   4418   ac_count=0
   4419   $as_echo_n 0123456789 >"conftest.in"
   4420   while :
   4421   do
   4422     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4423     mv "conftest.tmp" "conftest.in"
   4424     cp "conftest.in" "conftest.nl"
   4425     $as_echo 'GREP' >> "conftest.nl"
   4426     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4427     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4428     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4429     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4430       # Best one so far, save it but keep looking for a better one
   4431       ac_cv_path_GREP="$ac_path_GREP"
   4432       ac_path_GREP_max=$ac_count
   4433     fi
   4434     # 10*(2^10) chars as input seems more than enough
   4435     test $ac_count -gt 10 && break
   4436   done
   4437   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4438 esac
   4439 
   4440       $ac_path_GREP_found && break 3
   4441     done
   4442   done
   4443   done
   4444 IFS=$as_save_IFS
   4445   if test -z "$ac_cv_path_GREP"; then
   4446     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4447   fi
   4448 else
   4449   ac_cv_path_GREP=$GREP
   4450 fi
   4451 
   4452 fi
   4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4454 $as_echo "$ac_cv_path_GREP" >&6; }
   4455  GREP="$ac_cv_path_GREP"
   4456 
   4457 
   4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4459 $as_echo_n "checking for egrep... " >&6; }
   4460 if ${ac_cv_path_EGREP+:} false; then :
   4461   $as_echo_n "(cached) " >&6
   4462 else
   4463   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4464    then ac_cv_path_EGREP="$GREP -E"
   4465    else
   4466      if test -z "$EGREP"; then
   4467   ac_path_EGREP_found=false
   4468   # Loop through the user's path and test for each of PROGNAME-LIST
   4469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4471 do
   4472   IFS=$as_save_IFS
   4473   test -z "$as_dir" && as_dir=.
   4474     for ac_prog in egrep; do
   4475     for ac_exec_ext in '' $ac_executable_extensions; do
   4476       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4477       as_fn_executable_p "$ac_path_EGREP" || continue
   4478 # Check for GNU ac_path_EGREP and select it if it is found.
   4479   # Check for GNU $ac_path_EGREP
   4480 case `"$ac_path_EGREP" --version 2>&1` in
   4481 *GNU*)
   4482   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4483 *)
   4484   ac_count=0
   4485   $as_echo_n 0123456789 >"conftest.in"
   4486   while :
   4487   do
   4488     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4489     mv "conftest.tmp" "conftest.in"
   4490     cp "conftest.in" "conftest.nl"
   4491     $as_echo 'EGREP' >> "conftest.nl"
   4492     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4493     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4494     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4495     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4496       # Best one so far, save it but keep looking for a better one
   4497       ac_cv_path_EGREP="$ac_path_EGREP"
   4498       ac_path_EGREP_max=$ac_count
   4499     fi
   4500     # 10*(2^10) chars as input seems more than enough
   4501     test $ac_count -gt 10 && break
   4502   done
   4503   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4504 esac
   4505 
   4506       $ac_path_EGREP_found && break 3
   4507     done
   4508   done
   4509   done
   4510 IFS=$as_save_IFS
   4511   if test -z "$ac_cv_path_EGREP"; then
   4512     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4513   fi
   4514 else
   4515   ac_cv_path_EGREP=$EGREP
   4516 fi
   4517 
   4518    fi
   4519 fi
   4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4521 $as_echo "$ac_cv_path_EGREP" >&6; }
   4522  EGREP="$ac_cv_path_EGREP"
   4523 
   4524 
   4525 
   4526 for ac_prog in 'bison -y' byacc
   4527 do
   4528   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4529 set dummy $ac_prog; ac_word=$2
   4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4531 $as_echo_n "checking for $ac_word... " >&6; }
   4532 if ${ac_cv_prog_YACC+:} false; then :
   4533   $as_echo_n "(cached) " >&6
   4534 else
   4535   if test -n "$YACC"; then
   4536   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   4537 else
   4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4539 for as_dir in $PATH
   4540 do
   4541   IFS=$as_save_IFS
   4542   test -z "$as_dir" && as_dir=.
   4543     for ac_exec_ext in '' $ac_executable_extensions; do
   4544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4545     ac_cv_prog_YACC="$ac_prog"
   4546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4547     break 2
   4548   fi
   4549 done
   4550   done
   4551 IFS=$as_save_IFS
   4552 
   4553 fi
   4554 fi
   4555 YACC=$ac_cv_prog_YACC
   4556 if test -n "$YACC"; then
   4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   4558 $as_echo "$YACC" >&6; }
   4559 else
   4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4561 $as_echo "no" >&6; }
   4562 fi
   4563 
   4564 
   4565   test -n "$YACC" && break
   4566 done
   4567 test -n "$YACC" || YACC="yacc"
   4568 
   4569 
   4570 
   4571 
   4572 
   4573 
   4574 
   4575 
   4576 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4577 	if test -n "$ac_tool_prefix"; then
   4578   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4579 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4581 $as_echo_n "checking for $ac_word... " >&6; }
   4582 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   4583   $as_echo_n "(cached) " >&6
   4584 else
   4585   case $PKG_CONFIG in
   4586   [\\/]* | ?:[\\/]*)
   4587   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4588   ;;
   4589   *)
   4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4591 for as_dir in $PATH
   4592 do
   4593   IFS=$as_save_IFS
   4594   test -z "$as_dir" && as_dir=.
   4595     for ac_exec_ext in '' $ac_executable_extensions; do
   4596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4597     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4599     break 2
   4600   fi
   4601 done
   4602   done
   4603 IFS=$as_save_IFS
   4604 
   4605   ;;
   4606 esac
   4607 fi
   4608 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4609 if test -n "$PKG_CONFIG"; then
   4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4611 $as_echo "$PKG_CONFIG" >&6; }
   4612 else
   4613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4614 $as_echo "no" >&6; }
   4615 fi
   4616 
   4617 
   4618 fi
   4619 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4620   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4621   # Extract the first word of "pkg-config", so it can be a program name with args.
   4622 set dummy pkg-config; ac_word=$2
   4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4624 $as_echo_n "checking for $ac_word... " >&6; }
   4625 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   4626   $as_echo_n "(cached) " >&6
   4627 else
   4628   case $ac_pt_PKG_CONFIG in
   4629   [\\/]* | ?:[\\/]*)
   4630   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4631   ;;
   4632   *)
   4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4634 for as_dir in $PATH
   4635 do
   4636   IFS=$as_save_IFS
   4637   test -z "$as_dir" && as_dir=.
   4638     for ac_exec_ext in '' $ac_executable_extensions; do
   4639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4640     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4642     break 2
   4643   fi
   4644 done
   4645   done
   4646 IFS=$as_save_IFS
   4647 
   4648   ;;
   4649 esac
   4650 fi
   4651 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4652 if test -n "$ac_pt_PKG_CONFIG"; then
   4653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4654 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   4655 else
   4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4657 $as_echo "no" >&6; }
   4658 fi
   4659 
   4660   if test "x$ac_pt_PKG_CONFIG" = x; then
   4661     PKG_CONFIG=""
   4662   else
   4663     case $cross_compiling:$ac_tool_warned in
   4664 yes:)
   4665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4667 ac_tool_warned=yes ;;
   4668 esac
   4669     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4670   fi
   4671 else
   4672   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4673 fi
   4674 
   4675 fi
   4676 if test -n "$PKG_CONFIG"; then
   4677 	_pkg_min_version=0.9.0
   4678 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4679 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4680 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4681 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4682 $as_echo "yes" >&6; }
   4683 	else
   4684 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4685 $as_echo "no" >&6; }
   4686 		PKG_CONFIG=""
   4687 	fi
   4688 fi
   4689 
   4690 
   4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4692 $as_echo_n "checking for ANSI C header files... " >&6; }
   4693 if ${ac_cv_header_stdc+:} false; then :
   4694   $as_echo_n "(cached) " >&6
   4695 else
   4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4697 /* end confdefs.h.  */
   4698 #include <stdlib.h>
   4699 #include <stdarg.h>
   4700 #include <string.h>
   4701 #include <float.h>
   4702 
   4703 int
   4704 main ()
   4705 {
   4706 
   4707   ;
   4708   return 0;
   4709 }
   4710 _ACEOF
   4711 if ac_fn_c_try_compile "$LINENO"; then :
   4712   ac_cv_header_stdc=yes
   4713 else
   4714   ac_cv_header_stdc=no
   4715 fi
   4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4717 
   4718 if test $ac_cv_header_stdc = yes; then
   4719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4721 /* end confdefs.h.  */
   4722 #include <string.h>
   4723 
   4724 _ACEOF
   4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4726   $EGREP "memchr" >/dev/null 2>&1; then :
   4727 
   4728 else
   4729   ac_cv_header_stdc=no
   4730 fi
   4731 rm -f conftest*
   4732 
   4733 fi
   4734 
   4735 if test $ac_cv_header_stdc = yes; then
   4736   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4738 /* end confdefs.h.  */
   4739 #include <stdlib.h>
   4740 
   4741 _ACEOF
   4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4743   $EGREP "free" >/dev/null 2>&1; then :
   4744 
   4745 else
   4746   ac_cv_header_stdc=no
   4747 fi
   4748 rm -f conftest*
   4749 
   4750 fi
   4751 
   4752 if test $ac_cv_header_stdc = yes; then
   4753   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4754   if test "$cross_compiling" = yes; then :
   4755   :
   4756 else
   4757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4758 /* end confdefs.h.  */
   4759 #include <ctype.h>
   4760 #include <stdlib.h>
   4761 #if ((' ' & 0x0FF) == 0x020)
   4762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4764 #else
   4765 # define ISLOWER(c) \
   4766 		   (('a' <= (c) && (c) <= 'i') \
   4767 		     || ('j' <= (c) && (c) <= 'r') \
   4768 		     || ('s' <= (c) && (c) <= 'z'))
   4769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4770 #endif
   4771 
   4772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4773 int
   4774 main ()
   4775 {
   4776   int i;
   4777   for (i = 0; i < 256; i++)
   4778     if (XOR (islower (i), ISLOWER (i))
   4779 	|| toupper (i) != TOUPPER (i))
   4780       return 2;
   4781   return 0;
   4782 }
   4783 _ACEOF
   4784 if ac_fn_c_try_run "$LINENO"; then :
   4785 
   4786 else
   4787   ac_cv_header_stdc=no
   4788 fi
   4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4790   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4791 fi
   4792 
   4793 fi
   4794 fi
   4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4796 $as_echo "$ac_cv_header_stdc" >&6; }
   4797 if test $ac_cv_header_stdc = yes; then
   4798 
   4799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4800 
   4801 fi
   4802 
   4803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4805 		  inttypes.h stdint.h unistd.h
   4806 do :
   4807   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4809 "
   4810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4811   cat >>confdefs.h <<_ACEOF
   4812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4813 _ACEOF
   4814 
   4815 fi
   4816 
   4817 done
   4818 
   4819 
   4820 
   4821   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4822 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4823   MINIX=yes
   4824 else
   4825   MINIX=
   4826 fi
   4827 
   4828 
   4829   if test "$MINIX" = yes; then
   4830 
   4831 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4832 
   4833 
   4834 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4835 
   4836 
   4837 $as_echo "#define _MINIX 1" >>confdefs.h
   4838 
   4839   fi
   4840 
   4841 
   4842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4844 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4845   $as_echo_n "(cached) " >&6
   4846 else
   4847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4848 /* end confdefs.h.  */
   4849 
   4850 #         define __EXTENSIONS__ 1
   4851           $ac_includes_default
   4852 int
   4853 main ()
   4854 {
   4855 
   4856   ;
   4857   return 0;
   4858 }
   4859 _ACEOF
   4860 if ac_fn_c_try_compile "$LINENO"; then :
   4861   ac_cv_safe_to_define___extensions__=yes
   4862 else
   4863   ac_cv_safe_to_define___extensions__=no
   4864 fi
   4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4866 fi
   4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4868 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4869   test $ac_cv_safe_to_define___extensions__ = yes &&
   4870     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4871 
   4872   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4873 
   4874   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4875 
   4876   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4877 
   4878   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4879 
   4880 
   4881 
   4882 # Default tmux.conf goes in /etc not ${prefix}/etc.
   4883 test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
   4884 
   4885 # Is this --enable-debug?
   4886 case "x$VERSION" in xnext*) enable_debug=yes;; esac
   4887 # Check whether --enable-debug was given.
   4888 if test "${enable_debug+set}" = set; then :
   4889   enableval=$enable_debug;
   4890 fi
   4891 
   4892  if test "x$enable_debug" = xyes; then
   4893   IS_DEBUG_TRUE=
   4894   IS_DEBUG_FALSE='#'
   4895 else
   4896   IS_DEBUG_TRUE='#'
   4897   IS_DEBUG_FALSE=
   4898 fi
   4899 
   4900 
   4901 # Is this a static build?
   4902 # Check whether --enable-static was given.
   4903 if test "${enable_static+set}" = set; then :
   4904   enableval=$enable_static;
   4905 fi
   4906 
   4907 if test "x$enable_static" = xyes; then
   4908 	test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
   4909 	AM_LDFLAGS="-static $AM_LDFLAGS"
   4910 	LDFLAGS="$AM_LDFLAGS $SAVED_LDFLAGS"
   4911 fi
   4912 
   4913 # Do we need fuzzers?
   4914  if test "x$enable_fuzzing" = xyes; then
   4915   NEED_FUZZING_TRUE=
   4916   NEED_FUZZING_FALSE='#'
   4917 else
   4918   NEED_FUZZING_TRUE='#'
   4919   NEED_FUZZING_FALSE=
   4920 fi
   4921 
   4922 
   4923 # Is this gcc?
   4924  if test "x$GCC" = xyes -a "x$enable_fuzzing" != xyes; then
   4925   IS_GCC_TRUE=
   4926   IS_GCC_FALSE='#'
   4927 else
   4928   IS_GCC_TRUE='#'
   4929   IS_GCC_FALSE=
   4930 fi
   4931 
   4932 
   4933 # Is this Sun CC?
   4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4935 /* end confdefs.h.  */
   4936 
   4937 		#ifdef __SUNPRO_C
   4938 		yes
   4939 		#endif
   4940 
   4941 _ACEOF
   4942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4943   $EGREP "yes" >/dev/null 2>&1; then :
   4944   found_suncc=yes
   4945 else
   4946   found_suncc=no
   4947 
   4948 fi
   4949 rm -f conftest*
   4950 
   4951  if test "x$found_suncc" = xyes; then
   4952   IS_SUNCC_TRUE=
   4953   IS_SUNCC_FALSE='#'
   4954 else
   4955   IS_SUNCC_TRUE='#'
   4956   IS_SUNCC_FALSE=
   4957 fi
   4958 
   4959 
   4960 # Check for various headers. Alternatives included from compat.h.
   4961 for ac_header in  \
   4962 	bitstring.h \
   4963 	dirent.h \
   4964 	fcntl.h \
   4965 	inttypes.h \
   4966 	libproc.h \
   4967 	libutil.h \
   4968 	ndir.h \
   4969 	paths.h \
   4970 	pty.h \
   4971 	stdint.h \
   4972 	sys/dir.h \
   4973 	sys/ndir.h \
   4974 	sys/tree.h \
   4975 	util.h \
   4976 
   4977 do :
   4978   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4981   cat >>confdefs.h <<_ACEOF
   4982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4983 _ACEOF
   4984 
   4985 fi
   4986 
   4987 done
   4988 
   4989 
   4990 # Look for sys_signame.
   4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sys_signame" >&5
   4992 $as_echo_n "checking for library containing sys_signame... " >&6; }
   4993 if ${ac_cv_search_sys_signame+:} false; then :
   4994   $as_echo_n "(cached) " >&6
   4995 else
   4996   ac_func_search_save_LIBS=$LIBS
   4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4998 /* end confdefs.h.  */
   4999 
   5000 /* Override any GCC internal prototype to avoid an error.
   5001    Use char because int might match the return type of a GCC
   5002    builtin and then its argument prototype would still apply.  */
   5003 #ifdef __cplusplus
   5004 extern "C"
   5005 #endif
   5006 char sys_signame ();
   5007 int
   5008 main ()
   5009 {
   5010 return sys_signame ();
   5011   ;
   5012   return 0;
   5013 }
   5014 _ACEOF
   5015 for ac_lib in '' ; do
   5016   if test -z "$ac_lib"; then
   5017     ac_res="none required"
   5018   else
   5019     ac_res=-l$ac_lib
   5020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5021   fi
   5022   if ac_fn_c_try_link "$LINENO"; then :
   5023   ac_cv_search_sys_signame=$ac_res
   5024 fi
   5025 rm -f core conftest.err conftest.$ac_objext \
   5026     conftest$ac_exeext
   5027   if ${ac_cv_search_sys_signame+:} false; then :
   5028   break
   5029 fi
   5030 done
   5031 if ${ac_cv_search_sys_signame+:} false; then :
   5032 
   5033 else
   5034   ac_cv_search_sys_signame=no
   5035 fi
   5036 rm conftest.$ac_ext
   5037 LIBS=$ac_func_search_save_LIBS
   5038 fi
   5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sys_signame" >&5
   5040 $as_echo "$ac_cv_search_sys_signame" >&6; }
   5041 ac_res=$ac_cv_search_sys_signame
   5042 if test "$ac_res" != no; then :
   5043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5044   $as_echo "#define HAVE_SYS_SIGNAME 1" >>confdefs.h
   5045 
   5046 fi
   5047 
   5048 
   5049 # Look for fmod.
   5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
   5051 $as_echo_n "checking for fmod in -lm... " >&6; }
   5052 if ${ac_cv_lib_m_fmod+:} false; then :
   5053   $as_echo_n "(cached) " >&6
   5054 else
   5055   ac_check_lib_save_LIBS=$LIBS
   5056 LIBS="-lm  $LIBS"
   5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5058 /* end confdefs.h.  */
   5059 
   5060 /* Override any GCC internal prototype to avoid an error.
   5061    Use char because int might match the return type of a GCC
   5062    builtin and then its argument prototype would still apply.  */
   5063 #ifdef __cplusplus
   5064 extern "C"
   5065 #endif
   5066 char fmod ();
   5067 int
   5068 main ()
   5069 {
   5070 return fmod ();
   5071   ;
   5072   return 0;
   5073 }
   5074 _ACEOF
   5075 if ac_fn_c_try_link "$LINENO"; then :
   5076   ac_cv_lib_m_fmod=yes
   5077 else
   5078   ac_cv_lib_m_fmod=no
   5079 fi
   5080 rm -f core conftest.err conftest.$ac_objext \
   5081     conftest$ac_exeext conftest.$ac_ext
   5082 LIBS=$ac_check_lib_save_LIBS
   5083 fi
   5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
   5085 $as_echo "$ac_cv_lib_m_fmod" >&6; }
   5086 if test "x$ac_cv_lib_m_fmod" = xyes; then :
   5087   cat >>confdefs.h <<_ACEOF
   5088 #define HAVE_LIBM 1
   5089 _ACEOF
   5090 
   5091   LIBS="-lm $LIBS"
   5092 
   5093 fi
   5094 
   5095 
   5096 # Look for library needed for flock.
   5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing flock" >&5
   5098 $as_echo_n "checking for library containing flock... " >&6; }
   5099 if ${ac_cv_search_flock+:} false; then :
   5100   $as_echo_n "(cached) " >&6
   5101 else
   5102   ac_func_search_save_LIBS=$LIBS
   5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5104 /* end confdefs.h.  */
   5105 
   5106 /* Override any GCC internal prototype to avoid an error.
   5107    Use char because int might match the return type of a GCC
   5108    builtin and then its argument prototype would still apply.  */
   5109 #ifdef __cplusplus
   5110 extern "C"
   5111 #endif
   5112 char flock ();
   5113 int
   5114 main ()
   5115 {
   5116 return flock ();
   5117   ;
   5118   return 0;
   5119 }
   5120 _ACEOF
   5121 for ac_lib in '' bsd; do
   5122   if test -z "$ac_lib"; then
   5123     ac_res="none required"
   5124   else
   5125     ac_res=-l$ac_lib
   5126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5127   fi
   5128   if ac_fn_c_try_link "$LINENO"; then :
   5129   ac_cv_search_flock=$ac_res
   5130 fi
   5131 rm -f core conftest.err conftest.$ac_objext \
   5132     conftest$ac_exeext
   5133   if ${ac_cv_search_flock+:} false; then :
   5134   break
   5135 fi
   5136 done
   5137 if ${ac_cv_search_flock+:} false; then :
   5138 
   5139 else
   5140   ac_cv_search_flock=no
   5141 fi
   5142 rm conftest.$ac_ext
   5143 LIBS=$ac_func_search_save_LIBS
   5144 fi
   5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_flock" >&5
   5146 $as_echo "$ac_cv_search_flock" >&6; }
   5147 ac_res=$ac_cv_search_flock
   5148 if test "$ac_res" != no; then :
   5149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5150 
   5151 fi
   5152 
   5153 
   5154 # Check for functions that are replaced or omitted.
   5155 for ac_func in  \
   5156 	dirfd \
   5157 	flock \
   5158 	prctl \
   5159 	proc_pidinfo \
   5160 	sysconf
   5161 
   5162 do :
   5163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   5165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   5166   cat >>confdefs.h <<_ACEOF
   5167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5168 _ACEOF
   5169 
   5170 fi
   5171 done
   5172 
   5173 
   5174 # Check for functions with a compatibility implementation.
   5175 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
   5176 if test "x$ac_cv_func_asprintf" = xyes; then :
   5177   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
   5178 
   5179 else
   5180   case " $LIBOBJS " in
   5181   *" asprintf.$ac_objext "* ) ;;
   5182   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   5183  ;;
   5184 esac
   5185 
   5186 fi
   5187 
   5188 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
   5189 if test "x$ac_cv_func_cfmakeraw" = xyes; then :
   5190   $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
   5191 
   5192 else
   5193   case " $LIBOBJS " in
   5194   *" cfmakeraw.$ac_objext "* ) ;;
   5195   *) LIBOBJS="$LIBOBJS cfmakeraw.$ac_objext"
   5196  ;;
   5197 esac
   5198 
   5199 fi
   5200 
   5201 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   5202 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   5203   $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   5204 
   5205 else
   5206   case " $LIBOBJS " in
   5207   *" clock_gettime.$ac_objext "* ) ;;
   5208   *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
   5209  ;;
   5210 esac
   5211 
   5212 fi
   5213 
   5214 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
   5215 if test "x$ac_cv_func_closefrom" = xyes; then :
   5216   $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
   5217 
   5218 else
   5219   case " $LIBOBJS " in
   5220   *" closefrom.$ac_objext "* ) ;;
   5221   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
   5222  ;;
   5223 esac
   5224 
   5225 fi
   5226 
   5227 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   5228 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
   5229   $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   5230 
   5231 else
   5232   case " $LIBOBJS " in
   5233   *" explicit_bzero.$ac_objext "* ) ;;
   5234   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   5235  ;;
   5236 esac
   5237 
   5238 fi
   5239 
   5240 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
   5241 if test "x$ac_cv_func_fgetln" = xyes; then :
   5242   $as_echo "#define HAVE_FGETLN 1" >>confdefs.h
   5243 
   5244 else
   5245   case " $LIBOBJS " in
   5246   *" fgetln.$ac_objext "* ) ;;
   5247   *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
   5248  ;;
   5249 esac
   5250 
   5251 fi
   5252 
   5253 ac_fn_c_check_func "$LINENO" "freezero" "ac_cv_func_freezero"
   5254 if test "x$ac_cv_func_freezero" = xyes; then :
   5255   $as_echo "#define HAVE_FREEZERO 1" >>confdefs.h
   5256 
   5257 else
   5258   case " $LIBOBJS " in
   5259   *" freezero.$ac_objext "* ) ;;
   5260   *) LIBOBJS="$LIBOBJS freezero.$ac_objext"
   5261  ;;
   5262 esac
   5263 
   5264 fi
   5265 
   5266 ac_fn_c_check_func "$LINENO" "getdtablecount" "ac_cv_func_getdtablecount"
   5267 if test "x$ac_cv_func_getdtablecount" = xyes; then :
   5268   $as_echo "#define HAVE_GETDTABLECOUNT 1" >>confdefs.h
   5269 
   5270 else
   5271   case " $LIBOBJS " in
   5272   *" getdtablecount.$ac_objext "* ) ;;
   5273   *) LIBOBJS="$LIBOBJS getdtablecount.$ac_objext"
   5274  ;;
   5275 esac
   5276 
   5277 fi
   5278 
   5279 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
   5280 if test "x$ac_cv_func_getdtablesize" = xyes; then :
   5281   $as_echo "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
   5282 
   5283 else
   5284   case " $LIBOBJS " in
   5285   *" getdtablesize.$ac_objext "* ) ;;
   5286   *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
   5287  ;;
   5288 esac
   5289 
   5290 fi
   5291 
   5292 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
   5293 if test "x$ac_cv_func_getline" = xyes; then :
   5294   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
   5295 
   5296 else
   5297   case " $LIBOBJS " in
   5298   *" getline.$ac_objext "* ) ;;
   5299   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
   5300  ;;
   5301 esac
   5302 
   5303 fi
   5304 
   5305 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
   5306 if test "x$ac_cv_func_getprogname" = xyes; then :
   5307   $as_echo "#define HAVE_GETPROGNAME 1" >>confdefs.h
   5308 
   5309 else
   5310   case " $LIBOBJS " in
   5311   *" getprogname.$ac_objext "* ) ;;
   5312   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
   5313  ;;
   5314 esac
   5315 
   5316 fi
   5317 
   5318 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
   5319 if test "x$ac_cv_func_memmem" = xyes; then :
   5320   $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
   5321 
   5322 else
   5323   case " $LIBOBJS " in
   5324   *" memmem.$ac_objext "* ) ;;
   5325   *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
   5326  ;;
   5327 esac
   5328 
   5329 fi
   5330 
   5331 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
   5332 if test "x$ac_cv_func_setenv" = xyes; then :
   5333   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
   5334 
   5335 else
   5336   case " $LIBOBJS " in
   5337   *" setenv.$ac_objext "* ) ;;
   5338   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
   5339  ;;
   5340 esac
   5341 
   5342 fi
   5343 
   5344 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
   5345 if test "x$ac_cv_func_setproctitle" = xyes; then :
   5346   $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
   5347 
   5348 else
   5349   case " $LIBOBJS " in
   5350   *" setproctitle.$ac_objext "* ) ;;
   5351   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
   5352  ;;
   5353 esac
   5354 
   5355 fi
   5356 
   5357 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
   5358 if test "x$ac_cv_func_strcasestr" = xyes; then :
   5359   $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
   5360 
   5361 else
   5362   case " $LIBOBJS " in
   5363   *" strcasestr.$ac_objext "* ) ;;
   5364   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
   5365  ;;
   5366 esac
   5367 
   5368 fi
   5369 
   5370 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   5371 if test "x$ac_cv_func_strlcat" = xyes; then :
   5372   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
   5373 
   5374 else
   5375   case " $LIBOBJS " in
   5376   *" strlcat.$ac_objext "* ) ;;
   5377   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   5378  ;;
   5379 esac
   5380 
   5381 fi
   5382 
   5383 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   5384 if test "x$ac_cv_func_strlcpy" = xyes; then :
   5385   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
   5386 
   5387 else
   5388   case " $LIBOBJS " in
   5389   *" strlcpy.$ac_objext "* ) ;;
   5390   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   5391  ;;
   5392 esac
   5393 
   5394 fi
   5395 
   5396 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
   5397 if test "x$ac_cv_func_strndup" = xyes; then :
   5398   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
   5399 
   5400 else
   5401   case " $LIBOBJS " in
   5402   *" strndup.$ac_objext "* ) ;;
   5403   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
   5404  ;;
   5405 esac
   5406 
   5407 fi
   5408 
   5409 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   5410 if test "x$ac_cv_func_strsep" = xyes; then :
   5411   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
   5412 
   5413 else
   5414   case " $LIBOBJS " in
   5415   *" strsep.$ac_objext "* ) ;;
   5416   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   5417  ;;
   5418 esac
   5419 
   5420 fi
   5421 
   5422 
   5423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
   5424 $as_echo_n "checking for working strnlen... " >&6; }
   5425 if ${ac_cv_func_strnlen_working+:} false; then :
   5426   $as_echo_n "(cached) " >&6
   5427 else
   5428   if test "$cross_compiling" = yes; then :
   5429   # Guess no on AIX systems, yes otherwise.
   5430 		case "$host_os" in
   5431 		  aix*) ac_cv_func_strnlen_working=no;;
   5432 		  *)    ac_cv_func_strnlen_working=yes;;
   5433 		esac
   5434 else
   5435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5436 /* end confdefs.h.  */
   5437 $ac_includes_default
   5438 int
   5439 main ()
   5440 {
   5441 
   5442 #define S "foobar"
   5443 #define S_LEN (sizeof S - 1)
   5444 
   5445   /* At least one implementation is buggy: that of AIX 4.3 would
   5446      give strnlen (S, 1) == 3.  */
   5447 
   5448   int i;
   5449   for (i = 0; i < S_LEN + 1; ++i)
   5450     {
   5451       int expected = i <= S_LEN ? i : S_LEN;
   5452       if (strnlen (S, i) != expected)
   5453 	return 1;
   5454     }
   5455   return 0;
   5456 
   5457   ;
   5458   return 0;
   5459 }
   5460 _ACEOF
   5461 if ac_fn_c_try_run "$LINENO"; then :
   5462   ac_cv_func_strnlen_working=yes
   5463 else
   5464   ac_cv_func_strnlen_working=no
   5465 fi
   5466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5467   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5468 fi
   5469 
   5470 fi
   5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
   5472 $as_echo "$ac_cv_func_strnlen_working" >&6; }
   5473 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
   5474   *" strnlen.$ac_objext "* ) ;;
   5475   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
   5476  ;;
   5477 esac
   5478 
   5479 
   5480 
   5481 # Check if strtonum works.
   5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtonum" >&5
   5483 $as_echo_n "checking for working strtonum... " >&6; }
   5484 if test "$cross_compiling" = yes; then :
   5485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5487 as_fn_error $? "cannot run test program while cross compiling
   5488 See \`config.log' for more details" "$LINENO" 5; }
   5489 else
   5490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5491 /* end confdefs.h.  */
   5492 #include <stdlib.h>
   5493 int
   5494 main ()
   5495 {
   5496 return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);
   5497 
   5498   ;
   5499   return 0;
   5500 }
   5501 _ACEOF
   5502 if ac_fn_c_try_run "$LINENO"; then :
   5503   $as_echo "#define HAVE_STRTONUM 1" >>confdefs.h
   5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5505 $as_echo "yes" >&6; }
   5506 else
   5507   case " $LIBOBJS " in
   5508   *" strtonum.$ac_objext "* ) ;;
   5509   *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
   5510  ;;
   5511 esac
   5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5513 $as_echo "no" >&6; }
   5514 
   5515 fi
   5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5517   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5518 fi
   5519 
   5520 
   5521 # Clang sanitizers wrap reallocarray even if it isn't available on the target
   5522 # system. When compiled it always returns NULL and crashes the program. To
   5523 # detect this we need a more complicated test.
   5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working reallocarray" >&5
   5525 $as_echo_n "checking for working reallocarray... " >&6; }
   5526 if test "$cross_compiling" = yes; then :
   5527   case " $LIBOBJS " in
   5528   *" reallocarray.$ac_objext "* ) ;;
   5529   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   5530  ;;
   5531 esac
   5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5533 $as_echo "no" >&6; }
   5534 
   5535 else
   5536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5537 /* end confdefs.h.  */
   5538 #include <stdlib.h>
   5539 int
   5540 main ()
   5541 {
   5542 return (reallocarray(NULL, 1, 1) == NULL);
   5543 
   5544   ;
   5545   return 0;
   5546 }
   5547 _ACEOF
   5548 if ac_fn_c_try_run "$LINENO"; then :
   5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5550 $as_echo "yes" >&6; }
   5551 else
   5552   case " $LIBOBJS " in
   5553   *" reallocarray.$ac_objext "* ) ;;
   5554   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   5555  ;;
   5556 esac
   5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5558 $as_echo "no" >&6; }
   5559 fi
   5560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5561   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5562 fi
   5563 
   5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working recallocarray" >&5
   5565 $as_echo_n "checking for working recallocarray... " >&6; }
   5566 if test "$cross_compiling" = yes; then :
   5567   case " $LIBOBJS " in
   5568   *" recallocarray.$ac_objext "* ) ;;
   5569   *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
   5570  ;;
   5571 esac
   5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5573 $as_echo "no" >&6; }
   5574 
   5575 else
   5576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5577 /* end confdefs.h.  */
   5578 #include <stdlib.h>
   5579 int
   5580 main ()
   5581 {
   5582 return (recallocarray(NULL, 1, 1, 1) == NULL);
   5583 
   5584   ;
   5585   return 0;
   5586 }
   5587 _ACEOF
   5588 if ac_fn_c_try_run "$LINENO"; then :
   5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5590 $as_echo "yes" >&6; }
   5591 else
   5592   case " $LIBOBJS " in
   5593   *" recallocarray.$ac_objext "* ) ;;
   5594   *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
   5595  ;;
   5596 esac
   5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5598 $as_echo "no" >&6; }
   5599 fi
   5600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5601   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5602 fi
   5603 
   5604 
   5605 # Look for clock_gettime. Must come before event_init.
   5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   5607 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   5608 if ${ac_cv_search_clock_gettime+:} false; then :
   5609   $as_echo_n "(cached) " >&6
   5610 else
   5611   ac_func_search_save_LIBS=$LIBS
   5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5613 /* end confdefs.h.  */
   5614 
   5615 /* Override any GCC internal prototype to avoid an error.
   5616    Use char because int might match the return type of a GCC
   5617    builtin and then its argument prototype would still apply.  */
   5618 #ifdef __cplusplus
   5619 extern "C"
   5620 #endif
   5621 char clock_gettime ();
   5622 int
   5623 main ()
   5624 {
   5625 return clock_gettime ();
   5626   ;
   5627   return 0;
   5628 }
   5629 _ACEOF
   5630 for ac_lib in '' rt; do
   5631   if test -z "$ac_lib"; then
   5632     ac_res="none required"
   5633   else
   5634     ac_res=-l$ac_lib
   5635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5636   fi
   5637   if ac_fn_c_try_link "$LINENO"; then :
   5638   ac_cv_search_clock_gettime=$ac_res
   5639 fi
   5640 rm -f core conftest.err conftest.$ac_objext \
   5641     conftest$ac_exeext
   5642   if ${ac_cv_search_clock_gettime+:} false; then :
   5643   break
   5644 fi
   5645 done
   5646 if ${ac_cv_search_clock_gettime+:} false; then :
   5647 
   5648 else
   5649   ac_cv_search_clock_gettime=no
   5650 fi
   5651 rm conftest.$ac_ext
   5652 LIBS=$ac_func_search_save_LIBS
   5653 fi
   5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   5655 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   5656 ac_res=$ac_cv_search_clock_gettime
   5657 if test "$ac_res" != no; then :
   5658   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5659 
   5660 fi
   5661 
   5662 
   5663 # Always use our getopt because 1) glibc's doesn't enforce argument order 2)
   5664 # musl does not set optarg to NULL for flags without arguments (although it is
   5665 # not required to, but it is helpful) 3) there are probably other weird
   5666 # implementations.
   5667 case " $LIBOBJS " in
   5668   *" getopt.$ac_objext "* ) ;;
   5669   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
   5670  ;;
   5671 esac
   5672 
   5673 
   5674 # Look for libevent. Try libevent_core or libevent with pkg-config first then
   5675 # look for the library.
   5676 
   5677 pkg_failed=no
   5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent_core >= 2" >&5
   5679 $as_echo_n "checking for libevent_core >= 2... " >&6; }
   5680 
   5681 if test -n "$LIBEVENT_CORE_CFLAGS"; then
   5682     pkg_cv_LIBEVENT_CORE_CFLAGS="$LIBEVENT_CORE_CFLAGS"
   5683  elif test -n "$PKG_CONFIG"; then
   5684     if test -n "$PKG_CONFIG" && \
   5685     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_core >= 2\""; } >&5
   5686   ($PKG_CONFIG --exists --print-errors "libevent_core >= 2") 2>&5
   5687   ac_status=$?
   5688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5689   test $ac_status = 0; }; then
   5690   pkg_cv_LIBEVENT_CORE_CFLAGS=`$PKG_CONFIG --cflags "libevent_core >= 2" 2>/dev/null`
   5691 		      test "x$?" != "x0" && pkg_failed=yes
   5692 else
   5693   pkg_failed=yes
   5694 fi
   5695  else
   5696     pkg_failed=untried
   5697 fi
   5698 if test -n "$LIBEVENT_CORE_LIBS"; then
   5699     pkg_cv_LIBEVENT_CORE_LIBS="$LIBEVENT_CORE_LIBS"
   5700  elif test -n "$PKG_CONFIG"; then
   5701     if test -n "$PKG_CONFIG" && \
   5702     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_core >= 2\""; } >&5
   5703   ($PKG_CONFIG --exists --print-errors "libevent_core >= 2") 2>&5
   5704   ac_status=$?
   5705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5706   test $ac_status = 0; }; then
   5707   pkg_cv_LIBEVENT_CORE_LIBS=`$PKG_CONFIG --libs "libevent_core >= 2" 2>/dev/null`
   5708 		      test "x$?" != "x0" && pkg_failed=yes
   5709 else
   5710   pkg_failed=yes
   5711 fi
   5712  else
   5713     pkg_failed=untried
   5714 fi
   5715 
   5716 
   5717 
   5718 if test $pkg_failed = yes; then
   5719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5720 $as_echo "no" >&6; }
   5721 
   5722 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5723         _pkg_short_errors_supported=yes
   5724 else
   5725         _pkg_short_errors_supported=no
   5726 fi
   5727         if test $_pkg_short_errors_supported = yes; then
   5728 	        LIBEVENT_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_core >= 2" 2>&1`
   5729         else
   5730 	        LIBEVENT_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_core >= 2" 2>&1`
   5731         fi
   5732 	# Put the nasty error message in config.log where it belongs
   5733 	echo "$LIBEVENT_CORE_PKG_ERRORS" >&5
   5734 
   5735 	found_libevent=no
   5736 
   5737 elif test $pkg_failed = untried; then
   5738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5739 $as_echo "no" >&6; }
   5740 	found_libevent=no
   5741 
   5742 else
   5743 	LIBEVENT_CORE_CFLAGS=$pkg_cv_LIBEVENT_CORE_CFLAGS
   5744 	LIBEVENT_CORE_LIBS=$pkg_cv_LIBEVENT_CORE_LIBS
   5745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5746 $as_echo "yes" >&6; }
   5747 
   5748 		AM_CPPFLAGS="$LIBEVENT_CORE_CFLAGS $AM_CPPFLAGS"
   5749 		CPPFLAGS="$AM_CPPFLAGS $SAVED_CPPFLAGS"
   5750 		LIBS="$LIBEVENT_CORE_LIBS $LIBS"
   5751 		found_libevent=yes
   5752 
   5753 fi
   5754 if test x$found_libevent = xno; then
   5755 
   5756 pkg_failed=no
   5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent >= 2" >&5
   5758 $as_echo_n "checking for libevent >= 2... " >&6; }
   5759 
   5760 if test -n "$LIBEVENT_CFLAGS"; then
   5761     pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
   5762  elif test -n "$PKG_CONFIG"; then
   5763     if test -n "$PKG_CONFIG" && \
   5764     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2\""; } >&5
   5765   ($PKG_CONFIG --exists --print-errors "libevent >= 2") 2>&5
   5766   ac_status=$?
   5767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5768   test $ac_status = 0; }; then
   5769   pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= 2" 2>/dev/null`
   5770 		      test "x$?" != "x0" && pkg_failed=yes
   5771 else
   5772   pkg_failed=yes
   5773 fi
   5774  else
   5775     pkg_failed=untried
   5776 fi
   5777 if test -n "$LIBEVENT_LIBS"; then
   5778     pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
   5779  elif test -n "$PKG_CONFIG"; then
   5780     if test -n "$PKG_CONFIG" && \
   5781     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2\""; } >&5
   5782   ($PKG_CONFIG --exists --print-errors "libevent >= 2") 2>&5
   5783   ac_status=$?
   5784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5785   test $ac_status = 0; }; then
   5786   pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= 2" 2>/dev/null`
   5787 		      test "x$?" != "x0" && pkg_failed=yes
   5788 else
   5789   pkg_failed=yes
   5790 fi
   5791  else
   5792     pkg_failed=untried
   5793 fi
   5794 
   5795 
   5796 
   5797 if test $pkg_failed = yes; then
   5798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5799 $as_echo "no" >&6; }
   5800 
   5801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5802         _pkg_short_errors_supported=yes
   5803 else
   5804         _pkg_short_errors_supported=no
   5805 fi
   5806         if test $_pkg_short_errors_supported = yes; then
   5807 	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent >= 2" 2>&1`
   5808         else
   5809 	        LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent >= 2" 2>&1`
   5810         fi
   5811 	# Put the nasty error message in config.log where it belongs
   5812 	echo "$LIBEVENT_PKG_ERRORS" >&5
   5813 
   5814 	found_libevent=no
   5815 
   5816 elif test $pkg_failed = untried; then
   5817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5818 $as_echo "no" >&6; }
   5819 	found_libevent=no
   5820 
   5821 else
   5822 	LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
   5823 	LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
   5824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5825 $as_echo "yes" >&6; }
   5826 
   5827 			AM_CPPFLAGS="$LIBEVENT_CFLAGS $AM_CPPFLAGS"
   5828 			CPPFLAGS="$AM_CPPFLAGS $SAVED_CPPFLAGS"
   5829 			LIBS="$LIBEVENT_LIBS $LIBS"
   5830 			found_libevent=yes
   5831 
   5832 fi
   5833 fi
   5834 if test x$found_libevent = xno; then
   5835 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_init" >&5
   5836 $as_echo_n "checking for library containing event_init... " >&6; }
   5837 if ${ac_cv_search_event_init+:} false; then :
   5838   $as_echo_n "(cached) " >&6
   5839 else
   5840   ac_func_search_save_LIBS=$LIBS
   5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5842 /* end confdefs.h.  */
   5843 
   5844 /* Override any GCC internal prototype to avoid an error.
   5845    Use char because int might match the return type of a GCC
   5846    builtin and then its argument prototype would still apply.  */
   5847 #ifdef __cplusplus
   5848 extern "C"
   5849 #endif
   5850 char event_init ();
   5851 int
   5852 main ()
   5853 {
   5854 return event_init ();
   5855   ;
   5856   return 0;
   5857 }
   5858 _ACEOF
   5859 for ac_lib in '' event_core event event-1.4; do
   5860   if test -z "$ac_lib"; then
   5861     ac_res="none required"
   5862   else
   5863     ac_res=-l$ac_lib
   5864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5865   fi
   5866   if ac_fn_c_try_link "$LINENO"; then :
   5867   ac_cv_search_event_init=$ac_res
   5868 fi
   5869 rm -f core conftest.err conftest.$ac_objext \
   5870     conftest$ac_exeext
   5871   if ${ac_cv_search_event_init+:} false; then :
   5872   break
   5873 fi
   5874 done
   5875 if ${ac_cv_search_event_init+:} false; then :
   5876 
   5877 else
   5878   ac_cv_search_event_init=no
   5879 fi
   5880 rm conftest.$ac_ext
   5881 LIBS=$ac_func_search_save_LIBS
   5882 fi
   5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_init" >&5
   5884 $as_echo "$ac_cv_search_event_init" >&6; }
   5885 ac_res=$ac_cv_search_event_init
   5886 if test "$ac_res" != no; then :
   5887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5888   found_libevent=yes
   5889 else
   5890   found_libevent=no
   5891 
   5892 fi
   5893 
   5894 fi
   5895 ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default"
   5896 if test "x$ac_cv_header_event2_event_h" = xyes; then :
   5897   $as_echo "#define HAVE_EVENT2_EVENT_H 1" >>confdefs.h
   5898 
   5899 else
   5900 
   5901 		ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
   5902 if test "x$ac_cv_header_event_h" = xyes; then :
   5903   $as_echo "#define HAVE_EVENT_H 1" >>confdefs.h
   5904 
   5905 else
   5906   found_libevent=no
   5907 
   5908 fi
   5909 
   5910 
   5911 
   5912 
   5913 fi
   5914 
   5915 
   5916 if test "x$found_libevent" = xno; then
   5917 	as_fn_error $? "\"libevent not found\"" "$LINENO" 5
   5918 fi
   5919 
   5920 # Look for ncurses or curses. Try pkg-config first then directly for the
   5921 # library.
   5922 
   5923 pkg_failed=no
   5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tinfo" >&5
   5925 $as_echo_n "checking for tinfo... " >&6; }
   5926 
   5927 if test -n "$LIBTINFO_CFLAGS"; then
   5928     pkg_cv_LIBTINFO_CFLAGS="$LIBTINFO_CFLAGS"
   5929  elif test -n "$PKG_CONFIG"; then
   5930     if test -n "$PKG_CONFIG" && \
   5931     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
   5932   ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
   5933   ac_status=$?
   5934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5935   test $ac_status = 0; }; then
   5936   pkg_cv_LIBTINFO_CFLAGS=`$PKG_CONFIG --cflags "tinfo" 2>/dev/null`
   5937 		      test "x$?" != "x0" && pkg_failed=yes
   5938 else
   5939   pkg_failed=yes
   5940 fi
   5941  else
   5942     pkg_failed=untried
   5943 fi
   5944 if test -n "$LIBTINFO_LIBS"; then
   5945     pkg_cv_LIBTINFO_LIBS="$LIBTINFO_LIBS"
   5946  elif test -n "$PKG_CONFIG"; then
   5947     if test -n "$PKG_CONFIG" && \
   5948     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
   5949   ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
   5950   ac_status=$?
   5951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5952   test $ac_status = 0; }; then
   5953   pkg_cv_LIBTINFO_LIBS=`$PKG_CONFIG --libs "tinfo" 2>/dev/null`
   5954 		      test "x$?" != "x0" && pkg_failed=yes
   5955 else
   5956   pkg_failed=yes
   5957 fi
   5958  else
   5959     pkg_failed=untried
   5960 fi
   5961 
   5962 
   5963 
   5964 if test $pkg_failed = yes; then
   5965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5966 $as_echo "no" >&6; }
   5967 
   5968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   5969         _pkg_short_errors_supported=yes
   5970 else
   5971         _pkg_short_errors_supported=no
   5972 fi
   5973         if test $_pkg_short_errors_supported = yes; then
   5974 	        LIBTINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tinfo" 2>&1`
   5975         else
   5976 	        LIBTINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tinfo" 2>&1`
   5977         fi
   5978 	# Put the nasty error message in config.log where it belongs
   5979 	echo "$LIBTINFO_PKG_ERRORS" >&5
   5980 
   5981 	found_ncurses=no
   5982 
   5983 elif test $pkg_failed = untried; then
   5984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5985 $as_echo "no" >&6; }
   5986 	found_ncurses=no
   5987 
   5988 else
   5989 	LIBTINFO_CFLAGS=$pkg_cv_LIBTINFO_CFLAGS
   5990 	LIBTINFO_LIBS=$pkg_cv_LIBTINFO_LIBS
   5991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5992 $as_echo "yes" >&6; }
   5993 
   5994 		AM_CPPFLAGS="$LIBTINFO_CFLAGS $AM_CPPFLAGS"
   5995 		CPPFLAGS="$LIBTINFO_CFLAGS $SAVED_CPPFLAGS"
   5996 		LIBS="$LIBTINFO_LIBS $LIBS"
   5997 		found_ncurses=yes
   5998 
   5999 fi
   6000 if test "x$found_ncurses" = xno; then
   6001 
   6002 pkg_failed=no
   6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
   6004 $as_echo_n "checking for ncurses... " >&6; }
   6005 
   6006 if test -n "$LIBNCURSES_CFLAGS"; then
   6007     pkg_cv_LIBNCURSES_CFLAGS="$LIBNCURSES_CFLAGS"
   6008  elif test -n "$PKG_CONFIG"; then
   6009     if test -n "$PKG_CONFIG" && \
   6010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
   6011   ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
   6012   ac_status=$?
   6013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6014   test $ac_status = 0; }; then
   6015   pkg_cv_LIBNCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
   6016 		      test "x$?" != "x0" && pkg_failed=yes
   6017 else
   6018   pkg_failed=yes
   6019 fi
   6020  else
   6021     pkg_failed=untried
   6022 fi
   6023 if test -n "$LIBNCURSES_LIBS"; then
   6024     pkg_cv_LIBNCURSES_LIBS="$LIBNCURSES_LIBS"
   6025  elif test -n "$PKG_CONFIG"; then
   6026     if test -n "$PKG_CONFIG" && \
   6027     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
   6028   ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
   6029   ac_status=$?
   6030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6031   test $ac_status = 0; }; then
   6032   pkg_cv_LIBNCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
   6033 		      test "x$?" != "x0" && pkg_failed=yes
   6034 else
   6035   pkg_failed=yes
   6036 fi
   6037  else
   6038     pkg_failed=untried
   6039 fi
   6040 
   6041 
   6042 
   6043 if test $pkg_failed = yes; then
   6044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6045 $as_echo "no" >&6; }
   6046 
   6047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   6048         _pkg_short_errors_supported=yes
   6049 else
   6050         _pkg_short_errors_supported=no
   6051 fi
   6052         if test $_pkg_short_errors_supported = yes; then
   6053 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
   6054         else
   6055 	        LIBNCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
   6056         fi
   6057 	# Put the nasty error message in config.log where it belongs
   6058 	echo "$LIBNCURSES_PKG_ERRORS" >&5
   6059 
   6060 	found_ncurses=no
   6061 
   6062 elif test $pkg_failed = untried; then
   6063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6064 $as_echo "no" >&6; }
   6065 	found_ncurses=no
   6066 
   6067 else
   6068 	LIBNCURSES_CFLAGS=$pkg_cv_LIBNCURSES_CFLAGS
   6069 	LIBNCURSES_LIBS=$pkg_cv_LIBNCURSES_LIBS
   6070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6071 $as_echo "yes" >&6; }
   6072 
   6073 			AM_CPPFLAGS="$LIBNCURSES_CFLAGS $AM_CPPFLAGS"
   6074 			CPPFLAGS="$LIBNCURSES_CFLAGS $SAVED_CPPFLAGS"
   6075 			LIBS="$LIBNCURSES_LIBS $LIBS"
   6076 			found_ncurses=yes
   6077 
   6078 fi
   6079 fi
   6080 if test "x$found_ncurses" = xno; then
   6081 
   6082 pkg_failed=no
   6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
   6084 $as_echo_n "checking for ncursesw... " >&6; }
   6085 
   6086 if test -n "$LIBNCURSESW_CFLAGS"; then
   6087     pkg_cv_LIBNCURSESW_CFLAGS="$LIBNCURSESW_CFLAGS"
   6088  elif test -n "$PKG_CONFIG"; then
   6089     if test -n "$PKG_CONFIG" && \
   6090     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
   6091   ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
   6092   ac_status=$?
   6093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6094   test $ac_status = 0; }; then
   6095   pkg_cv_LIBNCURSESW_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
   6096 		      test "x$?" != "x0" && pkg_failed=yes
   6097 else
   6098   pkg_failed=yes
   6099 fi
   6100  else
   6101     pkg_failed=untried
   6102 fi
   6103 if test -n "$LIBNCURSESW_LIBS"; then
   6104     pkg_cv_LIBNCURSESW_LIBS="$LIBNCURSESW_LIBS"
   6105  elif test -n "$PKG_CONFIG"; then
   6106     if test -n "$PKG_CONFIG" && \
   6107     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
   6108   ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
   6109   ac_status=$?
   6110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6111   test $ac_status = 0; }; then
   6112   pkg_cv_LIBNCURSESW_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
   6113 		      test "x$?" != "x0" && pkg_failed=yes
   6114 else
   6115   pkg_failed=yes
   6116 fi
   6117  else
   6118     pkg_failed=untried
   6119 fi
   6120 
   6121 
   6122 
   6123 if test $pkg_failed = yes; then
   6124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6125 $as_echo "no" >&6; }
   6126 
   6127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   6128         _pkg_short_errors_supported=yes
   6129 else
   6130         _pkg_short_errors_supported=no
   6131 fi
   6132         if test $_pkg_short_errors_supported = yes; then
   6133 	        LIBNCURSESW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
   6134         else
   6135 	        LIBNCURSESW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
   6136         fi
   6137 	# Put the nasty error message in config.log where it belongs
   6138 	echo "$LIBNCURSESW_PKG_ERRORS" >&5
   6139 
   6140 	found_ncurses=no
   6141 
   6142 elif test $pkg_failed = untried; then
   6143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6144 $as_echo "no" >&6; }
   6145 	found_ncurses=no
   6146 
   6147 else
   6148 	LIBNCURSESW_CFLAGS=$pkg_cv_LIBNCURSESW_CFLAGS
   6149 	LIBNCURSESW_LIBS=$pkg_cv_LIBNCURSESW_LIBS
   6150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6151 $as_echo "yes" >&6; }
   6152 
   6153 			AM_CPPFLAGS="$LIBNCURSESW_CFLAGS $AM_CPPFLAGS"
   6154 			CPPFLAGS="$LIBNCURSESW_CFLAGS $SAVED_CPPFLAGS"
   6155 			LIBS="$LIBNCURSESW_LIBS $LIBS"
   6156 			found_ncurses=yes
   6157 
   6158 fi
   6159 fi
   6160 if test "x$found_ncurses" = xno; then
   6161 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5
   6162 $as_echo_n "checking for library containing setupterm... " >&6; }
   6163 if ${ac_cv_search_setupterm+:} false; then :
   6164   $as_echo_n "(cached) " >&6
   6165 else
   6166   ac_func_search_save_LIBS=$LIBS
   6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6168 /* end confdefs.h.  */
   6169 
   6170 /* Override any GCC internal prototype to avoid an error.
   6171    Use char because int might match the return type of a GCC
   6172    builtin and then its argument prototype would still apply.  */
   6173 #ifdef __cplusplus
   6174 extern "C"
   6175 #endif
   6176 char setupterm ();
   6177 int
   6178 main ()
   6179 {
   6180 return setupterm ();
   6181   ;
   6182   return 0;
   6183 }
   6184 _ACEOF
   6185 for ac_lib in '' tinfo ncurses ncursesw; do
   6186   if test -z "$ac_lib"; then
   6187     ac_res="none required"
   6188   else
   6189     ac_res=-l$ac_lib
   6190     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6191   fi
   6192   if ac_fn_c_try_link "$LINENO"; then :
   6193   ac_cv_search_setupterm=$ac_res
   6194 fi
   6195 rm -f core conftest.err conftest.$ac_objext \
   6196     conftest$ac_exeext
   6197   if ${ac_cv_search_setupterm+:} false; then :
   6198   break
   6199 fi
   6200 done
   6201 if ${ac_cv_search_setupterm+:} false; then :
   6202 
   6203 else
   6204   ac_cv_search_setupterm=no
   6205 fi
   6206 rm conftest.$ac_ext
   6207 LIBS=$ac_func_search_save_LIBS
   6208 fi
   6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
   6210 $as_echo "$ac_cv_search_setupterm" >&6; }
   6211 ac_res=$ac_cv_search_setupterm
   6212 if test "$ac_res" != no; then :
   6213   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6214   found_ncurses=yes
   6215 else
   6216   found_ncurses=no
   6217 
   6218 fi
   6219 
   6220 	if test "x$found_ncurses" = xyes; then
   6221 		ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
   6222 if test "x$ac_cv_header_ncurses_h" = xyes; then :
   6223   LIBS="$LIBS -lncurses"
   6224 else
   6225   found_ncurses=no
   6226 
   6227 fi
   6228 
   6229 
   6230 	fi
   6231 fi
   6232 if test "x$found_ncurses" = xyes; then
   6233 	$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
   6234 
   6235 else
   6236 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
   6237 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
   6238 if ${ac_cv_lib_curses_setupterm+:} false; then :
   6239   $as_echo_n "(cached) " >&6
   6240 else
   6241   ac_check_lib_save_LIBS=$LIBS
   6242 LIBS="-lcurses  $LIBS"
   6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6244 /* end confdefs.h.  */
   6245 
   6246 /* Override any GCC internal prototype to avoid an error.
   6247    Use char because int might match the return type of a GCC
   6248    builtin and then its argument prototype would still apply.  */
   6249 #ifdef __cplusplus
   6250 extern "C"
   6251 #endif
   6252 char setupterm ();
   6253 int
   6254 main ()
   6255 {
   6256 return setupterm ();
   6257   ;
   6258   return 0;
   6259 }
   6260 _ACEOF
   6261 if ac_fn_c_try_link "$LINENO"; then :
   6262   ac_cv_lib_curses_setupterm=yes
   6263 else
   6264   ac_cv_lib_curses_setupterm=no
   6265 fi
   6266 rm -f core conftest.err conftest.$ac_objext \
   6267     conftest$ac_exeext conftest.$ac_ext
   6268 LIBS=$ac_check_lib_save_LIBS
   6269 fi
   6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
   6271 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
   6272 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
   6273   found_curses=yes
   6274 else
   6275   found_curses=no
   6276 
   6277 fi
   6278 
   6279 	ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
   6280 if test "x$ac_cv_header_curses_h" = xyes; then :
   6281 
   6282 else
   6283   found_curses=no
   6284 
   6285 fi
   6286 
   6287 
   6288 	if test "x$found_curses" = xyes; then
   6289 		LIBS="$LIBS -lcurses"
   6290 		$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
   6291 
   6292 	else
   6293 		as_fn_error $? "\"curses not found\"" "$LINENO" 5
   6294 	fi
   6295 fi
   6296 
   6297 # Look for utempter.
   6298 # Check whether --enable-utempter was given.
   6299 if test "${enable_utempter+set}" = set; then :
   6300   enableval=$enable_utempter;
   6301 fi
   6302 
   6303 if test "x$enable_utempter" = xyes; then
   6304 	ac_fn_c_check_header_mongrel "$LINENO" "utempter.h" "ac_cv_header_utempter_h" "$ac_includes_default"
   6305 if test "x$ac_cv_header_utempter_h" = xyes; then :
   6306   enable_utempter=yes
   6307 else
   6308   enable_utempter=no
   6309 fi
   6310 
   6311 
   6312 	if test "x$enable_utempter" = xyes; then
   6313 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utempter_add_record" >&5
   6314 $as_echo_n "checking for library containing utempter_add_record... " >&6; }
   6315 if ${ac_cv_search_utempter_add_record+:} false; then :
   6316   $as_echo_n "(cached) " >&6
   6317 else
   6318   ac_func_search_save_LIBS=$LIBS
   6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6320 /* end confdefs.h.  */
   6321 
   6322 /* Override any GCC internal prototype to avoid an error.
   6323    Use char because int might match the return type of a GCC
   6324    builtin and then its argument prototype would still apply.  */
   6325 #ifdef __cplusplus
   6326 extern "C"
   6327 #endif
   6328 char utempter_add_record ();
   6329 int
   6330 main ()
   6331 {
   6332 return utempter_add_record ();
   6333   ;
   6334   return 0;
   6335 }
   6336 _ACEOF
   6337 for ac_lib in '' utempter; do
   6338   if test -z "$ac_lib"; then
   6339     ac_res="none required"
   6340   else
   6341     ac_res=-l$ac_lib
   6342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6343   fi
   6344   if ac_fn_c_try_link "$LINENO"; then :
   6345   ac_cv_search_utempter_add_record=$ac_res
   6346 fi
   6347 rm -f core conftest.err conftest.$ac_objext \
   6348     conftest$ac_exeext
   6349   if ${ac_cv_search_utempter_add_record+:} false; then :
   6350   break
   6351 fi
   6352 done
   6353 if ${ac_cv_search_utempter_add_record+:} false; then :
   6354 
   6355 else
   6356   ac_cv_search_utempter_add_record=no
   6357 fi
   6358 rm conftest.$ac_ext
   6359 LIBS=$ac_func_search_save_LIBS
   6360 fi
   6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utempter_add_record" >&5
   6362 $as_echo "$ac_cv_search_utempter_add_record" >&6; }
   6363 ac_res=$ac_cv_search_utempter_add_record
   6364 if test "$ac_res" != no; then :
   6365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6366   enable_utempter=yes
   6367 else
   6368   enable_utempter=no
   6369 
   6370 fi
   6371 
   6372 	fi
   6373 	if test "x$enable_utempter" = xyes; then
   6374 		$as_echo "#define HAVE_UTEMPTER 1" >>confdefs.h
   6375 
   6376 	else
   6377 		as_fn_error $? "\"utempter not found\"" "$LINENO" 5
   6378 	fi
   6379 fi
   6380 
   6381 # Look for utf8proc.
   6382 # Check whether --enable-utf8proc was given.
   6383 if test "${enable_utf8proc+set}" = set; then :
   6384   enableval=$enable_utf8proc;
   6385 fi
   6386 
   6387 if test "x$enable_utf8proc" = xyes; then
   6388 	ac_fn_c_check_header_mongrel "$LINENO" "utf8proc.h" "ac_cv_header_utf8proc_h" "$ac_includes_default"
   6389 if test "x$ac_cv_header_utf8proc_h" = xyes; then :
   6390   enable_utf8proc=yes
   6391 else
   6392   enable_utf8proc=no
   6393 fi
   6394 
   6395 
   6396 	if test "x$enable_utf8proc" = xyes; then
   6397 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing utf8proc_charwidth" >&5
   6398 $as_echo_n "checking for library containing utf8proc_charwidth... " >&6; }
   6399 if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6400   $as_echo_n "(cached) " >&6
   6401 else
   6402   ac_func_search_save_LIBS=$LIBS
   6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6404 /* end confdefs.h.  */
   6405 
   6406 /* Override any GCC internal prototype to avoid an error.
   6407    Use char because int might match the return type of a GCC
   6408    builtin and then its argument prototype would still apply.  */
   6409 #ifdef __cplusplus
   6410 extern "C"
   6411 #endif
   6412 char utf8proc_charwidth ();
   6413 int
   6414 main ()
   6415 {
   6416 return utf8proc_charwidth ();
   6417   ;
   6418   return 0;
   6419 }
   6420 _ACEOF
   6421 for ac_lib in '' utf8proc; do
   6422   if test -z "$ac_lib"; then
   6423     ac_res="none required"
   6424   else
   6425     ac_res=-l$ac_lib
   6426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6427   fi
   6428   if ac_fn_c_try_link "$LINENO"; then :
   6429   ac_cv_search_utf8proc_charwidth=$ac_res
   6430 fi
   6431 rm -f core conftest.err conftest.$ac_objext \
   6432     conftest$ac_exeext
   6433   if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6434   break
   6435 fi
   6436 done
   6437 if ${ac_cv_search_utf8proc_charwidth+:} false; then :
   6438 
   6439 else
   6440   ac_cv_search_utf8proc_charwidth=no
   6441 fi
   6442 rm conftest.$ac_ext
   6443 LIBS=$ac_func_search_save_LIBS
   6444 fi
   6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utf8proc_charwidth" >&5
   6446 $as_echo "$ac_cv_search_utf8proc_charwidth" >&6; }
   6447 ac_res=$ac_cv_search_utf8proc_charwidth
   6448 if test "$ac_res" != no; then :
   6449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6450   enable_utf8proc=yes
   6451 else
   6452   enable_utf8proc=no
   6453 
   6454 fi
   6455 
   6456 	fi
   6457 	if test "x$enable_utf8proc" = xyes; then
   6458 		$as_echo "#define HAVE_UTF8PROC 1" >>confdefs.h
   6459 
   6460 	else
   6461 		as_fn_error $? "\"utf8proc not found\"" "$LINENO" 5
   6462 	fi
   6463 fi
   6464  if test "x$enable_utf8proc" = xyes; then
   6465   HAVE_UTF8PROC_TRUE=
   6466   HAVE_UTF8PROC_FALSE='#'
   6467 else
   6468   HAVE_UTF8PROC_TRUE='#'
   6469   HAVE_UTF8PROC_FALSE=
   6470 fi
   6471 
   6472 
   6473 # Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
   6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop" >&5
   6475 $as_echo_n "checking for b64_ntop... " >&6; }
   6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6477 /* end confdefs.h.  */
   6478 
   6479 		#include <sys/types.h>
   6480 		#include <netinet/in.h>
   6481 		#include <resolv.h>
   6482 
   6483 int
   6484 main ()
   6485 {
   6486 b64_ntop(NULL, 0, NULL, 0);
   6487   ;
   6488   return 0;
   6489 }
   6490 _ACEOF
   6491 if ac_fn_c_try_link "$LINENO"; then :
   6492   found_b64_ntop=yes
   6493 else
   6494   found_b64_ntop=no
   6495 
   6496 fi
   6497 rm -f core conftest.err conftest.$ac_objext \
   6498     conftest$ac_exeext conftest.$ac_ext
   6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_b64_ntop" >&5
   6500 $as_echo "$found_b64_ntop" >&6; }
   6501 OLD_LIBS="$LIBS"
   6502 if test "x$found_b64_ntop" = xno; then
   6503 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop with -lresolv" >&5
   6504 $as_echo_n "checking for b64_ntop with -lresolv... " >&6; }
   6505 	LIBS="$OLD_LIBS -lresolv"
   6506 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6507 /* end confdefs.h.  */
   6508 
   6509 			#include <sys/types.h>
   6510 			#include <netinet/in.h>
   6511 			#include <resolv.h>
   6512 
   6513 int
   6514 main ()
   6515 {
   6516 b64_ntop(NULL, 0, NULL, 0);
   6517   ;
   6518   return 0;
   6519 }
   6520 _ACEOF
   6521 if ac_fn_c_try_link "$LINENO"; then :
   6522   found_b64_ntop=yes
   6523 else
   6524   found_b64_ntop=no
   6525 
   6526 fi
   6527 rm -f core conftest.err conftest.$ac_objext \
   6528     conftest$ac_exeext conftest.$ac_ext
   6529 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_b64_ntop" >&5
   6530 $as_echo "$found_b64_ntop" >&6; }
   6531 fi
   6532 if test "x$found_b64_ntop" = xno; then
   6533 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for b64_ntop with -lnetwork" >&5
   6534 $as_echo_n "checking for b64_ntop with -lnetwork... " >&6; }
   6535 	LIBS="$OLD_LIBS -lnetwork"
   6536 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6537 /* end confdefs.h.  */
   6538 
   6539 			#include <sys/types.h>
   6540 			#include <netinet/in.h>
   6541 			#include <resolv.h>
   6542 
   6543 int
   6544 main ()
   6545 {
   6546 b64_ntop(NULL, 0, NULL, 0);
   6547   ;
   6548   return 0;
   6549 }
   6550 _ACEOF
   6551 if ac_fn_c_try_link "$LINENO"; then :
   6552   found_b64_ntop=yes
   6553 else
   6554   found_b64_ntop=no
   6555 
   6556 fi
   6557 rm -f core conftest.err conftest.$ac_objext \
   6558     conftest$ac_exeext conftest.$ac_ext
   6559 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_b64_ntop" >&5
   6560 $as_echo "$found_b64_ntop" >&6; }
   6561 fi
   6562 if test "x$found_b64_ntop" = xyes; then
   6563 	$as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
   6564 
   6565 else
   6566 	LIBS="$OLD_LIBS"
   6567 	case " $LIBOBJS " in
   6568   *" base64.$ac_objext "* ) ;;
   6569   *) LIBOBJS="$LIBOBJS base64.$ac_objext"
   6570  ;;
   6571 esac
   6572 
   6573 fi
   6574 
   6575 # Look for networking libraries.
   6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
   6577 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
   6578 if ${ac_cv_search_inet_ntoa+:} false; then :
   6579   $as_echo_n "(cached) " >&6
   6580 else
   6581   ac_func_search_save_LIBS=$LIBS
   6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6583 /* end confdefs.h.  */
   6584 
   6585 /* Override any GCC internal prototype to avoid an error.
   6586    Use char because int might match the return type of a GCC
   6587    builtin and then its argument prototype would still apply.  */
   6588 #ifdef __cplusplus
   6589 extern "C"
   6590 #endif
   6591 char inet_ntoa ();
   6592 int
   6593 main ()
   6594 {
   6595 return inet_ntoa ();
   6596   ;
   6597   return 0;
   6598 }
   6599 _ACEOF
   6600 for ac_lib in '' nsl; do
   6601   if test -z "$ac_lib"; then
   6602     ac_res="none required"
   6603   else
   6604     ac_res=-l$ac_lib
   6605     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6606   fi
   6607   if ac_fn_c_try_link "$LINENO"; then :
   6608   ac_cv_search_inet_ntoa=$ac_res
   6609 fi
   6610 rm -f core conftest.err conftest.$ac_objext \
   6611     conftest$ac_exeext
   6612   if ${ac_cv_search_inet_ntoa+:} false; then :
   6613   break
   6614 fi
   6615 done
   6616 if ${ac_cv_search_inet_ntoa+:} false; then :
   6617 
   6618 else
   6619   ac_cv_search_inet_ntoa=no
   6620 fi
   6621 rm conftest.$ac_ext
   6622 LIBS=$ac_func_search_save_LIBS
   6623 fi
   6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
   6625 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
   6626 ac_res=$ac_cv_search_inet_ntoa
   6627 if test "$ac_res" != no; then :
   6628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6629 
   6630 fi
   6631 
   6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   6633 $as_echo_n "checking for library containing socket... " >&6; }
   6634 if ${ac_cv_search_socket+:} false; then :
   6635   $as_echo_n "(cached) " >&6
   6636 else
   6637   ac_func_search_save_LIBS=$LIBS
   6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6639 /* end confdefs.h.  */
   6640 
   6641 /* Override any GCC internal prototype to avoid an error.
   6642    Use char because int might match the return type of a GCC
   6643    builtin and then its argument prototype would still apply.  */
   6644 #ifdef __cplusplus
   6645 extern "C"
   6646 #endif
   6647 char socket ();
   6648 int
   6649 main ()
   6650 {
   6651 return socket ();
   6652   ;
   6653   return 0;
   6654 }
   6655 _ACEOF
   6656 for ac_lib in '' socket; do
   6657   if test -z "$ac_lib"; then
   6658     ac_res="none required"
   6659   else
   6660     ac_res=-l$ac_lib
   6661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6662   fi
   6663   if ac_fn_c_try_link "$LINENO"; then :
   6664   ac_cv_search_socket=$ac_res
   6665 fi
   6666 rm -f core conftest.err conftest.$ac_objext \
   6667     conftest$ac_exeext
   6668   if ${ac_cv_search_socket+:} false; then :
   6669   break
   6670 fi
   6671 done
   6672 if ${ac_cv_search_socket+:} false; then :
   6673 
   6674 else
   6675   ac_cv_search_socket=no
   6676 fi
   6677 rm conftest.$ac_ext
   6678 LIBS=$ac_func_search_save_LIBS
   6679 fi
   6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   6681 $as_echo "$ac_cv_search_socket" >&6; }
   6682 ac_res=$ac_cv_search_socket
   6683 if test "$ac_res" != no; then :
   6684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6685 
   6686 fi
   6687 
   6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
   6689 $as_echo_n "checking for socket in -lxnet... " >&6; }
   6690 if ${ac_cv_lib_xnet_socket+:} false; then :
   6691   $as_echo_n "(cached) " >&6
   6692 else
   6693   ac_check_lib_save_LIBS=$LIBS
   6694 LIBS="-lxnet  $LIBS"
   6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6696 /* end confdefs.h.  */
   6697 
   6698 /* Override any GCC internal prototype to avoid an error.
   6699    Use char because int might match the return type of a GCC
   6700    builtin and then its argument prototype would still apply.  */
   6701 #ifdef __cplusplus
   6702 extern "C"
   6703 #endif
   6704 char socket ();
   6705 int
   6706 main ()
   6707 {
   6708 return socket ();
   6709   ;
   6710   return 0;
   6711 }
   6712 _ACEOF
   6713 if ac_fn_c_try_link "$LINENO"; then :
   6714   ac_cv_lib_xnet_socket=yes
   6715 else
   6716   ac_cv_lib_xnet_socket=no
   6717 fi
   6718 rm -f core conftest.err conftest.$ac_objext \
   6719     conftest$ac_exeext conftest.$ac_ext
   6720 LIBS=$ac_check_lib_save_LIBS
   6721 fi
   6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
   6723 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
   6724 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
   6725   cat >>confdefs.h <<_ACEOF
   6726 #define HAVE_LIBXNET 1
   6727 _ACEOF
   6728 
   6729   LIBS="-lxnet $LIBS"
   6730 
   6731 fi
   6732 
   6733 
   6734 # Check if using glibc and have malloc_trim(3). The glibc free(3) is pretty bad
   6735 # about returning memory to the kernel unless the application tells it when to
   6736 # with malloc_trim(3).
   6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if free doesn't work very well" >&5
   6738 $as_echo_n "checking if free doesn't work very well... " >&6; }
   6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6740 /* end confdefs.h.  */
   6741 
   6742 		#include <stdlib.h>
   6743 		#ifdef __GLIBC__
   6744 		#include <malloc.h>
   6745 		int main(void) {
   6746 			malloc_trim (0);
   6747 			exit(0);
   6748 		}
   6749 		#else
   6750 		no
   6751 		#endif
   6752 
   6753 _ACEOF
   6754 if ac_fn_c_try_link "$LINENO"; then :
   6755   found_malloc_trim=yes
   6756 else
   6757   found_malloc_trim=no
   6758 
   6759 fi
   6760 rm -f core conftest.err conftest.$ac_objext \
   6761     conftest$ac_exeext conftest.$ac_ext
   6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_malloc_trim" >&5
   6763 $as_echo "$found_malloc_trim" >&6; }
   6764 if test "x$found_malloc_trim" = xyes; then
   6765 	$as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
   6766 
   6767 fi
   6768 
   6769 # Check for CMSG_DATA. On some platforms like HP-UX this requires UNIX 95
   6770 # (_XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED) (see xopen_networking(7)). On
   6771 # others, UNIX 03 (_XOPEN_SOURCE 600, see standards(7) on Solaris).
   6772 XOPEN_DEFINES=
   6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMSG_DATA" >&5
   6774 $as_echo_n "checking for CMSG_DATA... " >&6; }
   6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6776 /* end confdefs.h.  */
   6777 
   6778 		#include <sys/socket.h>
   6779 		#ifdef CMSG_DATA
   6780 		yes
   6781 		#endif
   6782 
   6783 _ACEOF
   6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6785   $EGREP "yes" >/dev/null 2>&1; then :
   6786   found_cmsg_data=yes
   6787 else
   6788   found_cmsg_data=no
   6789 
   6790 fi
   6791 rm -f conftest*
   6792 
   6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
   6794 $as_echo "$found_cmsg_data" >&6; }
   6795 if test "x$found_cmsg_data" = xno; then
   6796 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CMSG_DATA needs _XOPEN_SOURCE_EXTENDED" >&5
   6797 $as_echo_n "checking if CMSG_DATA needs _XOPEN_SOURCE_EXTENDED... " >&6; }
   6798 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6799 /* end confdefs.h.  */
   6800 
   6801 			#define _XOPEN_SOURCE 1
   6802 			#define _XOPEN_SOURCE_EXTENDED 1
   6803 			#include <sys/socket.h>
   6804 			#ifdef CMSG_DATA
   6805 			yes
   6806 			#endif
   6807 
   6808 _ACEOF
   6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6810   $EGREP "yes" >/dev/null 2>&1; then :
   6811   found_cmsg_data=yes
   6812 else
   6813   found_cmsg_data=no
   6814 
   6815 fi
   6816 rm -f conftest*
   6817 
   6818 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
   6819 $as_echo "$found_cmsg_data" >&6; }
   6820 	if test "x$found_cmsg_data" = xyes; then
   6821 		XOPEN_DEFINES="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"
   6822 	fi
   6823 fi
   6824 if test "x$found_cmsg_data" = xno; then
   6825 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CMSG_DATA needs _XOPEN_SOURCE 600" >&5
   6826 $as_echo_n "checking if CMSG_DATA needs _XOPEN_SOURCE 600... " >&6; }
   6827 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6828 /* end confdefs.h.  */
   6829 
   6830 			#define _XOPEN_SOURCE 600
   6831 			#include <sys/socket.h>
   6832 			#ifdef CMSG_DATA
   6833 			yes
   6834 			#endif
   6835 
   6836 _ACEOF
   6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6838   $EGREP "yes" >/dev/null 2>&1; then :
   6839   found_cmsg_data=yes
   6840 else
   6841   found_cmsg_data=no
   6842 
   6843 fi
   6844 rm -f conftest*
   6845 
   6846 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
   6847 $as_echo "$found_cmsg_data" >&6; }
   6848 	if test "x$found_cmsg_data" = xyes; then
   6849 		XOPEN_DEFINES="-D_XOPEN_SOURCE=600"
   6850 	else
   6851 		as_fn_error $? "\"CMSG_DATA not found\"" "$LINENO" 5
   6852 	fi
   6853 fi
   6854 
   6855 
   6856 # Look for err and friends in err.h.
   6857 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
   6858 if test "x$ac_cv_func_err" = xyes; then :
   6859   found_err_h=yes
   6860 else
   6861   found_err_h=no
   6862 fi
   6863 
   6864 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
   6865 if test "x$ac_cv_func_errx" = xyes; then :
   6866 
   6867 else
   6868   found_err_h=no
   6869 fi
   6870 
   6871 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
   6872 if test "x$ac_cv_func_warn" = xyes; then :
   6873 
   6874 else
   6875   found_err_h=no
   6876 fi
   6877 
   6878 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
   6879 if test "x$ac_cv_func_warnx" = xyes; then :
   6880 
   6881 else
   6882   found_err_h=no
   6883 fi
   6884 
   6885 if test "x$found_err_h" = xyes; then
   6886 	ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
   6887 if test "x$ac_cv_header_err_h" = xyes; then :
   6888 
   6889 else
   6890   found_err_h=no
   6891 fi
   6892 
   6893 
   6894 else
   6895 	case " $LIBOBJS " in
   6896   *" err.$ac_objext "* ) ;;
   6897   *) LIBOBJS="$LIBOBJS err.$ac_objext"
   6898  ;;
   6899 esac
   6900 
   6901 fi
   6902 
   6903 # Look for imsg_init in libutil.
   6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing imsg_init" >&5
   6905 $as_echo_n "checking for library containing imsg_init... " >&6; }
   6906 if ${ac_cv_search_imsg_init+:} false; then :
   6907   $as_echo_n "(cached) " >&6
   6908 else
   6909   ac_func_search_save_LIBS=$LIBS
   6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6911 /* end confdefs.h.  */
   6912 
   6913 /* Override any GCC internal prototype to avoid an error.
   6914    Use char because int might match the return type of a GCC
   6915    builtin and then its argument prototype would still apply.  */
   6916 #ifdef __cplusplus
   6917 extern "C"
   6918 #endif
   6919 char imsg_init ();
   6920 int
   6921 main ()
   6922 {
   6923 return imsg_init ();
   6924   ;
   6925   return 0;
   6926 }
   6927 _ACEOF
   6928 for ac_lib in '' util; do
   6929   if test -z "$ac_lib"; then
   6930     ac_res="none required"
   6931   else
   6932     ac_res=-l$ac_lib
   6933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6934   fi
   6935   if ac_fn_c_try_link "$LINENO"; then :
   6936   ac_cv_search_imsg_init=$ac_res
   6937 fi
   6938 rm -f core conftest.err conftest.$ac_objext \
   6939     conftest$ac_exeext
   6940   if ${ac_cv_search_imsg_init+:} false; then :
   6941   break
   6942 fi
   6943 done
   6944 if ${ac_cv_search_imsg_init+:} false; then :
   6945 
   6946 else
   6947   ac_cv_search_imsg_init=no
   6948 fi
   6949 rm conftest.$ac_ext
   6950 LIBS=$ac_func_search_save_LIBS
   6951 fi
   6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_imsg_init" >&5
   6953 $as_echo "$ac_cv_search_imsg_init" >&6; }
   6954 ac_res=$ac_cv_search_imsg_init
   6955 if test "$ac_res" != no; then :
   6956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6957   found_imsg_init=yes
   6958 else
   6959   found_imsg_init=no
   6960 fi
   6961 
   6962 if test "x$found_imsg_init" = xyes; then
   6963 	$as_echo "#define HAVE_IMSG 1" >>confdefs.h
   6964 
   6965 else
   6966 	case " $LIBOBJS " in
   6967   *" imsg.$ac_objext "* ) ;;
   6968   *) LIBOBJS="$LIBOBJS imsg.$ac_objext"
   6969  ;;
   6970 esac
   6971 
   6972 	case " $LIBOBJS " in
   6973   *" imsg-buffer.$ac_objext "* ) ;;
   6974   *) LIBOBJS="$LIBOBJS imsg-buffer.$ac_objext"
   6975  ;;
   6976 esac
   6977 
   6978 fi
   6979 
   6980 # Look for daemon, compat/daemon.c used if missing. Solaris 10 has it in
   6981 # libresolv, but no declaration anywhere, so check for declaration as well as
   6982 # function.
   6983 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
   6984 if test "x$ac_cv_func_daemon" = xyes; then :
   6985   found_daemon=yes
   6986 else
   6987   found_daemon=no
   6988 fi
   6989 
   6990 ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "
   6991 		#include <stdlib.h>
   6992 		#include <unistd.h>
   6993 
   6994 
   6995 "
   6996 if test "x$ac_cv_have_decl_daemon" = xyes; then :
   6997 
   6998 else
   6999   found_daemon=no
   7000 fi
   7001 
   7002 if test "x$found_daemon" = xyes; then
   7003 	$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
   7004 
   7005 else
   7006 	case " $LIBOBJS " in
   7007   *" daemon.$ac_objext "* ) ;;
   7008   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
   7009  ;;
   7010 esac
   7011 
   7012 fi
   7013 
   7014 # Look for stravis, compat/{vis,unvis}.c used if missing.
   7015 ac_fn_c_check_func "$LINENO" "stravis" "ac_cv_func_stravis"
   7016 if test "x$ac_cv_func_stravis" = xyes; then :
   7017   found_stravis=yes
   7018 else
   7019   found_stravis=no
   7020 fi
   7021 
   7022 if test "x$found_stravis" = xyes; then
   7023 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnvis is broken" >&5
   7024 $as_echo_n "checking if strnvis is broken... " >&6; }
   7025 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7026 /* end confdefs.h.  */
   7027 #include <vis.h>
   7028 
   7029 _ACEOF
   7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7031   $EGREP "strnvis\(char \*, const char \*, size_t, int\)" >/dev/null 2>&1; then :
   7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7033 $as_echo "no" >&6; }
   7034 else
   7035   found_stravis=no
   7036 fi
   7037 rm -f conftest*
   7038 
   7039 	if test "x$found_stravis" = xno; then
   7040 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7041 $as_echo "yes" >&6; }
   7042 	fi
   7043 fi
   7044 if test "x$found_stravis" = xyes; then
   7045 	ac_fn_c_check_decl "$LINENO" "VIS_DQ" "ac_cv_have_decl_VIS_DQ" "
   7046 			#include <stdlib.h>
   7047 			#include <vis.h>
   7048 
   7049 
   7050 "
   7051 if test "x$ac_cv_have_decl_VIS_DQ" = xyes; then :
   7052 
   7053 else
   7054   found_stravis=no
   7055 fi
   7056 
   7057 fi
   7058 if test "x$found_stravis" = xyes; then
   7059 	$as_echo "#define HAVE_VIS 1" >>confdefs.h
   7060 
   7061 else
   7062 	case " $LIBOBJS " in
   7063   *" vis.$ac_objext "* ) ;;
   7064   *) LIBOBJS="$LIBOBJS vis.$ac_objext"
   7065  ;;
   7066 esac
   7067 
   7068 	case " $LIBOBJS " in
   7069   *" unvis.$ac_objext "* ) ;;
   7070   *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
   7071  ;;
   7072 esac
   7073 
   7074 fi
   7075 
   7076 # Look for fdforkpty and forkpty in libutil.
   7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdforkpty" >&5
   7078 $as_echo_n "checking for library containing fdforkpty... " >&6; }
   7079 if ${ac_cv_search_fdforkpty+:} false; then :
   7080   $as_echo_n "(cached) " >&6
   7081 else
   7082   ac_func_search_save_LIBS=$LIBS
   7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7084 /* end confdefs.h.  */
   7085 
   7086 /* Override any GCC internal prototype to avoid an error.
   7087    Use char because int might match the return type of a GCC
   7088    builtin and then its argument prototype would still apply.  */
   7089 #ifdef __cplusplus
   7090 extern "C"
   7091 #endif
   7092 char fdforkpty ();
   7093 int
   7094 main ()
   7095 {
   7096 return fdforkpty ();
   7097   ;
   7098   return 0;
   7099 }
   7100 _ACEOF
   7101 for ac_lib in '' util; do
   7102   if test -z "$ac_lib"; then
   7103     ac_res="none required"
   7104   else
   7105     ac_res=-l$ac_lib
   7106     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7107   fi
   7108   if ac_fn_c_try_link "$LINENO"; then :
   7109   ac_cv_search_fdforkpty=$ac_res
   7110 fi
   7111 rm -f core conftest.err conftest.$ac_objext \
   7112     conftest$ac_exeext
   7113   if ${ac_cv_search_fdforkpty+:} false; then :
   7114   break
   7115 fi
   7116 done
   7117 if ${ac_cv_search_fdforkpty+:} false; then :
   7118 
   7119 else
   7120   ac_cv_search_fdforkpty=no
   7121 fi
   7122 rm conftest.$ac_ext
   7123 LIBS=$ac_func_search_save_LIBS
   7124 fi
   7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdforkpty" >&5
   7126 $as_echo "$ac_cv_search_fdforkpty" >&6; }
   7127 ac_res=$ac_cv_search_fdforkpty
   7128 if test "$ac_res" != no; then :
   7129   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7130   found_fdforkpty=yes
   7131 else
   7132   found_fdforkpty=no
   7133 fi
   7134 
   7135 if test "x$found_fdforkpty" = xyes; then
   7136 	$as_echo "#define HAVE_FDFORKPTY 1" >>confdefs.h
   7137 
   7138 else
   7139 	case " $LIBOBJS " in
   7140   *" fdforkpty.$ac_objext "* ) ;;
   7141   *) LIBOBJS="$LIBOBJS fdforkpty.$ac_objext"
   7142  ;;
   7143 esac
   7144 
   7145 fi
   7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing forkpty" >&5
   7147 $as_echo_n "checking for library containing forkpty... " >&6; }
   7148 if ${ac_cv_search_forkpty+:} false; then :
   7149   $as_echo_n "(cached) " >&6
   7150 else
   7151   ac_func_search_save_LIBS=$LIBS
   7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7153 /* end confdefs.h.  */
   7154 
   7155 /* Override any GCC internal prototype to avoid an error.
   7156    Use char because int might match the return type of a GCC
   7157    builtin and then its argument prototype would still apply.  */
   7158 #ifdef __cplusplus
   7159 extern "C"
   7160 #endif
   7161 char forkpty ();
   7162 int
   7163 main ()
   7164 {
   7165 return forkpty ();
   7166   ;
   7167   return 0;
   7168 }
   7169 _ACEOF
   7170 for ac_lib in '' util; do
   7171   if test -z "$ac_lib"; then
   7172     ac_res="none required"
   7173   else
   7174     ac_res=-l$ac_lib
   7175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7176   fi
   7177   if ac_fn_c_try_link "$LINENO"; then :
   7178   ac_cv_search_forkpty=$ac_res
   7179 fi
   7180 rm -f core conftest.err conftest.$ac_objext \
   7181     conftest$ac_exeext
   7182   if ${ac_cv_search_forkpty+:} false; then :
   7183   break
   7184 fi
   7185 done
   7186 if ${ac_cv_search_forkpty+:} false; then :
   7187 
   7188 else
   7189   ac_cv_search_forkpty=no
   7190 fi
   7191 rm conftest.$ac_ext
   7192 LIBS=$ac_func_search_save_LIBS
   7193 fi
   7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_forkpty" >&5
   7195 $as_echo "$ac_cv_search_forkpty" >&6; }
   7196 ac_res=$ac_cv_search_forkpty
   7197 if test "$ac_res" != no; then :
   7198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7199   found_forkpty=yes
   7200 else
   7201   found_forkpty=no
   7202 fi
   7203 
   7204 if test "x$found_forkpty" = xyes; then
   7205 	$as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   7206 
   7207 fi
   7208  if test "x$found_forkpty" = xno; then
   7209   NEED_FORKPTY_TRUE=
   7210   NEED_FORKPTY_FALSE='#'
   7211 else
   7212   NEED_FORKPTY_TRUE='#'
   7213   NEED_FORKPTY_FALSE=
   7214 fi
   7215 
   7216 
   7217 # Look for kinfo_getfile in libutil.
   7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
   7219 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
   7220 if ${ac_cv_search_kinfo_getfile+:} false; then :
   7221   $as_echo_n "(cached) " >&6
   7222 else
   7223   ac_func_search_save_LIBS=$LIBS
   7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7225 /* end confdefs.h.  */
   7226 
   7227 /* Override any GCC internal prototype to avoid an error.
   7228    Use char because int might match the return type of a GCC
   7229    builtin and then its argument prototype would still apply.  */
   7230 #ifdef __cplusplus
   7231 extern "C"
   7232 #endif
   7233 char kinfo_getfile ();
   7234 int
   7235 main ()
   7236 {
   7237 return kinfo_getfile ();
   7238   ;
   7239   return 0;
   7240 }
   7241 _ACEOF
   7242 for ac_lib in '' util util-freebsd; do
   7243   if test -z "$ac_lib"; then
   7244     ac_res="none required"
   7245   else
   7246     ac_res=-l$ac_lib
   7247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7248   fi
   7249   if ac_fn_c_try_link "$LINENO"; then :
   7250   ac_cv_search_kinfo_getfile=$ac_res
   7251 fi
   7252 rm -f core conftest.err conftest.$ac_objext \
   7253     conftest$ac_exeext
   7254   if ${ac_cv_search_kinfo_getfile+:} false; then :
   7255   break
   7256 fi
   7257 done
   7258 if ${ac_cv_search_kinfo_getfile+:} false; then :
   7259 
   7260 else
   7261   ac_cv_search_kinfo_getfile=no
   7262 fi
   7263 rm conftest.$ac_ext
   7264 LIBS=$ac_func_search_save_LIBS
   7265 fi
   7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
   7267 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
   7268 ac_res=$ac_cv_search_kinfo_getfile
   7269 if test "$ac_res" != no; then :
   7270   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7271 
   7272 fi
   7273 
   7274 
   7275 # Look for a suitable queue.h.
   7276 ac_fn_c_check_decl "$LINENO" "TAILQ_CONCAT" "ac_cv_have_decl_TAILQ_CONCAT" "#include <sys/queue.h>
   7277 
   7278 "
   7279 if test "x$ac_cv_have_decl_TAILQ_CONCAT" = xyes; then :
   7280   found_queue_h=yes
   7281 else
   7282   found_queue_h=no
   7283 fi
   7284 
   7285 ac_fn_c_check_decl "$LINENO" "TAILQ_PREV" "ac_cv_have_decl_TAILQ_PREV" "#include <sys/queue.h>
   7286 
   7287 "
   7288 if test "x$ac_cv_have_decl_TAILQ_PREV" = xyes; then :
   7289   found_queue_h=yes
   7290 else
   7291   found_queue_h=no
   7292 fi
   7293 
   7294 ac_fn_c_check_decl "$LINENO" "TAILQ_REPLACE" "ac_cv_have_decl_TAILQ_REPLACE" "#include <sys/queue.h>
   7295 
   7296 "
   7297 if test "x$ac_cv_have_decl_TAILQ_REPLACE" = xyes; then :
   7298 
   7299 else
   7300   found_queue_h=no
   7301 fi
   7302 
   7303 if test "x$found_queue_h" = xyes; then
   7304 	$as_echo "#define HAVE_QUEUE_H 1" >>confdefs.h
   7305 
   7306 fi
   7307 
   7308 # Look for __progname.
   7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
   7310 $as_echo_n "checking for __progname... " >&6; }
   7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7312 /* end confdefs.h.  */
   7313 
   7314 		#include <stdio.h>
   7315 		#include <stdlib.h>
   7316 		extern char *__progname;
   7317 		int main(void) {
   7318 			const char *cp = __progname;
   7319 			printf("%s\n", cp);
   7320 			exit(0);
   7321 		}
   7322 
   7323 _ACEOF
   7324 if ac_fn_c_try_link "$LINENO"; then :
   7325   $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
   7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7327 $as_echo "yes" >&6; }
   7328 else
   7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7330 $as_echo "no" >&6; }
   7331 
   7332 fi
   7333 rm -f core conftest.err conftest.$ac_objext \
   7334     conftest$ac_exeext conftest.$ac_ext
   7335 
   7336 # Look for program_invocation_short_name.
   7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
   7338 $as_echo_n "checking for program_invocation_short_name... " >&6; }
   7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7340 /* end confdefs.h.  */
   7341 
   7342 		#include <errno.h>
   7343 		#include <stdio.h>
   7344 		#include <stdlib.h>
   7345 		int main(void) {
   7346 			const char *cp = program_invocation_short_name;
   7347 			printf("%s\n", cp);
   7348 			exit(0);
   7349 		}
   7350 
   7351 _ACEOF
   7352 if ac_fn_c_try_link "$LINENO"; then :
   7353   $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
   7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7355 $as_echo "yes" >&6; }
   7356 else
   7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7358 $as_echo "no" >&6; }
   7359 
   7360 fi
   7361 rm -f core conftest.err conftest.$ac_objext \
   7362     conftest$ac_exeext conftest.$ac_ext
   7363 
   7364 # Look for prctl(PR_SET_NAME).
   7365 ac_fn_c_check_decl "$LINENO" "PR_SET_NAME" "ac_cv_have_decl_PR_SET_NAME" "#include <sys/prctl.h>
   7366 
   7367 "
   7368 if test "x$ac_cv_have_decl_PR_SET_NAME" = xyes; then :
   7369   $as_echo "#define HAVE_PR_SET_NAME 1" >>confdefs.h
   7370 
   7371 fi
   7372 
   7373 
   7374 # Look for fcntl(F_CLOSEM).
   7375 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
   7376 
   7377 "
   7378 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
   7379   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
   7380 
   7381 fi
   7382 
   7383 
   7384 # Look for /proc/$$.
   7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/\$\$" >&5
   7386 $as_echo_n "checking for /proc/\$\$... " >&6; }
   7387 if test -d /proc/$$; then
   7388 	$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
   7389 
   7390 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7391 $as_echo "yes" >&6; }
   7392 else
   7393 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7394 $as_echo "no" >&6; }
   7395 fi
   7396 
   7397 # Man page defaults to mdoc.
   7398 MANFORMAT=mdoc
   7399 
   7400 
   7401 # Figure out the platform.
   7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
   7403 $as_echo_n "checking platform... " >&6; }
   7404 case "$host_os" in
   7405 	*aix*)
   7406 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: aix" >&5
   7407 $as_echo "aix" >&6; }
   7408 		PLATFORM=aix
   7409 		;;
   7410 	*darwin*)
   7411 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
   7412 $as_echo "darwin" >&6; }
   7413 		PLATFORM=darwin
   7414 		#
   7415 		# OS X uses __dead2 instead of __dead, like FreeBSD. But it
   7416 		# defines __dead away so it needs to be removed before we can
   7417 		# replace it.
   7418 		#
   7419 		$as_echo "#define BROKEN___DEAD 1" >>confdefs.h
   7420 
   7421 		#
   7422 		# OS X CMSG_FIRSTHDR is broken, so redefine it with a working
   7423 		# one. daemon works but has some stupid side effects, so use
   7424 		# our internal version which has a workaround.
   7425 		#
   7426 		$as_echo "#define BROKEN_CMSG_FIRSTHDR 1" >>confdefs.h
   7427 
   7428 		case " $LIBOBJS " in
   7429   *" daemon.$ac_objext "* ) ;;
   7430   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
   7431  ;;
   7432 esac
   7433 
   7434 		case " $LIBOBJS " in
   7435   *" daemon-darwin.$ac_objext "* ) ;;
   7436   *) LIBOBJS="$LIBOBJS daemon-darwin.$ac_objext"
   7437  ;;
   7438 esac
   7439 
   7440 		;;
   7441 	*dragonfly*)
   7442 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly" >&5
   7443 $as_echo "dragonfly" >&6; }
   7444 		PLATFORM=dragonfly
   7445 		;;
   7446 	*linux*)
   7447 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
   7448 $as_echo "linux" >&6; }
   7449 		PLATFORM=linux
   7450 		;;
   7451 	*freebsd*)
   7452 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: freebsd" >&5
   7453 $as_echo "freebsd" >&6; }
   7454 		PLATFORM=freebsd
   7455 		;;
   7456 	*netbsd*)
   7457 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: netbsd" >&5
   7458 $as_echo "netbsd" >&6; }
   7459 		PLATFORM=netbsd
   7460 		;;
   7461 	*openbsd*)
   7462 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
   7463 $as_echo "openbsd" >&6; }
   7464 		PLATFORM=openbsd
   7465 		;;
   7466 	*sunos*)
   7467 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sunos" >&5
   7468 $as_echo "sunos" >&6; }
   7469 		PLATFORM=sunos
   7470 		;;
   7471 	*solaris*)
   7472 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: sunos" >&5
   7473 $as_echo "sunos" >&6; }
   7474 		PLATFORM=sunos
   7475 		case `/usr/bin/nroff --version 2>&1` in
   7476 			*GNU*)
   7477 				# Solaris 11.4 and later use GNU groff.
   7478 				MANFORMAT=mdoc
   7479 				;;
   7480 			*)
   7481 				# Solaris 2.0 to 11.3 use AT&T nroff.
   7482 				MANFORMAT=man
   7483 				;;
   7484 		esac
   7485 		;;
   7486 	*hpux*)
   7487 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: hpux" >&5
   7488 $as_echo "hpux" >&6; }
   7489 		PLATFORM=hpux
   7490 		;;
   7491 	*cygwin*|*msys*)
   7492 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
   7493 $as_echo "cygwin" >&6; }
   7494 		PLATFORM=cygwin
   7495 		;;
   7496 	*haiku*)
   7497 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: haiku" >&5
   7498 $as_echo "haiku" >&6; }
   7499 		PLATFORM=haiku
   7500 		;;
   7501 	*)
   7502 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
   7503 $as_echo "unknown" >&6; }
   7504 		PLATFORM=unknown
   7505 		;;
   7506 esac
   7507 
   7508  if test "x$PLATFORM" = xaix; then
   7509   IS_AIX_TRUE=
   7510   IS_AIX_FALSE='#'
   7511 else
   7512   IS_AIX_TRUE='#'
   7513   IS_AIX_FALSE=
   7514 fi
   7515 
   7516  if test "x$PLATFORM" = xdarwin; then
   7517   IS_DARWIN_TRUE=
   7518   IS_DARWIN_FALSE='#'
   7519 else
   7520   IS_DARWIN_TRUE='#'
   7521   IS_DARWIN_FALSE=
   7522 fi
   7523 
   7524  if test "x$PLATFORM" = xdragonfly; then
   7525   IS_DRAGONFLY_TRUE=
   7526   IS_DRAGONFLY_FALSE='#'
   7527 else
   7528   IS_DRAGONFLY_TRUE='#'
   7529   IS_DRAGONFLY_FALSE=
   7530 fi
   7531 
   7532  if test "x$PLATFORM" = xlinux; then
   7533   IS_LINUX_TRUE=
   7534   IS_LINUX_FALSE='#'
   7535 else
   7536   IS_LINUX_TRUE='#'
   7537   IS_LINUX_FALSE=
   7538 fi
   7539 
   7540  if test "x$PLATFORM" = xfreebsd; then
   7541   IS_FREEBSD_TRUE=
   7542   IS_FREEBSD_FALSE='#'
   7543 else
   7544   IS_FREEBSD_TRUE='#'
   7545   IS_FREEBSD_FALSE=
   7546 fi
   7547 
   7548  if test "x$PLATFORM" = xnetbsd; then
   7549   IS_NETBSD_TRUE=
   7550   IS_NETBSD_FALSE='#'
   7551 else
   7552   IS_NETBSD_TRUE='#'
   7553   IS_NETBSD_FALSE=
   7554 fi
   7555 
   7556  if test "x$PLATFORM" = xopenbsd; then
   7557   IS_OPENBSD_TRUE=
   7558   IS_OPENBSD_FALSE='#'
   7559 else
   7560   IS_OPENBSD_TRUE='#'
   7561   IS_OPENBSD_FALSE=
   7562 fi
   7563 
   7564  if test "x$PLATFORM" = xsunos; then
   7565   IS_SUNOS_TRUE=
   7566   IS_SUNOS_FALSE='#'
   7567 else
   7568   IS_SUNOS_TRUE='#'
   7569   IS_SUNOS_FALSE=
   7570 fi
   7571 
   7572  if test "x$PLATFORM" = xhpux; then
   7573   IS_HPUX_TRUE=
   7574   IS_HPUX_FALSE='#'
   7575 else
   7576   IS_HPUX_TRUE='#'
   7577   IS_HPUX_FALSE=
   7578 fi
   7579 
   7580  if test "x$PLATFORM" = xhaiku; then
   7581   IS_HAIKU_TRUE=
   7582   IS_HAIKU_FALSE='#'
   7583 else
   7584   IS_HAIKU_TRUE='#'
   7585   IS_HAIKU_FALSE=
   7586 fi
   7587 
   7588  if test "x$PLATFORM" = xunknown; then
   7589   IS_UNKNOWN_TRUE=
   7590   IS_UNKNOWN_FALSE='#'
   7591 else
   7592   IS_UNKNOWN_TRUE='#'
   7593   IS_UNKNOWN_FALSE=
   7594 fi
   7595 
   7596 
   7597 # Save our CFLAGS/CPPFLAGS/LDFLAGS for the Makefile and restore the old user
   7598 # variables.
   7599 
   7600 CPPFLAGS="$SAVED_CPPFLAGS"
   7601 
   7602 CFLAGS="$SAVED_CFLAGS"
   7603 
   7604 LDFLAGS="$SAVED_LDFLAGS"
   7605 
   7606 # autoconf should create a Makefile.
   7607 ac_config_files="$ac_config_files Makefile"
   7608 
   7609 cat >confcache <<\_ACEOF
   7610 # This file is a shell script that caches the results of configure
   7611 # tests run on this system so they can be shared between configure
   7612 # scripts and configure runs, see configure's option --config-cache.
   7613 # It is not useful on other systems.  If it contains results you don't
   7614 # want to keep, you may remove or edit it.
   7615 #
   7616 # config.status only pays attention to the cache file if you give it
   7617 # the --recheck option to rerun configure.
   7618 #
   7619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   7620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   7621 # following values.
   7622 
   7623 _ACEOF
   7624 
   7625 # The following way of writing the cache mishandles newlines in values,
   7626 # but we know of no workaround that is simple, portable, and efficient.
   7627 # So, we kill variables containing newlines.
   7628 # Ultrix sh set writes to stderr and can't be redirected directly,
   7629 # and sets the high bit in the cache file unless we assign to the vars.
   7630 (
   7631   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   7632     eval ac_val=\$$ac_var
   7633     case $ac_val in #(
   7634     *${as_nl}*)
   7635       case $ac_var in #(
   7636       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   7637 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   7638       esac
   7639       case $ac_var in #(
   7640       _ | IFS | as_nl) ;; #(
   7641       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   7642       *) { eval $ac_var=; unset $ac_var;} ;;
   7643       esac ;;
   7644     esac
   7645   done
   7646 
   7647   (set) 2>&1 |
   7648     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   7649     *${as_nl}ac_space=\ *)
   7650       # `set' does not quote correctly, so add quotes: double-quote
   7651       # substitution turns \\\\ into \\, and sed turns \\ into \.
   7652       sed -n \
   7653 	"s/'/'\\\\''/g;
   7654 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   7655       ;; #(
   7656     *)
   7657       # `set' quotes correctly as required by POSIX, so do not add quotes.
   7658       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   7659       ;;
   7660     esac |
   7661     sort
   7662 ) |
   7663   sed '
   7664      /^ac_cv_env_/b end
   7665      t clear
   7666      :clear
   7667      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   7668      t end
   7669      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   7670      :end' >>confcache
   7671 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   7672   if test -w "$cache_file"; then
   7673     if test "x$cache_file" != "x/dev/null"; then
   7674       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   7675 $as_echo "$as_me: updating cache $cache_file" >&6;}
   7676       if test ! -f "$cache_file" || test -h "$cache_file"; then
   7677 	cat confcache >"$cache_file"
   7678       else
   7679         case $cache_file in #(
   7680         */* | ?:*)
   7681 	  mv -f confcache "$cache_file"$$ &&
   7682 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   7683         *)
   7684 	  mv -f confcache "$cache_file" ;;
   7685 	esac
   7686       fi
   7687     fi
   7688   else
   7689     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   7690 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   7691   fi
   7692 fi
   7693 rm -f confcache
   7694 
   7695 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   7696 # Let make expand exec_prefix.
   7697 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7698 
   7699 # Transform confdefs.h into DEFS.
   7700 # Protect against shell expansion while executing Makefile rules.
   7701 # Protect against Makefile macro expansion.
   7702 #
   7703 # If the first sed substitution is executed (which looks for macros that
   7704 # take arguments), then branch to the quote section.  Otherwise,
   7705 # look for a macro that doesn't take arguments.
   7706 ac_script='
   7707 :mline
   7708 /\\$/{
   7709  N
   7710  s,\\\n,,
   7711  b mline
   7712 }
   7713 t clear
   7714 :clear
   7715 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
   7716 t quote
   7717 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
   7718 t quote
   7719 b any
   7720 :quote
   7721 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
   7722 s/\[/\\&/g
   7723 s/\]/\\&/g
   7724 s/\$/$$/g
   7725 H
   7726 :any
   7727 ${
   7728 	g
   7729 	s/^\n//
   7730 	s/\n/ /g
   7731 	p
   7732 }
   7733 '
   7734 DEFS=`sed -n "$ac_script" confdefs.h`
   7735 
   7736 
   7737 ac_libobjs=
   7738 ac_ltlibobjs=
   7739 U=
   7740 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   7741   # 1. Remove the extension, and $U if already installed.
   7742   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   7743   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   7744   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   7745   #    will be set to the directory where LIBOBJS objects are built.
   7746   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   7747   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   7748 done
   7749 LIBOBJS=$ac_libobjs
   7750 
   7751 LTLIBOBJS=$ac_ltlibobjs
   7752 
   7753 
   7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   7755 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   7756    if test -n "$am_sleep_pid"; then
   7757      # Hide warnings about reused PIDs.
   7758      wait $am_sleep_pid 2>/dev/null
   7759    fi
   7760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   7761 $as_echo "done" >&6; }
   7762  if test -n "$EXEEXT"; then
   7763   am__EXEEXT_TRUE=
   7764   am__EXEEXT_FALSE='#'
   7765 else
   7766   am__EXEEXT_TRUE='#'
   7767   am__EXEEXT_FALSE=
   7768 fi
   7769 
   7770 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   7771   as_fn_error $? "conditional \"AMDEP\" was never defined.
   7772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7773 fi
   7774 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   7775   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   7776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7777 fi
   7778 if test -z "${IS_DEBUG_TRUE}" && test -z "${IS_DEBUG_FALSE}"; then
   7779   as_fn_error $? "conditional \"IS_DEBUG\" was never defined.
   7780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7781 fi
   7782 if test -z "${NEED_FUZZING_TRUE}" && test -z "${NEED_FUZZING_FALSE}"; then
   7783   as_fn_error $? "conditional \"NEED_FUZZING\" was never defined.
   7784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7785 fi
   7786 if test -z "${IS_GCC_TRUE}" && test -z "${IS_GCC_FALSE}"; then
   7787   as_fn_error $? "conditional \"IS_GCC\" was never defined.
   7788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7789 fi
   7790 if test -z "${IS_SUNCC_TRUE}" && test -z "${IS_SUNCC_FALSE}"; then
   7791   as_fn_error $? "conditional \"IS_SUNCC\" was never defined.
   7792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7793 fi
   7794 if test -z "${HAVE_UTF8PROC_TRUE}" && test -z "${HAVE_UTF8PROC_FALSE}"; then
   7795   as_fn_error $? "conditional \"HAVE_UTF8PROC\" was never defined.
   7796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7797 fi
   7798 if test -z "${NEED_FORKPTY_TRUE}" && test -z "${NEED_FORKPTY_FALSE}"; then
   7799   as_fn_error $? "conditional \"NEED_FORKPTY\" was never defined.
   7800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7801 fi
   7802 if test -z "${IS_AIX_TRUE}" && test -z "${IS_AIX_FALSE}"; then
   7803   as_fn_error $? "conditional \"IS_AIX\" was never defined.
   7804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7805 fi
   7806 if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
   7807   as_fn_error $? "conditional \"IS_DARWIN\" was never defined.
   7808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7809 fi
   7810 if test -z "${IS_DRAGONFLY_TRUE}" && test -z "${IS_DRAGONFLY_FALSE}"; then
   7811   as_fn_error $? "conditional \"IS_DRAGONFLY\" was never defined.
   7812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7813 fi
   7814 if test -z "${IS_LINUX_TRUE}" && test -z "${IS_LINUX_FALSE}"; then
   7815   as_fn_error $? "conditional \"IS_LINUX\" was never defined.
   7816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7817 fi
   7818 if test -z "${IS_FREEBSD_TRUE}" && test -z "${IS_FREEBSD_FALSE}"; then
   7819   as_fn_error $? "conditional \"IS_FREEBSD\" was never defined.
   7820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7821 fi
   7822 if test -z "${IS_NETBSD_TRUE}" && test -z "${IS_NETBSD_FALSE}"; then
   7823   as_fn_error $? "conditional \"IS_NETBSD\" was never defined.
   7824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7825 fi
   7826 if test -z "${IS_OPENBSD_TRUE}" && test -z "${IS_OPENBSD_FALSE}"; then
   7827   as_fn_error $? "conditional \"IS_OPENBSD\" was never defined.
   7828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7829 fi
   7830 if test -z "${IS_SUNOS_TRUE}" && test -z "${IS_SUNOS_FALSE}"; then
   7831   as_fn_error $? "conditional \"IS_SUNOS\" was never defined.
   7832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7833 fi
   7834 if test -z "${IS_HPUX_TRUE}" && test -z "${IS_HPUX_FALSE}"; then
   7835   as_fn_error $? "conditional \"IS_HPUX\" was never defined.
   7836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7837 fi
   7838 if test -z "${IS_HAIKU_TRUE}" && test -z "${IS_HAIKU_FALSE}"; then
   7839   as_fn_error $? "conditional \"IS_HAIKU\" was never defined.
   7840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7841 fi
   7842 if test -z "${IS_UNKNOWN_TRUE}" && test -z "${IS_UNKNOWN_FALSE}"; then
   7843   as_fn_error $? "conditional \"IS_UNKNOWN\" was never defined.
   7844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   7845 fi
   7846 
   7847 : "${CONFIG_STATUS=./config.status}"
   7848 ac_write_fail=0
   7849 ac_clean_files_save=$ac_clean_files
   7850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   7851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   7852 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   7853 as_write_fail=0
   7854 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   7855 #! $SHELL
   7856 # Generated by $as_me.
   7857 # Run this file to recreate the current configuration.
   7858 # Compiler output produced by configure, useful for debugging
   7859 # configure, is in config.log if it exists.
   7860 
   7861 debug=false
   7862 ac_cs_recheck=false
   7863 ac_cs_silent=false
   7864 
   7865 SHELL=\${CONFIG_SHELL-$SHELL}
   7866 export SHELL
   7867 _ASEOF
   7868 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   7869 ## -------------------- ##
   7870 ## M4sh Initialization. ##
   7871 ## -------------------- ##
   7872 
   7873 # Be more Bourne compatible
   7874 DUALCASE=1; export DUALCASE # for MKS sh
   7875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   7876   emulate sh
   7877   NULLCMD=:
   7878   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   7879   # is contrary to our usage.  Disable this feature.
   7880   alias -g '${1+"$@"}'='"$@"'
   7881   setopt NO_GLOB_SUBST
   7882 else
   7883   case `(set -o) 2>/dev/null` in #(
   7884   *posix*) :
   7885     set -o posix ;; #(
   7886   *) :
   7887      ;;
   7888 esac
   7889 fi
   7890 
   7891 
   7892 as_nl='
   7893 '
   7894 export as_nl
   7895 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   7896 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   7897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   7898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   7899 # Prefer a ksh shell builtin over an external printf program on Solaris,
   7900 # but without wasting forks for bash or zsh.
   7901 if test -z "$BASH_VERSION$ZSH_VERSION" \
   7902     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   7903   as_echo='print -r --'
   7904   as_echo_n='print -rn --'
   7905 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   7906   as_echo='printf %s\n'
   7907   as_echo_n='printf %s'
   7908 else
   7909   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   7910     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   7911     as_echo_n='/usr/ucb/echo -n'
   7912   else
   7913     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   7914     as_echo_n_body='eval
   7915       arg=$1;
   7916       case $arg in #(
   7917       *"$as_nl"*)
   7918 	expr "X$arg" : "X\\(.*\\)$as_nl";
   7919 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   7920       esac;
   7921       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   7922     '
   7923     export as_echo_n_body
   7924     as_echo_n='sh -c $as_echo_n_body as_echo'
   7925   fi
   7926   export as_echo_body
   7927   as_echo='sh -c $as_echo_body as_echo'
   7928 fi
   7929 
   7930 # The user is always right.
   7931 if test "${PATH_SEPARATOR+set}" != set; then
   7932   PATH_SEPARATOR=:
   7933   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   7934     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   7935       PATH_SEPARATOR=';'
   7936   }
   7937 fi
   7938 
   7939 
   7940 # IFS
   7941 # We need space, tab and new line, in precisely that order.  Quoting is
   7942 # there to prevent editors from complaining about space-tab.
   7943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   7944 # splitting by setting IFS to empty value.)
   7945 IFS=" ""	$as_nl"
   7946 
   7947 # Find who we are.  Look in the path if we contain no directory separator.
   7948 as_myself=
   7949 case $0 in #((
   7950   *[\\/]* ) as_myself=$0 ;;
   7951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7952 for as_dir in $PATH
   7953 do
   7954   IFS=$as_save_IFS
   7955   test -z "$as_dir" && as_dir=.
   7956     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   7957   done
   7958 IFS=$as_save_IFS
   7959 
   7960      ;;
   7961 esac
   7962 # We did not find ourselves, most probably we were run as `sh COMMAND'
   7963 # in which case we are not to be found in the path.
   7964 if test "x$as_myself" = x; then
   7965   as_myself=$0
   7966 fi
   7967 if test ! -f "$as_myself"; then
   7968   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   7969   exit 1
   7970 fi
   7971 
   7972 # Unset variables that we do not need and which cause bugs (e.g. in
   7973 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   7974 # suppresses any "Segmentation fault" message there.  '((' could
   7975 # trigger a bug in pdksh 5.2.14.
   7976 for as_var in BASH_ENV ENV MAIL MAILPATH
   7977 do eval test x\${$as_var+set} = xset \
   7978   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   7979 done
   7980 PS1='$ '
   7981 PS2='> '
   7982 PS4='+ '
   7983 
   7984 # NLS nuisances.
   7985 LC_ALL=C
   7986 export LC_ALL
   7987 LANGUAGE=C
   7988 export LANGUAGE
   7989 
   7990 # CDPATH.
   7991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   7992 
   7993 
   7994 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   7995 # ----------------------------------------
   7996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   7997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   7998 # script with STATUS, using 1 if that was 0.
   7999 as_fn_error ()
   8000 {
   8001   as_status=$1; test $as_status -eq 0 && as_status=1
   8002   if test "$4"; then
   8003     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   8004     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   8005   fi
   8006   $as_echo "$as_me: error: $2" >&2
   8007   as_fn_exit $as_status
   8008 } # as_fn_error
   8009 
   8010 
   8011 # as_fn_set_status STATUS
   8012 # -----------------------
   8013 # Set $? to STATUS, without forking.
   8014 as_fn_set_status ()
   8015 {
   8016   return $1
   8017 } # as_fn_set_status
   8018 
   8019 # as_fn_exit STATUS
   8020 # -----------------
   8021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   8022 as_fn_exit ()
   8023 {
   8024   set +e
   8025   as_fn_set_status $1
   8026   exit $1
   8027 } # as_fn_exit
   8028 
   8029 # as_fn_unset VAR
   8030 # ---------------
   8031 # Portably unset VAR.
   8032 as_fn_unset ()
   8033 {
   8034   { eval $1=; unset $1;}
   8035 }
   8036 as_unset=as_fn_unset
   8037 # as_fn_append VAR VALUE
   8038 # ----------------------
   8039 # Append the text in VALUE to the end of the definition contained in VAR. Take
   8040 # advantage of any shell optimizations that allow amortized linear growth over
   8041 # repeated appends, instead of the typical quadratic growth present in naive
   8042 # implementations.
   8043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   8044   eval 'as_fn_append ()
   8045   {
   8046     eval $1+=\$2
   8047   }'
   8048 else
   8049   as_fn_append ()
   8050   {
   8051     eval $1=\$$1\$2
   8052   }
   8053 fi # as_fn_append
   8054 
   8055 # as_fn_arith ARG...
   8056 # ------------------
   8057 # Perform arithmetic evaluation on the ARGs, and store the result in the
   8058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   8059 # must be portable across $(()) and expr.
   8060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   8061   eval 'as_fn_arith ()
   8062   {
   8063     as_val=$(( $* ))
   8064   }'
   8065 else
   8066   as_fn_arith ()
   8067   {
   8068     as_val=`expr "$@" || test $? -eq 1`
   8069   }
   8070 fi # as_fn_arith
   8071 
   8072 
   8073 if expr a : '\(a\)' >/dev/null 2>&1 &&
   8074    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8075   as_expr=expr
   8076 else
   8077   as_expr=false
   8078 fi
   8079 
   8080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   8081   as_basename=basename
   8082 else
   8083   as_basename=false
   8084 fi
   8085 
   8086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   8087   as_dirname=dirname
   8088 else
   8089   as_dirname=false
   8090 fi
   8091 
   8092 as_me=`$as_basename -- "$0" ||
   8093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   8094 	 X"$0" : 'X\(//\)$' \| \
   8095 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   8096 $as_echo X/"$0" |
   8097     sed '/^.*\/\([^/][^/]*\)\/*$/{
   8098 	    s//\1/
   8099 	    q
   8100 	  }
   8101 	  /^X\/\(\/\/\)$/{
   8102 	    s//\1/
   8103 	    q
   8104 	  }
   8105 	  /^X\/\(\/\).*/{
   8106 	    s//\1/
   8107 	    q
   8108 	  }
   8109 	  s/.*/./; q'`
   8110 
   8111 # Avoid depending upon Character Ranges.
   8112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   8113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   8114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   8115 as_cr_digits='0123456789'
   8116 as_cr_alnum=$as_cr_Letters$as_cr_digits
   8117 
   8118 ECHO_C= ECHO_N= ECHO_T=
   8119 case `echo -n x` in #(((((
   8120 -n*)
   8121   case `echo 'xy\c'` in
   8122   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   8123   xy)  ECHO_C='\c';;
   8124   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   8125        ECHO_T='	';;
   8126   esac;;
   8127 *)
   8128   ECHO_N='-n';;
   8129 esac
   8130 
   8131 rm -f conf$$ conf$$.exe conf$$.file
   8132 if test -d conf$$.dir; then
   8133   rm -f conf$$.dir/conf$$.file
   8134 else
   8135   rm -f conf$$.dir
   8136   mkdir conf$$.dir 2>/dev/null
   8137 fi
   8138 if (echo >conf$$.file) 2>/dev/null; then
   8139   if ln -s conf$$.file conf$$ 2>/dev/null; then
   8140     as_ln_s='ln -s'
   8141     # ... but there are two gotchas:
   8142     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   8143     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   8144     # In both cases, we have to default to `cp -pR'.
   8145     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   8146       as_ln_s='cp -pR'
   8147   elif ln conf$$.file conf$$ 2>/dev/null; then
   8148     as_ln_s=ln
   8149   else
   8150     as_ln_s='cp -pR'
   8151   fi
   8152 else
   8153   as_ln_s='cp -pR'
   8154 fi
   8155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   8156 rmdir conf$$.dir 2>/dev/null
   8157 
   8158 
   8159 # as_fn_mkdir_p
   8160 # -------------
   8161 # Create "$as_dir" as a directory, including parents if necessary.
   8162 as_fn_mkdir_p ()
   8163 {
   8164 
   8165   case $as_dir in #(
   8166   -*) as_dir=./$as_dir;;
   8167   esac
   8168   test -d "$as_dir" || eval $as_mkdir_p || {
   8169     as_dirs=
   8170     while :; do
   8171       case $as_dir in #(
   8172       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   8173       *) as_qdir=$as_dir;;
   8174       esac
   8175       as_dirs="'$as_qdir' $as_dirs"
   8176       as_dir=`$as_dirname -- "$as_dir" ||
   8177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8178 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   8179 	 X"$as_dir" : 'X\(//\)$' \| \
   8180 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   8181 $as_echo X"$as_dir" |
   8182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8183 	    s//\1/
   8184 	    q
   8185 	  }
   8186 	  /^X\(\/\/\)[^/].*/{
   8187 	    s//\1/
   8188 	    q
   8189 	  }
   8190 	  /^X\(\/\/\)$/{
   8191 	    s//\1/
   8192 	    q
   8193 	  }
   8194 	  /^X\(\/\).*/{
   8195 	    s//\1/
   8196 	    q
   8197 	  }
   8198 	  s/.*/./; q'`
   8199       test -d "$as_dir" && break
   8200     done
   8201     test -z "$as_dirs" || eval "mkdir $as_dirs"
   8202   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   8203 
   8204 
   8205 } # as_fn_mkdir_p
   8206 if mkdir -p . 2>/dev/null; then
   8207   as_mkdir_p='mkdir -p "$as_dir"'
   8208 else
   8209   test -d ./-p && rmdir ./-p
   8210   as_mkdir_p=false
   8211 fi
   8212 
   8213 
   8214 # as_fn_executable_p FILE
   8215 # -----------------------
   8216 # Test if FILE is an executable regular file.
   8217 as_fn_executable_p ()
   8218 {
   8219   test -f "$1" && test -x "$1"
   8220 } # as_fn_executable_p
   8221 as_test_x='test -x'
   8222 as_executable_p=as_fn_executable_p
   8223 
   8224 # Sed expression to map a string onto a valid CPP name.
   8225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   8226 
   8227 # Sed expression to map a string onto a valid variable name.
   8228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   8229 
   8230 
   8231 exec 6>&1
   8232 ## ----------------------------------- ##
   8233 ## Main body of $CONFIG_STATUS script. ##
   8234 ## ----------------------------------- ##
   8235 _ASEOF
   8236 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   8237 
   8238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8239 # Save the log message, to keep $0 and so on meaningful, and to
   8240 # report actual input values of CONFIG_FILES etc. instead of their
   8241 # values after options handling.
   8242 ac_log="
   8243 This file was extended by tmux $as_me 3.2a, which was
   8244 generated by GNU Autoconf 2.69.  Invocation command line was
   8245 
   8246   CONFIG_FILES    = $CONFIG_FILES
   8247   CONFIG_HEADERS  = $CONFIG_HEADERS
   8248   CONFIG_LINKS    = $CONFIG_LINKS
   8249   CONFIG_COMMANDS = $CONFIG_COMMANDS
   8250   $ $0 $@
   8251 
   8252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   8253 "
   8254 
   8255 _ACEOF
   8256 
   8257 case $ac_config_files in *"
   8258 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   8259 esac
   8260 
   8261 
   8262 
   8263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8264 # Files that config.status was made for.
   8265 config_files="$ac_config_files"
   8266 config_commands="$ac_config_commands"
   8267 
   8268 _ACEOF
   8269 
   8270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8271 ac_cs_usage="\
   8272 \`$as_me' instantiates files and other configuration actions
   8273 from templates according to the current configuration.  Unless the files
   8274 and actions are specified as TAGs, all are instantiated by default.
   8275 
   8276 Usage: $0 [OPTION]... [TAG]...
   8277 
   8278   -h, --help       print this help, then exit
   8279   -V, --version    print version number and configuration settings, then exit
   8280       --config     print configuration, then exit
   8281   -q, --quiet, --silent
   8282                    do not print progress messages
   8283   -d, --debug      don't remove temporary files
   8284       --recheck    update $as_me by reconfiguring in the same conditions
   8285       --file=FILE[:TEMPLATE]
   8286                    instantiate the configuration file FILE
   8287 
   8288 Configuration files:
   8289 $config_files
   8290 
   8291 Configuration commands:
   8292 $config_commands
   8293 
   8294 Report bugs to the package provider."
   8295 
   8296 _ACEOF
   8297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   8299 ac_cs_version="\\
   8300 tmux config.status 3.2a
   8301 configured by $0, generated by GNU Autoconf 2.69,
   8302   with options \\"\$ac_cs_config\\"
   8303 
   8304 Copyright (C) 2012 Free Software Foundation, Inc.
   8305 This config.status script is free software; the Free Software Foundation
   8306 gives unlimited permission to copy, distribute and modify it."
   8307 
   8308 ac_pwd='$ac_pwd'
   8309 srcdir='$srcdir'
   8310 INSTALL='$INSTALL'
   8311 MKDIR_P='$MKDIR_P'
   8312 AWK='$AWK'
   8313 test -n "\$AWK" || AWK=awk
   8314 _ACEOF
   8315 
   8316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8317 # The default lists apply if the user does not specify any file.
   8318 ac_need_defaults=:
   8319 while test $# != 0
   8320 do
   8321   case $1 in
   8322   --*=?*)
   8323     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8324     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   8325     ac_shift=:
   8326     ;;
   8327   --*=)
   8328     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8329     ac_optarg=
   8330     ac_shift=:
   8331     ;;
   8332   *)
   8333     ac_option=$1
   8334     ac_optarg=$2
   8335     ac_shift=shift
   8336     ;;
   8337   esac
   8338 
   8339   case $ac_option in
   8340   # Handling of the options.
   8341   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   8342     ac_cs_recheck=: ;;
   8343   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   8344     $as_echo "$ac_cs_version"; exit ;;
   8345   --config | --confi | --conf | --con | --co | --c )
   8346     $as_echo "$ac_cs_config"; exit ;;
   8347   --debug | --debu | --deb | --de | --d | -d )
   8348     debug=: ;;
   8349   --file | --fil | --fi | --f )
   8350     $ac_shift
   8351     case $ac_optarg in
   8352     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   8353     '') as_fn_error $? "missing file argument" ;;
   8354     esac
   8355     as_fn_append CONFIG_FILES " '$ac_optarg'"
   8356     ac_need_defaults=false;;
   8357   --he | --h |  --help | --hel | -h )
   8358     $as_echo "$ac_cs_usage"; exit ;;
   8359   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   8360   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   8361     ac_cs_silent=: ;;
   8362 
   8363   # This is an error.
   8364   -*) as_fn_error $? "unrecognized option: \`$1'
   8365 Try \`$0 --help' for more information." ;;
   8366 
   8367   *) as_fn_append ac_config_targets " $1"
   8368      ac_need_defaults=false ;;
   8369 
   8370   esac
   8371   shift
   8372 done
   8373 
   8374 ac_configure_extra_args=
   8375 
   8376 if $ac_cs_silent; then
   8377   exec 6>/dev/null
   8378   ac_configure_extra_args="$ac_configure_extra_args --silent"
   8379 fi
   8380 
   8381 _ACEOF
   8382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8383 if \$ac_cs_recheck; then
   8384   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   8385   shift
   8386   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   8387   CONFIG_SHELL='$SHELL'
   8388   export CONFIG_SHELL
   8389   exec "\$@"
   8390 fi
   8391 
   8392 _ACEOF
   8393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8394 exec 5>>config.log
   8395 {
   8396   echo
   8397   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   8398 ## Running $as_me. ##
   8399 _ASBOX
   8400   $as_echo "$ac_log"
   8401 } >&5
   8402 
   8403 _ACEOF
   8404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8405 #
   8406 # INIT-COMMANDS
   8407 #
   8408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   8409 
   8410 _ACEOF
   8411 
   8412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8413 
   8414 # Handling of arguments.
   8415 for ac_config_target in $ac_config_targets
   8416 do
   8417   case $ac_config_target in
   8418     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   8419     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   8420 
   8421   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   8422   esac
   8423 done
   8424 
   8425 
   8426 # If the user did not use the arguments to specify the items to instantiate,
   8427 # then the envvar interface is used.  Set only those that are not.
   8428 # We use the long form for the default assignment because of an extremely
   8429 # bizarre bug on SunOS 4.1.3.
   8430 if $ac_need_defaults; then
   8431   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   8432   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   8433 fi
   8434 
   8435 # Have a temporary directory for convenience.  Make it in the build tree
   8436 # simply because there is no reason against having it here, and in addition,
   8437 # creating and moving files from /tmp can sometimes cause problems.
   8438 # Hook for its removal unless debugging.
   8439 # Note that there is a small window in which the directory will not be cleaned:
   8440 # after its creation but before its name has been assigned to `$tmp'.
   8441 $debug ||
   8442 {
   8443   tmp= ac_tmp=
   8444   trap 'exit_status=$?
   8445   : "${ac_tmp:=$tmp}"
   8446   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   8447 ' 0
   8448   trap 'as_fn_exit 1' 1 2 13 15
   8449 }
   8450 # Create a (secure) tmp directory for tmp files.
   8451 
   8452 {
   8453   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   8454   test -d "$tmp"
   8455 }  ||
   8456 {
   8457   tmp=./conf$$-$RANDOM
   8458   (umask 077 && mkdir "$tmp")
   8459 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   8460 ac_tmp=$tmp
   8461 
   8462 # Set up the scripts for CONFIG_FILES section.
   8463 # No need to generate them if there are no CONFIG_FILES.
   8464 # This happens for instance with `./config.status config.h'.
   8465 if test -n "$CONFIG_FILES"; then
   8466 
   8467 
   8468 ac_cr=`echo X | tr X '\015'`
   8469 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   8470 # But we know of no other shell where ac_cr would be empty at this
   8471 # point, so we can use a bashism as a fallback.
   8472 if test "x$ac_cr" = x; then
   8473   eval ac_cr=\$\'\\r\'
   8474 fi
   8475 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   8476 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   8477   ac_cs_awk_cr='\\r'
   8478 else
   8479   ac_cs_awk_cr=$ac_cr
   8480 fi
   8481 
   8482 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   8483 _ACEOF
   8484 
   8485 
   8486 {
   8487   echo "cat >conf$$subs.awk <<_ACEOF" &&
   8488   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   8489   echo "_ACEOF"
   8490 } >conf$$subs.sh ||
   8491   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8492 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   8493 ac_delim='%!_!# '
   8494 for ac_last_try in false false false false false :; do
   8495   . ./conf$$subs.sh ||
   8496     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8497 
   8498   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   8499   if test $ac_delim_n = $ac_delim_num; then
   8500     break
   8501   elif $ac_last_try; then
   8502     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8503   else
   8504     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8505   fi
   8506 done
   8507 rm -f conf$$subs.sh
   8508 
   8509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8510 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   8511 _ACEOF
   8512 sed -n '
   8513 h
   8514 s/^/S["/; s/!.*/"]=/
   8515 p
   8516 g
   8517 s/^[^!]*!//
   8518 :repl
   8519 t repl
   8520 s/'"$ac_delim"'$//
   8521 t delim
   8522 :nl
   8523 h
   8524 s/\(.\{148\}\)..*/\1/
   8525 t more1
   8526 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   8527 p
   8528 n
   8529 b repl
   8530 :more1
   8531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8532 p
   8533 g
   8534 s/.\{148\}//
   8535 t nl
   8536 :delim
   8537 h
   8538 s/\(.\{148\}\)..*/\1/
   8539 t more2
   8540 s/["\\]/\\&/g; s/^/"/; s/$/"/
   8541 p
   8542 b
   8543 :more2
   8544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8545 p
   8546 g
   8547 s/.\{148\}//
   8548 t delim
   8549 ' <conf$$subs.awk | sed '
   8550 /^[^""]/{
   8551   N
   8552   s/\n//
   8553 }
   8554 ' >>$CONFIG_STATUS || ac_write_fail=1
   8555 rm -f conf$$subs.awk
   8556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8557 _ACAWK
   8558 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   8559   for (key in S) S_is_set[key] = 1
   8560   FS = ""
   8561 
   8562 }
   8563 {
   8564   line = $ 0
   8565   nfields = split(line, field, "@")
   8566   substed = 0
   8567   len = length(field[1])
   8568   for (i = 2; i < nfields; i++) {
   8569     key = field[i]
   8570     keylen = length(key)
   8571     if (S_is_set[key]) {
   8572       value = S[key]
   8573       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   8574       len += length(value) + length(field[++i])
   8575       substed = 1
   8576     } else
   8577       len += 1 + keylen
   8578   }
   8579 
   8580   print line
   8581 }
   8582 
   8583 _ACAWK
   8584 _ACEOF
   8585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8586 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   8587   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   8588 else
   8589   cat
   8590 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   8591   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   8592 _ACEOF
   8593 
   8594 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   8595 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   8596 # trailing colons and then remove the whole line if VPATH becomes empty
   8597 # (actually we leave an empty line to preserve line numbers).
   8598 if test "x$srcdir" = x.; then
   8599   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   8600 h
   8601 s///
   8602 s/^/:/
   8603 s/[	 ]*$/:/
   8604 s/:\$(srcdir):/:/g
   8605 s/:\${srcdir}:/:/g
   8606 s/:@srcdir@:/:/g
   8607 s/^:*//
   8608 s/:*$//
   8609 x
   8610 s/\(=[	 ]*\).*/\1/
   8611 G
   8612 s/\n//
   8613 s/^[^=]*=[	 ]*$//
   8614 }'
   8615 fi
   8616 
   8617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8618 fi # test -n "$CONFIG_FILES"
   8619 
   8620 
   8621 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
   8622 shift
   8623 for ac_tag
   8624 do
   8625   case $ac_tag in
   8626   :[FHLC]) ac_mode=$ac_tag; continue;;
   8627   esac
   8628   case $ac_mode$ac_tag in
   8629   :[FHL]*:*);;
   8630   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   8631   :[FH]-) ac_tag=-:-;;
   8632   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   8633   esac
   8634   ac_save_IFS=$IFS
   8635   IFS=:
   8636   set x $ac_tag
   8637   IFS=$ac_save_IFS
   8638   shift
   8639   ac_file=$1
   8640   shift
   8641 
   8642   case $ac_mode in
   8643   :L) ac_source=$1;;
   8644   :[FH])
   8645     ac_file_inputs=
   8646     for ac_f
   8647     do
   8648       case $ac_f in
   8649       -) ac_f="$ac_tmp/stdin";;
   8650       *) # Look for the file first in the build tree, then in the source tree
   8651 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   8652 	 # because $ac_f cannot contain `:'.
   8653 	 test -f "$ac_f" ||
   8654 	   case $ac_f in
   8655 	   [\\/$]*) false;;
   8656 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   8657 	   esac ||
   8658 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   8659       esac
   8660       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   8661       as_fn_append ac_file_inputs " '$ac_f'"
   8662     done
   8663 
   8664     # Let's still pretend it is `configure' which instantiates (i.e., don't
   8665     # use $as_me), people would be surprised to read:
   8666     #    /* config.h.  Generated by config.status.  */
   8667     configure_input='Generated from '`
   8668 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   8669 	`' by configure.'
   8670     if test x"$ac_file" != x-; then
   8671       configure_input="$ac_file.  $configure_input"
   8672       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   8673 $as_echo "$as_me: creating $ac_file" >&6;}
   8674     fi
   8675     # Neutralize special characters interpreted by sed in replacement strings.
   8676     case $configure_input in #(
   8677     *\&* | *\|* | *\\* )
   8678        ac_sed_conf_input=`$as_echo "$configure_input" |
   8679        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   8680     *) ac_sed_conf_input=$configure_input;;
   8681     esac
   8682 
   8683     case $ac_tag in
   8684     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   8685       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   8686     esac
   8687     ;;
   8688   esac
   8689 
   8690   ac_dir=`$as_dirname -- "$ac_file" ||
   8691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8692 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   8693 	 X"$ac_file" : 'X\(//\)$' \| \
   8694 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   8695 $as_echo X"$ac_file" |
   8696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8697 	    s//\1/
   8698 	    q
   8699 	  }
   8700 	  /^X\(\/\/\)[^/].*/{
   8701 	    s//\1/
   8702 	    q
   8703 	  }
   8704 	  /^X\(\/\/\)$/{
   8705 	    s//\1/
   8706 	    q
   8707 	  }
   8708 	  /^X\(\/\).*/{
   8709 	    s//\1/
   8710 	    q
   8711 	  }
   8712 	  s/.*/./; q'`
   8713   as_dir="$ac_dir"; as_fn_mkdir_p
   8714   ac_builddir=.
   8715 
   8716 case "$ac_dir" in
   8717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8718 *)
   8719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   8720   # A ".." for each directory in $ac_dir_suffix.
   8721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   8722   case $ac_top_builddir_sub in
   8723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   8725   esac ;;
   8726 esac
   8727 ac_abs_top_builddir=$ac_pwd
   8728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   8729 # for backward compatibility:
   8730 ac_top_builddir=$ac_top_build_prefix
   8731 
   8732 case $srcdir in
   8733   .)  # We are building in place.
   8734     ac_srcdir=.
   8735     ac_top_srcdir=$ac_top_builddir_sub
   8736     ac_abs_top_srcdir=$ac_pwd ;;
   8737   [\\/]* | ?:[\\/]* )  # Absolute name.
   8738     ac_srcdir=$srcdir$ac_dir_suffix;
   8739     ac_top_srcdir=$srcdir
   8740     ac_abs_top_srcdir=$srcdir ;;
   8741   *) # Relative name.
   8742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   8743     ac_top_srcdir=$ac_top_build_prefix$srcdir
   8744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   8745 esac
   8746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   8747 
   8748 
   8749   case $ac_mode in
   8750   :F)
   8751   #
   8752   # CONFIG_FILE
   8753   #
   8754 
   8755   case $INSTALL in
   8756   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   8757   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   8758   esac
   8759   ac_MKDIR_P=$MKDIR_P
   8760   case $MKDIR_P in
   8761   [\\/$]* | ?:[\\/]* ) ;;
   8762   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   8763   esac
   8764 _ACEOF
   8765 
   8766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8767 # If the template does not know about datarootdir, expand it.
   8768 # FIXME: This hack should be removed a few years after 2.60.
   8769 ac_datarootdir_hack=; ac_datarootdir_seen=
   8770 ac_sed_dataroot='
   8771 /datarootdir/ {
   8772   p
   8773   q
   8774 }
   8775 /@datadir@/p
   8776 /@docdir@/p
   8777 /@infodir@/p
   8778 /@localedir@/p
   8779 /@mandir@/p'
   8780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   8781 *datarootdir*) ac_datarootdir_seen=yes;;
   8782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   8783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   8784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   8785 _ACEOF
   8786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8787   ac_datarootdir_hack='
   8788   s&@datadir@&$datadir&g
   8789   s&@docdir@&$docdir&g
   8790   s&@infodir@&$infodir&g
   8791   s&@localedir@&$localedir&g
   8792   s&@mandir@&$mandir&g
   8793   s&\\\${datarootdir}&$datarootdir&g' ;;
   8794 esac
   8795 _ACEOF
   8796 
   8797 # Neutralize VPATH when `$srcdir' = `.'.
   8798 # Shell code in configure.ac might set extrasub.
   8799 # FIXME: do we really want to maintain this feature?
   8800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8801 ac_sed_extra="$ac_vpsub
   8802 $extrasub
   8803 _ACEOF
   8804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8805 :t
   8806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   8807 s|@configure_input@|$ac_sed_conf_input|;t t
   8808 s&@top_builddir@&$ac_top_builddir_sub&;t t
   8809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   8810 s&@srcdir@&$ac_srcdir&;t t
   8811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   8812 s&@top_srcdir@&$ac_top_srcdir&;t t
   8813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   8814 s&@builddir@&$ac_builddir&;t t
   8815 s&@abs_builddir@&$ac_abs_builddir&;t t
   8816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   8817 s&@INSTALL@&$ac_INSTALL&;t t
   8818 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   8819 $ac_datarootdir_hack
   8820 "
   8821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   8822   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   8823 
   8824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   8825   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   8826   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   8827       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   8828   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8829 which seems to be undefined.  Please make sure it is defined" >&5
   8830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8831 which seems to be undefined.  Please make sure it is defined" >&2;}
   8832 
   8833   rm -f "$ac_tmp/stdin"
   8834   case $ac_file in
   8835   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   8836   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   8837   esac \
   8838   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   8839  ;;
   8840 
   8841 
   8842   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   8843 $as_echo "$as_me: executing $ac_file commands" >&6;}
   8844  ;;
   8845   esac
   8846 
   8847 
   8848   case $ac_file$ac_mode in
   8849     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   8850   # Older Autoconf quotes --file arguments for eval, but not when files
   8851   # are listed without --file.  Let's play safe and only enable the eval
   8852   # if we detect the quoting.
   8853   case $CONFIG_FILES in
   8854   *\'*) eval set x "$CONFIG_FILES" ;;
   8855   *)   set x $CONFIG_FILES ;;
   8856   esac
   8857   shift
   8858   for mf
   8859   do
   8860     # Strip MF so we end up with the name of the file.
   8861     mf=`echo "$mf" | sed -e 's/:.*$//'`
   8862     # Check whether this is an Automake generated Makefile or not.
   8863     # We used to match only the files named 'Makefile.in', but
   8864     # some people rename them; so instead we look at the file content.
   8865     # Grep'ing the first line is not enough: some people post-process
   8866     # each Makefile.in and add a new line on top of each file to say so.
   8867     # Grep'ing the whole file is not good either: AIX grep has a line
   8868     # limit of 2048, but all sed's we know have understand at least 4000.
   8869     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   8870       dirpart=`$as_dirname -- "$mf" ||
   8871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8872 	 X"$mf" : 'X\(//\)[^/]' \| \
   8873 	 X"$mf" : 'X\(//\)$' \| \
   8874 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   8875 $as_echo X"$mf" |
   8876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8877 	    s//\1/
   8878 	    q
   8879 	  }
   8880 	  /^X\(\/\/\)[^/].*/{
   8881 	    s//\1/
   8882 	    q
   8883 	  }
   8884 	  /^X\(\/\/\)$/{
   8885 	    s//\1/
   8886 	    q
   8887 	  }
   8888 	  /^X\(\/\).*/{
   8889 	    s//\1/
   8890 	    q
   8891 	  }
   8892 	  s/.*/./; q'`
   8893     else
   8894       continue
   8895     fi
   8896     # Extract the definition of DEPDIR, am__include, and am__quote
   8897     # from the Makefile without running 'make'.
   8898     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   8899     test -z "$DEPDIR" && continue
   8900     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   8901     test -z "$am__include" && continue
   8902     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   8903     # Find all dependency output files, they are included files with
   8904     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   8905     # simplest approach to changing $(DEPDIR) to its actual value in the
   8906     # expansion.
   8907     for file in `sed -n "
   8908       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   8909 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   8910       # Make sure the directory exists.
   8911       test -f "$dirpart/$file" && continue
   8912       fdir=`$as_dirname -- "$file" ||
   8913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8914 	 X"$file" : 'X\(//\)[^/]' \| \
   8915 	 X"$file" : 'X\(//\)$' \| \
   8916 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   8917 $as_echo X"$file" |
   8918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8919 	    s//\1/
   8920 	    q
   8921 	  }
   8922 	  /^X\(\/\/\)[^/].*/{
   8923 	    s//\1/
   8924 	    q
   8925 	  }
   8926 	  /^X\(\/\/\)$/{
   8927 	    s//\1/
   8928 	    q
   8929 	  }
   8930 	  /^X\(\/\).*/{
   8931 	    s//\1/
   8932 	    q
   8933 	  }
   8934 	  s/.*/./; q'`
   8935       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   8936       # echo "creating $dirpart/$file"
   8937       echo '# dummy' > "$dirpart/$file"
   8938     done
   8939   done
   8940 }
   8941  ;;
   8942 
   8943   esac
   8944 done # for ac_tag
   8945 
   8946 
   8947 as_fn_exit 0
   8948 _ACEOF
   8949 ac_clean_files=$ac_clean_files_save
   8950 
   8951 test $ac_write_fail = 0 ||
   8952   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   8953 
   8954 
   8955 # configure is writing to config.log, and then calls config.status.
   8956 # config.status does its own redirection, appending to config.log.
   8957 # Unfortunately, on DOS this fails, as config.log is still kept open
   8958 # by configure, so config.status won't be able to write to it; its
   8959 # output is simply discarded.  So we exec the FD to /dev/null,
   8960 # effectively closing config.log, so it can be properly (re)opened and
   8961 # appended to by config.status.  When coming back to configure, we
   8962 # need to make the FD available again.
   8963 if test "$no_create" != yes; then
   8964   ac_cs_success=:
   8965   ac_config_status_args=
   8966   test "$silent" = yes &&
   8967     ac_config_status_args="$ac_config_status_args --quiet"
   8968   exec 5>/dev/null
   8969   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   8970   exec 5>>config.log
   8971   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   8972   # would make configure fail if this is the last instruction.
   8973   $ac_cs_success || as_fn_exit 1
   8974 fi
   8975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   8976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   8977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   8978 fi
   8979 
   8980