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