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