3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=$HOME
16 --enable-poll Force poll to be used regardless of whether or not
19 --enable-debug Turn on debugging mode"
21 --enable-asserts Enable asserts"
23 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)"
25 --enable-profile Enable profiling support (add -pg to CFLAGS)"
27 --disable-inlines Disable inlining for a few critical functions"
29 --with-symlink=name Name to give the symlink; if name is "no," no
30 symlink will be created."
32 --with-mode=mode Permissions (in octal) to give the binary"
34 --with-owner=owner Specify owner of the installed binary"
36 --with-group=group Specify group owner of the installed binary"
38 --with-domain=domain Domain name to use in local statistics gathering"
40 --with-chroot=dir Specify that the server will be operated under
41 a different root directory given by dir. See
42 doc/readme.chroot for more information."
44 --with-dpath=dir Directory for all server data files"
46 --with-cpath=file Set server configuration file"
48 --with-lpath=file Set the debugging log file"
50 --with-maxcon=maxcon Maximum number of connections server will accept"
52 # Initialize some variables set by options.
53 # The variables have the same names as the options, with
54 # dashes changed to underlines.
56 cache_file=./config.cache
65 program_transform_name=s,x,x,
73 bindir='${exec_prefix}/bin'
74 sbindir='${exec_prefix}/sbin'
75 libexecdir='${exec_prefix}/libexec'
76 datadir='${prefix}/share'
77 sysconfdir='${prefix}/etc'
78 sharedstatedir='${prefix}/com'
79 localstatedir='${prefix}/var'
80 libdir='${exec_prefix}/lib'
81 includedir='${prefix}/include'
82 oldincludedir='/usr/include'
83 infodir='${prefix}/info'
84 mandir='${prefix}/man'
86 # Initialize some other variables.
89 SHELL=${CONFIG_SHELL-/bin/sh}
90 # Maximum number of lines to put in a shell here document.
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 # Accept the important Cygnus configure options, so we can diagnose typos.
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
118 -build | --build | --buil | --bui | --bu)
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 datadir="$ac_optarg" ;;
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
175 Usage: configure [options] [host]
176 Options: [defaults in brackets after descriptions]
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
182 --version print the version of autoconf that created configure
183 Directory and file names:
184 --prefix=PREFIX install architecture-independent files in PREFIX
186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 --bindir=DIR user executables in DIR [EPREFIX/bin]
189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191 --datadir=DIR read-only architecture-independent data in DIR
193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198 --includedir=DIR C header files in DIR [PREFIX/include]
199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200 --infodir=DIR info documentation in DIR [PREFIX/info]
201 --mandir=DIR man documentation in DIR [PREFIX/man]
202 --srcdir=DIR find the sources in DIR [configure dir or ..]
203 --program-prefix=PREFIX prepend PREFIX to installed program names
204 --program-suffix=SUFFIX append SUFFIX to installed program names
205 --program-transform-name=PROGRAM
206 run sed PROGRAM on installed program names
210 --build=BUILD configure for building on BUILD [BUILD=HOST]
211 --host=HOST configure for HOST [guessed]
212 --target=TARGET configure for TARGET [TARGET=HOST]
213 Features and packages:
214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218 --x-includes=DIR X include files are in DIR
219 --x-libraries=DIR X library files are in DIR
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
226 -host | --host | --hos | --ho)
228 -host=* | --host=* | --hos=* | --ho=*)
231 -includedir | --includedir | --includedi | --included | --include \
232 | --includ | --inclu | --incl | --inc)
233 ac_prev=includedir ;;
234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235 | --includ=* | --inclu=* | --incl=* | --inc=*)
236 includedir="$ac_optarg" ;;
238 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241 infodir="$ac_optarg" ;;
243 -libdir | --libdir | --libdi | --libd)
245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
246 libdir="$ac_optarg" ;;
248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249 | --libexe | --libex | --libe)
250 ac_prev=libexecdir ;;
251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252 | --libexe=* | --libex=* | --libe=*)
253 libexecdir="$ac_optarg" ;;
255 -localstatedir | --localstatedir | --localstatedi | --localstated \
256 | --localstate | --localstat | --localsta | --localst \
257 | --locals | --local | --loca | --loc | --lo)
258 ac_prev=localstatedir ;;
259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262 localstatedir="$ac_optarg" ;;
264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267 mandir="$ac_optarg" ;;
270 # Obsolete; use --without-fp.
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283 | --oldin | --oldi | --old | --ol | --o)
284 ac_prev=oldincludedir ;;
285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288 oldincludedir="$ac_optarg" ;;
290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293 prefix="$ac_optarg" ;;
295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
296 | --program-pre | --program-pr | --program-p)
297 ac_prev=program_prefix ;;
298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300 program_prefix="$ac_optarg" ;;
302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
303 | --program-suf | --program-su | --program-s)
304 ac_prev=program_suffix ;;
305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307 program_suffix="$ac_optarg" ;;
309 -program-transform-name | --program-transform-name \
310 | --program-transform-nam | --program-transform-na \
311 | --program-transform-n | --program-transform- \
312 | --program-transform | --program-transfor \
313 | --program-transfo | --program-transf \
314 | --program-trans | --program-tran \
315 | --progr-tra | --program-tr | --program-t)
316 ac_prev=program_transform_name ;;
317 -program-transform-name=* | --program-transform-name=* \
318 | --program-transform-nam=* | --program-transform-na=* \
319 | --program-transform-n=* | --program-transform-=* \
320 | --program-transform=* | --program-transfor=* \
321 | --program-transfo=* | --program-transf=* \
322 | --program-trans=* | --program-tran=* \
323 | --progr-tra=* | --program-tr=* | --program-t=*)
324 program_transform_name="$ac_optarg" ;;
326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327 | -silent | --silent | --silen | --sile | --sil)
330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 sbindir="$ac_optarg" ;;
336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338 | --sharedst | --shareds | --shared | --share | --shar \
340 ac_prev=sharedstatedir ;;
341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 sharedstatedir="$ac_optarg" ;;
347 -site | --site | --sit)
349 -site=* | --site=* | --sit=*)
352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355 srcdir="$ac_optarg" ;;
357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358 | --syscon | --sysco | --sysc | --sys | --sy)
359 ac_prev=sysconfdir ;;
360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362 sysconfdir="$ac_optarg" ;;
364 -target | --target | --targe | --targ | --tar | --ta | --t)
366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367 target="$ac_optarg" ;;
369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
372 -version | --version | --versio | --versi | --vers)
373 echo "configure generated by autoconf version 2.13"
377 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}='$ac_optarg'" ;;
389 -without-* | --without-*)
390 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
399 # Obsolete; use --with-x.
402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403 | --x-incl | --x-inc | --x-in | --x-i)
404 ac_prev=x_includes ;;
405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407 x_includes="$ac_optarg" ;;
409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411 ac_prev=x_libraries ;;
412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414 x_libraries="$ac_optarg" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 if test "x$nonopt" != xNONE; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438 # File descriptor usage:
441 # 2 errors and warnings
442 # 3 some systems may open it to /dev/tty
443 # 4 used on the Kubota Titan
444 # 6 checking for... messages and results
445 # 5 compiler messages saved in config.log
446 if test "$silent" = yes; then
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465 | --no-cr | --no-c) ;;
466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475 # Only set these to C if already set. These must not be set unconditionally
476 # because not all systems understand e.g. LANG=C (notably SCO).
477 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478 # Non-C LC_CTYPE values break the ctype check.
479 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 # A filename unique to this package, relative to the directory that
490 # configure is in, which we can look for to find out if srcdir is correct.
491 ac_unique_file=ircd/ircd.c
493 # Find the source files, if location was not specified.
494 if test -z "$srcdir"; then
495 ac_srcdir_defaulted=yes
496 # Try the directory containing this script, then its parent.
498 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 if test ! -r $srcdir/$ac_unique_file; then
505 ac_srcdir_defaulted=no
507 if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 for ac_site_file in $CONFIG_SITE; do
525 if test -r "$ac_site_file"; then
526 echo "loading site script $ac_site_file"
531 if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
535 echo "creating cache $cache_file"
540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp='$CPP $CPPFLAGS'
542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling=$ac_cv_prog_cc_cross
548 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
549 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
550 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
557 ac_n= ac_c='\c' ac_t=
563 if eval "test \"`echo '$''{'unet_cv_prefix'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
569 if test x"$prefix" != xNONE; then
570 unet_cv_prefix=$prefix
572 ac_default_prefix=$unet_cv_prefix
579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
580 if test -f $ac_dir/install-sh; then
582 ac_install_sh="$ac_aux_dir/install-sh -c"
584 elif test -f $ac_dir/install.sh; then
586 ac_install_sh="$ac_aux_dir/install.sh -c"
590 if test -z "$ac_aux_dir"; then
591 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
593 ac_config_guess=$ac_aux_dir/config.guess
594 ac_config_sub=$ac_aux_dir/config.sub
595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
851 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
852 echo "configure:853: checking for ${CC-cc} option to accept ANSI C" >&5
853 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 am_cv_prog_cc_stdc=no
858 # Don't try gcc -ansi; that turns off useful extensions and
859 # breaks some systems' header files.
861 # Ultrix and OSF/1 -std1
862 # HP-UX -Aa -D_HPUX_SOURCE
863 # SVR4 -Xc -D__EXTENSIONS__
864 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
866 CC="$ac_save_CC $ac_arg"
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
872 #include <sys/types.h>
873 #include <sys/stat.h>
874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
875 struct buf { int x; };
876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
877 static char *e (p, i)
883 static char *f (char * (*g) (char **, int), char **p, ...)
888 s = g (p, va_arg (v,int));
892 int test (int i, double x);
893 struct s1 {int (*f) (int a);};
894 struct s2 {int (*f) (double a);};
895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
905 if { (eval echo configure:906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
907 am_cv_prog_cc_stdc="$ac_arg"; break
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
918 if test -z "$am_cv_prog_cc_stdc"; then
919 echo "$ac_t""none needed" 1>&6
921 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
923 case "x$am_cv_prog_cc_stdc" in
925 *) CC="$CC $am_cv_prog_cc_stdc" ;;
928 if test x"$CFLAGS" != x; then
929 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
931 if test x"$CFLAGS" != x; then
932 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
934 if test x"$CFLAGS" != x; then
935 unet_old_cflags=$CFLAGS
936 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
938 if test x"$CFLAGS" != x"$unet_old_cflags"; then
939 # If -g was already there, force symbols to be enabled
940 unet_cv_enable_symbols=yes
942 if test x"$CFLAGS" != x; then
943 unet_old_cflags=$CFLAGS
944 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
946 if test x"$CFLAGS" != x"$unet_old_cflags"; then
947 # If -pg was already there, force profiling to be enabled
948 unet_cv_enable_profile=yes
953 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
954 echo "configure:955: checking for library containing crypt" >&5
955 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 ac_func_search_save_LIBS="$LIBS"
959 ac_cv_search_crypt="no"
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 /* Override any gcc2 internal prototype to avoid an error. */
964 /* We use char because int might match the return type of a gcc2
965 builtin and then its argument prototype would still apply. */
972 if { (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
974 ac_cv_search_crypt="none required"
976 echo "configure: failed program was:" >&5
977 cat conftest.$ac_ext >&5
980 test "$ac_cv_search_crypt" = "no" && for i in descrypt crypt; do
981 LIBS="-l$i $ac_func_search_save_LIBS"
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
985 /* Override any gcc2 internal prototype to avoid an error. */
986 /* We use char because int might match the return type of a gcc2
987 builtin and then its argument prototype would still apply. */
994 if { (eval echo configure:995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
996 ac_cv_search_crypt="-l$i"
999 echo "configure: failed program was:" >&5
1000 cat conftest.$ac_ext >&5
1004 LIBS="$ac_func_search_save_LIBS"
1007 echo "$ac_t""$ac_cv_search_crypt" 1>&6
1008 if test "$ac_cv_search_crypt" != "no"; then
1009 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1012 { echo "configure: error: Unable to find library containing crypt()" 1>&2; exit 1; }
1016 # Most operating systems have gethostbyname() in the default searched
1017 # libraries (i.e. libc):
1018 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1019 echo "configure:1020: checking for gethostbyname" >&5
1020 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 cat > conftest.$ac_ext <<EOF
1024 #line 1025 "configure"
1025 #include "confdefs.h"
1026 /* System header to define __stub macros and hopefully few prototypes,
1027 which can conflict with char gethostbyname(); below. */
1029 /* Override any gcc2 internal prototype to avoid an error. */
1030 /* We use char because int might match the return type of a gcc2
1031 builtin and then its argument prototype would still apply. */
1032 char gethostbyname();
1036 /* The GNU C library defines this for functions which it implements
1037 to always fail with ENOSYS. Some functions are actually named
1038 something starting with __ and the normal name is an alias. */
1039 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1047 if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1049 eval "ac_cv_func_gethostbyname=yes"
1051 echo "configure: failed program was:" >&5
1052 cat conftest.$ac_ext >&5
1054 eval "ac_cv_func_gethostbyname=no"
1059 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1060 echo "$ac_t""yes" 1>&6
1063 echo "$ac_t""no" 1>&6
1064 # Some OSes (eg. Solaris) place it in libnsl:
1065 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1066 echo "configure:1067: checking for gethostbyname in -lnsl" >&5
1067 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 ac_save_LIBS="$LIBS"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1076 /* Override any gcc2 internal prototype to avoid an error. */
1077 /* We use char because int might match the return type of a gcc2
1078 builtin and then its argument prototype would still apply. */
1079 char gethostbyname();
1085 if { (eval echo configure:1086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1087 eval "ac_cv_lib_$ac_lib_var=yes"
1089 echo "configure: failed program was:" >&5
1090 cat conftest.$ac_ext >&5
1092 eval "ac_cv_lib_$ac_lib_var=no"
1095 LIBS="$ac_save_LIBS"
1098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1099 echo "$ac_t""yes" 1>&6
1100 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1102 cat >> confdefs.h <<EOF
1103 #define $ac_tr_lib 1
1109 echo "$ac_t""no" 1>&6
1110 # Some strange OSes (SINIX) have it in libsocket:
1111 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1112 echo "configure:1113: checking for gethostbyname in -lsocket" >&5
1113 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 ac_save_LIBS="$LIBS"
1118 LIBS="-lsocket $LIBS"
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1122 /* Override any gcc2 internal prototype to avoid an error. */
1123 /* We use char because int might match the return type of a gcc2
1124 builtin and then its argument prototype would still apply. */
1125 char gethostbyname();
1131 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133 eval "ac_cv_lib_$ac_lib_var=yes"
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1138 eval "ac_cv_lib_$ac_lib_var=no"
1141 LIBS="$ac_save_LIBS"
1144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1145 echo "$ac_t""yes" 1>&6
1146 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1148 cat >> confdefs.h <<EOF
1149 #define $ac_tr_lib 1
1152 LIBS="-lsocket $LIBS"
1155 echo "$ac_t""no" 1>&6
1156 # Unfortunately libsocket sometimes depends on libnsl.
1157 # AC_CHECK_LIB's API is essentially broken so the following
1158 # ugliness is necessary:
1159 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1160 echo "configure:1161: checking for gethostbyname in -lsocket" >&5
1161 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 ac_save_LIBS="$LIBS"
1166 LIBS="-lsocket -lnsl $LIBS"
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 /* Override any gcc2 internal prototype to avoid an error. */
1171 /* We use char because int might match the return type of a gcc2
1172 builtin and then its argument prototype would still apply. */
1173 char gethostbyname();
1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1181 eval "ac_cv_lib_$ac_lib_var=yes"
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1186 eval "ac_cv_lib_$ac_lib_var=no"
1189 LIBS="$ac_save_LIBS"
1192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1194 LIBS="-lsocket -lnsl $LIBS"
1196 echo "$ac_t""no" 1>&6
1197 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1198 echo "configure:1199: checking for gethostbyname in -lresolv" >&5
1199 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 ac_save_LIBS="$LIBS"
1204 LIBS="-lresolv $LIBS"
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 /* Override any gcc2 internal prototype to avoid an error. */
1209 /* We use char because int might match the return type of a gcc2
1210 builtin and then its argument prototype would still apply. */
1211 char gethostbyname();
1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1219 eval "ac_cv_lib_$ac_lib_var=yes"
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 eval "ac_cv_lib_$ac_lib_var=no"
1227 LIBS="$ac_save_LIBS"
1230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1231 echo "$ac_t""yes" 1>&6
1232 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1234 cat >> confdefs.h <<EOF
1235 #define $ac_tr_lib 1
1238 LIBS="-lresolv $LIBS"
1241 echo "$ac_t""no" 1>&6
1255 echo $ac_n "checking for socket""... $ac_c" 1>&6
1256 echo "configure:1257: checking for socket" >&5
1257 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 /* System header to define __stub macros and hopefully few prototypes,
1264 which can conflict with char socket(); below. */
1266 /* Override any gcc2 internal prototype to avoid an error. */
1267 /* We use char because int might match the return type of a gcc2
1268 builtin and then its argument prototype would still apply. */
1273 /* The GNU C library defines this for functions which it implements
1274 to always fail with ENOSYS. Some functions are actually named
1275 something starting with __ and the normal name is an alias. */
1276 #if defined (__stub_socket) || defined (__stub___socket)
1284 if { (eval echo configure:1285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1286 eval "ac_cv_func_socket=yes"
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1291 eval "ac_cv_func_socket=no"
1296 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1297 echo "$ac_t""yes" 1>&6
1300 echo "$ac_t""no" 1>&6
1301 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1302 echo "configure:1303: checking for socket in -lsocket" >&5
1303 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 ac_save_LIBS="$LIBS"
1308 LIBS="-lsocket $LIBS"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1328 eval "ac_cv_lib_$ac_lib_var=no"
1331 LIBS="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1338 cat >> confdefs.h <<EOF
1339 #define $ac_tr_lib 1
1342 LIBS="-lsocket $LIBS"
1345 echo "$ac_t""no" 1>&6
1346 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1347 echo "configure:1348: checking for socket in -lsocket" >&5
1348 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 ac_save_LIBS="$LIBS"
1353 LIBS="-lsocket -lnsl $LIBS"
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* Override any gcc2 internal prototype to avoid an error. */
1358 /* We use char because int might match the return type of a gcc2
1359 builtin and then its argument prototype would still apply. */
1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1368 eval "ac_cv_lib_$ac_lib_var=yes"
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1373 eval "ac_cv_lib_$ac_lib_var=no"
1376 LIBS="$ac_save_LIBS"
1379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 LIBS="-lsocket -lnsl $LIBS"
1383 echo "$ac_t""no" 1>&6
1393 echo $ac_n "checking for library containing res_mkquery""... $ac_c" 1>&6
1394 echo "configure:1395: checking for library containing res_mkquery" >&5
1395 if eval "test \"`echo '$''{'ac_cv_search_res_mkquery'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 ac_func_search_save_LIBS="$LIBS"
1399 ac_cv_search_res_mkquery="no"
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1403 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1405 builtin and then its argument prototype would still apply. */
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1414 ac_cv_search_res_mkquery="none required"
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1420 test "$ac_cv_search_res_mkquery" = "no" && for i in resolv; do
1421 LIBS="-l$i $ac_func_search_save_LIBS"
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 /* Override any gcc2 internal prototype to avoid an error. */
1426 /* We use char because int might match the return type of a gcc2
1427 builtin and then its argument prototype would still apply. */
1434 if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1436 ac_cv_search_res_mkquery="-l$i"
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1444 LIBS="$ac_func_search_save_LIBS"
1447 echo "$ac_t""$ac_cv_search_res_mkquery" 1>&6
1448 if test "$ac_cv_search_res_mkquery" != "no"; then
1449 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
1452 { echo "configure: error: Unable to find library containing res_mkquery()" 1>&2; exit 1; }
1455 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1456 echo "configure:1457: checking how to run the C preprocessor" >&5
1457 # On Suns, sometimes $CPP names a directory.
1458 if test -n "$CPP" && test -d "$CPP"; then
1461 if test -z "$CPP"; then
1462 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 # This must be in double quotes, not single quotes, because CPP may get
1466 # substituted into the Makefile and "${CC-cc}" will confuse make.
1468 # On the NeXT, cc -E runs the code through the compiler's parser,
1469 # not just through cpp.
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477 { (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479 if test -z "$ac_err"; then
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 CPP="${CC-cc} -E -traditional-cpp"
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494 { (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496 if test -z "$ac_err"; then
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1503 CPP="${CC-cc} -nologo -E"
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511 { (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1513 if test -z "$ac_err"; then
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1527 ac_cv_prog_CPP="$CPP"
1529 CPP="$ac_cv_prog_CPP"
1531 ac_cv_prog_CPP="$CPP"
1533 echo "$ac_t""$CPP" 1>&6
1535 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1536 echo "configure:1537: checking for ANSI C header files" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1553 ac_cv_header_stdc=yes
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1559 ac_cv_header_stdc=no
1563 if test $ac_cv_header_stdc = yes; then
1564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1571 egrep "memchr" >/dev/null 2>&1; then
1575 ac_cv_header_stdc=no
1581 if test $ac_cv_header_stdc = yes; then
1582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1589 egrep "free" >/dev/null 2>&1; then
1593 ac_cv_header_stdc=no
1599 if test $ac_cv_header_stdc = yes; then
1600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1601 if test "$cross_compiling" = yes; then
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1608 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1609 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1611 int main () { int i; for (i = 0; i < 256; i++)
1612 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1623 ac_cv_header_stdc=no
1631 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1632 if test $ac_cv_header_stdc = yes; then
1633 cat >> confdefs.h <<\EOF
1634 #define STDC_HEADERS 1
1639 for ac_hdr in poll.h
1641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_hdr" >&5
1644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1653 { (eval echo configure:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1655 if test -z "$ac_err"; then
1657 eval "ac_cv_header_$ac_safe=yes"
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1663 eval "ac_cv_header_$ac_safe=no"
1667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1670 cat >> confdefs.h <<EOF
1671 #define $ac_tr_hdr 1
1675 echo "$ac_t""no" 1>&6
1680 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether byte ordering is bigendian" >&5
1682 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 ac_cv_c_bigendian=unknown
1686 # See if sys/param.h defines the BYTE_ORDER macro.
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <sys/types.h>
1691 #include <sys/param.h>
1694 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1699 if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1701 # It does; now see whether it defined to BIG_ENDIAN or not.
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include <sys/types.h>
1706 #include <sys/param.h>
1709 #if BYTE_ORDER != BIG_ENDIAN
1714 if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1716 ac_cv_c_bigendian=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 ac_cv_c_bigendian=no
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1729 if test $ac_cv_c_bigendian = unknown; then
1730 if test "$cross_compiling" = yes; then
1731 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1737 /* Are we little or big endian? From Harbison&Steele. */
1741 char c[sizeof (long)];
1744 exit (u.c[sizeof (long) - 1] == 1);
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1749 ac_cv_c_bigendian=no
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 ac_cv_c_bigendian=yes
1762 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1763 if test $ac_cv_c_bigendian = yes; then
1764 cat >> confdefs.h <<\EOF
1765 #define WORDS_BIGENDIAN 1
1770 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1771 echo "configure:1772: checking for size_t" >&5
1772 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 #include <sys/types.h>
1784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1785 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1787 ac_cv_type_size_t=yes
1790 ac_cv_type_size_t=no
1795 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1796 if test $ac_cv_type_size_t = no; then
1797 cat >> confdefs.h <<\EOF
1798 #define size_t unsigned
1803 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1804 echo "configure:1805: checking whether time.h and sys/time.h may both be included" >&5
1805 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 #include <sys/types.h>
1812 #include <sys/time.h>
1818 if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1820 ac_cv_header_time=yes
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 ac_cv_header_time=no
1830 echo "$ac_t""$ac_cv_header_time" 1>&6
1831 if test $ac_cv_header_time = yes; then
1832 cat >> confdefs.h <<\EOF
1833 #define TIME_WITH_SYS_TIME 1
1838 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether struct tm is in sys/time.h or time.h" >&5
1840 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 #include <sys/types.h>
1849 struct tm *tp; tp->tm_sec;
1852 if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 ac_cv_struct_tm=time.h
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 ac_cv_struct_tm=sys/time.h
1864 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1865 if test $ac_cv_struct_tm = sys/time.h; then
1866 cat >> confdefs.h <<\EOF
1867 #define TM_IN_SYS_TIME 1
1872 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1873 echo "configure:1874: checking for uid_t in sys/types.h" >&5
1874 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 #include <sys/types.h>
1882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1883 egrep "uid_t" >/dev/null 2>&1; then
1885 ac_cv_type_uid_t=yes
1894 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1895 if test $ac_cv_type_uid_t = no; then
1896 cat >> confdefs.h <<\EOF
1900 cat >> confdefs.h <<\EOF
1906 echo $ac_n "checking size of short""... $ac_c" 1>&6
1907 echo "configure:1908: checking size of short" >&5
1908 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 FILE *f=fopen("conftestval", "w");
1922 fprintf(f, "%d\n", sizeof(short));
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 ac_cv_sizeof_short=`cat conftestval`
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_sizeof_short=0
1939 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1940 cat >> confdefs.h <<EOF
1941 #define SIZEOF_SHORT $ac_cv_sizeof_short
1945 echo $ac_n "checking size of int""... $ac_c" 1>&6
1946 echo "configure:1947: checking size of int" >&5
1947 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 if test "$cross_compiling" = yes; then
1951 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1959 FILE *f=fopen("conftestval", "w");
1961 fprintf(f, "%d\n", sizeof(int));
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1967 ac_cv_sizeof_int=`cat conftestval`
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1978 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1979 cat >> confdefs.h <<EOF
1980 #define SIZEOF_INT $ac_cv_sizeof_int
1984 echo $ac_n "checking size of long""... $ac_c" 1>&6
1985 echo "configure:1986: checking size of long" >&5
1986 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 if test "$cross_compiling" = yes; then
1990 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1998 FILE *f=fopen("conftestval", "w");
2000 fprintf(f, "%d\n", sizeof(long));
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2006 ac_cv_sizeof_long=`cat conftestval`
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2017 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2018 cat >> confdefs.h <<EOF
2019 #define SIZEOF_LONG $ac_cv_sizeof_long
2023 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2024 echo "configure:2025: checking size of void *" >&5
2025 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 if test "$cross_compiling" = yes; then
2029 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2037 FILE *f=fopen("conftestval", "w");
2039 fprintf(f, "%d\n", sizeof(void *));
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2045 ac_cv_sizeof_void_p=`cat conftestval`
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 ac_cv_sizeof_void_p=0
2056 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2057 cat >> confdefs.h <<EOF
2058 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2062 if test "$ac_cv_sizeof_int" = 2 ; then
2063 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2064 echo "configure:2065: checking for int16_t" >&5
2065 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <sys/types.h>
2077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2078 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2080 ac_cv_type_int16_t=yes
2083 ac_cv_type_int16_t=no
2088 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2089 if test $ac_cv_type_int16_t = no; then
2090 cat >> confdefs.h <<\EOF
2096 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2097 echo "configure:2098: checking for u_int16_t" >&5
2098 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <sys/types.h>
2110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2111 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2113 ac_cv_type_u_int16_t=yes
2116 ac_cv_type_u_int16_t=no
2121 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2122 if test $ac_cv_type_u_int16_t = no; then
2123 cat >> confdefs.h <<\EOF
2124 #define u_int16_t unsigned int
2129 elif test "$ac_cv_sizeof_short" = 2 ; then
2130 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2131 echo "configure:2132: checking for int16_t" >&5
2132 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 #include <sys/types.h>
2144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2147 ac_cv_type_int16_t=yes
2150 ac_cv_type_int16_t=no
2155 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2156 if test $ac_cv_type_int16_t = no; then
2157 cat >> confdefs.h <<\EOF
2158 #define int16_t short
2163 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2164 echo "configure:2165: checking for u_int16_t" >&5
2165 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 #include <sys/types.h>
2177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2178 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2180 ac_cv_type_u_int16_t=yes
2183 ac_cv_type_u_int16_t=no
2188 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2189 if test $ac_cv_type_u_int16_t = no; then
2190 cat >> confdefs.h <<\EOF
2191 #define u_int16_t unsigned short
2197 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2199 if test "$ac_cv_sizeof_int" = 4 ; then
2200 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2201 echo "configure:2202: checking for int32_t" >&5
2202 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <sys/types.h>
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2217 ac_cv_type_int32_t=yes
2220 ac_cv_type_int32_t=no
2225 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2226 if test $ac_cv_type_int32_t = no; then
2227 cat >> confdefs.h <<\EOF
2233 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2234 echo "configure:2235: checking for u_int32_t" >&5
2235 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #include <sys/types.h>
2247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2250 ac_cv_type_u_int32_t=yes
2253 ac_cv_type_u_int32_t=no
2258 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2259 if test $ac_cv_type_u_int32_t = no; then
2260 cat >> confdefs.h <<\EOF
2261 #define u_int32_t unsigned int
2266 elif test "$ac_cv_sizeof_short" = 4 ; then
2267 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2268 echo "configure:2269: checking for int32_t" >&5
2269 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 #include <sys/types.h>
2281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2282 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2284 ac_cv_type_int32_t=yes
2287 ac_cv_type_int32_t=no
2292 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2293 if test $ac_cv_type_int32_t = no; then
2294 cat >> confdefs.h <<\EOF
2295 #define int32_t short
2300 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2301 echo "configure:2302: checking for u_int32_t" >&5
2302 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2317 ac_cv_type_u_int32_t=yes
2320 ac_cv_type_u_int32_t=no
2325 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2326 if test $ac_cv_type_u_int32_t = no; then
2327 cat >> confdefs.h <<\EOF
2328 #define u_int32_t unsigned short
2333 elif test "$ac_cv_sizeof_long" = 4 ; then
2334 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2335 echo "configure:2336: checking for int32_t" >&5
2336 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 #include <sys/types.h>
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2351 ac_cv_type_int32_t=yes
2354 ac_cv_type_int32_t=no
2359 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2360 if test $ac_cv_type_int32_t = no; then
2361 cat >> confdefs.h <<\EOF
2362 #define int32_t long
2367 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2368 echo "configure:2369: checking for u_int32_t" >&5
2369 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 #include <sys/types.h>
2381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2382 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2384 ac_cv_type_u_int32_t=yes
2387 ac_cv_type_u_int32_t=no
2392 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2393 if test $ac_cv_type_u_int32_t = no; then
2394 cat >> confdefs.h <<\EOF
2395 #define u_int32_t unsigned long
2401 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2405 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2406 echo "configure:2407: checking for restartable system calls" >&5
2407 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 if test "$cross_compiling" = yes; then
2411 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Exit 0 (true) if wait returns something other than -1,
2417 i.e. the pid of the child, which means that wait was restarted
2418 after getting the signal. */
2419 #include <sys/types.h>
2423 int i = fork (), status;
2424 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2425 signal (SIGINT, ucatch);
2427 if (status == -1) wait(&i);
2428 exit (status == -1);
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2434 ac_cv_sys_restartable_syscalls=yes
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2439 ac_cv_sys_restartable_syscalls=no
2446 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2447 if test $ac_cv_sys_restartable_syscalls = yes; then
2448 cat >> confdefs.h <<\EOF
2449 #define HAVE_RESTARTABLE_SYSCALLS 1
2455 echo $ac_n "checking for donuts""... $ac_c" 1>&6
2456 echo "configure:2457: checking for donuts" >&5
2457 echo "$ac_t""yes" 1>&6
2459 for ac_prog in gawk mawk nawk awk
2461 # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_word" >&5
2465 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 if test -n "$AWK"; then
2469 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2473 for ac_dir in $ac_dummy; do
2474 test -z "$ac_dir" && ac_dir=.
2475 if test -f $ac_dir/$ac_word; then
2476 ac_cv_prog_AWK="$ac_prog"
2483 AWK="$ac_cv_prog_AWK"
2484 if test -n "$AWK"; then
2485 echo "$ac_t""$AWK" 1>&6
2487 echo "$ac_t""no" 1>&6
2490 test -n "$AWK" && break
2493 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether ${MAKE-make} sets \${MAKE}" >&5
2495 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2496 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftestmake <<\EOF
2501 @echo 'ac_maketemp="${MAKE}"'
2503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2504 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2505 if test -n "$ac_maketemp"; then
2506 eval ac_cv_prog_make_${ac_make}_set=yes
2508 eval ac_cv_prog_make_${ac_make}_set=no
2512 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2516 echo "$ac_t""no" 1>&6
2517 SET_MAKE="MAKE=${MAKE-make}"
2520 # Find a good install program. We prefer a C program (faster),
2521 # so one script is as good as another. But avoid the broken or
2522 # incompatible versions:
2523 # SysV /etc/install, /usr/sbin/install
2524 # SunOS /usr/etc/install
2525 # IRIX /sbin/install
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # ./install, which can be erroneously created by make from ./install.sh.
2531 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2532 echo "configure:2533: checking for a BSD compatible install" >&5
2533 if test -z "$INSTALL"; then
2534 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2538 for ac_dir in $PATH; do
2539 # Account for people who put trailing slashes in PATH elements.
2541 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2546 for ac_prog in ginstall scoinst install; do
2547 if test -f $ac_dir/$ac_prog; then
2548 if test $ac_prog = install &&
2549 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2550 # AIX install. It has an incompatible calling convention.
2553 ac_cv_path_install="$ac_dir/$ac_prog -c"
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL="$ac_cv_path_install"
2567 # As a last resort, use the slow shell script. We don't cache a
2568 # path for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the path is relative.
2571 INSTALL="$ac_install_sh"
2574 echo "$ac_t""$INSTALL" 1>&6
2576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2577 # It thinks the first close brace ends the variable substitution.
2578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2580 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2582 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2585 echo "configure:2586: checking whether ln -s works" >&5
2586 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2590 if ln -s X conftestdata 2>/dev/null
2593 ac_cv_prog_LN_S="ln -s"
2598 LN_S="$ac_cv_prog_LN_S"
2599 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2600 echo "$ac_t""yes" 1>&6
2602 echo "$ac_t""no" 1>&6
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2616 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2619 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2624 for ac_dir in $ac_dummy; do
2625 test -z "$ac_dir" && ac_dir=.
2626 if test -f $ac_dir/$ac_word; then
2627 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2635 RMPROG="$ac_cv_path_RMPROG"
2636 if test -n "$RMPROG"; then
2637 echo "$ac_t""$RMPROG" 1>&6
2639 echo "$ac_t""no" 1>&6
2642 test -n "$RMPROG" && break
2644 test -n "$RMPROG" || RMPROG="/bin/rm"
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_word" >&5
2652 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2657 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2660 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2665 for ac_dir in $ac_dummy; do
2666 test -z "$ac_dir" && ac_dir=.
2667 if test -f $ac_dir/$ac_word; then
2668 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2676 SHPROG="$ac_cv_path_SHPROG"
2677 if test -n "$SHPROG"; then
2678 echo "$ac_t""$SHPROG" 1>&6
2680 echo "$ac_t""no" 1>&6
2683 test -n "$SHPROG" && break
2685 test -n "$SHPROG" || SHPROG="/bin/sh"
2688 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2689 echo "configure:2690: checking for posix non-blocking" >&5
2690 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 if test "$cross_compiling" = yes; then
2694 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <sys/types.h>
2700 #include <sys/socket.h>
2702 #include <sys/ioctl.h>
2703 #include <sys/file.h>
2705 $ac_cv_type_signal alarmed() { exit(1); }
2710 size_t l = sizeof(x);
2711 int f = socket(AF_INET, SOCK_DGRAM, 0);
2712 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2714 signal(SIGALRM, alarmed);
2716 recvfrom(f, b, 12, 0, &x, &l);
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2725 unet_cv_sys_nonblocking_posix=yes
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2730 unet_cv_sys_nonblocking_posix=no
2737 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2738 if test $unet_cv_sys_nonblocking_posix = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define NBLOCK_POSIX 1
2744 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2745 echo "configure:2746: checking for bsd non-blocking" >&5
2746 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 if test "$cross_compiling" = yes; then
2750 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 #include <sys/types.h>
2756 #include <sys/socket.h>
2758 #include <sys/ioctl.h>
2759 #include <sys/file.h>
2761 $ac_cv_type_signal alarmed() { exit(1); }
2766 size_t l = sizeof(x);
2767 int f = socket(AF_INET, SOCK_DGRAM, 0);
2768 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2770 signal(SIGALRM, alarmed);
2772 recvfrom(f, b, 12, 0, &x, &l);
2779 if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2781 unet_cv_sys_nonblocking_bsd=yes
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 unet_cv_sys_nonblocking_bsd=no
2793 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2794 if test $unet_cv_sys_nonblocking_bsd = yes; then
2795 cat >> confdefs.h <<\EOF
2796 #define NBLOCK_BSD 1
2800 cat >> confdefs.h <<\EOF
2801 #define NBLOCK_SYSV 1
2806 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2807 echo "configure:2808: checking for posix signals" >&5
2808 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2816 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2819 if { (eval echo configure:2820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2821 unet_cv_sys_signal_posix=yes
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2826 unet_cv_sys_signal_posix=no
2831 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2832 if test $unet_cv_sys_signal_posix = yes; then
2833 cat >> confdefs.h <<\EOF
2834 #define POSIX_SIGNALS 1
2838 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2839 echo "configure:2840: checking for bsd reliable signals" >&5
2840 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 if test "$cross_compiling" = yes; then
2844 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2851 $ac_cv_type_signal handler()
2855 kill(getpid(), SIGTERM);
2860 signal(SIGTERM, handler);
2861 kill(getpid(), SIGTERM);
2865 if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2867 unet_cv_sys_signal_bsd=yes
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 unet_cv_sys_signal_bsd=no
2879 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2880 if test $unet_cv_sys_signal_bsd = yes; then
2881 cat >> confdefs.h <<\EOF
2882 #define BSD_RELIABLE_SIGNALS 1
2886 cat >> confdefs.h <<\EOF
2887 #define SYSV_UNRELIABLE_SIGNALS 1
2893 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2894 echo "configure:2895: checking if the compiler understands -pipe" >&5
2895 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2896 if test "$ac_cv_prog_gcc" = no; then
2898 CFLAGS="$CFLAGS -pipe"
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2907 if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 unet_cv_pipe_flags=yes
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2917 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2918 if test "$unet_cv_pipe_flags" = yes ; then
2919 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2920 if test "$x" = "" ; then
2921 CFLAGS="$CFLAGS -pipe"
2926 echo $ac_n "checking for OS-dependent information""... $ac_c" 1>&6
2927 echo "configure:2928: checking for OS-dependent information" >&5
2930 echo "$ac_t""Linux ($host) found." 1>&6
2931 unet_poll_syscall=yes
2936 echo "$ac_t""Solaris ($host) found." 1>&6
2937 if test x"$ac_cv_header_poll_h" = xyes; then
2938 unet_poll_syscall=yes
2940 unet_poll_syscall=no
2942 OSDEP_C=os_solaris.c
2946 echo "$ac_t""Solaris ($host) found." 1>&6
2947 unet_poll_syscall=no
2948 OSDEP_C=os_solaris.c
2952 echo "$ac_t""OpenBSD ($host) found." 1>&6
2953 if test x"$ac_cv_header_poll_h" = xyes; then
2954 unet_poll_syscall=yes
2956 unet_poll_syscall=no
2958 OSDEP_C=os_openbsd.c
2962 echo "$ac_t""Generic BSD ($host) found." 1>&6
2963 if test x"$ac_cv_header_poll_h" = xyes; then
2964 unet_poll_syscall=yes
2966 unet_poll_syscall=no
2972 echo "$ac_t""Unknown system type $host found." 1>&6
2973 echo "configure: warning: Unknown OS type; using generic routines." 1>&2
2974 unet_poll_syscall=no
2975 OSDEP_C=os_generic.c
2980 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
2981 echo "configure:2982: checking whether to enable use of poll()" >&5
2982 # Check whether --enable-poll or --disable-poll was given.
2983 if test "${enable_poll+set}" = set; then
2984 enableval="$enable_poll"
2985 unet_cv_enable_poll=$enable_poll
2987 if eval "test \"`echo '$''{'unet_cv_enable_poll'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 unet_cv_enable_poll=$unet_poll_syscall
2996 # Force poll to be disabled if there is no poll.h
2997 if test x"$ac_cv_header_poll_h" != xyes; then
2998 unet_cv_enable_poll=no
3001 echo "$ac_t""$unet_cv_enable_poll" 1>&6
3003 if test x"$unet_cv_enable_poll" = xyes; then
3004 cat >> confdefs.h <<\EOF
3010 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
3011 echo "configure:3012: checking whether to enable debug mode" >&5
3012 # Check whether --enable-debug or --disable-debug was given.
3013 if test "${enable_debug+set}" = set; then
3014 enableval="$enable_debug"
3015 unet_cv_enable_debug=$enable_debug
3017 if eval "test \"`echo '$''{'unet_cv_enable_debug'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 unet_cv_enable_debug=no
3025 echo "$ac_t""$unet_cv_enable_debug" 1>&6
3027 if test x"$unet_cv_enable_debug" = xyes; then
3028 cat >> confdefs.h <<\EOF
3034 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether to enable asserts" >&5
3036 # Check whether --enable-asserts or --disable-asserts was given.
3037 if test "${enable_asserts+set}" = set; then
3038 enableval="$enable_asserts"
3039 unet_cv_enable_asserts=$enable_asserts
3041 if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 unet_cv_enable_asserts=no
3049 echo "$ac_t""$unet_cv_enable_asserts" 1>&6
3051 if test x"$unet_cv_enable_asserts" = xno; then
3052 cat >> confdefs.h <<\EOF
3058 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
3059 echo "configure:3060: checking whether to enable debugging symbols" >&5
3060 # Check whether --enable-symbols or --disable-symbols was given.
3061 if test "${enable_symbols+set}" = set; then
3062 enableval="$enable_symbols"
3063 unet_cv_enable_symbols=$enable_symbols
3065 if eval "test \"`echo '$''{'unet_cv_enable_symbols'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 unet_cv_enable_symbols=yes
3073 echo "$ac_t""$unet_cv_enable_symbols" 1>&6
3075 if test x"$unet_cv_enable_symbols" = xyes; then
3079 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether to enable profiling support (gprof)" >&5
3081 # Check whether --enable-profile or --disable-profile was given.
3082 if test "${enable_profile+set}" = set; then
3083 enableval="$enable_profile"
3084 unet_cv_enable_profile=$enable_profile
3086 if eval "test \"`echo '$''{'unet_cv_enable_profile'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 unet_cv_enable_profile=no
3094 echo "$ac_t""$unet_cv_enable_profile" 1>&6
3096 if test x"$unet_cv_enable_profile" = xyes; then
3097 CFLAGS="-pg $CFLAGS"
3100 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
3101 echo "configure:3102: checking whether to enable inlining for a few critical functions" >&5
3102 # Check whether --enable-inlines or --disable-inlines was given.
3103 if test "${enable_inlines+set}" = set; then
3104 enableval="$enable_inlines"
3105 unet_cv_enable_inlines=$enable_inlines
3107 if eval "test \"`echo '$''{'unet_cv_enable_inlines'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 unet_cv_enable_inlines=yes
3115 echo "$ac_t""$unet_cv_enable_inlines" 1>&6
3117 if test x"$unet_cv_enable_inlines" = xyes; then
3118 cat >> confdefs.h <<\EOF
3124 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
3125 echo "configure:3126: checking what name to give the symlink" >&5
3126 # Check whether --with-symlink or --without-symlink was given.
3127 if test "${with_symlink+set}" = set; then
3128 withval="$with_symlink"
3129 unet_cv_with_symlink=$with_symlink
3131 if eval "test \"`echo '$''{'unet_cv_with_symlink'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 unet_cv_with_symlink="ircd"
3140 if test x"$unet_cv_with_symlink" = xyes; then
3141 unet_cv_with_symlink="ircd"
3144 echo "$ac_t""$unet_cv_with_symlink" 1>&6
3146 if test x"$unet_cv_with_symlink" = xno; then
3147 INSTALL_RULE=install-no-symlink
3150 INSTALL_RULE=install-with-symlink
3151 SYMLINK=$unet_cv_with_symlink
3156 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
3157 echo "configure:3158: checking what permissions to set on the installed binary" >&5
3158 # Check whether --with-mode or --without-mode was given.
3159 if test "${with_mode+set}" = set; then
3160 withval="$with_mode"
3161 unet_cv_with_mode=$with_mode
3163 if eval "test \"`echo '$''{'unet_cv_with_mode'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 unet_cv_with_mode=711
3172 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
3173 unet_cv_with_mode=711
3176 echo "$ac_t""$unet_cv_with_mode" 1>&6
3178 IRCDMODE=$unet_cv_with_mode
3181 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3182 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
3183 echo "configure:3184: checking which user should own the installed binary" >&5
3184 # Check whether --with-owner or --without-owner was given.
3185 if test "${with_owner+set}" = set; then
3186 withval="$with_owner"
3187 unet_cv_with_owner=$with_owner
3189 if eval "test \"`echo '$''{'unet_cv_with_owner'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 unet_cv_with_owner=$unet_uid
3198 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
3199 unet_cv_with_owner=$unet_uid
3202 echo "$ac_t""$unet_cv_with_owner" 1>&6
3204 IRCDOWN=$unet_cv_with_owner
3207 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3208 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
3209 echo "configure:3210: checking which group should own the installed binary" >&5
3210 # Check whether --with-group or --without-group was given.
3211 if test "${with_group+set}" = set; then
3212 withval="$with_group"
3213 unet_cv_with_group=$with_group
3215 if eval "test \"`echo '$''{'unet_cv_with_group'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 unet_cv_with_group=$unet_gid
3224 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
3225 unet_cv_with_group=$unet_gid
3228 echo "$ac_t""$unet_cv_with_group" 1>&6
3230 IRCDGRP=$unet_cv_with_group
3234 if test -f /etc/resolv.conf; then
3235 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
3236 if test x"$unet_domain" = x; then
3237 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
3240 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
3241 echo "configure:3242: checking for site domain name" >&5
3242 # Check whether --with-domain or --without-domain was given.
3243 if test "${with_domain+set}" = set; then
3244 withval="$with_domain"
3245 unet_cv_with_domain=$with_domain
3247 if eval "test \"`echo '$''{'unet_cv_with_domain'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 unet_cv_with_domain=$unet_domain
3256 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
3257 unet_cv_with_domain=$unet_domain
3259 if test x"$unet_cv_with_domain" = xno; then
3260 { echo "configure: error: Unable to determine server DNS domain; use --with-domain to set it" 1>&2; exit 1; }
3263 echo "$ac_t""$unet_cv_with_domain" 1>&6
3265 cat >> confdefs.h <<EOF
3266 #define DOMAINNAME "*$unet_cv_with_domain"
3270 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
3271 echo "configure:3272: checking if chroot operation is desired" >&5
3272 # Check whether --with-chroot or --without-chroot was given.
3273 if test "${with_chroot+set}" = set; then
3274 withval="$with_chroot"
3275 unet_cv_with_chroot=$with_chroot
3277 if eval "test \"`echo '$''{'unet_cv_with_chroot'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 unet_cv_with_chroot=no
3286 if test x"$unet_cv_with_chroot" = xyes; then
3287 { echo "configure: error: --with-chroot given with no directory. See doc/readme.chroot." 1>&2; exit 1; }
3290 # Ensure there are no trailing /'s to mess us up
3291 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
3293 echo "$ac_t""$unet_cv_with_chroot" 1>&6
3295 # Deal with the annoying value "NONE" here
3296 unet_save_prefix=$prefix
3297 if test x"$prefix" = xNONE; then
3298 prefix=$ac_default_prefix
3303 unet_save_exec_prefix=$exec_prefix
3304 if test x"$exec_prefix" = xNONE; then
3307 exec_prefix=$exec_prefix
3310 # Obtain the actual interesting directories
3311 unet_bindir=`eval echo "$bindir"`
3312 unet_libdir=`eval echo "$libdir"`
3314 # Restore the original settings of $prefix and $exec_prefix
3315 prefix=$unet_save_prefix
3316 exec_prefix=$unet_save_exec_prefix
3318 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
3319 echo "configure:3320: checking where the binary will be for /restart" >&5
3320 if test x"$unet_cv_with_symlink" = xno; then
3321 unet_spath="$unet_bindir/ircd"
3323 unet_spath="$unet_bindir/$unet_cv_with_symlink"
3325 echo "$ac_t""$unet_spath" 1>&6
3327 if test x"$unet_cv_with_chroot" != xno; then
3328 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3329 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
3331 echo "configure: warning: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" 1>&2
3335 cat >> confdefs.h <<EOF
3336 #define SPATH "$unet_spath"
3340 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
3341 echo "configure:3342: checking what the data directory should be" >&5
3342 # Check whether --with-dpath or --without-dpath was given.
3343 if test "${with_dpath+set}" = set; then
3344 withval="$with_dpath"
3345 unet_cv_with_dpath=$with_dpath
3347 if eval "test \"`echo '$''{'unet_cv_with_dpath'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 unet_cv_with_dpath=$unet_libdir
3356 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
3357 unet_cv_with_dpath=$unet_libdir
3360 # Ensure there are no trailing /'s to mess us up
3361 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
3363 echo "$ac_t""$unet_cv_with_dpath" 1>&6
3365 if test x"$unet_cv_with_chroot" != xno; then
3366 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3367 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
3369 { echo "configure: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3372 unet_dpath=$unet_cv_with_dpath
3375 cat >> confdefs.h <<EOF
3376 #define DPATH "$unet_dpath"
3380 DPATH=$unet_cv_with_dpath
3383 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
3384 echo "configure:3385: checking where the default configuration file resides" >&5
3385 # Check whether --with-cpath or --without-cpath was given.
3386 if test "${with_cpath+set}" = set; then
3387 withval="$with_cpath"
3388 unet_cv_with_cpath=$with_cpath
3390 if eval "test \"`echo '$''{'unet_cv_with_cpath'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 unet_cv_with_cpath="ircd.conf"
3399 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
3400 unet_cv_with_cpath="ircd.conf"
3403 echo "$ac_t""$unet_cv_with_cpath" 1>&6
3405 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
3406 # Absolute path; check against chroot stuff
3407 if test x"$unet_cv_with_chroot" != xno; then
3408 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3409 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
3411 { echo "configure: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3414 unet_cpath=$unet_cv_with_cpath
3417 unet_cpath=$unet_cv_with_cpath
3420 cat >> confdefs.h <<EOF
3421 #define CPATH "$unet_cpath"
3425 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
3426 echo "configure:3427: checking where to put the debugging log if debugging enabled" >&5
3427 # Check whether --with-lpath or --without-lpath was given.
3428 if test "${with_lpath+set}" = set; then
3429 withval="$with_lpath"
3430 unet_cv_with_lpath=$with_lpath
3432 if eval "test \"`echo '$''{'unet_cv_with_lpath'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 unet_cv_with_lpath="ircd.log"
3441 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
3442 unet_cv_with_lpath="ircd.log"
3445 echo "$ac_t""$unet_cv_with_lpath" 1>&6
3447 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
3448 # Absolute path; check against chroot stuff
3449 if test x"$unet_cv_with_chroot" != xno; then
3450 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3451 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
3453 echo "configure: warning: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" 1>&2
3454 unet_cv_with_lpath="ircd.log"
3455 unet_lpath="ircd.log"
3458 unet_lpath=$unet_cv_with_lpath
3461 unet_lpath=$unet_cv_with_lpath
3464 cat >> confdefs.h <<EOF
3465 #define LPATH "$unet_lpath"
3469 unet_maxcon=`ulimit -Hn`
3470 unet_maxcon=`expr $unet_maxcon - 4`
3471 echo $ac_n "checking max connections""... $ac_c" 1>&6
3472 echo "configure:3473: checking max connections" >&5
3473 # Check whether --with-maxcon or --without-maxcon was given.
3474 if test "${with_maxcon+set}" = set; then
3475 withval="$with_maxcon"
3476 unet_cv_with_maxcon=$with_maxcon
3478 if eval "test \"`echo '$''{'unet_cv_with_maxcon'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 unet_cv_with_maxcon=$unet_maxcon
3487 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
3488 unet_cv_with_maxcon=$unet_maxcon
3491 echo "$ac_t""$unet_cv_with_maxcon" 1>&6
3493 cat >> confdefs.h <<EOF
3494 #define MAXCONNECTIONS $unet_cv_with_maxcon
3499 cat > confcache <<\EOF
3500 # This file is a shell script that caches the results of configure
3501 # tests run on this system so they can be shared between configure
3502 # scripts and configure runs. It is not useful on other systems.
3503 # If it contains results you don't want to keep, you may remove or edit it.
3505 # By default, configure uses ./config.cache as the cache file,
3506 # creating it if it does not exist already. You can give configure
3507 # the --cache-file=FILE option to use a different cache file; that is
3508 # what configure does when it calls configure scripts in
3509 # subdirectories, so they share the cache.
3510 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3511 # config.status only pays attention to the cache file if you give it the
3512 # --recheck option to rerun configure.
3515 # The following way of writing the cache mishandles newlines in values,
3516 # but we know of no workaround that is simple, portable, and efficient.
3517 # So, don't put newlines in cache variables' values.
3518 # Ultrix sh set writes to stderr and can't be redirected directly,
3519 # and sets the high bit in the cache file unless we assign to the vars.
3521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3523 # `set' does not quote correctly, so add quotes (double-quote substitution
3524 # turns \\\\ into \\, and sed turns \\ into \).
3526 -e "s/'/'\\\\''/g" \
3527 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3530 # `set' quotes correctly as required by POSIX, so do not add quotes.
3531 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3534 if cmp -s $cache_file confcache; then
3537 if test -w $cache_file; then
3538 echo "updating cache $cache_file"
3539 cat confcache > $cache_file
3541 echo "not updating unwritable cache $cache_file"
3546 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3549 # Let make expand exec_prefix.
3550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3552 # Any assignment to VPATH causes Sun make to only execute
3553 # the first set of double-colon rules, so remove it if not needed.
3554 # If there is a colon in the path, we need to keep it.
3555 if test "x$srcdir" = x.; then
3556 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3559 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3561 DEFS=-DHAVE_CONFIG_H
3563 # Without the "./", some shells look in PATH for config.status.
3564 : ${CONFIG_STATUS=./config.status}
3566 echo creating $CONFIG_STATUS
3567 rm -f $CONFIG_STATUS
3568 cat > $CONFIG_STATUS <<EOF
3570 # Generated automatically by configure.
3571 # Run this file to recreate the current configuration.
3572 # This directory was configured as follows,
3573 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3575 # $0 $ac_configure_args
3577 # Compiler output produced by configure, useful for debugging
3578 # configure, is in ./config.log if it exists.
3580 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3583 case "\$ac_option" in
3584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3585 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3586 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3587 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3588 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3590 -help | --help | --hel | --he | --h)
3591 echo "\$ac_cs_usage"; exit 0 ;;
3592 *) echo "\$ac_cs_usage"; exit 1 ;;
3596 ac_given_srcdir=$srcdir
3597 ac_given_INSTALL="$INSTALL"
3599 trap 'rm -fr `echo "Makefile ircd/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3601 cat >> $CONFIG_STATUS <<EOF
3603 # Protect against being on the right side of a sed subst in config.status.
3604 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3605 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3609 s%@CFLAGS@%$CFLAGS%g
3610 s%@CPPFLAGS@%$CPPFLAGS%g
3611 s%@CXXFLAGS@%$CXXFLAGS%g
3612 s%@FFLAGS@%$FFLAGS%g
3614 s%@LDFLAGS@%$LDFLAGS%g
3616 s%@exec_prefix@%$exec_prefix%g
3617 s%@prefix@%$prefix%g
3618 s%@program_transform_name@%$program_transform_name%g
3619 s%@bindir@%$bindir%g
3620 s%@sbindir@%$sbindir%g
3621 s%@libexecdir@%$libexecdir%g
3622 s%@datadir@%$datadir%g
3623 s%@sysconfdir@%$sysconfdir%g
3624 s%@sharedstatedir@%$sharedstatedir%g
3625 s%@localstatedir@%$localstatedir%g
3626 s%@libdir@%$libdir%g
3627 s%@includedir@%$includedir%g
3628 s%@oldincludedir@%$oldincludedir%g
3629 s%@infodir@%$infodir%g
3630 s%@mandir@%$mandir%g
3632 s%@host_alias@%$host_alias%g
3633 s%@host_cpu@%$host_cpu%g
3634 s%@host_vendor@%$host_vendor%g
3635 s%@host_os@%$host_os%g
3639 s%@SET_MAKE@%$SET_MAKE%g
3640 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3641 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3642 s%@INSTALL_DATA@%$INSTALL_DATA%g
3644 s%@RMPROG@%$RMPROG%g
3645 s%@SHPROG@%$SHPROG%g
3646 s%@OSDEP_C@%$OSDEP_C%g
3647 s%@INSTALL_RULE@%$INSTALL_RULE%g
3648 s%@SYMLINK@%$SYMLINK%g
3649 s%@IRCDMODE@%$IRCDMODE%g
3650 s%@IRCDOWN@%$IRCDOWN%g
3651 s%@IRCDGRP@%$IRCDGRP%g
3657 cat >> $CONFIG_STATUS <<\EOF
3659 # Split the substitutions into bite-sized pieces for seds with
3660 # small command number limits, like on Digital OSF/1 and HP-UX.
3661 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3662 ac_file=1 # Number of current file.
3663 ac_beg=1 # First line for current file.
3664 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3667 while $ac_more_lines; do
3668 if test $ac_beg -gt 1; then
3669 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3671 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3673 if test ! -s conftest.s$ac_file; then
3675 rm -f conftest.s$ac_file
3677 if test -z "$ac_sed_cmds"; then
3678 ac_sed_cmds="sed -f conftest.s$ac_file"
3680 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3682 ac_file=`expr $ac_file + 1`
3684 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3687 if test -z "$ac_sed_cmds"; then
3692 cat >> $CONFIG_STATUS <<EOF
3694 CONFIG_FILES=\${CONFIG_FILES-"Makefile ircd/Makefile doc/Makefile"}
3696 cat >> $CONFIG_STATUS <<\EOF
3697 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3700 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3701 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3702 *) ac_file_in="${ac_file}.in" ;;
3705 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3707 # Remove last slash and all that follows it. Not all systems have dirname.
3708 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3709 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3710 # The file is in a subdirectory.
3711 test ! -d "$ac_dir" && mkdir "$ac_dir"
3712 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3713 # A "../" for each directory in $ac_dir_suffix.
3714 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3716 ac_dir_suffix= ac_dots=
3719 case "$ac_given_srcdir" in
3721 if test -z "$ac_dots"; then top_srcdir=.
3722 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3723 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3725 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3726 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3729 case "$ac_given_INSTALL" in
3730 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3731 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3734 echo creating "$ac_file"
3736 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3738 *Makefile*) ac_comsub="1i\\
3739 # $configure_input" ;;
3743 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3745 s%@configure_input@%$configure_input%g
3746 s%@srcdir@%$srcdir%g
3747 s%@top_srcdir@%$top_srcdir%g
3748 s%@INSTALL@%$INSTALL%g
3749 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3756 # ac_d sets the value in "#define NAME VALUE" lines.
3757 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3758 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3761 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3762 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3763 ac_uB='\([ ]\)%\1#\2define\3'
3766 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3767 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3768 ac_eB='$%\1#\2define\3'
3772 if test "${CONFIG_HEADERS+set}" != set; then
3774 cat >> $CONFIG_STATUS <<EOF
3775 CONFIG_HEADERS="config.h"
3777 cat >> $CONFIG_STATUS <<\EOF
3779 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3782 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3783 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3784 *) ac_file_in="${ac_file}.in" ;;
3787 echo creating $ac_file
3789 rm -f conftest.frag conftest.in conftest.out
3790 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3791 cat $ac_file_inputs > conftest.in
3795 # Transform confdefs.h into a sed script conftest.vals that substitutes
3796 # the proper values into config.h.in to produce config.h. And first:
3797 # Protect against being on the right side of a sed subst in config.status.
3798 # Protect against being in an unquoted here document in config.status.
3800 cat > conftest.hdr <<\EOF
3803 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3807 sed -n -f conftest.hdr confdefs.h > conftest.vals
3810 # This sed command replaces #undef with comments. This is necessary, for
3811 # example, in the case of _POSIX_SOURCE, which is predefined and required
3812 # on some systems where configure will not decide to define it.
3813 cat >> conftest.vals <<\EOF
3814 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3817 # Break up conftest.vals because some shells have a limit on
3818 # the size of here documents, and old seds have small limits too.
3823 ac_lines=`grep -c . conftest.vals`
3824 # grep -c gives empty output for an empty file on some AIX systems.
3825 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3826 # Write a limited-size here document to conftest.frag.
3827 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3828 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3830 sed -f conftest.frag conftest.in > conftest.out
3832 mv conftest.out conftest.in
3834 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3836 mv conftest.tail conftest.vals
3840 cat >> $CONFIG_STATUS <<\EOF
3841 rm -f conftest.frag conftest.h
3842 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3843 cat conftest.in >> conftest.h
3845 if cmp -s $ac_file conftest.h 2>/dev/null; then
3846 echo "$ac_file is unchanged"
3849 # Remove last slash and all that follows it. Not all systems have dirname.
3850 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3851 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3852 # The file is in a subdirectory.
3853 test ! -d "$ac_dir" && mkdir "$ac_dir"
3856 mv conftest.h $ac_file
3861 cat >> $CONFIG_STATUS <<EOF
3864 cat >> $CONFIG_STATUS <<\EOF
3865 echo timestamp > stamp-h
3868 chmod +x $CONFIG_STATUS
3869 rm -fr confdefs* $ac_clean_files
3870 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1