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