xref: /netbsd-src/external/bsd/tmux/dist/configure (revision f8cf1a9151c7af1cb0bd8b09c13c66bca599c027)
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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@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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='tmux'
579PACKAGE_TARNAME='tmux'
580PACKAGE_VERSION='3.5a'
581PACKAGE_STRING='tmux 3.5a'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_config_libobj_dir=compat
586# Factoring default headers for most tests.
587ac_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
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625AM_LDFLAGS
626AM_CFLAGS
627AM_CPPFLAGS
628DEFAULT_LOCK_CMD
629found_vlock
630IS_UNKNOWN_FALSE
631IS_UNKNOWN_TRUE
632IS_HAIKU_FALSE
633IS_HAIKU_TRUE
634IS_HPUX_FALSE
635IS_HPUX_TRUE
636IS_SUNOS_FALSE
637IS_SUNOS_TRUE
638IS_OPENBSD_FALSE
639IS_OPENBSD_TRUE
640IS_NETBSD_FALSE
641IS_NETBSD_TRUE
642IS_FREEBSD_FALSE
643IS_FREEBSD_TRUE
644IS_LINUX_FALSE
645IS_LINUX_TRUE
646IS_DRAGONFLY_FALSE
647IS_DRAGONFLY_TRUE
648IS_DARWIN_FALSE
649IS_DARWIN_TRUE
650IS_AIX_FALSE
651IS_AIX_TRUE
652PLATFORM
653MANFORMAT
654DEFAULT_TERM
655NEED_FORKPTY_FALSE
656NEED_FORKPTY_TRUE
657XOPEN_DEFINES
658JEMALLOC_LIBS
659JEMALLOC_CFLAGS
660ENABLE_SIXEL_FALSE
661ENABLE_SIXEL_TRUE
662HAVE_SYSTEMD_FALSE
663HAVE_SYSTEMD_TRUE
664SYSTEMD_LIBS
665SYSTEMD_CFLAGS
666HAVE_UTF8PROC_FALSE
667HAVE_UTF8PROC_TRUE
668LIBUTF8PROC_LIBS
669LIBUTF8PROC_CFLAGS
670LIBNCURSESW_LIBS
671LIBNCURSESW_CFLAGS
672LIBNCURSES_LIBS
673LIBNCURSES_CFLAGS
674LIBTINFO_LIBS
675LIBTINFO_CFLAGS
676found_yacc
677LIBEVENT_LIBS
678LIBEVENT_CFLAGS
679LIBEVENT_CORE_LIBS
680LIBEVENT_CORE_CFLAGS
681LIBOBJS
682IS_SUNCC_FALSE
683IS_SUNCC_TRUE
684IS_GCC_FALSE
685IS_GCC_TRUE
686NEED_FUZZING_FALSE
687NEED_FUZZING_TRUE
688IS_DEBUG_FALSE
689IS_DEBUG_TRUE
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
693YFLAGS
694YACC
695EGREP
696GREP
697CPP
698am__fastdepCC_FALSE
699am__fastdepCC_TRUE
700CCDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715FUZZING_LIBS
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770runstatedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_fuzzing
795enable_dependency_tracking
796enable_debug
797enable_static
798with_TERM
799enable_utempter
800enable_utf8proc
801enable_systemd
802enable_cgroups
803enable_sixel
804enable_jemalloc
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809FUZZING_LIBS
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816YACC
817YFLAGS
818PKG_CONFIG
819PKG_CONFIG_PATH
820PKG_CONFIG_LIBDIR
821LIBEVENT_CORE_CFLAGS
822LIBEVENT_CORE_LIBS
823LIBEVENT_CFLAGS
824LIBEVENT_LIBS
825LIBTINFO_CFLAGS
826LIBTINFO_LIBS
827LIBNCURSES_CFLAGS
828LIBNCURSES_LIBS
829LIBNCURSESW_CFLAGS
830LIBNCURSESW_LIBS
831LIBUTF8PROC_CFLAGS
832LIBUTF8PROC_LIBS
833SYSTEMD_CFLAGS
834SYSTEMD_LIBS
835JEMALLOC_CFLAGS
836JEMALLOC_LIBS'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_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.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875runstatedir='${localstatedir}/run'
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
887
888ac_prev=
889ac_dashdash=
890for ac_option
891do
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'
1233Try \`$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
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if 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
1268fi
1269
1270# Check all directory arguments for consistency.
1271for 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
1275do
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"
1289done
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.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if 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
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "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.
1322if 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
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if 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"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
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.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for 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}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if 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
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
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
1407Installation 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
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine 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
1445Program 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
1450System 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
1454fi
1455
1456if 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
1462Optional 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
1490Optional 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
1495Some 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
1550Use these variables to override the choices made by `configure' or to help
1551it to find libraries and programs with nonstandard names/locations.
1552
1553Report bugs to the package provider.
1554_ACEOF
1555ac_status=$?
1556fi
1557
1558if 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
1566case "$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 ;;
1576esac
1577ac_abs_top_builddir=$ac_pwd
1578ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579# for backward compatibility:
1580ac_top_builddir=$ac_top_build_prefix
1581
1582case $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 ;;
1595esac
1596ac_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
1611fi
1612
1613test -n "$ac_init_help" && exit $ac_status
1614if $ac_init_version; then
1615  cat <<\_ACEOF
1616tmux configure 3.5a
1617generated by GNU Autoconf 2.69
1618
1619Copyright (C) 2012 Free Software Foundation, Inc.
1620This configure script is free software; the Free Software Foundation
1621gives unlimited permission to copy, distribute and modify it.
1622_ACEOF
1623  exit
1624fi
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.
1633ac_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"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval 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
1657else
1658  $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661	ac_retval=1
1662fi
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.
1671ac_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"
1675case "(($ac_try" in
1676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677  *) ac_try_echo=$ac_try;;
1678esac
1679eval 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
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698    ac_retval=1
1699fi
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.
1710ac_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; }
1716if eval \${$3+:} false; then :
1717  $as_echo_n "(cached) " >&6
1718fi
1719eval ac_res=\$$3
1720	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
1722else
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; }
1726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h.  */
1728$4
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732  ac_header_compiler=yes
1733else
1734  ac_header_compiler=no
1735fi
1736rm -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; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_cpp "$LINENO"; then :
1748  ac_header_preproc=yes
1749else
1750  ac_header_preproc=no
1751fi
1752rm -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?
1757case $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    ;;
1776esac
1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780  $as_echo_n "(cached) " >&6
1781else
1782  eval "$3=\$ac_header_compiler"
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787fi
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.
1796ac_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"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval 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;;
1813esac
1814eval 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
1821else
1822  $as_echo "$as_me: program exited with status $ac_status" >&5
1823       $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826       ac_retval=$ac_status
1827fi
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.
1838ac_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; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  eval "$3=yes"
1853else
1854  eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval 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.
1868ac_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"
1873case "(($ac_try" in
1874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875  *) ac_try_echo=$ac_try;;
1876esac
1877eval 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
1895else
1896  $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899	ac_retval=1
1900fi
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
1914ac_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; }
1919if eval \${$3+:} false; then :
1920  $as_echo_n "(cached) " >&6
1921else
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
1945extern "C"
1946#endif
1947char $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
1952choke me
1953#endif
1954
1955int
1956main ()
1957{
1958return $2 ();
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_link "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext \
1969    conftest$ac_exeext conftest.$ac_ext
1970fi
1971eval 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.
1982ac_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; }
1989if eval \${$3+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991else
1992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h.  */
1994$4
1995int
1996main ()
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
2010if ac_fn_c_try_compile "$LINENO"; then :
2011  eval "$3=yes"
2012else
2013  eval "$3=no"
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016fi
2017eval 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
2023cat >config.log <<_ACEOF
2024This file contains any messages produced by compilers while
2025running configure, to aid debugging if configure makes a mistake.
2026
2027It was created by tmux $as_me 3.5a, which was
2028generated by GNU Autoconf 2.69.  Invocation command line was
2029
2030  $ $0 $@
2031
2032_ACEOF
2033exec 5>>config.log
2034{
2035cat <<_ASUNAME
2036## --------- ##
2037## Platform. ##
2038## --------- ##
2039
2040hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044uname -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
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064    $as_echo "PATH: $as_dir"
2065  done
2066IFS=$as_save_IFS
2067
2068} >&5
2069
2070cat >&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.
2085ac_configure_args=
2086ac_configure_args0=
2087ac_configure_args1=
2088ac_must_keep_next=false
2089for ac_pass in 1 2
2090do
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
2124done
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.
2133trap '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
2220for ac_signal in 1 2 13 15; do
2221  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222done
2223ac_signal=0
2224
2225# confdefs.h avoids OS command line length limits that DEFS can exceed.
2226rm -f -r conftest* confdefs.h
2227
2228$as_echo "/* confdefs.h */" > confdefs.h
2229
2230# Predefined preprocessor variables.
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_NAME "$PACKAGE_NAME"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_VERSION "$PACKAGE_VERSION"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_STRING "$PACKAGE_STRING"
2246_ACEOF
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250_ACEOF
2251
2252cat >>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.
2259ac_site_file1=NONE
2260ac_site_file2=NONE
2261if 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
2268elif test "x$prefix" != xNONE; then
2269  ac_site_file1=$prefix/share/config.site
2270  ac_site_file2=$prefix/etc/config.site
2271else
2272  ac_site_file1=$ac_default_prefix/share/config.site
2273  ac_site_file2=$ac_default_prefix/etc/config.site
2274fi
2275for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276do
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;}
2285as_fn_error $? "failed to load site script $ac_site_file
2286See \`config.log' for more details" "$LINENO" 5; }
2287  fi
2288done
2289
2290if 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
2301else
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
2305fi
2306
2307# Check that the precious variables saved in the cache have kept the same
2308# value.
2309ac_cache_corrupted=false
2310for 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
2356done
2357if $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
2363fi
2364## -------------------- ##
2365## Main body of script. ##
2366## -------------------- ##
2367
2368ac_ext=c
2369ac_cpp='$CPP $CPPFLAGS'
2370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377ac_aux_dir=
2378for 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
2392done
2393if test -z "$ac_aux_dir"; then
2394  as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc \"$srcdir\"/etc" "$LINENO" 5
2395fi
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.
2401ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2402ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2403ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2404
2405
2406
2407am__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; }
2425if test -z "$INSTALL"; then
2426if ${ac_cv_path_install+:} false; then :
2427  $as_echo_n "(cached) " >&6
2428else
2429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434    # Account for people who put trailing slashes in PATH elements.
2435case $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    ;;
2473esac
2474
2475  done
2476IFS=$as_save_IFS
2477
2478rm -rf conftest.one conftest.two conftest.dir
2479
2480fi
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
2490fi
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.
2496test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497
2498test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499
2500test -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.
2506am_lf='
2507'
2508case `pwd` in
2509  *[\\\"\#\$\&\'\`$am_lf]*)
2510    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2511esac
2512case $srcdir in
2513  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2514    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2515esac
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).
2522if (
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   )
2550then
2551   # Ok.
2552   :
2553else
2554   as_fn_error $? "newly created file is older than distributed files!
2555Check your system clock" "$LINENO" 5
2556fi
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.
2561am_sleep_pid=
2562if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2563  ( sleep 1 ) &
2564  am_sleep_pid=$!
2565fi
2566
2567rm -f conftest.file
2568
2569test "$program_prefix" != NONE &&
2570  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2571# Use a double $ so make ignores it.
2572test "$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.
2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2578
2579# Expand $ac_aux_dir to an absolute path.
2580am_aux_dir=`cd "$ac_aux_dir" && pwd`
2581
2582if 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
2589fi
2590# Use eval to expand $SHELL
2591if eval "$MISSING --is-lightweight"; then
2592  am_missing_run="$MISSING "
2593else
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;}
2597fi
2598
2599if 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
2606fi
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.
2612if 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.
2615set 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; }
2618if ${ac_cv_prog_STRIP+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  if test -n "$STRIP"; then
2622  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
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
2635done
2636  done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641STRIP=$ac_cv_prog_STRIP
2642if test -n "$STRIP"; then
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2644$as_echo "$STRIP" >&6; }
2645else
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650
2651fi
2652if 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.
2655set 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; }
2658if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test -n "$ac_ct_STRIP"; then
2662  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
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
2675done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680fi
2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2682if 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; }
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
2689
2690  if test "x$ac_ct_STRIP" = x; then
2691    STRIP=":"
2692  else
2693    case $cross_compiling:$ac_tool_warned in
2694yes:)
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;}
2697ac_tool_warned=yes ;;
2698esac
2699    STRIP=$ac_ct_STRIP
2700  fi
2701else
2702  STRIP="$ac_cv_prog_STRIP"
2703fi
2704
2705fi
2706INSTALL_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; }
2710if test -z "$MKDIR_P"; then
2711  if ${ac_cv_path_mkdir+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2716do
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
2732IFS=$as_save_IFS
2733
2734fi
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
2746fi
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2748$as_echo "$MKDIR_P" >&6; }
2749
2750for ac_prog in gawk mawk nawk awk
2751do
2752  # Extract the first word of "$ac_prog", so it can be a program name with args.
2753set 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; }
2756if ${ac_cv_prog_AWK+:} false; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  if test -n "$AWK"; then
2760  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
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
2773done
2774  done
2775IFS=$as_save_IFS
2776
2777fi
2778fi
2779AWK=$ac_cv_prog_AWK
2780if test -n "$AWK"; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2782$as_echo "$AWK" >&6; }
2783else
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789  test -n "$AWK" && break
2790done
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; }
2794set x ${MAKE-make}
2795ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2796if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  cat >conftest.make <<\_ACEOF
2800SHELL = /bin/sh
2801all:
2802	@echo '@@@%%%=$(MAKE)=@@@%%%'
2803_ACEOF
2804# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2805case `${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;;
2810esac
2811rm -f conftest.make
2812fi
2813if 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=
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820  SET_MAKE="MAKE=${MAKE-make}"
2821fi
2822
2823rm -rf .tst 2>/dev/null
2824mkdir .tst 2>/dev/null
2825if test -d .tst; then
2826  am__leading_dot=.
2827else
2828  am__leading_dot=_
2829fi
2830rmdir .tst 2>/dev/null
2831
2832# Check whether --enable-silent-rules was given.
2833if test "${enable_silent_rules+set}" = set; then :
2834  enableval=$enable_silent_rules;
2835fi
2836
2837case $enable_silent_rules in # (((
2838  yes) AM_DEFAULT_VERBOSITY=0;;
2839   no) AM_DEFAULT_VERBOSITY=1;;
2840    *) AM_DEFAULT_VERBOSITY=1;;
2841esac
2842am_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; }
2845if ${am_cv_make_support_nested_variables+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if $as_echo 'TRUE=$(BAR$(V))
2849BAR0=false
2850BAR1=true
2851V=1
2852am__doit:
2853	@$(TRUE)
2854.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2855  am_cv_make_support_nested_variables=yes
2856else
2857  am_cv_make_support_nested_variables=no
2858fi
2859fi
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; }
2862if test $am_cv_make_support_nested_variables = yes; then
2863    AM_V='$(V)'
2864  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2865else
2866  AM_V=$AM_DEFAULT_VERBOSITY
2867  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2868fi
2869AM_BACKSLASH='\'
2870
2871if 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
2879fi
2880
2881# test whether we have cygpath
2882if 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
2888fi
2889
2890
2891# Define the identity of the package.
2892 PACKAGE='tmux'
2893 VERSION='3.5a'
2894
2895
2896cat >>confdefs.h <<_ACEOF
2897#define PACKAGE "$PACKAGE"
2898_ACEOF
2899
2900
2901cat >>confdefs.h <<_ACEOF
2902#define VERSION "$VERSION"
2903_ACEOF
2904
2905# Some tools Automake needs.
2906
2907ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908
2909
2910AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2911
2912
2913AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914
2915
2916AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2917
2918
2919MAKEINFO=${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>
2925mkdir_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 ...
2931AMTAR='$${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
2937am__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.
2952if rm -f && rm -fr && rm -rf; then : OK; else
2953  cat >&2 <<'END'
2954Oops!
2955
2956Your 'rm' program seems unable to run without file operands specified
2957on the command line, even when the '-f' option is present.  This is contrary
2958to the behaviour of most rm programs out there, and not conforming with
2959the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2960
2961Please tell bug-automake@gnu.org about your system, including the value
2962of your $PATH and any error possibly output before this message.  This
2963can help us improve future automake versions.
2964
2965END
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'
2972Aborting the configuration process, to ensure you take notice of the issue.
2973
2974You can download and install GNU coreutils to get an 'rm' implementation
2975that behaves properly: <http://www.gnu.org/software/coreutils/>.
2976
2977If you want to complete the configuration process using your problematic
2978'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2979to "yes", and re-run configure.
2980
2981END
2982    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2983  fi
2984fi
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; }
2993if ${ac_cv_build+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  ac_build_alias=$build_alias
2997test "x$ac_build_alias" = x &&
2998  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2999test "x$ac_build_alias" = x &&
3000  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3001ac_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
3004fi
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3006$as_echo "$ac_cv_build" >&6; }
3007case $ac_cv_build in
3008*-*-*) ;;
3009*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3010esac
3011build=$ac_cv_build
3012ac_save_IFS=$IFS; IFS='-'
3013set x $ac_cv_build
3014shift
3015build_cpu=$1
3016build_vendor=$2
3017shift; shift
3018# Remember, the first character of IFS is used to create $*,
3019# except with old shells:
3020build_os=$*
3021IFS=$ac_save_IFS
3022case $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; }
3027if ${ac_cv_host+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test "x$host_alias" = x; then
3031  ac_cv_host=$ac_cv_build
3032else
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
3035fi
3036
3037fi
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3039$as_echo "$ac_cv_host" >&6; }
3040case $ac_cv_host in
3041*-*-*) ;;
3042*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3043esac
3044host=$ac_cv_host
3045ac_save_IFS=$IFS; IFS='-'
3046set x $ac_cv_host
3047shift
3048host_cpu=$1
3049host_vendor=$2
3050shift; shift
3051# Remember, the first character of IFS is used to create $*,
3052# except with old shells:
3053host_os=$*
3054IFS=$ac_save_IFS
3055case $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.
3067SAVED_CFLAGS="$CFLAGS"
3068SAVED_CPPFLAGS="$CPPFLAGS"
3069SAVED_LDFLAGS="$LDFLAGS"
3070
3071# Is this oss-fuzz build?
3072# Check whether --enable-fuzzing was given.
3073if test "${enable_fuzzing+set}" = set; then :
3074  enableval=$enable_fuzzing;
3075fi
3076
3077
3078
3079# Set up convenient fuzzing defaults before initializing compiler.
3080if 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"
3088fi
3089
3090# Set up the compiler in two different ways and say yes we may want to install.
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096if 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.
3098set 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; }
3101if ${ac_cv_prog_CC+:} false; then :
3102  $as_echo_n "(cached) " >&6
3103else
3104  if test -n "$CC"; then
3105  ac_cv_prog_CC="$CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
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
3118done
3119  done
3120IFS=$as_save_IFS
3121
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134fi
3135if 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.
3138set 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; }
3141if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test -n "$ac_ct_CC"; then
3145  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
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
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if 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; }
3168else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173  if test "x$ac_ct_CC" = x; then
3174    CC=""
3175  else
3176    case $cross_compiling:$ac_tool_warned in
3177yes:)
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;}
3180ac_tool_warned=yes ;;
3181esac
3182    CC=$ac_ct_CC
3183  fi
3184else
3185  CC="$ac_cv_prog_CC"
3186fi
3187
3188if 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.
3191set 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; }
3194if ${ac_cv_prog_CC+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  if test -n "$CC"; then
3198  ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
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
3211done
3212  done
3213IFS=$as_save_IFS
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220$as_echo "$CC" >&6; }
3221else
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224fi
3225
3226
3227  fi
3228fi
3229if test -z "$CC"; then
3230  # Extract the first word of "cc", so it can be a program name with args.
3231set 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; }
3234if ${ac_cv_prog_CC+:} false; then :
3235  $as_echo_n "(cached) " >&6
3236else
3237  if test -n "$CC"; then
3238  ac_cv_prog_CC="$CC" # Let the user override the test.
3239else
3240  ac_prog_rejected=no
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
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
3256done
3257  done
3258IFS=$as_save_IFS
3259
3260if 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
3271fi
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284fi
3285if 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.
3290set 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; }
3293if ${ac_cv_prog_CC+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
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
3310done
3311  done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326    test -n "$CC" && break
3327  done
3328fi
3329if test -z "$CC"; then
3330  ac_ct_CC=$CC
3331  for ac_prog in cl.exe
3332do
3333  # Extract the first word of "$ac_prog", so it can be a program name with args.
3334set 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; }
3337if ${ac_cv_prog_ac_ct_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$ac_ct_CC"; then
3341  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
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
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361if 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; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370  test -n "$ac_ct_CC" && break
3371done
3372
3373  if test "x$ac_ct_CC" = x; then
3374    CC=""
3375  else
3376    case $cross_compiling:$ac_tool_warned in
3377yes:)
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;}
3380ac_tool_warned=yes ;;
3381esac
3382    CC=$ac_ct_CC
3383  fi
3384fi
3385
3386fi
3387
3388
3389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "no acceptable C compiler found in \$PATH
3392See \`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
3396set X $ac_compile
3397ac_compiler=$2
3398for ac_option in --version -v -V -qversion; do
3399  { { ac_try="$ac_compiler $ac_option >&5"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval 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; }
3417done
3418
3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430ac_clean_files_save=$ac_clean_files
3431ac_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; }
3437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3438
3439# The possible output files:
3440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3441
3442ac_rmfiles=
3443for ac_file in $ac_files
3444do
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
3449done
3450rm -f $ac_rmfiles
3451
3452if { { ac_try="$ac_link_default"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval 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.
3468for ac_file in $ac_files ''
3469do
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
3492done
3493test "$ac_cv_exeext" = no && ac_cv_exeext=
3494
3495else
3496  ac_file=''
3497fi
3498if 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
3502sed '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;}
3506as_fn_error 77 "C compiler cannot create executables
3507See \`config.log' for more details" "$LINENO" 5; }
3508else
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510$as_echo "yes" >&6; }
3511fi
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; }
3516ac_exeext=$ac_cv_exeext
3517
3518rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3519ac_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; }
3522if { { ac_try="$ac_link"
3523case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval 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'.
3537for 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
3545done
3546else
3547  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3550See \`config.log' for more details" "$LINENO" 5; }
3551fi
3552rm -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
3556rm -f conftest.$ac_ext
3557EXEEXT=$ac_cv_exeext
3558ac_exeext=$EXEEXT
3559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561#include <stdio.h>
3562int
3563main ()
3564{
3565FILE *f = fopen ("conftest.out", "w");
3566 return ferror (f) || fclose (f) != 0;
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572ac_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; }
3577if test "$cross_compiling" != yes; then
3578  { { ac_try="$ac_link"
3579case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval 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;;
3593esac
3594eval 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;}
3607as_fn_error $? "cannot run C compiled programs.
3608If you meant to cross compile, use \`--host'.
3609See \`config.log' for more details" "$LINENO" 5; }
3610    fi
3611  fi
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3614$as_echo "$cross_compiling" >&6; }
3615
3616rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3617ac_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; }
3620if ${ac_cv_objext+:} false; then :
3621  $as_echo_n "(cached) " >&6
3622else
3623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625
3626int
3627main ()
3628{
3629
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634rm -f conftest.o conftest.obj
3635if { { ac_try="$ac_compile"
3636case "(($ac_try" in
3637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638  *) ac_try_echo=$ac_try;;
3639esac
3640eval 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
3653done
3654else
3655  $as_echo "$as_me: failed program was:" >&5
3656sed '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;}
3660as_fn_error $? "cannot compute suffix of object files: cannot compile
3661See \`config.log' for more details" "$LINENO" 5; }
3662fi
3663rm -f conftest.$ac_cv_objext conftest.$ac_ext
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3666$as_echo "$ac_cv_objext" >&6; }
3667OBJEXT=$ac_cv_objext
3668ac_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; }
3671if ${ac_cv_c_compiler_gnu+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680#ifndef __GNUC__
3681       choke me
3682#endif
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_compiler_gnu=yes
3690else
3691  ac_compiler_gnu=no
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694ac_cv_c_compiler_gnu=$ac_compiler_gnu
3695
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3699if test $ac_compiler_gnu = yes; then
3700  GCC=yes
3701else
3702  GCC=
3703fi
3704ac_test_CFLAGS=${CFLAGS+set}
3705ac_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; }
3708if ${ac_cv_prog_cc_g+:} false; then :
3709  $as_echo_n "(cached) " >&6
3710else
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
3718int
3719main ()
3720{
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726if ac_fn_c_try_compile "$LINENO"; then :
3727  ac_cv_prog_cc_g=yes
3728else
3729  CFLAGS=""
3730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742
3743else
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
3749int
3750main ()
3751{
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_c_try_compile "$LINENO"; then :
3758  ac_cv_prog_cc_g=yes
3759fi
3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765   ac_c_werror_flag=$ac_save_c_werror_flag
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3768$as_echo "$ac_cv_prog_cc_g" >&6; }
3769if test "$ac_test_CFLAGS" = set; then
3770  CFLAGS=$ac_save_CFLAGS
3771elif 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
3777else
3778  if test "$GCC" = yes; then
3779    CFLAGS="-O2"
3780  else
3781    CFLAGS=
3782  fi
3783fi
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; }
3786if ${ac_cv_prog_cc_c89+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  ac_cv_prog_cc_c89=no
3790ac_save_CC=$CC
3791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793#include <stdarg.h>
3794#include <stdio.h>
3795struct stat;
3796/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3797struct buf { int x; };
3798FILE * (*rcsopen) (struct buf *, struct stat *, int);
3799static char *e (p, i)
3800     char **p;
3801     int i;
3802{
3803  return p[i];
3804}
3805static 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.  */
3822int 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'
3827int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3828
3829int test (int i, double x);
3830struct s1 {int (*f) (int a);};
3831struct s2 {int (*f) (double a);};
3832int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3833int argc;
3834char **argv;
3835int
3836main ()
3837{
3838return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3844	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3845do
3846  CC="$ac_save_CC $ac_arg"
3847  if ac_fn_c_try_compile "$LINENO"; then :
3848  ac_cv_prog_cc_c89=$ac_arg
3849fi
3850rm -f core conftest.err conftest.$ac_objext
3851  test "x$ac_cv_prog_cc_c89" != "xno" && break
3852done
3853rm -f conftest.$ac_ext
3854CC=$ac_save_CC
3855
3856fi
3857# AC_CACHE_VAL
3858case "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; } ;;
3869esac
3870if test "x$ac_cv_prog_cc_c89" != xno; then :
3871
3872fi
3873
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_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; }
3887if ${am_cv_prog_cc_c_o+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893int
3894main ()
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
3921fi
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; }
3924if 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"
3931fi
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938DEPDIR="${am__leading_dot}deps"
3939
3940ac_config_commands="$ac_config_commands depfiles"
3941
3942
3943am_make=${MAKE-make}
3944cat > confinc << 'END'
3945am__doit:
3946	@echo this is the am__doit target
3947.PHONY: am__doit
3948END
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; }
3952am__include="#"
3953am__quote=
3954_am_result=none
3955# First try GNU make style include.
3956echo "include confinc" > confmf
3957# Ignore all kinds of additional output from 'make'.
3958case `$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  ;;
3964esac
3965# Now try BSD make style include.
3966if 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
3975fi
3976
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3979$as_echo "$_am_result" >&6; }
3980rm -f confinc confmf
3981
3982# Check whether --enable-dependency-tracking was given.
3983if test "${enable_dependency_tracking+set}" = set; then :
3984  enableval=$enable_dependency_tracking;
3985fi
3986
3987if test "x$enable_dependency_tracking" != xno; then
3988  am_depcomp="$ac_aux_dir/depcomp"
3989  AMDEPBACKSLASH='\'
3990  am__nodep='_no'
3991fi
3992 if test "x$enable_dependency_tracking" != xno; then
3993  AMDEP_TRUE=
3994  AMDEP_FALSE='#'
3995else
3996  AMDEP_TRUE='#'
3997  AMDEP_FALSE=
3998fi
3999
4000
4001
4002depcc="$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; }
4006if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
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
4110else
4111  am_cv_CC_dependencies_compiler_type=none
4112fi
4113
4114fi
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; }
4117CCDEPMODE=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='#'
4124else
4125  am__fastdepCC_TRUE='#'
4126  am__fastdepCC_FALSE=
4127fi
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; }
4133if ${ac_cv_prog_cc_c99+:} false; then :
4134  $as_echo_n "(cached) " >&6
4135else
4136  ac_cv_prog_cc_c99=no
4137ac_save_CC=$CC
4138cat 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__))
4150static void
4151test_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
4172static long long int bignum = -9223372036854775807LL;
4173static unsigned long long int ubignum = BIG64;
4174
4175struct incomplete_array
4176{
4177  int datasize;
4178  double data[];
4179};
4180
4181struct named_init {
4182  int number;
4183  const wchar_t *name;
4184  double average;
4185};
4186
4187typedef const char *ccp;
4188
4189static inline int
4190test_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.
4201static void
4202test_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
4234int
4235main ()
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
4277for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4278do
4279  CC="$ac_save_CC $ac_arg"
4280  if ac_fn_c_try_compile "$LINENO"; then :
4281  ac_cv_prog_cc_c99=$ac_arg
4282fi
4283rm -f core conftest.err conftest.$ac_objext
4284  test "x$ac_cv_prog_cc_c99" != "xno" && break
4285done
4286rm -f conftest.$ac_ext
4287CC=$ac_save_CC
4288
4289fi
4290# AC_CACHE_VAL
4291case "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; } ;;
4302esac
4303if test "x$ac_cv_prog_cc_c99" != xno; then :
4304
4305fi
4306
4307
4308ac_ext=c
4309ac_cpp='$CPP $CPPFLAGS'
4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_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.
4316if test -n "$CPP" && test -d "$CPP"; then
4317  CPP=
4318fi
4319if test -z "$CPP"; then
4320  if ${ac_cv_prog_CPP+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
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
4327for ac_c_preproc_warn_flag in '' yes
4328do
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
4344if ac_fn_c_try_cpp "$LINENO"; then :
4345
4346else
4347  # Broken: fails on valid input.
4348continue
4349fi
4350rm -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
4358if ac_fn_c_try_cpp "$LINENO"; then :
4359  # Broken: success on invalid input.
4360continue
4361else
4362  # Passes both tests.
4363ac_preproc_ok=:
4364break
4365fi
4366rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368done
4369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370rm -f conftest.i conftest.err conftest.$ac_ext
4371if $ac_preproc_ok; then :
4372  break
4373fi
4374
4375    done
4376    ac_cv_prog_CPP=$CPP
4377
4378fi
4379  CPP=$ac_cv_prog_CPP
4380else
4381  ac_cv_prog_CPP=$CPP
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4384$as_echo "$CPP" >&6; }
4385ac_preproc_ok=false
4386for ac_c_preproc_warn_flag in '' yes
4387do
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
4403if ac_fn_c_try_cpp "$LINENO"; then :
4404
4405else
4406  # Broken: fails on valid input.
4407continue
4408fi
4409rm -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
4417if ac_fn_c_try_cpp "$LINENO"; then :
4418  # Broken: success on invalid input.
4419continue
4420else
4421  # Passes both tests.
4422ac_preproc_ok=:
4423break
4424fi
4425rm -f conftest.err conftest.i conftest.$ac_ext
4426
4427done
4428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429rm -f conftest.i conftest.err conftest.$ac_ext
4430if $ac_preproc_ok; then :
4431
4432else
4433  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4436See \`config.log' for more details" "$LINENO" 5; }
4437fi
4438
4439ac_ext=c
4440ac_cpp='$CPP $CPPFLAGS'
4441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443ac_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; }
4447if ${ac_cv_path_GREP+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
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
4454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455do
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
4464case `"$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;;
4488esac
4489
4490      $ac_path_GREP_found && break 3
4491    done
4492  done
4493  done
4494IFS=$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
4498else
4499  ac_cv_path_GREP=$GREP
4500fi
4501
4502fi
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; }
4510if ${ac_cv_path_EGREP+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
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
4520for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521do
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
4530case `"$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;;
4554esac
4555
4556      $ac_path_EGREP_found && break 3
4557    done
4558  done
4559  done
4560IFS=$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
4564else
4565  ac_cv_path_EGREP=$EGREP
4566fi
4567
4568   fi
4569fi
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
4576for ac_prog in 'bison -y' byacc
4577do
4578  # Extract the first word of "$ac_prog", so it can be a program name with args.
4579set 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; }
4582if ${ac_cv_prog_YACC+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  if test -n "$YACC"; then
4586  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
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
4599done
4600  done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605YACC=$ac_cv_prog_YACC
4606if test -n "$YACC"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4608$as_echo "$YACC" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615  test -n "$YACC" && break
4616done
4617test -n "$YACC" || YACC="yacc"
4618
4619
4620
4621
4622
4623
4624
4625
4626if 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.
4629set 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; }
4632if ${ac_cv_path_PKG_CONFIG+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
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
4641for as_dir in $PATH
4642do
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
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac
4657fi
4658PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4659if test -n "$PKG_CONFIG"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4661$as_echo "$PKG_CONFIG" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667
4668fi
4669if 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.
4672set 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; }
4675if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
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
4684for as_dir in $PATH
4685do
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
4694done
4695  done
4696IFS=$as_save_IFS
4697
4698  ;;
4699esac
4700fi
4701ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4702if 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; }
4705else
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
4708fi
4709
4710  if test "x$ac_pt_PKG_CONFIG" = x; then
4711    PKG_CONFIG=""
4712  else
4713    case $cross_compiling:$ac_tool_warned in
4714yes:)
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;}
4717ac_tool_warned=yes ;;
4718esac
4719    PKG_CONFIG=$ac_pt_PKG_CONFIG
4720  fi
4721else
4722  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4723fi
4724
4725fi
4726if 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
4738fi
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; }
4743if ${ac_cv_header_stdc+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
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
4753int
4754main ()
4755{
4756
4757  ;
4758  return 0;
4759}
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then :
4762  ac_cv_header_stdc=yes
4763else
4764  ac_cv_header_stdc=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767
4768if 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
4775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776  $EGREP "memchr" >/dev/null 2>&1; then :
4777
4778else
4779  ac_cv_header_stdc=no
4780fi
4781rm -f conftest*
4782
4783fi
4784
4785if 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
4792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793  $EGREP "free" >/dev/null 2>&1; then :
4794
4795else
4796  ac_cv_header_stdc=no
4797fi
4798rm -f conftest*
4799
4800fi
4801
4802if 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  :
4806else
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)))
4823int
4824main ()
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
4834if ac_fn_c_try_run "$LINENO"; then :
4835
4836else
4837  ac_cv_header_stdc=no
4838fi
4839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4840  conftest.$ac_objext conftest.beam conftest.$ac_ext
4841fi
4842
4843fi
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4846$as_echo "$ac_cv_header_stdc" >&6; }
4847if test $ac_cv_header_stdc = yes; then
4848
4849$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4850
4851fi
4852
4853# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4854for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4855		  inttypes.h stdint.h unistd.h
4856do :
4857  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4858ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4859"
4860if 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
4865fi
4866
4867done
4868
4869
4870
4871  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4872if test "x$ac_cv_header_minix_config_h" = xyes; then :
4873  MINIX=yes
4874else
4875  MINIX=
4876fi
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; }
4894if ${ac_cv_safe_to_define___extensions__+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h.  */
4899
4900#         define __EXTENSIONS__ 1
4901          $ac_includes_default
4902int
4903main ()
4904{
4905
4906  ;
4907  return 0;
4908}
4909_ACEOF
4910if ac_fn_c_try_compile "$LINENO"; then :
4911  ac_cv_safe_to_define___extensions__=yes
4912else
4913  ac_cv_safe_to_define___extensions__=no
4914fi
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916fi
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.
4933test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
4934
4935# Is this --enable-debug?
4936# Check whether --enable-debug was given.
4937if test "${enable_debug+set}" = set; then :
4938  enableval=$enable_debug;
4939else
4940  case "x$VERSION" in xnext*) enable_debug=yes;; esac
4941
4942fi
4943
4944 if test "x$enable_debug" = xyes; then
4945  IS_DEBUG_TRUE=
4946  IS_DEBUG_FALSE='#'
4947else
4948  IS_DEBUG_TRUE='#'
4949  IS_DEBUG_FALSE=
4950fi
4951
4952
4953# Is this a static build?
4954# Check whether --enable-static was given.
4955if test "${enable_static+set}" = set; then :
4956  enableval=$enable_static;
4957fi
4958
4959if 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"
4968fi
4969
4970# Allow default TERM to be set.
4971
4972# Check whether --with-TERM was given.
4973if test "${with_TERM+set}" = set; then :
4974  withval=$with_TERM; DEFAULT_TERM=$withval
4975else
4976  DEFAULT_TERM=
4977
4978fi
4979
4980case "x$DEFAULT_TERM" in
4981	xscreen*|xtmux*|x)
4982	;;
4983	*)
4984		as_fn_error $? "\"unsuitable TERM (must be screen* or tmux*)\"" "$LINENO" 5
4985	;;
4986esac
4987
4988# Do we need fuzzers?
4989 if test "x$enable_fuzzing" = xyes; then
4990  NEED_FUZZING_TRUE=
4991  NEED_FUZZING_FALSE='#'
4992else
4993  NEED_FUZZING_TRUE='#'
4994  NEED_FUZZING_FALSE=
4995fi
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='#'
5002else
5003  IS_GCC_TRUE='#'
5004  IS_GCC_FALSE=
5005fi
5006
5007
5008# Is this Sun CC?
5009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011
5012		#ifdef __SUNPRO_C
5013		yes
5014		#endif
5015
5016_ACEOF
5017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018  $EGREP "yes" >/dev/null 2>&1; then :
5019  found_suncc=yes
5020else
5021  found_suncc=no
5022
5023fi
5024rm -f conftest*
5025
5026 if test "x$found_suncc" = xyes; then
5027  IS_SUNCC_TRUE=
5028  IS_SUNCC_FALSE='#'
5029else
5030  IS_SUNCC_TRUE='#'
5031  IS_SUNCC_FALSE=
5032fi
5033
5034
5035# Check for various headers. Alternatives included from compat.h.
5036for 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
5053do :
5054  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5056if 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
5061fi
5062
5063done
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; }
5069if ${ac_cv_search_sys_signame+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  ac_func_search_save_LIBS=$LIBS
5073cat 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
5080extern "C"
5081#endif
5082char sys_signame ();
5083int
5084main ()
5085{
5086return sys_signame ();
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091for 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
5100fi
5101rm -f core conftest.err conftest.$ac_objext \
5102    conftest$ac_exeext
5103  if ${ac_cv_search_sys_signame+:} false; then :
5104  break
5105fi
5106done
5107if ${ac_cv_search_sys_signame+:} false; then :
5108
5109else
5110  ac_cv_search_sys_signame=no
5111fi
5112rm conftest.$ac_ext
5113LIBS=$ac_func_search_save_LIBS
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sys_signame" >&5
5116$as_echo "$ac_cv_search_sys_signame" >&6; }
5117ac_res=$ac_cv_search_sys_signame
5118if 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
5122fi
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; }
5128if ${ac_cv_lib_m_fmod+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  ac_check_lib_save_LIBS=$LIBS
5132LIBS="-lm  $LIBS"
5133cat 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
5140extern "C"
5141#endif
5142char fmod ();
5143int
5144main ()
5145{
5146return fmod ();
5147  ;
5148  return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_link "$LINENO"; then :
5152  ac_cv_lib_m_fmod=yes
5153else
5154  ac_cv_lib_m_fmod=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext \
5157    conftest$ac_exeext conftest.$ac_ext
5158LIBS=$ac_check_lib_save_LIBS
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
5161$as_echo "$ac_cv_lib_m_fmod" >&6; }
5162if 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
5169fi
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; }
5175if ${ac_cv_search_flock+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  ac_func_search_save_LIBS=$LIBS
5179cat 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
5186extern "C"
5187#endif
5188char flock ();
5189int
5190main ()
5191{
5192return flock ();
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197for 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
5206fi
5207rm -f core conftest.err conftest.$ac_objext \
5208    conftest$ac_exeext
5209  if ${ac_cv_search_flock+:} false; then :
5210  break
5211fi
5212done
5213if ${ac_cv_search_flock+:} false; then :
5214
5215else
5216  ac_cv_search_flock=no
5217fi
5218rm conftest.$ac_ext
5219LIBS=$ac_func_search_save_LIBS
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_flock" >&5
5222$as_echo "$ac_cv_search_flock" >&6; }
5223ac_res=$ac_cv_search_flock
5224if test "$ac_res" != no; then :
5225  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5226
5227fi
5228
5229
5230# Check for functions that are replaced or omitted.
5231for ac_func in  \
5232	dirfd \
5233	flock \
5234	prctl \
5235	proc_pidinfo \
5236	getpeerucred \
5237	sysconf
5238
5239do :
5240  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5242if 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
5247fi
5248done
5249
5250
5251# Check for functions with a compatibility implementation.
5252ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
5253if test "x$ac_cv_func_asprintf" = xyes; then :
5254  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
5255
5256else
5257  case " $LIBOBJS " in
5258  *" asprintf.$ac_objext "* ) ;;
5259  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5260 ;;
5261esac
5262
5263fi
5264
5265ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
5266if test "x$ac_cv_func_cfmakeraw" = xyes; then :
5267  $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
5268
5269else
5270  case " $LIBOBJS " in
5271  *" cfmakeraw.$ac_objext "* ) ;;
5272  *) LIBOBJS="$LIBOBJS cfmakeraw.$ac_objext"
5273 ;;
5274esac
5275
5276fi
5277
5278ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5279if test "x$ac_cv_func_clock_gettime" = xyes; then :
5280  $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5281
5282else
5283  case " $LIBOBJS " in
5284  *" clock_gettime.$ac_objext "* ) ;;
5285  *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
5286 ;;
5287esac
5288
5289fi
5290
5291ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
5292if test "x$ac_cv_func_closefrom" = xyes; then :
5293  $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
5294
5295else
5296  case " $LIBOBJS " in
5297  *" closefrom.$ac_objext "* ) ;;
5298  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
5299 ;;
5300esac
5301
5302fi
5303
5304ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
5305if test "x$ac_cv_func_explicit_bzero" = xyes; then :
5306  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
5307
5308else
5309  case " $LIBOBJS " in
5310  *" explicit_bzero.$ac_objext "* ) ;;
5311  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
5312 ;;
5313esac
5314
5315fi
5316
5317ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
5318if test "x$ac_cv_func_fgetln" = xyes; then :
5319  $as_echo "#define HAVE_FGETLN 1" >>confdefs.h
5320
5321else
5322  case " $LIBOBJS " in
5323  *" fgetln.$ac_objext "* ) ;;
5324  *) LIBOBJS="$LIBOBJS fgetln.$ac_objext"
5325 ;;
5326esac
5327
5328fi
5329
5330ac_fn_c_check_func "$LINENO" "freezero" "ac_cv_func_freezero"
5331if test "x$ac_cv_func_freezero" = xyes; then :
5332  $as_echo "#define HAVE_FREEZERO 1" >>confdefs.h
5333
5334else
5335  case " $LIBOBJS " in
5336  *" freezero.$ac_objext "* ) ;;
5337  *) LIBOBJS="$LIBOBJS freezero.$ac_objext"
5338 ;;
5339esac
5340
5341fi
5342
5343ac_fn_c_check_func "$LINENO" "getdtablecount" "ac_cv_func_getdtablecount"
5344if test "x$ac_cv_func_getdtablecount" = xyes; then :
5345  $as_echo "#define HAVE_GETDTABLECOUNT 1" >>confdefs.h
5346
5347else
5348  case " $LIBOBJS " in
5349  *" getdtablecount.$ac_objext "* ) ;;
5350  *) LIBOBJS="$LIBOBJS getdtablecount.$ac_objext"
5351 ;;
5352esac
5353
5354fi
5355
5356ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
5357if test "x$ac_cv_func_getdtablesize" = xyes; then :
5358  $as_echo "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
5359
5360else
5361  case " $LIBOBJS " in
5362  *" getdtablesize.$ac_objext "* ) ;;
5363  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
5364 ;;
5365esac
5366
5367fi
5368
5369ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
5370if test "x$ac_cv_func_getpeereid" = xyes; then :
5371  $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
5372
5373else
5374  case " $LIBOBJS " in
5375  *" getpeereid.$ac_objext "* ) ;;
5376  *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
5377 ;;
5378esac
5379
5380fi
5381
5382ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
5383if test "x$ac_cv_func_getline" = xyes; then :
5384  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
5385
5386else
5387  case " $LIBOBJS " in
5388  *" getline.$ac_objext "* ) ;;
5389  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
5390 ;;
5391esac
5392
5393fi
5394
5395ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
5396if test "x$ac_cv_func_getprogname" = xyes; then :
5397  $as_echo "#define HAVE_GETPROGNAME 1" >>confdefs.h
5398
5399else
5400  case " $LIBOBJS " in
5401  *" getprogname.$ac_objext "* ) ;;
5402  *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
5403 ;;
5404esac
5405
5406fi
5407
5408ac_fn_c_check_func "$LINENO" "htonll" "ac_cv_func_htonll"
5409if test "x$ac_cv_func_htonll" = xyes; then :
5410  $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
5411
5412else
5413  case " $LIBOBJS " in
5414  *" htonll.$ac_objext "* ) ;;
5415  *) LIBOBJS="$LIBOBJS htonll.$ac_objext"
5416 ;;
5417esac
5418
5419fi
5420
5421ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5422if test "x$ac_cv_func_memmem" = xyes; then :
5423  $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
5424
5425else
5426  case " $LIBOBJS " in
5427  *" memmem.$ac_objext "* ) ;;
5428  *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
5429 ;;
5430esac
5431
5432fi
5433
5434ac_fn_c_check_func "$LINENO" "ntohll" "ac_cv_func_ntohll"
5435if test "x$ac_cv_func_ntohll" = xyes; then :
5436  $as_echo "#define HAVE_NTOHLL 1" >>confdefs.h
5437
5438else
5439  case " $LIBOBJS " in
5440  *" ntohll.$ac_objext "* ) ;;
5441  *) LIBOBJS="$LIBOBJS ntohll.$ac_objext"
5442 ;;
5443esac
5444
5445fi
5446
5447ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
5448if test "x$ac_cv_func_setenv" = xyes; then :
5449  $as_echo "#define HAVE_SETENV 1" >>confdefs.h
5450
5451else
5452  case " $LIBOBJS " in
5453  *" setenv.$ac_objext "* ) ;;
5454  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
5455 ;;
5456esac
5457
5458fi
5459
5460ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
5461if test "x$ac_cv_func_setproctitle" = xyes; then :
5462  $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
5463
5464else
5465  case " $LIBOBJS " in
5466  *" setproctitle.$ac_objext "* ) ;;
5467  *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
5468 ;;
5469esac
5470
5471fi
5472
5473ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
5474if test "x$ac_cv_func_strcasestr" = xyes; then :
5475  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
5476
5477else
5478  case " $LIBOBJS " in
5479  *" strcasestr.$ac_objext "* ) ;;
5480  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
5481 ;;
5482esac
5483
5484fi
5485
5486ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5487if test "x$ac_cv_func_strlcat" = xyes; then :
5488  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
5489
5490else
5491  case " $LIBOBJS " in
5492  *" strlcat.$ac_objext "* ) ;;
5493  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5494 ;;
5495esac
5496
5497fi
5498
5499ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5500if test "x$ac_cv_func_strlcpy" = xyes; then :
5501  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5502
5503else
5504  case " $LIBOBJS " in
5505  *" strlcpy.$ac_objext "* ) ;;
5506  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5507 ;;
5508esac
5509
5510fi
5511
5512ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
5513if test "x$ac_cv_func_strndup" = xyes; then :
5514  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
5515
5516else
5517  case " $LIBOBJS " in
5518  *" strndup.$ac_objext "* ) ;;
5519  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
5520 ;;
5521esac
5522
5523fi
5524
5525ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
5526if test "x$ac_cv_func_strsep" = xyes; then :
5527  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
5528
5529else
5530  case " $LIBOBJS " in
5531  *" strsep.$ac_objext "* ) ;;
5532  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
5533 ;;
5534esac
5535
5536fi
5537
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
5540$as_echo_n "checking for working strnlen... " >&6; }
5541if ${ac_cv_func_strnlen_working+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
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
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553$ac_includes_default
5554int
5555main ()
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
5577if ac_fn_c_try_run "$LINENO"; then :
5578  ac_cv_func_strnlen_working=yes
5579else
5580  ac_cv_func_strnlen_working=no
5581fi
5582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5583  conftest.$ac_objext conftest.beam conftest.$ac_ext
5584fi
5585
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
5588$as_echo "$ac_cv_func_strnlen_working" >&6; }
5589test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
5590  *" strnlen.$ac_objext "* ) ;;
5591  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
5592 ;;
5593esac
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; }
5600if test "$cross_compiling" = yes; then :
5601  case " $LIBOBJS " in
5602  *" strtonum.$ac_objext "* ) ;;
5603  *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
5604 ;;
5605esac
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608
5609else
5610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612#include <stdlib.h>
5613int
5614main ()
5615{
5616return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if 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; }
5626else
5627  case " $LIBOBJS " in
5628  *" strtonum.$ac_objext "* ) ;;
5629  *) LIBOBJS="$LIBOBJS strtonum.$ac_objext"
5630 ;;
5631esac
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636  conftest.$ac_objext conftest.beam conftest.$ac_ext
5637fi
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; }
5645if test "$cross_compiling" = yes; then :
5646  case " $LIBOBJS " in
5647  *" reallocarray.$ac_objext "* ) ;;
5648  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
5649 ;;
5650esac
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653
5654else
5655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657#include <stdlib.h>
5658int
5659main ()
5660{
5661return (reallocarray(NULL, 1, 1) == NULL);
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_run "$LINENO"; then :
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669$as_echo "yes" >&6; }
5670else
5671  case " $LIBOBJS " in
5672  *" reallocarray.$ac_objext "* ) ;;
5673  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
5674 ;;
5675esac
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5680  conftest.$ac_objext conftest.beam conftest.$ac_ext
5681fi
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working recallocarray" >&5
5684$as_echo_n "checking for working recallocarray... " >&6; }
5685if test "$cross_compiling" = yes; then :
5686  case " $LIBOBJS " in
5687  *" recallocarray.$ac_objext "* ) ;;
5688  *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
5689 ;;
5690esac
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697#include <stdlib.h>
5698int
5699main ()
5700{
5701return (recallocarray(NULL, 1, 1, 1) == NULL);
5702
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_run "$LINENO"; then :
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709$as_echo "yes" >&6; }
5710else
5711  case " $LIBOBJS " in
5712  *" recallocarray.$ac_objext "* ) ;;
5713  *) LIBOBJS="$LIBOBJS recallocarray.$ac_objext"
5714 ;;
5715esac
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5720  conftest.$ac_objext conftest.beam conftest.$ac_ext
5721fi
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; }
5727if ${ac_cv_search_clock_gettime+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  ac_func_search_save_LIBS=$LIBS
5731cat 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
5738extern "C"
5739#endif
5740char clock_gettime ();
5741int
5742main ()
5743{
5744return clock_gettime ();
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749for 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
5758fi
5759rm -f core conftest.err conftest.$ac_objext \
5760    conftest$ac_exeext
5761  if ${ac_cv_search_clock_gettime+:} false; then :
5762  break
5763fi
5764done
5765if ${ac_cv_search_clock_gettime+:} false; then :
5766
5767else
5768  ac_cv_search_clock_gettime=no
5769fi
5770rm conftest.$ac_ext
5771LIBS=$ac_func_search_save_LIBS
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5774$as_echo "$ac_cv_search_clock_gettime" >&6; }
5775ac_res=$ac_cv_search_clock_gettime
5776if test "$ac_res" != no; then :
5777  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5778
5779fi
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.
5786case " $LIBOBJS " in
5787  *" getopt.$ac_objext "* ) ;;
5788  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5789 ;;
5790esac
5791
5792
5793# Look for libevent. Try libevent_core or libevent with pkg-config first then
5794# look for the library.
5795
5796pkg_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
5800if 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
5811else
5812  pkg_failed=yes
5813fi
5814 else
5815    pkg_failed=untried
5816fi
5817if 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
5828else
5829  pkg_failed=yes
5830fi
5831 else
5832    pkg_failed=untried
5833fi
5834
5835
5836
5837if test $pkg_failed = yes; then
5838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840
5841if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5842        _pkg_short_errors_supported=yes
5843else
5844        _pkg_short_errors_supported=no
5845fi
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
5856elif 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
5861else
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
5872fi
5873if test x$found_libevent = xno; then
5874
5875pkg_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
5879if 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
5890else
5891  pkg_failed=yes
5892fi
5893 else
5894    pkg_failed=untried
5895fi
5896if 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
5907else
5908  pkg_failed=yes
5909fi
5910 else
5911    pkg_failed=untried
5912fi
5913
5914
5915
5916if test $pkg_failed = yes; then
5917        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919
5920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5921        _pkg_short_errors_supported=yes
5922else
5923        _pkg_short_errors_supported=no
5924fi
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
5935elif 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
5940else
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
5951fi
5952fi
5953if 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; }
5956if ${ac_cv_search_event_init+:} false; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  ac_func_search_save_LIBS=$LIBS
5960cat 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
5967extern "C"
5968#endif
5969char event_init ();
5970int
5971main ()
5972{
5973return event_init ();
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978for 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
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989    conftest$ac_exeext
5990  if ${ac_cv_search_event_init+:} false; then :
5991  break
5992fi
5993done
5994if ${ac_cv_search_event_init+:} false; then :
5995
5996else
5997  ac_cv_search_event_init=no
5998fi
5999rm conftest.$ac_ext
6000LIBS=$ac_func_search_save_LIBS
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_init" >&5
6003$as_echo "$ac_cv_search_event_init" >&6; }
6004ac_res=$ac_cv_search_event_init
6005if test "$ac_res" != no; then :
6006  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6007  found_libevent=yes
6008else
6009  found_libevent=no
6010
6011fi
6012
6013fi
6014ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default"
6015if test "x$ac_cv_header_event2_event_h" = xyes; then :
6016  $as_echo "#define HAVE_EVENT2_EVENT_H 1" >>confdefs.h
6017
6018else
6019
6020		ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
6021if test "x$ac_cv_header_event_h" = xyes; then :
6022  $as_echo "#define HAVE_EVENT_H 1" >>confdefs.h
6023
6024else
6025  found_libevent=no
6026
6027fi
6028
6029
6030
6031
6032fi
6033
6034
6035if test "x$found_libevent" = xno; then
6036	as_fn_error $? "\"libevent not found\"" "$LINENO" 5
6037fi
6038
6039# Look for yacc.
6040# Extract the first word of "$YACC", so it can be a program name with args.
6041set 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; }
6044if ${ac_cv_prog_found_yacc+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  if test -n "$found_yacc"; then
6048  ac_cv_prog_found_yacc="$found_yacc" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
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
6061done
6062  done
6063IFS=$as_save_IFS
6064
6065  test -z "$ac_cv_prog_found_yacc" && ac_cv_prog_found_yacc="no"
6066fi
6067fi
6068found_yacc=$ac_cv_prog_found_yacc
6069if test -n "$found_yacc"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_yacc" >&5
6071$as_echo "$found_yacc" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078if test "x$found_yacc" = xno; then
6079	as_fn_error $? "\"yacc not found\"" "$LINENO" 5
6080fi
6081
6082# Look for ncurses or curses. Try pkg-config first then directly for the
6083# library.
6084
6085pkg_failed=no
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tinfo" >&5
6087$as_echo_n "checking for tinfo... " >&6; }
6088
6089if 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
6100else
6101  pkg_failed=yes
6102fi
6103 else
6104    pkg_failed=untried
6105fi
6106if 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
6117else
6118  pkg_failed=yes
6119fi
6120 else
6121    pkg_failed=untried
6122fi
6123
6124
6125
6126if test $pkg_failed = yes; then
6127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129
6130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6131        _pkg_short_errors_supported=yes
6132else
6133        _pkg_short_errors_supported=no
6134fi
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
6145elif 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
6150else
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
6161fi
6162if test "x$found_ncurses" = xno; then
6163
6164pkg_failed=no
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
6166$as_echo_n "checking for ncurses... " >&6; }
6167
6168if 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
6179else
6180  pkg_failed=yes
6181fi
6182 else
6183    pkg_failed=untried
6184fi
6185if 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
6196else
6197  pkg_failed=yes
6198fi
6199 else
6200    pkg_failed=untried
6201fi
6202
6203
6204
6205if test $pkg_failed = yes; then
6206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208
6209if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6210        _pkg_short_errors_supported=yes
6211else
6212        _pkg_short_errors_supported=no
6213fi
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
6224elif 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
6229else
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
6240fi
6241fi
6242if test "x$found_ncurses" = xno; then
6243
6244pkg_failed=no
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
6246$as_echo_n "checking for ncursesw... " >&6; }
6247
6248if 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
6259else
6260  pkg_failed=yes
6261fi
6262 else
6263    pkg_failed=untried
6264fi
6265if 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
6276else
6277  pkg_failed=yes
6278fi
6279 else
6280    pkg_failed=untried
6281fi
6282
6283
6284
6285if test $pkg_failed = yes; then
6286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288
6289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6290        _pkg_short_errors_supported=yes
6291else
6292        _pkg_short_errors_supported=no
6293fi
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
6304elif 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
6309else
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
6320fi
6321fi
6322if 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; }
6325if ${ac_cv_search_setupterm+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  ac_func_search_save_LIBS=$LIBS
6329cat 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
6336extern "C"
6337#endif
6338char setupterm ();
6339int
6340main ()
6341{
6342return setupterm ();
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347for 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
6356fi
6357rm -f core conftest.err conftest.$ac_objext \
6358    conftest$ac_exeext
6359  if ${ac_cv_search_setupterm+:} false; then :
6360  break
6361fi
6362done
6363if ${ac_cv_search_setupterm+:} false; then :
6364
6365else
6366  ac_cv_search_setupterm=no
6367fi
6368rm conftest.$ac_ext
6369LIBS=$ac_func_search_save_LIBS
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
6372$as_echo "$ac_cv_search_setupterm" >&6; }
6373ac_res=$ac_cv_search_setupterm
6374if test "$ac_res" != no; then :
6375  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6376  found_ncurses=yes
6377else
6378  found_ncurses=no
6379
6380fi
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"
6384if test "x$ac_cv_header_ncurses_h" = xyes; then :
6385  LIBS="$LIBS -lncurses"
6386else
6387  found_ncurses=no
6388
6389fi
6390
6391
6392	fi
6393fi
6394if test "x$found_ncurses" = xyes; then
6395	CPPFLAGS="$CPPFLAGS -DHAVE_NCURSES_H"
6396	$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
6397
6398else
6399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
6400$as_echo_n "checking for setupterm in -lcurses... " >&6; }
6401if ${ac_cv_lib_curses_setupterm+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  ac_check_lib_save_LIBS=$LIBS
6405LIBS="-lcurses  $LIBS"
6406cat 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
6413extern "C"
6414#endif
6415char setupterm ();
6416int
6417main ()
6418{
6419return setupterm ();
6420  ;
6421  return 0;
6422}
6423_ACEOF
6424if ac_fn_c_try_link "$LINENO"; then :
6425  ac_cv_lib_curses_setupterm=yes
6426else
6427  ac_cv_lib_curses_setupterm=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext \
6430    conftest$ac_exeext conftest.$ac_ext
6431LIBS=$ac_check_lib_save_LIBS
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
6434$as_echo "$ac_cv_lib_curses_setupterm" >&6; }
6435if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
6436  found_curses=yes
6437else
6438  found_curses=no
6439
6440fi
6441
6442	ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
6443if test "x$ac_cv_header_curses_h" = xyes; then :
6444
6445else
6446  found_curses=no
6447
6448fi
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
6459fi
6460for ac_func in  \
6461	tiparm \
6462	tiparm_s \
6463
6464do :
6465  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6466ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6467if 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
6472fi
6473done
6474
6475
6476# Look for utempter.
6477# Check whether --enable-utempter was given.
6478if test "${enable_utempter+set}" = set; then :
6479  enableval=$enable_utempter;
6480fi
6481
6482if test "x$enable_utempter" = xyes; then
6483	ac_fn_c_check_header_mongrel "$LINENO" "utempter.h" "ac_cv_header_utempter_h" "$ac_includes_default"
6484if test "x$ac_cv_header_utempter_h" = xyes; then :
6485  enable_utempter=yes
6486else
6487  enable_utempter=no
6488fi
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; }
6494if ${ac_cv_search_utempter_add_record+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  ac_func_search_save_LIBS=$LIBS
6498cat 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
6505extern "C"
6506#endif
6507char utempter_add_record ();
6508int
6509main ()
6510{
6511return utempter_add_record ();
6512  ;
6513  return 0;
6514}
6515_ACEOF
6516for 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
6525fi
6526rm -f core conftest.err conftest.$ac_objext \
6527    conftest$ac_exeext
6528  if ${ac_cv_search_utempter_add_record+:} false; then :
6529  break
6530fi
6531done
6532if ${ac_cv_search_utempter_add_record+:} false; then :
6533
6534else
6535  ac_cv_search_utempter_add_record=no
6536fi
6537rm conftest.$ac_ext
6538LIBS=$ac_func_search_save_LIBS
6539fi
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; }
6542ac_res=$ac_cv_search_utempter_add_record
6543if test "$ac_res" != no; then :
6544  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6545  enable_utempter=yes
6546else
6547  enable_utempter=no
6548
6549fi
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
6558fi
6559
6560# Look for utf8proc.
6561# Check whether --enable-utf8proc was given.
6562if test "${enable_utf8proc+set}" = set; then :
6563  enableval=$enable_utf8proc;
6564fi
6565
6566if test "x$enable_utf8proc" = xyes; then
6567
6568pkg_failed=no
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libutf8proc" >&5
6570$as_echo_n "checking for libutf8proc... " >&6; }
6571
6572if 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
6583else
6584  pkg_failed=yes
6585fi
6586 else
6587    pkg_failed=untried
6588fi
6589if 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
6600else
6601  pkg_failed=yes
6602fi
6603 else
6604    pkg_failed=untried
6605fi
6606
6607
6608
6609if test $pkg_failed = yes; then
6610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612
6613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6614        _pkg_short_errors_supported=yes
6615else
6616        _pkg_short_errors_supported=no
6617fi
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
6630Consider adjusting the PKG_CONFIG_PATH environment variable if you
6631installed software in a non-standard prefix.
6632
6633Alternatively, you may set the environment variables LIBUTF8PROC_CFLAGS
6634and LIBUTF8PROC_LIBS to avoid the need to call pkg-config.
6635See the pkg-config man page for more details." "$LINENO" 5
6636elif 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;}
6641as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6642is in your PATH or set the PKG_CONFIG environment variable to the full
6643path to pkg-config.
6644
6645Alternatively, you may set the environment variables LIBUTF8PROC_CFLAGS
6646and LIBUTF8PROC_LIBS to avoid the need to call pkg-config.
6647See the pkg-config man page for more details.
6648
6649To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6650See \`config.log' for more details" "$LINENO" 5; }
6651else
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
6662fi
6663	ac_fn_c_check_header_mongrel "$LINENO" "utf8proc.h" "ac_cv_header_utf8proc_h" "$ac_includes_default"
6664if test "x$ac_cv_header_utf8proc_h" = xyes; then :
6665  enable_utf8proc=yes
6666else
6667  enable_utf8proc=no
6668fi
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; }
6674if ${ac_cv_search_utf8proc_charwidth+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  ac_func_search_save_LIBS=$LIBS
6678cat 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
6685extern "C"
6686#endif
6687char utf8proc_charwidth ();
6688int
6689main ()
6690{
6691return utf8proc_charwidth ();
6692  ;
6693  return 0;
6694}
6695_ACEOF
6696for 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
6705fi
6706rm -f core conftest.err conftest.$ac_objext \
6707    conftest$ac_exeext
6708  if ${ac_cv_search_utf8proc_charwidth+:} false; then :
6709  break
6710fi
6711done
6712if ${ac_cv_search_utf8proc_charwidth+:} false; then :
6713
6714else
6715  ac_cv_search_utf8proc_charwidth=no
6716fi
6717rm conftest.$ac_ext
6718LIBS=$ac_func_search_save_LIBS
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_utf8proc_charwidth" >&5
6721$as_echo "$ac_cv_search_utf8proc_charwidth" >&6; }
6722ac_res=$ac_cv_search_utf8proc_charwidth
6723if test "$ac_res" != no; then :
6724  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6725  enable_utf8proc=yes
6726else
6727  enable_utf8proc=no
6728
6729fi
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
6738fi
6739 if test "x$enable_utf8proc" = xyes; then
6740  HAVE_UTF8PROC_TRUE=
6741  HAVE_UTF8PROC_FALSE='#'
6742else
6743  HAVE_UTF8PROC_TRUE='#'
6744  HAVE_UTF8PROC_FALSE=
6745fi
6746
6747
6748# Check for systemd support.
6749# Check whether --enable-systemd was given.
6750if test "${enable_systemd+set}" = set; then :
6751  enableval=$enable_systemd;
6752fi
6753
6754if test x"$enable_systemd" = xyes; then
6755
6756pkg_failed=no
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
6758$as_echo_n "checking for libsystemd... " >&6; }
6759
6760if 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
6771else
6772  pkg_failed=yes
6773fi
6774 else
6775    pkg_failed=untried
6776fi
6777if 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
6788else
6789  pkg_failed=yes
6790fi
6791 else
6792    pkg_failed=untried
6793fi
6794
6795
6796
6797if test $pkg_failed = yes; then
6798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800
6801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6802        _pkg_short_errors_supported=yes
6803else
6804        _pkg_short_errors_supported=no
6805fi
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
6816elif 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
6821else
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
6832fi
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
6839fi
6840 if test "x$found_systemd" = xyes; then
6841  HAVE_SYSTEMD_TRUE=
6842  HAVE_SYSTEMD_FALSE='#'
6843else
6844  HAVE_SYSTEMD_TRUE='#'
6845  HAVE_SYSTEMD_FALSE=
6846fi
6847
6848# Check whether --enable-cgroups was given.
6849if test "${enable_cgroups+set}" = set; then :
6850  enableval=$enable_cgroups;
6851fi
6852
6853if test "x$enable_cgroups" = x; then
6854	# Default to the same as $enable_systemd.
6855	enable_cgroups=$enable_systemd
6856fi
6857if 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
6864fi
6865
6866# Enable sixel support.
6867# Check whether --enable-sixel was given.
6868if test "${enable_sixel+set}" = set; then :
6869  enableval=$enable_sixel;
6870fi
6871
6872if test "x$enable_sixel" = xyes; then
6873	$as_echo "#define ENABLE_SIXEL 1" >>confdefs.h
6874
6875fi
6876 if test "x$enable_sixel" = xyes; then
6877  ENABLE_SIXEL_TRUE=
6878  ENABLE_SIXEL_FALSE='#'
6879else
6880  ENABLE_SIXEL_TRUE='#'
6881  ENABLE_SIXEL_FALSE=
6882fi
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; }
6888cat 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
6895int
6896main ()
6897{
6898
6899		b64_ntop(NULL, 0, NULL, 0);
6900
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905if ac_fn_c_try_link "$LINENO"; then :
6906  found_b64_ntop=yes
6907else
6908  found_b64_ntop=no
6909
6910fi
6911rm -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; }
6915OLD_LIBS="$LIBS"
6916if 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
6927int
6928main ()
6929{
6930
6931			b64_ntop(NULL, 0, NULL, 0);
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"; then :
6938  found_b64_ntop=yes
6939else
6940  found_b64_ntop=no
6941
6942fi
6943rm -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; }
6947fi
6948if 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
6959int
6960main ()
6961{
6962
6963			b64_ntop(NULL, 0, NULL, 0);
6964
6965  ;
6966  return 0;
6967}
6968_ACEOF
6969if ac_fn_c_try_link "$LINENO"; then :
6970  found_b64_ntop=yes
6971else
6972  found_b64_ntop=no
6973
6974fi
6975rm -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; }
6979fi
6980if test "x$found_b64_ntop" = xyes; then
6981	$as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
6982
6983else
6984	LIBS="$OLD_LIBS"
6985	case " $LIBOBJS " in
6986  *" base64.$ac_objext "* ) ;;
6987  *) LIBOBJS="$LIBOBJS base64.$ac_objext"
6988 ;;
6989esac
6990
6991fi
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; }
6996if ${ac_cv_search_inet_ntoa+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  ac_func_search_save_LIBS=$LIBS
7000cat 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
7007extern "C"
7008#endif
7009char inet_ntoa ();
7010int
7011main ()
7012{
7013return inet_ntoa ();
7014  ;
7015  return 0;
7016}
7017_ACEOF
7018for 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
7027fi
7028rm -f core conftest.err conftest.$ac_objext \
7029    conftest$ac_exeext
7030  if ${ac_cv_search_inet_ntoa+:} false; then :
7031  break
7032fi
7033done
7034if ${ac_cv_search_inet_ntoa+:} false; then :
7035
7036else
7037  ac_cv_search_inet_ntoa=no
7038fi
7039rm conftest.$ac_ext
7040LIBS=$ac_func_search_save_LIBS
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
7043$as_echo "$ac_cv_search_inet_ntoa" >&6; }
7044ac_res=$ac_cv_search_inet_ntoa
7045if test "$ac_res" != no; then :
7046  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7047
7048fi
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; }
7052if ${ac_cv_search_socket+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055  ac_func_search_save_LIBS=$LIBS
7056cat 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
7063extern "C"
7064#endif
7065char socket ();
7066int
7067main ()
7068{
7069return socket ();
7070  ;
7071  return 0;
7072}
7073_ACEOF
7074for 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
7083fi
7084rm -f core conftest.err conftest.$ac_objext \
7085    conftest$ac_exeext
7086  if ${ac_cv_search_socket+:} false; then :
7087  break
7088fi
7089done
7090if ${ac_cv_search_socket+:} false; then :
7091
7092else
7093  ac_cv_search_socket=no
7094fi
7095rm conftest.$ac_ext
7096LIBS=$ac_func_search_save_LIBS
7097fi
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7099$as_echo "$ac_cv_search_socket" >&6; }
7100ac_res=$ac_cv_search_socket
7101if test "$ac_res" != no; then :
7102  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7103
7104fi
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; }
7108if ${ac_cv_lib_xnet_socket+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  ac_check_lib_save_LIBS=$LIBS
7112LIBS="-lxnet  $LIBS"
7113cat 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
7120extern "C"
7121#endif
7122char socket ();
7123int
7124main ()
7125{
7126return socket ();
7127  ;
7128  return 0;
7129}
7130_ACEOF
7131if ac_fn_c_try_link "$LINENO"; then :
7132  ac_cv_lib_xnet_socket=yes
7133else
7134  ac_cv_lib_xnet_socket=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext \
7137    conftest$ac_exeext conftest.$ac_ext
7138LIBS=$ac_check_lib_save_LIBS
7139fi
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
7141$as_echo "$ac_cv_lib_xnet_socket" >&6; }
7142if 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
7149fi
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; }
7157cat 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
7172if ac_fn_c_try_link "$LINENO"; then :
7173  found_malloc_trim=yes
7174else
7175  found_malloc_trim=no
7176
7177fi
7178rm -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; }
7182if test "x$found_malloc_trim" = xyes; then
7183	$as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
7184
7185fi
7186
7187# Build against jemalloc if requested.
7188# Check whether --enable-jemalloc was given.
7189if test "${enable_jemalloc+set}" = set; then :
7190  enableval=$enable_jemalloc;
7191fi
7192
7193if test "x$enable_jemalloc" = xyes; then
7194
7195pkg_failed=no
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5
7197$as_echo_n "checking for jemalloc... " >&6; }
7198
7199if 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
7210else
7211  pkg_failed=yes
7212fi
7213 else
7214    pkg_failed=untried
7215fi
7216if 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
7227else
7228  pkg_failed=yes
7229fi
7230 else
7231    pkg_failed=untried
7232fi
7233
7234
7235
7236if test $pkg_failed = yes; then
7237        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
7239
7240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7241        _pkg_short_errors_supported=yes
7242else
7243        _pkg_short_errors_supported=no
7244fi
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
7255elif 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
7260else
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
7270fi
7271fi
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).
7276XOPEN_DEFINES=
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMSG_DATA" >&5
7278$as_echo_n "checking for CMSG_DATA... " >&6; }
7279cat 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
7288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289  $EGREP "yes" >/dev/null 2>&1; then :
7290  found_cmsg_data=yes
7291else
7292  found_cmsg_data=no
7293
7294fi
7295rm -f conftest*
7296
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cmsg_data" >&5
7298$as_echo "$found_cmsg_data" >&6; }
7299if 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
7313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7314  $EGREP "yes" >/dev/null 2>&1; then :
7315  found_cmsg_data=yes
7316else
7317  found_cmsg_data=no
7318
7319fi
7320rm -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
7327fi
7328if 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
7341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7342  $EGREP "yes" >/dev/null 2>&1; then :
7343  found_cmsg_data=yes
7344else
7345  found_cmsg_data=no
7346
7347fi
7348rm -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
7357fi
7358
7359
7360# Look for err and friends in err.h.
7361ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
7362if test "x$ac_cv_func_err" = xyes; then :
7363  found_err_h=yes
7364else
7365  found_err_h=no
7366fi
7367
7368ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
7369if test "x$ac_cv_func_errx" = xyes; then :
7370
7371else
7372  found_err_h=no
7373fi
7374
7375ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
7376if test "x$ac_cv_func_warn" = xyes; then :
7377
7378else
7379  found_err_h=no
7380fi
7381
7382ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
7383if test "x$ac_cv_func_warnx" = xyes; then :
7384
7385else
7386  found_err_h=no
7387fi
7388
7389if 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"
7391if test "x$ac_cv_header_err_h" = xyes; then :
7392
7393else
7394  found_err_h=no
7395fi
7396
7397
7398else
7399	case " $LIBOBJS " in
7400  *" err.$ac_objext "* ) ;;
7401  *) LIBOBJS="$LIBOBJS err.$ac_objext"
7402 ;;
7403esac
7404
7405fi
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; }
7410if ${ac_cv_search_imsg_init+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  ac_func_search_save_LIBS=$LIBS
7414cat 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
7421extern "C"
7422#endif
7423char imsg_init ();
7424int
7425main ()
7426{
7427return imsg_init ();
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432for 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
7441fi
7442rm -f core conftest.err conftest.$ac_objext \
7443    conftest$ac_exeext
7444  if ${ac_cv_search_imsg_init+:} false; then :
7445  break
7446fi
7447done
7448if ${ac_cv_search_imsg_init+:} false; then :
7449
7450else
7451  ac_cv_search_imsg_init=no
7452fi
7453rm conftest.$ac_ext
7454LIBS=$ac_func_search_save_LIBS
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_imsg_init" >&5
7457$as_echo "$ac_cv_search_imsg_init" >&6; }
7458ac_res=$ac_cv_search_imsg_init
7459if test "$ac_res" != no; then :
7460  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7461  found_imsg_init=yes
7462else
7463  found_imsg_init=no
7464fi
7465
7466if test "x$found_imsg_init" = xyes; then
7467	$as_echo "#define HAVE_IMSG 1" >>confdefs.h
7468
7469else
7470	case " $LIBOBJS " in
7471  *" imsg.$ac_objext "* ) ;;
7472  *) LIBOBJS="$LIBOBJS imsg.$ac_objext"
7473 ;;
7474esac
7475
7476	case " $LIBOBJS " in
7477  *" imsg-buffer.$ac_objext "* ) ;;
7478  *) LIBOBJS="$LIBOBJS imsg-buffer.$ac_objext"
7479 ;;
7480esac
7481
7482fi
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.
7487ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
7488if test "x$ac_cv_func_daemon" = xyes; then :
7489  found_daemon=yes
7490else
7491  found_daemon=no
7492fi
7493
7494ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "
7495		#include <stdlib.h>
7496		#include <unistd.h>
7497
7498
7499"
7500if test "x$ac_cv_have_decl_daemon" = xyes; then :
7501
7502else
7503  found_daemon=no
7504fi
7505
7506if test "x$found_daemon" = xyes; then
7507	$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
7508
7509else
7510	case " $LIBOBJS " in
7511  *" daemon.$ac_objext "* ) ;;
7512  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
7513 ;;
7514esac
7515
7516fi
7517
7518# Look for stravis, compat/{vis,unvis}.c used if missing.
7519ac_fn_c_check_func "$LINENO" "stravis" "ac_cv_func_stravis"
7520if test "x$ac_cv_func_stravis" = xyes; then :
7521  found_stravis=yes
7522else
7523  found_stravis=no
7524fi
7525
7526if 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
7534if (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; }
7538else
7539  found_stravis=no
7540fi
7541rm -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
7547fi
7548if 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"
7555if test "x$ac_cv_have_decl_VIS_DQ" = xyes; then :
7556
7557else
7558  found_stravis=no
7559fi
7560
7561fi
7562if test "x$found_stravis" = xyes; then
7563	$as_echo "#define HAVE_VIS 1" >>confdefs.h
7564
7565else
7566	case " $LIBOBJS " in
7567  *" vis.$ac_objext "* ) ;;
7568  *) LIBOBJS="$LIBOBJS vis.$ac_objext"
7569 ;;
7570esac
7571
7572	case " $LIBOBJS " in
7573  *" unvis.$ac_objext "* ) ;;
7574  *) LIBOBJS="$LIBOBJS unvis.$ac_objext"
7575 ;;
7576esac
7577
7578fi
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; }
7583if ${ac_cv_search_fdforkpty+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  ac_func_search_save_LIBS=$LIBS
7587cat 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
7594extern "C"
7595#endif
7596char fdforkpty ();
7597int
7598main ()
7599{
7600return fdforkpty ();
7601  ;
7602  return 0;
7603}
7604_ACEOF
7605for 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
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616    conftest$ac_exeext
7617  if ${ac_cv_search_fdforkpty+:} false; then :
7618  break
7619fi
7620done
7621if ${ac_cv_search_fdforkpty+:} false; then :
7622
7623else
7624  ac_cv_search_fdforkpty=no
7625fi
7626rm conftest.$ac_ext
7627LIBS=$ac_func_search_save_LIBS
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdforkpty" >&5
7630$as_echo "$ac_cv_search_fdforkpty" >&6; }
7631ac_res=$ac_cv_search_fdforkpty
7632if test "$ac_res" != no; then :
7633  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7634  found_fdforkpty=yes
7635else
7636  found_fdforkpty=no
7637fi
7638
7639if test "x$found_fdforkpty" = xyes; then
7640	$as_echo "#define HAVE_FDFORKPTY 1" >>confdefs.h
7641
7642else
7643	case " $LIBOBJS " in
7644  *" fdforkpty.$ac_objext "* ) ;;
7645  *) LIBOBJS="$LIBOBJS fdforkpty.$ac_objext"
7646 ;;
7647esac
7648
7649fi
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing forkpty" >&5
7651$as_echo_n "checking for library containing forkpty... " >&6; }
7652if ${ac_cv_search_forkpty+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  ac_func_search_save_LIBS=$LIBS
7656cat 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
7663extern "C"
7664#endif
7665char forkpty ();
7666int
7667main ()
7668{
7669return forkpty ();
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674for 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
7683fi
7684rm -f core conftest.err conftest.$ac_objext \
7685    conftest$ac_exeext
7686  if ${ac_cv_search_forkpty+:} false; then :
7687  break
7688fi
7689done
7690if ${ac_cv_search_forkpty+:} false; then :
7691
7692else
7693  ac_cv_search_forkpty=no
7694fi
7695rm conftest.$ac_ext
7696LIBS=$ac_func_search_save_LIBS
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_forkpty" >&5
7699$as_echo "$ac_cv_search_forkpty" >&6; }
7700ac_res=$ac_cv_search_forkpty
7701if test "$ac_res" != no; then :
7702  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7703  found_forkpty=yes
7704else
7705  found_forkpty=no
7706fi
7707
7708if test "x$found_forkpty" = xyes; then
7709	$as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
7710
7711fi
7712 if test "x$found_forkpty" = xno; then
7713  NEED_FORKPTY_TRUE=
7714  NEED_FORKPTY_FALSE='#'
7715else
7716  NEED_FORKPTY_TRUE='#'
7717  NEED_FORKPTY_FALSE=
7718fi
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; }
7724if ${ac_cv_search_kinfo_getfile+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  ac_func_search_save_LIBS=$LIBS
7728cat 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
7735extern "C"
7736#endif
7737char kinfo_getfile ();
7738int
7739main ()
7740{
7741return kinfo_getfile ();
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746for 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
7755fi
7756rm -f core conftest.err conftest.$ac_objext \
7757    conftest$ac_exeext
7758  if ${ac_cv_search_kinfo_getfile+:} false; then :
7759  break
7760fi
7761done
7762if ${ac_cv_search_kinfo_getfile+:} false; then :
7763
7764else
7765  ac_cv_search_kinfo_getfile=no
7766fi
7767rm conftest.$ac_ext
7768LIBS=$ac_func_search_save_LIBS
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7771$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7772ac_res=$ac_cv_search_kinfo_getfile
7773if test "$ac_res" != no; then :
7774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7775
7776fi
7777
7778
7779# Look for a suitable queue.h.
7780ac_fn_c_check_decl "$LINENO" "TAILQ_CONCAT" "ac_cv_have_decl_TAILQ_CONCAT" "#include <sys/queue.h>
7781
7782"
7783if test "x$ac_cv_have_decl_TAILQ_CONCAT" = xyes; then :
7784  found_queue_h=yes
7785else
7786  found_queue_h=no
7787fi
7788
7789ac_fn_c_check_decl "$LINENO" "TAILQ_PREV" "ac_cv_have_decl_TAILQ_PREV" "#include <sys/queue.h>
7790
7791"
7792if test "x$ac_cv_have_decl_TAILQ_PREV" = xyes; then :
7793
7794else
7795  found_queue_h=no
7796fi
7797
7798ac_fn_c_check_decl "$LINENO" "TAILQ_REPLACE" "ac_cv_have_decl_TAILQ_REPLACE" "#include <sys/queue.h>
7799
7800"
7801if test "x$ac_cv_have_decl_TAILQ_REPLACE" = xyes; then :
7802
7803else
7804  found_queue_h=no
7805fi
7806
7807if test "x$found_queue_h" = xyes; then
7808	$as_echo "#define HAVE_QUEUE_H 1" >>confdefs.h
7809
7810fi
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; }
7815cat 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
7828if 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; }
7832else
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835
7836fi
7837rm -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; }
7843cat 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
7856if 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; }
7860else
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863
7864fi
7865rm -f core conftest.err conftest.$ac_objext \
7866    conftest$ac_exeext conftest.$ac_ext
7867
7868# Look for prctl(PR_SET_NAME).
7869ac_fn_c_check_decl "$LINENO" "PR_SET_NAME" "ac_cv_have_decl_PR_SET_NAME" "#include <sys/prctl.h>
7870
7871"
7872if test "x$ac_cv_have_decl_PR_SET_NAME" = xyes; then :
7873  $as_echo "#define HAVE_PR_SET_NAME 1" >>confdefs.h
7874
7875fi
7876
7877
7878# Look for setsockopt(SO_PEERCRED).
7879ac_fn_c_check_decl "$LINENO" "SO_PEERCRED" "ac_cv_have_decl_SO_PEERCRED" "#include <sys/socket.h>
7880
7881"
7882if test "x$ac_cv_have_decl_SO_PEERCRED" = xyes; then :
7883  $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
7884
7885fi
7886
7887
7888# Look for fcntl(F_CLOSEM).
7889ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
7890
7891"
7892if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7893  $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7894
7895fi
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; }
7901if 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; }
7906else
7907	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911# Try to figure out what the best value for TERM might be.
7912if 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
7919else
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
7938if ac_fn_c_try_run "$LINENO"; then :
7939  DEFAULT_TERM=screen-256color
7940fi
7941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7942  conftest.$ac_objext conftest.beam conftest.$ac_ext
7943fi
7944
7945	if test "$cross_compiling" = yes; then :
7946  DEFAULT_TERM=screen
7947
7948else
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
7967if ac_fn_c_try_run "$LINENO"; then :
7968  DEFAULT_TERM=tmux
7969fi
7970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7971  conftest.$ac_objext conftest.beam conftest.$ac_ext
7972fi
7973
7974	if test "$cross_compiling" = yes; then :
7975  DEFAULT_TERM=screen
7976
7977else
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
7996if ac_fn_c_try_run "$LINENO"; then :
7997  DEFAULT_TERM=tmux-256color
7998fi
7999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8000  conftest.$ac_objext conftest.beam conftest.$ac_ext
8001fi
8002
8003	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_TERM" >&5
8004$as_echo "$DEFAULT_TERM" >&6; }
8005fi
8006
8007
8008# Man page defaults to mdoc.
8009MANFORMAT=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; }
8015case "$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 ;;
8042esac
8043
8044		case " $LIBOBJS " in
8045  *" daemon-darwin.$ac_objext "* ) ;;
8046  *) LIBOBJS="$LIBOBJS daemon-darwin.$ac_objext"
8047 ;;
8048esac
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		;;
8142esac
8143
8144 if test "x$PLATFORM" = xaix; then
8145  IS_AIX_TRUE=
8146  IS_AIX_FALSE='#'
8147else
8148  IS_AIX_TRUE='#'
8149  IS_AIX_FALSE=
8150fi
8151
8152 if test "x$PLATFORM" = xdarwin; then
8153  IS_DARWIN_TRUE=
8154  IS_DARWIN_FALSE='#'
8155else
8156  IS_DARWIN_TRUE='#'
8157  IS_DARWIN_FALSE=
8158fi
8159
8160 if test "x$PLATFORM" = xdragonfly; then
8161  IS_DRAGONFLY_TRUE=
8162  IS_DRAGONFLY_FALSE='#'
8163else
8164  IS_DRAGONFLY_TRUE='#'
8165  IS_DRAGONFLY_FALSE=
8166fi
8167
8168 if test "x$PLATFORM" = xlinux; then
8169  IS_LINUX_TRUE=
8170  IS_LINUX_FALSE='#'
8171else
8172  IS_LINUX_TRUE='#'
8173  IS_LINUX_FALSE=
8174fi
8175
8176 if test "x$PLATFORM" = xfreebsd; then
8177  IS_FREEBSD_TRUE=
8178  IS_FREEBSD_FALSE='#'
8179else
8180  IS_FREEBSD_TRUE='#'
8181  IS_FREEBSD_FALSE=
8182fi
8183
8184 if test "x$PLATFORM" = xnetbsd; then
8185  IS_NETBSD_TRUE=
8186  IS_NETBSD_FALSE='#'
8187else
8188  IS_NETBSD_TRUE='#'
8189  IS_NETBSD_FALSE=
8190fi
8191
8192 if test "x$PLATFORM" = xopenbsd; then
8193  IS_OPENBSD_TRUE=
8194  IS_OPENBSD_FALSE='#'
8195else
8196  IS_OPENBSD_TRUE='#'
8197  IS_OPENBSD_FALSE=
8198fi
8199
8200 if test "x$PLATFORM" = xsunos; then
8201  IS_SUNOS_TRUE=
8202  IS_SUNOS_FALSE='#'
8203else
8204  IS_SUNOS_TRUE='#'
8205  IS_SUNOS_FALSE=
8206fi
8207
8208 if test "x$PLATFORM" = xhpux; then
8209  IS_HPUX_TRUE=
8210  IS_HPUX_FALSE='#'
8211else
8212  IS_HPUX_TRUE='#'
8213  IS_HPUX_FALSE=
8214fi
8215
8216 if test "x$PLATFORM" = xhaiku; then
8217  IS_HAIKU_TRUE=
8218  IS_HAIKU_FALSE='#'
8219else
8220  IS_HAIKU_TRUE='#'
8221  IS_HAIKU_FALSE=
8222fi
8223
8224 if test "x$PLATFORM" = xunknown; then
8225  IS_UNKNOWN_TRUE=
8226  IS_UNKNOWN_FALSE='#'
8227else
8228  IS_UNKNOWN_TRUE='#'
8229  IS_UNKNOWN_FALSE=
8230fi
8231
8232
8233# Set the default lock command
8234DEFAULT_LOCK_CMD="lock -np"
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lock-command" >&5
8236$as_echo_n "checking lock-command... " >&6; }
8237if test "x$PLATFORM" = xlinux; then
8238	# Extract the first word of "vlock", so it can be a program name with args.
8239set 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; }
8242if ${ac_cv_prog_found_vlock+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  if test -n "$found_vlock"; then
8246  ac_cv_prog_found_vlock="$found_vlock" # Let the user override the test.
8247else
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
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
8259done
8260  done
8261IFS=$as_save_IFS
8262
8263  test -z "$ac_cv_prog_found_vlock" && ac_cv_prog_found_vlock="no"
8264fi
8265fi
8266found_vlock=$ac_cv_prog_found_vlock
8267if test -n "$found_vlock"; then
8268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_vlock" >&5
8269$as_echo "$found_vlock" >&6; }
8270else
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274
8275
8276	if test "x$found_vlock" = xyes; then
8277		DEFAULT_LOCK_CMD="vlock"
8278	fi
8279fi
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
8288CPPFLAGS="$SAVED_CPPFLAGS"
8289
8290CFLAGS="$SAVED_CFLAGS"
8291
8292LDFLAGS="$SAVED_LDFLAGS"
8293
8294# autoconf should create a Makefile.
8295ac_config_files="$ac_config_files Makefile"
8296
8297cat >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
8359if 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
8380fi
8381rm -f confcache
8382
8383test "x$prefix" = xNONE && prefix=$ac_default_prefix
8384# Let make expand exec_prefix.
8385test "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.
8394ac_script='
8395:mline
8396/\\$/{
8397 N
8398 s,\\\n,,
8399 b mline
8400}
8401t clear
8402:clear
8403s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
8404t quote
8405s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
8406t quote
8407b any
8408:quote
8409s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8410s/\[/\\&/g
8411s/\]/\\&/g
8412s/\$/$$/g
8413H
8414:any
8415${
8416	g
8417	s/^\n//
8418	s/\n/ /g
8419	p
8420}
8421'
8422DEFS=`sed -n "$ac_script" confdefs.h`
8423
8424
8425ac_libobjs=
8426ac_ltlibobjs=
8427U=
8428for 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'
8436done
8437LIBOBJS=$ac_libobjs
8438
8439LTLIBOBJS=$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='#'
8453else
8454  am__EXEEXT_TRUE='#'
8455  am__EXEEXT_FALSE=
8456fi
8457
8458if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8459  as_fn_error $? "conditional \"AMDEP\" was never defined.
8460Usually this means the macro was only invoked conditionally." "$LINENO" 5
8461fi
8462if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8463  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8464Usually this means the macro was only invoked conditionally." "$LINENO" 5
8465fi
8466if test -z "${IS_DEBUG_TRUE}" && test -z "${IS_DEBUG_FALSE}"; then
8467  as_fn_error $? "conditional \"IS_DEBUG\" was never defined.
8468Usually this means the macro was only invoked conditionally." "$LINENO" 5
8469fi
8470if test -z "${NEED_FUZZING_TRUE}" && test -z "${NEED_FUZZING_FALSE}"; then
8471  as_fn_error $? "conditional \"NEED_FUZZING\" was never defined.
8472Usually this means the macro was only invoked conditionally." "$LINENO" 5
8473fi
8474if test -z "${IS_GCC_TRUE}" && test -z "${IS_GCC_FALSE}"; then
8475  as_fn_error $? "conditional \"IS_GCC\" was never defined.
8476Usually this means the macro was only invoked conditionally." "$LINENO" 5
8477fi
8478if test -z "${IS_SUNCC_TRUE}" && test -z "${IS_SUNCC_FALSE}"; then
8479  as_fn_error $? "conditional \"IS_SUNCC\" was never defined.
8480Usually this means the macro was only invoked conditionally." "$LINENO" 5
8481fi
8482if test -z "${HAVE_UTF8PROC_TRUE}" && test -z "${HAVE_UTF8PROC_FALSE}"; then
8483  as_fn_error $? "conditional \"HAVE_UTF8PROC\" was never defined.
8484Usually this means the macro was only invoked conditionally." "$LINENO" 5
8485fi
8486if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
8487  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
8488Usually this means the macro was only invoked conditionally." "$LINENO" 5
8489fi
8490if test -z "${ENABLE_SIXEL_TRUE}" && test -z "${ENABLE_SIXEL_FALSE}"; then
8491  as_fn_error $? "conditional \"ENABLE_SIXEL\" was never defined.
8492Usually this means the macro was only invoked conditionally." "$LINENO" 5
8493fi
8494if test -z "${NEED_FORKPTY_TRUE}" && test -z "${NEED_FORKPTY_FALSE}"; then
8495  as_fn_error $? "conditional \"NEED_FORKPTY\" was never defined.
8496Usually this means the macro was only invoked conditionally." "$LINENO" 5
8497fi
8498if test -z "${IS_AIX_TRUE}" && test -z "${IS_AIX_FALSE}"; then
8499  as_fn_error $? "conditional \"IS_AIX\" was never defined.
8500Usually this means the macro was only invoked conditionally." "$LINENO" 5
8501fi
8502if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
8503  as_fn_error $? "conditional \"IS_DARWIN\" was never defined.
8504Usually this means the macro was only invoked conditionally." "$LINENO" 5
8505fi
8506if test -z "${IS_DRAGONFLY_TRUE}" && test -z "${IS_DRAGONFLY_FALSE}"; then
8507  as_fn_error $? "conditional \"IS_DRAGONFLY\" was never defined.
8508Usually this means the macro was only invoked conditionally." "$LINENO" 5
8509fi
8510if test -z "${IS_LINUX_TRUE}" && test -z "${IS_LINUX_FALSE}"; then
8511  as_fn_error $? "conditional \"IS_LINUX\" was never defined.
8512Usually this means the macro was only invoked conditionally." "$LINENO" 5
8513fi
8514if test -z "${IS_FREEBSD_TRUE}" && test -z "${IS_FREEBSD_FALSE}"; then
8515  as_fn_error $? "conditional \"IS_FREEBSD\" was never defined.
8516Usually this means the macro was only invoked conditionally." "$LINENO" 5
8517fi
8518if test -z "${IS_NETBSD_TRUE}" && test -z "${IS_NETBSD_FALSE}"; then
8519  as_fn_error $? "conditional \"IS_NETBSD\" was never defined.
8520Usually this means the macro was only invoked conditionally." "$LINENO" 5
8521fi
8522if test -z "${IS_OPENBSD_TRUE}" && test -z "${IS_OPENBSD_FALSE}"; then
8523  as_fn_error $? "conditional \"IS_OPENBSD\" was never defined.
8524Usually this means the macro was only invoked conditionally." "$LINENO" 5
8525fi
8526if test -z "${IS_SUNOS_TRUE}" && test -z "${IS_SUNOS_FALSE}"; then
8527  as_fn_error $? "conditional \"IS_SUNOS\" was never defined.
8528Usually this means the macro was only invoked conditionally." "$LINENO" 5
8529fi
8530if test -z "${IS_HPUX_TRUE}" && test -z "${IS_HPUX_FALSE}"; then
8531  as_fn_error $? "conditional \"IS_HPUX\" was never defined.
8532Usually this means the macro was only invoked conditionally." "$LINENO" 5
8533fi
8534if test -z "${IS_HAIKU_TRUE}" && test -z "${IS_HAIKU_FALSE}"; then
8535  as_fn_error $? "conditional \"IS_HAIKU\" was never defined.
8536Usually this means the macro was only invoked conditionally." "$LINENO" 5
8537fi
8538if test -z "${IS_UNKNOWN_TRUE}" && test -z "${IS_UNKNOWN_FALSE}"; then
8539  as_fn_error $? "conditional \"IS_UNKNOWN\" was never defined.
8540Usually this means the macro was only invoked conditionally." "$LINENO" 5
8541fi
8542
8543: "${CONFIG_STATUS=./config.status}"
8544ac_write_fail=0
8545ac_clean_files_save=$ac_clean_files
8546ac_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;}
8549as_write_fail=0
8550cat >$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
8557debug=false
8558ac_cs_recheck=false
8559ac_cs_silent=false
8560
8561SHELL=\${CONFIG_SHELL-$SHELL}
8562export SHELL
8563_ASEOF
8564cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8565## -------------------- ##
8566## M4sh Initialization. ##
8567## -------------------- ##
8568
8569# Be more Bourne compatible
8570DUALCASE=1; export DUALCASE # for MKS sh
8571if 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
8578else
8579  case `(set -o) 2>/dev/null` in #(
8580  *posix*) :
8581    set -o posix ;; #(
8582  *) :
8583     ;;
8584esac
8585fi
8586
8587
8588as_nl='
8589'
8590export as_nl
8591# Printing a long string crashes Solaris 7 /usr/bin/printf.
8592as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8593as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8594as_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.
8597if 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 --'
8601elif (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'
8604else
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'
8624fi
8625
8626# The user is always right.
8627if 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  }
8633fi
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.)
8641IFS=" ""	$as_nl"
8642
8643# Find who we are.  Look in the path if we contain no directory separator.
8644as_myself=
8645case $0 in #((
8646  *[\\/]* ) as_myself=$0 ;;
8647  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
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
8654IFS=$as_save_IFS
8655
8656     ;;
8657esac
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.
8660if test "x$as_myself" = x; then
8661  as_myself=$0
8662fi
8663if test ! -f "$as_myself"; then
8664  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8665  exit 1
8666fi
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.
8672for as_var in BASH_ENV ENV MAIL MAILPATH
8673do eval test x\${$as_var+set} = xset \
8674  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8675done
8676PS1='$ '
8677PS2='> '
8678PS4='+ '
8679
8680# NLS nuisances.
8681LC_ALL=C
8682export LC_ALL
8683LANGUAGE=C
8684export 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.
8695as_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.
8710as_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.
8718as_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.
8728as_fn_unset ()
8729{
8730  { eval $1=; unset $1;}
8731}
8732as_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.
8739if (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  }'
8744else
8745  as_fn_append ()
8746  {
8747    eval $1=\$$1\$2
8748  }
8749fi # 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.
8756if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8757  eval 'as_fn_arith ()
8758  {
8759    as_val=$(( $* ))
8760  }'
8761else
8762  as_fn_arith ()
8763  {
8764    as_val=`expr "$@" || test $? -eq 1`
8765  }
8766fi # as_fn_arith
8767
8768
8769if expr a : '\(a\)' >/dev/null 2>&1 &&
8770   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8771  as_expr=expr
8772else
8773  as_expr=false
8774fi
8775
8776if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8777  as_basename=basename
8778else
8779  as_basename=false
8780fi
8781
8782if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8783  as_dirname=dirname
8784else
8785  as_dirname=false
8786fi
8787
8788as_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.
8808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8811as_cr_digits='0123456789'
8812as_cr_alnum=$as_cr_Letters$as_cr_digits
8813
8814ECHO_C= ECHO_N= ECHO_T=
8815case `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';;
8825esac
8826
8827rm -f conf$$ conf$$.exe conf$$.file
8828if test -d conf$$.dir; then
8829  rm -f conf$$.dir/conf$$.file
8830else
8831  rm -f conf$$.dir
8832  mkdir conf$$.dir 2>/dev/null
8833fi
8834if (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
8848else
8849  as_ln_s='cp -pR'
8850fi
8851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8852rmdir conf$$.dir 2>/dev/null
8853
8854
8855# as_fn_mkdir_p
8856# -------------
8857# Create "$as_dir" as a directory, including parents if necessary.
8858as_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
8902if mkdir -p . 2>/dev/null; then
8903  as_mkdir_p='mkdir -p "$as_dir"'
8904else
8905  test -d ./-p && rmdir ./-p
8906  as_mkdir_p=false
8907fi
8908
8909
8910# as_fn_executable_p FILE
8911# -----------------------
8912# Test if FILE is an executable regular file.
8913as_fn_executable_p ()
8914{
8915  test -f "$1" && test -x "$1"
8916} # as_fn_executable_p
8917as_test_x='test -x'
8918as_executable_p=as_fn_executable_p
8919
8920# Sed expression to map a string onto a valid CPP name.
8921as_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.
8924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8925
8926
8927exec 6>&1
8928## ----------------------------------- ##
8929## Main body of $CONFIG_STATUS script. ##
8930## ----------------------------------- ##
8931_ASEOF
8932test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8933
8934cat >>$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.
8938ac_log="
8939This file was extended by tmux $as_me 3.5a, which was
8940generated 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
8948on `(hostname || uname -n) 2>/dev/null | sed 1q`
8949"
8950
8951_ACEOF
8952
8953case $ac_config_files in *"
8954"*) set x $ac_config_files; shift; ac_config_files=$*;;
8955esac
8956
8957
8958
8959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8960# Files that config.status was made for.
8961config_files="$ac_config_files"
8962config_commands="$ac_config_commands"
8963
8964_ACEOF
8965
8966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8967ac_cs_usage="\
8968\`$as_me' instantiates files and other configuration actions
8969from templates according to the current configuration.  Unless the files
8970and actions are specified as TAGs, all are instantiated by default.
8971
8972Usage: $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
8984Configuration files:
8985$config_files
8986
8987Configuration commands:
8988$config_commands
8989
8990Report bugs to the package provider."
8991
8992_ACEOF
8993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8994ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8995ac_cs_version="\\
8996tmux config.status 3.5a
8997configured by $0, generated by GNU Autoconf 2.69,
8998  with options \\"\$ac_cs_config\\"
8999
9000Copyright (C) 2012 Free Software Foundation, Inc.
9001This config.status script is free software; the Free Software Foundation
9002gives unlimited permission to copy, distribute and modify it."
9003
9004ac_pwd='$ac_pwd'
9005srcdir='$srcdir'
9006INSTALL='$INSTALL'
9007MKDIR_P='$MKDIR_P'
9008AWK='$AWK'
9009test -n "\$AWK" || AWK=awk
9010_ACEOF
9011
9012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9013# The default lists apply if the user does not specify any file.
9014ac_need_defaults=:
9015while test $# != 0
9016do
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'
9061Try \`$0 --help' for more information." ;;
9062
9063  *) as_fn_append ac_config_targets " $1"
9064     ac_need_defaults=false ;;
9065
9066  esac
9067  shift
9068done
9069
9070ac_configure_extra_args=
9071
9072if $ac_cs_silent; then
9073  exec 6>/dev/null
9074  ac_configure_extra_args="$ac_configure_extra_args --silent"
9075fi
9076
9077_ACEOF
9078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9079if \$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 "\$@"
9086fi
9087
9088_ACEOF
9089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9090exec 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
9100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9101#
9102# INIT-COMMANDS
9103#
9104AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9105
9106_ACEOF
9107
9108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9109
9110# Handling of arguments.
9111for ac_config_target in $ac_config_targets
9112do
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
9119done
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.
9126if $ac_need_defaults; then
9127  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9128  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9129fi
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
9156ac_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'.
9161if test -n "$CONFIG_FILES"; then
9162
9163
9164ac_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.
9168if test "x$ac_cr" = x; then
9169  eval ac_cr=\$\'\\r\'
9170fi
9171ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9172if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9173  ac_cs_awk_cr='\\r'
9174else
9175  ac_cs_awk_cr=$ac_cr
9176fi
9177
9178echo '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
9188ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9189ac_delim='%!_!# '
9190for 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
9202done
9203rm -f conf$$subs.sh
9204
9205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9206cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9207_ACEOF
9208sed -n '
9209h
9210s/^/S["/; s/!.*/"]=/
9211p
9212g
9213s/^[^!]*!//
9214:repl
9215t repl
9216s/'"$ac_delim"'$//
9217t delim
9218:nl
9219h
9220s/\(.\{148\}\)..*/\1/
9221t more1
9222s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9223p
9224n
9225b repl
9226:more1
9227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9228p
9229g
9230s/.\{148\}//
9231t nl
9232:delim
9233h
9234s/\(.\{148\}\)..*/\1/
9235t more2
9236s/["\\]/\\&/g; s/^/"/; s/$/"/
9237p
9238b
9239:more2
9240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9241p
9242g
9243s/.\{148\}//
9244t delim
9245' <conf$$subs.awk | sed '
9246/^[^""]/{
9247  N
9248  s/\n//
9249}
9250' >>$CONFIG_STATUS || ac_write_fail=1
9251rm -f conf$$subs.awk
9252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9253_ACAWK
9254cat >>"\$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
9281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9282if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9283  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9284else
9285  cat
9286fi < "$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).
9294if test "x$srcdir" = x.; then
9295  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9296h
9297s///
9298s/^/:/
9299s/[	 ]*$/:/
9300s/:\$(srcdir):/:/g
9301s/:\${srcdir}:/:/g
9302s/:@srcdir@:/:/g
9303s/^:*//
9304s/:*$//
9305x
9306s/\(=[	 ]*\).*/\1/
9307G
9308s/\n//
9309s/^[^=]*=[	 ]*$//
9310}'
9311fi
9312
9313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9314fi # test -n "$CONFIG_FILES"
9315
9316
9317eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
9318shift
9319for ac_tag
9320do
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
9412case "$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 ;;
9422esac
9423ac_abs_top_builddir=$ac_pwd
9424ac_abs_builddir=$ac_pwd$ac_dir_suffix
9425# for backward compatibility:
9426ac_top_builddir=$ac_top_build_prefix
9427
9428case $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 ;;
9441esac
9442ac_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
9462cat >>$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.
9465ac_datarootdir_hack=; ac_datarootdir_seen=
9466ac_sed_dataroot='
9467/datarootdir/ {
9468  p
9469  q
9470}
9471/@datadir@/p
9472/@docdir@/p
9473/@infodir@/p
9474/@localedir@/p
9475/@mandir@/p'
9476case `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
9482cat >>$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' ;;
9490esac
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?
9496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9497ac_sed_extra="$ac_vpsub
9498$extrasub
9499_ACEOF
9500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9501:t
9502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9503s|@configure_input@|$ac_sed_conf_input|;t t
9504s&@top_builddir@&$ac_top_builddir_sub&;t t
9505s&@top_build_prefix@&$ac_top_build_prefix&;t t
9506s&@srcdir@&$ac_srcdir&;t t
9507s&@abs_srcdir@&$ac_abs_srcdir&;t t
9508s&@top_srcdir@&$ac_top_srcdir&;t t
9509s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9510s&@builddir@&$ac_builddir&;t t
9511s&@abs_builddir@&$ac_abs_builddir&;t t
9512s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9513s&@INSTALL@&$ac_INSTALL&;t t
9514s&@MKDIR_P@&$ac_MKDIR_P&;t t
9515$ac_datarootdir_hack
9516"
9517eval 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
9520test -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'
9525which 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'
9527which 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
9640done # for ac_tag
9641
9642
9643as_fn_exit 0
9644_ACEOF
9645ac_clean_files=$ac_clean_files_save
9646
9647test $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.
9659if 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
9670fi
9671if 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;}
9674fi
9675
9676