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