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 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)"
29 --enable-warnings Enable warnings (add -Wall to CFLAGS)"
31 --disable-inlines Disable inlining for a few critical functions"
33 --enable-devpoll Enable the experimental /dev/poll-based engine"
35 --enable-kqueue Enable the experimental kqueue-based engine"
37 --with-symlink=name Name to give the symlink; if name is "no," no
38 symlink will be created."
40 --with-mode=mode Permissions (in octal) to give the binary"
42 --with-owner=owner Specify owner of the installed binary"
44 --with-group=group Specify group owner of the installed binary"
46 --with-domain=domain Domain name to use in local statistics gathering"
48 --with-chroot=dir Specify that the server will be operated under
49 a different root directory given by dir. See
50 doc/readme.chroot for more information."
52 --with-dpath=dir Directory for all server data files"
54 --with-cpath=file Set server configuration file"
56 --with-lpath=file Set the debugging log file"
58 --with-maxcon=maxcon Maximum number of connections server will accept"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=ircd/ircd.c
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
571 if eval "test \"`echo '$''{'unet_cv_prefix'+set}'`\" = set"; then
572 echo $ac_n "(cached) $ac_c" 1>&6
577 if test x"$prefix" != xNONE; then
578 unet_cv_prefix=$prefix
580 ac_default_prefix=$unet_cv_prefix
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588 if test -f $ac_dir/install-sh; then
590 ac_install_sh="$ac_aux_dir/install-sh -c"
592 elif test -f $ac_dir/install.sh; then
594 ac_install_sh="$ac_aux_dir/install.sh -c"
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Make sure we can run config.sub.
607 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
615 case "$host_alias" in
619 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 *) host_alias=$nonopt ;;
626 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
633 # Extract the first word of "gcc", so it can be a program name with args.
634 set dummy gcc; ac_word=$2
635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636 echo "configure:637: checking for $ac_word" >&5
637 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
640 if test -n "$CC"; then
641 ac_cv_prog_CC="$CC" # Let the user override the test.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
656 if test -n "$CC"; then
657 echo "$ac_t""$CC" 1>&6
659 echo "$ac_t""no" 1>&6
662 if test -z "$CC"; then
663 # Extract the first word of "cc", so it can be a program name with args.
664 set dummy cc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
676 for ac_dir in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
679 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
688 if test $ac_prog_rejected = yes; then
689 # We found a bogon in the path, so make sure we never use it.
690 set dummy $ac_cv_prog_CC
692 if test $# -gt 0; then
693 # We chose a different compiler from the bogus one.
694 # However, it has the same basename, so the bogon will be chosen
695 # first if we set CC to just the basename; use the full file name.
697 set dummy "$ac_dir/$ac_word" "$@"
705 if test -n "$CC"; then
706 echo "$ac_t""$CC" 1>&6
708 echo "$ac_t""no" 1>&6
711 if test -z "$CC"; then
714 # Extract the first word of "cl", so it can be a program name with args.
715 set dummy cl; ac_word=$2
716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717 echo "configure:718: checking for $ac_word" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 if test -n "$CC"; then
722 ac_cv_prog_CC="$CC" # Let the user override the test.
724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
726 for ac_dir in $ac_dummy; do
727 test -z "$ac_dir" && ac_dir=.
728 if test -f $ac_dir/$ac_word; then
737 if test -n "$CC"; then
738 echo "$ac_t""$CC" 1>&6
740 echo "$ac_t""no" 1>&6
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
748 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
749 echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 cat > conftest.$ac_ext << EOF
760 #line 761 "configure"
761 #include "confdefs.h"
765 if { (eval echo configure:766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
766 ac_cv_prog_cc_works=yes
767 # If we can't run a trivial program, we are probably using a cross compiler.
768 if (./conftest; exit) 2>/dev/null; then
769 ac_cv_prog_cc_cross=no
771 ac_cv_prog_cc_cross=yes
774 echo "configure: failed program was:" >&5
775 cat conftest.$ac_ext >&5
776 ac_cv_prog_cc_works=no
780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781 ac_cpp='$CPP $CPPFLAGS'
782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784 cross_compiling=$ac_cv_prog_cc_cross
786 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
787 if test $ac_cv_prog_cc_works = no; then
788 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
790 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
791 echo "configure:792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
792 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
796 echo "configure:797: checking whether we are using GNU C" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 cat > conftest.c <<EOF
805 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
814 if test $ac_cv_prog_gcc = yes; then
820 ac_test_CFLAGS="${CFLAGS+set}"
821 ac_save_CFLAGS="$CFLAGS"
823 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
824 echo "configure:825: checking whether ${CC-cc} accepts -g" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 echo 'void f(){}' > conftest.c
829 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
838 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
839 if test "$ac_test_CFLAGS" = set; then
840 CFLAGS="$ac_save_CFLAGS"
841 elif test $ac_cv_prog_cc_g = yes; then
842 if test "$GCC" = yes; then
848 if test "$GCC" = yes; then
859 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
860 echo "configure:861: checking for ${CC-cc} option to accept ANSI C" >&5
861 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 am_cv_prog_cc_stdc=no
866 # Don't try gcc -ansi; that turns off useful extensions and
867 # breaks some systems' header files.
869 # Ultrix and OSF/1 -std1
870 # HP-UX -Aa -D_HPUX_SOURCE
871 # SVR4 -Xc -D__EXTENSIONS__
872 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
874 CC="$ac_save_CC $ac_arg"
875 cat > conftest.$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
880 #include <sys/types.h>
881 #include <sys/stat.h>
882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
883 struct buf { int x; };
884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
885 static char *e (p, i)
891 static char *f (char * (*g) (char **, int), char **p, ...)
896 s = g (p, va_arg (v,int));
900 int test (int i, double x);
901 struct s1 {int (*f) (int a);};
902 struct s2 {int (*f) (double a);};
903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
913 if { (eval echo configure:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
915 am_cv_prog_cc_stdc="$ac_arg"; break
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
926 if test -z "$am_cv_prog_cc_stdc"; then
927 echo "$ac_t""none needed" 1>&6
929 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
931 case "x$am_cv_prog_cc_stdc" in
933 *) CC="$CC $am_cv_prog_cc_stdc" ;;
936 if test x"$CFLAGS" != x; then
937 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
939 if test x"$CFLAGS" != x; then
940 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
942 if test x"$CFLAGS" != x; then
943 unet_old_cflags=$CFLAGS
944 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
946 if test x"$CFLAGS" != x"$unet_old_cflags"; then
947 # If -g was already there, force symbols to be enabled
948 unet_cv_enable_symbols=yes
950 if test x"$CFLAGS" != x; then
951 unet_old_cflags=$CFLAGS
952 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
954 if test x"$CFLAGS" != x"$unet_old_cflags"; then
955 # If -pg was already there, force profiling to be enabled
956 unet_cv_enable_profile=yes
958 if test x"$CFLAGS" != x; then
959 unet_old_cflags=$CFLAGS
960 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
962 if test x"$CFLAGS" != x"$unet_old_cflags"; then
963 # If -Wall was already there, force warnings to be enabled
964 unet_cv_enable_warnings=yes
966 if test x"$CFLAGS" != x; then
967 unet_old_cflags=$CFLAGS
968 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
970 if test x"$CFLAGS" != x"$unet_old_cflags"; then
971 # If -pedantic was already there, force pedatic to be enabled
972 unet_cv_enable_pedantic=yes
977 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
978 echo "configure:979: checking for library containing crypt" >&5
979 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 ac_func_search_save_LIBS="$LIBS"
983 ac_cv_search_crypt="no"
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
987 /* Override any gcc2 internal prototype to avoid an error. */
988 /* We use char because int might match the return type of a gcc2
989 builtin and then its argument prototype would still apply. */
996 if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
998 ac_cv_search_crypt="none required"
1000 echo "configure: failed program was:" >&5
1001 cat conftest.$ac_ext >&5
1004 test "$ac_cv_search_crypt" = "no" && for i in descrypt crypt; do
1005 LIBS="-l$i $ac_func_search_save_LIBS"
1006 cat > conftest.$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009 /* Override any gcc2 internal prototype to avoid an error. */
1010 /* We use char because int might match the return type of a gcc2
1011 builtin and then its argument prototype would still apply. */
1018 if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_search_crypt="-l$i"
1023 echo "configure: failed program was:" >&5
1024 cat conftest.$ac_ext >&5
1028 LIBS="$ac_func_search_save_LIBS"
1031 echo "$ac_t""$ac_cv_search_crypt" 1>&6
1032 if test "$ac_cv_search_crypt" != "no"; then
1033 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1036 { echo "configure: error: Unable to find library containing crypt()" 1>&2; exit 1; }
1040 # Most operating systems have gethostbyname() in the default searched
1041 # libraries (i.e. libc):
1042 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1043 echo "configure:1044: checking for gethostbyname" >&5
1044 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 /* System header to define __stub macros and hopefully few prototypes,
1051 which can conflict with char gethostbyname(); below. */
1053 /* Override any gcc2 internal prototype to avoid an error. */
1054 /* We use char because int might match the return type of a gcc2
1055 builtin and then its argument prototype would still apply. */
1056 char gethostbyname();
1060 /* The GNU C library defines this for functions which it implements
1061 to always fail with ENOSYS. Some functions are actually named
1062 something starting with __ and the normal name is an alias. */
1063 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1071 if { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1073 eval "ac_cv_func_gethostbyname=yes"
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 eval "ac_cv_func_gethostbyname=no"
1083 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1084 echo "$ac_t""yes" 1>&6
1087 echo "$ac_t""no" 1>&6
1088 # Some OSes (eg. Solaris) place it in libnsl:
1089 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1090 echo "configure:1091: checking for gethostbyname in -lnsl" >&5
1091 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 ac_save_LIBS="$LIBS"
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 /* Override any gcc2 internal prototype to avoid an error. */
1101 /* We use char because int might match the return type of a gcc2
1102 builtin and then its argument prototype would still apply. */
1103 char gethostbyname();
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1111 eval "ac_cv_lib_$ac_lib_var=yes"
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1116 eval "ac_cv_lib_$ac_lib_var=no"
1119 LIBS="$ac_save_LIBS"
1122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1124 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1126 cat >> confdefs.h <<EOF
1127 #define $ac_tr_lib 1
1133 echo "$ac_t""no" 1>&6
1134 # Some strange OSes (SINIX) have it in libsocket:
1135 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1136 echo "configure:1137: checking for gethostbyname in -lsocket" >&5
1137 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 ac_save_LIBS="$LIBS"
1142 LIBS="-lsocket $LIBS"
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 /* Override any gcc2 internal prototype to avoid an error. */
1147 /* We use char because int might match the return type of a gcc2
1148 builtin and then its argument prototype would still apply. */
1149 char gethostbyname();
1155 if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157 eval "ac_cv_lib_$ac_lib_var=yes"
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 eval "ac_cv_lib_$ac_lib_var=no"
1165 LIBS="$ac_save_LIBS"
1168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1169 echo "$ac_t""yes" 1>&6
1170 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1172 cat >> confdefs.h <<EOF
1173 #define $ac_tr_lib 1
1176 LIBS="-lsocket $LIBS"
1179 echo "$ac_t""no" 1>&6
1180 # Unfortunately libsocket sometimes depends on libnsl.
1181 # AC_CHECK_LIB's API is essentially broken so the following
1182 # ugliness is necessary:
1183 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1184 echo "configure:1185: checking for gethostbyname in -lsocket" >&5
1185 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 ac_save_LIBS="$LIBS"
1190 LIBS="-lsocket -lnsl $LIBS"
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1194 /* Override any gcc2 internal prototype to avoid an error. */
1195 /* We use char because int might match the return type of a gcc2
1196 builtin and then its argument prototype would still apply. */
1197 char gethostbyname();
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205 eval "ac_cv_lib_$ac_lib_var=yes"
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 eval "ac_cv_lib_$ac_lib_var=no"
1213 LIBS="$ac_save_LIBS"
1216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1218 LIBS="-lsocket -lnsl $LIBS"
1220 echo "$ac_t""no" 1>&6
1221 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1222 echo "configure:1223: checking for gethostbyname in -lresolv" >&5
1223 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 ac_save_LIBS="$LIBS"
1228 LIBS="-lresolv $LIBS"
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1232 /* Override any gcc2 internal prototype to avoid an error. */
1233 /* We use char because int might match the return type of a gcc2
1234 builtin and then its argument prototype would still apply. */
1235 char gethostbyname();
1241 if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1243 eval "ac_cv_lib_$ac_lib_var=yes"
1245 echo "configure: failed program was:" >&5
1246 cat conftest.$ac_ext >&5
1248 eval "ac_cv_lib_$ac_lib_var=no"
1251 LIBS="$ac_save_LIBS"
1254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1256 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1258 cat >> confdefs.h <<EOF
1259 #define $ac_tr_lib 1
1262 LIBS="-lresolv $LIBS"
1265 echo "$ac_t""no" 1>&6
1279 echo $ac_n "checking for socket""... $ac_c" 1>&6
1280 echo "configure:1281: checking for socket" >&5
1281 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287 /* System header to define __stub macros and hopefully few prototypes,
1288 which can conflict with char socket(); below. */
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1297 /* The GNU C library defines this for functions which it implements
1298 to always fail with ENOSYS. Some functions are actually named
1299 something starting with __ and the normal name is an alias. */
1300 #if defined (__stub_socket) || defined (__stub___socket)
1308 if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1310 eval "ac_cv_func_socket=yes"
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1315 eval "ac_cv_func_socket=no"
1320 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1321 echo "$ac_t""yes" 1>&6
1324 echo "$ac_t""no" 1>&6
1325 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1326 echo "configure:1327: checking for socket in -lsocket" >&5
1327 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 ac_save_LIBS="$LIBS"
1332 LIBS="-lsocket $LIBS"
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 /* Override any gcc2 internal prototype to avoid an error. */
1337 /* We use char because int might match the return type of a gcc2
1338 builtin and then its argument prototype would still apply. */
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347 eval "ac_cv_lib_$ac_lib_var=yes"
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 eval "ac_cv_lib_$ac_lib_var=no"
1355 LIBS="$ac_save_LIBS"
1358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1360 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1362 cat >> confdefs.h <<EOF
1363 #define $ac_tr_lib 1
1366 LIBS="-lsocket $LIBS"
1369 echo "$ac_t""no" 1>&6
1370 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1371 echo "configure:1372: checking for socket in -lsocket" >&5
1372 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 ac_save_LIBS="$LIBS"
1377 LIBS="-lsocket -lnsl $LIBS"
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 /* Override any gcc2 internal prototype to avoid an error. */
1382 /* We use char because int might match the return type of a gcc2
1383 builtin and then its argument prototype would still apply. */
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1392 eval "ac_cv_lib_$ac_lib_var=yes"
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 eval "ac_cv_lib_$ac_lib_var=no"
1400 LIBS="$ac_save_LIBS"
1403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1404 echo "$ac_t""yes" 1>&6
1405 LIBS="-lsocket -lnsl $LIBS"
1407 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking for library containing res_mkquery""... $ac_c" 1>&6
1418 echo "configure:1419: checking for library containing res_mkquery" >&5
1419 if eval "test \"`echo '$''{'ac_cv_search_res_mkquery'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 ac_func_search_save_LIBS="$LIBS"
1423 ac_cv_search_res_mkquery="no"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 /* Override any gcc2 internal prototype to avoid an error. */
1428 /* We use char because int might match the return type of a gcc2
1429 builtin and then its argument prototype would still apply. */
1436 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 ac_cv_search_res_mkquery="none required"
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1444 test "$ac_cv_search_res_mkquery" = "no" && for i in resolv; do
1445 LIBS="-l$i $ac_func_search_save_LIBS"
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 /* Override any gcc2 internal prototype to avoid an error. */
1450 /* We use char because int might match the return type of a gcc2
1451 builtin and then its argument prototype would still apply. */
1458 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1460 ac_cv_search_res_mkquery="-l$i"
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1468 LIBS="$ac_func_search_save_LIBS"
1471 echo "$ac_t""$ac_cv_search_res_mkquery" 1>&6
1472 if test "$ac_cv_search_res_mkquery" != "no"; then
1473 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
1476 { echo "configure: error: Unable to find library containing res_mkquery()" 1>&2; exit 1; }
1479 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1480 echo "configure:1481: checking how to run the C preprocessor" >&5
1481 # On Suns, sometimes $CPP names a directory.
1482 if test -n "$CPP" && test -d "$CPP"; then
1485 if test -z "$CPP"; then
1486 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 # This must be in double quotes, not single quotes, because CPP may get
1490 # substituted into the Makefile and "${CC-cc}" will confuse make.
1492 # On the NeXT, cc -E runs the code through the compiler's parser,
1493 # not just through cpp.
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1501 { (eval echo configure:1502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1503 if test -z "$ac_err"; then
1507 echo "configure: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1510 CPP="${CC-cc} -E -traditional-cpp"
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1518 { (eval echo configure:1519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1520 if test -z "$ac_err"; then
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1527 CPP="${CC-cc} -nologo -E"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1535 { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1537 if test -z "$ac_err"; then
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1551 ac_cv_prog_CPP="$CPP"
1553 CPP="$ac_cv_prog_CPP"
1555 ac_cv_prog_CPP="$CPP"
1557 echo "$ac_t""$CPP" 1>&6
1559 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1560 echo "configure:1561: checking for ANSI C header files" >&5
1561 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1573 { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1575 if test -z "$ac_err"; then
1577 ac_cv_header_stdc=yes
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 ac_cv_header_stdc=no
1587 if test $ac_cv_header_stdc = yes; then
1588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1595 egrep "memchr" >/dev/null 2>&1; then
1599 ac_cv_header_stdc=no
1605 if test $ac_cv_header_stdc = yes; then
1606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1613 egrep "free" >/dev/null 2>&1; then
1617 ac_cv_header_stdc=no
1623 if test $ac_cv_header_stdc = yes; then
1624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1625 if test "$cross_compiling" = yes; then
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1632 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1633 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1635 int main () { int i; for (i = 0; i < 256; i++)
1636 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1640 if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1647 ac_cv_header_stdc=no
1655 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1656 if test $ac_cv_header_stdc = yes; then
1657 cat >> confdefs.h <<\EOF
1658 #define STDC_HEADERS 1
1663 for ac_hdr in poll.h sys/devpoll.h sys/event.h
1665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_hdr" >&5
1668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1677 { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1679 if test -z "$ac_err"; then
1681 eval "ac_cv_header_$ac_safe=yes"
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 eval "ac_cv_header_$ac_safe=no"
1691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1694 cat >> confdefs.h <<EOF
1695 #define $ac_tr_hdr 1
1699 echo "$ac_t""no" 1>&6
1704 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1705 echo "configure:1706: checking whether byte ordering is bigendian" >&5
1706 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 ac_cv_c_bigendian=unknown
1710 # See if sys/param.h defines the BYTE_ORDER macro.
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <sys/types.h>
1715 #include <sys/param.h>
1718 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1723 if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1725 # It does; now see whether it defined to BIG_ENDIAN or not.
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 #include <sys/types.h>
1730 #include <sys/param.h>
1733 #if BYTE_ORDER != BIG_ENDIAN
1738 if { (eval echo configure:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740 ac_cv_c_bigendian=yes
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 ac_cv_c_bigendian=no
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1753 if test $ac_cv_c_bigendian = unknown; then
1754 if test "$cross_compiling" = yes; then
1755 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1761 /* Are we little or big endian? From Harbison&Steele. */
1765 char c[sizeof (long)];
1768 exit (u.c[sizeof (long) - 1] == 1);
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1773 ac_cv_c_bigendian=no
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 ac_cv_c_bigendian=yes
1786 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1787 if test $ac_cv_c_bigendian = yes; then
1788 cat >> confdefs.h <<\EOF
1789 #define WORDS_BIGENDIAN 1
1794 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1795 echo "configure:1796: checking for size_t" >&5
1796 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 #include <sys/types.h>
1808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1809 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1811 ac_cv_type_size_t=yes
1814 ac_cv_type_size_t=no
1819 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1820 if test $ac_cv_type_size_t = no; then
1821 cat >> confdefs.h <<\EOF
1822 #define size_t unsigned
1827 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether time.h and sys/time.h may both be included" >&5
1829 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <sys/types.h>
1836 #include <sys/time.h>
1842 if { (eval echo configure:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1844 ac_cv_header_time=yes
1846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1849 ac_cv_header_time=no
1854 echo "$ac_t""$ac_cv_header_time" 1>&6
1855 if test $ac_cv_header_time = yes; then
1856 cat >> confdefs.h <<\EOF
1857 #define TIME_WITH_SYS_TIME 1
1862 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1863 echo "configure:1864: checking whether struct tm is in sys/time.h or time.h" >&5
1864 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 #include <sys/types.h>
1873 struct tm *tp; tp->tm_sec;
1876 if { (eval echo configure:1877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1878 ac_cv_struct_tm=time.h
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 ac_cv_struct_tm=sys/time.h
1888 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1889 if test $ac_cv_struct_tm = sys/time.h; then
1890 cat >> confdefs.h <<\EOF
1891 #define TM_IN_SYS_TIME 1
1896 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1897 echo "configure:1898: checking for uid_t in sys/types.h" >&5
1898 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <sys/types.h>
1906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1907 egrep "uid_t" >/dev/null 2>&1; then
1909 ac_cv_type_uid_t=yes
1918 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1919 if test $ac_cv_type_uid_t = no; then
1920 cat >> confdefs.h <<\EOF
1924 cat >> confdefs.h <<\EOF
1930 echo $ac_n "checking size of short""... $ac_c" 1>&6
1931 echo "configure:1932: checking size of short" >&5
1932 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 if test "$cross_compiling" = yes; then
1936 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1944 FILE *f=fopen("conftestval", "w");
1946 fprintf(f, "%d\n", sizeof(short));
1950 if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1952 ac_cv_sizeof_short=`cat conftestval`
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 ac_cv_sizeof_short=0
1963 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1964 cat >> confdefs.h <<EOF
1965 #define SIZEOF_SHORT $ac_cv_sizeof_short
1969 echo $ac_n "checking size of int""... $ac_c" 1>&6
1970 echo "configure:1971: checking size of int" >&5
1971 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 if test "$cross_compiling" = yes; then
1975 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1983 FILE *f=fopen("conftestval", "w");
1985 fprintf(f, "%d\n", sizeof(int));
1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1991 ac_cv_sizeof_int=`cat conftestval`
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
2002 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2003 cat >> confdefs.h <<EOF
2004 #define SIZEOF_INT $ac_cv_sizeof_int
2008 echo $ac_n "checking size of long""... $ac_c" 1>&6
2009 echo "configure:2010: checking size of long" >&5
2010 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 if test "$cross_compiling" = yes; then
2014 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2022 FILE *f=fopen("conftestval", "w");
2024 fprintf(f, "%d\n", sizeof(long));
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030 ac_cv_sizeof_long=`cat conftestval`
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2041 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2042 cat >> confdefs.h <<EOF
2043 #define SIZEOF_LONG $ac_cv_sizeof_long
2047 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2048 echo "configure:2049: checking size of void *" >&5
2049 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 if test "$cross_compiling" = yes; then
2053 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2061 FILE *f=fopen("conftestval", "w");
2063 fprintf(f, "%d\n", sizeof(void *));
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2069 ac_cv_sizeof_void_p=`cat conftestval`
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2074 ac_cv_sizeof_void_p=0
2080 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2081 cat >> confdefs.h <<EOF
2082 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2086 if test "$ac_cv_sizeof_int" = 2 ; then
2087 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2088 echo "configure:2089: checking for int16_t" >&5
2089 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2095 #include <sys/types.h>
2101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2102 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2104 ac_cv_type_int16_t=yes
2107 ac_cv_type_int16_t=no
2112 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2113 if test $ac_cv_type_int16_t = no; then
2114 cat >> confdefs.h <<\EOF
2120 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2121 echo "configure:2122: checking for u_int16_t" >&5
2122 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2135 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2137 ac_cv_type_u_int16_t=yes
2140 ac_cv_type_u_int16_t=no
2145 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2146 if test $ac_cv_type_u_int16_t = no; then
2147 cat >> confdefs.h <<\EOF
2148 #define u_int16_t unsigned int
2153 elif test "$ac_cv_sizeof_short" = 2 ; then
2154 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2155 echo "configure:2156: checking for int16_t" >&5
2156 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2162 #include <sys/types.h>
2168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2169 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2171 ac_cv_type_int16_t=yes
2174 ac_cv_type_int16_t=no
2179 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2180 if test $ac_cv_type_int16_t = no; then
2181 cat >> confdefs.h <<\EOF
2182 #define int16_t short
2187 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2188 echo "configure:2189: checking for u_int16_t" >&5
2189 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <sys/types.h>
2201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2202 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2204 ac_cv_type_u_int16_t=yes
2207 ac_cv_type_u_int16_t=no
2212 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2213 if test $ac_cv_type_u_int16_t = no; then
2214 cat >> confdefs.h <<\EOF
2215 #define u_int16_t unsigned short
2221 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2223 if test "$ac_cv_sizeof_int" = 4 ; then
2224 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2225 echo "configure:2226: checking for int32_t" >&5
2226 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 #include <sys/types.h>
2238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2239 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2241 ac_cv_type_int32_t=yes
2244 ac_cv_type_int32_t=no
2249 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2250 if test $ac_cv_type_int32_t = no; then
2251 cat >> confdefs.h <<\EOF
2257 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2258 echo "configure:2259: checking for u_int32_t" >&5
2259 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #include <sys/types.h>
2271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2272 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2274 ac_cv_type_u_int32_t=yes
2277 ac_cv_type_u_int32_t=no
2282 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2283 if test $ac_cv_type_u_int32_t = no; then
2284 cat >> confdefs.h <<\EOF
2285 #define u_int32_t unsigned int
2290 elif test "$ac_cv_sizeof_short" = 4 ; then
2291 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2292 echo "configure:2293: checking for int32_t" >&5
2293 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include <sys/types.h>
2305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2306 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2308 ac_cv_type_int32_t=yes
2311 ac_cv_type_int32_t=no
2316 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2317 if test $ac_cv_type_int32_t = no; then
2318 cat >> confdefs.h <<\EOF
2319 #define int32_t short
2324 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2325 echo "configure:2326: checking for u_int32_t" >&5
2326 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 #include <sys/types.h>
2338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2339 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2341 ac_cv_type_u_int32_t=yes
2344 ac_cv_type_u_int32_t=no
2349 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2350 if test $ac_cv_type_u_int32_t = no; then
2351 cat >> confdefs.h <<\EOF
2352 #define u_int32_t unsigned short
2357 elif test "$ac_cv_sizeof_long" = 4 ; then
2358 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2359 echo "configure:2360: checking for int32_t" >&5
2360 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2373 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2375 ac_cv_type_int32_t=yes
2378 ac_cv_type_int32_t=no
2383 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2384 if test $ac_cv_type_int32_t = no; then
2385 cat >> confdefs.h <<\EOF
2386 #define int32_t long
2391 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2392 echo "configure:2393: checking for u_int32_t" >&5
2393 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <sys/types.h>
2405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2406 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2408 ac_cv_type_u_int32_t=yes
2411 ac_cv_type_u_int32_t=no
2416 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2417 if test $ac_cv_type_u_int32_t = no; then
2418 cat >> confdefs.h <<\EOF
2419 #define u_int32_t unsigned long
2425 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2428 echo $ac_n "checking for kqueue""... $ac_c" 1>&6
2429 echo "configure:2430: checking for kqueue" >&5
2430 if eval "test \"`echo '$''{'ac_cv_func_kqueue'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* System header to define __stub macros and hopefully few prototypes,
2437 which can conflict with char kqueue(); below. */
2439 /* Override any gcc2 internal prototype to avoid an error. */
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2446 /* The GNU C library defines this for functions which it implements
2447 to always fail with ENOSYS. Some functions are actually named
2448 something starting with __ and the normal name is an alias. */
2449 #if defined (__stub_kqueue) || defined (__stub___kqueue)
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459 eval "ac_cv_func_kqueue=yes"
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 eval "ac_cv_func_kqueue=no"
2469 if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2473 echo "$ac_t""no" 1>&6
2477 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2478 echo "configure:2479: checking for restartable system calls" >&5
2479 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 if test "$cross_compiling" = yes; then
2483 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* Exit 0 (true) if wait returns something other than -1,
2489 i.e. the pid of the child, which means that wait was restarted
2490 after getting the signal. */
2491 #include <sys/types.h>
2495 int i = fork (), status;
2496 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2497 signal (SIGINT, ucatch);
2499 if (status == -1) wait(&i);
2500 exit (status == -1);
2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2506 ac_cv_sys_restartable_syscalls=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2511 ac_cv_sys_restartable_syscalls=no
2518 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2519 if test $ac_cv_sys_restartable_syscalls = yes; then
2520 cat >> confdefs.h <<\EOF
2521 #define HAVE_RESTARTABLE_SYSCALLS 1
2527 echo $ac_n "checking for donuts""... $ac_c" 1>&6
2528 echo "configure:2529: checking for donuts" >&5
2529 echo "$ac_t""yes" 1>&6
2531 for ac_prog in gawk mawk nawk awk
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test -n "$AWK"; then
2541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2545 for ac_dir in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir=.
2547 if test -f $ac_dir/$ac_word; then
2548 ac_cv_prog_AWK="$ac_prog"
2555 AWK="$ac_cv_prog_AWK"
2556 if test -n "$AWK"; then
2557 echo "$ac_t""$AWK" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 test -n "$AWK" && break
2565 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2566 echo "configure:2567: checking whether ${MAKE-make} sets \${MAKE}" >&5
2567 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2568 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftestmake <<\EOF
2573 @echo 'ac_maketemp="${MAKE}"'
2575 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2576 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2577 if test -n "$ac_maketemp"; then
2578 eval ac_cv_prog_make_${ac_make}_set=yes
2580 eval ac_cv_prog_make_${ac_make}_set=no
2584 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2585 echo "$ac_t""yes" 1>&6
2588 echo "$ac_t""no" 1>&6
2589 SET_MAKE="MAKE=${MAKE-make}"
2592 # Find a good install program. We prefer a C program (faster),
2593 # so one script is as good as another. But avoid the broken or
2594 # incompatible versions:
2595 # SysV /etc/install, /usr/sbin/install
2596 # SunOS /usr/etc/install
2597 # IRIX /sbin/install
2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2604 echo "configure:2605: checking for a BSD compatible install" >&5
2605 if test -z "$INSTALL"; then
2606 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2610 for ac_dir in $PATH; do
2611 # Account for people who put trailing slashes in PATH elements.
2613 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2615 # OSF1 and SCO ODT 3.0 have their own names for install.
2616 # Don't use installbsd from OSF since it installs stuff as root
2618 for ac_prog in ginstall scoinst install; do
2619 if test -f $ac_dir/$ac_prog; then
2620 if test $ac_prog = install &&
2621 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2622 # AIX install. It has an incompatible calling convention.
2625 ac_cv_path_install="$ac_dir/$ac_prog -c"
2636 if test "${ac_cv_path_install+set}" = set; then
2637 INSTALL="$ac_cv_path_install"
2639 # As a last resort, use the slow shell script. We don't cache a
2640 # path for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the path is relative.
2643 INSTALL="$ac_install_sh"
2646 echo "$ac_t""$INSTALL" 1>&6
2648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649 # It thinks the first close brace ends the variable substitution.
2650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2656 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2657 echo "configure:2658: checking whether ln -s works" >&5
2658 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2662 if ln -s X conftestdata 2>/dev/null
2665 ac_cv_prog_LN_S="ln -s"
2670 LN_S="$ac_cv_prog_LN_S"
2671 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2672 echo "$ac_t""yes" 1>&6
2674 echo "$ac_t""no" 1>&6
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_word" >&5
2683 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2688 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2691 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2696 for ac_dir in $ac_dummy; do
2697 test -z "$ac_dir" && ac_dir=.
2698 if test -f $ac_dir/$ac_word; then
2699 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2707 RMPROG="$ac_cv_path_RMPROG"
2708 if test -n "$RMPROG"; then
2709 echo "$ac_t""$RMPROG" 1>&6
2711 echo "$ac_t""no" 1>&6
2714 test -n "$RMPROG" && break
2716 test -n "$RMPROG" || RMPROG="/bin/rm"
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_word" >&5
2724 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2729 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2732 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2737 for ac_dir in $ac_dummy; do
2738 test -z "$ac_dir" && ac_dir=.
2739 if test -f $ac_dir/$ac_word; then
2740 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2748 SHPROG="$ac_cv_path_SHPROG"
2749 if test -n "$SHPROG"; then
2750 echo "$ac_t""$SHPROG" 1>&6
2752 echo "$ac_t""no" 1>&6
2755 test -n "$SHPROG" && break
2757 test -n "$SHPROG" || SHPROG="/bin/sh"
2760 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2761 echo "configure:2762: checking for posix non-blocking" >&5
2762 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 if test "$cross_compiling" = yes; then
2766 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 #include <sys/types.h>
2772 #include <sys/socket.h>
2774 #include <sys/ioctl.h>
2775 #include <sys/file.h>
2777 $ac_cv_type_signal alarmed() { exit(1); }
2782 size_t l = sizeof(x);
2783 int f = socket(AF_INET, SOCK_DGRAM, 0);
2784 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2786 signal(SIGALRM, alarmed);
2788 recvfrom(f, b, 12, 0, &x, &l);
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2797 unet_cv_sys_nonblocking_posix=yes
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 unet_cv_sys_nonblocking_posix=no
2809 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2810 if test $unet_cv_sys_nonblocking_posix = yes; then
2811 cat >> confdefs.h <<\EOF
2812 #define NBLOCK_POSIX 1
2816 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2817 echo "configure:2818: checking for bsd non-blocking" >&5
2818 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 if test "$cross_compiling" = yes; then
2822 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <sys/types.h>
2828 #include <sys/socket.h>
2830 #include <sys/ioctl.h>
2831 #include <sys/file.h>
2833 $ac_cv_type_signal alarmed() { exit(1); }
2838 size_t l = sizeof(x);
2839 int f = socket(AF_INET, SOCK_DGRAM, 0);
2840 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2842 signal(SIGALRM, alarmed);
2844 recvfrom(f, b, 12, 0, &x, &l);
2851 if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2853 unet_cv_sys_nonblocking_bsd=yes
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 unet_cv_sys_nonblocking_bsd=no
2865 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2866 if test $unet_cv_sys_nonblocking_bsd = yes; then
2867 cat >> confdefs.h <<\EOF
2868 #define NBLOCK_BSD 1
2872 cat >> confdefs.h <<\EOF
2873 #define NBLOCK_SYSV 1
2878 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2879 echo "configure:2880: checking for posix signals" >&5
2880 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2888 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2891 if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2893 unet_cv_sys_signal_posix=yes
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 unet_cv_sys_signal_posix=no
2903 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2904 if test $unet_cv_sys_signal_posix = yes; then
2905 cat >> confdefs.h <<\EOF
2906 #define POSIX_SIGNALS 1
2910 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2911 echo "configure:2912: checking for bsd reliable signals" >&5
2912 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$cross_compiling" = yes; then
2916 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 $ac_cv_type_signal handler()
2927 kill(getpid(), SIGTERM);
2932 signal(SIGTERM, handler);
2933 kill(getpid(), SIGTERM);
2937 if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2939 unet_cv_sys_signal_bsd=yes
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2944 unet_cv_sys_signal_bsd=no
2951 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2952 if test $unet_cv_sys_signal_bsd = yes; then
2953 cat >> confdefs.h <<\EOF
2954 #define BSD_RELIABLE_SIGNALS 1
2958 cat >> confdefs.h <<\EOF
2959 #define SYSV_UNRELIABLE_SIGNALS 1
2965 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2966 echo "configure:2967: checking if the compiler understands -pipe" >&5
2967 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2968 if test "$ac_cv_prog_gcc" = no; then
2970 CFLAGS="$CFLAGS -pipe"
2971 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2981 unet_cv_pipe_flags=yes
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2989 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2990 if test "$unet_cv_pipe_flags" = yes ; then
2991 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2992 if test "$x" = "" ; then
2993 CFLAGS="$CFLAGS -pipe"
2998 echo $ac_n "checking for OS-dependent information""... $ac_c" 1>&6
2999 echo "configure:3000: checking for OS-dependent information" >&5
3002 echo "$ac_t""Linux ($host) found." 1>&6
3003 unet_poll_syscall=yes
3008 echo "$ac_t""Solaris ($host) found." 1>&6
3009 if test x"$ac_cv_header_poll_h" = xyes; then
3010 unet_poll_syscall=yes
3012 unet_poll_syscall=no
3014 OSDEP_C=os_solaris.c
3018 echo "$ac_t""Solaris ($host) found." 1>&6
3019 unet_poll_syscall=no
3020 OSDEP_C=os_solaris.c
3024 echo "$ac_t""OpenBSD ($host) found." 1>&6
3025 if test x"$ac_cv_header_poll_h" = xyes; then
3026 unet_poll_syscall=yes
3028 unet_poll_syscall=no
3030 OSDEP_C=os_openbsd.c
3034 echo "$ac_t""Generic BSD ($host) found." 1>&6
3035 if test x"$ac_cv_header_poll_h" = xyes; then
3036 unet_poll_syscall=yes
3038 unet_poll_syscall=no
3044 echo "$ac_t""Unknown system type $host found." 1>&6
3045 echo "configure: warning: Unknown OS type; using generic routines." 1>&2
3046 unet_poll_syscall=no
3047 OSDEP_C=os_generic.c
3052 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
3053 echo "configure:3054: checking whether to enable use of poll()" >&5
3054 # Check whether --enable-poll or --disable-poll was given.
3055 if test "${enable_poll+set}" = set; then
3056 enableval="$enable_poll"
3057 unet_cv_enable_poll=$enable_poll
3059 if eval "test \"`echo '$''{'unet_cv_enable_poll'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 unet_cv_enable_poll=$unet_poll_syscall
3068 # Force poll to be disabled if there is no poll.h
3069 if test x"$ac_cv_header_poll_h" != xyes; then
3070 unet_cv_enable_poll=no
3073 echo "$ac_t""$unet_cv_enable_poll" 1>&6
3075 if test x"$unet_cv_enable_poll" = xyes; then
3076 cat >> confdefs.h <<\EOF
3080 ENGINE_C=engine_poll.c
3082 ENGINE_C=engine_select.c
3086 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
3087 echo "configure:3088: checking whether to enable debug mode" >&5
3088 # Check whether --enable-debug or --disable-debug was given.
3089 if test "${enable_debug+set}" = set; then
3090 enableval="$enable_debug"
3091 unet_cv_enable_debug=$enable_debug
3093 if eval "test \"`echo '$''{'unet_cv_enable_debug'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 unet_cv_enable_debug=no
3101 echo "$ac_t""$unet_cv_enable_debug" 1>&6
3103 if test x"$unet_cv_enable_debug" = xyes; then
3104 cat >> confdefs.h <<\EOF
3110 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether to enable asserts" >&5
3112 # Check whether --enable-asserts or --disable-asserts was given.
3113 if test "${enable_asserts+set}" = set; then
3114 enableval="$enable_asserts"
3115 unet_cv_enable_asserts=$enable_asserts
3117 if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 unet_cv_enable_asserts=no
3125 echo "$ac_t""$unet_cv_enable_asserts" 1>&6
3127 if test x"$unet_cv_enable_asserts" = xno; then
3128 cat >> confdefs.h <<\EOF
3134 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
3135 echo "configure:3136: checking whether to enable debugging symbols" >&5
3136 # Check whether --enable-symbols or --disable-symbols was given.
3137 if test "${enable_symbols+set}" = set; then
3138 enableval="$enable_symbols"
3139 unet_cv_enable_symbols=$enable_symbols
3141 if eval "test \"`echo '$''{'unet_cv_enable_symbols'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 unet_cv_enable_symbols=yes
3149 echo "$ac_t""$unet_cv_enable_symbols" 1>&6
3151 if test x"$unet_cv_enable_symbols" = xyes; then
3155 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
3156 echo "configure:3157: checking whether to enable profiling support (gprof)" >&5
3157 # Check whether --enable-profile or --disable-profile was given.
3158 if test "${enable_profile+set}" = set; then
3159 enableval="$enable_profile"
3160 unet_cv_enable_profile=$enable_profile
3162 if eval "test \"`echo '$''{'unet_cv_enable_profile'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 unet_cv_enable_profile=no
3170 echo "$ac_t""$unet_cv_enable_profile" 1>&6
3172 if test x"$unet_cv_enable_profile" = xyes; then
3173 CFLAGS="-pg $CFLAGS"
3176 echo $ac_n "checking whether to enable pedantic compiler warnings""... $ac_c" 1>&6
3177 echo "configure:3178: checking whether to enable pedantic compiler warnings" >&5
3178 # Check whether --enable-pedantic or --disable-pedantic was given.
3179 if test "${enable_pedantic+set}" = set; then
3180 enableval="$enable_pedantic"
3181 unet_cv_enable_pedantic=$enable_pedantic
3183 if eval "test \"`echo '$''{'unet_cv_enable_pedantic'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 unet_cv_enable_pedantic=no
3191 echo "$ac_t""$unet_cv_enable_pedantic" 1>&6
3193 if test x"$unet_cv_enable_pedantic" = xyes; then
3194 CFLAGS="-pedantic $CFLAGS"
3197 echo $ac_n "checking whether to enable compiler warnings""... $ac_c" 1>&6
3198 echo "configure:3199: checking whether to enable compiler warnings" >&5
3199 # Check whether --enable-warnings or --disable-warnings was given.
3200 if test "${enable_warnings+set}" = set; then
3201 enableval="$enable_warnings"
3202 unet_cv_enable_warnings=$enable_warnings
3204 if eval "test \"`echo '$''{'unet_cv_enable_warnings'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 unet_cv_enable_warnings=no
3212 echo "$ac_t""$unet_cv_enable_warnings" 1>&6
3214 if test x"$unet_cv_enable_warnings" = xyes; then
3215 CFLAGS="-Wall $CFLAGS"
3218 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
3219 echo "configure:3220: checking whether to enable inlining for a few critical functions" >&5
3220 # Check whether --enable-inlines or --disable-inlines was given.
3221 if test "${enable_inlines+set}" = set; then
3222 enableval="$enable_inlines"
3223 unet_cv_enable_inlines=$enable_inlines
3225 if eval "test \"`echo '$''{'unet_cv_enable_inlines'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 unet_cv_enable_inlines=yes
3233 echo "$ac_t""$unet_cv_enable_inlines" 1>&6
3235 if test x"$unet_cv_enable_inlines" = xyes; then
3236 cat >> confdefs.h <<\EOF
3242 echo $ac_n "checking whether to enable the /dev/poll event engine""... $ac_c" 1>&6
3243 echo "configure:3244: checking whether to enable the /dev/poll event engine" >&5
3244 # Check whether --enable-devpoll or --disable-devpoll was given.
3245 if test "${enable_devpoll+set}" = set; then
3246 enableval="$enable_devpoll"
3247 unet_cv_enable_devpoll=$enable_devpoll
3249 if eval "test \"`echo '$''{'unet_cv_enable_devpoll'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 unet_cv_enable_devpoll=no
3258 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
3259 unet_cv_enable_devpoll=no
3262 echo "$ac_t""$unet_cv_enable_devpoll" 1>&6
3264 if test x"$unet_cv_enable_devpoll" != xno; then
3265 cat >> confdefs.h <<\EOF
3269 ENGINE_C="engine_devpoll.c $ENGINE_C"
3272 echo $ac_n "checking whether to enable the kqueue event engine""... $ac_c" 1>&6
3273 echo "configure:3274: checking whether to enable the kqueue event engine" >&5
3274 # Check whether --enable-kqueue or --disable-kqueue was given.
3275 if test "${enable_kqueue+set}" = set; then
3276 enableval="$enable_kqueue"
3277 unet_cv_enable_kqueue=$enable_kqueue
3279 if eval "test \"`echo '$''{'unet_cv_enable_kqueue'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 unet_cv_enable_kqueue=no
3288 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
3289 unet_cv_enable_kqueue=no
3292 echo "$ac_t""$unet_cv_enable_kqueue" 1>&6
3294 if test x"$unet_cv_enable_kqueue" != xno; then
3295 cat >> confdefs.h <<\EOF
3299 ENGINE_C="engine_kqueue.c $ENGINE_C"
3302 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
3303 echo "configure:3304: checking what name to give the symlink" >&5
3304 # Check whether --with-symlink or --without-symlink was given.
3305 if test "${with_symlink+set}" = set; then
3306 withval="$with_symlink"
3307 unet_cv_with_symlink=$with_symlink
3309 if eval "test \"`echo '$''{'unet_cv_with_symlink'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 unet_cv_with_symlink="ircd"
3318 if test x"$unet_cv_with_symlink" = xyes; then
3319 unet_cv_with_symlink="ircd"
3322 echo "$ac_t""$unet_cv_with_symlink" 1>&6
3324 if test x"$unet_cv_with_symlink" = xno; then
3325 INSTALL_RULE=install-no-symlink
3328 INSTALL_RULE=install-with-symlink
3329 SYMLINK=$unet_cv_with_symlink
3334 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
3335 echo "configure:3336: checking what permissions to set on the installed binary" >&5
3336 # Check whether --with-mode or --without-mode was given.
3337 if test "${with_mode+set}" = set; then
3338 withval="$with_mode"
3339 unet_cv_with_mode=$with_mode
3341 if eval "test \"`echo '$''{'unet_cv_with_mode'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 unet_cv_with_mode=711
3350 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
3351 unet_cv_with_mode=711
3354 echo "$ac_t""$unet_cv_with_mode" 1>&6
3356 IRCDMODE=$unet_cv_with_mode
3359 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3360 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
3361 echo "configure:3362: checking which user should own the installed binary" >&5
3362 # Check whether --with-owner or --without-owner was given.
3363 if test "${with_owner+set}" = set; then
3364 withval="$with_owner"
3365 unet_cv_with_owner=$with_owner
3367 if eval "test \"`echo '$''{'unet_cv_with_owner'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 unet_cv_with_owner=$unet_uid
3376 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
3377 unet_cv_with_owner=$unet_uid
3380 echo "$ac_t""$unet_cv_with_owner" 1>&6
3382 IRCDOWN=$unet_cv_with_owner
3385 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3386 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
3387 echo "configure:3388: checking which group should own the installed binary" >&5
3388 # Check whether --with-group or --without-group was given.
3389 if test "${with_group+set}" = set; then
3390 withval="$with_group"
3391 unet_cv_with_group=$with_group
3393 if eval "test \"`echo '$''{'unet_cv_with_group'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 unet_cv_with_group=$unet_gid
3402 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
3403 unet_cv_with_group=$unet_gid
3406 echo "$ac_t""$unet_cv_with_group" 1>&6
3408 IRCDGRP=$unet_cv_with_group
3412 if test -f /etc/resolv.conf; then
3413 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
3414 if test x"$unet_domain" = x; then
3415 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
3418 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
3419 echo "configure:3420: checking for site domain name" >&5
3420 # Check whether --with-domain or --without-domain was given.
3421 if test "${with_domain+set}" = set; then
3422 withval="$with_domain"
3423 unet_cv_with_domain=$with_domain
3425 if eval "test \"`echo '$''{'unet_cv_with_domain'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 unet_cv_with_domain=$unet_domain
3434 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
3435 unet_cv_with_domain=$unet_domain
3437 if test x"$unet_cv_with_domain" = xno; then
3438 { echo "configure: error: Unable to determine server DNS domain; use --with-domain to set it" 1>&2; exit 1; }
3441 echo "$ac_t""$unet_cv_with_domain" 1>&6
3443 cat >> confdefs.h <<EOF
3444 #define DOMAINNAME "*$unet_cv_with_domain"
3448 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
3449 echo "configure:3450: checking if chroot operation is desired" >&5
3450 # Check whether --with-chroot or --without-chroot was given.
3451 if test "${with_chroot+set}" = set; then
3452 withval="$with_chroot"
3453 unet_cv_with_chroot=$with_chroot
3455 if eval "test \"`echo '$''{'unet_cv_with_chroot'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 unet_cv_with_chroot=no
3464 if test x"$unet_cv_with_chroot" = xyes; then
3465 { echo "configure: error: --with-chroot given with no directory. See doc/readme.chroot." 1>&2; exit 1; }
3468 # Ensure there are no trailing /'s to mess us up
3469 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
3471 echo "$ac_t""$unet_cv_with_chroot" 1>&6
3473 # Deal with the annoying value "NONE" here
3474 unet_save_prefix=$prefix
3475 if test x"$prefix" = xNONE; then
3476 prefix=$ac_default_prefix
3481 unet_save_exec_prefix=$exec_prefix
3482 if test x"$exec_prefix" = xNONE; then
3485 exec_prefix=$exec_prefix
3488 # Obtain the actual interesting directories
3489 unet_bindir=`eval echo "$bindir"`
3490 unet_libdir=`eval echo "$libdir"`
3492 # Restore the original settings of $prefix and $exec_prefix
3493 prefix=$unet_save_prefix
3494 exec_prefix=$unet_save_exec_prefix
3496 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
3497 echo "configure:3498: checking where the binary will be for /restart" >&5
3498 if test x"$unet_cv_with_symlink" = xno; then
3499 unet_spath="$unet_bindir/ircd"
3501 unet_spath="$unet_bindir/$unet_cv_with_symlink"
3503 echo "$ac_t""$unet_spath" 1>&6
3505 if test x"$unet_cv_with_chroot" != xno; then
3506 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3507 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
3509 echo "configure: warning: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" 1>&2
3513 cat >> confdefs.h <<EOF
3514 #define SPATH "$unet_spath"
3518 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
3519 echo "configure:3520: checking what the data directory should be" >&5
3520 # Check whether --with-dpath or --without-dpath was given.
3521 if test "${with_dpath+set}" = set; then
3522 withval="$with_dpath"
3523 unet_cv_with_dpath=$with_dpath
3525 if eval "test \"`echo '$''{'unet_cv_with_dpath'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 unet_cv_with_dpath=$unet_libdir
3534 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
3535 unet_cv_with_dpath=$unet_libdir
3538 # Ensure there are no trailing /'s to mess us up
3539 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
3541 echo "$ac_t""$unet_cv_with_dpath" 1>&6
3543 if test x"$unet_cv_with_chroot" != xno; then
3544 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3545 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
3547 { echo "configure: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3550 unet_dpath=$unet_cv_with_dpath
3553 cat >> confdefs.h <<EOF
3554 #define DPATH "$unet_dpath"
3558 DPATH=$unet_cv_with_dpath
3561 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
3562 echo "configure:3563: checking where the default configuration file resides" >&5
3563 # Check whether --with-cpath or --without-cpath was given.
3564 if test "${with_cpath+set}" = set; then
3565 withval="$with_cpath"
3566 unet_cv_with_cpath=$with_cpath
3568 if eval "test \"`echo '$''{'unet_cv_with_cpath'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 unet_cv_with_cpath="ircd.conf"
3577 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
3578 unet_cv_with_cpath="ircd.conf"
3581 echo "$ac_t""$unet_cv_with_cpath" 1>&6
3583 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
3584 # Absolute path; check against chroot stuff
3585 if test x"$unet_cv_with_chroot" != xno; then
3586 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3587 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
3589 { echo "configure: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3592 unet_cpath=$unet_cv_with_cpath
3595 unet_cpath=$unet_cv_with_cpath
3598 cat >> confdefs.h <<EOF
3599 #define CPATH "$unet_cpath"
3603 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
3604 echo "configure:3605: checking where to put the debugging log if debugging enabled" >&5
3605 # Check whether --with-lpath or --without-lpath was given.
3606 if test "${with_lpath+set}" = set; then
3607 withval="$with_lpath"
3608 unet_cv_with_lpath=$with_lpath
3610 if eval "test \"`echo '$''{'unet_cv_with_lpath'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 unet_cv_with_lpath="ircd.log"
3619 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
3620 unet_cv_with_lpath="ircd.log"
3623 echo "$ac_t""$unet_cv_with_lpath" 1>&6
3625 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
3626 # Absolute path; check against chroot stuff
3627 if test x"$unet_cv_with_chroot" != xno; then
3628 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3629 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
3631 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
3632 unet_cv_with_lpath="ircd.log"
3633 unet_lpath="ircd.log"
3636 unet_lpath=$unet_cv_with_lpath
3639 unet_lpath=$unet_cv_with_lpath
3642 cat >> confdefs.h <<EOF
3643 #define LPATH "$unet_lpath"
3647 unet_maxcon=`ulimit -Hn`
3648 unet_maxcon=`expr $unet_maxcon - 4`
3649 echo $ac_n "checking max connections""... $ac_c" 1>&6
3650 echo "configure:3651: checking max connections" >&5
3651 # Check whether --with-maxcon or --without-maxcon was given.
3652 if test "${with_maxcon+set}" = set; then
3653 withval="$with_maxcon"
3654 unet_cv_with_maxcon=$with_maxcon
3656 if eval "test \"`echo '$''{'unet_cv_with_maxcon'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 unet_cv_with_maxcon=$unet_maxcon
3665 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
3666 unet_cv_with_maxcon=$unet_maxcon
3669 echo "$ac_t""$unet_cv_with_maxcon" 1>&6
3671 cat >> confdefs.h <<EOF
3672 #define MAXCONNECTIONS $unet_cv_with_maxcon
3677 cat > confcache <<\EOF
3678 # This file is a shell script that caches the results of configure
3679 # tests run on this system so they can be shared between configure
3680 # scripts and configure runs. It is not useful on other systems.
3681 # If it contains results you don't want to keep, you may remove or edit it.
3683 # By default, configure uses ./config.cache as the cache file,
3684 # creating it if it does not exist already. You can give configure
3685 # the --cache-file=FILE option to use a different cache file; that is
3686 # what configure does when it calls configure scripts in
3687 # subdirectories, so they share the cache.
3688 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3689 # config.status only pays attention to the cache file if you give it the
3690 # --recheck option to rerun configure.
3693 # The following way of writing the cache mishandles newlines in values,
3694 # but we know of no workaround that is simple, portable, and efficient.
3695 # So, don't put newlines in cache variables' values.
3696 # Ultrix sh set writes to stderr and can't be redirected directly,
3697 # and sets the high bit in the cache file unless we assign to the vars.
3699 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3701 # `set' does not quote correctly, so add quotes (double-quote substitution
3702 # turns \\\\ into \\, and sed turns \\ into \).
3704 -e "s/'/'\\\\''/g" \
3705 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3708 # `set' quotes correctly as required by POSIX, so do not add quotes.
3709 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3712 if cmp -s $cache_file confcache; then
3715 if test -w $cache_file; then
3716 echo "updating cache $cache_file"
3717 cat confcache > $cache_file
3719 echo "not updating unwritable cache $cache_file"
3724 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3727 # Let make expand exec_prefix.
3728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3730 # Any assignment to VPATH causes Sun make to only execute
3731 # the first set of double-colon rules, so remove it if not needed.
3732 # If there is a colon in the path, we need to keep it.
3733 if test "x$srcdir" = x.; then
3734 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3737 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3739 DEFS=-DHAVE_CONFIG_H
3741 # Without the "./", some shells look in PATH for config.status.
3742 : ${CONFIG_STATUS=./config.status}
3744 echo creating $CONFIG_STATUS
3745 rm -f $CONFIG_STATUS
3746 cat > $CONFIG_STATUS <<EOF
3748 # Generated automatically by configure.
3749 # Run this file to recreate the current configuration.
3750 # This directory was configured as follows,
3751 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3753 # $0 $ac_configure_args
3755 # Compiler output produced by configure, useful for debugging
3756 # configure, is in ./config.log if it exists.
3758 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3761 case "\$ac_option" in
3762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3763 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3764 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3765 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3766 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3768 -help | --help | --hel | --he | --h)
3769 echo "\$ac_cs_usage"; exit 0 ;;
3770 *) echo "\$ac_cs_usage"; exit 1 ;;
3774 ac_given_srcdir=$srcdir
3775 ac_given_INSTALL="$INSTALL"
3777 trap 'rm -fr `echo "Makefile ircd/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3779 cat >> $CONFIG_STATUS <<EOF
3781 # Protect against being on the right side of a sed subst in config.status.
3782 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3783 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3787 s%@CFLAGS@%$CFLAGS%g
3788 s%@CPPFLAGS@%$CPPFLAGS%g
3789 s%@CXXFLAGS@%$CXXFLAGS%g
3790 s%@FFLAGS@%$FFLAGS%g
3792 s%@LDFLAGS@%$LDFLAGS%g
3794 s%@exec_prefix@%$exec_prefix%g
3795 s%@prefix@%$prefix%g
3796 s%@program_transform_name@%$program_transform_name%g
3797 s%@bindir@%$bindir%g
3798 s%@sbindir@%$sbindir%g
3799 s%@libexecdir@%$libexecdir%g
3800 s%@datadir@%$datadir%g
3801 s%@sysconfdir@%$sysconfdir%g
3802 s%@sharedstatedir@%$sharedstatedir%g
3803 s%@localstatedir@%$localstatedir%g
3804 s%@libdir@%$libdir%g
3805 s%@includedir@%$includedir%g
3806 s%@oldincludedir@%$oldincludedir%g
3807 s%@infodir@%$infodir%g
3808 s%@mandir@%$mandir%g
3810 s%@host_alias@%$host_alias%g
3811 s%@host_cpu@%$host_cpu%g
3812 s%@host_vendor@%$host_vendor%g
3813 s%@host_os@%$host_os%g
3817 s%@SET_MAKE@%$SET_MAKE%g
3818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3819 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3820 s%@INSTALL_DATA@%$INSTALL_DATA%g
3822 s%@RMPROG@%$RMPROG%g
3823 s%@SHPROG@%$SHPROG%g
3824 s%@OSDEP_C@%$OSDEP_C%g
3825 s%@ENGINE_C@%$ENGINE_C%g
3826 s%@INSTALL_RULE@%$INSTALL_RULE%g
3827 s%@SYMLINK@%$SYMLINK%g
3828 s%@IRCDMODE@%$IRCDMODE%g
3829 s%@IRCDOWN@%$IRCDOWN%g
3830 s%@IRCDGRP@%$IRCDGRP%g
3836 cat >> $CONFIG_STATUS <<\EOF
3838 # Split the substitutions into bite-sized pieces for seds with
3839 # small command number limits, like on Digital OSF/1 and HP-UX.
3840 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3841 ac_file=1 # Number of current file.
3842 ac_beg=1 # First line for current file.
3843 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3846 while $ac_more_lines; do
3847 if test $ac_beg -gt 1; then
3848 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3850 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3852 if test ! -s conftest.s$ac_file; then
3854 rm -f conftest.s$ac_file
3856 if test -z "$ac_sed_cmds"; then
3857 ac_sed_cmds="sed -f conftest.s$ac_file"
3859 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3861 ac_file=`expr $ac_file + 1`
3863 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3866 if test -z "$ac_sed_cmds"; then
3871 cat >> $CONFIG_STATUS <<EOF
3873 CONFIG_FILES=\${CONFIG_FILES-"Makefile ircd/Makefile doc/Makefile"}
3875 cat >> $CONFIG_STATUS <<\EOF
3876 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3879 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3880 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3881 *) ac_file_in="${ac_file}.in" ;;
3884 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3886 # Remove last slash and all that follows it. Not all systems have dirname.
3887 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3888 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3889 # The file is in a subdirectory.
3890 test ! -d "$ac_dir" && mkdir "$ac_dir"
3891 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3892 # A "../" for each directory in $ac_dir_suffix.
3893 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3895 ac_dir_suffix= ac_dots=
3898 case "$ac_given_srcdir" in
3900 if test -z "$ac_dots"; then top_srcdir=.
3901 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3902 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3904 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3905 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3908 case "$ac_given_INSTALL" in
3909 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3910 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3913 echo creating "$ac_file"
3915 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3917 *Makefile*) ac_comsub="1i\\
3918 # $configure_input" ;;
3922 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3924 s%@configure_input@%$configure_input%g
3925 s%@srcdir@%$srcdir%g
3926 s%@top_srcdir@%$top_srcdir%g
3927 s%@INSTALL@%$INSTALL%g
3928 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3932 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3933 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3935 # ac_d sets the value in "#define NAME VALUE" lines.
3936 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3937 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3940 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3941 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3942 ac_uB='\([ ]\)%\1#\2define\3'
3945 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3946 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3947 ac_eB='$%\1#\2define\3'
3951 if test "${CONFIG_HEADERS+set}" != set; then
3953 cat >> $CONFIG_STATUS <<EOF
3954 CONFIG_HEADERS="config.h"
3956 cat >> $CONFIG_STATUS <<\EOF
3958 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3961 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3963 *) ac_file_in="${ac_file}.in" ;;
3966 echo creating $ac_file
3968 rm -f conftest.frag conftest.in conftest.out
3969 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3970 cat $ac_file_inputs > conftest.in
3974 # Transform confdefs.h into a sed script conftest.vals that substitutes
3975 # the proper values into config.h.in to produce config.h. And first:
3976 # Protect against being on the right side of a sed subst in config.status.
3977 # Protect against being in an unquoted here document in config.status.
3979 cat > conftest.hdr <<\EOF
3982 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3986 sed -n -f conftest.hdr confdefs.h > conftest.vals
3989 # This sed command replaces #undef with comments. This is necessary, for
3990 # example, in the case of _POSIX_SOURCE, which is predefined and required
3991 # on some systems where configure will not decide to define it.
3992 cat >> conftest.vals <<\EOF
3993 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3996 # Break up conftest.vals because some shells have a limit on
3997 # the size of here documents, and old seds have small limits too.
4002 ac_lines=`grep -c . conftest.vals`
4003 # grep -c gives empty output for an empty file on some AIX systems.
4004 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4005 # Write a limited-size here document to conftest.frag.
4006 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4007 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4009 sed -f conftest.frag conftest.in > conftest.out
4011 mv conftest.out conftest.in
4013 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4015 mv conftest.tail conftest.vals
4019 cat >> $CONFIG_STATUS <<\EOF
4020 rm -f conftest.frag conftest.h
4021 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4022 cat conftest.in >> conftest.h
4024 if cmp -s $ac_file conftest.h 2>/dev/null; then
4025 echo "$ac_file is unchanged"
4028 # Remove last slash and all that follows it. Not all systems have dirname.
4029 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4030 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4031 # The file is in a subdirectory.
4032 test ! -d "$ac_dir" && mkdir "$ac_dir"
4035 mv conftest.h $ac_file
4040 cat >> $CONFIG_STATUS <<EOF
4043 cat >> $CONFIG_STATUS <<\EOF
4044 echo timestamp > stamp-h
4047 chmod +x $CONFIG_STATUS
4048 rm -fr confdefs* $ac_clean_files
4049 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1