3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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:
15 --with-afs Include AFS support
16 --without-afs Don't include AFS support (default)"
18 --with-dfs Include DFS support
19 --without-dfs Don't include DFS support (default)"
21 --with-automount Include AUTOMOUNT support
22 --without-automount Don't include AUTOMOUNT support (default)"
24 --with-ldap Include LDAP support
25 --without-ldap Don't include LDAP support (default)"
27 --with-nisplus Include NISPLUS password database support
28 --without-nisplus Don't include NISPLUS password database support (default)"
30 --with-nisplus-home Include NISPLUS_HOME support
31 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
33 --with-ssl Include SSL support
34 --without-ssl Don't include SSL support (default)"
36 --with-mmap Include experimental MMAP support
37 --without-mmap Don't include MMAP support (default)"
39 --with-syslog Include experimental SYSLOG support
40 --without-syslog Don't include SYSLOG support (default)"
42 --with-netatalk Include experimental Netatalk support
43 --without-netatalk Don't include experimental Netatalk support (default)"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.12"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=include/includes.h
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564 for ac_dir in $PATH; do
565 test -z "$ac_dir" && ac_dir=.
566 if test -f $ac_dir/$ac_word; then
575 if test -n "$CC"; then
576 echo "$ac_t""$CC" 1>&6
578 echo "$ac_t""no" 1>&6
581 if test -z "$CC"; then
582 # Extract the first word of "cc", so it can be a program name with args.
583 set dummy cc; ac_word=$2
584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585 echo "configure:586: checking for $ac_word" >&5
586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
589 if test -n "$CC"; then
590 ac_cv_prog_CC="$CC" # Let the user override the test.
592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
594 for ac_dir in $PATH; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
606 if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
615 set dummy "$ac_dir/$ac_word" "$@"
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
632 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
633 echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
637 ac_cpp='$CPP $CPPFLAGS'
638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
639 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
640 cross_compiling=$ac_cv_prog_cc_cross
642 cat > conftest.$ac_ext <<EOF
643 #line 644 "configure"
644 #include "confdefs.h"
647 if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
648 ac_cv_prog_cc_works=yes
649 # If we can't run a trivial program, we are probably using a cross compiler.
650 if (./conftest; exit) 2>/dev/null; then
651 ac_cv_prog_cc_cross=no
653 ac_cv_prog_cc_cross=yes
656 echo "configure: failed program was:" >&5
657 cat conftest.$ac_ext >&5
658 ac_cv_prog_cc_works=no
662 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
663 if test $ac_cv_prog_cc_works = no; then
664 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
667 echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
668 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
669 cross_compiling=$ac_cv_prog_cc_cross
671 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
672 echo "configure:673: checking whether we are using GNU C" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftest.c <<EOF
681 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
688 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
690 if test $ac_cv_prog_gcc = yes; then
692 ac_test_CFLAGS="${CFLAGS+set}"
693 ac_save_CFLAGS="$CFLAGS"
695 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
696 echo "configure:697: checking whether ${CC-cc} accepts -g" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 echo 'void f(){}' > conftest.c
701 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
710 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
711 if test "$ac_test_CFLAGS" = set; then
712 CFLAGS="$ac_save_CFLAGS"
713 elif test $ac_cv_prog_cc_g = yes; then
720 test "${CFLAGS+set}" = set || CFLAGS="-g"
724 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
725 if test -f $ac_dir/install-sh; then
727 ac_install_sh="$ac_aux_dir/install-sh -c"
729 elif test -f $ac_dir/install.sh; then
731 ac_install_sh="$ac_aux_dir/install.sh -c"
735 if test -z "$ac_aux_dir"; then
736 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
738 ac_config_guess=$ac_aux_dir/config.guess
739 ac_config_sub=$ac_aux_dir/config.sub
740 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
742 # Find a good install program. We prefer a C program (faster),
743 # so one script is as good as another. But avoid the broken or
744 # incompatible versions:
745 # SysV /etc/install, /usr/sbin/install
746 # SunOS /usr/etc/install
749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
751 # ./install, which can be erroneously created by make from ./install.sh.
752 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
753 echo "configure:754: checking for a BSD compatible install" >&5
754 if test -z "$INSTALL"; then
755 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
759 for ac_dir in $PATH; do
760 # Account for people who put trailing slashes in PATH elements.
762 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
764 # OSF1 and SCO ODT 3.0 have their own names for install.
765 for ac_prog in ginstall installbsd scoinst install; do
766 if test -f $ac_dir/$ac_prog; then
767 if test $ac_prog = install &&
768 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
769 # AIX install. It has an incompatible calling convention.
770 # OSF/1 installbsd also uses dspmsg, but is usable.
773 ac_cv_path_install="$ac_dir/$ac_prog -c"
784 if test "${ac_cv_path_install+set}" = set; then
785 INSTALL="$ac_cv_path_install"
787 # As a last resort, use the slow shell script. We don't cache a
788 # path for INSTALL within a source directory, because that will
789 # break other packages using the cache if that directory is
790 # removed, or if the path is relative.
791 INSTALL="$ac_install_sh"
794 echo "$ac_t""$INSTALL" 1>&6
796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
797 # It thinks the first close brace ends the variable substitution.
798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
803 for ac_prog in mawk gawk nawk awk
805 # Extract the first word of "$ac_prog", so it can be a program name with args.
806 set dummy $ac_prog; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$AWK"; then
813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 for ac_dir in $PATH; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_AWK="$ac_prog"
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
830 echo "$ac_t""no" 1>&6
833 test -n "$AWK" && break
838 # Do some error checking and defaulting for the host and target type.
840 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
843 # 1. You are not allowed to specify --host, --target, and nonopt at the
845 # 2. Host defaults to nonopt.
846 # 3. If nonopt is not specified, then host defaults to the current host,
847 # as determined by config.guess.
848 # 4. Target and build default to nonopt.
849 # 5. If nonopt is not specified, then target and build default to host.
851 # The aliases save the names the user supplied, while $host etc.
852 # will get canonicalized.
853 case $host---$target---$nonopt in
854 NONE---*---* | *---NONE---* | *---*---NONE) ;;
855 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
859 # Make sure we can run config.sub.
860 if $ac_config_sub sun4 >/dev/null 2>&1; then :
861 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
864 echo $ac_n "checking host system type""... $ac_c" 1>&6
865 echo "configure:866: checking host system type" >&5
868 case "$host_alias" in
872 if host_alias=`$ac_config_guess`; then :
873 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
875 *) host_alias=$nonopt ;;
879 host=`$ac_config_sub $host_alias`
880 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883 echo "$ac_t""$host" 1>&6
885 echo $ac_n "checking target system type""... $ac_c" 1>&6
886 echo "configure:887: checking target system type" >&5
889 case "$target_alias" in
892 NONE) target_alias=$host_alias ;;
893 *) target_alias=$nonopt ;;
897 target=`$ac_config_sub $target_alias`
898 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
899 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
900 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo "$ac_t""$target" 1>&6
903 echo $ac_n "checking build system type""... $ac_c" 1>&6
904 echo "configure:905: checking build system type" >&5
907 case "$build_alias" in
910 NONE) build_alias=$host_alias ;;
911 *) build_alias=$nonopt ;;
915 build=`$ac_config_sub $build_alias`
916 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
917 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
918 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo "$ac_t""$build" 1>&6
921 test "$host_alias" != "$target_alias" &&
922 test "$program_prefix$program_suffix$program_transform_name" = \
924 program_prefix=${target_alias}-
927 *linux*) cat >> confdefs.h <<\EOF
931 *solaris*) cat >> confdefs.h <<\EOF
935 *sunos*) cat >> confdefs.h <<\EOF
939 *irix*) cat >> confdefs.h <<\EOF
943 *aix*) cat >> confdefs.h <<\EOF
947 *hpux*) cat >> confdefs.h <<\EOF
951 *qnx*) cat >> confdefs.h <<\EOF
955 *osf1*) cat >> confdefs.h <<\EOF
959 *sco*) cat >> confdefs.h <<\EOF
963 *next2*) cat >> confdefs.h <<\EOF
969 echo $ac_n "checking for inline""... $ac_c" 1>&6
970 echo "configure:971: checking for inline" >&5
971 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
975 for ac_kw in inline __inline__ __inline; do
976 cat > conftest.$ac_ext <<EOF
977 #line 978 "configure"
978 #include "confdefs.h"
984 if { (eval echo configure:985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986 ac_cv_c_inline=$ac_kw; break
988 echo "configure: failed program was:" >&5
989 cat conftest.$ac_ext >&5
996 echo "$ac_t""$ac_cv_c_inline" 1>&6
997 case "$ac_cv_c_inline" in
999 no) cat >> confdefs.h <<\EOF
1003 *) cat >> confdefs.h <<EOF
1004 #define inline $ac_cv_c_inline
1009 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010 echo "configure:1011: checking how to run the C preprocessor" >&5
1011 # On Suns, sometimes $CPP names a directory.
1012 if test -n "$CPP" && test -d "$CPP"; then
1015 if test -z "$CPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 # This must be in double quotes, not single quotes, because CPP may get
1020 # substituted into the Makefile and "${CC-cc}" will confuse make.
1022 # On the NeXT, cc -E runs the code through the compiler's parser,
1023 # not just through cpp.
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err=`grep -v '^ *+' conftest.out`
1033 if test -z "$ac_err"; then
1037 echo "configure: failed program was:" >&5
1038 cat conftest.$ac_ext >&5
1040 CPP="${CC-cc} -E -traditional-cpp"
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1062 ac_cv_prog_CPP="$CPP"
1064 CPP="$ac_cv_prog_CPP"
1066 ac_cv_prog_CPP="$CPP"
1068 echo "$ac_t""$CPP" 1>&6
1070 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1071 echo "configure:1072: checking for ANSI C header files" >&5
1072 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084 { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085 ac_err=`grep -v '^ *+' conftest.out`
1086 if test -z "$ac_err"; then
1088 ac_cv_header_stdc=yes
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1094 ac_cv_header_stdc=no
1098 if test $ac_cv_header_stdc = yes; then
1099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1106 egrep "memchr" >/dev/null 2>&1; then
1110 ac_cv_header_stdc=no
1116 if test $ac_cv_header_stdc = yes; then
1117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1124 egrep "free" >/dev/null 2>&1; then
1128 ac_cv_header_stdc=no
1134 if test $ac_cv_header_stdc = yes; then
1135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1136 if test "$cross_compiling" = yes; then
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1143 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1144 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1146 int main () { int i; for (i = 0; i < 256; i++)
1147 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 ac_cv_header_stdc=no
1166 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1167 if test $ac_cv_header_stdc = yes; then
1168 cat >> confdefs.h <<\EOF
1169 #define STDC_HEADERS 1
1175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1178 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_hdr that defines DIR" >&5
1180 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1194 eval "ac_cv_header_dirent_$ac_safe=yes"
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 eval "ac_cv_header_dirent_$ac_safe=no"
1203 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1206 cat >> confdefs.h <<EOF
1207 #define $ac_tr_hdr 1
1209 ac_header_dirent=$ac_hdr; break
1211 echo "$ac_t""no" 1>&6
1214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1215 if test $ac_header_dirent = dirent.h; then
1216 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1217 echo "configure:1218: checking for opendir in -ldir" >&5
1218 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 ac_save_LIBS="$LIBS"
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1227 /* Override any gcc2 internal prototype to avoid an error. */
1228 /* We use char because int might match the return type of a gcc2
1229 builtin and then its argument prototype would still apply. */
1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1238 eval "ac_cv_lib_$ac_lib_var=yes"
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1243 eval "ac_cv_lib_$ac_lib_var=no"
1246 LIBS="$ac_save_LIBS"
1249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1253 echo "$ac_t""no" 1>&6
1257 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1258 echo "configure:1259: checking for opendir in -lx" >&5
1259 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 ac_save_LIBS="$LIBS"
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 /* Override any gcc2 internal prototype to avoid an error. */
1269 /* We use char because int might match the return type of a gcc2
1270 builtin and then its argument prototype would still apply. */
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1279 eval "ac_cv_lib_$ac_lib_var=yes"
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 eval "ac_cv_lib_$ac_lib_var=no"
1287 LIBS="$ac_save_LIBS"
1290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1294 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether time.h and sys/time.h may both be included" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1308 #include <sys/time.h>
1314 if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1316 ac_cv_header_time=yes
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1321 ac_cv_header_time=no
1326 echo "$ac_t""$ac_cv_header_time" 1>&6
1327 if test $ac_cv_header_time = yes; then
1328 cat >> confdefs.h <<\EOF
1329 #define TIME_WITH_SYS_TIME 1
1334 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1335 echo "configure:1336: checking for sys/wait.h that is POSIX.1 compatible" >&5
1336 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 #include <sys/types.h>
1343 #include <sys/wait.h>
1345 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1348 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1356 if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 ac_cv_header_sys_wait_h=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 ac_cv_header_sys_wait_h=no
1368 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1369 if test $ac_cv_header_sys_wait_h = yes; then
1370 cat >> confdefs.h <<\EOF
1371 #define HAVE_SYS_WAIT_H 1
1376 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_hdr" >&5
1381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out`
1392 if test -z "$ac_err"; then
1394 eval "ac_cv_header_$ac_safe=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_header_$ac_safe=no"
1404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1407 cat >> confdefs.h <<EOF
1408 #define $ac_tr_hdr 1
1412 echo "$ac_t""no" 1>&6
1416 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h compat.h
1418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_hdr" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out`
1432 if test -z "$ac_err"; then
1434 eval "ac_cv_header_$ac_safe=yes"
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1440 eval "ac_cv_header_$ac_safe=no"
1444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1445 echo "$ac_t""yes" 1>&6
1446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1447 cat >> confdefs.h <<EOF
1448 #define $ac_tr_hdr 1
1452 echo "$ac_t""no" 1>&6
1456 for ac_hdr in rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_hdr" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err=`grep -v '^ *+' conftest.out`
1472 if test -z "$ac_err"; then
1474 eval "ac_cv_header_$ac_safe=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 eval "ac_cv_header_$ac_safe=no"
1484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1487 cat >> confdefs.h <<EOF
1488 #define $ac_tr_hdr 1
1492 echo "$ac_t""no" 1>&6
1496 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h
1498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_hdr" >&5
1501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1514 eval "ac_cv_header_$ac_safe=yes"
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 eval "ac_cv_header_$ac_safe=no"
1524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1527 cat >> confdefs.h <<EOF
1528 #define $ac_tr_hdr 1
1532 echo "$ac_t""no" 1>&6
1536 for ac_hdr in sys/mode.h sys/filio.h string.h strings.h stdlib.h sys/socket.h
1538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_hdr" >&5
1541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1550 { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1551 ac_err=`grep -v '^ *+' conftest.out`
1552 if test -z "$ac_err"; then
1554 eval "ac_cv_header_$ac_safe=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 eval "ac_cv_header_$ac_safe=no"
1564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1567 cat >> confdefs.h <<EOF
1568 #define $ac_tr_hdr 1
1572 echo "$ac_t""no" 1>&6
1576 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_hdr" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err=`grep -v '^ *+' conftest.out`
1592 if test -z "$ac_err"; then
1594 eval "ac_cv_header_$ac_safe=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1600 eval "ac_cv_header_$ac_safe=no"
1604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1607 cat >> confdefs.h <<EOF
1608 #define $ac_tr_hdr 1
1612 echo "$ac_t""no" 1>&6
1616 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_hdr" >&5
1621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out`
1632 if test -z "$ac_err"; then
1634 eval "ac_cv_header_$ac_safe=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1640 eval "ac_cv_header_$ac_safe=no"
1644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1647 cat >> confdefs.h <<EOF
1648 #define $ac_tr_hdr 1
1652 echo "$ac_t""no" 1>&6
1656 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_hdr" >&5
1661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out`
1672 if test -z "$ac_err"; then
1674 eval "ac_cv_header_$ac_safe=yes"
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1680 eval "ac_cv_header_$ac_safe=no"
1684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1685 echo "$ac_t""yes" 1>&6
1686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1687 cat >> confdefs.h <<EOF
1688 #define $ac_tr_hdr 1
1692 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking size of int""... $ac_c" 1>&6
1698 echo "configure:1699: checking size of int" >&5
1699 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 if test "$cross_compiling" = yes; then
1703 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1711 FILE *f=fopen("conftestval", "w");
1713 fprintf(f, "%d\n", sizeof(int));
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1719 ac_cv_sizeof_int=`cat conftestval`
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1730 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1731 cat >> confdefs.h <<EOF
1732 #define SIZEOF_INT $ac_cv_sizeof_int
1736 echo $ac_n "checking size of long""... $ac_c" 1>&6
1737 echo "configure:1738: checking size of long" >&5
1738 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 if test "$cross_compiling" = yes; then
1742 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 FILE *f=fopen("conftestval", "w");
1752 fprintf(f, "%d\n", sizeof(long));
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1758 ac_cv_sizeof_long=`cat conftestval`
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1769 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1770 cat >> confdefs.h <<EOF
1771 #define SIZEOF_LONG $ac_cv_sizeof_long
1775 echo $ac_n "checking size of short""... $ac_c" 1>&6
1776 echo "configure:1777: checking size of short" >&5
1777 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test "$cross_compiling" = yes; then
1781 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1789 FILE *f=fopen("conftestval", "w");
1791 fprintf(f, "%d\n", sizeof(short));
1795 if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1797 ac_cv_sizeof_short=`cat conftestval`
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1802 ac_cv_sizeof_short=0
1808 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1809 cat >> confdefs.h <<EOF
1810 #define SIZEOF_SHORT $ac_cv_sizeof_short
1815 echo $ac_n "checking for working const""... $ac_c" 1>&6
1816 echo "configure:1817: checking for working const" >&5
1817 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1826 /* Ultrix mips cc rejects this. */
1827 typedef int charset[2]; const charset x;
1828 /* SunOS 4.1.1 cc rejects this. */
1829 char const *const *ccp;
1831 /* NEC SVR4.0.2 mips cc rejects this. */
1832 struct point {int x, y;};
1833 static struct point const zero = {0,0};
1834 /* AIX XL C 1.02.0.0 rejects this.
1835 It does not let you subtract one const X* pointer from another in an arm
1836 of an if-expression whose if-part is not a constant expression */
1837 const char *g = "string";
1838 ccp = &g + (g ? g-g : 0);
1839 /* HPUX 7.0 cc rejects these. */
1842 ccp = (char const *const *) p;
1843 { /* SCO 3.2v4 cc rejects this. */
1845 char const *s = 0 ? (char *) 0 : (char const *) 0;
1849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1851 const int *foo = &x[0];
1854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1855 typedef const int *iptr;
1859 { /* AIX XL C 1.02.0.0 rejects this saying
1860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1861 struct s { int j; const int *ap[3]; };
1862 struct s *b; b->j = 5;
1864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1870 if { (eval echo configure:1871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1882 echo "$ac_t""$ac_cv_c_const" 1>&6
1883 if test $ac_cv_c_const = no; then
1884 cat >> confdefs.h <<\EOF
1890 echo $ac_n "checking for inline""... $ac_c" 1>&6
1891 echo "configure:1892: checking for inline" >&5
1892 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1896 for ac_kw in inline __inline__ __inline; do
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1907 ac_cv_c_inline=$ac_kw; break
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1917 echo "$ac_t""$ac_cv_c_inline" 1>&6
1918 case "$ac_cv_c_inline" in
1920 no) cat >> confdefs.h <<\EOF
1924 *) cat >> confdefs.h <<EOF
1925 #define inline $ac_cv_c_inline
1930 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether byte ordering is bigendian" >&5
1932 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 ac_cv_c_bigendian=unknown
1936 # See if sys/param.h defines the BYTE_ORDER macro.
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <sys/types.h>
1941 #include <sys/param.h>
1944 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1949 if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1951 # It does; now see whether it defined to BIG_ENDIAN or not.
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 #include <sys/types.h>
1956 #include <sys/param.h>
1959 #if BYTE_ORDER != BIG_ENDIAN
1964 if { (eval echo configure:1965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 ac_cv_c_bigendian=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 ac_cv_c_bigendian=no
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1979 if test $ac_cv_c_bigendian = unknown; then
1980 if test "$cross_compiling" = yes; then
1981 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1987 /* Are we little or big endian? From Harbison&Steele. */
1991 char c[sizeof (long)];
1994 exit (u.c[sizeof (long) - 1] == 1);
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1999 ac_cv_c_bigendian=no
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 ac_cv_c_bigendian=yes
2012 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2013 if test $ac_cv_c_bigendian = yes; then
2014 cat >> confdefs.h <<\EOF
2015 #define WORDS_BIGENDIAN 1
2020 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether char is unsigned" >&5
2022 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 if test "$GCC" = yes; then
2026 # GCC predefines this symbol on systems where it applies.
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #ifdef __CHAR_UNSIGNED__
2035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2036 egrep "yes" >/dev/null 2>&1; then
2038 ac_cv_c_char_unsigned=yes
2041 ac_cv_c_char_unsigned=no
2046 if test "$cross_compiling" = yes; then
2047 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2053 #if !defined(__STDC__) || __STDC__ != 1
2057 volatile char c = 255; exit(c < 0);
2060 if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2062 ac_cv_c_char_unsigned=yes
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 ac_cv_c_char_unsigned=no
2075 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2076 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2077 cat >> confdefs.h <<\EOF
2078 #define __CHAR_UNSIGNED__ 1
2084 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2085 echo "configure:2086: checking return type of signal handlers" >&5
2086 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <sys/types.h>
2098 extern "C" void (*signal (int, void (*)(int)))(int);
2100 void (*signal ()) ();
2107 if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 ac_cv_type_signal=void
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 ac_cv_type_signal=int
2119 echo "$ac_t""$ac_cv_type_signal" 1>&6
2120 cat >> confdefs.h <<EOF
2121 #define RETSIGTYPE $ac_cv_type_signal
2125 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2126 echo "configure:2127: checking for uid_t in sys/types.h" >&5
2127 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <sys/types.h>
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "uid_t" >/dev/null 2>&1; then
2138 ac_cv_type_uid_t=yes
2147 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2148 if test $ac_cv_type_uid_t = no; then
2149 cat >> confdefs.h <<\EOF
2153 cat >> confdefs.h <<\EOF
2159 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2160 echo "configure:2161: checking for mode_t" >&5
2161 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <sys/types.h>
2173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2174 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2176 ac_cv_type_mode_t=yes
2179 ac_cv_type_mode_t=no
2184 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2185 if test $ac_cv_type_mode_t = no; then
2186 cat >> confdefs.h <<\EOF
2192 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2193 echo "configure:2194: checking for off_t" >&5
2194 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <sys/types.h>
2206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2207 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2209 ac_cv_type_off_t=yes
2217 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2218 if test $ac_cv_type_off_t = no; then
2219 cat >> confdefs.h <<\EOF
2225 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2226 echo "configure:2227: checking for size_t" >&5
2227 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2242 ac_cv_type_size_t=yes
2245 ac_cv_type_size_t=no
2250 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2251 if test $ac_cv_type_size_t = no; then
2252 cat >> confdefs.h <<\EOF
2253 #define size_t unsigned
2258 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2259 echo "configure:2260: checking for pid_t" >&5
2260 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2273 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2275 ac_cv_type_pid_t=yes
2283 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2284 if test $ac_cv_type_pid_t = no; then
2285 cat >> confdefs.h <<\EOF
2291 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2292 echo "configure:2293: checking for st_rdev in struct stat" >&5
2293 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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>
2300 #include <sys/stat.h>
2302 struct stat s; s.st_rdev;
2305 if { (eval echo configure:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2307 ac_cv_struct_st_rdev=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 ac_cv_struct_st_rdev=no
2317 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2318 if test $ac_cv_struct_st_rdev = yes; then
2319 cat >> confdefs.h <<\EOF
2320 #define HAVE_ST_RDEV 1
2325 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2326 echo "configure:2327: checking for ino_t" >&5
2327 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2342 ac_cv_type_ino_t=yes
2350 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2351 if test $ac_cv_type_ino_t = no; then
2352 cat >> confdefs.h <<\EOF
2353 #define ino_t unsigned
2359 echo $ac_n "checking for errno in errno.h... $ac_c"
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2368 if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 echo yes; cat >> confdefs.h <<\EOF
2371 #define HAVE_ERRNO_DECL 1
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2382 # stupid glibc has the functions but no declaration. grrrr.
2383 echo $ac_n "checking for setresuid declaration $ac_c"
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2392 if { (eval echo configure:2393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2394 echo yes; cat >> confdefs.h <<\EOF
2395 #define HAVE_SETRESUID_DECL 1
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2406 # and glibc has setresuid under linux but the function does
2407 # nothing until kernel 2.1.44! very dumb.
2408 echo $ac_n "checking for real setresuid $ac_c"
2409 if test "$cross_compiling" = yes; then
2410 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2416 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2420 echo yes;cat >> confdefs.h <<\EOF
2421 #define HAVE_SETRESUID 1
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2435 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2436 echo "configure:2437: checking for 8-bit clean memcmp" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test "$cross_compiling" = yes; then
2441 ac_cv_func_memcmp_clean=no
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2449 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2450 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2456 ac_cv_func_memcmp_clean=yes
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2461 ac_cv_func_memcmp_clean=no
2468 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2469 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2472 ###############################################
2473 # test for where we get crypt() from
2474 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2475 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2476 echo "configure:2477: checking for crypt in -lcrypt" >&5
2477 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 ac_save_LIBS="$LIBS"
2482 LIBS="-lcrypt $LIBS"
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 eval "ac_cv_lib_$ac_lib_var=no"
2505 LIBS="$ac_save_LIBS"
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2512 cat >> confdefs.h <<EOF
2513 #define $ac_tr_lib 1
2516 LIBS="-lcrypt $LIBS"
2519 echo "$ac_t""no" 1>&6
2522 cat >> confdefs.h <<\EOF
2523 #define HAVE_CRYPT 1
2527 if test "$ac_cv_lib_crypt_crypt" = "no" ||
2528 test "$ac_cv_lib_crypt_crypt" = ""; then
2530 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2531 echo "configure:2532: checking for crypt" >&5
2532 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* System header to define __stub macros and hopefully few prototypes,
2539 which can conflict with char crypt(); below. */
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2548 /* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551 #if defined (__stub_crypt) || defined (__stub___crypt)
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2561 eval "ac_cv_func_crypt=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_func_crypt=no"
2571 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 cat >> confdefs.h <<\EOF
2574 #define HAVE_CRYPT 1
2578 echo "$ac_t""no" 1>&6
2581 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2582 echo "configure:2583: checking for crypt in -lcrypt" >&5
2583 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 ac_save_LIBS="$LIBS"
2588 LIBS="-lcrypt $LIBS"
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 /* Override any gcc2 internal prototype to avoid an error. */
2593 /* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2603 eval "ac_cv_lib_$ac_lib_var=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2608 eval "ac_cv_lib_$ac_lib_var=no"
2611 LIBS="$ac_save_LIBS"
2614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2618 cat >> confdefs.h <<EOF
2619 #define $ac_tr_lib 1
2622 LIBS="-lcrypt $LIBS"
2625 echo "$ac_t""no" 1>&6
2629 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2630 ac_cv_func_crypt=yes
2631 cat >> confdefs.h <<\EOF
2632 #define HAVE_CRYPT 1
2641 ###############################################
2642 # test for where we get pam_authenticate() from
2643 # might need libdl for this to work
2644 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2645 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2646 echo "configure:2647: checking for -ldl" >&5
2647 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 ac_save_LIBS="$LIBS"
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2670 LIBS="$ac_save_LIBS"
2673 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2674 if test "$ac_cv_lib_dl" = yes; then
2675 cat >> confdefs.h <<\EOF
2676 #define HAVE_LIBDL 1
2684 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2685 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2686 echo "configure:2687: checking for pam_authenticate in -lpam" >&5
2687 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_save_LIBS="$LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 /* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2699 char pam_authenticate();
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2707 eval "ac_cv_lib_$ac_lib_var=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_lib_$ac_lib_var=no"
2715 LIBS="$ac_save_LIBS"
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2721 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_lib 1
2729 echo "$ac_t""no" 1>&6
2732 cat >> confdefs.h <<\EOF
2733 #define HAVE_PAM_AUTHENTICATE 1
2737 if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
2738 test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2739 # look for pam_authenticate
2740 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2741 echo "configure:2742: checking for pam_authenticate" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char pam_authenticate(); below. */
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2754 char pam_authenticate();
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2771 eval "ac_cv_func_pam_authenticate=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_func_pam_authenticate=no"
2781 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h <<\EOF
2784 #define HAVE_PAM_AUTHENTICATE 1
2788 echo "$ac_t""no" 1>&6
2791 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2792 echo "configure:2793: checking for pam_authenticate in -lpam" >&5
2793 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 ac_save_LIBS="$LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char pam_authenticate();
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 eval "ac_cv_lib_$ac_lib_var=no"
2821 LIBS="$ac_save_LIBS"
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_lib 1
2835 echo "$ac_t""no" 1>&6
2839 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2840 ac_cv_func_pam_authenticate=yes
2841 cat >> confdefs.h <<\EOF
2842 #define HAVE_PAM_AUTHENTICATE 1
2850 # The following test taken from the cvs sources
2851 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2852 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2853 # libsocket.so which has a bad implementation of gethostbyname (it
2854 # only looks in /etc/hosts), so we only look for -lsocket if we need
2856 echo $ac_n "checking for connect""... $ac_c" 1>&6
2857 echo "configure:2858: checking for connect" >&5
2858 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 /* System header to define __stub macros and hopefully few prototypes,
2865 which can conflict with char connect(); below. */
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2874 /* The GNU C library defines this for functions which it implements
2875 to always fail with ENOSYS. Some functions are actually named
2876 something starting with __ and the normal name is an alias. */
2877 #if defined (__stub_connect) || defined (__stub___connect)
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2887 eval "ac_cv_func_connect=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 eval "ac_cv_func_connect=no"
2897 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2901 echo "$ac_t""no" 1>&6
2904 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
2905 echo "configure:2906: checking for printf in -lnsl_s" >&5
2906 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
2907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 ac_save_LIBS="$LIBS"
2911 LIBS="-lnsl_s $LIBS"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 /* Override any gcc2 internal prototype to avoid an error. */
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2926 eval "ac_cv_lib_$ac_lib_var=yes"
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2931 eval "ac_cv_lib_$ac_lib_var=no"
2934 LIBS="$ac_save_LIBS"
2937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2938 echo "$ac_t""yes" 1>&6
2939 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_lib 1
2945 LIBS="-lnsl_s $LIBS"
2948 echo "$ac_t""no" 1>&6
2954 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
2955 echo "configure:2956: checking for printf in -lnsl" >&5
2956 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
2957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 ac_save_LIBS="$LIBS"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2976 eval "ac_cv_lib_$ac_lib_var=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 eval "ac_cv_lib_$ac_lib_var=no"
2984 LIBS="$ac_save_LIBS"
2987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2988 echo "$ac_t""yes" 1>&6
2989 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2990 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2991 cat >> confdefs.h <<EOF
2992 #define $ac_tr_lib 1
2998 echo "$ac_t""no" 1>&6
3004 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3005 echo "configure:3006: checking for connect in -lsocket" >&5
3006 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 ac_save_LIBS="$LIBS"
3011 LIBS="-lsocket $LIBS"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3026 eval "ac_cv_lib_$ac_lib_var=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 eval "ac_cv_lib_$ac_lib_var=no"
3034 LIBS="$ac_save_LIBS"
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3041 cat >> confdefs.h <<EOF
3042 #define $ac_tr_lib 1
3045 LIBS="-lsocket $LIBS"
3048 echo "$ac_t""no" 1>&6
3054 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3055 echo "configure:3056: checking for connect in -linet" >&5
3056 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 ac_save_LIBS="$LIBS"
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3076 eval "ac_cv_lib_$ac_lib_var=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_lib_$ac_lib_var=no"
3084 LIBS="$ac_save_LIBS"
3087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3091 cat >> confdefs.h <<EOF
3092 #define $ac_tr_lib 1
3098 echo "$ac_t""no" 1>&6
3102 if test "$ac_cv_lib_socket_connect" = "yes" ||
3103 test "$ac_cv_lib_inet_connect" = "yes"; then
3104 ac_cv_func_connect=yes
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_CONNECT 1
3114 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_func" >&5
3118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char $ac_func(); below. */
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3147 eval "ac_cv_func_$ac_func=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 eval "ac_cv_func_$ac_func=no"
3157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3160 cat >> confdefs.h <<EOF
3161 #define $ac_tr_func 1
3165 echo "$ac_t""no" 1>&6
3169 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_func" >&5
3173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* System header to define __stub macros and hopefully few prototypes,
3180 which can conflict with char $ac_func(); below. */
3182 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3189 /* The GNU C library defines this for functions which it implements
3190 to always fail with ENOSYS. Some functions are actually named
3191 something starting with __ and the normal name is an alias. */
3192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3202 eval "ac_cv_func_$ac_func=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_func_$ac_func=no"
3212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3213 echo "$ac_t""yes" 1>&6
3214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3215 cat >> confdefs.h <<EOF
3216 #define $ac_tr_func 1
3220 echo "$ac_t""no" 1>&6
3224 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_func" >&5
3228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char $ac_func(); below. */
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3244 /* The GNU C library defines this for functions which it implements
3245 to always fail with ENOSYS. Some functions are actually named
3246 something starting with __ and the normal name is an alias. */
3247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3257 eval "ac_cv_func_$ac_func=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_func_$ac_func=no"
3267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3270 cat >> confdefs.h <<EOF
3271 #define $ac_tr_func 1
3275 echo "$ac_t""no" 1>&6
3279 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_func" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char $ac_func(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3312 eval "ac_cv_func_$ac_func=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_func_$ac_func=no"
3322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_func 1
3330 echo "$ac_t""no" 1>&6
3334 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_func" >&5
3338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* System header to define __stub macros and hopefully few prototypes,
3345 which can conflict with char $ac_func(); below. */
3347 /* Override any gcc2 internal prototype to avoid an error. */
3348 /* We use char because int might match the return type of a gcc2
3349 builtin and then its argument prototype would still apply. */
3354 /* The GNU C library defines this for functions which it implements
3355 to always fail with ENOSYS. Some functions are actually named
3356 something starting with __ and the normal name is an alias. */
3357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3367 eval "ac_cv_func_$ac_func=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_func_$ac_func=no"
3377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3378 echo "$ac_t""yes" 1>&6
3379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3380 cat >> confdefs.h <<EOF
3381 #define $ac_tr_func 1
3385 echo "$ac_t""no" 1>&6
3389 for ac_func in setuidx setgroups mktime rename ftruncate
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char $ac_func(); below. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3409 /* The GNU C library defines this for functions which it implements
3410 to always fail with ENOSYS. Some functions are actually named
3411 something starting with __ and the normal name is an alias. */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3422 eval "ac_cv_func_$ac_func=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_func_$ac_func=no"
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435 cat >> confdefs.h <<EOF
3436 #define $ac_tr_func 1
3440 echo "$ac_t""no" 1>&6
3444 for ac_func in set_auth_parameters atexit grantpt getspnam dup2
3446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_func" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char $ac_func(); below. */
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3477 eval "ac_cv_func_$ac_func=yes"
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 eval "ac_cv_func_$ac_func=no"
3487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3490 cat >> confdefs.h <<EOF
3491 #define $ac_tr_func 1
3495 echo "$ac_t""no" 1>&6
3499 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_func" >&5
3503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* System header to define __stub macros and hopefully few prototypes,
3510 which can conflict with char $ac_func(); below. */
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3519 /* The GNU C library defines this for functions which it implements
3520 to always fail with ENOSYS. Some functions are actually named
3521 something starting with __ and the normal name is an alias. */
3522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3532 eval "ac_cv_func_$ac_func=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_func_$ac_func=no"
3542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3545 cat >> confdefs.h <<EOF
3546 #define $ac_tr_func 1
3550 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for long long ... $ac_c"
3556 if test "$cross_compiling" = yes; then
3557 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3563 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3567 echo yes;cat >> confdefs.h <<\EOF
3568 #define HAVE_LONGLONG 1
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3581 echo $ac_n "checking for off64_t ... $ac_c"
3582 if test "$cross_compiling" = yes; then
3583 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3589 #include <sys/stat.h>
3590 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3594 echo yes;cat >> confdefs.h <<\EOF
3595 #define HAVE_OFF64_T 1
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3608 echo $ac_n "checking for union semun ... $ac_c"
3609 if test "$cross_compiling" = yes; then
3610 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3616 #include <sys/types.h>
3617 #include <sys/ipc.h>
3618 #include <sys/sem.h>
3619 main() { union semun ss; exit(0); }
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3623 echo yes;cat >> confdefs.h <<\EOF
3624 #define HAVE_UNION_SEMUN 1
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3637 echo $ac_n "checking for unsigned char ... $ac_c"
3638 if test "$cross_compiling" = yes; then
3639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3645 main() { char c; c=250; exit((c > 0)?0:1); }
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3649 echo yes;cat >> confdefs.h <<\EOF
3650 #define HAVE_UNSIGNED_CHAR 1
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3663 echo $ac_n "checking for sin_len in sock ... $ac_c"
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668 #include <sys/socket.h>
3669 #include <netinet/in.h>
3671 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 echo yes;cat >> confdefs.h <<\EOF
3677 #define HAVE_SOCK_SIN_LEN 1
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3688 echo $ac_n "checking for __FILE__ macro ... $ac_c"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3694 printf("%s\n", __FILE__);
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 echo yes;cat >> confdefs.h <<\EOF
3700 #define HAVE_FILE_MACRO 1
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3711 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3717 printf("%s\n", __FUNCTION__);
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3722 echo yes;cat >> confdefs.h <<\EOF
3723 #define HAVE_FUNCTION_MACRO 1
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3734 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3735 if test "$cross_compiling" = yes; then
3736 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3742 #include <sys/time.h>
3744 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3748 echo yes;cat >> confdefs.h <<\EOF
3749 #define HAVE_GETTIMEOFDAY_TZ 1
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3763 echo $ac_n "checking for broken readdir ... $ac_c"
3764 if test "$cross_compiling" = yes; then
3765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 #include <sys/types.h>
3772 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3773 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3774 di->d_name[0] == 0) exit(0); exit(1);}
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3778 echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3779 #define HAVE_BROKEN_READDIR 1
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3792 echo $ac_n "checking for utimbuf ... $ac_c"
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3799 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 echo yes;cat >> confdefs.h <<\EOF
3805 #define HAVE_UTIMBUF 1
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3816 echo $ac_n "checking for ftruncate extend ... $ac_c"
3817 if test "$cross_compiling" = yes; then
3818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include "tests/ftruncate.c"
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3827 echo yes;cat >> confdefs.h <<\EOF
3828 #define HAVE_FTRUNCATE_EXTEND 1
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3841 echo $ac_n "checking for broken getgroups ... $ac_c"
3842 if test "$cross_compiling" = yes; then
3843 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 #include "tests/getgroups.c"
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3852 echo yes;cat >> confdefs.h <<\EOF
3853 #define HAVE_BROKEN_GETGROUPS 1
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3867 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
3868 if test "$cross_compiling" = yes; then
3869 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3876 #include <sys/types.h>
3877 #include <netinet/in.h>
3878 #include <arpa/inet.h>
3879 main() { struct in_addr ip; ip.s_addr = 0x12345678;
3880 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
3881 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3886 echo yes;cat >> confdefs.h <<\EOF
3887 #define REPLACE_INET_NTOA 1
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3900 echo $ac_n "checking for root ... $ac_c"
3901 if test "$cross_compiling" = yes; then
3902 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 main() { exit(getuid() != 0); }
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3911 echo yes;cat >> confdefs.h <<\EOF
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3919 echo WARNING: running as non-root will disable some tests;
3926 echo $ac_n "checking for netmask ifconf ... $ac_c"
3927 if test "$cross_compiling" = yes; then
3928 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3934 #define HAVE_NETMASK_IFCONF 1
3936 #include "lib/netmask.c"
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3940 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3941 #define HAVE_NETMASK_IFCONF 1
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3954 if test $netmask = no; then
3955 echo $ac_n "checking for netmask ifreq ... $ac_c"
3956 if test "$cross_compiling" = yes; then
3957 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3963 #define HAVE_NETMASK_IFREQ 1
3965 #include "lib/netmask.c"
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3969 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3970 #define HAVE_NETMASK_IFREQ 1
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3984 if test $netmask = no; then
3985 echo $ac_n "checking for netmask AIX ... $ac_c"
3986 if test "$cross_compiling" = yes; then
3987 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3993 #define HAVE_NETMASK_AIX 1
3995 #include "lib/netmask.c"
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3999 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
4000 #define HAVE_NETMASK_AIX 1
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4014 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
4015 if test "$cross_compiling" = yes; then
4016 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include "tests/trapdoor.c"
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 echo yes;cat >> confdefs.h <<\EOF
4031 #define HAVE_TRAPDOOR_UID 1
4039 echo $ac_n "checking for shared mmap ... $ac_c"
4040 if test "$cross_compiling" = yes; then
4041 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include "tests/shared_mmap.c"
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4050 echo yes;cat >> confdefs.h <<\EOF
4051 #define HAVE_SHARED_MMAP 1
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4064 echo $ac_n "checking for fcntl locking ... $ac_c"
4065 if test "$cross_compiling" = yes; then
4066 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 #include "tests/fcntl_lock.c"
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4075 echo yes;cat >> confdefs.h <<\EOF
4076 #define HAVE_FCNTL_LOCK 1
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4089 echo $ac_n "checking for sysv ipc ... $ac_c"
4090 if test "$cross_compiling" = yes; then
4091 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include "tests/sysv_ipc.c"
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4100 echo yes;cat >> confdefs.h <<\EOF
4101 #define HAVE_SYSV_IPC 1
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4114 #################################################
4115 # check for the AFS filesystem