we have to have the test for -lsocket before the test for some
[Samba.git] / source3 / configure
blob27e0f6de4062d9791416d916a7ae6beda0de9c1c
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-afs Include AFS support
16 --without-afs Don't include AFS support (default)"
17 ac_help="$ac_help
18 --with-dfs Include DFS support
19 --without-dfs Don't include DFS support (default)"
20 ac_help="$ac_help
21 --with-automount Include AUTOMOUNT support
22 --without-automount Don't include AUTOMOUNT support (default)"
23 ac_help="$ac_help
24 --with-ldap Include LDAP support
25 --without-ldap Don't include LDAP support (default)"
26 ac_help="$ac_help
27 --with-nisplus Include NISPLUS password database support
28 --without-nisplus Don't include NISPLUS password database support (default)"
29 ac_help="$ac_help
30 --with-nisplus-home Include NISPLUS_HOME support
31 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
32 ac_help="$ac_help
33 --with-ssl Include SSL support
34 --without-ssl Don't include SSL support (default)"
35 ac_help="$ac_help
36 --with-mmap Include experimental MMAP support
37 --without-mmap Don't include MMAP support (default)"
38 ac_help="$ac_help
39 --with-syslog Include experimental SYSLOG support
40 --without-syslog Don't include SYSLOG support (default)"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
45 build=NONE
46 cache_file=./config.cache
47 exec_prefix=NONE
48 host=NONE
49 no_create=
50 nonopt=NONE
51 no_recursion=
52 prefix=NONE
53 program_prefix=NONE
54 program_suffix=NONE
55 program_transform_name=s,x,x,
56 silent=
57 site=
58 srcdir=
59 target=NONE
60 verbose=
61 x_includes=NONE
62 x_libraries=NONE
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
77 subdirs=
78 MFLAGS= MAKEFLAGS=
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
82 ac_prev=
83 for ac_option
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
98 # Accept the important Cygnus configure options, so we can diagnose typos.
100 case "$ac_option" in
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
197 cat << EOF
198 Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
213 exit 0 ;;
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 ac_prev=srcdir ;;
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
354 ac_prev=target ;;
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 verbose=yes ;;
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.12"
363 exit 0 ;;
365 -with-* | --with-*)
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
387 --x)
388 # Obsolete; use --with-x.
389 with_x=yes ;;
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 nonopt="$ac_option"
418 esac
419 done
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436 exec 6>/dev/null
437 else
438 exec 6>&1
440 exec 5>./config.log
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
452 case "$ac_arg" in
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 esac
461 done
463 # NLS nuisances.
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=byteorder.h
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
486 ac_prog=$0
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 srcdir=$ac_confdir
490 if test ! -r $srcdir/$ac_unique_file; then
491 srcdir=..
493 else
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 else
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 else
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
518 done
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539 ' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
543 else
544 ac_n= ac_c='\c' ac_t=
550 # Extract the first word of "gcc", so it can be a program name with args.
551 set dummy gcc; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 echo "configure:554: checking for $ac_word" >&5
554 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
556 else
557 if test -n "$CC"; then
558 ac_cv_prog_CC="$CC" # Let the user override the test.
559 else
560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
561 for ac_dir in $PATH; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
564 ac_cv_prog_CC="gcc"
565 break
567 done
568 IFS="$ac_save_ifs"
571 CC="$ac_cv_prog_CC"
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
574 else
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc; ac_word=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585 else
586 if test -n "$CC"; then
587 ac_cv_prog_CC="$CC" # Let the user override the test.
588 else
589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
590 ac_prog_rejected=no
591 for ac_dir in $PATH; do
592 test -z "$ac_dir" && ac_dir=.
593 if test -f $ac_dir/$ac_word; then
594 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
595 ac_prog_rejected=yes
596 continue
598 ac_cv_prog_CC="cc"
599 break
601 done
602 IFS="$ac_save_ifs"
603 if test $ac_prog_rejected = yes; then
604 # We found a bogon in the path, so make sure we never use it.
605 set dummy $ac_cv_prog_CC
606 shift
607 if test $# -gt 0; then
608 # We chose a different compiler from the bogus one.
609 # However, it has the same basename, so the bogon will be chosen
610 # first if we set CC to just the basename; use the full file name.
611 shift
612 set dummy "$ac_dir/$ac_word" "$@"
613 shift
614 ac_cv_prog_CC="$@"
619 CC="$ac_cv_prog_CC"
620 if test -n "$CC"; then
621 echo "$ac_t""$CC" 1>&6
622 else
623 echo "$ac_t""no" 1>&6
626 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
629 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
630 echo "configure:631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
632 ac_ext=c
633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
634 ac_cpp='$CPP $CPPFLAGS'
635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
636 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
637 cross_compiling=$ac_cv_prog_cc_cross
639 cat > conftest.$ac_ext <<EOF
640 #line 641 "configure"
641 #include "confdefs.h"
642 main(){return(0);}
644 if { (eval echo configure:645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
645 ac_cv_prog_cc_works=yes
646 # If we can't run a trivial program, we are probably using a cross compiler.
647 if (./conftest; exit) 2>/dev/null; then
648 ac_cv_prog_cc_cross=no
649 else
650 ac_cv_prog_cc_cross=yes
652 else
653 echo "configure: failed program was:" >&5
654 cat conftest.$ac_ext >&5
655 ac_cv_prog_cc_works=no
657 rm -fr conftest*
659 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
660 if test $ac_cv_prog_cc_works = no; then
661 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
664 echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
665 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
666 cross_compiling=$ac_cv_prog_cc_cross
668 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
669 echo "configure:670: checking whether we are using GNU C" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672 else
673 cat > conftest.c <<EOF
674 #ifdef __GNUC__
675 yes;
676 #endif
678 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
679 ac_cv_prog_gcc=yes
680 else
681 ac_cv_prog_gcc=no
685 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
687 if test $ac_cv_prog_gcc = yes; then
688 GCC=yes
689 ac_test_CFLAGS="${CFLAGS+set}"
690 ac_save_CFLAGS="$CFLAGS"
691 CFLAGS=
692 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${CC-cc} accepts -g" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
696 else
697 echo 'void f(){}' > conftest.c
698 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
699 ac_cv_prog_cc_g=yes
700 else
701 ac_cv_prog_cc_g=no
703 rm -f conftest*
707 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
708 if test "$ac_test_CFLAGS" = set; then
709 CFLAGS="$ac_save_CFLAGS"
710 elif test $ac_cv_prog_cc_g = yes; then
711 CFLAGS="-g -O2"
712 else
713 CFLAGS="-O2"
715 else
716 GCC=
717 test "${CFLAGS+set}" = set || CFLAGS="-g"
720 ac_aux_dir=
721 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
722 if test -f $ac_dir/install-sh; then
723 ac_aux_dir=$ac_dir
724 ac_install_sh="$ac_aux_dir/install-sh -c"
725 break
726 elif test -f $ac_dir/install.sh; then
727 ac_aux_dir=$ac_dir
728 ac_install_sh="$ac_aux_dir/install.sh -c"
729 break
731 done
732 if test -z "$ac_aux_dir"; then
733 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
735 ac_config_guess=$ac_aux_dir/config.guess
736 ac_config_sub=$ac_aux_dir/config.sub
737 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
739 # Find a good install program. We prefer a C program (faster),
740 # so one script is as good as another. But avoid the broken or
741 # incompatible versions:
742 # SysV /etc/install, /usr/sbin/install
743 # SunOS /usr/etc/install
744 # IRIX /sbin/install
745 # AIX /bin/install
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
758 case "$ac_dir/" in
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 for ac_prog in ginstall installbsd scoinst install; do
763 if test -f $ac_dir/$ac_prog; then
764 if test $ac_prog = install &&
765 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
766 # AIX install. It has an incompatible calling convention.
767 # OSF/1 installbsd also uses dspmsg, but is usable.
769 else
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
771 break 2
774 done
776 esac
777 done
778 IFS="$ac_save_IFS"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
783 else
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
800 for ac_prog in mawk gawk nawk awk
802 # Extract the first word of "$ac_prog", so it can be a program name with args.
803 set dummy $ac_prog; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$AWK"; then
810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
813 for ac_dir in $PATH; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 ac_cv_prog_AWK="$ac_prog"
817 break
819 done
820 IFS="$ac_save_ifs"
823 AWK="$ac_cv_prog_AWK"
824 if test -n "$AWK"; then
825 echo "$ac_t""$AWK" 1>&6
826 else
827 echo "$ac_t""no" 1>&6
830 test -n "$AWK" && break
831 done
835 # Do some error checking and defaulting for the host and target type.
836 # The inputs are:
837 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
839 # The rules are:
840 # 1. You are not allowed to specify --host, --target, and nonopt at the
841 # same time.
842 # 2. Host defaults to nonopt.
843 # 3. If nonopt is not specified, then host defaults to the current host,
844 # as determined by config.guess.
845 # 4. Target and build default to nonopt.
846 # 5. If nonopt is not specified, then target and build default to host.
848 # The aliases save the names the user supplied, while $host etc.
849 # will get canonicalized.
850 case $host---$target---$nonopt in
851 NONE---*---* | *---NONE---* | *---*---NONE) ;;
852 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
853 esac
856 # Make sure we can run config.sub.
857 if $ac_config_sub sun4 >/dev/null 2>&1; then :
858 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
861 echo $ac_n "checking host system type""... $ac_c" 1>&6
862 echo "configure:863: checking host system type" >&5
864 host_alias=$host
865 case "$host_alias" in
866 NONE)
867 case $nonopt in
868 NONE)
869 if host_alias=`$ac_config_guess`; then :
870 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
871 fi ;;
872 *) host_alias=$nonopt ;;
873 esac ;;
874 esac
876 host=`$ac_config_sub $host_alias`
877 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
878 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
879 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
880 echo "$ac_t""$host" 1>&6
882 echo $ac_n "checking target system type""... $ac_c" 1>&6
883 echo "configure:884: checking target system type" >&5
885 target_alias=$target
886 case "$target_alias" in
887 NONE)
888 case $nonopt in
889 NONE) target_alias=$host_alias ;;
890 *) target_alias=$nonopt ;;
891 esac ;;
892 esac
894 target=`$ac_config_sub $target_alias`
895 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
896 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
897 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
898 echo "$ac_t""$target" 1>&6
900 echo $ac_n "checking build system type""... $ac_c" 1>&6
901 echo "configure:902: checking build system type" >&5
903 build_alias=$build
904 case "$build_alias" in
905 NONE)
906 case $nonopt in
907 NONE) build_alias=$host_alias ;;
908 *) build_alias=$nonopt ;;
909 esac ;;
910 esac
912 build=`$ac_config_sub $build_alias`
913 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
914 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
915 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
916 echo "$ac_t""$build" 1>&6
918 test "$host_alias" != "$target_alias" &&
919 test "$program_prefix$program_suffix$program_transform_name" = \
920 NONENONEs,x,x, &&
921 program_prefix=${target_alias}-
923 case "$host_os" in
924 *linux*) cat >> confdefs.h <<\EOF
925 #define LINUX 1
928 *solaris*) cat >> confdefs.h <<\EOF
929 #define SUNOS5 1
932 *sunos*) cat >> confdefs.h <<\EOF
933 #define SUNOS4 1
936 *irix*) cat >> confdefs.h <<\EOF
937 #define IRIX 1
940 *aix*) cat >> confdefs.h <<\EOF
941 #define AIX 1
944 *hpux*) cat >> confdefs.h <<\EOF
945 #define HPUX 1
948 *qnx*) cat >> confdefs.h <<\EOF
949 #define QNX 1
952 *osf1*) cat >> confdefs.h <<\EOF
953 #define OSF1 1
956 *sco*) cat >> confdefs.h <<\EOF
957 #define SCO 1
960 *next2*) cat >> confdefs.h <<\EOF
961 #define NEXT2 1
964 esac
966 echo $ac_n "checking for inline""... $ac_c" 1>&6
967 echo "configure:968: checking for inline" >&5
968 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 ac_cv_c_inline=no
972 for ac_kw in inline __inline__ __inline; do
973 cat > conftest.$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
977 int main() {
978 } $ac_kw foo() {
979 ; return 0; }
981 if { (eval echo configure:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
982 rm -rf conftest*
983 ac_cv_c_inline=$ac_kw; break
984 else
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
988 rm -f conftest*
989 done
993 echo "$ac_t""$ac_cv_c_inline" 1>&6
994 case "$ac_cv_c_inline" in
995 inline | yes) ;;
996 no) cat >> confdefs.h <<\EOF
997 #define inline
1000 *) cat >> confdefs.h <<EOF
1001 #define inline $ac_cv_c_inline
1004 esac
1006 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1007 echo "configure:1008: checking how to run the C preprocessor" >&5
1008 # On Suns, sometimes $CPP names a directory.
1009 if test -n "$CPP" && test -d "$CPP"; then
1010 CPP=
1012 if test -z "$CPP"; then
1013 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1015 else
1016 # This must be in double quotes, not single quotes, because CPP may get
1017 # substituted into the Makefile and "${CC-cc}" will confuse make.
1018 CPP="${CC-cc} -E"
1019 # On the NeXT, cc -E runs the code through the compiler's parser,
1020 # not just through cpp.
1021 cat > conftest.$ac_ext <<EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1024 #include <assert.h>
1025 Syntax Error
1027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1028 { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1029 ac_err=`grep -v '^ *+' conftest.out`
1030 if test -z "$ac_err"; then
1032 else
1033 echo "$ac_err" >&5
1034 echo "configure: failed program was:" >&5
1035 cat conftest.$ac_ext >&5
1036 rm -rf conftest*
1037 CPP="${CC-cc} -E -traditional-cpp"
1038 cat > conftest.$ac_ext <<EOF
1039 #line 1040 "configure"
1040 #include "confdefs.h"
1041 #include <assert.h>
1042 Syntax Error
1044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1045 { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1046 ac_err=`grep -v '^ *+' conftest.out`
1047 if test -z "$ac_err"; then
1049 else
1050 echo "$ac_err" >&5
1051 echo "configure: failed program was:" >&5
1052 cat conftest.$ac_ext >&5
1053 rm -rf conftest*
1054 CPP=/lib/cpp
1056 rm -f conftest*
1058 rm -f conftest*
1059 ac_cv_prog_CPP="$CPP"
1061 CPP="$ac_cv_prog_CPP"
1062 else
1063 ac_cv_prog_CPP="$CPP"
1065 echo "$ac_t""$CPP" 1>&6
1067 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1068 echo "configure:1069: checking for ANSI C header files" >&5
1069 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1075 #include <stdlib.h>
1076 #include <stdarg.h>
1077 #include <string.h>
1078 #include <float.h>
1080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081 { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082 ac_err=`grep -v '^ *+' conftest.out`
1083 if test -z "$ac_err"; then
1084 rm -rf conftest*
1085 ac_cv_header_stdc=yes
1086 else
1087 echo "$ac_err" >&5
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1090 rm -rf conftest*
1091 ac_cv_header_stdc=no
1093 rm -f conftest*
1095 if test $ac_cv_header_stdc = yes; then
1096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <string.h>
1102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1103 egrep "memchr" >/dev/null 2>&1; then
1105 else
1106 rm -rf conftest*
1107 ac_cv_header_stdc=no
1109 rm -f conftest*
1113 if test $ac_cv_header_stdc = yes; then
1114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1118 #include <stdlib.h>
1120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1121 egrep "free" >/dev/null 2>&1; then
1123 else
1124 rm -rf conftest*
1125 ac_cv_header_stdc=no
1127 rm -f conftest*
1131 if test $ac_cv_header_stdc = yes; then
1132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1133 if test "$cross_compiling" = yes; then
1135 else
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139 #include <ctype.h>
1140 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1141 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1143 int main () { int i; for (i = 0; i < 256; i++)
1144 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1145 exit (0); }
1148 if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1149 then
1151 else
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1154 rm -fr conftest*
1155 ac_cv_header_stdc=no
1157 rm -fr conftest*
1163 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1164 if test $ac_cv_header_stdc = yes; then
1165 cat >> confdefs.h <<\EOF
1166 #define STDC_HEADERS 1
1171 ac_header_dirent=no
1172 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1175 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_hdr that defines DIR" >&5
1177 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 #include <sys/types.h>
1184 #include <$ac_hdr>
1185 int main() {
1186 DIR *dirp = 0;
1187 ; return 0; }
1189 if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1190 rm -rf conftest*
1191 eval "ac_cv_header_dirent_$ac_safe=yes"
1192 else
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1195 rm -rf conftest*
1196 eval "ac_cv_header_dirent_$ac_safe=no"
1198 rm -f conftest*
1200 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1203 cat >> confdefs.h <<EOF
1204 #define $ac_tr_hdr 1
1206 ac_header_dirent=$ac_hdr; break
1207 else
1208 echo "$ac_t""no" 1>&6
1210 done
1211 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1212 if test $ac_header_dirent = dirent.h; then
1213 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1214 echo "configure:1215: checking for opendir in -ldir" >&5
1215 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 ac_save_LIBS="$LIBS"
1220 LIBS="-ldir $LIBS"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1227 char opendir();
1229 int main() {
1230 opendir()
1231 ; return 0; }
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1234 rm -rf conftest*
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1236 else
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 rm -rf conftest*
1240 eval "ac_cv_lib_$ac_lib_var=no"
1242 rm -f conftest*
1243 LIBS="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 LIBS="$LIBS -ldir"
1249 else
1250 echo "$ac_t""no" 1>&6
1253 else
1254 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1255 echo "configure:1256: checking for opendir in -lx" >&5
1256 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260 ac_save_LIBS="$LIBS"
1261 LIBS="-lx $LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1268 char opendir();
1270 int main() {
1271 opendir()
1272 ; return 0; }
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 rm -rf conftest*
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 eval "ac_cv_lib_$ac_lib_var=no"
1283 rm -f conftest*
1284 LIBS="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 LIBS="$LIBS -lx"
1290 else
1291 echo "$ac_t""no" 1>&6
1296 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether time.h and sys/time.h may both be included" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <sys/types.h>
1305 #include <sys/time.h>
1306 #include <time.h>
1307 int main() {
1308 struct tm *tp;
1309 ; return 0; }
1311 if { (eval echo configure:1312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1312 rm -rf conftest*
1313 ac_cv_header_time=yes
1314 else
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1317 rm -rf conftest*
1318 ac_cv_header_time=no
1320 rm -f conftest*
1323 echo "$ac_t""$ac_cv_header_time" 1>&6
1324 if test $ac_cv_header_time = yes; then
1325 cat >> confdefs.h <<\EOF
1326 #define TIME_WITH_SYS_TIME 1
1331 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1332 echo "configure:1333: checking for sys/wait.h that is POSIX.1 compatible" >&5
1333 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 #include <sys/types.h>
1340 #include <sys/wait.h>
1341 #ifndef WEXITSTATUS
1342 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1343 #endif
1344 #ifndef WIFEXITED
1345 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1346 #endif
1347 int main() {
1348 int s;
1349 wait (&s);
1350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1351 ; return 0; }
1353 if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354 rm -rf conftest*
1355 ac_cv_header_sys_wait_h=yes
1356 else
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 rm -rf conftest*
1360 ac_cv_header_sys_wait_h=no
1362 rm -f conftest*
1365 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1366 if test $ac_cv_header_sys_wait_h = yes; then
1367 cat >> confdefs.h <<\EOF
1368 #define HAVE_SYS_WAIT_H 1
1373 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_hdr" >&5
1378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380 else
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <$ac_hdr>
1386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1387 { (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1388 ac_err=`grep -v '^ *+' conftest.out`
1389 if test -z "$ac_err"; then
1390 rm -rf conftest*
1391 eval "ac_cv_header_$ac_safe=yes"
1392 else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 eval "ac_cv_header_$ac_safe=no"
1399 rm -f conftest*
1401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1402 echo "$ac_t""yes" 1>&6
1403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1404 cat >> confdefs.h <<EOF
1405 #define $ac_tr_hdr 1
1408 else
1409 echo "$ac_t""no" 1>&6
1411 done
1413 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h net/if.h
1415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_hdr" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <$ac_hdr>
1426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1427 { (eval echo configure:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1428 ac_err=`grep -v '^ *+' conftest.out`
1429 if test -z "$ac_err"; then
1430 rm -rf conftest*
1431 eval "ac_cv_header_$ac_safe=yes"
1432 else
1433 echo "$ac_err" >&5
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1436 rm -rf conftest*
1437 eval "ac_cv_header_$ac_safe=no"
1439 rm -f conftest*
1441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1444 cat >> confdefs.h <<EOF
1445 #define $ac_tr_hdr 1
1448 else
1449 echo "$ac_t""no" 1>&6
1451 done
1453 for ac_hdr in compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h
1455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_hdr" >&5
1458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <$ac_hdr>
1466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1467 { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1468 ac_err=`grep -v '^ *+' conftest.out`
1469 if test -z "$ac_err"; then
1470 rm -rf conftest*
1471 eval "ac_cv_header_$ac_safe=yes"
1472 else
1473 echo "$ac_err" >&5
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_header_$ac_safe=no"
1479 rm -f conftest*
1481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1484 cat >> confdefs.h <<EOF
1485 #define $ac_tr_hdr 1
1488 else
1489 echo "$ac_t""no" 1>&6
1491 done
1493 for ac_hdr in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h
1495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_hdr" >&5
1498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <$ac_hdr>
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out`
1509 if test -z "$ac_err"; then
1510 rm -rf conftest*
1511 eval "ac_cv_header_$ac_safe=yes"
1512 else
1513 echo "$ac_err" >&5
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_header_$ac_safe=no"
1519 rm -f conftest*
1521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1524 cat >> confdefs.h <<EOF
1525 #define $ac_tr_hdr 1
1528 else
1529 echo "$ac_t""no" 1>&6
1531 done
1533 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_hdr" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1544 #include <$ac_hdr>
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out`
1549 if test -z "$ac_err"; then
1550 rm -rf conftest*
1551 eval "ac_cv_header_$ac_safe=yes"
1552 else
1553 echo "$ac_err" >&5
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1556 rm -rf conftest*
1557 eval "ac_cv_header_$ac_safe=no"
1559 rm -f conftest*
1561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1562 echo "$ac_t""yes" 1>&6
1563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1564 cat >> confdefs.h <<EOF
1565 #define $ac_tr_hdr 1
1568 else
1569 echo "$ac_t""no" 1>&6
1571 done
1573 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_hdr" >&5
1578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580 else
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 #include <$ac_hdr>
1586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err=`grep -v '^ *+' conftest.out`
1589 if test -z "$ac_err"; then
1590 rm -rf conftest*
1591 eval "ac_cv_header_$ac_safe=yes"
1592 else
1593 echo "$ac_err" >&5
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 eval "ac_cv_header_$ac_safe=no"
1599 rm -f conftest*
1601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1602 echo "$ac_t""yes" 1>&6
1603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1604 cat >> confdefs.h <<EOF
1605 #define $ac_tr_hdr 1
1608 else
1609 echo "$ac_t""no" 1>&6
1611 done
1613 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_hdr" >&5
1618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <$ac_hdr>
1626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1627 { (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1628 ac_err=`grep -v '^ *+' conftest.out`
1629 if test -z "$ac_err"; then
1630 rm -rf conftest*
1631 eval "ac_cv_header_$ac_safe=yes"
1632 else
1633 echo "$ac_err" >&5
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 rm -rf conftest*
1637 eval "ac_cv_header_$ac_safe=no"
1639 rm -f conftest*
1641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1644 cat >> confdefs.h <<EOF
1645 #define $ac_tr_hdr 1
1648 else
1649 echo "$ac_t""no" 1>&6
1651 done
1654 echo $ac_n "checking size of int""... $ac_c" 1>&6
1655 echo "configure:1656: checking size of int" >&5
1656 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659 if test "$cross_compiling" = yes; then
1660 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1661 else
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1665 #include <stdio.h>
1666 main()
1668 FILE *f=fopen("conftestval", "w");
1669 if (!f) exit(1);
1670 fprintf(f, "%d\n", sizeof(int));
1671 exit(0);
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1675 then
1676 ac_cv_sizeof_int=`cat conftestval`
1677 else
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 rm -fr conftest*
1681 ac_cv_sizeof_int=0
1683 rm -fr conftest*
1687 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1688 cat >> confdefs.h <<EOF
1689 #define SIZEOF_INT $ac_cv_sizeof_int
1693 echo $ac_n "checking size of long""... $ac_c" 1>&6
1694 echo "configure:1695: checking size of long" >&5
1695 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1697 else
1698 if test "$cross_compiling" = yes; then
1699 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1700 else
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <stdio.h>
1705 main()
1707 FILE *f=fopen("conftestval", "w");
1708 if (!f) exit(1);
1709 fprintf(f, "%d\n", sizeof(long));
1710 exit(0);
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1714 then
1715 ac_cv_sizeof_long=`cat conftestval`
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -fr conftest*
1720 ac_cv_sizeof_long=0
1722 rm -fr conftest*
1726 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1727 cat >> confdefs.h <<EOF
1728 #define SIZEOF_LONG $ac_cv_sizeof_long
1732 echo $ac_n "checking size of short""... $ac_c" 1>&6
1733 echo "configure:1734: checking size of short" >&5
1734 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 if test "$cross_compiling" = yes; then
1738 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1739 else
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 #include <stdio.h>
1744 main()
1746 FILE *f=fopen("conftestval", "w");
1747 if (!f) exit(1);
1748 fprintf(f, "%d\n", sizeof(short));
1749 exit(0);
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1753 then
1754 ac_cv_sizeof_short=`cat conftestval`
1755 else
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 rm -fr conftest*
1759 ac_cv_sizeof_short=0
1761 rm -fr conftest*
1765 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1766 cat >> confdefs.h <<EOF
1767 #define SIZEOF_SHORT $ac_cv_sizeof_short
1772 echo $ac_n "checking for working const""... $ac_c" 1>&6
1773 echo "configure:1774: checking for working const" >&5
1774 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1781 int main() {
1783 /* Ultrix mips cc rejects this. */
1784 typedef int charset[2]; const charset x;
1785 /* SunOS 4.1.1 cc rejects this. */
1786 char const *const *ccp;
1787 char **p;
1788 /* NEC SVR4.0.2 mips cc rejects this. */
1789 struct point {int x, y;};
1790 static struct point const zero = {0,0};
1791 /* AIX XL C 1.02.0.0 rejects this.
1792 It does not let you subtract one const X* pointer from another in an arm
1793 of an if-expression whose if-part is not a constant expression */
1794 const char *g = "string";
1795 ccp = &g + (g ? g-g : 0);
1796 /* HPUX 7.0 cc rejects these. */
1797 ++ccp;
1798 p = (char**) ccp;
1799 ccp = (char const *const *) p;
1800 { /* SCO 3.2v4 cc rejects this. */
1801 char *t;
1802 char const *s = 0 ? (char *) 0 : (char const *) 0;
1804 *t++ = 0;
1806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1807 int x[] = {25, 17};
1808 const int *foo = &x[0];
1809 ++foo;
1811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1812 typedef const int *iptr;
1813 iptr p = 0;
1814 ++p;
1816 { /* AIX XL C 1.02.0.0 rejects this saying
1817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1818 struct s { int j; const int *ap[3]; };
1819 struct s *b; b->j = 5;
1821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1822 const int foo = 10;
1825 ; return 0; }
1827 if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828 rm -rf conftest*
1829 ac_cv_c_const=yes
1830 else
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 rm -rf conftest*
1834 ac_cv_c_const=no
1836 rm -f conftest*
1839 echo "$ac_t""$ac_cv_c_const" 1>&6
1840 if test $ac_cv_c_const = no; then
1841 cat >> confdefs.h <<\EOF
1842 #define const
1847 echo $ac_n "checking for inline""... $ac_c" 1>&6
1848 echo "configure:1849: checking for inline" >&5
1849 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 ac_cv_c_inline=no
1853 for ac_kw in inline __inline__ __inline; do
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1858 int main() {
1859 } $ac_kw foo() {
1860 ; return 0; }
1862 if { (eval echo configure:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1863 rm -rf conftest*
1864 ac_cv_c_inline=$ac_kw; break
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 rm -f conftest*
1870 done
1874 echo "$ac_t""$ac_cv_c_inline" 1>&6
1875 case "$ac_cv_c_inline" in
1876 inline | yes) ;;
1877 no) cat >> confdefs.h <<\EOF
1878 #define inline
1881 *) cat >> confdefs.h <<EOF
1882 #define inline $ac_cv_c_inline
1885 esac
1887 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether byte ordering is bigendian" >&5
1889 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 ac_cv_c_bigendian=unknown
1893 # See if sys/param.h defines the BYTE_ORDER macro.
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <sys/types.h>
1898 #include <sys/param.h>
1899 int main() {
1901 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1902 bogus endian macros
1903 #endif
1904 ; return 0; }
1906 if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1907 rm -rf conftest*
1908 # It does; now see whether it defined to BIG_ENDIAN or not.
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 #include <sys/types.h>
1913 #include <sys/param.h>
1914 int main() {
1916 #if BYTE_ORDER != BIG_ENDIAN
1917 not big endian
1918 #endif
1919 ; return 0; }
1921 if { (eval echo configure:1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1922 rm -rf conftest*
1923 ac_cv_c_bigendian=yes
1924 else
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 rm -rf conftest*
1928 ac_cv_c_bigendian=no
1930 rm -f conftest*
1931 else
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 rm -f conftest*
1936 if test $ac_cv_c_bigendian = unknown; then
1937 if test "$cross_compiling" = yes; then
1938 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1939 else
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 main () {
1944 /* Are we little or big endian? From Harbison&Steele. */
1945 union
1947 long l;
1948 char c[sizeof (long)];
1949 } u;
1950 u.l = 1;
1951 exit (u.c[sizeof (long) - 1] == 1);
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1955 then
1956 ac_cv_c_bigendian=no
1957 else
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 rm -fr conftest*
1961 ac_cv_c_bigendian=yes
1963 rm -fr conftest*
1969 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1970 if test $ac_cv_c_bigendian = yes; then
1971 cat >> confdefs.h <<\EOF
1972 #define WORDS_BIGENDIAN 1
1977 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether char is unsigned" >&5
1979 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1981 else
1982 if test "$GCC" = yes; then
1983 # GCC predefines this symbol on systems where it applies.
1984 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1987 #ifdef __CHAR_UNSIGNED__
1989 #endif
1992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1993 egrep "yes" >/dev/null 2>&1; then
1994 rm -rf conftest*
1995 ac_cv_c_char_unsigned=yes
1996 else
1997 rm -rf conftest*
1998 ac_cv_c_char_unsigned=no
2000 rm -f conftest*
2002 else
2003 if test "$cross_compiling" = yes; then
2004 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2005 else
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2010 #if !defined(__STDC__) || __STDC__ != 1
2011 #define volatile
2012 #endif
2013 main() {
2014 volatile char c = 255; exit(c < 0);
2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2018 then
2019 ac_cv_c_char_unsigned=yes
2020 else
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 rm -fr conftest*
2024 ac_cv_c_char_unsigned=no
2026 rm -fr conftest*
2032 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2033 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2034 cat >> confdefs.h <<\EOF
2035 #define __CHAR_UNSIGNED__ 1
2041 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2042 echo "configure:2043: checking return type of signal handlers" >&5
2043 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <sys/types.h>
2050 #include <signal.h>
2051 #ifdef signal
2052 #undef signal
2053 #endif
2054 #ifdef __cplusplus
2055 extern "C" void (*signal (int, void (*)(int)))(int);
2056 #else
2057 void (*signal ()) ();
2058 #endif
2060 int main() {
2061 int i;
2062 ; return 0; }
2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2065 rm -rf conftest*
2066 ac_cv_type_signal=void
2067 else
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 rm -rf conftest*
2071 ac_cv_type_signal=int
2073 rm -f conftest*
2076 echo "$ac_t""$ac_cv_type_signal" 1>&6
2077 cat >> confdefs.h <<EOF
2078 #define RETSIGTYPE $ac_cv_type_signal
2082 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2083 echo "configure:2084: checking for uid_t in sys/types.h" >&5
2084 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <sys/types.h>
2092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2093 egrep "uid_t" >/dev/null 2>&1; then
2094 rm -rf conftest*
2095 ac_cv_type_uid_t=yes
2096 else
2097 rm -rf conftest*
2098 ac_cv_type_uid_t=no
2100 rm -f conftest*
2104 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2105 if test $ac_cv_type_uid_t = no; then
2106 cat >> confdefs.h <<\EOF
2107 #define uid_t int
2110 cat >> confdefs.h <<\EOF
2111 #define gid_t int
2116 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2117 echo "configure:2118: checking for mode_t" >&5
2118 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <sys/types.h>
2125 #if STDC_HEADERS
2126 #include <stdlib.h>
2127 #include <stddef.h>
2128 #endif
2130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2131 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2132 rm -rf conftest*
2133 ac_cv_type_mode_t=yes
2134 else
2135 rm -rf conftest*
2136 ac_cv_type_mode_t=no
2138 rm -f conftest*
2141 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2142 if test $ac_cv_type_mode_t = no; then
2143 cat >> confdefs.h <<\EOF
2144 #define mode_t int
2149 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2150 echo "configure:2151: checking for off_t" >&5
2151 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2158 #if STDC_HEADERS
2159 #include <stdlib.h>
2160 #include <stddef.h>
2161 #endif
2163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2165 rm -rf conftest*
2166 ac_cv_type_off_t=yes
2167 else
2168 rm -rf conftest*
2169 ac_cv_type_off_t=no
2171 rm -f conftest*
2174 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2175 if test $ac_cv_type_off_t = no; then
2176 cat >> confdefs.h <<\EOF
2177 #define off_t long
2182 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2183 echo "configure:2184: checking for size_t" >&5
2184 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <sys/types.h>
2191 #if STDC_HEADERS
2192 #include <stdlib.h>
2193 #include <stddef.h>
2194 #endif
2196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2198 rm -rf conftest*
2199 ac_cv_type_size_t=yes
2200 else
2201 rm -rf conftest*
2202 ac_cv_type_size_t=no
2204 rm -f conftest*
2207 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2208 if test $ac_cv_type_size_t = no; then
2209 cat >> confdefs.h <<\EOF
2210 #define size_t unsigned
2215 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2216 echo "configure:2217: checking for pid_t" >&5
2217 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <sys/types.h>
2224 #if STDC_HEADERS
2225 #include <stdlib.h>
2226 #include <stddef.h>
2227 #endif
2229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2231 rm -rf conftest*
2232 ac_cv_type_pid_t=yes
2233 else
2234 rm -rf conftest*
2235 ac_cv_type_pid_t=no
2237 rm -f conftest*
2240 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2241 if test $ac_cv_type_pid_t = no; then
2242 cat >> confdefs.h <<\EOF
2243 #define pid_t int
2248 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2249 echo "configure:2250: checking for st_rdev in struct stat" >&5
2250 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <sys/types.h>
2257 #include <sys/stat.h>
2258 int main() {
2259 struct stat s; s.st_rdev;
2260 ; return 0; }
2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2263 rm -rf conftest*
2264 ac_cv_struct_st_rdev=yes
2265 else
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 rm -rf conftest*
2269 ac_cv_struct_st_rdev=no
2271 rm -f conftest*
2274 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2275 if test $ac_cv_struct_st_rdev = yes; then
2276 cat >> confdefs.h <<\EOF
2277 #define HAVE_ST_RDEV 1
2282 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2283 echo "configure:2284: checking for ino_t" >&5
2284 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2286 else
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 #include <sys/types.h>
2291 #if STDC_HEADERS
2292 #include <stdlib.h>
2293 #include <stddef.h>
2294 #endif
2296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2297 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2298 rm -rf conftest*
2299 ac_cv_type_ino_t=yes
2300 else
2301 rm -rf conftest*
2302 ac_cv_type_ino_t=no
2304 rm -f conftest*
2307 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2308 if test $ac_cv_type_ino_t = no; then
2309 cat >> confdefs.h <<\EOF
2310 #define ino_t unsigned
2316 echo $ac_n "checking for errno in errno.h... $ac_c"
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 #include <errno.h>
2321 int main() {
2322 int i = errno
2323 ; return 0; }
2325 if { (eval echo configure:2326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2326 rm -rf conftest*
2327 echo yes; cat >> confdefs.h <<\EOF
2328 #define HAVE_ERRNO_DECL 1
2331 else
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 rm -rf conftest*
2335 echo no
2337 rm -f conftest*
2339 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2340 echo "configure:2341: checking for 8-bit clean memcmp" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344 if test "$cross_compiling" = yes; then
2345 ac_cv_func_memcmp_clean=no
2346 else
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2351 main()
2353 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2354 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2359 then
2360 ac_cv_func_memcmp_clean=yes
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -fr conftest*
2365 ac_cv_func_memcmp_clean=no
2367 rm -fr conftest*
2372 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2373 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2376 ###############################################
2377 # test for where we get crypt() from
2378 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2379 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2380 echo "configure:2381: checking for crypt in -lcrypt" >&5
2381 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 ac_save_LIBS="$LIBS"
2386 LIBS="-lcrypt $LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393 char crypt();
2395 int main() {
2396 crypt()
2397 ; return 0; }
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2400 rm -rf conftest*
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2402 else
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_lib_$ac_lib_var=no"
2408 rm -f conftest*
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2416 cat >> confdefs.h <<EOF
2417 #define $ac_tr_lib 1
2420 LIBS="-lcrypt $LIBS"
2422 else
2423 echo "$ac_t""no" 1>&6
2426 cat >> confdefs.h <<\EOF
2427 #define HAVE_CRYPT 1
2431 if test "$ac_cv_lib_crypt_crypt" = "no" ||
2432 test "$ac_cv_lib_crypt_crypt" = ""; then
2433 # look for crypt
2434 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2435 echo "configure:2436: checking for crypt" >&5
2436 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2438 else
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 /* System header to define __stub macros and hopefully few prototypes,
2443 which can conflict with char crypt(); below. */
2444 #include <assert.h>
2445 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2448 char crypt();
2450 int main() {
2452 /* The GNU C library defines this for functions which it implements
2453 to always fail with ENOSYS. Some functions are actually named
2454 something starting with __ and the normal name is an alias. */
2455 #if defined (__stub_crypt) || defined (__stub___crypt)
2456 choke me
2457 #else
2458 crypt();
2459 #endif
2461 ; return 0; }
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2464 rm -rf conftest*
2465 eval "ac_cv_func_crypt=yes"
2466 else
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 rm -rf conftest*
2470 eval "ac_cv_func_crypt=no"
2472 rm -f conftest*
2475 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 cat >> confdefs.h <<\EOF
2478 #define HAVE_CRYPT 1
2481 else
2482 echo "$ac_t""no" 1>&6
2483 case "$LIBS" in
2484 *-lcrypt*) ;;
2485 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2486 echo "configure:2487: checking for crypt in -lcrypt" >&5
2487 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2490 else
2491 ac_save_LIBS="$LIBS"
2492 LIBS="-lcrypt $LIBS"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Override any gcc2 internal prototype to avoid an error. */
2497 /* We use char because int might match the return type of a gcc2
2498 builtin and then its argument prototype would still apply. */
2499 char crypt();
2501 int main() {
2502 crypt()
2503 ; return 0; }
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2506 rm -rf conftest*
2507 eval "ac_cv_lib_$ac_lib_var=yes"
2508 else
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_lib_$ac_lib_var=no"
2514 rm -f conftest*
2515 LIBS="$ac_save_LIBS"
2518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2522 cat >> confdefs.h <<EOF
2523 #define $ac_tr_lib 1
2526 LIBS="-lcrypt $LIBS"
2528 else
2529 echo "$ac_t""no" 1>&6
2532 esac
2533 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2534 ac_cv_func_crypt=yes
2535 cat >> confdefs.h <<\EOF
2536 #define HAVE_CRYPT 1
2545 ###############################################
2546 # test for where we get pam_authenticate() from
2547 # might need libdl for this to work
2548 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2549 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2550 echo "configure:2551: checking for -ldl" >&5
2551 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 ac_save_LIBS="$LIBS"
2555 LIBS="-ldl $LIBS"
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2560 int main() {
2561 main()
2562 ; return 0; }
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2565 rm -rf conftest*
2566 ac_cv_lib_dl=yes
2567 else
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 rm -rf conftest*
2571 ac_cv_lib_dl=no
2573 rm -f conftest*
2574 LIBS="$ac_save_LIBS"
2577 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2578 if test "$ac_cv_lib_dl" = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_LIBDL 1
2583 LIBS="-ldl $LIBS"
2588 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2589 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2590 echo "configure:2591: checking for pam_authenticate in -lpam" >&5
2591 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2594 else
2595 ac_save_LIBS="$LIBS"
2596 LIBS="-lpam $LIBS"
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* Override any gcc2 internal prototype to avoid an error. */
2601 /* We use char because int might match the return type of a gcc2
2602 builtin and then its argument prototype would still apply. */
2603 char pam_authenticate();
2605 int main() {
2606 pam_authenticate()
2607 ; return 0; }
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2610 rm -rf conftest*
2611 eval "ac_cv_lib_$ac_lib_var=yes"
2612 else
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 rm -rf conftest*
2616 eval "ac_cv_lib_$ac_lib_var=no"
2618 rm -f conftest*
2619 LIBS="$ac_save_LIBS"
2622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_lib 1
2630 LIBS="-lpam $LIBS"
2632 else
2633 echo "$ac_t""no" 1>&6
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_PAM_AUTHENTICATE 1
2641 if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
2642 test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2643 # look for pam_authenticate
2644 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2645 echo "configure:2646: checking for pam_authenticate" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char pam_authenticate(); below. */
2654 #include <assert.h>
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char pam_authenticate();
2660 int main() {
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2666 choke me
2667 #else
2668 pam_authenticate();
2669 #endif
2671 ; return 0; }
2673 if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2674 rm -rf conftest*
2675 eval "ac_cv_func_pam_authenticate=yes"
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 eval "ac_cv_func_pam_authenticate=no"
2682 rm -f conftest*
2685 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_PAM_AUTHENTICATE 1
2691 else
2692 echo "$ac_t""no" 1>&6
2693 case "$LIBS" in
2694 *-lpam*) ;;
2695 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2696 echo "configure:2697: checking for pam_authenticate in -lpam" >&5
2697 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701 ac_save_LIBS="$LIBS"
2702 LIBS="-lpam $LIBS"
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2709 char pam_authenticate();
2711 int main() {
2712 pam_authenticate()
2713 ; return 0; }
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2716 rm -rf conftest*
2717 eval "ac_cv_lib_$ac_lib_var=yes"
2718 else
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -rf conftest*
2722 eval "ac_cv_lib_$ac_lib_var=no"
2724 rm -f conftest*
2725 LIBS="$ac_save_LIBS"
2728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2731 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2732 cat >> confdefs.h <<EOF
2733 #define $ac_tr_lib 1
2736 LIBS="-lpam $LIBS"
2738 else
2739 echo "$ac_t""no" 1>&6
2742 esac
2743 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2744 ac_cv_func_pam_authenticate=yes
2745 cat >> confdefs.h <<\EOF
2746 #define HAVE_PAM_AUTHENTICATE 1
2754 # The following test taken from the cvs sources
2755 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2756 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2757 # libsocket.so which has a bad implementation of gethostbyname (it
2758 # only looks in /etc/hosts), so we only look for -lsocket if we need
2759 # it.
2760 echo $ac_n "checking for connect""... $ac_c" 1>&6
2761 echo "configure:2762: checking for connect" >&5
2762 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char connect(); below. */
2770 #include <assert.h>
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 /* We use char because int might match the return type of a gcc2
2773 builtin and then its argument prototype would still apply. */
2774 char connect();
2776 int main() {
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined (__stub_connect) || defined (__stub___connect)
2782 choke me
2783 #else
2784 connect();
2785 #endif
2787 ; return 0; }
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2790 rm -rf conftest*
2791 eval "ac_cv_func_connect=yes"
2792 else
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -rf conftest*
2796 eval "ac_cv_func_connect=no"
2798 rm -f conftest*
2801 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 case "$LIBS" in
2807 *-lnsl*) ;;
2808 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
2809 echo "configure:2810: checking for printf in -lnsl_s" >&5
2810 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
2811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2813 else
2814 ac_save_LIBS="$LIBS"
2815 LIBS="-lnsl_s $LIBS"
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822 char printf();
2824 int main() {
2825 printf()
2826 ; return 0; }
2828 if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2829 rm -rf conftest*
2830 eval "ac_cv_lib_$ac_lib_var=yes"
2831 else
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 rm -rf conftest*
2835 eval "ac_cv_lib_$ac_lib_var=no"
2837 rm -f conftest*
2838 LIBS="$ac_save_LIBS"
2841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_lib 1
2849 LIBS="-lnsl_s $LIBS"
2851 else
2852 echo "$ac_t""no" 1>&6
2855 esac
2856 case "$LIBS" in
2857 *-lnsl*) ;;
2858 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
2859 echo "configure:2860: checking for printf in -lnsl" >&5
2860 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
2861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2863 else
2864 ac_save_LIBS="$LIBS"
2865 LIBS="-lnsl $LIBS"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 /* Override any gcc2 internal prototype to avoid an error. */
2870 /* We use char because int might match the return type of a gcc2
2871 builtin and then its argument prototype would still apply. */
2872 char printf();
2874 int main() {
2875 printf()
2876 ; return 0; }
2878 if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2879 rm -rf conftest*
2880 eval "ac_cv_lib_$ac_lib_var=yes"
2881 else
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 rm -rf conftest*
2885 eval "ac_cv_lib_$ac_lib_var=no"
2887 rm -f conftest*
2888 LIBS="$ac_save_LIBS"
2891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2895 cat >> confdefs.h <<EOF
2896 #define $ac_tr_lib 1
2899 LIBS="-lnsl $LIBS"
2901 else
2902 echo "$ac_t""no" 1>&6
2905 esac
2906 case "$LIBS" in
2907 *-lsocket*) ;;
2908 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2909 echo "configure:2910: checking for connect in -lsocket" >&5
2910 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913 else
2914 ac_save_LIBS="$LIBS"
2915 LIBS="-lsocket $LIBS"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2922 char connect();
2924 int main() {
2925 connect()
2926 ; return 0; }
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2929 rm -rf conftest*
2930 eval "ac_cv_lib_$ac_lib_var=yes"
2931 else
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 rm -rf conftest*
2935 eval "ac_cv_lib_$ac_lib_var=no"
2937 rm -f conftest*
2938 LIBS="$ac_save_LIBS"
2941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_lib 1
2949 LIBS="-lsocket $LIBS"
2951 else
2952 echo "$ac_t""no" 1>&6
2955 esac
2956 case "$LIBS" in
2957 *-linet*) ;;
2958 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
2959 echo "configure:2960: checking for connect in -linet" >&5
2960 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
2961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964 ac_save_LIBS="$LIBS"
2965 LIBS="-linet $LIBS"
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2972 char connect();
2974 int main() {
2975 connect()
2976 ; return 0; }
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2979 rm -rf conftest*
2980 eval "ac_cv_lib_$ac_lib_var=yes"
2981 else
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2984 rm -rf conftest*
2985 eval "ac_cv_lib_$ac_lib_var=no"
2987 rm -f conftest*
2988 LIBS="$ac_save_LIBS"
2991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2995 cat >> confdefs.h <<EOF
2996 #define $ac_tr_lib 1
2999 LIBS="-linet $LIBS"
3001 else
3002 echo "$ac_t""no" 1>&6
3005 esac
3006 if test "$ac_cv_lib_socket_connect" = "yes" ||
3007 test "$ac_cv_lib_inet_connect" = "yes"; then
3008 ac_cv_func_connect=yes
3009 cat >> confdefs.h <<\EOF
3010 #define HAVE_CONNECT 1
3018 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_func" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char $ac_func(); below. */
3030 #include <assert.h>
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3034 char $ac_func();
3036 int main() {
3038 /* The GNU C library defines this for functions which it implements
3039 to always fail with ENOSYS. Some functions are actually named
3040 something starting with __ and the normal name is an alias. */
3041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3042 choke me
3043 #else
3044 $ac_func();
3045 #endif
3047 ; return 0; }
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3050 rm -rf conftest*
3051 eval "ac_cv_func_$ac_func=yes"
3052 else
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 rm -rf conftest*
3056 eval "ac_cv_func_$ac_func=no"
3058 rm -f conftest*
3061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3064 cat >> confdefs.h <<EOF
3065 #define $ac_tr_func 1
3068 else
3069 echo "$ac_t""no" 1>&6
3071 done
3073 for ac_func in fstat strchr utime utimes getrlimit fsync execl
3075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3076 echo "configure:3077: checking for $ac_func" >&5
3077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3079 else
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 /* System header to define __stub macros and hopefully few prototypes,
3084 which can conflict with char $ac_func(); below. */
3085 #include <assert.h>
3086 /* Override any gcc2 internal prototype to avoid an error. */
3087 /* We use char because int might match the return type of a gcc2
3088 builtin and then its argument prototype would still apply. */
3089 char $ac_func();
3091 int main() {
3093 /* The GNU C library defines this for functions which it implements
3094 to always fail with ENOSYS. Some functions are actually named
3095 something starting with __ and the normal name is an alias. */
3096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3097 choke me
3098 #else
3099 $ac_func();
3100 #endif
3102 ; return 0; }
3104 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3105 rm -rf conftest*
3106 eval "ac_cv_func_$ac_func=yes"
3107 else
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3110 rm -rf conftest*
3111 eval "ac_cv_func_$ac_func=no"
3113 rm -f conftest*
3116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3117 echo "$ac_t""yes" 1>&6
3118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3119 cat >> confdefs.h <<EOF
3120 #define $ac_tr_func 1
3123 else
3124 echo "$ac_t""no" 1>&6
3126 done
3128 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_func" >&5
3132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3134 else
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* System header to define __stub macros and hopefully few prototypes,
3139 which can conflict with char $ac_func(); below. */
3140 #include <assert.h>
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3144 char $ac_func();
3146 int main() {
3148 /* The GNU C library defines this for functions which it implements
3149 to always fail with ENOSYS. Some functions are actually named
3150 something starting with __ and the normal name is an alias. */
3151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3152 choke me
3153 #else
3154 $ac_func();
3155 #endif
3157 ; return 0; }
3159 if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3160 rm -rf conftest*
3161 eval "ac_cv_func_$ac_func=yes"
3162 else
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3165 rm -rf conftest*
3166 eval "ac_cv_func_$ac_func=no"
3168 rm -f conftest*
3171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3174 cat >> confdefs.h <<EOF
3175 #define $ac_tr_func 1
3178 else
3179 echo "$ac_t""no" 1>&6
3181 done
3183 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_func" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char $ac_func(); below. */
3195 #include <assert.h>
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char $ac_func();
3201 int main() {
3203 /* The GNU C library defines this for functions which it implements
3204 to always fail with ENOSYS. Some functions are actually named
3205 something starting with __ and the normal name is an alias. */
3206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3207 choke me
3208 #else
3209 $ac_func();
3210 #endif
3212 ; return 0; }
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3215 rm -rf conftest*
3216 eval "ac_cv_func_$ac_func=yes"
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -rf conftest*
3221 eval "ac_cv_func_$ac_func=no"
3223 rm -f conftest*
3226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3229 cat >> confdefs.h <<EOF
3230 #define $ac_tr_func 1
3233 else
3234 echo "$ac_t""no" 1>&6
3236 done
3238 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_func" >&5
3242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* System header to define __stub macros and hopefully few prototypes,
3249 which can conflict with char $ac_func(); below. */
3250 #include <assert.h>
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3254 char $ac_func();
3256 int main() {
3258 /* The GNU C library defines this for functions which it implements
3259 to always fail with ENOSYS. Some functions are actually named
3260 something starting with __ and the normal name is an alias. */
3261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 choke me
3263 #else
3264 $ac_func();
3265 #endif
3267 ; return 0; }
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3270 rm -rf conftest*
3271 eval "ac_cv_func_$ac_func=yes"
3272 else
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 rm -rf conftest*
3276 eval "ac_cv_func_$ac_func=no"
3278 rm -f conftest*
3281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_func 1
3288 else
3289 echo "$ac_t""no" 1>&6
3291 done
3293 for ac_func in setresuid setuidx setgroups mktime rename ftruncate
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3305 #include <assert.h>
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3309 char $ac_func();
3311 int main() {
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3317 choke me
3318 #else
3319 $ac_func();
3320 #endif
3322 ; return 0; }
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3325 rm -rf conftest*
3326 eval "ac_cv_func_$ac_func=yes"
3327 else
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 rm -rf conftest*
3331 eval "ac_cv_func_$ac_func=no"
3333 rm -f conftest*
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3343 else
3344 echo "$ac_t""no" 1>&6
3346 done
3348 for ac_func in set_auth_parameters atexit grantpt getspnam dup2
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3354 else
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3360 #include <assert.h>
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3364 char $ac_func();
3366 int main() {
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3372 choke me
3373 #else
3374 $ac_func();
3375 #endif
3377 ; return 0; }
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3380 rm -rf conftest*
3381 eval "ac_cv_func_$ac_func=yes"
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 eval "ac_cv_func_$ac_func=no"
3388 rm -f conftest*
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3398 else
3399 echo "$ac_t""no" 1>&6
3401 done
3403 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3409 else
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3415 #include <assert.h>
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419 char $ac_func();
3421 int main() {
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427 choke me
3428 #else
3429 $ac_func();
3430 #endif
3432 ; return 0; }
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3435 rm -rf conftest*
3436 eval "ac_cv_func_$ac_func=yes"
3437 else
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3440 rm -rf conftest*
3441 eval "ac_cv_func_$ac_func=no"
3443 rm -f conftest*
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3453 else
3454 echo "$ac_t""no" 1>&6
3456 done
3459 echo $ac_n "checking for long long ... $ac_c"
3460 if test "$cross_compiling" = yes; then
3461 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3462 else
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <stdio.h>
3467 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3470 then
3471 echo yes;cat >> confdefs.h <<\EOF
3472 #define HAVE_LONGLONG 1
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 rm -fr conftest*
3479 echo no
3481 rm -fr conftest*
3485 echo $ac_n "checking for off64_t ... $ac_c"
3486 if test "$cross_compiling" = yes; then
3487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3488 else
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include <stdio.h>
3493 #include <sys/stat.h>
3494 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3497 then
3498 echo yes;cat >> confdefs.h <<\EOF
3499 #define HAVE_OFF64_T 1
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -fr conftest*
3506 echo no
3508 rm -fr conftest*
3512 echo $ac_n "checking for union semun ... $ac_c"
3513 if test "$cross_compiling" = yes; then
3514 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3515 else
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3520 #include <sys/types.h>
3521 #include <sys/ipc.h>
3522 #include <sys/sem.h>
3523 main() { union semun ss; exit(0); }
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3526 then
3527 echo yes;cat >> confdefs.h <<\EOF
3528 #define HAVE_UNION_SEMUN 1
3531 else
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 rm -fr conftest*
3535 echo no
3537 rm -fr conftest*
3541 echo $ac_n "checking for unsigned char ... $ac_c"
3542 if test "$cross_compiling" = yes; then
3543 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3544 else
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 #include <stdio.h>
3549 main() { char c; c=250; exit((c > 0)?0:1); }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3552 then
3553 echo yes;cat >> confdefs.h <<\EOF
3554 #define HAVE_UNSIGNED_CHAR 1
3557 else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -fr conftest*
3561 echo no
3563 rm -fr conftest*
3567 echo $ac_n "checking for sin_len in sock ... $ac_c"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <sys/types.h>
3572 #include <sys/socket.h>
3573 #include <netinet/in.h>
3574 int main() {
3575 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3576 ; return 0; }
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3579 rm -rf conftest*
3580 echo yes;cat >> confdefs.h <<\EOF
3581 #define HAVE_SOCK_SIN_LEN 1
3584 else
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 rm -rf conftest*
3588 echo no
3590 rm -f conftest*
3592 echo $ac_n "checking for __FILE__ macro ... $ac_c"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdio.h>
3597 int main() {
3598 printf("%s\n", __FILE__);
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 rm -rf conftest*
3603 echo yes;cat >> confdefs.h <<\EOF
3604 #define HAVE_FILE_MACRO 1
3607 else
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3610 rm -rf conftest*
3611 echo no
3613 rm -f conftest*
3615 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 #include <stdio.h>
3620 int main() {
3621 printf("%s\n", __FUNCTION__);
3622 ; return 0; }
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625 rm -rf conftest*
3626 echo yes;cat >> confdefs.h <<\EOF
3627 #define HAVE_FUNCTION_MACRO 1
3630 else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 echo no
3636 rm -f conftest*
3638 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3639 if test "$cross_compiling" = yes; then
3640 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3641 else
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3646 #include <sys/time.h>
3647 #include <unistd.h>
3648 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3651 then
3652 echo yes;cat >> confdefs.h <<\EOF
3653 #define HAVE_GETTIMEOFDAY_TZ 1
3656 else
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3659 rm -fr conftest*
3660 echo no
3662 rm -fr conftest*
3667 echo $ac_n "checking for broken readdir ... $ac_c"
3668 if test "$cross_compiling" = yes; then
3669 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3670 else
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #include <dirent.h>
3676 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3677 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3678 di->d_name[0] == 0) exit(0); exit(1);}
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3681 then
3682 echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3683 #define HAVE_BROKEN_READDIR 1
3686 else
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3689 rm -fr conftest*
3690 echo no
3692 rm -fr conftest*
3696 echo $ac_n "checking for utimbuf ... $ac_c"
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3701 #include <utime.h>
3702 int main() {
3703 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3704 ; return 0; }
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 rm -rf conftest*
3708 echo yes;cat >> confdefs.h <<\EOF
3709 #define HAVE_UTIMBUF 1
3712 else
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3715 rm -rf conftest*
3716 echo no
3718 rm -f conftest*
3720 echo $ac_n "checking for ftruncate extend ... $ac_c"
3721 if test "$cross_compiling" = yes; then
3722 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3723 else
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include "tests/ftruncate.c"
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3730 then
3731 echo yes;cat >> confdefs.h <<\EOF
3732 #define HAVE_FTRUNCATE_EXTEND 1
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -fr conftest*
3739 echo no
3741 rm -fr conftest*
3745 echo $ac_n "checking for broken getgroups ... $ac_c"
3746 if test "$cross_compiling" = yes; then
3747 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3748 else
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include "tests/getgroups.c"
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3755 then
3756 echo yes;cat >> confdefs.h <<\EOF
3757 #define HAVE_BROKEN_GETGROUPS 1
3760 else
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3763 rm -fr conftest*
3764 echo no
3766 rm -fr conftest*
3771 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
3772 if test "$cross_compiling" = yes; then
3773 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3774 else
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3779 #include <stdio.h>
3780 #include <sys/types.h>
3781 #include <netinet/in.h>
3782 #include <arpa/inet.h>
3783 main() { struct in_addr ip; ip.s_addr = 0x12345678;
3784 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
3785 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
3786 exit(1);}
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3789 then
3790 echo yes;cat >> confdefs.h <<\EOF
3791 #define REPLACE_INET_NTOA 1
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -fr conftest*
3798 echo no
3800 rm -fr conftest*
3804 echo $ac_n "checking for root ... $ac_c"
3805 if test "$cross_compiling" = yes; then
3806 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3807 else
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 main() { exit(getuid() != 0); }
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3814 then
3815 echo yes;cat >> confdefs.h <<\EOF
3816 #define HAVE_ROOT 1
3819 else
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3822 rm -fr conftest*
3823 echo WARNING: running as non-root will disable some tests;
3825 rm -fr conftest*
3829 netmask=no;
3830 echo $ac_n "checking for netmask ifconf ... $ac_c"
3831 if test "$cross_compiling" = yes; then
3832 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3833 else
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3838 #define HAVE_NETMASK_IFCONF 1
3839 #define AUTOCONF 1
3840 #include "netmask.c"
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3843 then
3844 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3845 #define HAVE_NETMASK_IFCONF 1
3848 else
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 rm -fr conftest*
3852 echo no
3854 rm -fr conftest*
3858 if test $netmask = no; then
3859 echo $ac_n "checking for netmask ifreq ... $ac_c"
3860 if test "$cross_compiling" = yes; then
3861 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3862 else
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 #define HAVE_NETMASK_IFREQ 1
3868 #define AUTOCONF 1
3869 #include "netmask.c"
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3872 then
3873 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3874 #define HAVE_NETMASK_IFREQ 1
3877 else
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3880 rm -fr conftest*
3881 echo no
3883 rm -fr conftest*
3888 if test $netmask = no; then
3889 echo $ac_n "checking for netmask AIX ... $ac_c"
3890 if test "$cross_compiling" = yes; then
3891 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3892 else
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3897 #define HAVE_NETMASK_AIX 1
3898 #define AUTOCONF 1
3899 #include "netmask.c"
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3902 then
3903 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3904 #define HAVE_NETMASK_AIX 1
3907 else
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3910 rm -fr conftest*
3911 echo no
3913 rm -fr conftest*
3918 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
3919 if test "$cross_compiling" = yes; then
3920 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3921 else
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include "tests/trapdoor.c"
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3928 then
3929 echo no
3930 else
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 rm -fr conftest*
3934 echo yes;cat >> confdefs.h <<\EOF
3935 #define HAVE_TRAPDOOR_UID 1
3939 rm -fr conftest*
3943 echo $ac_n "checking for shared mmap ... $ac_c"
3944 if test "$cross_compiling" = yes; then
3945 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3946 else
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #include "tests/shared_mmap.c"
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3953 then
3954 echo yes;cat >> confdefs.h <<\EOF
3955 #define HAVE_SHARED_MMAP 1
3958 else
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 rm -fr conftest*
3962 echo no
3964 rm -fr conftest*
3968 echo $ac_n "checking for fcntl locking ... $ac_c"
3969 if test "$cross_compiling" = yes; then
3970 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3971 else
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include "tests/fcntl_lock.c"
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3978 then
3979 echo yes;cat >> confdefs.h <<\EOF
3980 #define HAVE_FCNTL_LOCK 1
3983 else
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 rm -fr conftest*
3987 echo no
3989 rm -fr conftest*
3993 echo $ac_n "checking for sysv ipc ... $ac_c"
3994 if test "$cross_compiling" = yes; then
3995 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3996 else
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include "tests/sysv_ipc.c"
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4003 then
4004 echo yes;cat >> confdefs.h <<\EOF
4005 #define HAVE_SYSV_IPC 1
4008 else
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4011 rm -fr conftest*
4012 echo no
4014 rm -fr conftest*
4018 #################################################
4019 # check for the AFS filesystem
4020 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether to use AFS" >&5
4022 # Check whether --with-afs or --without-afs was given.
4023 if test "${with_afs+set}" = set; then
4024 withval="$with_afs"
4025 case "$withval" in
4026 yes)
4027 echo "$ac_t""yes" 1>&6
4028 cat >> confdefs.h <<\EOF
4029 #define WITH_AFS 1
4034 echo "$ac_t""no" 1>&6
4036 esac
4037 else
4038 echo "$ac_t""no" 1>&6
4044 #################################################
4045 # check for the DFS auth system
4046 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4047 echo "configure:4048: checking whether to use DFS auth" >&5
4048 # Check whether --with-dfs or --without-dfs was given.
4049 if test "${with_dfs+set}" = set; then
4050 withval="$with_dfs"
4051 case "$withval" in
4052 yes)
4053 echo "$ac_t""yes" 1>&6
4054 cat >> confdefs.h <<\EOF
4055 #define WITH_DFS 1
4060 echo "$ac_t""no" 1>&6
4062 esac
4063 else
4064 echo "$ac_t""no" 1>&6
4069 #################################################
4070 # check for automount support
4071 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4072 echo "configure:4073: checking whether to use AUTOMOUNT" >&5
4073 # Check whether --with-automount or --without-automount was given.
4074 if test "${with_automount+set}" = set; then
4075 withval="$with_automount"
4076 case "$withval" in
4077 yes)
4078 echo "$ac_t""yes" 1>&6
4079 cat >> confdefs.h <<\EOF
4080 #define WITH_AUTOMOUNT 1
4085 echo "$ac_t""no" 1>&6
4087 esac
4088 else
4089 echo "$ac_t""no" 1>&6
4094 #################################################
4095 # check for a LDAP password database
4096 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether to use LDAP password database" >&5
4098 # Check whether --with-ldap or --without-ldap was given.
4099 if test "${with_ldap+set}" = set; then
4100 withval="$with_ldap"
4101 case "$withval" in
4102 yes)
4103 echo "$ac_t""yes" 1>&6
4104 cat >> confdefs.h <<\EOF
4105 #define WITH_LDAP 1
4110 echo "$ac_t""no" 1>&6
4112 esac
4113 else
4114 echo "$ac_t""no" 1>&6
4119 #################################################
4120 # check for a NISPLUS password database
4121 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4122 echo "configure:4123: checking whether to use NISPLUS password database" >&5
4123 # Check whether --with-nisplus or --without-nisplus was given.
4124 if test "${with_nisplus+set}" = set; then
4125 withval="$with_nisplus"
4126 case "$withval" in
4127 yes)
4128 echo "$ac_t""yes" 1>&6
4129 cat >> confdefs.h <<\EOF
4130 #define WITH_NISPLUS 1
4135 echo "$ac_t""no" 1>&6
4137 esac
4138 else
4139 echo "$ac_t""no" 1>&6
4144 #################################################
4145 # check for a NISPLUS_HOME support
4146 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
4147 echo "configure:4148: checking whether to use NISPLUS_HOME" >&5
4148 # Check whether --with-nisplus-home or --without-nisplus-home was given.
4149 if test "${with_nisplus_home+set}" = set; then
4150 withval="$with_nisplus_home"
4151 case "$withval" in
4152 yes)
4153 echo "$ac_t""yes" 1>&6
4154 cat >> confdefs.h <<\EOF
4155 #define WITH_NISPLUS_HOME 1
4160 echo "$ac_t""no" 1>&6
4162 esac
4163 else
4164 echo "$ac_t""no" 1>&6
4169 #################################################
4170 # check for the secure socket layer
4171 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
4172 echo "configure:4173: checking whether to use SSL" >&5
4173 # Check whether --with-ssl or --without-ssl was given.
4174 if test "${with_ssl+set}" = set; then
4175 withval="$with_ssl"
4176 case "$withval" in
4177 yes)
4178 echo "$ac_t""yes" 1>&6
4179 cat >> confdefs.h <<\EOF
4180 #define WITH_SSL 1
4185 echo "$ac_t""no" 1>&6
4187 esac
4188 else
4189 echo "$ac_t""no" 1>&6
4194 #################################################
4195 # check for experimental mmap support
4196 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
4197 echo "configure:4198: checking whether to use MMAP" >&5
4198 # Check whether --with-mmap or --without-mmap was given.
4199 if test "${with_mmap+set}" = set; then
4200 withval="$with_mmap"
4201 case "$withval" in
4202 yes)
4203 echo "$ac_t""yes" 1>&6
4204 cat >> confdefs.h <<\EOF
4205 #define WITH_MMAP 1
4210 echo "$ac_t""no" 1>&6
4212 esac
4213 else
4214 echo "$ac_t""no" 1>&6
4219 #################################################
4220 # check for syslog logging
4221 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
4222 echo "configure:4223: checking whether to use syslog logging" >&5
4223 # Check whether --with-syslog or --without-syslog was given.
4224 if test "${with_syslog+set}" = set; then
4225 withval="$with_syslog"
4226 case "$withval" in
4227 yes)
4228 echo "$ac_t""yes" 1>&6
4229 cat >> confdefs.h <<\EOF
4230 #define WITH_SYSLOG 1
4235 echo "$ac_t""no" 1>&6
4237 esac
4238 else
4239 echo "$ac_t""no" 1>&6
4245 #################################################
4246 # these tests are taken from the GNU fileutils package
4247 echo "checking how to get filesystem space usage" 1>&6
4248 echo "configure:4249: checking how to get filesystem space usage" >&5
4249 space=no
4251 # Perform only the link test since it seems there are no variants of the
4252 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
4253 # because that got a false positive on SCO OSR5. Adding the declaration
4254 # of a `struct statvfs' causes this test to fail (as it should) on such
4255 # systems. That system is reported to work fine with STAT_STATFS4 which
4256 # is what it gets when this test fails.
4257 if test $space = no; then
4258 # SVR4
4259 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
4260 echo "configure:4261: checking statvfs function (SVR4)" >&5
4261 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 #include <sys/types.h>
4268 #include <sys/statvfs.h>
4269 int main() {
4270 struct statvfs fsd; statvfs (0, &fsd);
4271 ; return 0; }
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4274 rm -rf conftest*
4275 fu_cv_sys_stat_statvfs=yes
4276 else
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 rm -rf conftest*
4280 fu_cv_sys_stat_statvfs=no
4282 rm -f conftest*
4285 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
4286 if test $fu_cv_sys_stat_statvfs = yes; then
4287 space=yes
4288 cat >> confdefs.h <<\EOF
4289 #define STAT_STATVFS 1
4295 if test $space = no; then
4296 # DEC Alpha running OSF/1
4297 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
4298 echo "configure:4299: checking for 3-argument statfs function (DEC OSF/1)" >&5
4299 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302 if test "$cross_compiling" = yes; then
4303 fu_cv_sys_stat_statfs3_osf1=no
4304 else
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4309 #include <sys/param.h>
4310 #include <sys/types.h>
4311 #include <sys/mount.h>
4312 main ()
4314 struct statfs fsd;
4315 fsd.f_fsize = 0;
4316 exit (statfs (".", &fsd, sizeof (struct statfs)));
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4320 then
4321 fu_cv_sys_stat_statfs3_osf1=yes
4322 else
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 rm -fr conftest*
4326 fu_cv_sys_stat_statfs3_osf1=no
4328 rm -fr conftest*
4333 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
4334 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
4335 space=yes
4336 cat >> confdefs.h <<\EOF
4337 #define STAT_STATFS3_OSF1 1
4343 if test $space = no; then
4344 # AIX
4345 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
4346 echo "configure:4347: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
4347 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4349 else
4350 if test "$cross_compiling" = yes; then
4351 fu_cv_sys_stat_statfs2_bsize=no
4352 else
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4357 #ifdef HAVE_SYS_PARAM_H
4358 #include <sys/param.h>
4359 #endif
4360 #ifdef HAVE_SYS_MOUNT_H
4361 #include <sys/mount.h>
4362 #endif
4363 #ifdef HAVE_SYS_VFS_H
4364 #include <sys/vfs.h>
4365 #endif
4366 main ()
4368 struct statfs fsd;
4369 fsd.f_bsize = 0;
4370 exit (statfs (".", &fsd));
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4374 then
4375 fu_cv_sys_stat_statfs2_bsize=yes
4376 else
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -fr conftest*
4380 fu_cv_sys_stat_statfs2_bsize=no
4382 rm -fr conftest*
4387 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
4388 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
4389 space=yes
4390 cat >> confdefs.h <<\EOF
4391 #define STAT_STATFS2_BSIZE 1
4397 if test $space = no; then
4398 # SVR3
4399 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
4400 echo "configure:4401: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
4401 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 if test "$cross_compiling" = yes; then
4405 fu_cv_sys_stat_statfs4=no
4406 else
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 #include <sys/types.h>
4411 #include <sys/statfs.h>
4412 main ()
4414 struct statfs fsd;
4415 exit (statfs (".", &fsd, sizeof fsd, 0));
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4419 then
4420 fu_cv_sys_stat_statfs4=yes
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -fr conftest*
4425 fu_cv_sys_stat_statfs4=no
4427 rm -fr conftest*
4432 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
4433 if test $fu_cv_sys_stat_statfs4 = yes; then
4434 space=yes
4435 cat >> confdefs.h <<\EOF
4436 #define STAT_STATFS4 1
4442 if test $space = no; then
4443 # 4.4BSD and NetBSD
4444 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
4445 echo "configure:4446: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
4446 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4448 else
4449 if test "$cross_compiling" = yes; then
4450 fu_cv_sys_stat_statfs2_fsize=no
4451 else
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 #include <sys/types.h>
4456 #ifdef HAVE_SYS_PARAM_H
4457 #include <sys/param.h>
4458 #endif
4459 #ifdef HAVE_SYS_MOUNT_H
4460 #include <sys/mount.h>
4461 #endif
4462 main ()
4464 struct statfs fsd;
4465 fsd.f_fsize = 0;
4466 exit (statfs (".", &fsd));
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4470 then
4471 fu_cv_sys_stat_statfs2_fsize=yes
4472 else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -fr conftest*
4476 fu_cv_sys_stat_statfs2_fsize=no
4478 rm -fr conftest*
4483 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
4484 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
4485 space=yes
4486 cat >> confdefs.h <<\EOF
4487 #define STAT_STATFS2_FSIZE 1
4493 if test $space = no; then
4494 # Ultrix
4495 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
4496 echo "configure:4497: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
4497 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 if test "$cross_compiling" = yes; then
4501 fu_cv_sys_stat_fs_data=no
4502 else
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 #include <sys/types.h>
4507 #ifdef HAVE_SYS_PARAM_H
4508 #include <sys/param.h>
4509 #endif
4510 #ifdef HAVE_SYS_MOUNT_H
4511 #include <sys/mount.h>
4512 #endif
4513 #ifdef HAVE_SYS_FS_TYPES_H
4514 #include <sys/fs_types.h>
4515 #endif
4516 main ()
4518 struct fs_data fsd;
4519 /* Ultrix's statfs returns 1 for success,
4520 0 for not mounted, -1 for failure. */
4521 exit (statfs (".", &fsd) != 1);
4524 if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4525 then
4526 fu_cv_sys_stat_fs_data=yes
4527 else
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 rm -fr conftest*
4531 fu_cv_sys_stat_fs_data=no
4533 rm -fr conftest*
4538 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
4539 if test $fu_cv_sys_stat_fs_data = yes; then
4540 space=yes
4541 cat >> confdefs.h <<\EOF
4542 #define STAT_STATFS2_FS_DATA 1
4549 trap '' 1 2 15
4550 cat > confcache <<\EOF
4551 # This file is a shell script that caches the results of configure
4552 # tests run on this system so they can be shared between configure
4553 # scripts and configure runs. It is not useful on other systems.
4554 # If it contains results you don't want to keep, you may remove or edit it.
4556 # By default, configure uses ./config.cache as the cache file,
4557 # creating it if it does not exist already. You can give configure
4558 # the --cache-file=FILE option to use a different cache file; that is
4559 # what configure does when it calls configure scripts in
4560 # subdirectories, so they share the cache.
4561 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4562 # config.status only pays attention to the cache file if you give it the
4563 # --recheck option to rerun configure.
4566 # The following way of writing the cache mishandles newlines in values,
4567 # but we know of no workaround that is simple, portable, and efficient.
4568 # So, don't put newlines in cache variables' values.
4569 # Ultrix sh set writes to stderr and can't be redirected directly,
4570 # and sets the high bit in the cache file unless we assign to the vars.
4571 (set) 2>&1 |
4572 case `(ac_space=' '; set) 2>&1` in
4573 *ac_space=\ *)
4574 # `set' does not quote correctly, so add quotes (double-quote substitution
4575 # turns \\\\ into \\, and sed turns \\ into \).
4576 sed -n \
4577 -e "s/'/'\\\\''/g" \
4578 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4581 # `set' quotes correctly as required by POSIX, so do not add quotes.
4582 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4584 esac >> confcache
4585 if cmp -s $cache_file confcache; then
4587 else
4588 if test -w $cache_file; then
4589 echo "updating cache $cache_file"
4590 cat confcache > $cache_file
4591 else
4592 echo "not updating unwritable cache $cache_file"
4595 rm -f confcache
4597 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4600 # Let make expand exec_prefix.
4601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4603 # Any assignment to VPATH causes Sun make to only execute
4604 # the first set of double-colon rules, so remove it if not needed.
4605 # If there is a colon in the path, we need to keep it.
4606 if test "x$srcdir" = x.; then
4607 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4610 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4612 DEFS=-DHAVE_CONFIG_H
4614 # Without the "./", some shells look in PATH for config.status.
4615 : ${CONFIG_STATUS=./config.status}
4617 echo creating $CONFIG_STATUS
4618 rm -f $CONFIG_STATUS
4619 cat > $CONFIG_STATUS <<EOF
4620 #! /bin/sh
4621 # Generated automatically by configure.
4622 # Run this file to recreate the current configuration.
4623 # This directory was configured as follows,
4624 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4626 # $0 $ac_configure_args
4628 # Compiler output produced by configure, useful for debugging
4629 # configure, is in ./config.log if it exists.
4631 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4632 for ac_option
4634 case "\$ac_option" in
4635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4636 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4637 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4638 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4639 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4640 exit 0 ;;
4641 -help | --help | --hel | --he | --h)
4642 echo "\$ac_cs_usage"; exit 0 ;;
4643 *) echo "\$ac_cs_usage"; exit 1 ;;
4644 esac
4645 done
4647 ac_given_srcdir=$srcdir
4648 ac_given_INSTALL="$INSTALL"
4650 trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy lib/rpc/dummy
4651 lib/rpc/client/dummy lib/rpc/include/dummy lib/rpc/parse/dummy
4652 lib/rpc/server/dummy lib/smb/dummy ubiqx/dummy web/dummy config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4654 cat >> $CONFIG_STATUS <<EOF
4656 # Protect against being on the right side of a sed subst in config.status.
4657 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4658 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4659 $ac_vpsub
4660 $extrasub
4661 s%@CFLAGS@%$CFLAGS%g
4662 s%@CPPFLAGS@%$CPPFLAGS%g
4663 s%@CXXFLAGS@%$CXXFLAGS%g
4664 s%@DEFS@%$DEFS%g
4665 s%@LDFLAGS@%$LDFLAGS%g
4666 s%@LIBS@%$LIBS%g
4667 s%@exec_prefix@%$exec_prefix%g
4668 s%@prefix@%$prefix%g
4669 s%@program_transform_name@%$program_transform_name%g
4670 s%@bindir@%$bindir%g
4671 s%@sbindir@%$sbindir%g
4672 s%@libexecdir@%$libexecdir%g
4673 s%@datadir@%$datadir%g
4674 s%@sysconfdir@%$sysconfdir%g
4675 s%@sharedstatedir@%$sharedstatedir%g
4676 s%@localstatedir@%$localstatedir%g
4677 s%@libdir@%$libdir%g
4678 s%@includedir@%$includedir%g
4679 s%@oldincludedir@%$oldincludedir%g
4680 s%@infodir@%$infodir%g
4681 s%@mandir@%$mandir%g
4682 s%@CC@%$CC%g
4683 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4684 s%@INSTALL_DATA@%$INSTALL_DATA%g
4685 s%@SHELL@%$SHELL%g
4686 s%@AWK@%$AWK%g
4687 s%@host@%$host%g
4688 s%@host_alias@%$host_alias%g
4689 s%@host_cpu@%$host_cpu%g
4690 s%@host_vendor@%$host_vendor%g
4691 s%@host_os@%$host_os%g
4692 s%@target@%$target%g
4693 s%@target_alias@%$target_alias%g
4694 s%@target_cpu@%$target_cpu%g
4695 s%@target_vendor@%$target_vendor%g
4696 s%@target_os@%$target_os%g
4697 s%@build@%$build%g
4698 s%@build_alias@%$build_alias%g
4699 s%@build_cpu@%$build_cpu%g
4700 s%@build_vendor@%$build_vendor%g
4701 s%@build_os@%$build_os%g
4702 s%@CPP@%$CPP%g
4703 s%@LIBOBJS@%$LIBOBJS%g
4705 CEOF
4708 cat >> $CONFIG_STATUS <<\EOF
4710 # Split the substitutions into bite-sized pieces for seds with
4711 # small command number limits, like on Digital OSF/1 and HP-UX.
4712 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4713 ac_file=1 # Number of current file.
4714 ac_beg=1 # First line for current file.
4715 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4716 ac_more_lines=:
4717 ac_sed_cmds=""
4718 while $ac_more_lines; do
4719 if test $ac_beg -gt 1; then
4720 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4721 else
4722 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4724 if test ! -s conftest.s$ac_file; then
4725 ac_more_lines=false
4726 rm -f conftest.s$ac_file
4727 else
4728 if test -z "$ac_sed_cmds"; then
4729 ac_sed_cmds="sed -f conftest.s$ac_file"
4730 else
4731 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4733 ac_file=`expr $ac_file + 1`
4734 ac_beg=$ac_end
4735 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4737 done
4738 if test -z "$ac_sed_cmds"; then
4739 ac_sed_cmds=cat
4743 cat >> $CONFIG_STATUS <<EOF
4745 CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy lib/rpc/dummy
4746 lib/rpc/client/dummy lib/rpc/include/dummy lib/rpc/parse/dummy
4747 lib/rpc/server/dummy lib/smb/dummy ubiqx/dummy web/dummy"}
4749 cat >> $CONFIG_STATUS <<\EOF
4750 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4752 case "$ac_file" in
4753 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4754 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4755 *) ac_file_in="${ac_file}.in" ;;
4756 esac
4758 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4760 # Remove last slash and all that follows it. Not all systems have dirname.
4761 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4763 # The file is in a subdirectory.
4764 test ! -d "$ac_dir" && mkdir "$ac_dir"
4765 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4766 # A "../" for each directory in $ac_dir_suffix.
4767 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4768 else
4769 ac_dir_suffix= ac_dots=
4772 case "$ac_given_srcdir" in
4773 .) srcdir=.
4774 if test -z "$ac_dots"; then top_srcdir=.
4775 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4776 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4777 *) # Relative path.
4778 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4779 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4780 esac
4782 case "$ac_given_INSTALL" in
4783 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4784 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4785 esac
4787 echo creating "$ac_file"
4788 rm -f "$ac_file"
4789 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4790 case "$ac_file" in
4791 *Makefile*) ac_comsub="1i\\
4792 # $configure_input" ;;
4793 *) ac_comsub= ;;
4794 esac
4796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4797 sed -e "$ac_comsub
4798 s%@configure_input@%$configure_input%g
4799 s%@srcdir@%$srcdir%g
4800 s%@top_srcdir@%$top_srcdir%g
4801 s%@INSTALL@%$INSTALL%g
4802 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4803 fi; done
4804 rm -f conftest.s*
4806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4809 # ac_d sets the value in "#define NAME VALUE" lines.
4810 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4811 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4812 ac_dC='\3'
4813 ac_dD='%g'
4814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4815 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4816 ac_uB='\([ ]\)%\1#\2define\3'
4817 ac_uC=' '
4818 ac_uD='\4%g'
4819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4820 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4821 ac_eB='$%\1#\2define\3'
4822 ac_eC=' '
4823 ac_eD='%g'
4825 if test "${CONFIG_HEADERS+set}" != set; then
4827 cat >> $CONFIG_STATUS <<EOF
4828 CONFIG_HEADERS="config.h"
4830 cat >> $CONFIG_STATUS <<\EOF
4832 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4834 case "$ac_file" in
4835 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4836 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4837 *) ac_file_in="${ac_file}.in" ;;
4838 esac
4840 echo creating $ac_file
4842 rm -f conftest.frag conftest.in conftest.out
4843 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4844 cat $ac_file_inputs > conftest.in
4848 # Transform confdefs.h into a sed script conftest.vals that substitutes
4849 # the proper values into config.h.in to produce config.h. And first:
4850 # Protect against being on the right side of a sed subst in config.status.
4851 # Protect against being in an unquoted here document in config.status.
4852 rm -f conftest.vals
4853 cat > conftest.hdr <<\EOF
4854 s/[\\&%]/\\&/g
4855 s%[\\$`]%\\&%g
4856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4857 s%ac_d%ac_u%gp
4858 s%ac_u%ac_e%gp
4860 sed -n -f conftest.hdr confdefs.h > conftest.vals
4861 rm -f conftest.hdr
4863 # This sed command replaces #undef with comments. This is necessary, for
4864 # example, in the case of _POSIX_SOURCE, which is predefined and required
4865 # on some systems where configure will not decide to define it.
4866 cat >> conftest.vals <<\EOF
4867 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4870 # Break up conftest.vals because some shells have a limit on
4871 # the size of here documents, and old seds have small limits too.
4873 rm -f conftest.tail
4874 while :
4876 ac_lines=`grep -c . conftest.vals`
4877 # grep -c gives empty output for an empty file on some AIX systems.
4878 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4879 # Write a limited-size here document to conftest.frag.
4880 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4881 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4882 echo 'CEOF
4883 sed -f conftest.frag conftest.in > conftest.out
4884 rm -f conftest.in
4885 mv conftest.out conftest.in
4886 ' >> $CONFIG_STATUS
4887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4888 rm -f conftest.vals
4889 mv conftest.tail conftest.vals
4890 done
4891 rm -f conftest.vals
4893 cat >> $CONFIG_STATUS <<\EOF
4894 rm -f conftest.frag conftest.h
4895 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4896 cat conftest.in >> conftest.h
4897 rm -f conftest.in
4898 if cmp -s $ac_file conftest.h 2>/dev/null; then
4899 echo "$ac_file is unchanged"
4900 rm -f conftest.h
4901 else
4902 # Remove last slash and all that follows it. Not all systems have dirname.
4903 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4905 # The file is in a subdirectory.
4906 test ! -d "$ac_dir" && mkdir "$ac_dir"
4908 rm -f $ac_file
4909 mv conftest.h $ac_file
4911 fi; done
4914 cat >> $CONFIG_STATUS <<EOF
4917 cat >> $CONFIG_STATUS <<\EOF
4919 exit 0
4921 chmod +x $CONFIG_STATUS
4922 rm -fr confdefs* $ac_clean_files
4923 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1