preparing for release of 2.0.0beta3
[Samba.git] / source / configure
blob83295badf289485069e657de7842f10b177c9235
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_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-maintainer-mode enable some make rules for maintainers"
17 ac_help="$ac_help
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
20 ac_help="$ac_help
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
23 ac_help="$ac_help
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
26 ac_help="$ac_help
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
29 ac_help="$ac_help
30 --with-automount Include AUTOMOUNT support
31 --without-automount Don't include AUTOMOUNT support (default)"
32 ac_help="$ac_help
33 --with-smbmount Include SMBMOUNT (Linux only) support
34 --without-smbmount Don't include SMBMOUNT support (default)"
35 ac_help="$ac_help
36 --with-ldap Include LDAP support
37 --without-ldap Don't include LDAP support (default)"
38 ac_help="$ac_help
39 --with-nisplus Include NISPLUS password database support
40 --without-nisplus Don't include NISPLUS password database support (default)"
41 ac_help="$ac_help
42 --with-nisplus-home Include NISPLUS_HOME support
43 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
44 ac_help="$ac_help
45 --with-ssl Include SSL support
46 --without-ssl Don't include SSL support (default)"
47 ac_help="$ac_help
48 --with-mmap Include experimental MMAP support
49 --without-mmap Don't include MMAP support (default)"
50 ac_help="$ac_help
51 --with-syslog Include experimental SYSLOG support
52 --without-syslog Don't include SYSLOG support (default)"
53 ac_help="$ac_help
54 --with-netatalk Include experimental Netatalk support
55 --without-netatalk Don't include experimental Netatalk support (default)"
56 ac_help="$ac_help
57 --with-quotas Include experimental disk-quota support
58 --without-quotas Don't include experimental disk-quota support (default)"
59 ac_help="$ac_help
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
61 ac_help="$ac_help
62 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 # Maximum number of lines to put in a shell here document.
102 ac_max_here_lines=12
104 ac_prev=
105 for ac_option
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
111 ac_prev=
112 continue
115 case "$ac_option" in
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 *) ac_optarg= ;;
118 esac
120 # Accept the important Cygnus configure options, so we can diagnose typos.
122 case "$ac_option" in
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
125 ac_prev=bindir ;;
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
130 ac_prev=build ;;
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142 ac_prev=datadir ;;
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144 | --da=*)
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 case "$ac_option" in
164 *=*) ;;
165 *) ac_optarg=yes ;;
166 esac
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
180 with_gas=yes ;;
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
185 cat << EOF
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
188 Configuration:
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
196 [$ac_default_prefix]
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 [same as prefix]
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
203 [PREFIX/share]
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 [PREFIX/com]
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
219 cat << EOF
220 Host type:
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
235 exit 0 ;;
237 -host | --host | --hos | --ho)
238 ac_prev=host ;;
239 -host=* | --host=* | --hos=* | --ho=*)
240 host="$ac_optarg" ;;
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 ac_prev=infodir ;;
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
255 ac_prev=libdir ;;
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 ac_prev=mandir ;;
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
280 -nfp | --nfp | --nf)
281 # Obsolete; use --without-fp.
282 with_fp=no ;;
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 | --no-cr | --no-c)
286 no_create=yes ;;
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 no_recursion=yes ;;
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 ac_prev=prefix ;;
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
339 silent=yes ;;
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 ac_prev=sbindir ;;
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 | --sbi=* | --sb=*)
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
350 | --sha | --sh)
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 | --sha=* | --sh=*)
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
359 ac_prev=site ;;
360 -site=* | --site=* | --sit=*)
361 site="$ac_optarg" ;;
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 ac_prev=srcdir ;;
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
376 ac_prev=target ;;
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 verbose=yes ;;
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.12"
385 exit 0 ;;
387 -with-* | --with-*)
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case "$ac_option" in
395 *=*) ;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437 nonopt="$ac_option"
440 esac
441 done
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
450 # 0 standard input
451 # 1 file creation
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
458 exec 6>/dev/null
459 else
460 exec 6>&1
462 exec 5>./config.log
464 echo "\
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
467 " 1>&5
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
471 ac_configure_args=
472 for ac_arg
474 case "$ac_arg" in
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
482 esac
483 done
485 # NLS nuisances.
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 echo > confdefs.h
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=include/includes.h
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
508 ac_prog=$0
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
515 else
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 else
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
531 else
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
538 . "$ac_site_file"
540 done
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
544 . $cache_file
545 else
546 echo "creating cache $cache_file"
547 > $cache_file
550 ac_ext=c
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='
561 ' ac_t=' '
562 else
563 ac_n=-n ac_c= ac_t=
565 else
566 ac_n= ac_c='\c' ac_t=
571 # we want to be compatibe with older versions of Samba
582 # compile with optimisation and without debugging by default
583 CFLAGS=${CFLAGS-"-O"}
585 # Extract the first word of "gcc", so it can be a program name with args.
586 set dummy gcc; ac_word=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 if test -n "$CC"; then
593 ac_cv_prog_CC="$CC" # Let the user override the test.
594 else
595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
596 for ac_dir in $PATH; do
597 test -z "$ac_dir" && ac_dir=.
598 if test -f $ac_dir/$ac_word; then
599 ac_cv_prog_CC="gcc"
600 break
602 done
603 IFS="$ac_save_ifs"
606 CC="$ac_cv_prog_CC"
607 if test -n "$CC"; then
608 echo "$ac_t""$CC" 1>&6
609 else
610 echo "$ac_t""no" 1>&6
613 if test -z "$CC"; then
614 # Extract the first word of "cc", so it can be a program name with args.
615 set dummy cc; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620 else
621 if test -n "$CC"; then
622 ac_cv_prog_CC="$CC" # Let the user override the test.
623 else
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
625 ac_prog_rejected=no
626 for ac_dir in $PATH; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
629 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
630 ac_prog_rejected=yes
631 continue
633 ac_cv_prog_CC="cc"
634 break
636 done
637 IFS="$ac_save_ifs"
638 if test $ac_prog_rejected = yes; then
639 # We found a bogon in the path, so make sure we never use it.
640 set dummy $ac_cv_prog_CC
641 shift
642 if test $# -gt 0; then
643 # We chose a different compiler from the bogus one.
644 # However, it has the same basename, so the bogon will be chosen
645 # first if we set CC to just the basename; use the full file name.
646 shift
647 set dummy "$ac_dir/$ac_word" "$@"
648 shift
649 ac_cv_prog_CC="$@"
654 CC="$ac_cv_prog_CC"
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657 else
658 echo "$ac_t""no" 1>&6
661 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
665 echo "configure:666: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
667 ac_ext=c
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
674 cat > conftest.$ac_ext <<EOF
675 #line 676 "configure"
676 #include "confdefs.h"
677 main(){return(0);}
679 if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
680 ac_cv_prog_cc_works=yes
681 # If we can't run a trivial program, we are probably using a cross compiler.
682 if (./conftest; exit) 2>/dev/null; then
683 ac_cv_prog_cc_cross=no
684 else
685 ac_cv_prog_cc_cross=yes
687 else
688 echo "configure: failed program was:" >&5
689 cat conftest.$ac_ext >&5
690 ac_cv_prog_cc_works=no
692 rm -fr conftest*
694 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
695 if test $ac_cv_prog_cc_works = no; then
696 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
698 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
699 echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
700 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
701 cross_compiling=$ac_cv_prog_cc_cross
703 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
704 echo "configure:705: checking whether we are using GNU C" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
707 else
708 cat > conftest.c <<EOF
709 #ifdef __GNUC__
710 yes;
711 #endif
713 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
714 ac_cv_prog_gcc=yes
715 else
716 ac_cv_prog_gcc=no
720 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
722 if test $ac_cv_prog_gcc = yes; then
723 GCC=yes
724 ac_test_CFLAGS="${CFLAGS+set}"
725 ac_save_CFLAGS="$CFLAGS"
726 CFLAGS=
727 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${CC-cc} accepts -g" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
732 echo 'void f(){}' > conftest.c
733 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
734 ac_cv_prog_cc_g=yes
735 else
736 ac_cv_prog_cc_g=no
738 rm -f conftest*
742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
743 if test "$ac_test_CFLAGS" = set; then
744 CFLAGS="$ac_save_CFLAGS"
745 elif test $ac_cv_prog_cc_g = yes; then
746 CFLAGS="-g -O2"
747 else
748 CFLAGS="-O2"
750 else
751 GCC=
752 test "${CFLAGS+set}" = set || CFLAGS="-g"
755 ac_aux_dir=
756 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
757 if test -f $ac_dir/install-sh; then
758 ac_aux_dir=$ac_dir
759 ac_install_sh="$ac_aux_dir/install-sh -c"
760 break
761 elif test -f $ac_dir/install.sh; then
762 ac_aux_dir=$ac_dir
763 ac_install_sh="$ac_aux_dir/install.sh -c"
764 break
766 done
767 if test -z "$ac_aux_dir"; then
768 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
770 ac_config_guess=$ac_aux_dir/config.guess
771 ac_config_sub=$ac_aux_dir/config.sub
772 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
774 # Find a good install program. We prefer a C program (faster),
775 # so one script is as good as another. But avoid the broken or
776 # incompatible versions:
777 # SysV /etc/install, /usr/sbin/install
778 # SunOS /usr/etc/install
779 # IRIX /sbin/install
780 # AIX /bin/install
781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
783 # ./install, which can be erroneously created by make from ./install.sh.
784 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
785 echo "configure:786: checking for a BSD compatible install" >&5
786 if test -z "$INSTALL"; then
787 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
789 else
790 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
791 for ac_dir in $PATH; do
792 # Account for people who put trailing slashes in PATH elements.
793 case "$ac_dir/" in
794 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
796 # OSF1 and SCO ODT 3.0 have their own names for install.
797 for ac_prog in ginstall installbsd scoinst install; do
798 if test -f $ac_dir/$ac_prog; then
799 if test $ac_prog = install &&
800 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
801 # AIX install. It has an incompatible calling convention.
802 # OSF/1 installbsd also uses dspmsg, but is usable.
804 else
805 ac_cv_path_install="$ac_dir/$ac_prog -c"
806 break 2
809 done
811 esac
812 done
813 IFS="$ac_save_IFS"
816 if test "${ac_cv_path_install+set}" = set; then
817 INSTALL="$ac_cv_path_install"
818 else
819 # As a last resort, use the slow shell script. We don't cache a
820 # path for INSTALL within a source directory, because that will
821 # break other packages using the cache if that directory is
822 # removed, or if the path is relative.
823 INSTALL="$ac_install_sh"
826 echo "$ac_t""$INSTALL" 1>&6
828 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
829 # It thinks the first close brace ends the variable substitution.
830 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
834 for ac_prog in mawk gawk nawk awk
836 # Extract the first word of "$ac_prog", so it can be a program name with args.
837 set dummy $ac_prog; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 if test -n "$AWK"; then
844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
847 for ac_dir in $PATH; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_AWK="$ac_prog"
851 break
853 done
854 IFS="$ac_save_ifs"
857 AWK="$ac_cv_prog_AWK"
858 if test -n "$AWK"; then
859 echo "$ac_t""$AWK" 1>&6
860 else
861 echo "$ac_t""no" 1>&6
864 test -n "$AWK" && break
865 done
869 # Do some error checking and defaulting for the host and target type.
870 # The inputs are:
871 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
873 # The rules are:
874 # 1. You are not allowed to specify --host, --target, and nonopt at the
875 # same time.
876 # 2. Host defaults to nonopt.
877 # 3. If nonopt is not specified, then host defaults to the current host,
878 # as determined by config.guess.
879 # 4. Target and build default to nonopt.
880 # 5. If nonopt is not specified, then target and build default to host.
882 # The aliases save the names the user supplied, while $host etc.
883 # will get canonicalized.
884 case $host---$target---$nonopt in
885 NONE---*---* | *---NONE---* | *---*---NONE) ;;
886 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
887 esac
890 # Make sure we can run config.sub.
891 if $ac_config_sub sun4 >/dev/null 2>&1; then :
892 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
895 echo $ac_n "checking host system type""... $ac_c" 1>&6
896 echo "configure:897: checking host system type" >&5
898 host_alias=$host
899 case "$host_alias" in
900 NONE)
901 case $nonopt in
902 NONE)
903 if host_alias=`$ac_config_guess`; then :
904 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
905 fi ;;
906 *) host_alias=$nonopt ;;
907 esac ;;
908 esac
910 host=`$ac_config_sub $host_alias`
911 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
912 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
913 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
914 echo "$ac_t""$host" 1>&6
916 echo $ac_n "checking target system type""... $ac_c" 1>&6
917 echo "configure:918: checking target system type" >&5
919 target_alias=$target
920 case "$target_alias" in
921 NONE)
922 case $nonopt in
923 NONE) target_alias=$host_alias ;;
924 *) target_alias=$nonopt ;;
925 esac ;;
926 esac
928 target=`$ac_config_sub $target_alias`
929 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$target" 1>&6
934 echo $ac_n "checking build system type""... $ac_c" 1>&6
935 echo "configure:936: checking build system type" >&5
937 build_alias=$build
938 case "$build_alias" in
939 NONE)
940 case $nonopt in
941 NONE) build_alias=$host_alias ;;
942 *) build_alias=$nonopt ;;
943 esac ;;
944 esac
946 build=`$ac_config_sub $build_alias`
947 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$build" 1>&6
952 test "$host_alias" != "$target_alias" &&
953 test "$program_prefix$program_suffix$program_transform_name" = \
954 NONENONEs,x,x, &&
955 program_prefix=${target_alias}-
959 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
960 echo "configure:961: checking config.cache system type" >&5
961 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
962 test x"$ac_cv_host_system_type" != x"$host"; } ||
963 { test x"${ac_cv_build_system_type+set}" = x"set" &&
964 test x"$ac_cv_build_system_type" != x"$build"; } ||
965 { test x"${ac_cv_target_system_type+set}" = x"set" &&
966 test x"$ac_cv_target_system_type" != x"$target"; }; then
967 echo "$ac_t""different" 1>&6
968 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
969 else
970 echo "$ac_t""same" 1>&6
972 ac_cv_host_system_type="$host"
973 ac_cv_build_system_type="$build"
974 ac_cv_target_system_type="$target"
977 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
978 if test "${enable_maintainer_mode+set}" = set; then
979 enableval="$enable_maintainer_mode"
980 maint_mode=$enableval
981 else
982 maint_mode=no
985 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
987 # Extract the first word of "autoconf", so it can be a program name with args.
988 set dummy autoconf; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 case "$AUTOCONF" in
996 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1000 for ac_dir in $PATH; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1004 break
1006 done
1007 IFS="$ac_save_ifs"
1008 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1010 esac
1012 AUTOCONF="$ac_cv_path_AUTOCONF"
1013 if test -n "$AUTOCONF"; then
1014 echo "$ac_t""$AUTOCONF" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1020 # Extract the first word of "autoheader", so it can be a program name with args.
1021 set dummy autoheader; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027 case "$AUTOHEADER" in
1029 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1033 for ac_dir in $PATH; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1041 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1043 esac
1045 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1046 if test -n "$AUTOHEADER"; then
1047 echo "$ac_t""$AUTOHEADER" 1>&6
1048 else
1049 echo "$ac_t""no" 1>&6
1056 # Config CPPFLAG settings for strange OS's that must be set
1057 # before other tests.
1059 case "$host_os" in
1060 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1061 *hpux*)
1062 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1063 echo "configure:1064: checking whether ${CC-cc} accepts -Ae" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 echo 'void f(){}' > conftest.c
1068 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1069 ac_cv_prog_cc_Ae=yes
1070 else
1071 ac_cv_prog_cc_Ae=no
1073 rm -f conftest*
1077 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1078 if test $ac_cv_prog_cc_Ae = yes; then
1079 CPPFLAGS="$CPPFLAGS -Ae"
1083 # AIX4.x doesn't even admit to having large
1084 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1086 *aix4*)
1087 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1090 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1091 # to the existance of large files..
1093 *solaris*)
1094 case `uname -r` in
1095 5.6*|5.7*)
1096 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1098 esac
1101 # Tests needed for SINIX large file support.
1103 *sysv4*)
1104 if test $host = mips-sni-sysv4 ; then
1105 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1106 echo "configure:1107: checking for LFS support" >&5
1107 old_CPPFLAGS="$CPPFLAGS"
1108 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1109 if test "$cross_compiling" = yes; then
1110 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1111 else
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1116 #include <unistd.h>
1117 main () {
1118 #if _LFS64_LARGEFILE == 1
1119 exit(0);
1120 #else
1121 exit(1);
1122 #endif
1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1126 then
1127 SINIX_LFS_SUPPORT=yes
1128 else
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1131 rm -fr conftest*
1132 SINIX_LFS_SUPPORT=no
1134 rm -fr conftest*
1137 CPPFLAGS="$old_CPPFLAGS"
1138 if test x$SINIX_LFS_SUPPORT = xyes ; then
1139 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1140 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1141 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1142 LIBS="`getconf LFS64_LIBS` $LIBS"
1144 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1147 esac
1149 echo $ac_n "checking for inline""... $ac_c" 1>&6
1150 echo "configure:1151: checking for inline" >&5
1151 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 ac_cv_c_inline=no
1155 for ac_kw in inline __inline__ __inline; do
1156 cat > conftest.$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1160 int main() {
1161 } $ac_kw foo() {
1162 ; return 0; }
1164 if { (eval echo configure:1165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1165 rm -rf conftest*
1166 ac_cv_c_inline=$ac_kw; break
1167 else
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1171 rm -f conftest*
1172 done
1176 echo "$ac_t""$ac_cv_c_inline" 1>&6
1177 case "$ac_cv_c_inline" in
1178 inline | yes) ;;
1179 no) cat >> confdefs.h <<\EOF
1180 #define inline
1183 *) cat >> confdefs.h <<EOF
1184 #define inline $ac_cv_c_inline
1187 esac
1189 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1190 echo "configure:1191: checking how to run the C preprocessor" >&5
1191 # On Suns, sometimes $CPP names a directory.
1192 if test -n "$CPP" && test -d "$CPP"; then
1193 CPP=
1195 if test -z "$CPP"; then
1196 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 # This must be in double quotes, not single quotes, because CPP may get
1200 # substituted into the Makefile and "${CC-cc}" will confuse make.
1201 CPP="${CC-cc} -E"
1202 # On the NeXT, cc -E runs the code through the compiler's parser,
1203 # not just through cpp.
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 #include <assert.h>
1208 Syntax Error
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out`
1213 if test -z "$ac_err"; then
1215 else
1216 echo "$ac_err" >&5
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1219 rm -rf conftest*
1220 CPP="${CC-cc} -E -traditional-cpp"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #include <assert.h>
1225 Syntax Error
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out`
1230 if test -z "$ac_err"; then
1232 else
1233 echo "$ac_err" >&5
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1236 rm -rf conftest*
1237 CPP=/lib/cpp
1239 rm -f conftest*
1241 rm -f conftest*
1242 ac_cv_prog_CPP="$CPP"
1244 CPP="$ac_cv_prog_CPP"
1245 else
1246 ac_cv_prog_CPP="$CPP"
1248 echo "$ac_t""$CPP" 1>&6
1250 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1251 echo "configure:1252: checking for ANSI C header files" >&5
1252 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 #include <stdlib.h>
1259 #include <stdarg.h>
1260 #include <string.h>
1261 #include <float.h>
1263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1264 { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1265 ac_err=`grep -v '^ *+' conftest.out`
1266 if test -z "$ac_err"; then
1267 rm -rf conftest*
1268 ac_cv_header_stdc=yes
1269 else
1270 echo "$ac_err" >&5
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1273 rm -rf conftest*
1274 ac_cv_header_stdc=no
1276 rm -f conftest*
1278 if test $ac_cv_header_stdc = yes; then
1279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 #include <string.h>
1285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1286 egrep "memchr" >/dev/null 2>&1; then
1288 else
1289 rm -rf conftest*
1290 ac_cv_header_stdc=no
1292 rm -f conftest*
1296 if test $ac_cv_header_stdc = yes; then
1297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 #include <stdlib.h>
1303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1304 egrep "free" >/dev/null 2>&1; then
1306 else
1307 rm -rf conftest*
1308 ac_cv_header_stdc=no
1310 rm -f conftest*
1314 if test $ac_cv_header_stdc = yes; then
1315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1316 if test "$cross_compiling" = yes; then
1318 else
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 #include <ctype.h>
1323 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1324 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1326 int main () { int i; for (i = 0; i < 256; i++)
1327 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1328 exit (0); }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1332 then
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -fr conftest*
1338 ac_cv_header_stdc=no
1340 rm -fr conftest*
1346 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1347 if test $ac_cv_header_stdc = yes; then
1348 cat >> confdefs.h <<\EOF
1349 #define STDC_HEADERS 1
1354 ac_header_dirent=no
1355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1358 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_hdr that defines DIR" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <sys/types.h>
1367 #include <$ac_hdr>
1368 int main() {
1369 DIR *dirp = 0;
1370 ; return 0; }
1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1373 rm -rf conftest*
1374 eval "ac_cv_header_dirent_$ac_safe=yes"
1375 else
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1378 rm -rf conftest*
1379 eval "ac_cv_header_dirent_$ac_safe=no"
1381 rm -f conftest*
1383 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1386 cat >> confdefs.h <<EOF
1387 #define $ac_tr_hdr 1
1389 ac_header_dirent=$ac_hdr; break
1390 else
1391 echo "$ac_t""no" 1>&6
1393 done
1394 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1395 if test $ac_header_dirent = dirent.h; then
1396 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1397 echo "configure:1398: checking for opendir in -ldir" >&5
1398 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 ac_save_LIBS="$LIBS"
1403 LIBS="-ldir $LIBS"
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* Override any gcc2 internal prototype to avoid an error. */
1408 /* We use char because int might match the return type of a gcc2
1409 builtin and then its argument prototype would still apply. */
1410 char opendir();
1412 int main() {
1413 opendir()
1414 ; return 0; }
1416 if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1417 rm -rf conftest*
1418 eval "ac_cv_lib_$ac_lib_var=yes"
1419 else
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1422 rm -rf conftest*
1423 eval "ac_cv_lib_$ac_lib_var=no"
1425 rm -f conftest*
1426 LIBS="$ac_save_LIBS"
1429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1430 echo "$ac_t""yes" 1>&6
1431 LIBS="$LIBS -ldir"
1432 else
1433 echo "$ac_t""no" 1>&6
1436 else
1437 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1438 echo "configure:1439: checking for opendir in -lx" >&5
1439 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 ac_save_LIBS="$LIBS"
1444 LIBS="-lx $LIBS"
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* Override any gcc2 internal prototype to avoid an error. */
1449 /* We use char because int might match the return type of a gcc2
1450 builtin and then its argument prototype would still apply. */
1451 char opendir();
1453 int main() {
1454 opendir()
1455 ; return 0; }
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1458 rm -rf conftest*
1459 eval "ac_cv_lib_$ac_lib_var=yes"
1460 else
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1463 rm -rf conftest*
1464 eval "ac_cv_lib_$ac_lib_var=no"
1466 rm -f conftest*
1467 LIBS="$ac_save_LIBS"
1470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1471 echo "$ac_t""yes" 1>&6
1472 LIBS="$LIBS -lx"
1473 else
1474 echo "$ac_t""no" 1>&6
1479 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1480 echo "configure:1481: checking whether time.h and sys/time.h may both be included" >&5
1481 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <sys/types.h>
1488 #include <sys/time.h>
1489 #include <time.h>
1490 int main() {
1491 struct tm *tp;
1492 ; return 0; }
1494 if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1495 rm -rf conftest*
1496 ac_cv_header_time=yes
1497 else
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 rm -rf conftest*
1501 ac_cv_header_time=no
1503 rm -f conftest*
1506 echo "$ac_t""$ac_cv_header_time" 1>&6
1507 if test $ac_cv_header_time = yes; then
1508 cat >> confdefs.h <<\EOF
1509 #define TIME_WITH_SYS_TIME 1
1514 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1515 echo "configure:1516: checking for sys/wait.h that is POSIX.1 compatible" >&5
1516 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <sys/types.h>
1523 #include <sys/wait.h>
1524 #ifndef WEXITSTATUS
1525 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1526 #endif
1527 #ifndef WIFEXITED
1528 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1529 #endif
1530 int main() {
1531 int s;
1532 wait (&s);
1533 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1534 ; return 0; }
1536 if { (eval echo configure:1537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1537 rm -rf conftest*
1538 ac_cv_header_sys_wait_h=yes
1539 else
1540 echo "configure: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 rm -rf conftest*
1543 ac_cv_header_sys_wait_h=no
1545 rm -f conftest*
1548 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1549 if test $ac_cv_header_sys_wait_h = yes; then
1550 cat >> confdefs.h <<\EOF
1551 #define HAVE_SYS_WAIT_H 1
1556 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_hdr" >&5
1561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 #include <$ac_hdr>
1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err=`grep -v '^ *+' conftest.out`
1572 if test -z "$ac_err"; then
1573 rm -rf conftest*
1574 eval "ac_cv_header_$ac_safe=yes"
1575 else
1576 echo "$ac_err" >&5
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 eval "ac_cv_header_$ac_safe=no"
1582 rm -f conftest*
1584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1585 echo "$ac_t""yes" 1>&6
1586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1587 cat >> confdefs.h <<EOF
1588 #define $ac_tr_hdr 1
1591 else
1592 echo "$ac_t""no" 1>&6
1594 done
1596 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1600 echo "configure:1601: checking for $ac_hdr" >&5
1601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <$ac_hdr>
1609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1610 { (eval echo configure:1611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1611 ac_err=`grep -v '^ *+' conftest.out`
1612 if test -z "$ac_err"; then
1613 rm -rf conftest*
1614 eval "ac_cv_header_$ac_safe=yes"
1615 else
1616 echo "$ac_err" >&5
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_header_$ac_safe=no"
1622 rm -f conftest*
1624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1627 cat >> confdefs.h <<EOF
1628 #define $ac_tr_hdr 1
1631 else
1632 echo "$ac_t""no" 1>&6
1634 done
1636 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_hdr" >&5
1641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <$ac_hdr>
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out`
1652 if test -z "$ac_err"; then
1653 rm -rf conftest*
1654 eval "ac_cv_header_$ac_safe=yes"
1655 else
1656 echo "$ac_err" >&5
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_header_$ac_safe=no"
1662 rm -f conftest*
1664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1667 cat >> confdefs.h <<EOF
1668 #define $ac_tr_hdr 1
1671 else
1672 echo "$ac_t""no" 1>&6
1674 done
1676 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_hdr" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <$ac_hdr>
1689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1690 { (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1691 ac_err=`grep -v '^ *+' conftest.out`
1692 if test -z "$ac_err"; then
1693 rm -rf conftest*
1694 eval "ac_cv_header_$ac_safe=yes"
1695 else
1696 echo "$ac_err" >&5
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 eval "ac_cv_header_$ac_safe=no"
1702 rm -f conftest*
1704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_hdr 1
1711 else
1712 echo "$ac_t""no" 1>&6
1714 done
1716 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_hdr" >&5
1721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 #include <$ac_hdr>
1729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1730 { (eval echo configure:1731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1731 ac_err=`grep -v '^ *+' conftest.out`
1732 if test -z "$ac_err"; then
1733 rm -rf conftest*
1734 eval "ac_cv_header_$ac_safe=yes"
1735 else
1736 echo "$ac_err" >&5
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -rf conftest*
1740 eval "ac_cv_header_$ac_safe=no"
1742 rm -f conftest*
1744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1747 cat >> confdefs.h <<EOF
1748 #define $ac_tr_hdr 1
1751 else
1752 echo "$ac_t""no" 1>&6
1754 done
1756 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_hdr" >&5
1761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <$ac_hdr>
1769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1770 { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1771 ac_err=`grep -v '^ *+' conftest.out`
1772 if test -z "$ac_err"; then
1773 rm -rf conftest*
1774 eval "ac_cv_header_$ac_safe=yes"
1775 else
1776 echo "$ac_err" >&5
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 rm -rf conftest*
1780 eval "ac_cv_header_$ac_safe=no"
1782 rm -f conftest*
1784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1787 cat >> confdefs.h <<EOF
1788 #define $ac_tr_hdr 1
1791 else
1792 echo "$ac_t""no" 1>&6
1794 done
1796 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_hdr" >&5
1801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #include <$ac_hdr>
1809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1810 { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1811 ac_err=`grep -v '^ *+' conftest.out`
1812 if test -z "$ac_err"; then
1813 rm -rf conftest*
1814 eval "ac_cv_header_$ac_safe=yes"
1815 else
1816 echo "$ac_err" >&5
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -rf conftest*
1820 eval "ac_cv_header_$ac_safe=no"
1822 rm -f conftest*
1824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1825 echo "$ac_t""yes" 1>&6
1826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1827 cat >> confdefs.h <<EOF
1828 #define $ac_tr_hdr 1
1831 else
1832 echo "$ac_t""no" 1>&6
1834 done
1836 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_hdr" >&5
1841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843 else
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 #include <$ac_hdr>
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out`
1852 if test -z "$ac_err"; then
1853 rm -rf conftest*
1854 eval "ac_cv_header_$ac_safe=yes"
1855 else
1856 echo "$ac_err" >&5
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 rm -rf conftest*
1860 eval "ac_cv_header_$ac_safe=no"
1862 rm -f conftest*
1864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1867 cat >> confdefs.h <<EOF
1868 #define $ac_tr_hdr 1
1871 else
1872 echo "$ac_t""no" 1>&6
1874 done
1876 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_hdr" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <$ac_hdr>
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out`
1892 if test -z "$ac_err"; then
1893 rm -rf conftest*
1894 eval "ac_cv_header_$ac_safe=yes"
1895 else
1896 echo "$ac_err" >&5
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 eval "ac_cv_header_$ac_safe=no"
1902 rm -f conftest*
1904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1905 echo "$ac_t""yes" 1>&6
1906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1907 cat >> confdefs.h <<EOF
1908 #define $ac_tr_hdr 1
1911 else
1912 echo "$ac_t""no" 1>&6
1914 done
1916 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1920 echo "configure:1921: checking for $ac_hdr" >&5
1921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 #include <$ac_hdr>
1929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1930 { (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1931 ac_err=`grep -v '^ *+' conftest.out`
1932 if test -z "$ac_err"; then
1933 rm -rf conftest*
1934 eval "ac_cv_header_$ac_safe=yes"
1935 else
1936 echo "$ac_err" >&5
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 rm -rf conftest*
1940 eval "ac_cv_header_$ac_safe=no"
1942 rm -f conftest*
1944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1945 echo "$ac_t""yes" 1>&6
1946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1947 cat >> confdefs.h <<EOF
1948 #define $ac_tr_hdr 1
1951 else
1952 echo "$ac_t""no" 1>&6
1954 done
1956 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
1958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_hdr" >&5
1961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 #include <$ac_hdr>
1969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err=`grep -v '^ *+' conftest.out`
1972 if test -z "$ac_err"; then
1973 rm -rf conftest*
1974 eval "ac_cv_header_$ac_safe=yes"
1975 else
1976 echo "$ac_err" >&5
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 rm -rf conftest*
1980 eval "ac_cv_header_$ac_safe=no"
1982 rm -f conftest*
1984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1985 echo "$ac_t""yes" 1>&6
1986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1987 cat >> confdefs.h <<EOF
1988 #define $ac_tr_hdr 1
1991 else
1992 echo "$ac_t""no" 1>&6
1994 done
1997 echo $ac_n "checking size of int""... $ac_c" 1>&6
1998 echo "configure:1999: checking size of int" >&5
1999 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 if test "$cross_compiling" = yes; then
2003 ac_cv_sizeof_int=cross
2004 else
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 #include <stdio.h>
2009 main()
2011 FILE *f=fopen("conftestval", "w");
2012 if (!f) exit(1);
2013 fprintf(f, "%d\n", sizeof(int));
2014 exit(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_sizeof_int=`cat conftestval`
2020 else
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 rm -fr conftest*
2024 ac_cv_sizeof_int=0
2026 rm -fr conftest*
2030 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2031 cat >> confdefs.h <<EOF
2032 #define SIZEOF_INT $ac_cv_sizeof_int
2036 echo $ac_n "checking size of long""... $ac_c" 1>&6
2037 echo "configure:2038: checking size of long" >&5
2038 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 if test "$cross_compiling" = yes; then
2042 ac_cv_sizeof_long=cross
2043 else
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 #include <stdio.h>
2048 main()
2050 FILE *f=fopen("conftestval", "w");
2051 if (!f) exit(1);
2052 fprintf(f, "%d\n", sizeof(long));
2053 exit(0);
2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2057 then
2058 ac_cv_sizeof_long=`cat conftestval`
2059 else
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 rm -fr conftest*
2063 ac_cv_sizeof_long=0
2065 rm -fr conftest*
2069 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2070 cat >> confdefs.h <<EOF
2071 #define SIZEOF_LONG $ac_cv_sizeof_long
2075 echo $ac_n "checking size of short""... $ac_c" 1>&6
2076 echo "configure:2077: checking size of short" >&5
2077 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2079 else
2080 if test "$cross_compiling" = yes; then
2081 ac_cv_sizeof_short=cross
2082 else
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 #include <stdio.h>
2087 main()
2089 FILE *f=fopen("conftestval", "w");
2090 if (!f) exit(1);
2091 fprintf(f, "%d\n", sizeof(short));
2092 exit(0);
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2096 then
2097 ac_cv_sizeof_short=`cat conftestval`
2098 else
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -fr conftest*
2102 ac_cv_sizeof_short=0
2104 rm -fr conftest*
2108 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2109 cat >> confdefs.h <<EOF
2110 #define SIZEOF_SHORT $ac_cv_sizeof_short
2115 echo $ac_n "checking for working const""... $ac_c" 1>&6
2116 echo "configure:2117: checking for working const" >&5
2117 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2124 int main() {
2126 /* Ultrix mips cc rejects this. */
2127 typedef int charset[2]; const charset x;
2128 /* SunOS 4.1.1 cc rejects this. */
2129 char const *const *ccp;
2130 char **p;
2131 /* NEC SVR4.0.2 mips cc rejects this. */
2132 struct point {int x, y;};
2133 static struct point const zero = {0,0};
2134 /* AIX XL C 1.02.0.0 rejects this.
2135 It does not let you subtract one const X* pointer from another in an arm
2136 of an if-expression whose if-part is not a constant expression */
2137 const char *g = "string";
2138 ccp = &g + (g ? g-g : 0);
2139 /* HPUX 7.0 cc rejects these. */
2140 ++ccp;
2141 p = (char**) ccp;
2142 ccp = (char const *const *) p;
2143 { /* SCO 3.2v4 cc rejects this. */
2144 char *t;
2145 char const *s = 0 ? (char *) 0 : (char const *) 0;
2147 *t++ = 0;
2149 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2150 int x[] = {25, 17};
2151 const int *foo = &x[0];
2152 ++foo;
2154 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2155 typedef const int *iptr;
2156 iptr p = 0;
2157 ++p;
2159 { /* AIX XL C 1.02.0.0 rejects this saying
2160 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2161 struct s { int j; const int *ap[3]; };
2162 struct s *b; b->j = 5;
2164 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2165 const int foo = 10;
2168 ; return 0; }
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 rm -rf conftest*
2172 ac_cv_c_const=yes
2173 else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 ac_cv_c_const=no
2179 rm -f conftest*
2182 echo "$ac_t""$ac_cv_c_const" 1>&6
2183 if test $ac_cv_c_const = no; then
2184 cat >> confdefs.h <<\EOF
2185 #define const
2190 echo $ac_n "checking for inline""... $ac_c" 1>&6
2191 echo "configure:2192: checking for inline" >&5
2192 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2194 else
2195 ac_cv_c_inline=no
2196 for ac_kw in inline __inline__ __inline; do
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2201 int main() {
2202 } $ac_kw foo() {
2203 ; return 0; }
2205 if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 rm -rf conftest*
2207 ac_cv_c_inline=$ac_kw; break
2208 else
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2212 rm -f conftest*
2213 done
2217 echo "$ac_t""$ac_cv_c_inline" 1>&6
2218 case "$ac_cv_c_inline" in
2219 inline | yes) ;;
2220 no) cat >> confdefs.h <<\EOF
2221 #define inline
2224 *) cat >> confdefs.h <<EOF
2225 #define inline $ac_cv_c_inline
2228 esac
2230 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether byte ordering is bigendian" >&5
2232 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 ac_cv_c_bigendian=unknown
2236 # See if sys/param.h defines the BYTE_ORDER macro.
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <sys/types.h>
2241 #include <sys/param.h>
2242 int main() {
2244 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2245 bogus endian macros
2246 #endif
2247 ; return 0; }
2249 if { (eval echo configure:2250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2250 rm -rf conftest*
2251 # It does; now see whether it defined to BIG_ENDIAN or not.
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 #include <sys/types.h>
2256 #include <sys/param.h>
2257 int main() {
2259 #if BYTE_ORDER != BIG_ENDIAN
2260 not big endian
2261 #endif
2262 ; return 0; }
2264 if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 rm -rf conftest*
2266 ac_cv_c_bigendian=yes
2267 else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 ac_cv_c_bigendian=no
2273 rm -f conftest*
2274 else
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 rm -f conftest*
2279 if test $ac_cv_c_bigendian = unknown; then
2280 if test "$cross_compiling" = yes; then
2281 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2282 else
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 main () {
2287 /* Are we little or big endian? From Harbison&Steele. */
2288 union
2290 long l;
2291 char c[sizeof (long)];
2292 } u;
2293 u.l = 1;
2294 exit (u.c[sizeof (long) - 1] == 1);
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2298 then
2299 ac_cv_c_bigendian=no
2300 else
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -fr conftest*
2304 ac_cv_c_bigendian=yes
2306 rm -fr conftest*
2312 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2313 if test $ac_cv_c_bigendian = yes; then
2314 cat >> confdefs.h <<\EOF
2315 #define WORDS_BIGENDIAN 1
2320 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether char is unsigned" >&5
2322 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325 if test "$GCC" = yes; then
2326 # GCC predefines this symbol on systems where it applies.
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 #ifdef __CHAR_UNSIGNED__
2332 #endif
2335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2336 egrep "yes" >/dev/null 2>&1; then
2337 rm -rf conftest*
2338 ac_cv_c_char_unsigned=yes
2339 else
2340 rm -rf conftest*
2341 ac_cv_c_char_unsigned=no
2343 rm -f conftest*
2345 else
2346 if test "$cross_compiling" = yes; then
2347 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2348 else
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2353 #if !defined(__STDC__) || __STDC__ != 1
2354 #define volatile
2355 #endif
2356 main() {
2357 volatile char c = 255; exit(c < 0);
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2361 then
2362 ac_cv_c_char_unsigned=yes
2363 else
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 rm -fr conftest*
2367 ac_cv_c_char_unsigned=no
2369 rm -fr conftest*
2375 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2376 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define __CHAR_UNSIGNED__ 1
2384 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2385 echo "configure:2386: checking return type of signal handlers" >&5
2386 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <sys/types.h>
2393 #include <signal.h>
2394 #ifdef signal
2395 #undef signal
2396 #endif
2397 #ifdef __cplusplus
2398 extern "C" void (*signal (int, void (*)(int)))(int);
2399 #else
2400 void (*signal ()) ();
2401 #endif
2403 int main() {
2404 int i;
2405 ; return 0; }
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 rm -rf conftest*
2409 ac_cv_type_signal=void
2410 else
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 rm -rf conftest*
2414 ac_cv_type_signal=int
2416 rm -f conftest*
2419 echo "$ac_t""$ac_cv_type_signal" 1>&6
2420 cat >> confdefs.h <<EOF
2421 #define RETSIGTYPE $ac_cv_type_signal
2425 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2426 echo "configure:2427: checking for uid_t in sys/types.h" >&5
2427 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <sys/types.h>
2435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2436 egrep "uid_t" >/dev/null 2>&1; then
2437 rm -rf conftest*
2438 ac_cv_type_uid_t=yes
2439 else
2440 rm -rf conftest*
2441 ac_cv_type_uid_t=no
2443 rm -f conftest*
2447 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2448 if test $ac_cv_type_uid_t = no; then
2449 cat >> confdefs.h <<\EOF
2450 #define uid_t int
2453 cat >> confdefs.h <<\EOF
2454 #define gid_t int
2459 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2460 echo "configure:2461: checking for mode_t" >&5
2461 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 #include <sys/types.h>
2468 #if STDC_HEADERS
2469 #include <stdlib.h>
2470 #include <stddef.h>
2471 #endif
2473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2474 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2475 rm -rf conftest*
2476 ac_cv_type_mode_t=yes
2477 else
2478 rm -rf conftest*
2479 ac_cv_type_mode_t=no
2481 rm -f conftest*
2484 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2485 if test $ac_cv_type_mode_t = no; then
2486 cat >> confdefs.h <<\EOF
2487 #define mode_t int
2492 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2493 echo "configure:2494: checking for off_t" >&5
2494 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496 else
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 #include <sys/types.h>
2501 #if STDC_HEADERS
2502 #include <stdlib.h>
2503 #include <stddef.h>
2504 #endif
2506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2508 rm -rf conftest*
2509 ac_cv_type_off_t=yes
2510 else
2511 rm -rf conftest*
2512 ac_cv_type_off_t=no
2514 rm -f conftest*
2517 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2518 if test $ac_cv_type_off_t = no; then
2519 cat >> confdefs.h <<\EOF
2520 #define off_t long
2525 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2526 echo "configure:2527: checking for size_t" >&5
2527 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <sys/types.h>
2534 #if STDC_HEADERS
2535 #include <stdlib.h>
2536 #include <stddef.h>
2537 #endif
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2541 rm -rf conftest*
2542 ac_cv_type_size_t=yes
2543 else
2544 rm -rf conftest*
2545 ac_cv_type_size_t=no
2547 rm -f conftest*
2550 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2551 if test $ac_cv_type_size_t = no; then
2552 cat >> confdefs.h <<\EOF
2553 #define size_t unsigned
2558 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2559 echo "configure:2560: checking for pid_t" >&5
2560 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 #include <sys/types.h>
2567 #if STDC_HEADERS
2568 #include <stdlib.h>
2569 #include <stddef.h>
2570 #endif
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2574 rm -rf conftest*
2575 ac_cv_type_pid_t=yes
2576 else
2577 rm -rf conftest*
2578 ac_cv_type_pid_t=no
2580 rm -f conftest*
2583 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2584 if test $ac_cv_type_pid_t = no; then
2585 cat >> confdefs.h <<\EOF
2586 #define pid_t int
2591 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2592 echo "configure:2593: checking for st_rdev in struct stat" >&5
2593 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2595 else
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #include <sys/types.h>
2600 #include <sys/stat.h>
2601 int main() {
2602 struct stat s; s.st_rdev;
2603 ; return 0; }
2605 if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2606 rm -rf conftest*
2607 ac_cv_struct_st_rdev=yes
2608 else
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2611 rm -rf conftest*
2612 ac_cv_struct_st_rdev=no
2614 rm -f conftest*
2617 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2618 if test $ac_cv_struct_st_rdev = yes; then
2619 cat >> confdefs.h <<\EOF
2620 #define HAVE_ST_RDEV 1
2625 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2626 echo "configure:2627: checking for d_off in dirent" >&5
2627 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629 else
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2634 #include <unistd.h>
2635 #include <sys/types.h>
2636 #include <dirent.h>
2637 int main() {
2638 struct dirent d; d.d_off;
2639 ; return 0; }
2641 if { (eval echo configure:2642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2642 rm -rf conftest*
2643 ac_cv_dirent_d_off=yes
2644 else
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -rf conftest*
2648 ac_cv_dirent_d_off=no
2650 rm -f conftest*
2653 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2654 if test $ac_cv_dirent_d_off = yes; then
2655 cat >> confdefs.h <<\EOF
2656 #define HAVE_DIRENT_D_OFF 1
2661 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2662 echo "configure:2663: checking for ino_t" >&5
2663 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <sys/types.h>
2670 #if STDC_HEADERS
2671 #include <stdlib.h>
2672 #include <stddef.h>
2673 #endif
2675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2676 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2677 rm -rf conftest*
2678 ac_cv_type_ino_t=yes
2679 else
2680 rm -rf conftest*
2681 ac_cv_type_ino_t=no
2683 rm -f conftest*
2686 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2687 if test $ac_cv_type_ino_t = no; then
2688 cat >> confdefs.h <<\EOF
2689 #define ino_t unsigned
2694 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2695 echo "configure:2696: checking for loff_t" >&5
2696 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <sys/types.h>
2703 #if STDC_HEADERS
2704 #include <stdlib.h>
2705 #include <stddef.h>
2706 #endif
2708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2709 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2710 rm -rf conftest*
2711 ac_cv_type_loff_t=yes
2712 else
2713 rm -rf conftest*
2714 ac_cv_type_loff_t=no
2716 rm -f conftest*
2719 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2720 if test $ac_cv_type_loff_t = no; then
2721 cat >> confdefs.h <<\EOF
2722 #define loff_t off_t
2727 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2728 echo "configure:2729: checking for offset_t" >&5
2729 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2731 else
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 #include <sys/types.h>
2736 #if STDC_HEADERS
2737 #include <stdlib.h>
2738 #include <stddef.h>
2739 #endif
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2743 rm -rf conftest*
2744 ac_cv_type_offset_t=yes
2745 else
2746 rm -rf conftest*
2747 ac_cv_type_offset_t=no
2749 rm -f conftest*
2752 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2753 if test $ac_cv_type_offset_t = no; then
2754 cat >> confdefs.h <<\EOF
2755 #define offset_t loff_t
2760 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2761 echo "configure:2762: checking for ssize_t" >&5
2762 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+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 #include <sys/types.h>
2769 #if STDC_HEADERS
2770 #include <stdlib.h>
2771 #include <stddef.h>
2772 #endif
2774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2775 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2776 rm -rf conftest*
2777 ac_cv_type_ssize_t=yes
2778 else
2779 rm -rf conftest*
2780 ac_cv_type_ssize_t=no
2782 rm -f conftest*
2785 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2786 if test $ac_cv_type_ssize_t = no; then
2787 cat >> confdefs.h <<\EOF
2788 #define ssize_t int
2794 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2795 echo "configure:2796: checking for errno in errno.h" >&5
2796 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2798 else
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <errno.h>
2804 int main() {
2805 int i = errno
2806 ; return 0; }
2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2809 rm -rf conftest*
2810 samba_cv_errno=yes
2811 else
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 rm -rf conftest*
2815 samba_cv_have_errno_decl=no
2817 rm -f conftest*
2820 echo "$ac_t""$samba_cv_errno" 1>&6
2821 if test x"$samba_cv_errno" = x"yes"; then
2822 cat >> confdefs.h <<\EOF
2823 #define HAVE_ERRNO_DECL 1
2828 # stupid glibc has the functions but no declaration. grrrr.
2829 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2830 echo "configure:2831: checking for setresuid declaration" >&5
2831 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #include <unistd.h>
2839 int main() {
2840 int i = (int)setresuid
2841 ; return 0; }
2843 if { (eval echo configure:2844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2844 rm -rf conftest*
2845 samba_cv_have_setresuid_decl=yes
2846 else
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 samba_cv_have_setresuid_decl=no
2852 rm -f conftest*
2855 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2856 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2857 cat >> confdefs.h <<\EOF
2858 #define HAVE_SETRESUID_DECL 1
2863 # stupid glibc has the functions but no declaration. grrrr.
2864 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
2865 echo "configure:2866: checking for setresgid declaration" >&5
2866 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 #include <unistd.h>
2874 int main() {
2875 int i = (int)setresgid
2876 ; return 0; }
2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 rm -rf conftest*
2880 samba_cv_have_setresgid_decl=yes
2881 else
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 rm -rf conftest*
2885 samba_cv_have_setresgid_decl=no
2887 rm -f conftest*
2890 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
2891 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
2892 cat >> confdefs.h <<\EOF
2893 #define HAVE_SETRESGID_DECL 1
2898 # stupid glibc has the functions but no declaration. grrrr.
2899 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2900 echo "configure:2901: checking for crypt declaration" >&5
2901 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <unistd.h>
2909 int main() {
2910 int i = (int)crypt
2911 ; return 0; }
2913 if { (eval echo configure:2914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2914 rm -rf conftest*
2915 samba_cv_have_crypt_decl=yes
2916 else
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 rm -rf conftest*
2920 samba_cv_have_crypt_decl=no
2922 rm -f conftest*
2925 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2926 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2927 cat >> confdefs.h <<\EOF
2928 #define HAVE_CRYPT_DECL 1
2933 # and glibc has setresuid under linux but the function does
2934 # nothing until kernel 2.1.44! very dumb.
2935 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2936 echo "configure:2937: checking for real setresuid" >&5
2937 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2941 if test "$cross_compiling" = yes; then
2942 samba_cv_have_setresuid=cross
2943 else
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <errno.h>
2948 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2951 then
2952 samba_cv_have_setresuid=yes
2953 else
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 rm -fr conftest*
2957 samba_cv_have_setresuid=no
2959 rm -fr conftest*
2964 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2965 if test x"$samba_cv_have_setresuid" = x"yes"; then
2966 cat >> confdefs.h <<\EOF
2967 #define HAVE_SETRESUID 1
2972 # Do the same check for setresguid...
2974 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
2975 echo "configure:2976: checking for real setresgid" >&5
2976 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2978 else
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <errno.h>
2984 main() { setresgid(1,1,1); exit(0);}
2985 int main() {
2986 samba_cv_have_setresgid=yes
2987 ; return 0; }
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 rm -rf conftest*
2991 samba_cv_have_setresgid=no
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 rm -f conftest*
2999 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3000 if test x"$samba_cv_have_setresgid" = x"yes"; then
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_SETRESGID 1
3007 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3008 echo "configure:3009: checking for 8-bit clean memcmp" >&5
3009 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3011 else
3012 if test "$cross_compiling" = yes; then
3013 ac_cv_func_memcmp_clean=no
3014 else
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3019 main()
3021 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3022 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3026 if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3027 then
3028 ac_cv_func_memcmp_clean=yes
3029 else
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3032 rm -fr conftest*
3033 ac_cv_func_memcmp_clean=no
3035 rm -fr conftest*
3040 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3041 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3044 ###############################################
3045 # test for where we get crypt() from
3046 for ac_func in crypt
3048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_func" >&5
3050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 /* System header to define __stub macros and hopefully few prototypes,
3057 which can conflict with char $ac_func(); below. */
3058 #include <assert.h>
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3062 char $ac_func();
3064 int main() {
3066 /* The GNU C library defines this for functions which it implements
3067 to always fail with ENOSYS. Some functions are actually named
3068 something starting with __ and the normal name is an alias. */
3069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3070 choke me
3071 #else
3072 $ac_func();
3073 #endif
3075 ; return 0; }
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3078 rm -rf conftest*
3079 eval "ac_cv_func_$ac_func=yes"
3080 else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 eval "ac_cv_func_$ac_func=no"
3086 rm -f conftest*
3089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_func 1
3096 else
3097 echo "$ac_t""no" 1>&6
3099 done
3101 if test x"$ac_cv_func_crypt" = x"no"; then
3102 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3103 echo "configure:3104: checking for crypt in -lcrypt" >&5
3104 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107 else
3108 ac_save_LIBS="$LIBS"
3109 LIBS="-lcrypt $LIBS"
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 /* We use char because int might match the return type of a gcc2
3115 builtin and then its argument prototype would still apply. */
3116 char crypt();
3118 int main() {
3119 crypt()
3120 ; return 0; }
3122 if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3123 rm -rf conftest*
3124 eval "ac_cv_lib_$ac_lib_var=yes"
3125 else
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 rm -rf conftest*
3129 eval "ac_cv_lib_$ac_lib_var=no"
3131 rm -f conftest*
3132 LIBS="$ac_save_LIBS"
3135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3136 echo "$ac_t""yes" 1>&6
3137 LIBS="$LIBS -lcrypt";
3138 cat >> confdefs.h <<\EOF
3139 #define HAVE_CRYPT 1
3142 else
3143 echo "$ac_t""no" 1>&6
3149 ###############################################
3150 # test for where we get pam_authenticate() from
3151 # might need libdl for this to work
3152 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3153 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3154 echo "configure:3155: checking for main in -ldl" >&5
3155 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3158 else
3159 ac_save_LIBS="$LIBS"
3160 LIBS="-ldl $LIBS"
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3165 int main() {
3166 main()
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3170 rm -rf conftest*
3171 eval "ac_cv_lib_$ac_lib_var=yes"
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 eval "ac_cv_lib_$ac_lib_var=no"
3178 rm -f conftest*
3179 LIBS="$ac_save_LIBS"
3182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3186 cat >> confdefs.h <<EOF
3187 #define $ac_tr_lib 1
3190 LIBS="-ldl $LIBS"
3192 else
3193 echo "$ac_t""no" 1>&6
3197 for ac_func in pam_authenticate
3199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_func" >&5
3201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3203 else
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char $ac_func(); below. */
3209 #include <assert.h>
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213 char $ac_func();
3215 int main() {
3217 /* The GNU C library defines this for functions which it implements
3218 to always fail with ENOSYS. Some functions are actually named
3219 something starting with __ and the normal name is an alias. */
3220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3221 choke me
3222 #else
3223 $ac_func();
3224 #endif
3226 ; return 0; }
3228 if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3229 rm -rf conftest*
3230 eval "ac_cv_func_$ac_func=yes"
3231 else
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 rm -rf conftest*
3235 eval "ac_cv_func_$ac_func=no"
3237 rm -f conftest*
3240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3243 cat >> confdefs.h <<EOF
3244 #define $ac_tr_func 1
3247 else
3248 echo "$ac_t""no" 1>&6
3250 done
3252 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3253 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3254 echo "configure:3255: checking for pam_authenticate in -lpam" >&5
3255 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259 ac_save_LIBS="$LIBS"
3260 LIBS="-lpam $LIBS"
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char pam_authenticate();
3269 int main() {
3270 pam_authenticate()
3271 ; return 0; }
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3274 rm -rf conftest*
3275 eval "ac_cv_lib_$ac_lib_var=yes"
3276 else
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 rm -rf conftest*
3280 eval "ac_cv_lib_$ac_lib_var=no"
3282 rm -f conftest*
3283 LIBS="$ac_save_LIBS"
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 LIBS="$LIBS -lpam"
3289 cat >> confdefs.h <<\EOF
3290 #define HAVE_PAM_AUTHENTICATE 1
3293 else
3294 echo "$ac_t""no" 1>&6
3300 ###############################################
3301 # test for where we get readline() from
3302 if test "$ac_cv_header_readline_h" = "yes" ||
3303 test "$ac_cv_header_readline_readline_h" = "yes"; then
3304 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3305 echo "configure:3306: checking for readline in -lreadline" >&5
3306 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3309 else
3310 ac_save_LIBS="$LIBS"
3311 LIBS="-lreadline $LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318 char readline();
3320 int main() {
3321 readline()
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_lib_$ac_lib_var=yes"
3327 else
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 rm -rf conftest*
3331 eval "ac_cv_lib_$ac_lib_var=no"
3333 rm -f conftest*
3334 LIBS="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3340 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3341 cat >> confdefs.h <<EOF
3342 #define $ac_tr_lib 1
3345 LIBS="-lreadline $LIBS"
3347 else
3348 echo "$ac_t""no" 1>&6
3354 # The following test taken from the cvs sources
3355 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3356 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3357 # libsocket.so which has a bad implementation of gethostbyname (it
3358 # only looks in /etc/hosts), so we only look for -lsocket if we need
3359 # it.
3360 for ac_func in connect
3362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3363 echo "configure:3364: checking for $ac_func" >&5
3364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 /* System header to define __stub macros and hopefully few prototypes,
3371 which can conflict with char $ac_func(); below. */
3372 #include <assert.h>
3373 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3376 char $ac_func();
3378 int main() {
3380 /* The GNU C library defines this for functions which it implements
3381 to always fail with ENOSYS. Some functions are actually named
3382 something starting with __ and the normal name is an alias. */
3383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3384 choke me
3385 #else
3386 $ac_func();
3387 #endif
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3392 rm -rf conftest*
3393 eval "ac_cv_func_$ac_func=yes"
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 eval "ac_cv_func_$ac_func=no"
3400 rm -f conftest*
3403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3406 cat >> confdefs.h <<EOF
3407 #define $ac_tr_func 1
3410 else
3411 echo "$ac_t""no" 1>&6
3413 done
3415 if test x"$ac_cv_func_connect" = x"no"; then
3416 case "$LIBS" in
3417 *-lnsl*) ;;
3418 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3419 echo "configure:3420: checking for printf in -lnsl_s" >&5
3420 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424 ac_save_LIBS="$LIBS"
3425 LIBS="-lnsl_s $LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char printf();
3434 int main() {
3435 printf()
3436 ; return 0; }
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3439 rm -rf conftest*
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3441 else
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 rm -rf conftest*
3445 eval "ac_cv_lib_$ac_lib_var=no"
3447 rm -f conftest*
3448 LIBS="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3455 cat >> confdefs.h <<EOF
3456 #define $ac_tr_lib 1
3459 LIBS="-lnsl_s $LIBS"
3461 else
3462 echo "$ac_t""no" 1>&6
3465 esac
3466 case "$LIBS" in
3467 *-lnsl*) ;;
3468 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3469 echo "configure:3470: checking for printf in -lnsl" >&5
3470 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473 else
3474 ac_save_LIBS="$LIBS"
3475 LIBS="-lnsl $LIBS"
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3482 char printf();
3484 int main() {
3485 printf()
3486 ; return 0; }
3488 if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3489 rm -rf conftest*
3490 eval "ac_cv_lib_$ac_lib_var=yes"
3491 else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 rm -rf conftest*
3495 eval "ac_cv_lib_$ac_lib_var=no"
3497 rm -f conftest*
3498 LIBS="$ac_save_LIBS"
3501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3505 cat >> confdefs.h <<EOF
3506 #define $ac_tr_lib 1
3509 LIBS="-lnsl $LIBS"
3511 else
3512 echo "$ac_t""no" 1>&6
3515 esac
3516 case "$LIBS" in
3517 *-lsocket*) ;;
3518 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3519 echo "configure:3520: checking for connect in -lsocket" >&5
3520 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3523 else
3524 ac_save_LIBS="$LIBS"
3525 LIBS="-lsocket $LIBS"
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* Override any gcc2 internal prototype to avoid an error. */
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3532 char connect();
3534 int main() {
3535 connect()
3536 ; return 0; }
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3539 rm -rf conftest*
3540 eval "ac_cv_lib_$ac_lib_var=yes"
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 eval "ac_cv_lib_$ac_lib_var=no"
3547 rm -f conftest*
3548 LIBS="$ac_save_LIBS"
3551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3553 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3554 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3555 cat >> confdefs.h <<EOF
3556 #define $ac_tr_lib 1
3559 LIBS="-lsocket $LIBS"
3561 else
3562 echo "$ac_t""no" 1>&6
3565 esac
3566 case "$LIBS" in
3567 *-linet*) ;;
3568 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3569 echo "configure:3570: checking for connect in -linet" >&5
3570 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574 ac_save_LIBS="$LIBS"
3575 LIBS="-linet $LIBS"
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582 char connect();
3584 int main() {
3585 connect()
3586 ; return 0; }
3588 if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3589 rm -rf conftest*
3590 eval "ac_cv_lib_$ac_lib_var=yes"
3591 else
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 eval "ac_cv_lib_$ac_lib_var=no"
3597 rm -f conftest*
3598 LIBS="$ac_save_LIBS"
3601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3605 cat >> confdefs.h <<EOF
3606 #define $ac_tr_lib 1
3609 LIBS="-linet $LIBS"
3611 else
3612 echo "$ac_t""no" 1>&6
3615 esac
3616 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3617 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3618 # ac_cv_func_connect=yes
3619 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3620 cat >> confdefs.h <<\EOF
3621 #define HAVE_CONNECT 1
3628 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $ac_func" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3634 else
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char $ac_func(); below. */
3640 #include <assert.h>
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char $ac_func();
3646 int main() {
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3652 choke me
3653 #else
3654 $ac_func();
3655 #endif
3657 ; return 0; }
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3660 rm -rf conftest*
3661 eval "ac_cv_func_$ac_func=yes"
3662 else
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 rm -rf conftest*
3666 eval "ac_cv_func_$ac_func=no"
3668 rm -f conftest*
3671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3674 cat >> confdefs.h <<EOF
3675 #define $ac_tr_func 1
3678 else
3679 echo "$ac_t""no" 1>&6
3681 done
3683 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_func" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689 else
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func(); below. */
3695 #include <assert.h>
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char $ac_func();
3701 int main() {
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3707 choke me
3708 #else
3709 $ac_func();
3710 #endif
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3715 rm -rf conftest*
3716 eval "ac_cv_func_$ac_func=yes"
3717 else
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 rm -rf conftest*
3721 eval "ac_cv_func_$ac_func=no"
3723 rm -f conftest*
3726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_func 1
3733 else
3734 echo "$ac_t""no" 1>&6
3736 done
3738 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3744 else
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char $ac_func(); below. */
3750 #include <assert.h>
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3754 char $ac_func();
3756 int main() {
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3762 choke me
3763 #else
3764 $ac_func();
3765 #endif
3767 ; return 0; }
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3770 rm -rf conftest*
3771 eval "ac_cv_func_$ac_func=yes"
3772 else
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 eval "ac_cv_func_$ac_func=no"
3778 rm -f conftest*
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_func 1
3788 else
3789 echo "$ac_t""no" 1>&6
3791 done
3793 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3796 echo "configure:3797: checking for $ac_func" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3799 else
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char $ac_func(); below. */
3805 #include <assert.h>
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3809 char $ac_func();
3811 int main() {
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 choke me
3818 #else
3819 $ac_func();
3820 #endif
3822 ; return 0; }
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3825 rm -rf conftest*
3826 eval "ac_cv_func_$ac_func=yes"
3827 else
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 rm -rf conftest*
3831 eval "ac_cv_func_$ac_func=no"
3833 rm -f conftest*
3836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3839 cat >> confdefs.h <<EOF
3840 #define $ac_tr_func 1
3843 else
3844 echo "$ac_t""no" 1>&6
3846 done
3848 for ac_func in initgroups select rdchk getgrnam pathconf
3850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_func" >&5
3852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* System header to define __stub macros and hopefully few prototypes,
3859 which can conflict with char $ac_func(); below. */
3860 #include <assert.h>
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3864 char $ac_func();
3866 int main() {
3868 /* The GNU C library defines this for functions which it implements
3869 to always fail with ENOSYS. Some functions are actually named
3870 something starting with __ and the normal name is an alias. */
3871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3872 choke me
3873 #else
3874 $ac_func();
3875 #endif
3877 ; return 0; }
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3880 rm -rf conftest*
3881 eval "ac_cv_func_$ac_func=yes"
3882 else
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 rm -rf conftest*
3886 eval "ac_cv_func_$ac_func=no"
3888 rm -f conftest*
3891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3894 cat >> confdefs.h <<EOF
3895 #define $ac_tr_func 1
3898 else
3899 echo "$ac_t""no" 1>&6
3901 done
3903 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_func" >&5
3907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* System header to define __stub macros and hopefully few prototypes,
3914 which can conflict with char $ac_func(); below. */
3915 #include <assert.h>
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3919 char $ac_func();
3921 int main() {
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3927 choke me
3928 #else
3929 $ac_func();
3930 #endif
3932 ; return 0; }
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3935 rm -rf conftest*
3936 eval "ac_cv_func_$ac_func=yes"
3937 else
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 rm -rf conftest*
3941 eval "ac_cv_func_$ac_func=no"
3943 rm -f conftest*
3946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_func 1
3953 else
3954 echo "$ac_t""no" 1>&6
3956 done
3958 for ac_func in atexit grantpt dup2 lseek64 ftruncate64
3960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3961 echo "configure:3962: checking for $ac_func" >&5
3962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964 else
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char $ac_func(); below. */
3970 #include <assert.h>
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char $ac_func();
3976 int main() {
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3982 choke me
3983 #else
3984 $ac_func();
3985 #endif
3987 ; return 0; }
3989 if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3990 rm -rf conftest*
3991 eval "ac_cv_func_$ac_func=yes"
3992 else
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 rm -rf conftest*
3996 eval "ac_cv_func_$ac_func=no"
3998 rm -f conftest*
4001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_func 1
4008 else
4009 echo "$ac_t""no" 1>&6
4011 done
4013 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4016 echo "configure:4017: checking for $ac_func" >&5
4017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4019 else
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* System header to define __stub macros and hopefully few prototypes,
4024 which can conflict with char $ac_func(); below. */
4025 #include <assert.h>
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4029 char $ac_func();
4031 int main() {
4033 /* The GNU C library defines this for functions which it implements
4034 to always fail with ENOSYS. Some functions are actually named
4035 something starting with __ and the normal name is an alias. */
4036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4037 choke me
4038 #else
4039 $ac_func();
4040 #endif
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4045 rm -rf conftest*
4046 eval "ac_cv_func_$ac_func=yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_func_$ac_func=no"
4053 rm -f conftest*
4056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4057 echo "$ac_t""yes" 1>&6
4058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4059 cat >> confdefs.h <<EOF
4060 #define $ac_tr_func 1
4063 else
4064 echo "$ac_t""no" 1>&6
4066 done
4068 for ac_func in srandom random srand rand setenv mmap64 strcasecmp
4070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4071 echo "configure:4072: checking for $ac_func" >&5
4072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074 else
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4078 /* System header to define __stub macros and hopefully few prototypes,
4079 which can conflict with char $ac_func(); below. */
4080 #include <assert.h>
4081 /* Override any gcc2 internal prototype to avoid an error. */
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4084 char $ac_func();
4086 int main() {
4088 /* The GNU C library defines this for functions which it implements
4089 to always fail with ENOSYS. Some functions are actually named
4090 something starting with __ and the normal name is an alias. */
4091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4092 choke me
4093 #else
4094 $ac_func();
4095 #endif
4097 ; return 0; }
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4100 rm -rf conftest*
4101 eval "ac_cv_func_$ac_func=yes"
4102 else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 eval "ac_cv_func_$ac_func=no"
4108 rm -f conftest*
4111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4114 cat >> confdefs.h <<EOF
4115 #define $ac_tr_func 1
4118 else
4119 echo "$ac_t""no" 1>&6
4121 done
4124 # syscall() is needed for smbwrapper.
4125 for ac_func in syscall
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131 else
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4137 #include <assert.h>
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4141 char $ac_func();
4143 int main() {
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4149 choke me
4150 #else
4151 $ac_func();
4152 #endif
4154 ; return 0; }
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4157 rm -rf conftest*
4158 eval "ac_cv_func_$ac_func=yes"
4159 else
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -rf conftest*
4163 eval "ac_cv_func_$ac_func=no"
4165 rm -f conftest*
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_func 1
4175 else
4176 echo "$ac_t""no" 1>&6
4178 done
4181 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_func" >&5
4185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187 else
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* System header to define __stub macros and hopefully few prototypes,
4192 which can conflict with char $ac_func(); below. */
4193 #include <assert.h>
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 /* We use char because int might match the return type of a gcc2
4196 builtin and then its argument prototype would still apply. */
4197 char $ac_func();
4199 int main() {
4201 /* The GNU C library defines this for functions which it implements
4202 to always fail with ENOSYS. Some functions are actually named
4203 something starting with __ and the normal name is an alias. */
4204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4205 choke me
4206 #else
4207 $ac_func();
4208 #endif
4210 ; return 0; }
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4213 rm -rf conftest*
4214 eval "ac_cv_func_$ac_func=yes"
4215 else
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4218 rm -rf conftest*
4219 eval "ac_cv_func_$ac_func=no"
4221 rm -f conftest*
4224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4227 cat >> confdefs.h <<EOF
4228 #define $ac_tr_func 1
4231 else
4232 echo "$ac_t""no" 1>&6
4234 done
4236 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_func" >&5
4240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* System header to define __stub macros and hopefully few prototypes,
4247 which can conflict with char $ac_func(); below. */
4248 #include <assert.h>
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char $ac_func();
4254 int main() {
4256 /* The GNU C library defines this for functions which it implements
4257 to always fail with ENOSYS. Some functions are actually named
4258 something starting with __ and the normal name is an alias. */
4259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4260 choke me
4261 #else
4262 $ac_func();
4263 #endif
4265 ; return 0; }
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4268 rm -rf conftest*
4269 eval "ac_cv_func_$ac_func=yes"
4270 else
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 rm -rf conftest*
4274 eval "ac_cv_func_$ac_func=no"
4276 rm -f conftest*
4279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4282 cat >> confdefs.h <<EOF
4283 #define $ac_tr_func 1
4286 else
4287 echo "$ac_t""no" 1>&6
4289 done
4291 for ac_func in __getcwd _getcwd
4293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_func" >&5
4295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4297 else
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* System header to define __stub macros and hopefully few prototypes,
4302 which can conflict with char $ac_func(); below. */
4303 #include <assert.h>
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char $ac_func();
4309 int main() {
4311 /* The GNU C library defines this for functions which it implements
4312 to always fail with ENOSYS. Some functions are actually named
4313 something starting with __ and the normal name is an alias. */
4314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4315 choke me
4316 #else
4317 $ac_func();
4318 #endif
4320 ; return 0; }
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4323 rm -rf conftest*
4324 eval "ac_cv_func_$ac_func=yes"
4325 else
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -rf conftest*
4329 eval "ac_cv_func_$ac_func=no"
4331 rm -f conftest*
4334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4337 cat >> confdefs.h <<EOF
4338 #define $ac_tr_func 1
4341 else
4342 echo "$ac_t""no" 1>&6
4344 done
4346 for ac_func in __xstat __fxstat __lxstat
4348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4349 echo "configure:4350: checking for $ac_func" >&5
4350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func(); below. */
4358 #include <assert.h>
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char $ac_func();
4364 int main() {
4366 /* The GNU C library defines this for functions which it implements
4367 to always fail with ENOSYS. Some functions are actually named
4368 something starting with __ and the normal name is an alias. */
4369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4370 choke me
4371 #else
4372 $ac_func();
4373 #endif
4375 ; return 0; }
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4378 rm -rf conftest*
4379 eval "ac_cv_func_$ac_func=yes"
4380 else
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 rm -rf conftest*
4384 eval "ac_cv_func_$ac_func=no"
4386 rm -f conftest*
4389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4392 cat >> confdefs.h <<EOF
4393 #define $ac_tr_func 1
4396 else
4397 echo "$ac_t""no" 1>&6
4399 done
4401 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_func" >&5
4405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 /* System header to define __stub macros and hopefully few prototypes,
4412 which can conflict with char $ac_func(); below. */
4413 #include <assert.h>
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4417 char $ac_func();
4419 int main() {
4421 /* The GNU C library defines this for functions which it implements
4422 to always fail with ENOSYS. Some functions are actually named
4423 something starting with __ and the normal name is an alias. */
4424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4425 choke me
4426 #else
4427 $ac_func();
4428 #endif
4430 ; return 0; }
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4433 rm -rf conftest*
4434 eval "ac_cv_func_$ac_func=yes"
4435 else
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 rm -rf conftest*
4439 eval "ac_cv_func_$ac_func=no"
4441 rm -f conftest*
4444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4447 cat >> confdefs.h <<EOF
4448 #define $ac_tr_func 1
4451 else
4452 echo "$ac_t""no" 1>&6
4454 done
4456 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char $ac_func(); below. */
4468 #include <assert.h>
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char $ac_func();
4474 int main() {
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 choke me
4481 #else
4482 $ac_func();
4483 #endif
4485 ; return 0; }
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4488 rm -rf conftest*
4489 eval "ac_cv_func_$ac_func=yes"
4490 else
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 rm -rf conftest*
4494 eval "ac_cv_func_$ac_func=no"
4496 rm -f conftest*
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_func 1
4506 else
4507 echo "$ac_t""no" 1>&6
4509 done
4511 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_func" >&5
4515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4517 else
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char $ac_func(); below. */
4523 #include <assert.h>
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4527 char $ac_func();
4529 int main() {
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4535 choke me
4536 #else
4537 $ac_func();
4538 #endif
4540 ; return 0; }
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4543 rm -rf conftest*
4544 eval "ac_cv_func_$ac_func=yes"
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -rf conftest*
4549 eval "ac_cv_func_$ac_func=no"
4551 rm -f conftest*
4554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_func 1
4561 else
4562 echo "$ac_t""no" 1>&6
4564 done
4566 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4569 echo "configure:4570: checking for $ac_func" >&5
4570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4572 else
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 /* System header to define __stub macros and hopefully few prototypes,
4577 which can conflict with char $ac_func(); below. */
4578 #include <assert.h>
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4582 char $ac_func();
4584 int main() {
4586 /* The GNU C library defines this for functions which it implements
4587 to always fail with ENOSYS. Some functions are actually named
4588 something starting with __ and the normal name is an alias. */
4589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4590 choke me
4591 #else
4592 $ac_func();
4593 #endif
4595 ; return 0; }
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4598 rm -rf conftest*
4599 eval "ac_cv_func_$ac_func=yes"
4600 else
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4603 rm -rf conftest*
4604 eval "ac_cv_func_$ac_func=no"
4606 rm -f conftest*
4609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_func 1
4616 else
4617 echo "$ac_t""no" 1>&6
4619 done
4621 for ac_func in _write __write _fork __fork
4623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4624 echo "configure:4625: checking for $ac_func" >&5
4625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4627 else
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* System header to define __stub macros and hopefully few prototypes,
4632 which can conflict with char $ac_func(); below. */
4633 #include <assert.h>
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4637 char $ac_func();
4639 int main() {
4641 /* The GNU C library defines this for functions which it implements
4642 to always fail with ENOSYS. Some functions are actually named
4643 something starting with __ and the normal name is an alias. */
4644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4645 choke me
4646 #else
4647 $ac_func();
4648 #endif
4650 ; return 0; }
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4653 rm -rf conftest*
4654 eval "ac_cv_func_$ac_func=yes"
4655 else
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 rm -rf conftest*
4659 eval "ac_cv_func_$ac_func=no"
4661 rm -f conftest*
4664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4667 cat >> confdefs.h <<EOF
4668 #define $ac_tr_func 1
4671 else
4672 echo "$ac_t""no" 1>&6
4674 done
4676 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_func" >&5
4680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4682 else
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char $ac_func(); below. */
4688 #include <assert.h>
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char $ac_func();
4694 int main() {
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4700 choke me
4701 #else
4702 $ac_func();
4703 #endif
4705 ; return 0; }
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4708 rm -rf conftest*
4709 eval "ac_cv_func_$ac_func=yes"
4710 else
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 rm -rf conftest*
4714 eval "ac_cv_func_$ac_func=no"
4716 rm -f conftest*
4719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4722 cat >> confdefs.h <<EOF
4723 #define $ac_tr_func 1
4726 else
4727 echo "$ac_t""no" 1>&6
4729 done
4731 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_func" >&5
4735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func(); below. */
4743 #include <assert.h>
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4747 char $ac_func();
4749 int main() {
4751 /* The GNU C library defines this for functions which it implements
4752 to always fail with ENOSYS. Some functions are actually named
4753 something starting with __ and the normal name is an alias. */
4754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755 choke me
4756 #else
4757 $ac_func();
4758 #endif
4760 ; return 0; }
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4763 rm -rf conftest*
4764 eval "ac_cv_func_$ac_func=yes"
4765 else
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 rm -rf conftest*
4769 eval "ac_cv_func_$ac_func=no"
4771 rm -f conftest*
4774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_func 1
4781 else
4782 echo "$ac_t""no" 1>&6
4784 done
4786 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4789 echo "configure:4790: checking for $ac_func" >&5
4790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792 else
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 /* System header to define __stub macros and hopefully few prototypes,
4797 which can conflict with char $ac_func(); below. */
4798 #include <assert.h>
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802 char $ac_func();
4804 int main() {
4806 /* The GNU C library defines this for functions which it implements
4807 to always fail with ENOSYS. Some functions are actually named
4808 something starting with __ and the normal name is an alias. */
4809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 choke me
4811 #else
4812 $ac_func();
4813 #endif
4815 ; return 0; }
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4818 rm -rf conftest*
4819 eval "ac_cv_func_$ac_func=yes"
4820 else
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4823 rm -rf conftest*
4824 eval "ac_cv_func_$ac_func=no"
4826 rm -f conftest*
4829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4832 cat >> confdefs.h <<EOF
4833 #define $ac_tr_func 1
4836 else
4837 echo "$ac_t""no" 1>&6
4839 done
4841 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_func" >&5
4845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4847 else
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char $ac_func(); below. */
4853 #include <assert.h>
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char $ac_func();
4859 int main() {
4861 /* The GNU C library defines this for functions which it implements
4862 to always fail with ENOSYS. Some functions are actually named
4863 something starting with __ and the normal name is an alias. */
4864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 choke me
4866 #else
4867 $ac_func();
4868 #endif
4870 ; return 0; }
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4873 rm -rf conftest*
4874 eval "ac_cv_func_$ac_func=yes"
4875 else
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 rm -rf conftest*
4879 eval "ac_cv_func_$ac_func=no"
4881 rm -f conftest*
4884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4887 cat >> confdefs.h <<EOF
4888 #define $ac_tr_func 1
4891 else
4892 echo "$ac_t""no" 1>&6
4894 done
4896 for ac_func in open64 _open64 __open64 creat64
4898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_func" >&5
4900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4902 else
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char $ac_func(); below. */
4908 #include <assert.h>
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char $ac_func();
4914 int main() {
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4920 choke me
4921 #else
4922 $ac_func();
4923 #endif
4925 ; return 0; }
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4928 rm -rf conftest*
4929 eval "ac_cv_func_$ac_func=yes"
4930 else
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4933 rm -rf conftest*
4934 eval "ac_cv_func_$ac_func=no"
4936 rm -f conftest*
4939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_func 1
4946 else
4947 echo "$ac_t""no" 1>&6
4949 done
4953 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
4956 if test x$ac_cv_func_stat64 = xno ; then
4957 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
4958 echo "configure:4959: checking for stat64 in <sys/stat.h>" >&5
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4963 #if defined(HAVE_UNISTD_H)
4964 #include <unistd.h>
4965 #endif
4966 #include <sys/stat.h>
4968 int main() {
4969 struct stat64 st64; exit(stat64(".",&st64));
4970 ; return 0; }
4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4973 rm -rf conftest*
4974 ac_cv_func_stat64=yes
4975 else
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4979 rm -f conftest*
4980 echo "$ac_t""$ac_cv_func_stat64" 1>&6
4981 if test x$ac_cv_func_stat64 = xyes ; then
4982 cat >> confdefs.h <<\EOF
4983 #define HAVE_STAT64 1
4989 if test x$ac_cv_func_lstat64 = xno ; then
4990 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
4991 echo "configure:4992: checking for lstat64 in <sys/stat.h>" >&5
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4996 #if defined(HAVE_UNISTD_H)
4997 #include <unistd.h>
4998 #endif
4999 #include <sys/stat.h>
5001 int main() {
5002 struct stat64 st64; exit(lstat64(".",&st64));
5003 ; return 0; }
5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5006 rm -rf conftest*
5007 ac_cv_func_lstat64=yes
5008 else
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5012 rm -f conftest*
5013 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5014 if test x$ac_cv_func_lstat64 = xyes ; then
5015 cat >> confdefs.h <<\EOF
5016 #define HAVE_LSTAT64 1
5022 if test x$ac_cv_func_fstat64 = xno ; then
5023 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5024 echo "configure:5025: checking for fstat64 in <sys/stat.h>" >&5
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5029 #if defined(HAVE_UNISTD_H)
5030 #include <unistd.h>
5031 #endif
5032 #include <sys/stat.h>
5034 int main() {
5035 struct stat64 st64; exit(fstat64(0,&st64));
5036 ; return 0; }
5038 if { (eval echo configure:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5039 rm -rf conftest*
5040 ac_cv_func_fstat64=yes
5041 else
5042 echo "configure: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5045 rm -f conftest*
5046 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5047 if test x$ac_cv_func_fstat64 = xyes ; then
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_FSTAT64 1
5056 # If no strcasecmp, check for it in some known places
5057 # It is in -lresolv on ReliantUNIX
5058 # -lresolve *must* follow -lnsl for name resolution to work properly
5061 if test x$ac_cv_func_strcasecmp = xno ; then
5062 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5063 echo "configure:5064: checking for strcasecmp in -lresolv" >&5
5064 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5067 else
5068 ac_save_LIBS="$LIBS"
5069 LIBS="-lresolv $LIBS"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5076 char strcasecmp();
5078 int main() {
5079 strcasecmp()
5080 ; return 0; }
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5083 rm -rf conftest*
5084 eval "ac_cv_lib_$ac_lib_var=yes"
5085 else
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 rm -rf conftest*
5089 eval "ac_cv_lib_$ac_lib_var=no"
5091 rm -f conftest*
5092 LIBS="$ac_save_LIBS"
5095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 LIBS="$LIBS -lresolv"
5098 else
5099 echo "$ac_t""no" 1>&6
5105 # Check for the functions putprpwnam, set_auth_parameters,
5106 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5107 # Needed for OSF1 and HPUX.
5110 case "$LIBS" in
5111 *-lsecurity*) for ac_func in putprpwnam
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5123 #include <assert.h>
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5127 char $ac_func();
5129 int main() {
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5135 choke me
5136 #else
5137 $ac_func();
5138 #endif
5140 ; return 0; }
5142 if { (eval echo configure:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5143 rm -rf conftest*
5144 eval "ac_cv_func_$ac_func=yes"
5145 else
5146 echo "configure: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 rm -rf conftest*
5149 eval "ac_cv_func_$ac_func=no"
5151 rm -f conftest*
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h <<EOF
5158 #define $ac_tr_func 1
5161 else
5162 echo "$ac_t""no" 1>&6
5164 done
5166 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5167 echo "configure:5168: checking for putprpwnam in -lsecurity" >&5
5168 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5171 else
5172 ac_save_LIBS="$LIBS"
5173 LIBS="-lsecurity $LIBS"
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5180 char putprpwnam();
5182 int main() {
5183 putprpwnam()
5184 ; return 0; }
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5187 rm -rf conftest*
5188 eval "ac_cv_lib_$ac_lib_var=yes"
5189 else
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 rm -rf conftest*
5193 eval "ac_cv_lib_$ac_lib_var=no"
5195 rm -f conftest*
5196 LIBS="$ac_save_LIBS"
5199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5200 echo "$ac_t""yes" 1>&6
5201 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5203 cat >> confdefs.h <<EOF
5204 #define $ac_tr_lib 1
5207 LIBS="-lsecurity $LIBS"
5209 else
5210 echo "$ac_t""no" 1>&6
5213 for ac_func in putprpwnam
5215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5216 echo "configure:5217: checking for $ac_func" >&5
5217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5219 else
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char $ac_func(); below. */
5225 #include <assert.h>
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5229 char $ac_func();
5231 int main() {
5233 /* The GNU C library defines this for functions which it implements
5234 to always fail with ENOSYS. Some functions are actually named
5235 something starting with __ and the normal name is an alias. */
5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5237 choke me
5238 #else
5239 $ac_func();
5240 #endif
5242 ; return 0; }
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5245 rm -rf conftest*
5246 eval "ac_cv_func_$ac_func=yes"
5247 else
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 rm -rf conftest*
5251 eval "ac_cv_func_$ac_func=no"
5253 rm -f conftest*
5256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5259 cat >> confdefs.h <<EOF
5260 #define $ac_tr_func 1
5263 else
5264 echo "$ac_t""no" 1>&6
5266 done
5269 esac
5271 case "$LIBS" in
5272 *-lsec*) for ac_func in putprpwnam
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5284 #include <assert.h>
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5288 char $ac_func();
5290 int main() {
5292 /* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5296 choke me
5297 #else
5298 $ac_func();
5299 #endif
5301 ; return 0; }
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5304 rm -rf conftest*
5305 eval "ac_cv_func_$ac_func=yes"
5306 else
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=no"
5312 rm -f conftest*
5315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5318 cat >> confdefs.h <<EOF
5319 #define $ac_tr_func 1
5322 else
5323 echo "$ac_t""no" 1>&6
5325 done
5327 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5328 echo "configure:5329: checking for putprpwnam in -lsec" >&5
5329 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5333 ac_save_LIBS="$LIBS"
5334 LIBS="-lsec $LIBS"
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* Override any gcc2 internal prototype to avoid an error. */
5339 /* We use char because int might match the return type of a gcc2
5340 builtin and then its argument prototype would still apply. */
5341 char putprpwnam();
5343 int main() {
5344 putprpwnam()
5345 ; return 0; }
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5348 rm -rf conftest*
5349 eval "ac_cv_lib_$ac_lib_var=yes"
5350 else
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5353 rm -rf conftest*
5354 eval "ac_cv_lib_$ac_lib_var=no"
5356 rm -f conftest*
5357 LIBS="$ac_save_LIBS"
5360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5364 cat >> confdefs.h <<EOF
5365 #define $ac_tr_lib 1
5368 LIBS="-lsec $LIBS"
5370 else
5371 echo "$ac_t""no" 1>&6
5374 for ac_func in putprpwnam
5376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_func" >&5
5378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5380 else
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func(); below. */
5386 #include <assert.h>
5387 /* Override any gcc2 internal prototype to avoid an error. */
5388 /* We use char because int might match the return type of a gcc2
5389 builtin and then its argument prototype would still apply. */
5390 char $ac_func();
5392 int main() {
5394 /* The GNU C library defines this for functions which it implements
5395 to always fail with ENOSYS. Some functions are actually named
5396 something starting with __ and the normal name is an alias. */
5397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5398 choke me
5399 #else
5400 $ac_func();
5401 #endif
5403 ; return 0; }
5405 if { (eval echo configure:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5406 rm -rf conftest*
5407 eval "ac_cv_func_$ac_func=yes"
5408 else
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5411 rm -rf conftest*
5412 eval "ac_cv_func_$ac_func=no"
5414 rm -f conftest*
5417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5420 cat >> confdefs.h <<EOF
5421 #define $ac_tr_func 1
5424 else
5425 echo "$ac_t""no" 1>&6
5427 done
5430 esac
5433 case "$LIBS" in
5434 *-lsecurity*) for ac_func in set_auth_parameters
5436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5437 echo "configure:5438: checking for $ac_func" >&5
5438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5440 else
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5444 /* System header to define __stub macros and hopefully few prototypes,
5445 which can conflict with char $ac_func(); below. */
5446 #include <assert.h>
5447 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5450 char $ac_func();
5452 int main() {
5454 /* The GNU C library defines this for functions which it implements
5455 to always fail with ENOSYS. Some functions are actually named
5456 something starting with __ and the normal name is an alias. */
5457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5458 choke me
5459 #else
5460 $ac_func();
5461 #endif
5463 ; return 0; }
5465 if { (eval echo configure:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5466 rm -rf conftest*
5467 eval "ac_cv_func_$ac_func=yes"
5468 else
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5471 rm -rf conftest*
5472 eval "ac_cv_func_$ac_func=no"
5474 rm -f conftest*
5477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5480 cat >> confdefs.h <<EOF
5481 #define $ac_tr_func 1
5484 else
5485 echo "$ac_t""no" 1>&6
5487 done
5489 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5490 echo "configure:5491: checking for set_auth_parameters in -lsecurity" >&5
5491 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5494 else
5495 ac_save_LIBS="$LIBS"
5496 LIBS="-lsecurity $LIBS"
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5503 char set_auth_parameters();
5505 int main() {
5506 set_auth_parameters()
5507 ; return 0; }
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5510 rm -rf conftest*
5511 eval "ac_cv_lib_$ac_lib_var=yes"
5512 else
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 rm -rf conftest*
5516 eval "ac_cv_lib_$ac_lib_var=no"
5518 rm -f conftest*
5519 LIBS="$ac_save_LIBS"
5522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_lib 1
5530 LIBS="-lsecurity $LIBS"
5532 else
5533 echo "$ac_t""no" 1>&6
5536 for ac_func in set_auth_parameters
5538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5539 echo "configure:5540: checking for $ac_func" >&5
5540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5542 else
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 /* System header to define __stub macros and hopefully few prototypes,
5547 which can conflict with char $ac_func(); below. */
5548 #include <assert.h>
5549 /* Override any gcc2 internal prototype to avoid an error. */
5550 /* We use char because int might match the return type of a gcc2
5551 builtin and then its argument prototype would still apply. */
5552 char $ac_func();
5554 int main() {
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5560 choke me
5561 #else
5562 $ac_func();
5563 #endif
5565 ; return 0; }
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5568 rm -rf conftest*
5569 eval "ac_cv_func_$ac_func=yes"
5570 else
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 rm -rf conftest*
5574 eval "ac_cv_func_$ac_func=no"
5576 rm -f conftest*
5579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5580 echo "$ac_t""yes" 1>&6
5581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5582 cat >> confdefs.h <<EOF
5583 #define $ac_tr_func 1
5586 else
5587 echo "$ac_t""no" 1>&6
5589 done
5592 esac
5594 case "$LIBS" in
5595 *-lsec*) for ac_func in set_auth_parameters
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char $ac_func(); below. */
5607 #include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5611 char $ac_func();
5613 int main() {
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 $ac_func();
5622 #endif
5624 ; return 0; }
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=yes"
5629 else
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 rm -rf conftest*
5633 eval "ac_cv_func_$ac_func=no"
5635 rm -f conftest*
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641 cat >> confdefs.h <<EOF
5642 #define $ac_tr_func 1
5645 else
5646 echo "$ac_t""no" 1>&6
5648 done
5650 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5651 echo "configure:5652: checking for set_auth_parameters in -lsec" >&5
5652 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5655 else
5656 ac_save_LIBS="$LIBS"
5657 LIBS="-lsec $LIBS"
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5664 char set_auth_parameters();
5666 int main() {
5667 set_auth_parameters()
5668 ; return 0; }
5670 if { (eval echo configure:5671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5671 rm -rf conftest*
5672 eval "ac_cv_lib_$ac_lib_var=yes"
5673 else
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 rm -rf conftest*
5677 eval "ac_cv_lib_$ac_lib_var=no"
5679 rm -f conftest*
5680 LIBS="$ac_save_LIBS"
5683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5686 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5687 cat >> confdefs.h <<EOF
5688 #define $ac_tr_lib 1
5691 LIBS="-lsec $LIBS"
5693 else
5694 echo "$ac_t""no" 1>&6
5697 for ac_func in set_auth_parameters
5699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5700 echo "configure:5701: checking for $ac_func" >&5
5701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5703 else
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* System header to define __stub macros and hopefully few prototypes,
5708 which can conflict with char $ac_func(); below. */
5709 #include <assert.h>
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5713 char $ac_func();
5715 int main() {
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5721 choke me
5722 #else
5723 $ac_func();
5724 #endif
5726 ; return 0; }
5728 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5729 rm -rf conftest*
5730 eval "ac_cv_func_$ac_func=yes"
5731 else
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 rm -rf conftest*
5735 eval "ac_cv_func_$ac_func=no"
5737 rm -f conftest*
5740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5743 cat >> confdefs.h <<EOF
5744 #define $ac_tr_func 1
5747 else
5748 echo "$ac_t""no" 1>&6
5750 done
5753 esac
5756 case "$LIBS" in
5757 *-lsecurity*) for ac_func in getspnam
5759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_func" >&5
5761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763 else
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5767 /* System header to define __stub macros and hopefully few prototypes,
5768 which can conflict with char $ac_func(); below. */
5769 #include <assert.h>
5770 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5773 char $ac_func();
5775 int main() {
5777 /* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 choke me
5782 #else
5783 $ac_func();
5784 #endif
5786 ; return 0; }
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=yes"
5791 else
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 rm -rf conftest*
5795 eval "ac_cv_func_$ac_func=no"
5797 rm -f conftest*
5800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_func 1
5807 else
5808 echo "$ac_t""no" 1>&6
5810 done
5812 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5813 echo "configure:5814: checking for getspnam in -lsecurity" >&5
5814 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5817 else
5818 ac_save_LIBS="$LIBS"
5819 LIBS="-lsecurity $LIBS"
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char getspnam();
5828 int main() {
5829 getspnam()
5830 ; return 0; }
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5833 rm -rf conftest*
5834 eval "ac_cv_lib_$ac_lib_var=yes"
5835 else
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5838 rm -rf conftest*
5839 eval "ac_cv_lib_$ac_lib_var=no"
5841 rm -f conftest*
5842 LIBS="$ac_save_LIBS"
5845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5849 cat >> confdefs.h <<EOF
5850 #define $ac_tr_lib 1
5853 LIBS="-lsecurity $LIBS"
5855 else
5856 echo "$ac_t""no" 1>&6
5859 for ac_func in getspnam
5861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5862 echo "configure:5863: checking for $ac_func" >&5
5863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5865 else
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* System header to define __stub macros and hopefully few prototypes,
5870 which can conflict with char $ac_func(); below. */
5871 #include <assert.h>
5872 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5875 char $ac_func();
5877 int main() {
5879 /* The GNU C library defines this for functions which it implements
5880 to always fail with ENOSYS. Some functions are actually named
5881 something starting with __ and the normal name is an alias. */
5882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5883 choke me
5884 #else
5885 $ac_func();
5886 #endif
5888 ; return 0; }
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5891 rm -rf conftest*
5892 eval "ac_cv_func_$ac_func=yes"
5893 else
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 rm -rf conftest*
5897 eval "ac_cv_func_$ac_func=no"
5899 rm -f conftest*
5902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5905 cat >> confdefs.h <<EOF
5906 #define $ac_tr_func 1
5909 else
5910 echo "$ac_t""no" 1>&6
5912 done
5915 esac
5917 case "$LIBS" in
5918 *-lsec*) for ac_func in getspnam
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5924 else
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5930 #include <assert.h>
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char $ac_func();
5936 int main() {
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 choke me
5943 #else
5944 $ac_func();
5945 #endif
5947 ; return 0; }
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=yes"
5952 else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -rf conftest*
5956 eval "ac_cv_func_$ac_func=no"
5958 rm -f conftest*
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define $ac_tr_func 1
5968 else
5969 echo "$ac_t""no" 1>&6
5971 done
5973 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5974 echo "configure:5975: checking for getspnam in -lsec" >&5
5975 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5979 ac_save_LIBS="$LIBS"
5980 LIBS="-lsec $LIBS"
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* Override any gcc2 internal prototype to avoid an error. */
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5987 char getspnam();
5989 int main() {
5990 getspnam()
5991 ; return 0; }
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5994 rm -rf conftest*
5995 eval "ac_cv_lib_$ac_lib_var=yes"
5996 else
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 eval "ac_cv_lib_$ac_lib_var=no"
6002 rm -f conftest*
6003 LIBS="$ac_save_LIBS"
6006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6010 cat >> confdefs.h <<EOF
6011 #define $ac_tr_lib 1
6014 LIBS="-lsec $LIBS"
6016 else
6017 echo "$ac_t""no" 1>&6
6020 for ac_func in getspnam
6022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6023 echo "configure:6024: checking for $ac_func" >&5
6024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6026 else
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 /* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char $ac_func(); below. */
6032 #include <assert.h>
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6036 char $ac_func();
6038 int main() {
6040 /* The GNU C library defines this for functions which it implements
6041 to always fail with ENOSYS. Some functions are actually named
6042 something starting with __ and the normal name is an alias. */
6043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6044 choke me
6045 #else
6046 $ac_func();
6047 #endif
6049 ; return 0; }
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6052 rm -rf conftest*
6053 eval "ac_cv_func_$ac_func=yes"
6054 else
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 rm -rf conftest*
6058 eval "ac_cv_func_$ac_func=no"
6060 rm -f conftest*
6063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066 cat >> confdefs.h <<EOF
6067 #define $ac_tr_func 1
6070 else
6071 echo "$ac_t""no" 1>&6
6073 done
6076 esac
6079 case "$LIBS" in
6080 *-lsecurity*) for ac_func in bigcrypt
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6086 else
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6092 #include <assert.h>
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096 char $ac_func();
6098 int main() {
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6104 choke me
6105 #else
6106 $ac_func();
6107 #endif
6109 ; return 0; }
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6112 rm -rf conftest*
6113 eval "ac_cv_func_$ac_func=yes"
6114 else
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 rm -rf conftest*
6118 eval "ac_cv_func_$ac_func=no"
6120 rm -f conftest*
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_func 1
6130 else
6131 echo "$ac_t""no" 1>&6
6133 done
6135 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6136 echo "configure:6137: checking for bigcrypt in -lsecurity" >&5
6137 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6140 else
6141 ac_save_LIBS="$LIBS"
6142 LIBS="-lsecurity $LIBS"
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char bigcrypt();
6151 int main() {
6152 bigcrypt()
6153 ; return 0; }
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6156 rm -rf conftest*
6157 eval "ac_cv_lib_$ac_lib_var=yes"
6158 else
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 rm -rf conftest*
6162 eval "ac_cv_lib_$ac_lib_var=no"
6164 rm -f conftest*
6165 LIBS="$ac_save_LIBS"
6168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6172 cat >> confdefs.h <<EOF
6173 #define $ac_tr_lib 1
6176 LIBS="-lsecurity $LIBS"
6178 else
6179 echo "$ac_t""no" 1>&6
6182 for ac_func in bigcrypt
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6188 else
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func(); below. */
6194 #include <assert.h>
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6198 char $ac_func();
6200 int main() {
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6206 choke me
6207 #else
6208 $ac_func();
6209 #endif
6211 ; return 0; }
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6214 rm -rf conftest*
6215 eval "ac_cv_func_$ac_func=yes"
6216 else
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6219 rm -rf conftest*
6220 eval "ac_cv_func_$ac_func=no"
6222 rm -f conftest*
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h <<EOF
6229 #define $ac_tr_func 1
6232 else
6233 echo "$ac_t""no" 1>&6
6235 done
6238 esac
6240 case "$LIBS" in
6241 *-lsec*) for ac_func in bigcrypt
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6247 else
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char $ac_func(); below. */
6253 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6257 char $ac_func();
6259 int main() {
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 choke me
6266 #else
6267 $ac_func();
6268 #endif
6270 ; return 0; }
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6273 rm -rf conftest*
6274 eval "ac_cv_func_$ac_func=yes"
6275 else
6276 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 rm -rf conftest*
6279 eval "ac_cv_func_$ac_func=no"
6281 rm -f conftest*
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287 cat >> confdefs.h <<EOF
6288 #define $ac_tr_func 1
6291 else
6292 echo "$ac_t""no" 1>&6
6294 done
6296 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6297 echo "configure:6298: checking for bigcrypt in -lsec" >&5
6298 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302 ac_save_LIBS="$LIBS"
6303 LIBS="-lsec $LIBS"
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6310 char bigcrypt();
6312 int main() {
6313 bigcrypt()
6314 ; return 0; }
6316 if { (eval echo configure:6317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6317 rm -rf conftest*
6318 eval "ac_cv_lib_$ac_lib_var=yes"
6319 else
6320 echo "configure: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 rm -rf conftest*
6323 eval "ac_cv_lib_$ac_lib_var=no"
6325 rm -f conftest*
6326 LIBS="$ac_save_LIBS"
6329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6333 cat >> confdefs.h <<EOF
6334 #define $ac_tr_lib 1
6337 LIBS="-lsec $LIBS"
6339 else
6340 echo "$ac_t""no" 1>&6
6343 for ac_func in bigcrypt
6345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6346 echo "configure:6347: checking for $ac_func" >&5
6347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6349 else
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func(); below. */
6355 #include <assert.h>
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359 char $ac_func();
6361 int main() {
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6367 choke me
6368 #else
6369 $ac_func();
6370 #endif
6372 ; return 0; }
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6375 rm -rf conftest*
6376 eval "ac_cv_func_$ac_func=yes"
6377 else
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 rm -rf conftest*
6381 eval "ac_cv_func_$ac_func=no"
6383 rm -f conftest*
6386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_func 1
6393 else
6394 echo "$ac_t""no" 1>&6
6396 done
6399 esac
6402 case "$LIBS" in
6403 *-lsecurity*) for ac_func in getprpwnam
6405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6406 echo "configure:6407: checking for $ac_func" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* System header to define __stub macros and hopefully few prototypes,
6414 which can conflict with char $ac_func(); below. */
6415 #include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419 char $ac_func();
6421 int main() {
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 choke me
6428 #else
6429 $ac_func();
6430 #endif
6432 ; return 0; }
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6435 rm -rf conftest*
6436 eval "ac_cv_func_$ac_func=yes"
6437 else
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 rm -rf conftest*
6441 eval "ac_cv_func_$ac_func=no"
6443 rm -f conftest*
6446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6449 cat >> confdefs.h <<EOF
6450 #define $ac_tr_func 1
6453 else
6454 echo "$ac_t""no" 1>&6
6456 done
6458 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6459 echo "configure:6460: checking for getprpwnam in -lsecurity" >&5
6460 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6463 else
6464 ac_save_LIBS="$LIBS"
6465 LIBS="-lsecurity $LIBS"
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6472 char getprpwnam();
6474 int main() {
6475 getprpwnam()
6476 ; return 0; }
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6479 rm -rf conftest*
6480 eval "ac_cv_lib_$ac_lib_var=yes"
6481 else
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 rm -rf conftest*
6485 eval "ac_cv_lib_$ac_lib_var=no"
6487 rm -f conftest*
6488 LIBS="$ac_save_LIBS"
6491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6493 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6495 cat >> confdefs.h <<EOF
6496 #define $ac_tr_lib 1
6499 LIBS="-lsecurity $LIBS"
6501 else
6502 echo "$ac_t""no" 1>&6
6505 for ac_func in getprpwnam
6507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6508 echo "configure:6509: checking for $ac_func" >&5
6509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6511 else
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6515 /* System header to define __stub macros and hopefully few prototypes,
6516 which can conflict with char $ac_func(); below. */
6517 #include <assert.h>
6518 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */
6521 char $ac_func();
6523 int main() {
6525 /* The GNU C library defines this for functions which it implements
6526 to always fail with ENOSYS. Some functions are actually named
6527 something starting with __ and the normal name is an alias. */
6528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6529 choke me
6530 #else
6531 $ac_func();
6532 #endif
6534 ; return 0; }
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6537 rm -rf conftest*
6538 eval "ac_cv_func_$ac_func=yes"
6539 else
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6542 rm -rf conftest*
6543 eval "ac_cv_func_$ac_func=no"
6545 rm -f conftest*
6548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6551 cat >> confdefs.h <<EOF
6552 #define $ac_tr_func 1
6555 else
6556 echo "$ac_t""no" 1>&6
6558 done
6561 esac
6563 case "$LIBS" in
6564 *-lsec*) for ac_func in getprpwnam
6566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_func" >&5
6568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570 else
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 /* System header to define __stub macros and hopefully few prototypes,
6575 which can conflict with char $ac_func(); below. */
6576 #include <assert.h>
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6580 char $ac_func();
6582 int main() {
6584 /* The GNU C library defines this for functions which it implements
6585 to always fail with ENOSYS. Some functions are actually named
6586 something starting with __ and the normal name is an alias. */
6587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6588 choke me
6589 #else
6590 $ac_func();
6591 #endif
6593 ; return 0; }
6595 if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6596 rm -rf conftest*
6597 eval "ac_cv_func_$ac_func=yes"
6598 else
6599 echo "configure: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 rm -rf conftest*
6602 eval "ac_cv_func_$ac_func=no"
6604 rm -f conftest*
6607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6608 echo "$ac_t""yes" 1>&6
6609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6610 cat >> confdefs.h <<EOF
6611 #define $ac_tr_func 1
6614 else
6615 echo "$ac_t""no" 1>&6
6617 done
6619 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6620 echo "configure:6621: checking for getprpwnam in -lsec" >&5
6621 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624 else
6625 ac_save_LIBS="$LIBS"
6626 LIBS="-lsec $LIBS"
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char getprpwnam();
6635 int main() {
6636 getprpwnam()
6637 ; return 0; }
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6640 rm -rf conftest*
6641 eval "ac_cv_lib_$ac_lib_var=yes"
6642 else
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 rm -rf conftest*
6646 eval "ac_cv_lib_$ac_lib_var=no"
6648 rm -f conftest*
6649 LIBS="$ac_save_LIBS"
6652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6653 echo "$ac_t""yes" 1>&6
6654 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6656 cat >> confdefs.h <<EOF
6657 #define $ac_tr_lib 1
6660 LIBS="-lsec $LIBS"
6662 else
6663 echo "$ac_t""no" 1>&6
6666 for ac_func in getprpwnam
6668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6669 echo "configure:6670: checking for $ac_func" >&5
6670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6672 else
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char $ac_func(); below. */
6678 #include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6682 char $ac_func();
6684 int main() {
6686 /* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
6689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6690 choke me
6691 #else
6692 $ac_func();
6693 #endif
6695 ; return 0; }
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6698 rm -rf conftest*
6699 eval "ac_cv_func_$ac_func=yes"
6700 else
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6703 rm -rf conftest*
6704 eval "ac_cv_func_$ac_func=no"
6706 rm -f conftest*
6709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6712 cat >> confdefs.h <<EOF
6713 #define $ac_tr_func 1
6716 else
6717 echo "$ac_t""no" 1>&6
6719 done
6722 esac
6725 # this bit needs to be modified for each OS that is suported by
6726 # smbwrapper. You need to specify how to created a shared library and
6727 # how to compile C code to produce PIC object files
6729 # these are the defaults, good for lots of systems
6730 HOST_OS="$host_os"
6731 LDSHFLAGS="-shared"
6733 # and these are for particular systems
6734 case "$host_os" in
6735 *linux*) cat >> confdefs.h <<\EOF
6736 #define LINUX 1
6739 *solaris*) cat >> confdefs.h <<\EOF
6740 #define SUNOS5 1
6743 LDSHFLAGS="-G"
6745 *sunos*) cat >> confdefs.h <<\EOF
6746 #define SUNOS4 1
6749 LDSHFLAGS=""
6751 *bsd*) LDSHFLAGS="-shared -Bshareable"
6753 *irix*) cat >> confdefs.h <<\EOF
6754 #define IRIX 1
6757 ATTEMPT_WRAP32_BUILD=yes
6759 *aix*) cat >> confdefs.h <<\EOF
6760 #define AIX 1
6763 *hpux*) cat >> confdefs.h <<\EOF
6764 #define HPUX 1
6767 *qnx*) cat >> confdefs.h <<\EOF
6768 #define QNX 1
6771 *osf*) cat >> confdefs.h <<\EOF
6772 #define OSF1 1
6775 *sco*) cat >> confdefs.h <<\EOF
6776 #define SCO 1
6779 *next2*) cat >> confdefs.h <<\EOF
6780 #define NEXT2 1
6783 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
6784 set dummy groff; ac_word=$2
6785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_word" >&5
6787 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6789 else
6790 if test -n "$ROFF"; then
6791 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
6792 else
6793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6794 for ac_dir in $PATH; do
6795 test -z "$ac_dir" && ac_dir=.
6796 if test -f $ac_dir/$ac_word; then
6797 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
6798 break
6800 done
6801 IFS="$ac_save_ifs"
6804 ROFF="$ac_cv_prog_ROFF"
6805 if test -n "$ROFF"; then
6806 echo "$ac_t""$ROFF" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6811 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6812 echo "configure:6813: checking for strcasecmp in -lresolv" >&5
6813 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6816 else
6817 ac_save_LIBS="$LIBS"
6818 LIBS="-lresolv $LIBS"
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6825 char strcasecmp();
6827 int main() {
6828 strcasecmp()
6829 ; return 0; }
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6832 rm -rf conftest*
6833 eval "ac_cv_lib_$ac_lib_var=yes"
6834 else
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 rm -rf conftest*
6838 eval "ac_cv_lib_$ac_lib_var=no"
6840 rm -f conftest*
6841 LIBS="$ac_save_LIBS"
6844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6845 echo "$ac_t""yes" 1>&6
6846 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6847 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6848 cat >> confdefs.h <<EOF
6849 #define $ac_tr_lib 1
6852 LIBS="-lresolv $LIBS"
6854 else
6855 echo "$ac_t""no" 1>&6
6858 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
6859 #define RELIANTUNIX 1
6862 esac
6864 # try to work out how to produce pic code with this compiler
6865 PICFLAG=""
6866 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
6867 echo "configure:6868: checking whether ${CC-cc} accepts -fpic" >&5
6868 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6870 else
6871 echo 'void f(){}' > conftest.c
6872 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
6873 ac_cv_prog_cc_fpic=yes
6874 else
6875 ac_cv_prog_cc_fpic=no
6877 rm -f conftest*
6881 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
6882 if test $ac_cv_prog_cc_fpic = yes; then
6883 PICFLAG="-fpic";
6885 if test x$PICFLAG = x; then
6886 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
6887 echo "configure:6888: checking whether ${CC-cc} accepts -Kpic" >&5
6888 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891 echo 'void f(){}' > conftest.c
6892 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
6893 ac_cv_prog_cc_Kpic=yes
6894 else
6895 ac_cv_prog_cc_Kpic=no
6897 rm -f conftest*
6901 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
6902 if test $ac_cv_prog_cc_Kpic = yes; then
6903 PICFLAG="-Kpic";
6906 if test x$PICFLAG = x; then
6907 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
6908 echo "configure:6909: checking whether ${CC-cc} accepts -KPIC" >&5
6909 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6911 else
6912 echo 'void f(){}' > conftest.c
6913 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
6914 ac_cv_prog_cc_KPIC=yes
6915 else
6916 ac_cv_prog_cc_KPIC=no
6918 rm -f conftest*
6922 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
6923 if test $ac_cv_prog_cc_KPIC = yes; then
6924 PICFLAG="-KPIC";
6928 ################
6930 echo $ac_n "checking for long long""... $ac_c" 1>&6
6931 echo "configure:6932: checking for long long" >&5
6932 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6934 else
6936 if test "$cross_compiling" = yes; then
6937 samba_cv_have_longlong=cross
6938 else
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 #include <stdio.h>
6943 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6946 then
6947 samba_cv_have_longlong=yes
6948 else
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 rm -fr conftest*
6952 samba_cv_have_longlong=no
6954 rm -fr conftest*
6959 echo "$ac_t""$samba_cv_have_longlong" 1>&6
6960 if test x"$samba_cv_have_longlong" = x"yes"; then
6961 cat >> confdefs.h <<\EOF
6962 #define HAVE_LONGLONG 1
6967 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
6968 echo "configure:6969: checking for 64 bit off_t" >&5
6969 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6971 else
6973 if test "$cross_compiling" = yes; then
6974 samba_cv_SIZEOF_OFF_T=cross
6975 else
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <stdio.h>
6980 #include <sys/stat.h>
6981 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6984 then
6985 samba_cv_SIZEOF_OFF_T=yes
6986 else
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 rm -fr conftest*
6990 samba_cv_SIZEOF_OFF_T=no
6992 rm -fr conftest*
6997 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
6998 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
6999 cat >> confdefs.h <<\EOF
7000 #define SIZEOF_OFF_T 8
7005 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7006 echo "configure:7007: checking for off64_t" >&5
7007 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7009 else
7011 if test "$cross_compiling" = yes; then
7012 samba_cv_HAVE_OFF64_T=cross
7013 else
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7018 #if defined(HAVE_UNISTD_H)
7019 #include <unistd.h>
7020 #endif
7021 #include <stdio.h>
7022 #include <sys/stat.h>
7023 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7026 then
7027 samba_cv_HAVE_OFF64_T=yes
7028 else
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 rm -fr conftest*
7032 samba_cv_HAVE_OFF64_T=no
7034 rm -fr conftest*
7039 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7040 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7041 cat >> confdefs.h <<\EOF
7042 #define HAVE_OFF64_T 1
7047 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7048 echo "configure:7049: checking for 64 bit ino_t" >&5
7049 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051 else
7053 if test "$cross_compiling" = yes; then
7054 samba_cv_SIZEOF_INO_T=cross
7055 else
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 #include <stdio.h>
7060 #include <sys/stat.h>
7061 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7064 then
7065 samba_cv_SIZEOF_INO_T=yes
7066 else
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7069 rm -fr conftest*
7070 samba_cv_SIZEOF_INO_T=no
7072 rm -fr conftest*
7077 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7078 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7079 cat >> confdefs.h <<\EOF
7080 #define SIZEOF_INO_T 8
7085 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7086 echo "configure:7087: checking for ino64_t" >&5
7087 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7088 echo $ac_n "(cached) $ac_c" 1>&6
7089 else
7091 if test "$cross_compiling" = yes; then
7092 samba_cv_HAVE_INO64_T=cross
7093 else
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7098 #if defined(HAVE_UNISTD_H)
7099 #include <unistd.h>
7100 #endif
7101 #include <stdio.h>
7102 #include <sys/stat.h>
7103 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7106 then
7107 samba_cv_HAVE_INO64_T=yes
7108 else
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7111 rm -fr conftest*
7112 samba_cv_HAVE_INO64_T=no
7114 rm -fr conftest*
7119 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7120 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7121 cat >> confdefs.h <<\EOF
7122 #define HAVE_INO64_T 1
7127 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7128 echo "configure:7129: checking for union semun" >&5
7129 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7133 if test "$cross_compiling" = yes; then
7134 samba_cv_HAVE_UNION_SEMUN=cross
7135 else
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7140 #include <sys/types.h>
7141 #include <sys/ipc.h>
7142 #include <sys/sem.h>
7143 main() { union semun ss; exit(0); }
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7146 then
7147 samba_cv_HAVE_UNION_SEMUN=yes
7148 else
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7151 rm -fr conftest*
7152 samba_cv_HAVE_UNION_SEMUN=no
7154 rm -fr conftest*
7159 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7160 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7161 cat >> confdefs.h <<\EOF
7162 #define HAVE_UNION_SEMUN 1
7167 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7168 echo "configure:7169: checking for unsigned char" >&5
7169 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7171 else
7173 if test "$cross_compiling" = yes; then
7174 samba_cv_HAVE_UNSIGNED_CHAR=cross
7175 else
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <stdio.h>
7180 main() { char c; c=250; exit((c > 0)?0:1); }
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7183 then
7184 samba_cv_HAVE_UNSIGNED_CHAR=yes
7185 else
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7188 rm -fr conftest*
7189 samba_cv_HAVE_UNSIGNED_CHAR=no
7191 rm -fr conftest*
7196 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7197 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7198 cat >> confdefs.h <<\EOF
7199 #define HAVE_UNSIGNED_CHAR 1
7204 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7205 echo "configure:7206: checking for sin_len in sock" >&5
7206 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7208 else
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 #include <sys/types.h>
7214 #include <sys/socket.h>
7215 #include <netinet/in.h>
7216 int main() {
7217 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7218 ; return 0; }
7220 if { (eval echo configure:7221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7221 rm -rf conftest*
7222 samba_cv_HAVE_SOCK_SIN_LEN=yes
7223 else
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 rm -rf conftest*
7227 samba_cv_HAVE_SOCK_SIN_LEN=no
7229 rm -f conftest*
7232 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7233 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7234 cat >> confdefs.h <<\EOF
7235 #define HAVE_SOCK_SIN_LEN 1
7240 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7241 echo "configure:7242: checking whether seekdir returns void" >&5
7242 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7244 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 #include <sys/types.h>
7250 #include <dirent.h>
7251 void seekdir(DIR *d, long loc) { return; }
7252 int main() {
7253 return 0;
7254 ; return 0; }
7256 if { (eval echo configure:7257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7257 rm -rf conftest*
7258 samba_cv_SEEKDIR_RETURNS_VOID=yes
7259 else
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7262 rm -rf conftest*
7263 samba_cv_SEEKDIR_RETURNS_VOID=no
7265 rm -f conftest*
7268 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7269 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7270 cat >> confdefs.h <<\EOF
7271 #define SEEKDIR_RETURNS_VOID 1
7276 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7277 echo "configure:7278: checking for __FILE__ macro" >&5
7278 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7280 else
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 #include <stdio.h>
7286 int main() {
7287 printf("%s\n", __FILE__);
7288 ; return 0; }
7290 if { (eval echo configure:7291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7291 rm -rf conftest*
7292 samba_cv_HAVE_FILE_MACRO=yes
7293 else
7294 echo "configure: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7296 rm -rf conftest*
7297 samba_cv_HAVE_FILE_MACRO=no
7299 rm -f conftest*
7302 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7303 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7304 cat >> confdefs.h <<\EOF
7305 #define HAVE_FILE_MACRO 1
7310 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7311 echo "configure:7312: checking for __FUNCTION__ macro" >&5
7312 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7314 else
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 #include <stdio.h>
7320 int main() {
7321 printf("%s\n", __FUNCTION__);
7322 ; return 0; }
7324 if { (eval echo configure:7325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7325 rm -rf conftest*
7326 samba_cv_HAVE_FUNCTION_MACRO=yes
7327 else
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 rm -rf conftest*
7331 samba_cv_HAVE_FUNCTION_MACRO=no
7333 rm -f conftest*
7336 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7337 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7338 cat >> confdefs.h <<\EOF
7339 #define HAVE_FUNCTION_MACRO 1
7344 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7345 echo "configure:7346: checking if gettimeofday takes tz argument" >&5
7346 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7348 else
7350 if test "$cross_compiling" = yes; then
7351 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7352 else
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7357 #include <sys/time.h>
7358 #include <unistd.h>
7359 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7362 then
7363 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7364 else
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7367 rm -fr conftest*
7368 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7370 rm -fr conftest*
7375 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7376 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7377 cat >> confdefs.h <<\EOF
7378 #define HAVE_GETTIMEOFDAY_TZ 1
7384 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7385 echo "configure:7386: checking for broken readdir" >&5
7386 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7388 else
7390 if test "$cross_compiling" = yes; then
7391 samba_cv_HAVE_BROKEN_READDIR=cross
7392 else
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7396 #include <sys/types.h>
7397 #include <dirent.h>
7398 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7399 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7400 di->d_name[0] == 0) exit(0); exit(1);}
7402 if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7403 then
7404 samba_cv_HAVE_BROKEN_READDIR=yes
7405 else
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 rm -fr conftest*
7409 samba_cv_HAVE_BROKEN_READDIR=no
7411 rm -fr conftest*
7416 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7417 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7418 cat >> confdefs.h <<\EOF
7419 #define HAVE_BROKEN_READDIR 1
7424 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7425 echo "configure:7426: checking for utimbuf" >&5
7426 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7428 else
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7433 #include <sys/types.h>
7434 #include <utime.h>
7435 int main() {
7436 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7437 ; return 0; }
7439 if { (eval echo configure:7440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7440 rm -rf conftest*
7441 samba_cv_HAVE_UTIMBUF=yes
7442 else
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 rm -rf conftest*
7446 samba_cv_HAVE_UTIMBUF=no
7448 rm -f conftest*
7451 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7452 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7453 cat >> confdefs.h <<\EOF
7454 #define HAVE_UTIMBUF 1
7459 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7460 echo "configure:7461: checking for kernel oplock type definitions" >&5
7461 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7463 else
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 #include <sys/types.h>
7469 #include <fcntl.h>
7470 int main() {
7471 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7472 ; return 0; }
7474 if { (eval echo configure:7475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7475 rm -rf conftest*
7476 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7477 else
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 rm -rf conftest*
7481 samba_cv_HAVE_KERNEL_OPLOCKS=no
7483 rm -f conftest*
7486 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7487 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_KERNEL_OPLOCKS 1
7494 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7495 echo "configure:7496: checking for irix specific capabilities" >&5
7496 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7498 else
7500 if test "$cross_compiling" = yes; then
7501 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7502 else
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 #include <sys/types.h>
7507 #include <sys/capability.h>
7508 main() {
7509 cap_t cap;
7510 if ((cap = cap_get_proc()) == NULL)
7511 exit(1);
7512 cap->cap_effective |= CAP_NETWORK_MGT;
7513 cap->cap_inheritable |= CAP_NETWORK_MGT;
7514 cap_set_proc(cap);
7515 exit(0);
7519 if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7520 then
7521 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7522 else
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 rm -fr conftest*
7526 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7528 rm -fr conftest*
7533 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7534 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7535 cat >> confdefs.h <<\EOF
7536 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7542 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7543 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7546 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7547 echo "configure:7548: checking for int16 typedef included by rpc/rpc.h" >&5
7548 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550 else
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 #include <sys/types.h>
7556 #if defined(HAVE_RPC_RPC_H)
7557 #include <rpc/rpc.h>
7558 #endif
7559 int main() {
7560 int16 testvar;
7561 ; return 0; }
7563 if { (eval echo configure:7564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7564 rm -rf conftest*
7565 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7566 else
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 rm -rf conftest*
7570 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7572 rm -f conftest*
7575 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7576 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7577 cat >> confdefs.h <<\EOF
7578 #define HAVE_INT16_FROM_RPC_RPC_H 1
7583 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7584 echo "configure:7585: checking for uint16 typedef included by rpc/rpc.h" >&5
7585 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7587 else
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 #include <sys/types.h>
7593 #if defined(HAVE_RPC_RPC_H)
7594 #include <rpc/rpc.h>
7595 #endif
7596 int main() {
7597 uint16 testvar;
7598 ; return 0; }
7600 if { (eval echo configure:7601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7601 rm -rf conftest*
7602 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7603 else
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 rm -rf conftest*
7607 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7609 rm -f conftest*
7612 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7613 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7614 cat >> confdefs.h <<\EOF
7615 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7620 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7621 echo "configure:7622: checking for int32 typedef included by rpc/rpc.h" >&5
7622 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7624 else
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629 #include <sys/types.h>
7630 #if defined(HAVE_RPC_RPC_H)
7631 #include <rpc/rpc.h>
7632 #endif
7633 int main() {
7634 int32 testvar;
7635 ; return 0; }
7637 if { (eval echo configure:7638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7638 rm -rf conftest*
7639 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7646 rm -f conftest*
7649 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7650 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7651 cat >> confdefs.h <<\EOF
7652 #define HAVE_INT32_FROM_RPC_RPC_H 1
7657 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7658 echo "configure:7659: checking for uint32 typedef included by rpc/rpc.h" >&5
7659 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7660 echo $ac_n "(cached) $ac_c" 1>&6
7661 else
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 #include <sys/types.h>
7667 #if defined(HAVE_RPC_RPC_H)
7668 #include <rpc/rpc.h>
7669 #endif
7670 int main() {
7671 uint32 testvar;
7672 ; return 0; }
7674 if { (eval echo configure:7675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7675 rm -rf conftest*
7676 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
7677 else
7678 echo "configure: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 rm -rf conftest*
7681 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
7683 rm -f conftest*
7686 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7687 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
7688 cat >> confdefs.h <<\EOF
7689 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7694 echo $ac_n "checking for test routines""... $ac_c" 1>&6
7695 echo "configure:7696: checking for test routines" >&5
7696 if test "$cross_compiling" = yes; then
7697 echo "configure: warning: cannot run when cross-compiling" 1>&2
7698 else
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 #include "${srcdir-.}/tests/trivial.c"
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7705 then
7706 echo "$ac_t""yes" 1>&6
7707 else
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 rm -fr conftest*
7711 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
7713 rm -fr conftest*
7717 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
7718 echo "configure:7719: checking for ftruncate extend" >&5
7719 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
7721 else
7723 if test "$cross_compiling" = yes; then
7724 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
7725 else
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 #include "${srcdir-.}/tests/ftruncate.c"
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7732 then
7733 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
7734 else
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 rm -fr conftest*
7738 samba_cv_HAVE_FTRUNCATE_EXTEND=no
7740 rm -fr conftest*
7745 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
7746 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
7747 cat >> confdefs.h <<\EOF
7748 #define HAVE_FTRUNCATE_EXTEND 1
7753 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
7754 echo "configure:7755: checking for broken getgroups" >&5
7755 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7757 else
7759 if test "$cross_compiling" = yes; then
7760 samba_cv_HAVE_BROKEN_GETGROUPS=cross
7761 else
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 #include "${srcdir-.}/tests/getgroups.c"
7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7768 then
7769 samba_cv_HAVE_BROKEN_GETGROUPS=yes
7770 else
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 rm -fr conftest*
7774 samba_cv_HAVE_BROKEN_GETGROUPS=no
7776 rm -fr conftest*
7781 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
7782 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
7783 cat >> confdefs.h <<\EOF
7784 #define HAVE_BROKEN_GETGROUPS 1
7789 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
7790 echo "configure:7791: checking whether getpass should be replaced" >&5
7791 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7793 else
7795 SAVE_CPPFLAGS="$CPPFLAGS"
7796 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7801 #define REPLACE_GETPASS 1
7802 #define NO_CONFIG_H 1
7803 #define main dont_declare_main
7804 #include "${srcdir-.}/lib/getsmbpass.c"
7805 #undef main
7807 int main() {
7809 ; return 0; }
7811 if { (eval echo configure:7812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7812 rm -rf conftest*
7813 samba_cv_REPLACE_GETPASS=yes
7814 else
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 rm -rf conftest*
7818 samba_cv_REPLACE_GETPASS=no
7820 rm -f conftest*
7821 CPPFLAGS="$SAVE_CPPFLAGS"
7825 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
7826 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
7827 cat >> confdefs.h <<\EOF
7828 #define REPLACE_GETPASS 1
7833 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
7834 echo "configure:7835: checking for broken inet_ntoa" >&5
7835 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7837 else
7839 if test "$cross_compiling" = yes; then
7840 samba_cv_REPLACE_INET_NTOA=cross
7841 else
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7846 #include <stdio.h>
7847 #include <sys/types.h>
7848 #include <netinet/in.h>
7849 #include <arpa/inet.h>
7850 main() { struct in_addr ip; ip.s_addr = 0x12345678;
7851 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
7852 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
7853 exit(1);}
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7856 then
7857 samba_cv_REPLACE_INET_NTOA=yes
7858 else
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -fr conftest*
7862 samba_cv_REPLACE_INET_NTOA=no
7864 rm -fr conftest*
7869 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
7870 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
7871 cat >> confdefs.h <<\EOF
7872 #define REPLACE_INET_NTOA 1
7877 echo $ac_n "checking for root""... $ac_c" 1>&6
7878 echo "configure:7879: checking for root" >&5
7879 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7881 else
7883 if test "$cross_compiling" = yes; then
7884 samba_cv_HAVE_ROOT=cross
7885 else
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 main() { exit(getuid() != 0); }
7891 if { (eval echo configure:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7892 then
7893 samba_cv_HAVE_ROOT=yes
7894 else
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7897 rm -fr conftest*
7898 samba_cv_HAVE_ROOT=no
7900 rm -fr conftest*
7905 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
7906 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
7907 cat >> confdefs.h <<\EOF
7908 #define HAVE_ROOT 1
7911 else
7912 echo "configure: warning: running as non-root will disable some tests" 1>&2
7915 netmask=no;
7916 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
7917 echo "configure:7918: checking for netmask ifconf" >&5
7918 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7920 else
7922 if test "$cross_compiling" = yes; then
7923 samba_cv_HAVE_NETMASK_IFCONF=cross
7924 else
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7929 #define HAVE_NETMASK_IFCONF 1
7930 #define AUTOCONF 1
7931 #include "${srcdir-.}/lib/netmask.c"
7933 if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7934 then
7935 samba_cv_HAVE_NETMASK_IFCONF=yes
7936 else
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7939 rm -fr conftest*
7940 samba_cv_HAVE_NETMASK_IFCONF=no
7942 rm -fr conftest*
7947 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
7948 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
7949 netmask=yes;cat >> confdefs.h <<\EOF
7950 #define HAVE_NETMASK_IFCONF 1
7955 if test $netmask = no; then
7956 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
7957 echo "configure:7958: checking for netmask ifreq" >&5
7958 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7960 else
7962 if test "$cross_compiling" = yes; then
7963 samba_cv_HAVE_NETMASK_IFREQ=cross
7964 else
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7969 #define HAVE_NETMASK_IFREQ 1
7970 #define AUTOCONF 1
7971 #include "${srcdir-.}/lib/netmask.c"
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7974 then
7975 samba_cv_HAVE_NETMASK_IFREQ=yes
7976 else
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7979 rm -fr conftest*
7980 samba_cv_HAVE_NETMASK_IFREQ=no
7982 rm -fr conftest*
7987 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
7988 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
7989 netmask=yes;cat >> confdefs.h <<\EOF
7990 #define HAVE_NETMASK_IFREQ 1
7996 if test $netmask = no; then
7997 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
7998 echo "configure:7999: checking for netmask AIX" >&5
7999 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8001 else
8003 if test "$cross_compiling" = yes; then
8004 samba_cv_HAVE_NETMASK_AIX=cross
8005 else
8006 cat > conftest.$ac_ext <<EOF
8007 #line 8008 "configure"
8008 #include "confdefs.h"
8010 #define HAVE_NETMASK_AIX 1
8011 #define AUTOCONF 1
8012 #include "${srcdir-.}/lib/netmask.c"
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8015 then
8016 samba_cv_HAVE_NETMASK_AIX=yes
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -fr conftest*
8021 samba_cv_HAVE_NETMASK_AIX=no
8023 rm -fr conftest*
8028 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8029 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
8030 netmask=yes;cat >> confdefs.h <<\EOF
8031 #define HAVE_NETMASK_AIX 1
8037 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8038 echo "configure:8039: checking for trapdoor seteuid" >&5
8039 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8041 else
8043 if test "$cross_compiling" = yes; then
8045 else
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 #include "${srcdir-.}/tests/trapdoor.c"
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8052 then
8053 samba_cv_HAVE_TRAPDOOR_UID=no
8054 else
8055 echo "configure: failed program was:" >&5
8056 cat conftest.$ac_ext >&5
8057 rm -fr conftest*
8058 samba_cv_HAVE_TRAPDOOR_UID=yes
8060 rm -fr conftest*
8065 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8066 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
8067 cat >> confdefs.h <<\EOF
8068 #define HAVE_TRAPDOOR_UID 1
8073 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8074 echo "configure:8075: checking for shared mmap" >&5
8075 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8077 else
8079 if test "$cross_compiling" = yes; then
8080 samba_cv_HAVE_SHARED_MMAP=cross
8081 else
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 #include "${srcdir-.}/tests/shared_mmap.c"
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8088 then
8089 samba_cv_HAVE_SHARED_MMAP=yes
8090 else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -fr conftest*
8094 samba_cv_HAVE_SHARED_MMAP=no
8096 rm -fr conftest*
8101 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8102 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
8103 cat >> confdefs.h <<\EOF
8104 #define HAVE_SHARED_MMAP 1
8109 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8110 echo "configure:8111: checking for fcntl locking" >&5
8111 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113 else
8115 if test "$cross_compiling" = yes; then
8116 samba_cv_HAVE_FCNTL_LOCK=cross
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 #include "${srcdir-.}/tests/fcntl_lock.c"
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8124 then
8125 samba_cv_HAVE_FCNTL_LOCK=yes
8126 else
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 rm -fr conftest*
8130 samba_cv_HAVE_FCNTL_LOCK=no
8132 rm -fr conftest*
8137 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8138 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8139 cat >> confdefs.h <<\EOF
8140 #define HAVE_FCNTL_LOCK 1
8145 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8146 echo "configure:8147: checking for 64 bit fcntl locking" >&5
8147 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8149 else
8151 if test "$cross_compiling" = yes; then
8152 samba_cv_HAVE_STRUCT_FLOCK64=cross
8153 else
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8158 #if defined(HAVE_UNISTD_H)
8159 #include <unistd.h>
8160 #endif
8161 #include <stdio.h>
8162 #include <stdlib.h>
8164 #ifdef HAVE_FCNTL_H
8165 #include <fcntl.h>
8166 #endif
8168 #ifdef HAVE_SYS_FCNTL_H
8169 #include <sys/fcntl.h>
8170 #endif
8171 main() { struct flock64 fl64;
8172 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8173 exit(0);
8174 #else
8175 exit(1);
8176 #endif
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8180 then
8181 samba_cv_HAVE_STRUCT_FLOCK64=yes
8182 else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -fr conftest*
8186 samba_cv_HAVE_STRUCT_FLOCK64=no
8188 rm -fr conftest*
8193 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8194 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8195 cat >> confdefs.h <<\EOF
8196 #define HAVE_STRUCT_FLOCK64 1
8201 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8202 echo "configure:8203: checking for sysv ipc" >&5
8203 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8205 else
8207 if test "$cross_compiling" = yes; then
8208 samba_cv_HAVE_SYSV_IPC=cross
8209 else
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 #include "${srcdir-.}/tests/sysv_ipc.c"
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8216 then
8217 samba_cv_HAVE_SYSV_IPC=yes
8218 else
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 rm -fr conftest*
8222 samba_cv_HAVE_SYSV_IPC=no
8224 rm -fr conftest*
8229 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8230 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8231 cat >> confdefs.h <<\EOF
8232 #define HAVE_SYSV_IPC 1
8237 #################################################
8238 # check for smbwrapper support
8239 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8240 echo "configure:8241: checking whether to use smbwrapper" >&5
8241 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8242 if test "${with_smbwrapper+set}" = set; then
8243 withval="$with_smbwrapper"
8244 case "$withval" in
8245 yes)
8246 echo "$ac_t""yes" 1>&6
8247 cat >> confdefs.h <<\EOF
8248 #define WITH_SMBWRAPPER 1
8251 WRAP="bin/smbsh bin/smbwrapper.so"
8253 if test x$ATTEMPT_WRAP32_BUILD = x; then
8254 WRAP32=""
8255 else
8256 WRAP32=bin/smbwrapper.32.so
8259 # Conditions under which smbwrapper should not be built.
8261 if test x$PICFLAG = x; then
8262 echo No support for PIC code - disabling smbwrapper and smbsh
8263 WRAP=""
8264 WRAP32=""
8265 elif test x$ac_cv_func_syscall = xno; then
8266 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8267 WRAP=""
8268 WRAP32=""
8272 echo "$ac_t""no" 1>&6
8274 esac
8275 else
8276 echo "$ac_t""no" 1>&6
8281 #################################################
8282 # check for the AFS filesystem
8283 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8284 echo "configure:8285: checking whether to use AFS" >&5
8285 # Check whether --with-afs or --without-afs was given.
8286 if test "${with_afs+set}" = set; then
8287 withval="$with_afs"
8288 case "$withval" in
8289 yes)
8290 echo "$ac_t""yes" 1>&6
8291 cat >> confdefs.h <<\EOF
8292 #define WITH_AFS 1
8297 echo "$ac_t""no" 1>&6
8299 esac
8300 else
8301 echo "$ac_t""no" 1>&6
8307 #################################################
8308 # check for the DFS auth system
8309 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8310 echo "configure:8311: checking whether to use DFS auth" >&5
8311 # Check whether --with-dfs or --without-dfs was given.
8312 if test "${with_dfs+set}" = set; then
8313 withval="$with_dfs"
8314 case "$withval" in
8315 yes)
8316 echo "$ac_t""yes" 1>&6
8317 cat >> confdefs.h <<\EOF
8318 #define WITH_DFS 1
8323 echo "$ac_t""no" 1>&6
8325 esac
8326 else
8327 echo "$ac_t""no" 1>&6
8332 #################################################
8333 # check for Kerberos IV auth system
8334 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8335 echo "configure:8336: checking whether to use Kerberos IV" >&5
8336 # Check whether --with-krb4 or --without-krb4 was given.
8337 if test "${with_krb4+set}" = set; then
8338 withval="$with_krb4"
8339 echo "$ac_t""yes" 1>&6
8340 cat >> confdefs.h <<\EOF
8341 #define KRB4_AUTH 1
8344 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8345 echo "configure:8346: checking for dn_expand in -lresolv" >&5
8346 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8348 echo $ac_n "(cached) $ac_c" 1>&6
8349 else
8350 ac_save_LIBS="$LIBS"
8351 LIBS="-lresolv $LIBS"
8352 cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 /* Override any gcc2 internal prototype to avoid an error. */
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358 char dn_expand();
8360 int main() {
8361 dn_expand()
8362 ; return 0; }
8364 if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8365 rm -rf conftest*
8366 eval "ac_cv_lib_$ac_lib_var=yes"
8367 else
8368 echo "configure: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 rm -rf conftest*
8371 eval "ac_cv_lib_$ac_lib_var=no"
8373 rm -f conftest*
8374 LIBS="$ac_save_LIBS"
8377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8381 cat >> confdefs.h <<EOF
8382 #define $ac_tr_lib 1
8385 LIBS="-lresolv $LIBS"
8387 else
8388 echo "$ac_t""no" 1>&6
8391 LIBS="$LIBS -lkrb -ldes"
8392 CFLAGS="$CFLAGS -I$withval/include"
8393 LDFLAGS="$LDFLAGS -L$withval/lib"
8394 else
8395 echo "$ac_t""no" 1>&6
8400 #################################################
8401 # check for automount support
8402 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8403 echo "configure:8404: checking whether to use AUTOMOUNT" >&5
8404 # Check whether --with-automount or --without-automount was given.
8405 if test "${with_automount+set}" = set; then
8406 withval="$with_automount"
8407 case "$withval" in
8408 yes)
8409 echo "$ac_t""yes" 1>&6
8410 cat >> confdefs.h <<\EOF
8411 #define WITH_AUTOMOUNT 1
8416 echo "$ac_t""no" 1>&6
8418 esac
8419 else
8420 echo "$ac_t""no" 1>&6
8425 #################################################
8426 # check for smbmount support
8427 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8428 echo "configure:8429: checking whether to use SMBMOUNT" >&5
8429 # Check whether --with-smbmount or --without-smbmount was given.
8430 if test "${with_smbmount+set}" = set; then
8431 withval="$with_smbmount"
8432 case "$withval" in
8433 yes)
8434 echo "$ac_t""yes" 1>&6
8435 cat >> confdefs.h <<\EOF
8436 #define WITH_SMBMOUNT 1
8439 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8442 echo "$ac_t""no" 1>&6
8443 MPROGS=
8445 esac
8446 else
8447 echo "$ac_t""no" 1>&6
8448 MPROGS=
8453 #################################################
8454 # check for a LDAP password database
8455 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8456 echo "configure:8457: checking whether to use LDAP password database" >&5
8457 # Check whether --with-ldap or --without-ldap was given.
8458 if test "${with_ldap+set}" = set; then
8459 withval="$with_ldap"
8460 case "$withval" in
8461 yes)
8462 echo "$ac_t""yes" 1>&6
8463 cat >> confdefs.h <<\EOF
8464 #define WITH_LDAP 1
8469 echo "$ac_t""no" 1>&6
8471 esac
8472 else
8473 echo "$ac_t""no" 1>&6
8478 #################################################
8479 # check for a NISPLUS password database
8480 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8481 echo "configure:8482: checking whether to use NISPLUS password database" >&5
8482 # Check whether --with-nisplus or --without-nisplus was given.
8483 if test "${with_nisplus+set}" = set; then
8484 withval="$with_nisplus"
8485 case "$withval" in
8486 yes)
8487 echo "$ac_t""yes" 1>&6
8488 cat >> confdefs.h <<\EOF
8489 #define WITH_NISPLUS 1
8494 echo "$ac_t""no" 1>&6
8496 esac
8497 else
8498 echo "$ac_t""no" 1>&6
8503 #################################################
8504 # check for a NISPLUS_HOME support
8505 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
8506 echo "configure:8507: checking whether to use NISPLUS_HOME" >&5
8507 # Check whether --with-nisplus-home or --without-nisplus-home was given.
8508 if test "${with_nisplus_home+set}" = set; then
8509 withval="$with_nisplus_home"
8510 case "$withval" in
8511 yes)
8512 echo "$ac_t""yes" 1>&6
8513 cat >> confdefs.h <<\EOF
8514 #define WITH_NISPLUS_HOME 1
8519 echo "$ac_t""no" 1>&6
8521 esac
8522 else
8523 echo "$ac_t""no" 1>&6
8528 #################################################
8529 # check for the secure socket layer
8530 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
8531 echo "configure:8532: checking whether to use SSL" >&5
8532 # Check whether --with-ssl or --without-ssl was given.
8533 if test "${with_ssl+set}" = set; then
8534 withval="$with_ssl"
8535 case "$withval" in
8536 yes)
8537 echo "$ac_t""yes" 1>&6
8538 cat >> confdefs.h <<\EOF
8539 #define WITH_SSL 1
8544 echo "$ac_t""no" 1>&6
8546 esac
8547 else
8548 echo "$ac_t""no" 1>&6
8553 #################################################
8554 # check for experimental mmap support
8555 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
8556 echo "configure:8557: checking whether to use MMAP" >&5
8557 # Check whether --with-mmap or --without-mmap was given.
8558 if test "${with_mmap+set}" = set; then
8559 withval="$with_mmap"
8560 case "$withval" in
8561 yes)
8562 echo "$ac_t""yes" 1>&6
8563 cat >> confdefs.h <<\EOF
8564 #define WITH_MMAP 1
8569 echo "$ac_t""no" 1>&6
8571 esac
8572 else
8573 echo "$ac_t""no" 1>&6
8578 #################################################
8579 # check for syslog logging
8580 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
8581 echo "configure:8582: checking whether to use syslog logging" >&5
8582 # Check whether --with-syslog or --without-syslog was given.
8583 if test "${with_syslog+set}" = set; then
8584 withval="$with_syslog"
8585 case "$withval" in
8586 yes)
8587 echo "$ac_t""yes" 1>&6
8588 cat >> confdefs.h <<\EOF
8589 #define WITH_SYSLOG 1
8594 echo "$ac_t""no" 1>&6
8596 esac
8597 else
8598 echo "$ac_t""no" 1>&6
8603 #################################################
8604 # check for experimental netatalk resource fork support
8605 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
8606 echo "configure:8607: checking whether to support netatalk" >&5
8607 # Check whether --with-netatalk or --without-netatalk was given.
8608 if test "${with_netatalk+set}" = set; then
8609 withval="$with_netatalk"
8610 case "$withval" in
8611 yes)
8612 echo "$ac_t""yes" 1>&6
8613 cat >> confdefs.h <<\EOF
8614 #define WITH_NETATALK 1
8619 echo "$ac_t""no" 1>&6
8621 esac
8622 else
8623 echo "$ac_t""no" 1>&6
8628 #################################################
8629 # check for experimental disk-quotas support
8630 QUOTAOBJS=noquotas.o
8632 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
8633 echo "configure:8634: checking whether to support disk-quotas" >&5
8634 # Check whether --with-quotas or --without-quotas was given.
8635 if test "${with_quotas+set}" = set; then
8636 withval="$with_quotas"
8637 case "$withval" in
8638 yes)
8639 echo "$ac_t""yes" 1>&6
8640 QUOTAOBJS=quotas.o
8643 echo "$ac_t""no" 1>&6
8645 esac
8646 else
8647 echo "$ac_t""no" 1>&6
8653 #################################################
8654 # set private directory location
8655 # Check whether --with-privatedir or --without-privatedir was given.
8656 if test "${with_privatedir+set}" = set; then
8657 withval="$with_privatedir"
8658 case "$withval" in
8659 yes|no)
8661 # Just in case anybody calls it without argument
8663 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
8664 privatedir='${prefix}/private'
8667 privatedir="$withval"
8669 esac
8671 else
8672 privatedir='${prefix}/private'
8678 #################################################
8679 # set SWAT directory location
8680 # Check whether --with-swatdir or --without-swatdir was given.
8681 if test "${with_swatdir+set}" = set; then
8682 withval="$with_swatdir"
8683 case "$withval" in
8684 yes|no)
8686 # Just in case anybody does it
8688 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
8689 swatdir='${prefix}/swat'
8692 swatdir="$withval"
8694 esac
8696 else
8697 swatdir='${prefix}/swat'
8703 #################################################
8704 # these tests are taken from the GNU fileutils package
8705 echo "checking how to get filesystem space usage" 1>&6
8706 echo "configure:8707: checking how to get filesystem space usage" >&5
8707 space=no
8709 # Test for statvfs64.
8710 if test $space = no; then
8711 # SVR4
8712 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
8713 echo "configure:8714: checking statvfs64 function (SVR4)" >&5
8714 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8716 else
8717 if test "$cross_compiling" = yes; then
8718 fu_cv_sys_stat_statvfs64=cross
8719 else
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8724 #if defined(HAVE_UNISTD_H)
8725 #include <unistd.h>
8726 #endif
8727 #include <sys/types.h>
8728 #include <sys/statvfs.h>
8729 main ()
8731 struct statvfs64 fsd;
8732 exit (statvfs64 (".", &fsd));
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8736 then
8737 fu_cv_sys_stat_statvfs64=yes
8738 else
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 rm -fr conftest*
8742 fu_cv_sys_stat_statvfs64=no
8744 rm -fr conftest*
8749 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
8750 if test $fu_cv_sys_stat_statvfs64 = yes; then
8751 space=yes
8752 cat >> confdefs.h <<\EOF
8753 #define STAT_STATVFS64 1
8759 # Perform only the link test since it seems there are no variants of the
8760 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
8761 # because that got a false positive on SCO OSR5. Adding the declaration
8762 # of a `struct statvfs' causes this test to fail (as it should) on such
8763 # systems. That system is reported to work fine with STAT_STATFS4 which
8764 # is what it gets when this test fails.
8765 if test $space = no; then
8766 # SVR4
8767 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
8768 echo "configure:8769: checking statvfs function (SVR4)" >&5
8769 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8771 else
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8775 #include <sys/types.h>
8776 #include <sys/statvfs.h>
8777 int main() {
8778 struct statvfs fsd; statvfs (0, &fsd);
8779 ; return 0; }
8781 if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8782 rm -rf conftest*
8783 fu_cv_sys_stat_statvfs=yes
8784 else
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8787 rm -rf conftest*
8788 fu_cv_sys_stat_statvfs=no
8790 rm -f conftest*
8793 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
8794 if test $fu_cv_sys_stat_statvfs = yes; then
8795 space=yes
8796 cat >> confdefs.h <<\EOF
8797 #define STAT_STATVFS 1
8803 if test $space = no; then
8804 # DEC Alpha running OSF/1
8805 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
8806 echo "configure:8807: checking for 3-argument statfs function (DEC OSF/1)" >&5
8807 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8809 else
8810 if test "$cross_compiling" = yes; then
8811 fu_cv_sys_stat_statfs3_osf1=no
8812 else
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8817 #include <sys/param.h>
8818 #include <sys/types.h>
8819 #include <sys/mount.h>
8820 main ()
8822 struct statfs fsd;
8823 fsd.f_fsize = 0;
8824 exit (statfs (".", &fsd, sizeof (struct statfs)));
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8828 then
8829 fu_cv_sys_stat_statfs3_osf1=yes
8830 else
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 rm -fr conftest*
8834 fu_cv_sys_stat_statfs3_osf1=no
8836 rm -fr conftest*
8841 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
8842 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8843 space=yes
8844 cat >> confdefs.h <<\EOF
8845 #define STAT_STATFS3_OSF1 1
8851 if test $space = no; then
8852 # AIX
8853 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
8854 echo "configure:8855: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8855 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8858 if test "$cross_compiling" = yes; then
8859 fu_cv_sys_stat_statfs2_bsize=no
8860 else
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8865 #ifdef HAVE_SYS_PARAM_H
8866 #include <sys/param.h>
8867 #endif
8868 #ifdef HAVE_SYS_MOUNT_H
8869 #include <sys/mount.h>
8870 #endif
8871 #ifdef HAVE_SYS_VFS_H
8872 #include <sys/vfs.h>
8873 #endif
8874 main ()
8876 struct statfs fsd;
8877 fsd.f_bsize = 0;
8878 exit (statfs (".", &fsd));
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8882 then
8883 fu_cv_sys_stat_statfs2_bsize=yes
8884 else
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -fr conftest*
8888 fu_cv_sys_stat_statfs2_bsize=no
8890 rm -fr conftest*
8895 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
8896 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8897 space=yes
8898 cat >> confdefs.h <<\EOF
8899 #define STAT_STATFS2_BSIZE 1
8905 if test $space = no; then
8906 # SVR3
8907 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
8908 echo "configure:8909: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8909 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8911 else
8912 if test "$cross_compiling" = yes; then
8913 fu_cv_sys_stat_statfs4=no
8914 else
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8918 #include <sys/types.h>
8919 #include <sys/statfs.h>
8920 main ()
8922 struct statfs fsd;
8923 exit (statfs (".", &fsd, sizeof fsd, 0));
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8927 then
8928 fu_cv_sys_stat_statfs4=yes
8929 else
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -fr conftest*
8933 fu_cv_sys_stat_statfs4=no
8935 rm -fr conftest*
8940 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
8941 if test $fu_cv_sys_stat_statfs4 = yes; then
8942 space=yes
8943 cat >> confdefs.h <<\EOF
8944 #define STAT_STATFS4 1
8950 if test $space = no; then
8951 # 4.4BSD and NetBSD
8952 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
8953 echo "configure:8954: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
8954 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8957 if test "$cross_compiling" = yes; then
8958 fu_cv_sys_stat_statfs2_fsize=no
8959 else
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 #include <sys/types.h>
8964 #ifdef HAVE_SYS_PARAM_H
8965 #include <sys/param.h>
8966 #endif
8967 #ifdef HAVE_SYS_MOUNT_H
8968 #include <sys/mount.h>
8969 #endif
8970 main ()
8972 struct statfs fsd;
8973 fsd.f_fsize = 0;
8974 exit (statfs (".", &fsd));
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8978 then
8979 fu_cv_sys_stat_statfs2_fsize=yes
8980 else
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 rm -fr conftest*
8984 fu_cv_sys_stat_statfs2_fsize=no
8986 rm -fr conftest*
8991 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
8992 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8993 space=yes
8994 cat >> confdefs.h <<\EOF
8995 #define STAT_STATFS2_FSIZE 1
9001 if test $space = no; then
9002 # Ultrix
9003 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9004 echo "configure:9005: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9005 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9007 else
9008 if test "$cross_compiling" = yes; then
9009 fu_cv_sys_stat_fs_data=no
9010 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <sys/types.h>
9015 #ifdef HAVE_SYS_PARAM_H
9016 #include <sys/param.h>
9017 #endif
9018 #ifdef HAVE_SYS_MOUNT_H
9019 #include <sys/mount.h>
9020 #endif
9021 #ifdef HAVE_SYS_FS_TYPES_H
9022 #include <sys/fs_types.h>
9023 #endif
9024 main ()
9026 struct fs_data fsd;
9027 /* Ultrix's statfs returns 1 for success,
9028 0 for not mounted, -1 for failure. */
9029 exit (statfs (".", &fsd) != 1);
9032 if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9033 then
9034 fu_cv_sys_stat_fs_data=yes
9035 else
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9038 rm -fr conftest*
9039 fu_cv_sys_stat_fs_data=no
9041 rm -fr conftest*
9046 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9047 if test $fu_cv_sys_stat_fs_data = yes; then
9048 space=yes
9049 cat >> confdefs.h <<\EOF
9050 #define STAT_STATFS2_FS_DATA 1
9056 echo "checking configure summary"
9057 if test "$cross_compiling" = yes; then
9059 else
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 #include "${srcdir-.}/tests/summary.c"
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9066 then
9067 echo "configure OK";
9068 else
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9071 rm -fr conftest*
9072 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9074 rm -fr conftest*
9078 builddir=`pwd`
9081 trap '' 1 2 15
9082 cat > confcache <<\EOF
9083 # This file is a shell script that caches the results of configure
9084 # tests run on this system so they can be shared between configure
9085 # scripts and configure runs. It is not useful on other systems.
9086 # If it contains results you don't want to keep, you may remove or edit it.
9088 # By default, configure uses ./config.cache as the cache file,
9089 # creating it if it does not exist already. You can give configure
9090 # the --cache-file=FILE option to use a different cache file; that is
9091 # what configure does when it calls configure scripts in
9092 # subdirectories, so they share the cache.
9093 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9094 # config.status only pays attention to the cache file if you give it the
9095 # --recheck option to rerun configure.
9098 # The following way of writing the cache mishandles newlines in values,
9099 # but we know of no workaround that is simple, portable, and efficient.
9100 # So, don't put newlines in cache variables' values.
9101 # Ultrix sh set writes to stderr and can't be redirected directly,
9102 # and sets the high bit in the cache file unless we assign to the vars.
9103 (set) 2>&1 |
9104 case `(ac_space=' '; set) 2>&1` in
9105 *ac_space=\ *)
9106 # `set' does not quote correctly, so add quotes (double-quote substitution
9107 # turns \\\\ into \\, and sed turns \\ into \).
9108 sed -n \
9109 -e "s/'/'\\\\''/g" \
9110 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9113 # `set' quotes correctly as required by POSIX, so do not add quotes.
9114 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9116 esac >> confcache
9117 if cmp -s $cache_file confcache; then
9119 else
9120 if test -w $cache_file; then
9121 echo "updating cache $cache_file"
9122 cat confcache > $cache_file
9123 else
9124 echo "not updating unwritable cache $cache_file"
9127 rm -f confcache
9129 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9132 # Let make expand exec_prefix.
9133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9135 # Any assignment to VPATH causes Sun make to only execute
9136 # the first set of double-colon rules, so remove it if not needed.
9137 # If there is a colon in the path, we need to keep it.
9138 if test "x$srcdir" = x.; then
9139 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9142 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9144 DEFS=-DHAVE_CONFIG_H
9146 # Without the "./", some shells look in PATH for config.status.
9147 : ${CONFIG_STATUS=./config.status}
9149 echo creating $CONFIG_STATUS
9150 rm -f $CONFIG_STATUS
9151 cat > $CONFIG_STATUS <<EOF
9152 #! /bin/sh
9153 # Generated automatically by configure.
9154 # Run this file to recreate the current configuration.
9155 # This directory was configured as follows,
9156 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9158 # $0 $ac_configure_args
9160 # Compiler output produced by configure, useful for debugging
9161 # configure, is in ./config.log if it exists.
9163 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9164 for ac_option
9166 case "\$ac_option" in
9167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9168 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9169 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9170 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9171 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9172 exit 0 ;;
9173 -help | --help | --hel | --he | --h)
9174 echo "\$ac_cs_usage"; exit 0 ;;
9175 *) echo "\$ac_cs_usage"; exit 1 ;;
9176 esac
9177 done
9179 ac_given_srcdir=$srcdir
9180 ac_given_INSTALL="$INSTALL"
9182 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9184 cat >> $CONFIG_STATUS <<EOF
9186 # Protect against being on the right side of a sed subst in config.status.
9187 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9188 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9189 $ac_vpsub
9190 $extrasub
9191 s%@CFLAGS@%$CFLAGS%g
9192 s%@CPPFLAGS@%$CPPFLAGS%g
9193 s%@CXXFLAGS@%$CXXFLAGS%g
9194 s%@DEFS@%$DEFS%g
9195 s%@LDFLAGS@%$LDFLAGS%g
9196 s%@LIBS@%$LIBS%g
9197 s%@exec_prefix@%$exec_prefix%g
9198 s%@prefix@%$prefix%g
9199 s%@program_transform_name@%$program_transform_name%g
9200 s%@bindir@%$bindir%g
9201 s%@sbindir@%$sbindir%g
9202 s%@libexecdir@%$libexecdir%g
9203 s%@datadir@%$datadir%g
9204 s%@sysconfdir@%$sysconfdir%g
9205 s%@sharedstatedir@%$sharedstatedir%g
9206 s%@localstatedir@%$localstatedir%g
9207 s%@libdir@%$libdir%g
9208 s%@includedir@%$includedir%g
9209 s%@oldincludedir@%$oldincludedir%g
9210 s%@infodir@%$infodir%g
9211 s%@mandir@%$mandir%g
9212 s%@SHELL@%$SHELL%g
9213 s%@MPROGS@%$MPROGS%g
9214 s%@LDSHFLAGS@%$LDSHFLAGS%g
9215 s%@HOST_OS@%$HOST_OS%g
9216 s%@WRAP@%$WRAP%g
9217 s%@WRAP32@%$WRAP32%g
9218 s%@PICFLAG@%$PICFLAG%g
9219 s%@CC@%$CC%g
9220 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9221 s%@INSTALL_DATA@%$INSTALL_DATA%g
9222 s%@AWK@%$AWK%g
9223 s%@host@%$host%g
9224 s%@host_alias@%$host_alias%g
9225 s%@host_cpu@%$host_cpu%g
9226 s%@host_vendor@%$host_vendor%g
9227 s%@host_os@%$host_os%g
9228 s%@target@%$target%g
9229 s%@target_alias@%$target_alias%g
9230 s%@target_cpu@%$target_cpu%g
9231 s%@target_vendor@%$target_vendor%g
9232 s%@target_os@%$target_os%g
9233 s%@build@%$build%g
9234 s%@build_alias@%$build_alias%g
9235 s%@build_cpu@%$build_cpu%g
9236 s%@build_vendor@%$build_vendor%g
9237 s%@build_os@%$build_os%g
9238 s%@MAINT@%$MAINT%g
9239 s%@AUTOCONF@%$AUTOCONF%g
9240 s%@AUTOHEADER@%$AUTOHEADER%g
9241 s%@CPP@%$CPP%g
9242 s%@LIBOBJS@%$LIBOBJS%g
9243 s%@ROFF@%$ROFF%g
9244 s%@QUOTAOBJS@%$QUOTAOBJS%g
9245 s%@privatedir@%$privatedir%g
9246 s%@swatdir@%$swatdir%g
9247 s%@builddir@%$builddir%g
9249 CEOF
9252 cat >> $CONFIG_STATUS <<\EOF
9254 # Split the substitutions into bite-sized pieces for seds with
9255 # small command number limits, like on Digital OSF/1 and HP-UX.
9256 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9257 ac_file=1 # Number of current file.
9258 ac_beg=1 # First line for current file.
9259 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9260 ac_more_lines=:
9261 ac_sed_cmds=""
9262 while $ac_more_lines; do
9263 if test $ac_beg -gt 1; then
9264 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9265 else
9266 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9268 if test ! -s conftest.s$ac_file; then
9269 ac_more_lines=false
9270 rm -f conftest.s$ac_file
9271 else
9272 if test -z "$ac_sed_cmds"; then
9273 ac_sed_cmds="sed -f conftest.s$ac_file"
9274 else
9275 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9277 ac_file=`expr $ac_file + 1`
9278 ac_beg=$ac_end
9279 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9281 done
9282 if test -z "$ac_sed_cmds"; then
9283 ac_sed_cmds=cat
9287 cat >> $CONFIG_STATUS <<EOF
9289 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9291 cat >> $CONFIG_STATUS <<\EOF
9292 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9294 case "$ac_file" in
9295 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9296 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9297 *) ac_file_in="${ac_file}.in" ;;
9298 esac
9300 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9302 # Remove last slash and all that follows it. Not all systems have dirname.
9303 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9304 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9305 # The file is in a subdirectory.
9306 test ! -d "$ac_dir" && mkdir "$ac_dir"
9307 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9308 # A "../" for each directory in $ac_dir_suffix.
9309 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9310 else
9311 ac_dir_suffix= ac_dots=
9314 case "$ac_given_srcdir" in
9315 .) srcdir=.
9316 if test -z "$ac_dots"; then top_srcdir=.
9317 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9318 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9319 *) # Relative path.
9320 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9321 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9322 esac
9324 case "$ac_given_INSTALL" in
9325 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9326 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9327 esac
9329 echo creating "$ac_file"
9330 rm -f "$ac_file"
9331 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9332 case "$ac_file" in
9333 *Makefile*) ac_comsub="1i\\
9334 # $configure_input" ;;
9335 *) ac_comsub= ;;
9336 esac
9338 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9339 sed -e "$ac_comsub
9340 s%@configure_input@%$configure_input%g
9341 s%@srcdir@%$srcdir%g
9342 s%@top_srcdir@%$top_srcdir%g
9343 s%@INSTALL@%$INSTALL%g
9344 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9345 fi; done
9346 rm -f conftest.s*
9348 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9349 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9351 # ac_d sets the value in "#define NAME VALUE" lines.
9352 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9353 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9354 ac_dC='\3'
9355 ac_dD='%g'
9356 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9357 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9358 ac_uB='\([ ]\)%\1#\2define\3'
9359 ac_uC=' '
9360 ac_uD='\4%g'
9361 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9362 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9363 ac_eB='$%\1#\2define\3'
9364 ac_eC=' '
9365 ac_eD='%g'
9367 if test "${CONFIG_HEADERS+set}" != set; then
9369 cat >> $CONFIG_STATUS <<EOF
9370 CONFIG_HEADERS="include/config.h"
9372 cat >> $CONFIG_STATUS <<\EOF
9374 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9376 case "$ac_file" in
9377 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9378 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9379 *) ac_file_in="${ac_file}.in" ;;
9380 esac
9382 echo creating $ac_file
9384 rm -f conftest.frag conftest.in conftest.out
9385 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9386 cat $ac_file_inputs > conftest.in
9390 # Transform confdefs.h into a sed script conftest.vals that substitutes
9391 # the proper values into config.h.in to produce config.h. And first:
9392 # Protect against being on the right side of a sed subst in config.status.
9393 # Protect against being in an unquoted here document in config.status.
9394 rm -f conftest.vals
9395 cat > conftest.hdr <<\EOF
9396 s/[\\&%]/\\&/g
9397 s%[\\$`]%\\&%g
9398 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9399 s%ac_d%ac_u%gp
9400 s%ac_u%ac_e%gp
9402 sed -n -f conftest.hdr confdefs.h > conftest.vals
9403 rm -f conftest.hdr
9405 # This sed command replaces #undef with comments. This is necessary, for
9406 # example, in the case of _POSIX_SOURCE, which is predefined and required
9407 # on some systems where configure will not decide to define it.
9408 cat >> conftest.vals <<\EOF
9409 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9412 # Break up conftest.vals because some shells have a limit on
9413 # the size of here documents, and old seds have small limits too.
9415 rm -f conftest.tail
9416 while :
9418 ac_lines=`grep -c . conftest.vals`
9419 # grep -c gives empty output for an empty file on some AIX systems.
9420 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9421 # Write a limited-size here document to conftest.frag.
9422 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9423 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9424 echo 'CEOF
9425 sed -f conftest.frag conftest.in > conftest.out
9426 rm -f conftest.in
9427 mv conftest.out conftest.in
9428 ' >> $CONFIG_STATUS
9429 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9430 rm -f conftest.vals
9431 mv conftest.tail conftest.vals
9432 done
9433 rm -f conftest.vals
9435 cat >> $CONFIG_STATUS <<\EOF
9436 rm -f conftest.frag conftest.h
9437 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9438 cat conftest.in >> conftest.h
9439 rm -f conftest.in
9440 if cmp -s $ac_file conftest.h 2>/dev/null; then
9441 echo "$ac_file is unchanged"
9442 rm -f conftest.h
9443 else
9444 # Remove last slash and all that follows it. Not all systems have dirname.
9445 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9446 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9447 # The file is in a subdirectory.
9448 test ! -d "$ac_dir" && mkdir "$ac_dir"
9450 rm -f $ac_file
9451 mv conftest.h $ac_file
9453 fi; done
9456 cat >> $CONFIG_STATUS <<EOF
9459 cat >> $CONFIG_STATUS <<\EOF
9461 exit 0
9463 chmod +x $CONFIG_STATUS
9464 rm -fr confdefs* $ac_clean_files
9465 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1