Fix for random stream generator.
[Samba/gbeck.git] / source / configure
blob7a58bb973b02226723e60eaf9de317e745da161c
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-static[=PKGS] build static libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --disable-libtool-lock avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
32 ac_help="$ac_help
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
35 ac_help="$ac_help
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
38 ac_help="$ac_help
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
41 ac_help="$ac_help
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
44 ac_help="$ac_help
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
50 ac_help="$ac_help
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
53 ac_help="$ac_help
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
56 ac_help="$ac_help
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
59 ac_help="$ac_help
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
62 ac_help="$ac_help
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
65 ac_help="$ac_help
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
68 ac_help="$ac_help
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
71 ac_help="$ac_help
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
75 ac_help="$ac_help
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
78 ac_help="$ac_help
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
81 ac_help="$ac_help
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
84 ac_help="$ac_help
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
87 ac_help="$ac_help
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
90 ac_help="$ac_help
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
93 ac_help="$ac_help
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
95 ac_help="$ac_help
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
97 ac_help="$ac_help
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
99 ac_help="$ac_help
100 --with-spinlocks use spin locks instead of fcntl locks "
101 ac_help="$ac_help
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
105 # Initialize some variables set by options.
106 # The variables have the same names as the options, with
107 # dashes changed to underlines.
108 build=NONE
109 cache_file=./config.cache
110 exec_prefix=NONE
111 host=NONE
112 no_create=
113 nonopt=NONE
114 no_recursion=
115 prefix=NONE
116 program_prefix=NONE
117 program_suffix=NONE
118 program_transform_name=s,x,x,
119 silent=
120 site=
121 srcdir=
122 target=NONE
123 verbose=
124 x_includes=NONE
125 x_libraries=NONE
126 bindir='${exec_prefix}/bin'
127 sbindir='${exec_prefix}/sbin'
128 libexecdir='${exec_prefix}/libexec'
129 datadir='${prefix}/share'
130 sysconfdir='${prefix}/etc'
131 sharedstatedir='${prefix}/com'
132 localstatedir='${prefix}/var'
133 libdir='${exec_prefix}/lib'
134 includedir='${prefix}/include'
135 oldincludedir='/usr/include'
136 infodir='${prefix}/info'
137 mandir='${prefix}/man'
139 # Initialize some other variables.
140 subdirs=
141 MFLAGS= MAKEFLAGS=
142 SHELL=${CONFIG_SHELL-/bin/sh}
143 # Maximum number of lines to put in a shell here document.
144 ac_max_here_lines=12
146 ac_prev=
147 for ac_option
150 # If the previous option needs an argument, assign it.
151 if test -n "$ac_prev"; then
152 eval "$ac_prev=\$ac_option"
153 ac_prev=
154 continue
157 case "$ac_option" in
158 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 *) ac_optarg= ;;
160 esac
162 # Accept the important Cygnus configure options, so we can diagnose typos.
164 case "$ac_option" in
166 -bindir | --bindir | --bindi | --bind | --bin | --bi)
167 ac_prev=bindir ;;
168 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
169 bindir="$ac_optarg" ;;
171 -build | --build | --buil | --bui | --bu)
172 ac_prev=build ;;
173 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
174 build="$ac_optarg" ;;
176 -cache-file | --cache-file | --cache-fil | --cache-fi \
177 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
178 ac_prev=cache_file ;;
179 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
180 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
181 cache_file="$ac_optarg" ;;
183 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
184 ac_prev=datadir ;;
185 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
186 | --da=*)
187 datadir="$ac_optarg" ;;
189 -disable-* | --disable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}=no" ;;
198 -enable-* | --enable-*)
199 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
205 case "$ac_option" in
206 *=*) ;;
207 *) ac_optarg=yes ;;
208 esac
209 eval "enable_${ac_feature}='$ac_optarg'" ;;
211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
213 | --exec | --exe | --ex)
214 ac_prev=exec_prefix ;;
215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
217 | --exec=* | --exe=* | --ex=*)
218 exec_prefix="$ac_optarg" ;;
220 -gas | --gas | --ga | --g)
221 # Obsolete; use --with-gas.
222 with_gas=yes ;;
224 -help | --help | --hel | --he)
225 # Omit some internal or obsolete options to make the list less imposing.
226 # This message is too long to be a string in the A/UX 3.1 sh.
227 cat << EOF
228 Usage: configure [options] [host]
229 Options: [defaults in brackets after descriptions]
230 Configuration:
231 --cache-file=FILE cache test results in FILE
232 --help print this message
233 --no-create do not create output files
234 --quiet, --silent do not print \`checking...' messages
235 --version print the version of autoconf that created configure
236 Directory and file names:
237 --prefix=PREFIX install architecture-independent files in PREFIX
238 [$ac_default_prefix]
239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
240 [same as prefix]
241 --bindir=DIR user executables in DIR [EPREFIX/bin]
242 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
243 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
244 --datadir=DIR read-only architecture-independent data in DIR
245 [PREFIX/share]
246 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
247 --sharedstatedir=DIR modifiable architecture-independent data in DIR
248 [PREFIX/com]
249 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
250 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
251 --includedir=DIR C header files in DIR [PREFIX/include]
252 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
253 --infodir=DIR info documentation in DIR [PREFIX/info]
254 --mandir=DIR man documentation in DIR [PREFIX/man]
255 --srcdir=DIR find the sources in DIR [configure dir or ..]
256 --program-prefix=PREFIX prepend PREFIX to installed program names
257 --program-suffix=SUFFIX append SUFFIX to installed program names
258 --program-transform-name=PROGRAM
259 run sed PROGRAM on installed program names
261 cat << EOF
262 Host type:
263 --build=BUILD configure for building on BUILD [BUILD=HOST]
264 --host=HOST configure for HOST [guessed]
265 --target=TARGET configure for TARGET [TARGET=HOST]
266 Features and packages:
267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
269 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
270 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
271 --x-includes=DIR X include files are in DIR
272 --x-libraries=DIR X library files are in DIR
274 if test -n "$ac_help"; then
275 echo "--enable and --with options recognized:$ac_help"
277 exit 0 ;;
279 -host | --host | --hos | --ho)
280 ac_prev=host ;;
281 -host=* | --host=* | --hos=* | --ho=*)
282 host="$ac_optarg" ;;
284 -includedir | --includedir | --includedi | --included | --include \
285 | --includ | --inclu | --incl | --inc)
286 ac_prev=includedir ;;
287 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
288 | --includ=* | --inclu=* | --incl=* | --inc=*)
289 includedir="$ac_optarg" ;;
291 -infodir | --infodir | --infodi | --infod | --info | --inf)
292 ac_prev=infodir ;;
293 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
294 infodir="$ac_optarg" ;;
296 -libdir | --libdir | --libdi | --libd)
297 ac_prev=libdir ;;
298 -libdir=* | --libdir=* | --libdi=* | --libd=*)
299 libdir="$ac_optarg" ;;
301 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
302 | --libexe | --libex | --libe)
303 ac_prev=libexecdir ;;
304 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
305 | --libexe=* | --libex=* | --libe=*)
306 libexecdir="$ac_optarg" ;;
308 -localstatedir | --localstatedir | --localstatedi | --localstated \
309 | --localstate | --localstat | --localsta | --localst \
310 | --locals | --local | --loca | --loc | --lo)
311 ac_prev=localstatedir ;;
312 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
313 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
314 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
315 localstatedir="$ac_optarg" ;;
317 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
318 ac_prev=mandir ;;
319 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
320 mandir="$ac_optarg" ;;
322 -nfp | --nfp | --nf)
323 # Obsolete; use --without-fp.
324 with_fp=no ;;
326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 | --no-cr | --no-c)
328 no_create=yes ;;
330 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
331 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 no_recursion=yes ;;
334 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
335 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
336 | --oldin | --oldi | --old | --ol | --o)
337 ac_prev=oldincludedir ;;
338 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
339 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
340 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
341 oldincludedir="$ac_optarg" ;;
343 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
344 ac_prev=prefix ;;
345 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
346 prefix="$ac_optarg" ;;
348 -program-prefix | --program-prefix | --program-prefi | --program-pref \
349 | --program-pre | --program-pr | --program-p)
350 ac_prev=program_prefix ;;
351 -program-prefix=* | --program-prefix=* | --program-prefi=* \
352 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
353 program_prefix="$ac_optarg" ;;
355 -program-suffix | --program-suffix | --program-suffi | --program-suff \
356 | --program-suf | --program-su | --program-s)
357 ac_prev=program_suffix ;;
358 -program-suffix=* | --program-suffix=* | --program-suffi=* \
359 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
360 program_suffix="$ac_optarg" ;;
362 -program-transform-name | --program-transform-name \
363 | --program-transform-nam | --program-transform-na \
364 | --program-transform-n | --program-transform- \
365 | --program-transform | --program-transfor \
366 | --program-transfo | --program-transf \
367 | --program-trans | --program-tran \
368 | --progr-tra | --program-tr | --program-t)
369 ac_prev=program_transform_name ;;
370 -program-transform-name=* | --program-transform-name=* \
371 | --program-transform-nam=* | --program-transform-na=* \
372 | --program-transform-n=* | --program-transform-=* \
373 | --program-transform=* | --program-transfor=* \
374 | --program-transfo=* | --program-transf=* \
375 | --program-trans=* | --program-tran=* \
376 | --progr-tra=* | --program-tr=* | --program-t=*)
377 program_transform_name="$ac_optarg" ;;
379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
380 | -silent | --silent | --silen | --sile | --sil)
381 silent=yes ;;
383 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
384 ac_prev=sbindir ;;
385 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
386 | --sbi=* | --sb=*)
387 sbindir="$ac_optarg" ;;
389 -sharedstatedir | --sharedstatedir | --sharedstatedi \
390 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
391 | --sharedst | --shareds | --shared | --share | --shar \
392 | --sha | --sh)
393 ac_prev=sharedstatedir ;;
394 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
395 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
396 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
397 | --sha=* | --sh=*)
398 sharedstatedir="$ac_optarg" ;;
400 -site | --site | --sit)
401 ac_prev=site ;;
402 -site=* | --site=* | --sit=*)
403 site="$ac_optarg" ;;
405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
406 ac_prev=srcdir ;;
407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
408 srcdir="$ac_optarg" ;;
410 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
411 | --syscon | --sysco | --sysc | --sys | --sy)
412 ac_prev=sysconfdir ;;
413 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
414 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
415 sysconfdir="$ac_optarg" ;;
417 -target | --target | --targe | --targ | --tar | --ta | --t)
418 ac_prev=target ;;
419 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
420 target="$ac_optarg" ;;
422 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 verbose=yes ;;
425 -version | --version | --versio | --versi | --vers)
426 echo "configure generated by autoconf version 2.13"
427 exit 0 ;;
429 -with-* | --with-*)
430 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 case "$ac_option" in
437 *=*) ;;
438 *) ac_optarg=yes ;;
439 esac
440 eval "with_${ac_package}='$ac_optarg'" ;;
442 -without-* | --without-*)
443 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}=no" ;;
451 --x)
452 # Obsolete; use --with-x.
453 with_x=yes ;;
455 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
456 | --x-incl | --x-inc | --x-in | --x-i)
457 ac_prev=x_includes ;;
458 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
459 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
460 x_includes="$ac_optarg" ;;
462 -x-libraries | --x-libraries | --x-librarie | --x-librari \
463 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
464 ac_prev=x_libraries ;;
465 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
466 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
467 x_libraries="$ac_optarg" ;;
469 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
473 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
474 echo "configure: warning: $ac_option: invalid host type" 1>&2
476 if test "x$nonopt" != xNONE; then
477 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
479 nonopt="$ac_option"
482 esac
483 done
485 if test -n "$ac_prev"; then
486 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
491 # File descriptor usage:
492 # 0 standard input
493 # 1 file creation
494 # 2 errors and warnings
495 # 3 some systems may open it to /dev/tty
496 # 4 used on the Kubota Titan
497 # 6 checking for... messages and results
498 # 5 compiler messages saved in config.log
499 if test "$silent" = yes; then
500 exec 6>/dev/null
501 else
502 exec 6>&1
504 exec 5>./config.log
506 echo "\
507 This file contains any messages produced by compilers while
508 running configure, to aid debugging if configure makes a mistake.
509 " 1>&5
511 # Strip out --no-create and --no-recursion so they do not pile up.
512 # Also quote any args containing shell metacharacters.
513 ac_configure_args=
514 for ac_arg
516 case "$ac_arg" in
517 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
518 | --no-cr | --no-c) ;;
519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
521 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
522 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
523 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
524 esac
525 done
527 # NLS nuisances.
528 # Only set these to C if already set. These must not be set unconditionally
529 # because not all systems understand e.g. LANG=C (notably SCO).
530 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
531 # Non-C LC_CTYPE values break the ctype check.
532 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
533 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
534 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
535 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538 rm -rf conftest* confdefs.h
539 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
540 echo > confdefs.h
542 # A filename unique to this package, relative to the directory that
543 # configure is in, which we can look for to find out if srcdir is correct.
544 ac_unique_file=include/includes.h
546 # Find the source files, if location was not specified.
547 if test -z "$srcdir"; then
548 ac_srcdir_defaulted=yes
549 # Try the directory containing this script, then its parent.
550 ac_prog=$0
551 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
552 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
553 srcdir=$ac_confdir
554 if test ! -r $srcdir/$ac_unique_file; then
555 srcdir=..
557 else
558 ac_srcdir_defaulted=no
560 if test ! -r $srcdir/$ac_unique_file; then
561 if test "$ac_srcdir_defaulted" = yes; then
562 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
563 else
564 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
567 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
569 # Prefer explicitly selected file to automatically selected ones.
570 if test -z "$CONFIG_SITE"; then
571 if test "x$prefix" != xNONE; then
572 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
573 else
574 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
577 for ac_site_file in $CONFIG_SITE; do
578 if test -r "$ac_site_file"; then
579 echo "loading site script $ac_site_file"
580 . "$ac_site_file"
582 done
584 if test -r "$cache_file"; then
585 echo "loading cache $cache_file"
586 . $cache_file
587 else
588 echo "creating cache $cache_file"
589 > $cache_file
592 ac_ext=c
593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
594 ac_cpp='$CPP $CPPFLAGS'
595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
597 cross_compiling=$ac_cv_prog_cc_cross
599 ac_exeext=
600 ac_objext=o
601 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
602 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
603 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
604 ac_n= ac_c='
605 ' ac_t=' '
606 else
607 ac_n=-n ac_c= ac_t=
609 else
610 ac_n= ac_c='\c' ac_t=
615 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS="-O ${CFLAGS}"
632 # Check whether --enable-debug or --disable-debug was given.
633 if test "${enable_debug+set}" = set; then
634 enableval="$enable_debug"
635 if eval "test x$enable_debug = xyes"; then
636 CFLAGS="${CFLAGS} -g"
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
648 else
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
651 else
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
653 ac_dummy="$PATH"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 ac_cv_prog_CC="gcc"
658 break
660 done
661 IFS="$ac_save_ifs"
664 CC="$ac_cv_prog_CC"
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
667 else
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678 else
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
681 else
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 ac_prog_rejected=no
684 ac_dummy="$PATH"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689 ac_prog_rejected=yes
690 continue
692 ac_cv_prog_CC="cc"
693 break
695 done
696 IFS="$ac_save_ifs"
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy $ac_cv_prog_CC
700 shift
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
705 shift
706 set dummy "$ac_dir/$ac_word" "$@"
707 shift
708 ac_cv_prog_CC="$@"
713 CC="$ac_cv_prog_CC"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
716 else
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
721 case "`uname -s`" in
722 *win32* | *WIN32*)
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl; ac_word=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 if test -n "$CC"; then
731 ac_cv_prog_CC="$CC" # Let the user override the test.
732 else
733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
734 ac_dummy="$PATH"
735 for ac_dir in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir=.
737 if test -f $ac_dir/$ac_word; then
738 ac_cv_prog_CC="cl"
739 break
741 done
742 IFS="$ac_save_ifs"
745 CC="$ac_cv_prog_CC"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748 else
749 echo "$ac_t""no" 1>&6
752 esac
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
760 ac_ext=c
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp='$CPP $CPPFLAGS'
763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling=$ac_cv_prog_cc_cross
767 cat > conftest.$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 main(){return(0);}
774 if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
775 ac_cv_prog_cc_works=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (./conftest; exit) 2>/dev/null; then
778 ac_cv_prog_cc_cross=no
779 else
780 ac_cv_prog_cc_cross=yes
782 else
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
785 ac_cv_prog_cc_works=no
787 rm -fr conftest*
788 ac_ext=c
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp='$CPP $CPPFLAGS'
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 cat > conftest.c <<EOF
810 #ifdef __GNUC__
811 yes;
812 #endif
814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815 ac_cv_prog_gcc=yes
816 else
817 ac_cv_prog_gcc=no
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
824 GCC=yes
825 else
826 GCC=
829 ac_test_CFLAGS="${CFLAGS+set}"
830 ac_save_CFLAGS="$CFLAGS"
831 CFLAGS=
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 ac_cv_prog_cc_g=yes
840 else
841 ac_cv_prog_cc_g=no
843 rm -f conftest*
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
852 CFLAGS="-g -O2"
853 else
854 CFLAGS="-g"
856 else
857 if test "$GCC" = yes; then
858 CFLAGS="-O2"
859 else
860 CFLAGS=
864 ac_aux_dir=
865 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
866 if test -f $ac_dir/install-sh; then
867 ac_aux_dir=$ac_dir
868 ac_install_sh="$ac_aux_dir/install-sh -c"
869 break
870 elif test -f $ac_dir/install.sh; then
871 ac_aux_dir=$ac_dir
872 ac_install_sh="$ac_aux_dir/install.sh -c"
873 break
875 done
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
879 ac_config_guess=$ac_aux_dir/config.guess
880 ac_config_sub=$ac_aux_dir/config.sub
881 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
883 # Find a good install program. We prefer a C program (faster),
884 # so one script is as good as another. But avoid the broken or
885 # incompatible versions:
886 # SysV /etc/install, /usr/sbin/install
887 # SunOS /usr/etc/install
888 # IRIX /sbin/install
889 # AIX /bin/install
890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
893 # ./install, which can be erroneously created by make from ./install.sh.
894 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
895 echo "configure:896: checking for a BSD compatible install" >&5
896 if test -z "$INSTALL"; then
897 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899 else
900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
901 for ac_dir in $PATH; do
902 # Account for people who put trailing slashes in PATH elements.
903 case "$ac_dir/" in
904 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
906 # OSF1 and SCO ODT 3.0 have their own names for install.
907 # Don't use installbsd from OSF since it installs stuff as root
908 # by default.
909 for ac_prog in ginstall scoinst install; do
910 if test -f $ac_dir/$ac_prog; then
911 if test $ac_prog = install &&
912 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
913 # AIX install. It has an incompatible calling convention.
915 else
916 ac_cv_path_install="$ac_dir/$ac_prog -c"
917 break 2
920 done
922 esac
923 done
924 IFS="$ac_save_IFS"
927 if test "${ac_cv_path_install+set}" = set; then
928 INSTALL="$ac_cv_path_install"
929 else
930 # As a last resort, use the slow shell script. We don't cache a
931 # path for INSTALL within a source directory, because that will
932 # break other packages using the cache if that directory is
933 # removed, or if the path is relative.
934 INSTALL="$ac_install_sh"
937 echo "$ac_t""$INSTALL" 1>&6
939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
940 # It thinks the first close brace ends the variable substitution.
941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
945 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
947 for ac_prog in mawk gawk nawk awk
949 # Extract the first word of "$ac_prog", so it can be a program name with args.
950 set dummy $ac_prog; ac_word=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
955 else
956 if test -n "$AWK"; then
957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 else
959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 ac_dummy="$PATH"
961 for ac_dir in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_AWK="$ac_prog"
965 break
967 done
968 IFS="$ac_save_ifs"
971 AWK="$ac_cv_prog_AWK"
972 if test -n "$AWK"; then
973 echo "$ac_t""$AWK" 1>&6
974 else
975 echo "$ac_t""no" 1>&6
978 test -n "$AWK" && break
979 done
981 # Check whether --enable-shared or --disable-shared was given.
982 if test "${enable_shared+set}" = set; then
983 enableval="$enable_shared"
984 p=${PACKAGE-default}
985 case "$enableval" in
986 yes) enable_shared=yes ;;
987 no) enable_shared=no ;;
989 enable_shared=no
990 # Look at the argument we got. We use all the common list separators.
991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
992 for pkg in $enableval; do
993 if test "X$pkg" = "X$p"; then
994 enable_shared=yes
996 done
997 IFS="$ac_save_ifs"
999 esac
1000 else
1001 enable_shared=yes
1004 # Check whether --enable-static or --disable-static was given.
1005 if test "${enable_static+set}" = set; then
1006 enableval="$enable_static"
1007 p=${PACKAGE-default}
1008 case "$enableval" in
1009 yes) enable_static=yes ;;
1010 no) enable_static=no ;;
1012 enable_static=no
1013 # Look at the argument we got. We use all the common list separators.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1015 for pkg in $enableval; do
1016 if test "X$pkg" = "X$p"; then
1017 enable_static=yes
1019 done
1020 IFS="$ac_save_ifs"
1022 esac
1023 else
1024 enable_static=yes
1027 # Check whether --enable-fast-install or --disable-fast-install was given.
1028 if test "${enable_fast_install+set}" = set; then
1029 enableval="$enable_fast_install"
1030 p=${PACKAGE-default}
1031 case "$enableval" in
1032 yes) enable_fast_install=yes ;;
1033 no) enable_fast_install=no ;;
1035 enable_fast_install=no
1036 # Look at the argument we got. We use all the common list separators.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1038 for pkg in $enableval; do
1039 if test "X$pkg" = "X$p"; then
1040 enable_fast_install=yes
1042 done
1043 IFS="$ac_save_ifs"
1045 esac
1046 else
1047 enable_fast_install=yes
1051 # Make sure we can run config.sub.
1052 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1053 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1056 echo $ac_n "checking host system type""... $ac_c" 1>&6
1057 echo "configure:1058: checking host system type" >&5
1059 host_alias=$host
1060 case "$host_alias" in
1061 NONE)
1062 case $nonopt in
1063 NONE)
1064 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1065 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1066 fi ;;
1067 *) host_alias=$nonopt ;;
1068 esac ;;
1069 esac
1071 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1072 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$host" 1>&6
1077 echo $ac_n "checking build system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking build system type" >&5
1080 build_alias=$build
1081 case "$build_alias" in
1082 NONE)
1083 case $nonopt in
1084 NONE) build_alias=$host_alias ;;
1085 *) build_alias=$nonopt ;;
1086 esac ;;
1087 esac
1089 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1090 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$build" 1>&6
1095 # Extract the first word of "ranlib", so it can be a program name with args.
1096 set dummy ranlib; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 if test -n "$RANLIB"; then
1103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1104 else
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1106 ac_dummy="$PATH"
1107 for ac_dir in $ac_dummy; do
1108 test -z "$ac_dir" && ac_dir=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_RANLIB="ranlib"
1111 break
1113 done
1114 IFS="$ac_save_ifs"
1115 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1118 RANLIB="$ac_cv_prog_RANLIB"
1119 if test -n "$RANLIB"; then
1120 echo "$ac_t""$RANLIB" 1>&6
1121 else
1122 echo "$ac_t""no" 1>&6
1125 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1126 if test "${with_gnu_ld+set}" = set; then
1127 withval="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld=yes
1129 else
1130 with_gnu_ld=no
1133 ac_prog=ld
1134 if test "$ac_cv_prog_gcc" = yes; then
1135 # Check if gcc -print-prog-name=ld gives a path.
1136 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1137 echo "configure:1138: checking for ld used by GCC" >&5
1138 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1139 case "$ac_prog" in
1140 # Accept absolute paths.
1141 [\\/]* | [A-Za-z]:[\\/]*)
1142 re_direlt='/[^/][^/]*/\.\./'
1143 # Canonicalize the path of ld
1144 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1146 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1147 done
1148 test -z "$LD" && LD="$ac_prog"
1151 # If it fails, then pretend we aren't using GCC.
1152 ac_prog=ld
1155 # If it is relative, then search for the first ld in PATH.
1156 with_gnu_ld=unknown
1158 esac
1159 elif test "$with_gnu_ld" = yes; then
1160 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1161 echo "configure:1162: checking for GNU ld" >&5
1162 else
1163 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for non-GNU ld" >&5
1166 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 if test -z "$LD"; then
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1171 for ac_dir in $PATH; do
1172 test -z "$ac_dir" && ac_dir=.
1173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1174 ac_cv_path_LD="$ac_dir/$ac_prog"
1175 # Check to see if the program is GNU ld. I'd rather use --version,
1176 # but apparently some GNU ld's only accept -v.
1177 # Break only if it was the GNU/non-GNU ld that we prefer.
1178 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1179 test "$with_gnu_ld" != no && break
1180 else
1181 test "$with_gnu_ld" != yes && break
1184 done
1185 IFS="$ac_save_ifs"
1186 else
1187 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1191 LD="$ac_cv_path_LD"
1192 if test -n "$LD"; then
1193 echo "$ac_t""$LD" 1>&6
1194 else
1195 echo "$ac_t""no" 1>&6
1197 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1199 echo "configure:1200: checking if the linker ($LD) is GNU ld" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1204 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1205 ac_cv_prog_gnu_ld=yes
1206 else
1207 ac_cv_prog_gnu_ld=no
1211 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1214 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1215 echo "configure:1216: checking for BSD-compatible nm" >&5
1216 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 if test -n "$NM"; then
1220 # Let the user override the test.
1221 ac_cv_path_NM="$NM"
1222 else
1223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1224 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1227 # Check to see if the nm accepts a BSD-compat flag.
1228 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1229 # nm: unknown option "B" ignored
1230 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1231 ac_cv_path_NM="$ac_dir/nm -B"
1232 break
1233 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1234 ac_cv_path_NM="$ac_dir/nm -p"
1235 break
1236 else
1237 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1238 continue # so that we can try to find one that supports BSD flags
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1247 NM="$ac_cv_path_NM"
1248 echo "$ac_t""$NM" 1>&6
1250 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ln -s works" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 rm -f conftestdata
1256 if ln -s X conftestdata 2>/dev/null
1257 then
1258 rm -f conftestdata
1259 ac_cv_prog_LN_S="ln -s"
1260 else
1261 ac_cv_prog_LN_S=ln
1264 LN_S="$ac_cv_prog_LN_S"
1265 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1266 echo "$ac_t""yes" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1272 case "$target" in
1273 NONE) lt_target="$host" ;;
1274 *) lt_target="$target" ;;
1275 esac
1277 # Check for any special flags to pass to ltconfig.
1278 libtool_flags="--cache-file=$cache_file"
1279 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1280 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1281 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1282 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1283 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1287 if test "${enable_libtool_lock+set}" = set; then
1288 enableval="$enable_libtool_lock"
1292 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1293 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1295 # Some flags need to be propagated to the compiler or linker for good
1296 # libtool support.
1297 case "$lt_target" in
1298 *-*-irix6*)
1299 # Find out which ABI we are using.
1300 echo '#line 1301 "configure"' > conftest.$ac_ext
1301 if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1302 case "`/usr/bin/file conftest.o`" in
1303 *32-bit*)
1304 LD="${LD-ld} -32"
1306 *N32*)
1307 LD="${LD-ld} -n32"
1309 *64-bit*)
1310 LD="${LD-ld} -64"
1312 esac
1314 rm -rf conftest*
1317 *-*-sco3.2v5*)
1318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1319 SAVE_CFLAGS="$CFLAGS"
1320 CFLAGS="$CFLAGS -belf"
1321 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1322 echo "configure:1323: checking whether the C compiler needs -belf" >&5
1323 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1330 int main() {
1332 ; return 0; }
1334 if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1335 rm -rf conftest*
1336 lt_cv_cc_needs_belf=yes
1337 else
1338 echo "configure: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1340 rm -rf conftest*
1341 lt_cv_cc_needs_belf=no
1343 rm -f conftest*
1346 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1349 CFLAGS="$SAVE_CFLAGS"
1354 esac
1357 # Save cache, so that ltconfig can load it
1358 cat > confcache <<\EOF
1359 # This file is a shell script that caches the results of configure
1360 # tests run on this system so they can be shared between configure
1361 # scripts and configure runs. It is not useful on other systems.
1362 # If it contains results you don't want to keep, you may remove or edit it.
1364 # By default, configure uses ./config.cache as the cache file,
1365 # creating it if it does not exist already. You can give configure
1366 # the --cache-file=FILE option to use a different cache file; that is
1367 # what configure does when it calls configure scripts in
1368 # subdirectories, so they share the cache.
1369 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1370 # config.status only pays attention to the cache file if you give it the
1371 # --recheck option to rerun configure.
1374 # The following way of writing the cache mishandles newlines in values,
1375 # but we know of no workaround that is simple, portable, and efficient.
1376 # So, don't put newlines in cache variables' values.
1377 # Ultrix sh set writes to stderr and can't be redirected directly,
1378 # and sets the high bit in the cache file unless we assign to the vars.
1379 (set) 2>&1 |
1380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1381 *ac_space=\ *)
1382 # `set' does not quote correctly, so add quotes (double-quote substitution
1383 # turns \\\\ into \\, and sed turns \\ into \).
1384 sed -n \
1385 -e "s/'/'\\\\''/g" \
1386 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1389 # `set' quotes correctly as required by POSIX, so do not add quotes.
1390 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1392 esac >> confcache
1393 if cmp -s $cache_file confcache; then
1395 else
1396 if test -w $cache_file; then
1397 echo "updating cache $cache_file"
1398 cat confcache > $cache_file
1399 else
1400 echo "not updating unwritable cache $cache_file"
1403 rm -f confcache
1406 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1407 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1408 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1409 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1410 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1411 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1412 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1413 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1415 # Reload cache, that may have been modified by ltconfig
1416 if test -r "$cache_file"; then
1417 echo "loading cache $cache_file"
1418 . $cache_file
1419 else
1420 echo "creating cache $cache_file"
1421 > $cache_file
1425 # This can be used to rebuild libtool when needed
1426 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1428 # Always use our own libtool.
1429 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1431 # Redirect the config.log output again, so that the ltconfig log is not
1432 # clobbered by the next message.
1433 exec 5>>./config.log
1437 if test "x$CC" != xcc; then
1438 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether $CC and cc understand -c and -o together" >&5
1440 else
1441 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether cc understands -c and -o together" >&5
1444 set dummy $CC; ac_cc="`echo $2 |
1445 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1446 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 echo 'foo(){}' > conftest.c
1450 # Make sure it works both with $CC and with simple cc.
1451 # We do the test twice because some compilers refuse to overwrite an
1452 # existing .o file with -o, though they will create one.
1453 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1454 if { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1455 test -f conftest.o && { (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1456 then
1457 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1458 if test "x$CC" != xcc; then
1459 # Test first that cc exists at all.
1460 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1461 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1462 if { (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1463 test -f conftest.o && { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1464 then
1465 # cc works too.
1467 else
1468 # cc exists but doesn't like -o.
1469 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1473 else
1474 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1476 rm -f conftest*
1479 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1481 else
1482 echo "$ac_t""no" 1>&6
1483 cat >> confdefs.h <<\EOF
1484 #define NO_MINUS_C_MINUS_O 1
1489 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1490 BROKEN_CC=
1491 else
1492 BROKEN_CC=#
1496 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1497 echo "configure:1498: checking that the C compiler understands volatile" >&5
1498 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <sys/types.h>
1506 int main() {
1507 volatile int i = 0
1508 ; return 0; }
1510 if { (eval echo configure:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1511 rm -rf conftest*
1512 samba_cv_volatile=yes
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 samba_cv_volatile=no
1519 rm -f conftest*
1522 echo "$ac_t""$samba_cv_volatile" 1>&6
1523 if test x"$samba_cv_volatile" = x"yes"; then
1524 cat >> confdefs.h <<\EOF
1525 #define HAVE_VOLATILE 1
1531 #################################################
1532 # set codepage directory location
1533 # Check whether --with-codepagedir or --without-codepagedir was given.
1534 if test "${with_codepagedir+set}" = set; then
1535 withval="$with_codepagedir"
1536 case "$withval" in
1537 yes|no)
1539 # Just in case anybody does it
1541 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1544 codepagedir="$withval"
1546 esac
1552 # Do some error checking and defaulting for the host and target type.
1553 # The inputs are:
1554 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1556 # The rules are:
1557 # 1. You are not allowed to specify --host, --target, and nonopt at the
1558 # same time.
1559 # 2. Host defaults to nonopt.
1560 # 3. If nonopt is not specified, then host defaults to the current host,
1561 # as determined by config.guess.
1562 # 4. Target and build default to nonopt.
1563 # 5. If nonopt is not specified, then target and build default to host.
1565 # The aliases save the names the user supplied, while $host etc.
1566 # will get canonicalized.
1567 case $host---$target---$nonopt in
1568 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1569 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1570 esac
1573 # Make sure we can run config.sub.
1574 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1575 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1578 echo $ac_n "checking host system type""... $ac_c" 1>&6
1579 echo "configure:1580: checking host system type" >&5
1581 host_alias=$host
1582 case "$host_alias" in
1583 NONE)
1584 case $nonopt in
1585 NONE)
1586 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1587 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1588 fi ;;
1589 *) host_alias=$nonopt ;;
1590 esac ;;
1591 esac
1593 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1594 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$ac_t""$host" 1>&6
1599 echo $ac_n "checking target system type""... $ac_c" 1>&6
1600 echo "configure:1601: checking target system type" >&5
1602 target_alias=$target
1603 case "$target_alias" in
1604 NONE)
1605 case $nonopt in
1606 NONE) target_alias=$host_alias ;;
1607 *) target_alias=$nonopt ;;
1608 esac ;;
1609 esac
1611 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1612 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 echo "$ac_t""$target" 1>&6
1617 echo $ac_n "checking build system type""... $ac_c" 1>&6
1618 echo "configure:1619: checking build system type" >&5
1620 build_alias=$build
1621 case "$build_alias" in
1622 NONE)
1623 case $nonopt in
1624 NONE) build_alias=$host_alias ;;
1625 *) build_alias=$nonopt ;;
1626 esac ;;
1627 esac
1629 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1630 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 echo "$ac_t""$build" 1>&6
1635 test "$host_alias" != "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1637 NONENONEs,x,x, &&
1638 program_prefix=${target_alias}-
1641 case "$host_os" in
1642 *irix6*) cat >> confdefs.h <<\EOF
1643 #include <standards.h>
1647 esac
1651 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1652 echo "configure:1653: checking config.cache system type" >&5
1653 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1654 test x"$ac_cv_host_system_type" != x"$host"; } ||
1655 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1656 test x"$ac_cv_build_system_type" != x"$build"; } ||
1657 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1658 test x"$ac_cv_target_system_type" != x"$target"; }; then
1659 echo "$ac_t""different" 1>&6
1660 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1661 else
1662 echo "$ac_t""same" 1>&6
1664 ac_cv_host_system_type="$host"
1665 ac_cv_build_system_type="$build"
1666 ac_cv_target_system_type="$target"
1670 # Config CPPFLAG settings for strange OS's that must be set
1671 # before other tests.
1673 case "$host_os" in
1674 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1675 *hpux*)
1676 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ${CC-cc} accepts -Ae" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1680 else
1681 echo 'void f(){}' > conftest.c
1682 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1683 ac_cv_prog_cc_Ae=yes
1684 else
1685 ac_cv_prog_cc_Ae=no
1687 rm -f conftest*
1691 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1692 if test $ac_cv_prog_cc_Ae = yes; then
1693 CPPFLAGS="$CPPFLAGS -Ae"
1696 # Defines needed for HPUX support.
1697 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1698 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1700 case `uname -r` in
1701 *9*|*10*)
1702 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1703 cat >> confdefs.h <<\EOF
1704 #define USE_BOTH_CRYPT_CALLS 1
1708 *11*)
1709 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1710 cat >> confdefs.h <<\EOF
1711 #define USE_BOTH_CRYPT_CALLS 1
1715 esac
1718 # AIX4.x doesn't even admit to having large
1719 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1721 *aix4*)
1722 echo "$ac_t""enabling large file support" 1>&6
1723 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1726 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1727 # to the existance of large files..
1728 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1729 # recommendations on large file support, however it makes the
1730 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1731 # recommendation makes the compile fail on gcc2.7. JRA.
1733 *solaris*)
1734 case `uname -r` in
1735 5.6*|5.7*)
1736 echo "$ac_t""enabling large file support" 1>&6
1737 if test "$ac_cv_prog_gcc" = yes; then
1738 ${CC-cc} -v >conftest.c 2>&1
1739 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1740 rm -fr conftest.c
1741 case "$ac_cv_gcc_compiler_version_number" in
1742 *"gcc version 2.6"*|*"gcc version 2.7"*)
1743 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1746 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1748 esac
1749 else
1750 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1753 esac
1756 # Tests needed for SINIX large file support.
1758 *sysv4*)
1759 if test $host = mips-sni-sysv4 ; then
1760 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1761 echo "configure:1762: checking for LFS support" >&5
1762 old_CPPFLAGS="$CPPFLAGS"
1763 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1764 if test "$cross_compiling" = yes; then
1765 SINIX_LFS_SUPPORT=cross
1766 else
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1771 #include <unistd.h>
1772 main () {
1773 #if _LFS64_LARGEFILE == 1
1774 exit(0);
1775 #else
1776 exit(1);
1777 #endif
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1781 then
1782 SINIX_LFS_SUPPORT=yes
1783 else
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 rm -fr conftest*
1787 SINIX_LFS_SUPPORT=no
1789 rm -fr conftest*
1792 CPPFLAGS="$old_CPPFLAGS"
1793 if test x$SINIX_LFS_SUPPORT = xyes ; then
1794 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1795 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1796 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1797 LIBS="`getconf LFS64_LIBS` $LIBS"
1799 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1803 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1805 *linux*)
1806 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1807 echo "configure:1808: checking for LFS support" >&5
1808 old_CPPFLAGS="$CPPFLAGS"
1809 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1810 if test "$cross_compiling" = yes; then
1811 LINUX_LFS_SUPPORT=cross
1812 else
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1817 #include <unistd.h>
1818 #include <sys/utsname.h>
1819 main() {
1820 #if _LFS64_LARGEFILE == 1
1821 struct utsname uts;
1822 char *release;
1823 int major, minor;
1825 /* Ensure this is glibc 2.2 or higher */
1826 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1827 int libc_major = __GLIBC__;
1828 int libc_minor = __GLIBC_MINOR__;
1830 if (libc_major < 2)
1831 exit(1);
1832 if (libc_minor < 2)
1833 exit(1);
1834 #endif
1836 /* Ensure this is kernel 2.4 or higher */
1838 uname(&uts);
1839 release = uts.release;
1840 major = atoi(strsep(&release, "."));
1841 minor = atoi(strsep(&release, "."));
1843 if (major > 2 || (major == 2 && minor > 3))
1844 exit(0);
1845 exit(1);
1846 #else
1847 exit(1);
1848 #endif
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1853 then
1854 LINUX_LFS_SUPPORT=yes
1855 else
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 rm -fr conftest*
1859 LINUX_LFS_SUPPORT=no
1861 rm -fr conftest*
1864 CPPFLAGS="$old_CPPFLAGS"
1865 if test x$LINUX_LFS_SUPPORT = xyes ; then
1866 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1868 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1871 *hurd*)
1872 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1873 echo "configure:1874: checking for LFS support" >&5
1874 old_CPPFLAGS="$CPPFLAGS"
1875 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1876 if test "$cross_compiling" = yes; then
1877 GLIBC_LFS_SUPPORT=cross
1878 else
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1883 #include <unistd.h>
1884 main () {
1885 #if _LFS64_LARGEFILE == 1
1886 exit(0);
1887 #else
1888 exit(1);
1889 #endif
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1893 then
1894 GLIBC_LFS_SUPPORT=yes
1895 else
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -fr conftest*
1899 GLIBC_LFS_SUPPORT=no
1901 rm -fr conftest*
1904 CPPFLAGS="$old_CPPFLAGS"
1905 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1906 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1908 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1911 esac
1913 echo $ac_n "checking for inline""... $ac_c" 1>&6
1914 echo "configure:1915: checking for inline" >&5
1915 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1917 else
1918 ac_cv_c_inline=no
1919 for ac_kw in inline __inline__ __inline; do
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1924 int main() {
1925 } $ac_kw foo() {
1926 ; return 0; }
1928 if { (eval echo configure:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1929 rm -rf conftest*
1930 ac_cv_c_inline=$ac_kw; break
1931 else
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 rm -f conftest*
1936 done
1940 echo "$ac_t""$ac_cv_c_inline" 1>&6
1941 case "$ac_cv_c_inline" in
1942 inline | yes) ;;
1943 no) cat >> confdefs.h <<\EOF
1944 #define inline
1947 *) cat >> confdefs.h <<EOF
1948 #define inline $ac_cv_c_inline
1951 esac
1953 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1954 echo "configure:1955: checking how to run the C preprocessor" >&5
1955 # On Suns, sometimes $CPP names a directory.
1956 if test -n "$CPP" && test -d "$CPP"; then
1957 CPP=
1959 if test -z "$CPP"; then
1960 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962 else
1963 # This must be in double quotes, not single quotes, because CPP may get
1964 # substituted into the Makefile and "${CC-cc}" will confuse make.
1965 CPP="${CC-cc} -E"
1966 # On the NeXT, cc -E runs the code through the compiler's parser,
1967 # not just through cpp.
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 #include <assert.h>
1972 Syntax Error
1974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1975 { (eval echo configure:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1977 if test -z "$ac_err"; then
1979 else
1980 echo "$ac_err" >&5
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1983 rm -rf conftest*
1984 CPP="${CC-cc} -E -traditional-cpp"
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <assert.h>
1989 Syntax Error
1991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1992 { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1994 if test -z "$ac_err"; then
1996 else
1997 echo "$ac_err" >&5
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2000 rm -rf conftest*
2001 CPP="${CC-cc} -nologo -E"
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <assert.h>
2006 Syntax Error
2008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2009 { (eval echo configure:2010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2011 if test -z "$ac_err"; then
2013 else
2014 echo "$ac_err" >&5
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 rm -rf conftest*
2018 CPP=/lib/cpp
2020 rm -f conftest*
2022 rm -f conftest*
2024 rm -f conftest*
2025 ac_cv_prog_CPP="$CPP"
2027 CPP="$ac_cv_prog_CPP"
2028 else
2029 ac_cv_prog_CPP="$CPP"
2031 echo "$ac_t""$CPP" 1>&6
2033 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2034 echo "configure:2035: checking for ANSI C header files" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 #include <stdlib.h>
2042 #include <stdarg.h>
2043 #include <string.h>
2044 #include <float.h>
2046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2050 rm -rf conftest*
2051 ac_cv_header_stdc=yes
2052 else
2053 echo "$ac_err" >&5
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 rm -rf conftest*
2057 ac_cv_header_stdc=no
2059 rm -f conftest*
2061 if test $ac_cv_header_stdc = yes; then
2062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 #include <string.h>
2068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2069 egrep "memchr" >/dev/null 2>&1; then
2071 else
2072 rm -rf conftest*
2073 ac_cv_header_stdc=no
2075 rm -f conftest*
2079 if test $ac_cv_header_stdc = yes; then
2080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #include <stdlib.h>
2086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2087 egrep "free" >/dev/null 2>&1; then
2089 else
2090 rm -rf conftest*
2091 ac_cv_header_stdc=no
2093 rm -f conftest*
2097 if test $ac_cv_header_stdc = yes; then
2098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2099 if test "$cross_compiling" = yes; then
2101 else
2102 cat > conftest.$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2105 #include <ctype.h>
2106 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2107 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2109 int main () { int i; for (i = 0; i < 256; i++)
2110 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2111 exit (0); }
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2115 then
2117 else
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 rm -fr conftest*
2121 ac_cv_header_stdc=no
2123 rm -fr conftest*
2129 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2130 if test $ac_cv_header_stdc = yes; then
2131 cat >> confdefs.h <<\EOF
2132 #define STDC_HEADERS 1
2137 ac_header_dirent=no
2138 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr that defines DIR" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2150 #include <$ac_hdr>
2151 int main() {
2152 DIR *dirp = 0;
2153 ; return 0; }
2155 if { (eval echo configure:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 rm -rf conftest*
2157 eval "ac_cv_header_dirent_$ac_safe=yes"
2158 else
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 rm -rf conftest*
2162 eval "ac_cv_header_dirent_$ac_safe=no"
2164 rm -f conftest*
2166 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h <<EOF
2170 #define $ac_tr_hdr 1
2172 ac_header_dirent=$ac_hdr; break
2173 else
2174 echo "$ac_t""no" 1>&6
2176 done
2177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2178 if test $ac_header_dirent = dirent.h; then
2179 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2180 echo "configure:2181: checking for opendir in -ldir" >&5
2181 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-ldir $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char opendir();
2195 int main() {
2196 opendir()
2197 ; return 0; }
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=no"
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 LIBS="$LIBS -ldir"
2215 else
2216 echo "$ac_t""no" 1>&6
2219 else
2220 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2221 echo "configure:2222: checking for opendir in -lx" >&5
2222 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 ac_save_LIBS="$LIBS"
2227 LIBS="-lx $LIBS"
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2234 char opendir();
2236 int main() {
2237 opendir()
2238 ; return 0; }
2240 if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2241 rm -rf conftest*
2242 eval "ac_cv_lib_$ac_lib_var=yes"
2243 else
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 rm -rf conftest*
2247 eval "ac_cv_lib_$ac_lib_var=no"
2249 rm -f conftest*
2250 LIBS="$ac_save_LIBS"
2253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 LIBS="$LIBS -lx"
2256 else
2257 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether time.h and sys/time.h may both be included" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <sys/types.h>
2271 #include <sys/time.h>
2272 #include <time.h>
2273 int main() {
2274 struct tm *tp;
2275 ; return 0; }
2277 if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 rm -rf conftest*
2279 ac_cv_header_time=yes
2280 else
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 ac_cv_header_time=no
2286 rm -f conftest*
2289 echo "$ac_t""$ac_cv_header_time" 1>&6
2290 if test $ac_cv_header_time = yes; then
2291 cat >> confdefs.h <<\EOF
2292 #define TIME_WITH_SYS_TIME 1
2297 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sys/wait.h that is POSIX.1 compatible" >&5
2299 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 #include <sys/types.h>
2306 #include <sys/wait.h>
2307 #ifndef WEXITSTATUS
2308 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2309 #endif
2310 #ifndef WIFEXITED
2311 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2312 #endif
2313 int main() {
2314 int s;
2315 wait (&s);
2316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2317 ; return 0; }
2319 if { (eval echo configure:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 rm -rf conftest*
2321 ac_cv_header_sys_wait_h=yes
2322 else
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 rm -rf conftest*
2326 ac_cv_header_sys_wait_h=no
2328 rm -f conftest*
2331 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2332 if test $ac_cv_header_sys_wait_h = yes; then
2333 cat >> confdefs.h <<\EOF
2334 #define HAVE_SYS_WAIT_H 1
2339 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_hdr" >&5
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2350 #include <$ac_hdr>
2352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2356 rm -rf conftest*
2357 eval "ac_cv_header_$ac_safe=yes"
2358 else
2359 echo "$ac_err" >&5
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2362 rm -rf conftest*
2363 eval "ac_cv_header_$ac_safe=no"
2365 rm -f conftest*
2367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2370 cat >> confdefs.h <<EOF
2371 #define $ac_tr_hdr 1
2374 else
2375 echo "$ac_t""no" 1>&6
2377 done
2379 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_hdr" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <$ac_hdr>
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2396 rm -rf conftest*
2397 eval "ac_cv_header_$ac_safe=yes"
2398 else
2399 echo "$ac_err" >&5
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 eval "ac_cv_header_$ac_safe=no"
2405 rm -f conftest*
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >> confdefs.h <<EOF
2411 #define $ac_tr_hdr 1
2414 else
2415 echo "$ac_t""no" 1>&6
2417 done
2419 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_hdr" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <$ac_hdr>
2432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2436 rm -rf conftest*
2437 eval "ac_cv_header_$ac_safe=yes"
2438 else
2439 echo "$ac_err" >&5
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 rm -rf conftest*
2443 eval "ac_cv_header_$ac_safe=no"
2445 rm -f conftest*
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2450 cat >> confdefs.h <<EOF
2451 #define $ac_tr_hdr 1
2454 else
2455 echo "$ac_t""no" 1>&6
2457 done
2459 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_hdr" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466 else
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 #include <$ac_hdr>
2472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2476 rm -rf conftest*
2477 eval "ac_cv_header_$ac_safe=yes"
2478 else
2479 echo "$ac_err" >&5
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 rm -rf conftest*
2483 eval "ac_cv_header_$ac_safe=no"
2485 rm -f conftest*
2487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2490 cat >> confdefs.h <<EOF
2491 #define $ac_tr_hdr 1
2494 else
2495 echo "$ac_t""no" 1>&6
2497 done
2499 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <$ac_hdr>
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2516 rm -rf conftest*
2517 eval "ac_cv_header_$ac_safe=yes"
2518 else
2519 echo "$ac_err" >&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 eval "ac_cv_header_$ac_safe=no"
2525 rm -f conftest*
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2534 else
2535 echo "$ac_t""no" 1>&6
2537 done
2539 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_hdr" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <$ac_hdr>
2552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2556 rm -rf conftest*
2557 eval "ac_cv_header_$ac_safe=yes"
2558 else
2559 echo "$ac_err" >&5
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2562 rm -rf conftest*
2563 eval "ac_cv_header_$ac_safe=no"
2565 rm -f conftest*
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2570 cat >> confdefs.h <<EOF
2571 #define $ac_tr_hdr 1
2574 else
2575 echo "$ac_t""no" 1>&6
2577 done
2579 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_hdr" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <$ac_hdr>
2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2596 rm -rf conftest*
2597 eval "ac_cv_header_$ac_safe=yes"
2598 else
2599 echo "$ac_err" >&5
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 eval "ac_cv_header_$ac_safe=no"
2605 rm -f conftest*
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2610 cat >> confdefs.h <<EOF
2611 #define $ac_tr_hdr 1
2614 else
2615 echo "$ac_t""no" 1>&6
2617 done
2619 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_hdr" >&5
2624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <$ac_hdr>
2632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2636 rm -rf conftest*
2637 eval "ac_cv_header_$ac_safe=yes"
2638 else
2639 echo "$ac_err" >&5
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 rm -rf conftest*
2643 eval "ac_cv_header_$ac_safe=no"
2645 rm -f conftest*
2647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2648 echo "$ac_t""yes" 1>&6
2649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2650 cat >> confdefs.h <<EOF
2651 #define $ac_tr_hdr 1
2654 else
2655 echo "$ac_t""no" 1>&6
2657 done
2661 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2662 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2664 case "$host_os" in
2665 *hpux*)
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <shadow.h>
2670 int main() {
2671 struct spwd testme
2672 ; return 0; }
2674 if { (eval echo configure:2675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 rm -rf conftest*
2676 ac_cv_header_shadow_h=yes
2677 else
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 ac_cv_header_shadow_h=no
2683 rm -f conftest*
2684 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2685 cat >> confdefs.h <<\EOF
2686 #define HAVE_SHADOW_H 1
2691 esac
2692 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <$ac_hdr>
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2709 rm -rf conftest*
2710 eval "ac_cv_header_$ac_safe=yes"
2711 else
2712 echo "$ac_err" >&5
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -rf conftest*
2716 eval "ac_cv_header_$ac_safe=no"
2718 rm -f conftest*
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h <<EOF
2724 #define $ac_tr_hdr 1
2727 else
2728 echo "$ac_t""no" 1>&6
2730 done
2732 for ac_hdr in nss.h sys/security.h security/pam_appl.h security/pam_modules.h
2734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <$ac_hdr>
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749 rm -rf conftest*
2750 eval "ac_cv_header_$ac_safe=yes"
2751 else
2752 echo "$ac_err" >&5
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 eval "ac_cv_header_$ac_safe=no"
2758 rm -f conftest*
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h <<EOF
2764 #define $ac_tr_hdr 1
2767 else
2768 echo "$ac_t""no" 1>&6
2770 done
2772 for ac_hdr in stropts.h poll.h
2774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2779 else
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2783 #include <$ac_hdr>
2785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2788 if test -z "$ac_err"; then
2789 rm -rf conftest*
2790 eval "ac_cv_header_$ac_safe=yes"
2791 else
2792 echo "$ac_err" >&5
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -rf conftest*
2796 eval "ac_cv_header_$ac_safe=no"
2798 rm -f conftest*
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h <<EOF
2804 #define $ac_tr_hdr 1
2807 else
2808 echo "$ac_t""no" 1>&6
2810 done
2812 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_hdr" >&5
2817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 #include <$ac_hdr>
2825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2826 { (eval echo configure:2827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2828 if test -z "$ac_err"; then
2829 rm -rf conftest*
2830 eval "ac_cv_header_$ac_safe=yes"
2831 else
2832 echo "$ac_err" >&5
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 rm -rf conftest*
2836 eval "ac_cv_header_$ac_safe=no"
2838 rm -f conftest*
2840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2843 cat >> confdefs.h <<EOF
2844 #define $ac_tr_hdr 1
2847 else
2848 echo "$ac_t""no" 1>&6
2850 done
2852 for ac_hdr in sys/acl.h sys/cdefs.h glob.h acl/acl.h
2854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_hdr" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2859 else
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 #include <$ac_hdr>
2865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2869 rm -rf conftest*
2870 eval "ac_cv_header_$ac_safe=yes"
2871 else
2872 echo "$ac_err" >&5
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 eval "ac_cv_header_$ac_safe=no"
2878 rm -f conftest*
2880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2883 cat >> confdefs.h <<EOF
2884 #define $ac_tr_hdr 1
2887 else
2888 echo "$ac_t""no" 1>&6
2890 done
2893 # For experimental utmp support (lastlog on some BSD-like systems)
2894 for ac_hdr in utmp.h utmpx.h lastlog.h
2896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_hdr" >&5
2899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901 else
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2905 #include <$ac_hdr>
2907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2908 { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2910 if test -z "$ac_err"; then
2911 rm -rf conftest*
2912 eval "ac_cv_header_$ac_safe=yes"
2913 else
2914 echo "$ac_err" >&5
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_header_$ac_safe=no"
2920 rm -f conftest*
2922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_hdr 1
2929 else
2930 echo "$ac_t""no" 1>&6
2932 done
2935 # For quotas on Veritas VxFS filesystems
2936 for ac_hdr in sys/fs/vx_quota.h
2938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_hdr" >&5
2941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2943 else
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <$ac_hdr>
2949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2950 { (eval echo configure:2951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2952 if test -z "$ac_err"; then
2953 rm -rf conftest*
2954 eval "ac_cv_header_$ac_safe=yes"
2955 else
2956 echo "$ac_err" >&5
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 rm -rf conftest*
2960 eval "ac_cv_header_$ac_safe=no"
2962 rm -f conftest*
2964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2965 echo "$ac_t""yes" 1>&6
2966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2967 cat >> confdefs.h <<EOF
2968 #define $ac_tr_hdr 1
2971 else
2972 echo "$ac_t""no" 1>&6
2974 done
2977 echo $ac_n "checking size of int""... $ac_c" 1>&6
2978 echo "configure:2979: checking size of int" >&5
2979 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 if test "$cross_compiling" = yes; then
2983 ac_cv_sizeof_int=cross
2984 else
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <stdio.h>
2989 main()
2991 FILE *f=fopen("conftestval", "w");
2992 if (!f) exit(1);
2993 fprintf(f, "%d\n", sizeof(int));
2994 exit(0);
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2998 then
2999 ac_cv_sizeof_int=`cat conftestval`
3000 else
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 rm -fr conftest*
3004 ac_cv_sizeof_int=0
3006 rm -fr conftest*
3010 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3011 cat >> confdefs.h <<EOF
3012 #define SIZEOF_INT $ac_cv_sizeof_int
3016 echo $ac_n "checking size of long""... $ac_c" 1>&6
3017 echo "configure:3018: checking size of long" >&5
3018 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3020 else
3021 if test "$cross_compiling" = yes; then
3022 ac_cv_sizeof_long=cross
3023 else
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <stdio.h>
3028 main()
3030 FILE *f=fopen("conftestval", "w");
3031 if (!f) exit(1);
3032 fprintf(f, "%d\n", sizeof(long));
3033 exit(0);
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3037 then
3038 ac_cv_sizeof_long=`cat conftestval`
3039 else
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 rm -fr conftest*
3043 ac_cv_sizeof_long=0
3045 rm -fr conftest*
3049 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3050 cat >> confdefs.h <<EOF
3051 #define SIZEOF_LONG $ac_cv_sizeof_long
3055 echo $ac_n "checking size of short""... $ac_c" 1>&6
3056 echo "configure:3057: checking size of short" >&5
3057 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 if test "$cross_compiling" = yes; then
3061 ac_cv_sizeof_short=cross
3062 else
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 #include <stdio.h>
3067 main()
3069 FILE *f=fopen("conftestval", "w");
3070 if (!f) exit(1);
3071 fprintf(f, "%d\n", sizeof(short));
3072 exit(0);
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3076 then
3077 ac_cv_sizeof_short=`cat conftestval`
3078 else
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 rm -fr conftest*
3082 ac_cv_sizeof_short=0
3084 rm -fr conftest*
3088 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3089 cat >> confdefs.h <<EOF
3090 #define SIZEOF_SHORT $ac_cv_sizeof_short
3095 echo $ac_n "checking for working const""... $ac_c" 1>&6
3096 echo "configure:3097: checking for working const" >&5
3097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3104 int main() {
3106 /* Ultrix mips cc rejects this. */
3107 typedef int charset[2]; const charset x;
3108 /* SunOS 4.1.1 cc rejects this. */
3109 char const *const *ccp;
3110 char **p;
3111 /* NEC SVR4.0.2 mips cc rejects this. */
3112 struct point {int x, y;};
3113 static struct point const zero = {0,0};
3114 /* AIX XL C 1.02.0.0 rejects this.
3115 It does not let you subtract one const X* pointer from another in an arm
3116 of an if-expression whose if-part is not a constant expression */
3117 const char *g = "string";
3118 ccp = &g + (g ? g-g : 0);
3119 /* HPUX 7.0 cc rejects these. */
3120 ++ccp;
3121 p = (char**) ccp;
3122 ccp = (char const *const *) p;
3123 { /* SCO 3.2v4 cc rejects this. */
3124 char *t;
3125 char const *s = 0 ? (char *) 0 : (char const *) 0;
3127 *t++ = 0;
3129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3130 int x[] = {25, 17};
3131 const int *foo = &x[0];
3132 ++foo;
3134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3135 typedef const int *iptr;
3136 iptr p = 0;
3137 ++p;
3139 { /* AIX XL C 1.02.0.0 rejects this saying
3140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3141 struct s { int j; const int *ap[3]; };
3142 struct s *b; b->j = 5;
3144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3145 const int foo = 10;
3148 ; return 0; }
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3151 rm -rf conftest*
3152 ac_cv_c_const=yes
3153 else
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 rm -rf conftest*
3157 ac_cv_c_const=no
3159 rm -f conftest*
3162 echo "$ac_t""$ac_cv_c_const" 1>&6
3163 if test $ac_cv_c_const = no; then
3164 cat >> confdefs.h <<\EOF
3165 #define const
3170 echo $ac_n "checking for inline""... $ac_c" 1>&6
3171 echo "configure:3172: checking for inline" >&5
3172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175 ac_cv_c_inline=no
3176 for ac_kw in inline __inline__ __inline; do
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3181 int main() {
3182 } $ac_kw foo() {
3183 ; return 0; }
3185 if { (eval echo configure:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 rm -rf conftest*
3187 ac_cv_c_inline=$ac_kw; break
3188 else
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3192 rm -f conftest*
3193 done
3197 echo "$ac_t""$ac_cv_c_inline" 1>&6
3198 case "$ac_cv_c_inline" in
3199 inline | yes) ;;
3200 no) cat >> confdefs.h <<\EOF
3201 #define inline
3204 *) cat >> confdefs.h <<EOF
3205 #define inline $ac_cv_c_inline
3208 esac
3210 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3211 echo "configure:3212: checking whether byte ordering is bigendian" >&5
3212 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3214 else
3215 ac_cv_c_bigendian=unknown
3216 # See if sys/param.h defines the BYTE_ORDER macro.
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3221 #include <sys/param.h>
3222 int main() {
3224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3225 bogus endian macros
3226 #endif
3227 ; return 0; }
3229 if { (eval echo configure:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230 rm -rf conftest*
3231 # It does; now see whether it defined to BIG_ENDIAN or not.
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3236 #include <sys/param.h>
3237 int main() {
3239 #if BYTE_ORDER != BIG_ENDIAN
3240 not big endian
3241 #endif
3242 ; return 0; }
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 rm -rf conftest*
3246 ac_cv_c_bigendian=yes
3247 else
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3250 rm -rf conftest*
3251 ac_cv_c_bigendian=no
3253 rm -f conftest*
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 rm -f conftest*
3259 if test $ac_cv_c_bigendian = unknown; then
3260 if test "$cross_compiling" = yes; then
3261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3262 else
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 main () {
3267 /* Are we little or big endian? From Harbison&Steele. */
3268 union
3270 long l;
3271 char c[sizeof (long)];
3272 } u;
3273 u.l = 1;
3274 exit (u.c[sizeof (long) - 1] == 1);
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3278 then
3279 ac_cv_c_bigendian=no
3280 else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 rm -fr conftest*
3284 ac_cv_c_bigendian=yes
3286 rm -fr conftest*
3292 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3293 if test $ac_cv_c_bigendian = yes; then
3294 cat >> confdefs.h <<\EOF
3295 #define WORDS_BIGENDIAN 1
3300 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3301 echo "configure:3302: checking whether char is unsigned" >&5
3302 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3304 else
3305 if test "$GCC" = yes; then
3306 # GCC predefines this symbol on systems where it applies.
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #ifdef __CHAR_UNSIGNED__
3312 #endif
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "yes" >/dev/null 2>&1; then
3317 rm -rf conftest*
3318 ac_cv_c_char_unsigned=yes
3319 else
3320 rm -rf conftest*
3321 ac_cv_c_char_unsigned=no
3323 rm -f conftest*
3325 else
3326 if test "$cross_compiling" = yes; then
3327 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3328 else
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3333 #if !defined(__STDC__) || __STDC__ != 1
3334 #define volatile
3335 #endif
3336 main() {
3337 volatile char c = 255; exit(c < 0);
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3341 then
3342 ac_cv_c_char_unsigned=yes
3343 else
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 rm -fr conftest*
3347 ac_cv_c_char_unsigned=no
3349 rm -fr conftest*
3355 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3356 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3357 cat >> confdefs.h <<\EOF
3358 #define __CHAR_UNSIGNED__ 1
3364 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3365 echo "configure:3366: checking return type of signal handlers" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3373 #include <signal.h>
3374 #ifdef signal
3375 #undef signal
3376 #endif
3377 #ifdef __cplusplus
3378 extern "C" void (*signal (int, void (*)(int)))(int);
3379 #else
3380 void (*signal ()) ();
3381 #endif
3383 int main() {
3384 int i;
3385 ; return 0; }
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388 rm -rf conftest*
3389 ac_cv_type_signal=void
3390 else
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 rm -rf conftest*
3394 ac_cv_type_signal=int
3396 rm -f conftest*
3399 echo "$ac_t""$ac_cv_type_signal" 1>&6
3400 cat >> confdefs.h <<EOF
3401 #define RETSIGTYPE $ac_cv_type_signal
3405 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3406 echo "configure:3407: checking for uid_t in sys/types.h" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3409 else
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "uid_t" >/dev/null 2>&1; then
3417 rm -rf conftest*
3418 ac_cv_type_uid_t=yes
3419 else
3420 rm -rf conftest*
3421 ac_cv_type_uid_t=no
3423 rm -f conftest*
3427 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3428 if test $ac_cv_type_uid_t = no; then
3429 cat >> confdefs.h <<\EOF
3430 #define uid_t int
3433 cat >> confdefs.h <<\EOF
3434 #define gid_t int
3439 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3440 echo "configure:3441: checking for mode_t" >&5
3441 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3443 else
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <sys/types.h>
3448 #if STDC_HEADERS
3449 #include <stdlib.h>
3450 #include <stddef.h>
3451 #endif
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3455 rm -rf conftest*
3456 ac_cv_type_mode_t=yes
3457 else
3458 rm -rf conftest*
3459 ac_cv_type_mode_t=no
3461 rm -f conftest*
3464 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3465 if test $ac_cv_type_mode_t = no; then
3466 cat >> confdefs.h <<\EOF
3467 #define mode_t int
3472 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3473 echo "configure:3474: checking for off_t" >&5
3474 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3476 else
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <sys/types.h>
3481 #if STDC_HEADERS
3482 #include <stdlib.h>
3483 #include <stddef.h>
3484 #endif
3486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3487 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3488 rm -rf conftest*
3489 ac_cv_type_off_t=yes
3490 else
3491 rm -rf conftest*
3492 ac_cv_type_off_t=no
3494 rm -f conftest*
3497 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3498 if test $ac_cv_type_off_t = no; then
3499 cat >> confdefs.h <<\EOF
3500 #define off_t long
3505 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3506 echo "configure:3507: checking for size_t" >&5
3507 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509 else
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/types.h>
3514 #if STDC_HEADERS
3515 #include <stdlib.h>
3516 #include <stddef.h>
3517 #endif
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3521 rm -rf conftest*
3522 ac_cv_type_size_t=yes
3523 else
3524 rm -rf conftest*
3525 ac_cv_type_size_t=no
3527 rm -f conftest*
3530 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3531 if test $ac_cv_type_size_t = no; then
3532 cat >> confdefs.h <<\EOF
3533 #define size_t unsigned
3538 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3539 echo "configure:3540: checking for pid_t" >&5
3540 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3547 #if STDC_HEADERS
3548 #include <stdlib.h>
3549 #include <stddef.h>
3550 #endif
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3554 rm -rf conftest*
3555 ac_cv_type_pid_t=yes
3556 else
3557 rm -rf conftest*
3558 ac_cv_type_pid_t=no
3560 rm -f conftest*
3563 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3564 if test $ac_cv_type_pid_t = no; then
3565 cat >> confdefs.h <<\EOF
3566 #define pid_t int
3571 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3572 echo "configure:3573: checking for st_rdev in struct stat" >&5
3573 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3575 else
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3581 int main() {
3582 struct stat s; s.st_rdev;
3583 ; return 0; }
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 rm -rf conftest*
3587 ac_cv_struct_st_rdev=yes
3588 else
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3591 rm -rf conftest*
3592 ac_cv_struct_st_rdev=no
3594 rm -f conftest*
3597 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3598 if test $ac_cv_struct_st_rdev = yes; then
3599 cat >> confdefs.h <<\EOF
3600 #define HAVE_ST_RDEV 1
3605 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3606 echo "configure:3607: checking for d_off in dirent" >&5
3607 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3609 else
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3614 #include <unistd.h>
3615 #include <sys/types.h>
3616 #include <dirent.h>
3617 int main() {
3618 struct dirent d; d.d_off;
3619 ; return 0; }
3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 rm -rf conftest*
3623 ac_cv_dirent_d_off=yes
3624 else
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 rm -rf conftest*
3628 ac_cv_dirent_d_off=no
3630 rm -f conftest*
3633 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3634 if test $ac_cv_dirent_d_off = yes; then
3635 cat >> confdefs.h <<\EOF
3636 #define HAVE_DIRENT_D_OFF 1
3641 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3642 echo "configure:3643: checking for ino_t" >&5
3643 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645 else
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3650 #if STDC_HEADERS
3651 #include <stdlib.h>
3652 #include <stddef.h>
3653 #endif
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3657 rm -rf conftest*
3658 ac_cv_type_ino_t=yes
3659 else
3660 rm -rf conftest*
3661 ac_cv_type_ino_t=no
3663 rm -f conftest*
3666 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3667 if test $ac_cv_type_ino_t = no; then
3668 cat >> confdefs.h <<\EOF
3669 #define ino_t unsigned
3674 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3675 echo "configure:3676: checking for loff_t" >&5
3676 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678 else
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <sys/types.h>
3683 #if STDC_HEADERS
3684 #include <stdlib.h>
3685 #include <stddef.h>
3686 #endif
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3690 rm -rf conftest*
3691 ac_cv_type_loff_t=yes
3692 else
3693 rm -rf conftest*
3694 ac_cv_type_loff_t=no
3696 rm -f conftest*
3699 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3700 if test $ac_cv_type_loff_t = no; then
3701 cat >> confdefs.h <<\EOF
3702 #define loff_t off_t
3707 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3708 echo "configure:3709: checking for offset_t" >&5
3709 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3711 else
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 #include <sys/types.h>
3716 #if STDC_HEADERS
3717 #include <stdlib.h>
3718 #include <stddef.h>
3719 #endif
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3723 rm -rf conftest*
3724 ac_cv_type_offset_t=yes
3725 else
3726 rm -rf conftest*
3727 ac_cv_type_offset_t=no
3729 rm -f conftest*
3732 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3733 if test $ac_cv_type_offset_t = no; then
3734 cat >> confdefs.h <<\EOF
3735 #define offset_t loff_t
3740 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3741 echo "configure:3742: checking for ssize_t" >&5
3742 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+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 #include <sys/types.h>
3749 #if STDC_HEADERS
3750 #include <stdlib.h>
3751 #include <stddef.h>
3752 #endif
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3756 rm -rf conftest*
3757 ac_cv_type_ssize_t=yes
3758 else
3759 rm -rf conftest*
3760 ac_cv_type_ssize_t=no
3762 rm -f conftest*
3765 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3766 if test $ac_cv_type_ssize_t = no; then
3767 cat >> confdefs.h <<\EOF
3768 #define ssize_t int
3773 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3774 echo "configure:3775: checking for wchar_t" >&5
3775 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <sys/types.h>
3782 #if STDC_HEADERS
3783 #include <stdlib.h>
3784 #include <stddef.h>
3785 #endif
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3789 rm -rf conftest*
3790 ac_cv_type_wchar_t=yes
3791 else
3792 rm -rf conftest*
3793 ac_cv_type_wchar_t=no
3795 rm -f conftest*
3798 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3799 if test $ac_cv_type_wchar_t = no; then
3800 cat >> confdefs.h <<\EOF
3801 #define wchar_t unsigned short
3807 # we need libcups for CUPS support...
3808 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3809 echo "configure:3810: checking for httpConnect in -lcups" >&5
3810 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3813 else
3814 ac_save_LIBS="$LIBS"
3815 LIBS="-lcups $LIBS"
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3822 char httpConnect();
3824 int main() {
3825 httpConnect()
3826 ; return 0; }
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 rm -rf conftest*
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3831 else
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3834 rm -rf conftest*
3835 eval "ac_cv_lib_$ac_lib_var=no"
3837 rm -f conftest*
3838 LIBS="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_lib 1
3849 LIBS="-lcups $LIBS"
3851 else
3852 echo "$ac_t""no" 1>&6
3856 # we need libdl for PAM and the new VFS code
3857 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3858 echo "configure:3859: checking for dlopen in -ldl" >&5
3859 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 ac_save_LIBS="$LIBS"
3864 LIBS="-ldl $LIBS"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3871 char dlopen();
3873 int main() {
3874 dlopen()
3875 ; return 0; }
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=yes"
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=no"
3886 rm -f conftest*
3887 LIBS="$ac_save_LIBS"
3890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3892 LIBS="$LIBS -ldl";
3893 cat >> confdefs.h <<\EOF
3894 #define HAVE_LIBDL 1
3897 else
3898 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3903 echo "configure:3904: checking for sig_atomic_t type" >&5
3904 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3912 #include <sys/types.h>
3913 #if STDC_HEADERS
3914 #include <stdlib.h>
3915 #include <stddef.h>
3916 #endif
3917 #include <signal.h>
3918 int main() {
3919 sig_atomic_t i = 0
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 rm -rf conftest*
3924 samba_cv_sig_atomic_t=yes
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 samba_cv_sig_atomic_t=no
3931 rm -f conftest*
3934 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3935 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3936 cat >> confdefs.h <<\EOF
3937 #define HAVE_SIG_ATOMIC_T_TYPE 1
3942 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3943 echo "configure:3944: checking for errno in errno.h" >&5
3944 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3946 else
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 #include <errno.h>
3952 int main() {
3953 int i = errno
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 rm -rf conftest*
3958 samba_cv_errno=yes
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 samba_cv_have_errno=no
3965 rm -f conftest*
3968 echo "$ac_t""$samba_cv_errno" 1>&6
3969 if test x"$samba_cv_errno" = x"yes"; then
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_ERRNO_DECL 1
3976 # stupid glibc has the functions but no declaration. grrrr.
3977 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3978 echo "configure:3979: checking for setresuid declaration" >&5
3979 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 #include <unistd.h>
3987 int main() {
3988 int i = (int)setresuid
3989 ; return 0; }
3991 if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 rm -rf conftest*
3993 samba_cv_have_setresuid_decl=yes
3994 else
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 rm -rf conftest*
3998 samba_cv_have_setresuid_decl=no
4000 rm -f conftest*
4003 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4004 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_SETRESUID_DECL 1
4011 # stupid glibc has the functions but no declaration. grrrr.
4012 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4013 echo "configure:4014: checking for setresgid declaration" >&5
4014 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <unistd.h>
4022 int main() {
4023 int i = (int)setresgid
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 rm -rf conftest*
4028 samba_cv_have_setresgid_decl=yes
4029 else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 samba_cv_have_setresgid_decl=no
4035 rm -f conftest*
4038 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4039 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_SETRESGID_DECL 1
4046 # and glibc has setresuid under linux but the function does
4047 # nothing until kernel 2.1.44! very dumb.
4048 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4049 echo "configure:4050: checking for real setresuid" >&5
4050 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4052 else
4054 if test "$cross_compiling" = yes; then
4055 samba_cv_have_setresuid=cross
4056 else
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 #include <errno.h>
4061 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4064 then
4065 samba_cv_have_setresuid=yes
4066 else
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4069 rm -fr conftest*
4070 samba_cv_have_setresuid=no
4072 rm -fr conftest*
4077 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4078 if test x"$samba_cv_have_setresuid" = x"yes"; then
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_SETRESUID 1
4085 # Do the same check for setresguid...
4087 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4088 echo "configure:4089: checking for real setresgid" >&5
4089 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4093 if test "$cross_compiling" = yes; then
4094 samba_cv_have_setresgid=cross
4095 else
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 #include <unistd.h>
4100 #include <errno.h>
4101 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4104 then
4105 samba_cv_have_setresgid=yes
4106 else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -fr conftest*
4110 samba_cv_have_setresgid=no
4112 rm -fr conftest*
4117 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4118 if test x"$samba_cv_have_setresgid" = x"yes"; then
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_SETRESGID 1
4125 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4126 echo "configure:4127: checking for 8-bit clean memcmp" >&5
4127 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129 else
4130 if test "$cross_compiling" = yes; then
4131 ac_cv_func_memcmp_clean=no
4132 else
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4137 main()
4139 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4140 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4145 then
4146 ac_cv_func_memcmp_clean=yes
4147 else
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 rm -fr conftest*
4151 ac_cv_func_memcmp_clean=no
4153 rm -fr conftest*
4158 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4159 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4162 ###############################################
4163 # test for where we get crypt() from
4164 for ac_func in crypt
4166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_func" >&5
4168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4170 else
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 /* System header to define __stub macros and hopefully few prototypes,
4175 which can conflict with char $ac_func(); below. */
4176 #include <assert.h>
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char $ac_func();
4182 int main() {
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4188 choke me
4189 #else
4190 $ac_func();
4191 #endif
4193 ; return 0; }
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest*
4197 eval "ac_cv_func_$ac_func=yes"
4198 else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 eval "ac_cv_func_$ac_func=no"
4204 rm -f conftest*
4207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4210 cat >> confdefs.h <<EOF
4211 #define $ac_tr_func 1
4214 else
4215 echo "$ac_t""no" 1>&6
4217 done
4219 if test x"$ac_cv_func_crypt" = x"no"; then
4220 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4221 echo "configure:4222: checking for crypt in -lcrypt" >&5
4222 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 ac_save_LIBS="$LIBS"
4227 LIBS="-lcrypt $LIBS"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char crypt();
4236 int main() {
4237 crypt()
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 rm -rf conftest*
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 eval "ac_cv_lib_$ac_lib_var=no"
4249 rm -f conftest*
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 LIBS="$LIBS -lcrypt";
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_CRYPT 1
4260 else
4261 echo "$ac_t""no" 1>&6
4267 ###############################################
4268 # Readline included by default unless explicitly asked not to
4269 test "${with_readline+set}" != "set" && with_readline=yes
4271 # test for where we get readline() from
4272 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4273 echo "configure:4274: checking whether to use readline" >&5
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276 withval="$with_readline"
4277 case "$with_readline" in
4278 yes)
4279 echo "$ac_t""yes" 1>&6
4281 for ac_hdr in readline.h history.h readline/readline.h
4283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_hdr" >&5
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 #include <$ac_hdr>
4294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4295 { (eval echo configure:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4297 if test -z "$ac_err"; then
4298 rm -rf conftest*
4299 eval "ac_cv_header_$ac_safe=yes"
4300 else
4301 echo "$ac_err" >&5
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 rm -rf conftest*
4305 eval "ac_cv_header_$ac_safe=no"
4307 rm -f conftest*
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4312 cat >> confdefs.h <<EOF
4313 #define $ac_tr_hdr 1
4316 else
4317 echo "$ac_t""no" 1>&6
4319 done
4321 for ac_hdr in readline/history.h
4323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_hdr" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <$ac_hdr>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4338 rm -rf conftest*
4339 eval "ac_cv_header_$ac_safe=yes"
4340 else
4341 echo "$ac_err" >&5
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -rf conftest*
4345 eval "ac_cv_header_$ac_safe=no"
4347 rm -f conftest*
4349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4352 cat >> confdefs.h <<EOF
4353 #define $ac_tr_hdr 1
4356 else
4357 echo "$ac_t""no" 1>&6
4359 done
4362 for ac_hdr in readline.h readline/readline.h
4364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_hdr" >&5
4367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <$ac_hdr>
4375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4376 { (eval echo configure:4377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4378 if test -z "$ac_err"; then
4379 rm -rf conftest*
4380 eval "ac_cv_header_$ac_safe=yes"
4381 else
4382 echo "$ac_err" >&5
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=no"
4388 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_hdr 1
4397 for termlib in ncurses curses termcap terminfo termlib; do
4398 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4399 echo "configure:4400: checking for tgetent in -l${termlib}" >&5
4400 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 ac_save_LIBS="$LIBS"
4405 LIBS="-l${termlib} $LIBS"
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412 char tgetent();
4414 int main() {
4415 tgetent()
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 rm -rf conftest*
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_lib_$ac_lib_var=no"
4427 rm -f conftest*
4428 LIBS="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 TERMLIBS="-l${termlib}"; break
4434 else
4435 echo "$ac_t""no" 1>&6
4438 done
4439 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4440 echo "configure:4441: checking for rl_callback_handler_install in -lreadline" >&5
4441 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4445 ac_save_LIBS="$LIBS"
4446 LIBS="-lreadline $TERMLIBS $LIBS"
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char rl_callback_handler_install();
4455 int main() {
4456 rl_callback_handler_install()
4457 ; return 0; }
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 rm -rf conftest*
4461 eval "ac_cv_lib_$ac_lib_var=yes"
4462 else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -rf conftest*
4466 eval "ac_cv_lib_$ac_lib_var=no"
4468 rm -f conftest*
4469 LIBS="$ac_save_LIBS"
4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 TERMLIBS="-lreadline $TERMLIBS"
4475 cat >> confdefs.h <<\EOF
4476 #define HAVE_LIBREADLINE 1
4479 break
4480 else
4481 echo "$ac_t""no" 1>&6
4482 TERMLIBS=
4485 else
4486 echo "$ac_t""no" 1>&6
4488 done
4492 echo "$ac_t""no" 1>&6
4495 echo "$ac_t""yes" 1>&6
4497 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4498 # alternate readline path
4499 _ldflags=${LDFLAGS}
4500 _cppflags=${CPPFLAGS}
4502 # Add additional search path
4503 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4504 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4506 for ac_hdr in readline.h history.h readline/readline.h
4508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_hdr" >&5
4511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4513 else
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 #include <$ac_hdr>
4519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4520 { (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4522 if test -z "$ac_err"; then
4523 rm -rf conftest*
4524 eval "ac_cv_header_$ac_safe=yes"
4525 else
4526 echo "$ac_err" >&5
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 rm -rf conftest*
4530 eval "ac_cv_header_$ac_safe=no"
4532 rm -f conftest*
4534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_hdr 1
4541 else
4542 echo "$ac_t""no" 1>&6
4544 done
4546 for ac_hdr in readline/history.h
4548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_hdr" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 #include <$ac_hdr>
4559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4560 { (eval echo configure:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4562 if test -z "$ac_err"; then
4563 rm -rf conftest*
4564 eval "ac_cv_header_$ac_safe=yes"
4565 else
4566 echo "$ac_err" >&5
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -rf conftest*
4570 eval "ac_cv_header_$ac_safe=no"
4572 rm -f conftest*
4574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4577 cat >> confdefs.h <<EOF
4578 #define $ac_tr_hdr 1
4581 else
4582 echo "$ac_t""no" 1>&6
4584 done
4587 for ac_hdr in readline.h readline/readline.h
4589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_hdr" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <$ac_hdr>
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4604 rm -rf conftest*
4605 eval "ac_cv_header_$ac_safe=yes"
4606 else
4607 echo "$ac_err" >&5
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4610 rm -rf conftest*
4611 eval "ac_cv_header_$ac_safe=no"
4613 rm -f conftest*
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4618 cat >> confdefs.h <<EOF
4619 #define $ac_tr_hdr 1
4622 for termlib in ncurses curses termcap terminfo termlib; do
4623 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4624 echo "configure:4625: checking for tgetent in -l${termlib}" >&5
4625 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4628 else
4629 ac_save_LIBS="$LIBS"
4630 LIBS="-l${termlib} $LIBS"
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.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 tgetent();
4639 int main() {
4640 tgetent()
4641 ; return 0; }
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4644 rm -rf conftest*
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4646 else
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 rm -rf conftest*
4650 eval "ac_cv_lib_$ac_lib_var=no"
4652 rm -f conftest*
4653 LIBS="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 TERMLIBS="-l${termlib}"; break
4659 else
4660 echo "$ac_t""no" 1>&6
4663 done
4664 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4665 echo "configure:4666: checking for rl_callback_handler_install in -lreadline" >&5
4666 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670 ac_save_LIBS="$LIBS"
4671 LIBS="-lreadline $TERMLIBS $LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char rl_callback_handler_install();
4680 int main() {
4681 rl_callback_handler_install()
4682 ; return 0; }
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685 rm -rf conftest*
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4687 else
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 rm -rf conftest*
4691 eval "ac_cv_lib_$ac_lib_var=no"
4693 rm -f conftest*
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 TERMLDFLAGS="-L$with_readline/lib"
4700 TERMCPPFLAGS="-I$with_readline/include"
4701 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4702 TERMLIBS="-lreadline $TERMLIBS"
4703 cat >> confdefs.h <<\EOF
4704 #define HAVE_LIBREADLINE 1
4707 break
4708 else
4709 echo "$ac_t""no" 1>&6
4710 TERMLIBS= CPPFLAGS=$_cppflags
4713 else
4714 echo "$ac_t""no" 1>&6
4716 done
4719 LDFLAGS=$_ldflags
4721 esac
4722 else
4723 echo "$ac_t""no" 1>&6
4730 # The following test taken from the cvs sources
4731 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4732 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4733 # libsocket.so which has a bad implementation of gethostbyname (it
4734 # only looks in /etc/hosts), so we only look for -lsocket if we need
4735 # it.
4736 for ac_func in connect
4738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_func" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4742 else
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func(); below. */
4748 #include <assert.h>
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4752 char $ac_func();
4754 int main() {
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4760 choke me
4761 #else
4762 $ac_func();
4763 #endif
4765 ; return 0; }
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 rm -rf conftest*
4769 eval "ac_cv_func_$ac_func=yes"
4770 else
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 rm -rf conftest*
4774 eval "ac_cv_func_$ac_func=no"
4776 rm -f conftest*
4779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_func 1
4786 else
4787 echo "$ac_t""no" 1>&6
4789 done
4791 if test x"$ac_cv_func_connect" = x"no"; then
4792 case "$LIBS" in
4793 *-lnsl*) ;;
4794 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4795 echo "configure:4796: checking for printf in -lnsl_s" >&5
4796 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4799 else
4800 ac_save_LIBS="$LIBS"
4801 LIBS="-lnsl_s $LIBS"
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char printf();
4810 int main() {
4811 printf()
4812 ; return 0; }
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest*
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4821 eval "ac_cv_lib_$ac_lib_var=no"
4823 rm -f conftest*
4824 LIBS="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4831 cat >> confdefs.h <<EOF
4832 #define $ac_tr_lib 1
4835 LIBS="-lnsl_s $LIBS"
4837 else
4838 echo "$ac_t""no" 1>&6
4841 esac
4842 case "$LIBS" in
4843 *-lnsl*) ;;
4844 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4845 echo "configure:4846: checking for printf in -lnsl" >&5
4846 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4849 else
4850 ac_save_LIBS="$LIBS"
4851 LIBS="-lnsl $LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4858 char printf();
4860 int main() {
4861 printf()
4862 ; return 0; }
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4867 else
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 rm -rf conftest*
4871 eval "ac_cv_lib_$ac_lib_var=no"
4873 rm -f conftest*
4874 LIBS="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4881 cat >> confdefs.h <<EOF
4882 #define $ac_tr_lib 1
4885 LIBS="-lnsl $LIBS"
4887 else
4888 echo "$ac_t""no" 1>&6
4891 esac
4892 case "$LIBS" in
4893 *-lsocket*) ;;
4894 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4895 echo "configure:4896: checking for connect in -lsocket" >&5
4896 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4899 else
4900 ac_save_LIBS="$LIBS"
4901 LIBS="-lsocket $LIBS"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4908 char connect();
4910 int main() {
4911 connect()
4912 ; return 0; }
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 rm -rf conftest*
4916 eval "ac_cv_lib_$ac_lib_var=yes"
4917 else
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 rm -rf conftest*
4921 eval "ac_cv_lib_$ac_lib_var=no"
4923 rm -f conftest*
4924 LIBS="$ac_save_LIBS"
4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4931 cat >> confdefs.h <<EOF
4932 #define $ac_tr_lib 1
4935 LIBS="-lsocket $LIBS"
4937 else
4938 echo "$ac_t""no" 1>&6
4941 esac
4942 case "$LIBS" in
4943 *-linet*) ;;
4944 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4945 echo "configure:4946: checking for connect in -linet" >&5
4946 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 ac_save_LIBS="$LIBS"
4951 LIBS="-linet $LIBS"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4958 char connect();
4960 int main() {
4961 connect()
4962 ; return 0; }
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 rm -rf conftest*
4966 eval "ac_cv_lib_$ac_lib_var=yes"
4967 else
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 rm -rf conftest*
4971 eval "ac_cv_lib_$ac_lib_var=no"
4973 rm -f conftest*
4974 LIBS="$ac_save_LIBS"
4977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4981 cat >> confdefs.h <<EOF
4982 #define $ac_tr_lib 1
4985 LIBS="-linet $LIBS"
4987 else
4988 echo "$ac_t""no" 1>&6
4991 esac
4992 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4993 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4994 # ac_cv_func_connect=yes
4995 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4996 cat >> confdefs.h <<\EOF
4997 #define HAVE_CONNECT 1
5003 ###############################################
5004 # test for where we get get_yp_default_domain() from
5005 for ac_func in yp_get_default_domain
5007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5008 echo "configure:5009: checking for $ac_func" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5011 else
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char $ac_func(); below. */
5017 #include <assert.h>
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5021 char $ac_func();
5023 int main() {
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5029 choke me
5030 #else
5031 $ac_func();
5032 #endif
5034 ; return 0; }
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 rm -rf conftest*
5038 eval "ac_cv_func_$ac_func=yes"
5039 else
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 rm -rf conftest*
5043 eval "ac_cv_func_$ac_func=no"
5045 rm -f conftest*
5048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5051 cat >> confdefs.h <<EOF
5052 #define $ac_tr_func 1
5055 else
5056 echo "$ac_t""no" 1>&6
5058 done
5060 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5061 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5062 echo "configure:5063: checking for yp_get_default_domain in -lnsl" >&5
5063 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5066 else
5067 ac_save_LIBS="$LIBS"
5068 LIBS="-lnsl $LIBS"
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5075 char yp_get_default_domain();
5077 int main() {
5078 yp_get_default_domain()
5079 ; return 0; }
5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 rm -rf conftest*
5083 eval "ac_cv_lib_$ac_lib_var=yes"
5084 else
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5087 rm -rf conftest*
5088 eval "ac_cv_lib_$ac_lib_var=no"
5090 rm -f conftest*
5091 LIBS="$ac_save_LIBS"
5094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5096 LIBS="$LIBS -lnsl";
5097 cat >> confdefs.h <<\EOF
5098 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5101 else
5102 echo "$ac_t""no" 1>&6
5107 # Check if we have execl, if not we need to compile smbrun.
5108 for ac_func in execl
5110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_func" >&5
5112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5114 else
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 /* System header to define __stub macros and hopefully few prototypes,
5119 which can conflict with char $ac_func(); below. */
5120 #include <assert.h>
5121 /* Override any gcc2 internal prototype to avoid an error. */
5122 /* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5124 char $ac_func();
5126 int main() {
5128 /* The GNU C library defines this for functions which it implements
5129 to always fail with ENOSYS. Some functions are actually named
5130 something starting with __ and the normal name is an alias. */
5131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132 choke me
5133 #else
5134 $ac_func();
5135 #endif
5137 ; return 0; }
5139 if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 rm -rf conftest*
5141 eval "ac_cv_func_$ac_func=yes"
5142 else
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5145 rm -rf conftest*
5146 eval "ac_cv_func_$ac_func=no"
5148 rm -f conftest*
5151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5154 cat >> confdefs.h <<EOF
5155 #define $ac_tr_func 1
5158 else
5159 echo "$ac_t""no" 1>&6
5161 done
5163 if test x"$ac_cv_func_execl" = x"no"; then
5164 RUNPROG="bin/smbrun"
5165 else
5166 RUNPROG=""
5169 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5172 echo "configure:5173: checking for $ac_func" >&5
5173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5175 else
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* System header to define __stub macros and hopefully few prototypes,
5180 which can conflict with char $ac_func(); below. */
5181 #include <assert.h>
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5185 char $ac_func();
5187 int main() {
5189 /* The GNU C library defines this for functions which it implements
5190 to always fail with ENOSYS. Some functions are actually named
5191 something starting with __ and the normal name is an alias. */
5192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 choke me
5194 #else
5195 $ac_func();
5196 #endif
5198 ; return 0; }
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5201 rm -rf conftest*
5202 eval "ac_cv_func_$ac_func=yes"
5203 else
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 rm -rf conftest*
5207 eval "ac_cv_func_$ac_func=no"
5209 rm -f conftest*
5212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5215 cat >> confdefs.h <<EOF
5216 #define $ac_tr_func 1
5219 else
5220 echo "$ac_t""no" 1>&6
5222 done
5224 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_func" >&5
5228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5230 else
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char $ac_func(); below. */
5236 #include <assert.h>
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char $ac_func();
5242 int main() {
5244 /* The GNU C library defines this for functions which it implements
5245 to always fail with ENOSYS. Some functions are actually named
5246 something starting with __ and the normal name is an alias. */
5247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5248 choke me
5249 #else
5250 $ac_func();
5251 #endif
5253 ; return 0; }
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 rm -rf conftest*
5257 eval "ac_cv_func_$ac_func=yes"
5258 else
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 rm -rf conftest*
5262 eval "ac_cv_func_$ac_func=no"
5264 rm -f conftest*
5267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_func 1
5274 else
5275 echo "$ac_t""no" 1>&6
5277 done
5279 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5282 echo "configure:5283: checking for $ac_func" >&5
5283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5285 else
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 /* System header to define __stub macros and hopefully few prototypes,
5290 which can conflict with char $ac_func(); below. */
5291 #include <assert.h>
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5295 char $ac_func();
5297 int main() {
5299 /* The GNU C library defines this for functions which it implements
5300 to always fail with ENOSYS. Some functions are actually named
5301 something starting with __ and the normal name is an alias. */
5302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5303 choke me
5304 #else
5305 $ac_func();
5306 #endif
5308 ; return 0; }
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 rm -rf conftest*
5312 eval "ac_cv_func_$ac_func=yes"
5313 else
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 rm -rf conftest*
5317 eval "ac_cv_func_$ac_func=no"
5319 rm -f conftest*
5322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5325 cat >> confdefs.h <<EOF
5326 #define $ac_tr_func 1
5329 else
5330 echo "$ac_t""no" 1>&6
5332 done
5334 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5337 echo "configure:5338: checking for $ac_func" >&5
5338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5340 else
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func(); below. */
5346 #include <assert.h>
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char $ac_func();
5352 int main() {
5354 /* The GNU C library defines this for functions which it implements
5355 to always fail with ENOSYS. Some functions are actually named
5356 something starting with __ and the normal name is an alias. */
5357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5358 choke me
5359 #else
5360 $ac_func();
5361 #endif
5363 ; return 0; }
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366 rm -rf conftest*
5367 eval "ac_cv_func_$ac_func=yes"
5368 else
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 rm -rf conftest*
5372 eval "ac_cv_func_$ac_func=no"
5374 rm -f conftest*
5377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5380 cat >> confdefs.h <<EOF
5381 #define $ac_tr_func 1
5384 else
5385 echo "$ac_t""no" 1>&6
5387 done
5389 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400 which can conflict with char $ac_func(); below. */
5401 #include <assert.h>
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5405 char $ac_func();
5407 int main() {
5409 /* The GNU C library defines this for functions which it implements
5410 to always fail with ENOSYS. Some functions are actually named
5411 something starting with __ and the normal name is an alias. */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 choke me
5414 #else
5415 $ac_func();
5416 #endif
5418 ; return 0; }
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 rm -rf conftest*
5422 eval "ac_cv_func_$ac_func=yes"
5423 else
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5426 rm -rf conftest*
5427 eval "ac_cv_func_$ac_func=no"
5429 rm -f conftest*
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5439 else
5440 echo "$ac_t""no" 1>&6
5442 done
5444 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5447 echo "configure:5448: checking for $ac_func" >&5
5448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5450 else
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 /* System header to define __stub macros and hopefully few prototypes,
5455 which can conflict with char $ac_func(); below. */
5456 #include <assert.h>
5457 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5460 char $ac_func();
5462 int main() {
5464 /* The GNU C library defines this for functions which it implements
5465 to always fail with ENOSYS. Some functions are actually named
5466 something starting with __ and the normal name is an alias. */
5467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5468 choke me
5469 #else
5470 $ac_func();
5471 #endif
5473 ; return 0; }
5475 if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5476 rm -rf conftest*
5477 eval "ac_cv_func_$ac_func=yes"
5478 else
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 rm -rf conftest*
5482 eval "ac_cv_func_$ac_func=no"
5484 rm -f conftest*
5487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5488 echo "$ac_t""yes" 1>&6
5489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5490 cat >> confdefs.h <<EOF
5491 #define $ac_tr_func 1
5494 else
5495 echo "$ac_t""no" 1>&6
5497 done
5499 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5502 echo "configure:5503: checking for $ac_func" >&5
5503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5505 else
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 /* System header to define __stub macros and hopefully few prototypes,
5510 which can conflict with char $ac_func(); below. */
5511 #include <assert.h>
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5515 char $ac_func();
5517 int main() {
5519 /* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5523 choke me
5524 #else
5525 $ac_func();
5526 #endif
5528 ; return 0; }
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 rm -rf conftest*
5532 eval "ac_cv_func_$ac_func=yes"
5533 else
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5536 rm -rf conftest*
5537 eval "ac_cv_func_$ac_func=no"
5539 rm -f conftest*
5542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5545 cat >> confdefs.h <<EOF
5546 #define $ac_tr_func 1
5549 else
5550 echo "$ac_t""no" 1>&6
5552 done
5554 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_func" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5560 else
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char $ac_func(); below. */
5566 #include <assert.h>
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5570 char $ac_func();
5572 int main() {
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5578 choke me
5579 #else
5580 $ac_func();
5581 #endif
5583 ; return 0; }
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 rm -rf conftest*
5587 eval "ac_cv_func_$ac_func=yes"
5588 else
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5591 rm -rf conftest*
5592 eval "ac_cv_func_$ac_func=no"
5594 rm -f conftest*
5597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5600 cat >> confdefs.h <<EOF
5601 #define $ac_tr_func 1
5604 else
5605 echo "$ac_t""no" 1>&6
5607 done
5609 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5612 echo "configure:5613: checking for $ac_func" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5615 else
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char $ac_func(); below. */
5621 #include <assert.h>
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5625 char $ac_func();
5627 int main() {
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5633 choke me
5634 #else
5635 $ac_func();
5636 #endif
5638 ; return 0; }
5640 if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 rm -rf conftest*
5642 eval "ac_cv_func_$ac_func=yes"
5643 else
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 rm -rf conftest*
5647 eval "ac_cv_func_$ac_func=no"
5649 rm -f conftest*
5652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5655 cat >> confdefs.h <<EOF
5656 #define $ac_tr_func 1
5659 else
5660 echo "$ac_t""no" 1>&6
5662 done
5665 # syscall() is needed for smbwrapper.
5666 for ac_func in syscall
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func(); below. */
5678 #include <assert.h>
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5682 char $ac_func();
5684 int main() {
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 choke me
5691 #else
5692 $ac_func();
5693 #endif
5695 ; return 0; }
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 rm -rf conftest*
5699 eval "ac_cv_func_$ac_func=yes"
5700 else
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5703 rm -rf conftest*
5704 eval "ac_cv_func_$ac_func=no"
5706 rm -f conftest*
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712 cat >> confdefs.h <<EOF
5713 #define $ac_tr_func 1
5716 else
5717 echo "$ac_t""no" 1>&6
5719 done
5722 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5725 echo "configure:5726: checking for $ac_func" >&5
5726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5728 else
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 /* System header to define __stub macros and hopefully few prototypes,
5733 which can conflict with char $ac_func(); below. */
5734 #include <assert.h>
5735 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5738 char $ac_func();
5740 int main() {
5742 /* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 choke me
5747 #else
5748 $ac_func();
5749 #endif
5751 ; return 0; }
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 rm -rf conftest*
5755 eval "ac_cv_func_$ac_func=yes"
5756 else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759 rm -rf conftest*
5760 eval "ac_cv_func_$ac_func=no"
5762 rm -f conftest*
5765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5766 echo "$ac_t""yes" 1>&6
5767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5768 cat >> confdefs.h <<EOF
5769 #define $ac_tr_func 1
5772 else
5773 echo "$ac_t""no" 1>&6
5775 done
5777 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5789 #include <assert.h>
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5793 char $ac_func();
5795 int main() {
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 choke me
5802 #else
5803 $ac_func();
5804 #endif
5806 ; return 0; }
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 rm -rf conftest*
5810 eval "ac_cv_func_$ac_func=yes"
5811 else
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 rm -rf conftest*
5815 eval "ac_cv_func_$ac_func=no"
5817 rm -f conftest*
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h <<EOF
5824 #define $ac_tr_func 1
5827 else
5828 echo "$ac_t""no" 1>&6
5830 done
5832 for ac_func in __getcwd _getcwd
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5844 #include <assert.h>
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char $ac_func();
5850 int main() {
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 choke me
5857 #else
5858 $ac_func();
5859 #endif
5861 ; return 0; }
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=yes"
5866 else
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5869 rm -rf conftest*
5870 eval "ac_cv_func_$ac_func=no"
5872 rm -f conftest*
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_func 1
5882 else
5883 echo "$ac_t""no" 1>&6
5885 done
5887 for ac_func in __xstat __fxstat __lxstat
5889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_func" >&5
5891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char $ac_func(); below. */
5899 #include <assert.h>
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903 char $ac_func();
5905 int main() {
5907 /* The GNU C library defines this for functions which it implements
5908 to always fail with ENOSYS. Some functions are actually named
5909 something starting with __ and the normal name is an alias. */
5910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5911 choke me
5912 #else
5913 $ac_func();
5914 #endif
5916 ; return 0; }
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5919 rm -rf conftest*
5920 eval "ac_cv_func_$ac_func=yes"
5921 else
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 rm -rf conftest*
5925 eval "ac_cv_func_$ac_func=no"
5927 rm -f conftest*
5930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_func 1
5937 else
5938 echo "$ac_t""no" 1>&6
5940 done
5942 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5945 echo "configure:5946: checking for $ac_func" >&5
5946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5948 else
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char $ac_func(); below. */
5954 #include <assert.h>
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 /* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5958 char $ac_func();
5960 int main() {
5962 /* The GNU C library defines this for functions which it implements
5963 to always fail with ENOSYS. Some functions are actually named
5964 something starting with __ and the normal name is an alias. */
5965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5966 choke me
5967 #else
5968 $ac_func();
5969 #endif
5971 ; return 0; }
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5974 rm -rf conftest*
5975 eval "ac_cv_func_$ac_func=yes"
5976 else
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5979 rm -rf conftest*
5980 eval "ac_cv_func_$ac_func=no"
5982 rm -f conftest*
5985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5988 cat >> confdefs.h <<EOF
5989 #define $ac_tr_func 1
5992 else
5993 echo "$ac_t""no" 1>&6
5995 done
5997 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_func" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func(); below. */
6009 #include <assert.h>
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6013 char $ac_func();
6015 int main() {
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6021 choke me
6022 #else
6023 $ac_func();
6024 #endif
6026 ; return 0; }
6028 if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 rm -rf conftest*
6030 eval "ac_cv_func_$ac_func=yes"
6031 else
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034 rm -rf conftest*
6035 eval "ac_cv_func_$ac_func=no"
6037 rm -f conftest*
6040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6043 cat >> confdefs.h <<EOF
6044 #define $ac_tr_func 1
6047 else
6048 echo "$ac_t""no" 1>&6
6050 done
6052 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_func" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6058 else
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func(); below. */
6064 #include <assert.h>
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char $ac_func();
6070 int main() {
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6076 choke me
6077 #else
6078 $ac_func();
6079 #endif
6081 ; return 0; }
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084 rm -rf conftest*
6085 eval "ac_cv_func_$ac_func=yes"
6086 else
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6089 rm -rf conftest*
6090 eval "ac_cv_func_$ac_func=no"
6092 rm -f conftest*
6095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098 cat >> confdefs.h <<EOF
6099 #define $ac_tr_func 1
6102 else
6103 echo "$ac_t""no" 1>&6
6105 done
6107 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6119 #include <assert.h>
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123 char $ac_func();
6125 int main() {
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 choke me
6132 #else
6133 $ac_func();
6134 #endif
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 eval "ac_cv_func_$ac_func=yes"
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 eval "ac_cv_func_$ac_func=no"
6147 rm -f conftest*
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6157 else
6158 echo "$ac_t""no" 1>&6
6160 done
6162 for ac_func in _write __write _fork __fork
6164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_func" >&5
6166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168 else
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* System header to define __stub macros and hopefully few prototypes,
6173 which can conflict with char $ac_func(); below. */
6174 #include <assert.h>
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178 char $ac_func();
6180 int main() {
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6186 choke me
6187 #else
6188 $ac_func();
6189 #endif
6191 ; return 0; }
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 rm -rf conftest*
6195 eval "ac_cv_func_$ac_func=yes"
6196 else
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 rm -rf conftest*
6200 eval "ac_cv_func_$ac_func=no"
6202 rm -f conftest*
6205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6208 cat >> confdefs.h <<EOF
6209 #define $ac_tr_func 1
6212 else
6213 echo "$ac_t""no" 1>&6
6215 done
6217 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6223 else
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228 which can conflict with char $ac_func(); below. */
6229 #include <assert.h>
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6233 char $ac_func();
6235 int main() {
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 choke me
6242 #else
6243 $ac_func();
6244 #endif
6246 ; return 0; }
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249 rm -rf conftest*
6250 eval "ac_cv_func_$ac_func=yes"
6251 else
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6254 rm -rf conftest*
6255 eval "ac_cv_func_$ac_func=no"
6257 rm -f conftest*
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263 cat >> confdefs.h <<EOF
6264 #define $ac_tr_func 1
6267 else
6268 echo "$ac_t""no" 1>&6
6270 done
6272 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6278 else
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func(); below. */
6284 #include <assert.h>
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6288 char $ac_func();
6290 int main() {
6292 /* The GNU C library defines this for functions which it implements
6293 to always fail with ENOSYS. Some functions are actually named
6294 something starting with __ and the normal name is an alias. */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6296 choke me
6297 #else
6298 $ac_func();
6299 #endif
6301 ; return 0; }
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6304 rm -rf conftest*
6305 eval "ac_cv_func_$ac_func=yes"
6306 else
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 rm -rf conftest*
6310 eval "ac_cv_func_$ac_func=no"
6312 rm -f conftest*
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_func 1
6322 else
6323 echo "$ac_t""no" 1>&6
6325 done
6327 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333 else
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6339 #include <assert.h>
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6343 char $ac_func();
6345 int main() {
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6351 choke me
6352 #else
6353 $ac_func();
6354 #endif
6356 ; return 0; }
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 rm -rf conftest*
6360 eval "ac_cv_func_$ac_func=yes"
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 rm -rf conftest*
6365 eval "ac_cv_func_$ac_func=no"
6367 rm -f conftest*
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6377 else
6378 echo "$ac_t""no" 1>&6
6380 done
6382 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6394 #include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char $ac_func();
6400 int main() {
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6406 choke me
6407 #else
6408 $ac_func();
6409 #endif
6411 ; return 0; }
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 rm -rf conftest*
6415 eval "ac_cv_func_$ac_func=yes"
6416 else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 rm -rf conftest*
6420 eval "ac_cv_func_$ac_func=no"
6422 rm -f conftest*
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6432 else
6433 echo "$ac_t""no" 1>&6
6435 done
6437 for ac_func in open64 _open64 __open64 creat64
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443 else
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6449 #include <assert.h>
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6453 char $ac_func();
6455 int main() {
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 choke me
6462 #else
6463 $ac_func();
6464 #endif
6466 ; return 0; }
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6469 rm -rf conftest*
6470 eval "ac_cv_func_$ac_func=yes"
6471 else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 rm -rf conftest*
6475 eval "ac_cv_func_$ac_func=no"
6477 rm -f conftest*
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6487 else
6488 echo "$ac_t""no" 1>&6
6490 done
6494 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6497 if test x$ac_cv_func_stat64 = xno ; then
6498 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6499 echo "configure:6500: checking for stat64 in <sys/stat.h>" >&5
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6504 #if defined(HAVE_UNISTD_H)
6505 #include <unistd.h>
6506 #endif
6507 #include <sys/stat.h>
6509 int main() {
6510 struct stat64 st64; exit(stat64(".",&st64));
6511 ; return 0; }
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 rm -rf conftest*
6515 ac_cv_func_stat64=yes
6516 else
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 rm -f conftest*
6521 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6522 if test x$ac_cv_func_stat64 = xyes ; then
6523 cat >> confdefs.h <<\EOF
6524 #define HAVE_STAT64 1
6530 if test x$ac_cv_func_lstat64 = xno ; then
6531 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6532 echo "configure:6533: checking for lstat64 in <sys/stat.h>" >&5
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6537 #if defined(HAVE_UNISTD_H)
6538 #include <unistd.h>
6539 #endif
6540 #include <sys/stat.h>
6542 int main() {
6543 struct stat64 st64; exit(lstat64(".",&st64));
6544 ; return 0; }
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 rm -rf conftest*
6548 ac_cv_func_lstat64=yes
6549 else
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 rm -f conftest*
6554 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6555 if test x$ac_cv_func_lstat64 = xyes ; then
6556 cat >> confdefs.h <<\EOF
6557 #define HAVE_LSTAT64 1
6563 if test x$ac_cv_func_fstat64 = xno ; then
6564 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6565 echo "configure:6566: checking for fstat64 in <sys/stat.h>" >&5
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6570 #if defined(HAVE_UNISTD_H)
6571 #include <unistd.h>
6572 #endif
6573 #include <sys/stat.h>
6575 int main() {
6576 struct stat64 st64; exit(fstat64(0,&st64));
6577 ; return 0; }
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 rm -rf conftest*
6581 ac_cv_func_fstat64=yes
6582 else
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 rm -f conftest*
6587 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6588 if test x$ac_cv_func_fstat64 = xyes ; then
6589 cat >> confdefs.h <<\EOF
6590 #define HAVE_FSTAT64 1
6597 # If no strcasecmp, check for it in some known places
6598 # It is in -lresolv on ReliantUNIX and UnixWare
6599 # -lresolve *must* follow -lnsl for name resolution to work properly
6602 if test x$ac_cv_func_strcasecmp = xno ; then
6603 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6604 echo "configure:6605: checking for strcasecmp in -lresolv" >&5
6605 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 ac_save_LIBS="$LIBS"
6610 LIBS="-lresolv $LIBS"
6611 cat > conftest.$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char strcasecmp();
6619 int main() {
6620 strcasecmp()
6621 ; return 0; }
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 rm -rf conftest*
6625 eval "ac_cv_lib_$ac_lib_var=yes"
6626 else
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 rm -rf conftest*
6630 eval "ac_cv_lib_$ac_lib_var=no"
6632 rm -f conftest*
6633 LIBS="$ac_save_LIBS"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 LIBS="$LIBS -lresolv"
6639 cat >> confdefs.h <<\EOF
6640 #define HAVE_STRCASECMP 1
6643 else
6644 echo "$ac_t""no" 1>&6
6650 # Check for the functions putprpwnam, set_auth_parameters,
6651 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6652 # Needed for OSF1 and HPUX.
6655 case "$LIBS" in
6656 *-lsecurity*) for ac_func in putprpwnam
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6662 else
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6668 #include <assert.h>
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char $ac_func();
6674 int main() {
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6680 choke me
6681 #else
6682 $ac_func();
6683 #endif
6685 ; return 0; }
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 rm -rf conftest*
6689 eval "ac_cv_func_$ac_func=yes"
6690 else
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6693 rm -rf conftest*
6694 eval "ac_cv_func_$ac_func=no"
6696 rm -f conftest*
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h <<EOF
6703 #define $ac_tr_func 1
6706 else
6707 echo "$ac_t""no" 1>&6
6709 done
6711 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6712 echo "configure:6713: checking for putprpwnam in -lsecurity" >&5
6713 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6716 else
6717 ac_save_LIBS="$LIBS"
6718 LIBS="-lsecurity $LIBS"
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6725 char putprpwnam();
6727 int main() {
6728 putprpwnam()
6729 ; return 0; }
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 rm -rf conftest*
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6734 else
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 rm -rf conftest*
6738 eval "ac_cv_lib_$ac_lib_var=no"
6740 rm -f conftest*
6741 LIBS="$ac_save_LIBS"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6747 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6748 cat >> confdefs.h <<EOF
6749 #define $ac_tr_lib 1
6752 LIBS="-lsecurity $LIBS"
6754 else
6755 echo "$ac_t""no" 1>&6
6758 for ac_func in putprpwnam
6760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6761 echo "configure:6762: checking for $ac_func" >&5
6762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6764 else
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 /* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func(); below. */
6770 #include <assert.h>
6771 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774 char $ac_func();
6776 int main() {
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6782 choke me
6783 #else
6784 $ac_func();
6785 #endif
6787 ; return 0; }
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6790 rm -rf conftest*
6791 eval "ac_cv_func_$ac_func=yes"
6792 else
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 rm -rf conftest*
6796 eval "ac_cv_func_$ac_func=no"
6798 rm -f conftest*
6801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6802 echo "$ac_t""yes" 1>&6
6803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6804 cat >> confdefs.h <<EOF
6805 #define $ac_tr_func 1
6808 else
6809 echo "$ac_t""no" 1>&6
6811 done
6814 esac
6816 case "$LIBS" in
6817 *-lsec*) for ac_func in putprpwnam
6819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6820 echo "configure:6821: checking for $ac_func" >&5
6821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6823 else
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* System header to define __stub macros and hopefully few prototypes,
6828 which can conflict with char $ac_func(); below. */
6829 #include <assert.h>
6830 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833 char $ac_func();
6835 int main() {
6837 /* The GNU C library defines this for functions which it implements
6838 to always fail with ENOSYS. Some functions are actually named
6839 something starting with __ and the normal name is an alias. */
6840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6841 choke me
6842 #else
6843 $ac_func();
6844 #endif
6846 ; return 0; }
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 rm -rf conftest*
6850 eval "ac_cv_func_$ac_func=yes"
6851 else
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 rm -rf conftest*
6855 eval "ac_cv_func_$ac_func=no"
6857 rm -f conftest*
6860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6863 cat >> confdefs.h <<EOF
6864 #define $ac_tr_func 1
6867 else
6868 echo "$ac_t""no" 1>&6
6870 done
6872 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6873 echo "configure:6874: checking for putprpwnam in -lsec" >&5
6874 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878 ac_save_LIBS="$LIBS"
6879 LIBS="-lsec $LIBS"
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char putprpwnam();
6888 int main() {
6889 putprpwnam()
6890 ; return 0; }
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest*
6894 eval "ac_cv_lib_$ac_lib_var=yes"
6895 else
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 rm -rf conftest*
6899 eval "ac_cv_lib_$ac_lib_var=no"
6901 rm -f conftest*
6902 LIBS="$ac_save_LIBS"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6909 cat >> confdefs.h <<EOF
6910 #define $ac_tr_lib 1
6913 LIBS="-lsec $LIBS"
6915 else
6916 echo "$ac_t""no" 1>&6
6919 for ac_func in putprpwnam
6921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6922 echo "configure:6923: checking for $ac_func" >&5
6923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6925 else
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func(); below. */
6931 #include <assert.h>
6932 /* Override any gcc2 internal prototype to avoid an error. */
6933 /* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6935 char $ac_func();
6937 int main() {
6939 /* The GNU C library defines this for functions which it implements
6940 to always fail with ENOSYS. Some functions are actually named
6941 something starting with __ and the normal name is an alias. */
6942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6943 choke me
6944 #else
6945 $ac_func();
6946 #endif
6948 ; return 0; }
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6951 rm -rf conftest*
6952 eval "ac_cv_func_$ac_func=yes"
6953 else
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6956 rm -rf conftest*
6957 eval "ac_cv_func_$ac_func=no"
6959 rm -f conftest*
6962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6963 echo "$ac_t""yes" 1>&6
6964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6965 cat >> confdefs.h <<EOF
6966 #define $ac_tr_func 1
6969 else
6970 echo "$ac_t""no" 1>&6
6972 done
6975 esac
6978 case "$LIBS" in
6979 *-lsecurity*) for ac_func in set_auth_parameters
6981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_func" >&5
6983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6985 else
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func(); below. */
6991 #include <assert.h>
6992 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6995 char $ac_func();
6997 int main() {
6999 /* The GNU C library defines this for functions which it implements
7000 to always fail with ENOSYS. Some functions are actually named
7001 something starting with __ and the normal name is an alias. */
7002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7003 choke me
7004 #else
7005 $ac_func();
7006 #endif
7008 ; return 0; }
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 rm -rf conftest*
7012 eval "ac_cv_func_$ac_func=yes"
7013 else
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7016 rm -rf conftest*
7017 eval "ac_cv_func_$ac_func=no"
7019 rm -f conftest*
7022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7025 cat >> confdefs.h <<EOF
7026 #define $ac_tr_func 1
7029 else
7030 echo "$ac_t""no" 1>&6
7032 done
7034 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7035 echo "configure:7036: checking for set_auth_parameters in -lsecurity" >&5
7036 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7039 else
7040 ac_save_LIBS="$LIBS"
7041 LIBS="-lsecurity $LIBS"
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7045 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7048 char set_auth_parameters();
7050 int main() {
7051 set_auth_parameters()
7052 ; return 0; }
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7055 rm -rf conftest*
7056 eval "ac_cv_lib_$ac_lib_var=yes"
7057 else
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7060 rm -rf conftest*
7061 eval "ac_cv_lib_$ac_lib_var=no"
7063 rm -f conftest*
7064 LIBS="$ac_save_LIBS"
7067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7068 echo "$ac_t""yes" 1>&6
7069 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7071 cat >> confdefs.h <<EOF
7072 #define $ac_tr_lib 1
7075 LIBS="-lsecurity $LIBS"
7077 else
7078 echo "$ac_t""no" 1>&6
7081 for ac_func in set_auth_parameters
7083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7084 echo "configure:7085: checking for $ac_func" >&5
7085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7087 else
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7091 /* System header to define __stub macros and hopefully few prototypes,
7092 which can conflict with char $ac_func(); below. */
7093 #include <assert.h>
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 /* We use char because int might match the return type of a gcc2
7096 builtin and then its argument prototype would still apply. */
7097 char $ac_func();
7099 int main() {
7101 /* The GNU C library defines this for functions which it implements
7102 to always fail with ENOSYS. Some functions are actually named
7103 something starting with __ and the normal name is an alias. */
7104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7105 choke me
7106 #else
7107 $ac_func();
7108 #endif
7110 ; return 0; }
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7113 rm -rf conftest*
7114 eval "ac_cv_func_$ac_func=yes"
7115 else
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7118 rm -rf conftest*
7119 eval "ac_cv_func_$ac_func=no"
7121 rm -f conftest*
7124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7127 cat >> confdefs.h <<EOF
7128 #define $ac_tr_func 1
7131 else
7132 echo "$ac_t""no" 1>&6
7134 done
7137 esac
7139 case "$LIBS" in
7140 *-lsec*) for ac_func in set_auth_parameters
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7146 else
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7152 #include <assert.h>
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char $ac_func();
7158 int main() {
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 choke me
7165 #else
7166 $ac_func();
7167 #endif
7169 ; return 0; }
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 rm -rf conftest*
7173 eval "ac_cv_func_$ac_func=yes"
7174 else
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7177 rm -rf conftest*
7178 eval "ac_cv_func_$ac_func=no"
7180 rm -f conftest*
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_func 1
7190 else
7191 echo "$ac_t""no" 1>&6
7193 done
7195 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7196 echo "configure:7197: checking for set_auth_parameters in -lsec" >&5
7197 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7200 else
7201 ac_save_LIBS="$LIBS"
7202 LIBS="-lsec $LIBS"
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209 char set_auth_parameters();
7211 int main() {
7212 set_auth_parameters()
7213 ; return 0; }
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 rm -rf conftest*
7217 eval "ac_cv_lib_$ac_lib_var=yes"
7218 else
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 rm -rf conftest*
7222 eval "ac_cv_lib_$ac_lib_var=no"
7224 rm -f conftest*
7225 LIBS="$ac_save_LIBS"
7228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7230 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7232 cat >> confdefs.h <<EOF
7233 #define $ac_tr_lib 1
7236 LIBS="-lsec $LIBS"
7238 else
7239 echo "$ac_t""no" 1>&6
7242 for ac_func in set_auth_parameters
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7248 else
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7254 #include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7258 char $ac_func();
7260 int main() {
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 choke me
7267 #else
7268 $ac_func();
7269 #endif
7271 ; return 0; }
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 rm -rf conftest*
7275 eval "ac_cv_func_$ac_func=yes"
7276 else
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 rm -rf conftest*
7280 eval "ac_cv_func_$ac_func=no"
7282 rm -f conftest*
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7292 else
7293 echo "$ac_t""no" 1>&6
7295 done
7298 esac
7301 # UnixWare 7.x has its getspnam in -lgen
7302 case "$LIBS" in
7303 *-lgen*) for ac_func in getspnam
7305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7306 echo "configure:7307: checking for $ac_func" >&5
7307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7309 else
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* System header to define __stub macros and hopefully few prototypes,
7314 which can conflict with char $ac_func(); below. */
7315 #include <assert.h>
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7319 char $ac_func();
7321 int main() {
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7327 choke me
7328 #else
7329 $ac_func();
7330 #endif
7332 ; return 0; }
7334 if { (eval echo configure:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7335 rm -rf conftest*
7336 eval "ac_cv_func_$ac_func=yes"
7337 else
7338 echo "configure: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7340 rm -rf conftest*
7341 eval "ac_cv_func_$ac_func=no"
7343 rm -f conftest*
7346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7349 cat >> confdefs.h <<EOF
7350 #define $ac_tr_func 1
7353 else
7354 echo "$ac_t""no" 1>&6
7356 done
7358 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7359 echo "configure:7360: checking for getspnam in -lgen" >&5
7360 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7363 else
7364 ac_save_LIBS="$LIBS"
7365 LIBS="-lgen $LIBS"
7366 cat > conftest.$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* Override any gcc2 internal prototype to avoid an error. */
7370 /* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7372 char getspnam();
7374 int main() {
7375 getspnam()
7376 ; return 0; }
7378 if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7379 rm -rf conftest*
7380 eval "ac_cv_lib_$ac_lib_var=yes"
7381 else
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 rm -rf conftest*
7385 eval "ac_cv_lib_$ac_lib_var=no"
7387 rm -f conftest*
7388 LIBS="$ac_save_LIBS"
7391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7392 echo "$ac_t""yes" 1>&6
7393 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7395 cat >> confdefs.h <<EOF
7396 #define $ac_tr_lib 1
7399 LIBS="-lgen $LIBS"
7401 else
7402 echo "$ac_t""no" 1>&6
7405 for ac_func in getspnam
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7411 else
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416 which can conflict with char $ac_func(); below. */
7417 #include <assert.h>
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7421 char $ac_func();
7423 int main() {
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7429 choke me
7430 #else
7431 $ac_func();
7432 #endif
7434 ; return 0; }
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 rm -rf conftest*
7438 eval "ac_cv_func_$ac_func=yes"
7439 else
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7442 rm -rf conftest*
7443 eval "ac_cv_func_$ac_func=no"
7445 rm -f conftest*
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_func 1
7455 else
7456 echo "$ac_t""no" 1>&6
7458 done
7461 esac
7464 case "$LIBS" in
7465 *-lsecurity*) for ac_func in getspnam
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7471 else
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7477 #include <assert.h>
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char $ac_func();
7483 int main() {
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489 choke me
7490 #else
7491 $ac_func();
7492 #endif
7494 ; return 0; }
7496 if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 rm -rf conftest*
7498 eval "ac_cv_func_$ac_func=yes"
7499 else
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 rm -rf conftest*
7503 eval "ac_cv_func_$ac_func=no"
7505 rm -f conftest*
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h <<EOF
7512 #define $ac_tr_func 1
7515 else
7516 echo "$ac_t""no" 1>&6
7518 done
7520 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7521 echo "configure:7522: checking for getspnam in -lsecurity" >&5
7522 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7525 else
7526 ac_save_LIBS="$LIBS"
7527 LIBS="-lsecurity $LIBS"
7528 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534 char getspnam();
7536 int main() {
7537 getspnam()
7538 ; return 0; }
7540 if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7541 rm -rf conftest*
7542 eval "ac_cv_lib_$ac_lib_var=yes"
7543 else
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 rm -rf conftest*
7547 eval "ac_cv_lib_$ac_lib_var=no"
7549 rm -f conftest*
7550 LIBS="$ac_save_LIBS"
7553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7557 cat >> confdefs.h <<EOF
7558 #define $ac_tr_lib 1
7561 LIBS="-lsecurity $LIBS"
7563 else
7564 echo "$ac_t""no" 1>&6
7567 for ac_func in getspnam
7569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_func" >&5
7571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7573 else
7574 cat > conftest.$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7577 /* System header to define __stub macros and hopefully few prototypes,
7578 which can conflict with char $ac_func(); below. */
7579 #include <assert.h>
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char $ac_func();
7585 int main() {
7587 /* The GNU C library defines this for functions which it implements
7588 to always fail with ENOSYS. Some functions are actually named
7589 something starting with __ and the normal name is an alias. */
7590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 choke me
7592 #else
7593 $ac_func();
7594 #endif
7596 ; return 0; }
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7599 rm -rf conftest*
7600 eval "ac_cv_func_$ac_func=yes"
7601 else
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 rm -rf conftest*
7605 eval "ac_cv_func_$ac_func=no"
7607 rm -f conftest*
7610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7613 cat >> confdefs.h <<EOF
7614 #define $ac_tr_func 1
7617 else
7618 echo "$ac_t""no" 1>&6
7620 done
7623 esac
7625 case "$LIBS" in
7626 *-lsec*) for ac_func in getspnam
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632 else
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7638 #include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char $ac_func();
7644 int main() {
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7650 choke me
7651 #else
7652 $ac_func();
7653 #endif
7655 ; return 0; }
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=yes"
7660 else
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 rm -rf conftest*
7664 eval "ac_cv_func_$ac_func=no"
7666 rm -f conftest*
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h <<EOF
7673 #define $ac_tr_func 1
7676 else
7677 echo "$ac_t""no" 1>&6
7679 done
7681 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7682 echo "configure:7683: checking for getspnam in -lsec" >&5
7683 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7686 else
7687 ac_save_LIBS="$LIBS"
7688 LIBS="-lsec $LIBS"
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char getspnam();
7697 int main() {
7698 getspnam()
7699 ; return 0; }
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702 rm -rf conftest*
7703 eval "ac_cv_lib_$ac_lib_var=yes"
7704 else
7705 echo "configure: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 rm -rf conftest*
7708 eval "ac_cv_lib_$ac_lib_var=no"
7710 rm -f conftest*
7711 LIBS="$ac_save_LIBS"
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7716 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7718 cat >> confdefs.h <<EOF
7719 #define $ac_tr_lib 1
7722 LIBS="-lsec $LIBS"
7724 else
7725 echo "$ac_t""no" 1>&6
7728 for ac_func in getspnam
7730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_func" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char $ac_func(); below. */
7740 #include <assert.h>
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char $ac_func();
7746 int main() {
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7752 choke me
7753 #else
7754 $ac_func();
7755 #endif
7757 ; return 0; }
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 rm -rf conftest*
7761 eval "ac_cv_func_$ac_func=yes"
7762 else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_func_$ac_func=no"
7768 rm -f conftest*
7771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_func 1
7778 else
7779 echo "$ac_t""no" 1>&6
7781 done
7784 esac
7787 case "$LIBS" in
7788 *-lsecurity*) for ac_func in bigcrypt
7790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7791 echo "configure:7792: checking for $ac_func" >&5
7792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7794 else
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char $ac_func(); below. */
7800 #include <assert.h>
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804 char $ac_func();
7806 int main() {
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7812 choke me
7813 #else
7814 $ac_func();
7815 #endif
7817 ; return 0; }
7819 if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 rm -rf conftest*
7821 eval "ac_cv_func_$ac_func=yes"
7822 else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 rm -rf conftest*
7826 eval "ac_cv_func_$ac_func=no"
7828 rm -f conftest*
7831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7834 cat >> confdefs.h <<EOF
7835 #define $ac_tr_func 1
7838 else
7839 echo "$ac_t""no" 1>&6
7841 done
7843 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7844 echo "configure:7845: checking for bigcrypt in -lsecurity" >&5
7845 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7847 echo $ac_n "(cached) $ac_c" 1>&6
7848 else
7849 ac_save_LIBS="$LIBS"
7850 LIBS="-lsecurity $LIBS"
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7857 char bigcrypt();
7859 int main() {
7860 bigcrypt()
7861 ; return 0; }
7863 if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 rm -rf conftest*
7865 eval "ac_cv_lib_$ac_lib_var=yes"
7866 else
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 rm -rf conftest*
7870 eval "ac_cv_lib_$ac_lib_var=no"
7872 rm -f conftest*
7873 LIBS="$ac_save_LIBS"
7876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7877 echo "$ac_t""yes" 1>&6
7878 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7879 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7880 cat >> confdefs.h <<EOF
7881 #define $ac_tr_lib 1
7884 LIBS="-lsecurity $LIBS"
7886 else
7887 echo "$ac_t""no" 1>&6
7890 for ac_func in bigcrypt
7892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7893 echo "configure:7894: checking for $ac_func" >&5
7894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7896 else
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func(); below. */
7902 #include <assert.h>
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7906 char $ac_func();
7908 int main() {
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7914 choke me
7915 #else
7916 $ac_func();
7917 #endif
7919 ; return 0; }
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7922 rm -rf conftest*
7923 eval "ac_cv_func_$ac_func=yes"
7924 else
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 rm -rf conftest*
7928 eval "ac_cv_func_$ac_func=no"
7930 rm -f conftest*
7933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7936 cat >> confdefs.h <<EOF
7937 #define $ac_tr_func 1
7940 else
7941 echo "$ac_t""no" 1>&6
7943 done
7946 esac
7948 case "$LIBS" in
7949 *-lsec*) for ac_func in bigcrypt
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7955 else
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7961 #include <assert.h>
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7965 char $ac_func();
7967 int main() {
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7973 choke me
7974 #else
7975 $ac_func();
7976 #endif
7978 ; return 0; }
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 rm -rf conftest*
7982 eval "ac_cv_func_$ac_func=yes"
7983 else
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 rm -rf conftest*
7987 eval "ac_cv_func_$ac_func=no"
7989 rm -f conftest*
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_func 1
7999 else
8000 echo "$ac_t""no" 1>&6
8002 done
8004 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8005 echo "configure:8006: checking for bigcrypt in -lsec" >&5
8006 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8009 else
8010 ac_save_LIBS="$LIBS"
8011 LIBS="-lsec $LIBS"
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char bigcrypt();
8020 int main() {
8021 bigcrypt()
8022 ; return 0; }
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8025 rm -rf conftest*
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8027 else
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 rm -rf conftest*
8031 eval "ac_cv_lib_$ac_lib_var=no"
8033 rm -f conftest*
8034 LIBS="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8041 cat >> confdefs.h <<EOF
8042 #define $ac_tr_lib 1
8045 LIBS="-lsec $LIBS"
8047 else
8048 echo "$ac_t""no" 1>&6
8051 for ac_func in bigcrypt
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8063 #include <assert.h>
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char $ac_func();
8069 int main() {
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 choke me
8076 #else
8077 $ac_func();
8078 #endif
8080 ; return 0; }
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8083 rm -rf conftest*
8084 eval "ac_cv_func_$ac_func=yes"
8085 else
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 eval "ac_cv_func_$ac_func=no"
8091 rm -f conftest*
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h <<EOF
8098 #define $ac_tr_func 1
8101 else
8102 echo "$ac_t""no" 1>&6
8104 done
8107 esac
8110 case "$LIBS" in
8111 *-lsecurity*) for ac_func in getprpwnam
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char $ac_func();
8129 int main() {
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 choke me
8136 #else
8137 $ac_func();
8138 #endif
8140 ; return 0; }
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=yes"
8145 else
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=no"
8151 rm -f conftest*
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8161 else
8162 echo "$ac_t""no" 1>&6
8164 done
8166 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8167 echo "configure:8168: checking for getprpwnam in -lsecurity" >&5
8168 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8171 else
8172 ac_save_LIBS="$LIBS"
8173 LIBS="-lsecurity $LIBS"
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char getprpwnam();
8182 int main() {
8183 getprpwnam()
8184 ; return 0; }
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8187 rm -rf conftest*
8188 eval "ac_cv_lib_$ac_lib_var=yes"
8189 else
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8192 rm -rf conftest*
8193 eval "ac_cv_lib_$ac_lib_var=no"
8195 rm -f conftest*
8196 LIBS="$ac_save_LIBS"
8199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8203 cat >> confdefs.h <<EOF
8204 #define $ac_tr_lib 1
8207 LIBS="-lsecurity $LIBS"
8209 else
8210 echo "$ac_t""no" 1>&6
8213 for ac_func in getprpwnam
8215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8216 echo "configure:8217: checking for $ac_func" >&5
8217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8219 else
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* System header to define __stub macros and hopefully few prototypes,
8224 which can conflict with char $ac_func(); below. */
8225 #include <assert.h>
8226 /* Override any gcc2 internal prototype to avoid an error. */
8227 /* We use char because int might match the return type of a gcc2
8228 builtin and then its argument prototype would still apply. */
8229 char $ac_func();
8231 int main() {
8233 /* The GNU C library defines this for functions which it implements
8234 to always fail with ENOSYS. Some functions are actually named
8235 something starting with __ and the normal name is an alias. */
8236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8237 choke me
8238 #else
8239 $ac_func();
8240 #endif
8242 ; return 0; }
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8245 rm -rf conftest*
8246 eval "ac_cv_func_$ac_func=yes"
8247 else
8248 echo "configure: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 rm -rf conftest*
8251 eval "ac_cv_func_$ac_func=no"
8253 rm -f conftest*
8256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8259 cat >> confdefs.h <<EOF
8260 #define $ac_tr_func 1
8263 else
8264 echo "$ac_t""no" 1>&6
8266 done
8269 esac
8271 case "$LIBS" in
8272 *-lsec*) for ac_func in getprpwnam
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278 else
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8284 #include <assert.h>
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char $ac_func();
8290 int main() {
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8296 choke me
8297 #else
8298 $ac_func();
8299 #endif
8301 ; return 0; }
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 rm -rf conftest*
8305 eval "ac_cv_func_$ac_func=yes"
8306 else
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 rm -rf conftest*
8310 eval "ac_cv_func_$ac_func=no"
8312 rm -f conftest*
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_func 1
8322 else
8323 echo "$ac_t""no" 1>&6
8325 done
8327 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8328 echo "configure:8329: checking for getprpwnam in -lsec" >&5
8329 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8332 else
8333 ac_save_LIBS="$LIBS"
8334 LIBS="-lsec $LIBS"
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341 char getprpwnam();
8343 int main() {
8344 getprpwnam()
8345 ; return 0; }
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 rm -rf conftest*
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8350 else
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 eval "ac_cv_lib_$ac_lib_var=no"
8356 rm -f conftest*
8357 LIBS="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8364 cat >> confdefs.h <<EOF
8365 #define $ac_tr_lib 1
8368 LIBS="-lsec $LIBS"
8370 else
8371 echo "$ac_t""no" 1>&6
8374 for ac_func in getprpwnam
8376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_func" >&5
8378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8380 else
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func(); below. */
8386 #include <assert.h>
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390 char $ac_func();
8392 int main() {
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 choke me
8399 #else
8400 $ac_func();
8401 #endif
8403 ; return 0; }
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 rm -rf conftest*
8407 eval "ac_cv_func_$ac_func=yes"
8408 else
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 rm -rf conftest*
8412 eval "ac_cv_func_$ac_func=no"
8414 rm -f conftest*
8417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8420 cat >> confdefs.h <<EOF
8421 #define $ac_tr_func 1
8424 else
8425 echo "$ac_t""no" 1>&6
8427 done
8430 esac
8433 # this bit needs to be modified for each OS that is suported by
8434 # smbwrapper. You need to specify how to created a shared library and
8435 # how to compile C code to produce PIC object files
8437 # these are the defaults, good for lots of systems
8438 HOST_OS="$host_os"
8439 LDSHFLAGS="-shared"
8440 PICFLAG=""
8441 SHLIBEXT="so"
8443 # and these are for particular systems
8444 case "$host_os" in
8445 *linux*) cat >> confdefs.h <<\EOF
8446 #define LINUX 1
8449 *solaris*) cat >> confdefs.h <<\EOF
8450 #define SUNOS5 1
8453 LDSHFLAGS="-G"
8455 *sunos*) cat >> confdefs.h <<\EOF
8456 #define SUNOS4 1
8459 LDSHFLAGS=""
8461 *bsd*) LDSHFLAGS="-shared -Bshareable"
8463 *irix*) cat >> confdefs.h <<\EOF
8464 #define IRIX 1
8467 case "$host_os" in
8468 *irix6*) cat >> confdefs.h <<\EOF
8469 #define IRIX6 1
8473 esac
8474 ATTEMPT_WRAP32_BUILD=yes
8476 *aix*) cat >> confdefs.h <<\EOF
8477 #define AIX 1
8480 *hpux*) cat >> confdefs.h <<\EOF
8481 #define HPUX 1
8484 SHLIBEXT="sl"
8485 # Use special PIC flags for the native HP-UX compiler.
8486 if test $ac_cv_prog_cc_Ae = yes; then
8487 LDSHFLAGS="-b"
8488 PICFLAG="+z"
8491 *qnx*) cat >> confdefs.h <<\EOF
8492 #define QNX 1
8495 *osf*) cat >> confdefs.h <<\EOF
8496 #define OSF1 1
8499 *sco*) cat >> confdefs.h <<\EOF
8500 #define SCO 1
8503 *next2*) cat >> confdefs.h <<\EOF
8504 #define NEXT2 1
8507 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8508 set dummy groff; ac_word=$2
8509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8510 echo "configure:8511: checking for $ac_word" >&5
8511 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8513 else
8514 if test -n "$ROFF"; then
8515 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8516 else
8517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8518 ac_dummy="$PATH"
8519 for ac_dir in $ac_dummy; do
8520 test -z "$ac_dir" && ac_dir=.
8521 if test -f $ac_dir/$ac_word; then
8522 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8523 break
8525 done
8526 IFS="$ac_save_ifs"
8529 ROFF="$ac_cv_prog_ROFF"
8530 if test -n "$ROFF"; then
8531 echo "$ac_t""$ROFF" 1>&6
8532 else
8533 echo "$ac_t""no" 1>&6
8536 *sysv4*)
8537 case "$host" in
8538 *-univel-*) if test "$GCC" != yes ; then
8539 cat >> confdefs.h <<\EOF
8540 #define HAVE_MEMSET 1
8544 LDSHFLAGS="-G"
8546 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8547 #define RELIANTUNIX 1
8550 esac
8552 *sysv5*)
8553 if test "$GCC" != yes ; then
8554 cat >> confdefs.h <<\EOF
8555 #define HAVE_MEMSET 1
8559 LDSHFLAGS="-G"
8561 esac
8563 # try to work out how to produce PIC code with this compiler
8564 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8565 echo "configure:8566: checking whether ${CC-cc} accepts -fPIC" >&5
8566 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8568 else
8569 echo 'void f(){}' > conftest.c
8570 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8571 ac_cv_prog_cc_fPIC=yes
8572 else
8573 ac_cv_prog_cc_fPIC=no
8575 rm -f conftest*
8579 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8580 if test $ac_cv_prog_cc_fPIC = yes; then
8581 PICFLAG="-fPIC";
8583 if test x$PICFLAG = x; then
8584 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8585 echo "configure:8586: checking whether ${CC-cc} accepts -KPIC" >&5
8586 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8589 echo 'void f(){}' > conftest.c
8590 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8591 ac_cv_prog_cc_KPIC=yes
8592 else
8593 ac_cv_prog_cc_KPIC=no
8595 rm -f conftest*
8599 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8600 if test $ac_cv_prog_cc_KPIC = yes; then
8601 PICFLAG="-KPIC";
8604 if test x$PICFLAG = x; then
8605 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8606 echo "configure:8607: checking whether ${CC-cc} accepts -Kpic" >&5
8607 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8609 else
8610 echo 'void f(){}' > conftest.c
8611 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8612 ac_cv_prog_cc_Kpic=yes
8613 else
8614 ac_cv_prog_cc_Kpic=no
8616 rm -f conftest*
8620 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8621 if test $ac_cv_prog_cc_Kpic = yes; then
8622 PICFLAG="-Kpic";
8626 ################
8628 echo $ac_n "checking for long long""... $ac_c" 1>&6
8629 echo "configure:8630: checking for long long" >&5
8630 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8632 else
8634 if test "$cross_compiling" = yes; then
8635 samba_cv_have_longlong=cross
8636 else
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 #include <stdio.h>
8641 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8644 then
8645 samba_cv_have_longlong=yes
8646 else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -fr conftest*
8650 samba_cv_have_longlong=no
8652 rm -fr conftest*
8657 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8658 if test x"$samba_cv_have_longlong" = x"yes"; then
8659 cat >> confdefs.h <<\EOF
8660 #define HAVE_LONGLONG 1
8666 # Check if the compiler supports the LL prefix on long long integers.
8667 # AIX needs this.
8669 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8670 echo "configure:8671: checking for LL suffix on long long integers" >&5
8671 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8673 else
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 #include <stdio.h>
8679 int main() {
8680 long long i = 0x8000000000LL
8681 ; return 0; }
8683 if { (eval echo configure:8684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8684 rm -rf conftest*
8685 samba_cv_compiler_supports_ll=yes
8686 else
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 rm -rf conftest*
8690 samba_cv_compiler_supports_ll=no
8692 rm -f conftest*
8695 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8696 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8697 cat >> confdefs.h <<\EOF
8698 #define COMPILER_SUPPORTS_LL 1
8704 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8705 echo "configure:8706: checking for 64 bit off_t" >&5
8706 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708 else
8710 if test "$cross_compiling" = yes; then
8711 samba_cv_SIZEOF_OFF_T=cross
8712 else
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 #include <stdio.h>
8717 #include <sys/stat.h>
8718 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8721 then
8722 samba_cv_SIZEOF_OFF_T=yes
8723 else
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 rm -fr conftest*
8727 samba_cv_SIZEOF_OFF_T=no
8729 rm -fr conftest*
8734 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8735 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8736 cat >> confdefs.h <<\EOF
8737 #define SIZEOF_OFF_T 8
8742 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8743 echo "configure:8744: checking for off64_t" >&5
8744 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8746 else
8748 if test "$cross_compiling" = yes; then
8749 samba_cv_HAVE_OFF64_T=cross
8750 else
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8755 #if defined(HAVE_UNISTD_H)
8756 #include <unistd.h>
8757 #endif
8758 #include <stdio.h>
8759 #include <sys/stat.h>
8760 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8763 then
8764 samba_cv_HAVE_OFF64_T=yes
8765 else
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 rm -fr conftest*
8769 samba_cv_HAVE_OFF64_T=no
8771 rm -fr conftest*
8776 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8777 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8778 cat >> confdefs.h <<\EOF
8779 #define HAVE_OFF64_T 1
8784 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8785 echo "configure:8786: checking for 64 bit ino_t" >&5
8786 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788 else
8790 if test "$cross_compiling" = yes; then
8791 samba_cv_SIZEOF_INO_T=cross
8792 else
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 #include <stdio.h>
8797 #include <sys/stat.h>
8798 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8800 if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8801 then
8802 samba_cv_SIZEOF_INO_T=yes
8803 else
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 rm -fr conftest*
8807 samba_cv_SIZEOF_INO_T=no
8809 rm -fr conftest*
8814 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8815 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8816 cat >> confdefs.h <<\EOF
8817 #define SIZEOF_INO_T 8
8822 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8823 echo "configure:8824: checking for ino64_t" >&5
8824 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8826 else
8828 if test "$cross_compiling" = yes; then
8829 samba_cv_HAVE_INO64_T=cross
8830 else
8831 cat > conftest.$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8835 #if defined(HAVE_UNISTD_H)
8836 #include <unistd.h>
8837 #endif
8838 #include <stdio.h>
8839 #include <sys/stat.h>
8840 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8843 then
8844 samba_cv_HAVE_INO64_T=yes
8845 else
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 rm -fr conftest*
8849 samba_cv_HAVE_INO64_T=no
8851 rm -fr conftest*
8856 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8857 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8858 cat >> confdefs.h <<\EOF
8859 #define HAVE_INO64_T 1
8864 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8865 echo "configure:8866: checking for struct dirent64" >&5
8866 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8868 else
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8874 #if defined(HAVE_UNISTD_H)
8875 #include <unistd.h>
8876 #endif
8877 #include <sys/types.h>
8878 #include <dirent.h>
8879 int main() {
8880 struct dirent64 de;
8881 ; return 0; }
8883 if { (eval echo configure:8884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8884 rm -rf conftest*
8885 samba_cv_HAVE_STRUCT_DIRENT64=yes
8886 else
8887 echo "configure: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 rm -rf conftest*
8890 samba_cv_HAVE_STRUCT_DIRENT64=no
8892 rm -f conftest*
8895 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8896 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8897 cat >> confdefs.h <<\EOF
8898 #define HAVE_STRUCT_DIRENT64 1
8903 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8904 echo "configure:8905: checking for unsigned char" >&5
8905 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8906 echo $ac_n "(cached) $ac_c" 1>&6
8907 else
8909 if test "$cross_compiling" = yes; then
8910 samba_cv_HAVE_UNSIGNED_CHAR=cross
8911 else
8912 cat > conftest.$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8915 #include <stdio.h>
8916 main() { char c; c=250; exit((c > 0)?0:1); }
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8919 then
8920 samba_cv_HAVE_UNSIGNED_CHAR=yes
8921 else
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8924 rm -fr conftest*
8925 samba_cv_HAVE_UNSIGNED_CHAR=no
8927 rm -fr conftest*
8932 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8933 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8934 cat >> confdefs.h <<\EOF
8935 #define HAVE_UNSIGNED_CHAR 1
8940 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8941 echo "configure:8942: checking for sin_len in sock" >&5
8942 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <sys/types.h>
8950 #include <sys/socket.h>
8951 #include <netinet/in.h>
8952 int main() {
8953 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8954 ; return 0; }
8956 if { (eval echo configure:8957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8957 rm -rf conftest*
8958 samba_cv_HAVE_SOCK_SIN_LEN=yes
8959 else
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8962 rm -rf conftest*
8963 samba_cv_HAVE_SOCK_SIN_LEN=no
8965 rm -f conftest*
8968 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8969 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_SOCK_SIN_LEN 1
8976 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether seekdir returns void" >&5
8978 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8980 else
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 #include <sys/types.h>
8986 #include <dirent.h>
8987 void seekdir(DIR *d, long loc) { return; }
8988 int main() {
8989 return 0;
8990 ; return 0; }
8992 if { (eval echo configure:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8993 rm -rf conftest*
8994 samba_cv_SEEKDIR_RETURNS_VOID=yes
8995 else
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 samba_cv_SEEKDIR_RETURNS_VOID=no
9001 rm -f conftest*
9004 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9005 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9006 cat >> confdefs.h <<\EOF
9007 #define SEEKDIR_RETURNS_VOID 1
9012 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9013 echo "configure:9014: checking for __FILE__ macro" >&5
9014 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016 else
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <stdio.h>
9022 int main() {
9023 printf("%s\n", __FILE__);
9024 ; return 0; }
9026 if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027 rm -rf conftest*
9028 samba_cv_HAVE_FILE_MACRO=yes
9029 else
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 rm -rf conftest*
9033 samba_cv_HAVE_FILE_MACRO=no
9035 rm -f conftest*
9038 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9039 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9040 cat >> confdefs.h <<\EOF
9041 #define HAVE_FILE_MACRO 1
9046 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9047 echo "configure:9048: checking for __FUNCTION__ macro" >&5
9048 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050 else
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include <stdio.h>
9056 int main() {
9057 printf("%s\n", __FUNCTION__);
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9061 rm -rf conftest*
9062 samba_cv_HAVE_FUNCTION_MACRO=yes
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 samba_cv_HAVE_FUNCTION_MACRO=no
9069 rm -f conftest*
9072 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9073 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_FUNCTION_MACRO 1
9080 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9081 echo "configure:9082: checking if gettimeofday takes tz argument" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9084 else
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9088 else
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #include <sys/time.h>
9094 #include <unistd.h>
9095 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9098 then
9099 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -fr conftest*
9104 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9106 rm -fr conftest*
9111 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9112 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_GETTIMEOFDAY_TZ 1
9119 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9120 echo "configure:9121: checking for C99 vsnprintf" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9125 if test "$cross_compiling" = yes; then
9126 samba_cv_HAVE_C99_VSNPRINTF=cross
9127 else
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9132 #include <sys/types.h>
9133 #include <stdarg.h>
9134 void foo(const char *format, ...) {
9135 va_list ap;
9136 int len;
9137 char buf[5];
9139 va_start(ap, format);
9140 len = vsnprintf(0, 0, format, ap);
9141 va_end(ap);
9142 if (len != 5) exit(1);
9144 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9146 exit(0);
9148 main() { foo("hello"); }
9151 if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9152 then
9153 samba_cv_HAVE_C99_VSNPRINTF=yes
9154 else
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -fr conftest*
9158 samba_cv_HAVE_C99_VSNPRINTF=no
9160 rm -fr conftest*
9165 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9166 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9167 cat >> confdefs.h <<\EOF
9168 #define HAVE_C99_VSNPRINTF 1
9173 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9174 echo "configure:9175: checking for broken readdir" >&5
9175 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9177 else
9179 if test "$cross_compiling" = yes; then
9180 samba_cv_HAVE_BROKEN_READDIR=cross
9181 else
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9185 #include <sys/types.h>
9186 #include <dirent.h>
9187 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9188 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9189 di->d_name[0] == 0) exit(0); exit(1);}
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9192 then
9193 samba_cv_HAVE_BROKEN_READDIR=yes
9194 else
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 rm -fr conftest*
9198 samba_cv_HAVE_BROKEN_READDIR=no
9200 rm -fr conftest*
9205 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9206 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9207 cat >> confdefs.h <<\EOF
9208 #define HAVE_BROKEN_READDIR 1
9213 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9214 echo "configure:9215: checking for utimbuf" >&5
9215 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <utime.h>
9224 int main() {
9225 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9226 ; return 0; }
9228 if { (eval echo configure:9229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9229 rm -rf conftest*
9230 samba_cv_HAVE_UTIMBUF=yes
9231 else
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9234 rm -rf conftest*
9235 samba_cv_HAVE_UTIMBUF=no
9237 rm -f conftest*
9240 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9241 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9242 cat >> confdefs.h <<\EOF
9243 #define HAVE_UTIMBUF 1
9249 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9252 echo "configure:9253: checking for $ac_func" >&5
9253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9255 else
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* System header to define __stub macros and hopefully few prototypes,
9260 which can conflict with char $ac_func(); below. */
9261 #include <assert.h>
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9265 char $ac_func();
9267 int main() {
9269 /* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273 choke me
9274 #else
9275 $ac_func();
9276 #endif
9278 ; return 0; }
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 rm -rf conftest*
9282 eval "ac_cv_func_$ac_func=yes"
9283 else
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 rm -rf conftest*
9287 eval "ac_cv_func_$ac_func=no"
9289 rm -f conftest*
9292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9295 cat >> confdefs.h <<EOF
9296 #define $ac_tr_func 1
9299 else
9300 echo "$ac_t""no" 1>&6
9302 done
9305 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_name in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309 else
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9315 #include <utmp.h>
9316 int main() {
9317 struct utmp ut; ut.ut_name[0] = 'a';
9318 ; return 0; }
9320 if { (eval echo configure:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9321 rm -rf conftest*
9322 samba_cv_HAVE_UT_UT_NAME=yes
9323 else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -rf conftest*
9327 samba_cv_HAVE_UT_UT_NAME=no
9329 rm -f conftest*
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9333 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9334 cat >> confdefs.h <<\EOF
9335 #define HAVE_UT_UT_NAME 1
9340 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_user in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344 else
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <utmp.h>
9351 int main() {
9352 struct utmp ut; ut.ut_user[0] = 'a';
9353 ; return 0; }
9355 if { (eval echo configure:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9356 rm -rf conftest*
9357 samba_cv_HAVE_UT_UT_USER=yes
9358 else
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 rm -rf conftest*
9362 samba_cv_HAVE_UT_UT_USER=no
9364 rm -f conftest*
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9368 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9369 cat >> confdefs.h <<\EOF
9370 #define HAVE_UT_UT_USER 1
9375 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_id in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9379 else
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9385 #include <utmp.h>
9386 int main() {
9387 struct utmp ut; ut.ut_id[0] = 'a';
9388 ; return 0; }
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9391 rm -rf conftest*
9392 samba_cv_HAVE_UT_UT_ID=yes
9393 else
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 samba_cv_HAVE_UT_UT_ID=no
9399 rm -f conftest*
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9403 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9404 cat >> confdefs.h <<\EOF
9405 #define HAVE_UT_UT_ID 1
9410 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_host in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9420 #include <utmp.h>
9421 int main() {
9422 struct utmp ut; ut.ut_host[0] = 'a';
9423 ; return 0; }
9425 if { (eval echo configure:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9426 rm -rf conftest*
9427 samba_cv_HAVE_UT_UT_HOST=yes
9428 else
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -rf conftest*
9432 samba_cv_HAVE_UT_UT_HOST=no
9434 rm -f conftest*
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9438 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9439 cat >> confdefs.h <<\EOF
9440 #define HAVE_UT_UT_HOST 1
9445 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_time in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9455 #include <utmp.h>
9456 int main() {
9457 struct utmp ut; time_t t; ut.ut_time = t;
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9461 rm -rf conftest*
9462 samba_cv_HAVE_UT_UT_TIME=yes
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 samba_cv_HAVE_UT_UT_TIME=no
9469 rm -f conftest*
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9473 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9474 cat >> confdefs.h <<\EOF
9475 #define HAVE_UT_UT_TIME 1
9480 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9481 echo "configure:9482: checking for ut_tv in utmp" >&5
9482 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9484 else
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 #include <sys/types.h>
9490 #include <utmp.h>
9491 int main() {
9492 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9493 ; return 0; }
9495 if { (eval echo configure:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9496 rm -rf conftest*
9497 samba_cv_HAVE_UT_UT_TV=yes
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 samba_cv_HAVE_UT_UT_TV=no
9504 rm -f conftest*
9507 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9508 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9509 cat >> confdefs.h <<\EOF
9510 #define HAVE_UT_UT_TV 1
9515 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9516 echo "configure:9517: checking for ut_type in utmp" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <sys/types.h>
9525 #include <utmp.h>
9526 int main() {
9527 struct utmp ut; ut.ut_type = 0;
9528 ; return 0; }
9530 if { (eval echo configure:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9531 rm -rf conftest*
9532 samba_cv_HAVE_UT_UT_TYPE=yes
9533 else
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 samba_cv_HAVE_UT_UT_TYPE=no
9539 rm -f conftest*
9542 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9543 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9544 cat >> confdefs.h <<\EOF
9545 #define HAVE_UT_UT_TYPE 1
9550 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9551 echo "configure:9552: checking for ut_pid in utmp" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <sys/types.h>
9560 #include <utmp.h>
9561 int main() {
9562 struct utmp ut; ut.ut_pid = 0;
9563 ; return 0; }
9565 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9566 rm -rf conftest*
9567 samba_cv_HAVE_UT_UT_PID=yes
9568 else
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 rm -rf conftest*
9572 samba_cv_HAVE_UT_UT_PID=no
9574 rm -f conftest*
9577 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9578 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_UT_UT_PID 1
9585 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9586 echo "configure:9587: checking for ut_exit in utmp" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9595 #include <utmp.h>
9596 int main() {
9597 struct utmp ut; ut.ut_exit.e_exit = 0;
9598 ; return 0; }
9600 if { (eval echo configure:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9601 rm -rf conftest*
9602 samba_cv_HAVE_UT_UT_EXIT=yes
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 samba_cv_HAVE_UT_UT_EXIT=no
9609 rm -f conftest*
9612 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9613 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9614 cat >> confdefs.h <<\EOF
9615 #define HAVE_UT_UT_EXIT 1
9620 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9621 echo "configure:9622: checking for ut_addr in utmp" >&5
9622 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9623 echo $ac_n "(cached) $ac_c" 1>&6
9624 else
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <sys/types.h>
9630 #include <utmp.h>
9631 int main() {
9632 struct utmp ut; ut.ut_addr = 0;
9633 ; return 0; }
9635 if { (eval echo configure:9636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9636 rm -rf conftest*
9637 samba_cv_HAVE_UT_UT_ADDR=yes
9638 else
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 samba_cv_HAVE_UT_UT_ADDR=no
9644 rm -f conftest*
9647 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9648 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9649 cat >> confdefs.h <<\EOF
9650 #define HAVE_UT_UT_ADDR 1
9655 if test x$ac_cv_func_pututline = xyes ; then
9656 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9657 echo "configure:9658: checking whether pututline returns pointer" >&5
9658 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9660 else
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 #include <sys/types.h>
9666 #include <utmp.h>
9667 int main() {
9668 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9669 ; return 0; }
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9672 rm -rf conftest*
9673 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9674 else
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9677 rm -rf conftest*
9678 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9680 rm -f conftest*
9683 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9684 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9685 cat >> confdefs.h <<\EOF
9686 #define PUTUTLINE_RETURNS_UTMP 1
9692 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9693 echo "configure:9694: checking for ut_syslen in utmpx" >&5
9694 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9696 else
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <sys/types.h>
9702 #include <utmpx.h>
9703 int main() {
9704 struct utmpx ux; ux.ut_syslen = 0;
9705 ; return 0; }
9707 if { (eval echo configure:9708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9708 rm -rf conftest*
9709 samba_cv_HAVE_UX_UT_SYSLEN=yes
9710 else
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 rm -rf conftest*
9714 samba_cv_HAVE_UX_UT_SYSLEN=no
9716 rm -f conftest*
9719 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9720 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9721 cat >> confdefs.h <<\EOF
9722 #define HAVE_UX_UT_SYSLEN 1
9727 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9728 echo "configure:9729: checking for Linux kernel oplocks" >&5
9729 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9731 else
9733 if test "$cross_compiling" = yes; then
9734 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9735 else
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9740 #include <sys/types.h>
9741 #include <fcntl.h>
9742 #ifndef F_GETLEASE
9743 #define F_GETLEASE 1025
9744 #endif
9745 main() {
9746 int fd = open("/dev/null", O_RDONLY);
9747 return fcntl(fd, F_GETLEASE, 0) == -1;
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9752 then
9753 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -fr conftest*
9758 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9760 rm -fr conftest*
9765 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9766 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9767 cat >> confdefs.h <<\EOF
9768 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9773 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9774 echo "configure:9775: checking for kernel change notify support" >&5
9775 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9779 if test "$cross_compiling" = yes; then
9780 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9781 else
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9786 #include <sys/types.h>
9787 #include <fcntl.h>
9788 #include <signal.h>
9789 #ifndef F_NOTIFY
9790 #define F_NOTIFY 1026
9791 #endif
9792 main() {
9793 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9797 if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9798 then
9799 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9800 else
9801 echo "configure: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 rm -fr conftest*
9804 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9806 rm -fr conftest*
9811 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9812 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9813 cat >> confdefs.h <<\EOF
9814 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9819 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9820 echo "configure:9821: checking for kernel share modes" >&5
9821 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823 else
9825 if test "$cross_compiling" = yes; then
9826 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9827 else
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <fcntl.h>
9834 #include <signal.h>
9835 #include <sys/file.h>
9836 #ifndef LOCK_MAND
9837 #define LOCK_MAND 32
9838 #define LOCK_READ 64
9839 #endif
9840 main() {
9841 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9846 then
9847 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9848 else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -fr conftest*
9852 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9854 rm -fr conftest*
9859 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9860 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_KERNEL_SHARE_MODES 1
9870 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9871 echo "configure:9872: checking for IRIX kernel oplock type definitions" >&5
9872 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874 else
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 #include <sys/types.h>
9880 #include <fcntl.h>
9881 int main() {
9882 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9883 ; return 0; }
9885 if { (eval echo configure:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9886 rm -rf conftest*
9887 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9888 else
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 rm -rf conftest*
9892 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9894 rm -f conftest*
9897 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9898 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9899 cat >> confdefs.h <<\EOF
9900 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9905 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9906 echo "configure:9907: checking for irix specific capabilities" >&5
9907 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909 else
9911 if test "$cross_compiling" = yes; then
9912 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9913 else
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <sys/types.h>
9918 #include <sys/capability.h>
9919 main() {
9920 cap_t cap;
9921 if ((cap = cap_get_proc()) == NULL)
9922 exit(1);
9923 cap->cap_effective |= CAP_NETWORK_MGT;
9924 cap->cap_inheritable |= CAP_NETWORK_MGT;
9925 cap_set_proc(cap);
9926 exit(0);
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9931 then
9932 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9933 else
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 rm -fr conftest*
9937 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9939 rm -fr conftest*
9944 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9945 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9946 cat >> confdefs.h <<\EOF
9947 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9953 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9954 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9957 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9958 echo "configure:9959: checking for int16 typedef included by rpc/rpc.h" >&5
9959 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9961 else
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #if defined(HAVE_RPC_RPC_H)
9968 #include <rpc/rpc.h>
9969 #endif
9970 int main() {
9971 int16 testvar;
9972 ; return 0; }
9974 if { (eval echo configure:9975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 rm -rf conftest*
9976 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9977 else
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 rm -rf conftest*
9981 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9983 rm -f conftest*
9986 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9987 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_INT16_FROM_RPC_RPC_H 1
9994 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9995 echo "configure:9996: checking for uint16 typedef included by rpc/rpc.h" >&5
9996 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9998 else
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #if defined(HAVE_RPC_RPC_H)
10005 #include <rpc/rpc.h>
10006 #endif
10007 int main() {
10008 uint16 testvar;
10009 ; return 0; }
10011 if { (eval echo configure:10012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10012 rm -rf conftest*
10013 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10014 else
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 rm -rf conftest*
10018 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10020 rm -f conftest*
10023 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10024 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10025 cat >> confdefs.h <<\EOF
10026 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10031 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10032 echo "configure:10033: checking for int32 typedef included by rpc/rpc.h" >&5
10033 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10035 else
10037 cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <sys/types.h>
10041 #if defined(HAVE_RPC_RPC_H)
10042 #include <rpc/rpc.h>
10043 #endif
10044 int main() {
10045 int32 testvar;
10046 ; return 0; }
10048 if { (eval echo configure:10049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10049 rm -rf conftest*
10050 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -rf conftest*
10055 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10057 rm -f conftest*
10060 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10061 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10062 cat >> confdefs.h <<\EOF
10063 #define HAVE_INT32_FROM_RPC_RPC_H 1
10068 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10069 echo "configure:10070: checking for uint32 typedef included by rpc/rpc.h" >&5
10070 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10072 else
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 #include <sys/types.h>
10078 #if defined(HAVE_RPC_RPC_H)
10079 #include <rpc/rpc.h>
10080 #endif
10081 int main() {
10082 uint32 testvar;
10083 ; return 0; }
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 rm -rf conftest*
10087 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10094 rm -f conftest*
10097 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10098 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10099 cat >> confdefs.h <<\EOF
10100 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10106 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10107 echo "configure:10108: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10116 #ifdef HAVE_SYS_SECURITY_H
10117 #include <sys/security.h>
10118 #include <prot.h>
10119 #endif /* HAVE_SYS_SECURITY_H */
10120 #if defined(HAVE_RPC_RPC_H)
10121 #include <rpc/rpc.h>
10122 #endif
10123 int main() {
10124 int testvar;
10125 ; return 0; }
10127 if { (eval echo configure:10128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10128 rm -rf conftest*
10129 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10130 else
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10133 rm -rf conftest*
10134 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10136 rm -f conftest*
10139 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10140 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10147 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10148 echo "configure:10149: checking for test routines" >&5
10149 if test "$cross_compiling" = yes; then
10150 echo "configure: warning: cannot run when cross-compiling" 1>&2
10151 else
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include "${srcdir-.}/tests/trivial.c"
10157 if { (eval echo configure:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10158 then
10159 echo "$ac_t""yes" 1>&6
10160 else
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 rm -fr conftest*
10164 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10166 rm -fr conftest*
10170 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10171 echo "configure:10172: checking for ftruncate extend" >&5
10172 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10174 else
10176 if test "$cross_compiling" = yes; then
10177 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10178 else
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include "${srcdir-.}/tests/ftruncate.c"
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10185 then
10186 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -fr conftest*
10191 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10193 rm -fr conftest*
10198 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10199 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_FTRUNCATE_EXTEND 1
10206 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10207 echo "configure:10208: checking for broken getgroups" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10214 else
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include "${srcdir-.}/tests/getgroups.c"
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10221 then
10222 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -fr conftest*
10227 samba_cv_HAVE_BROKEN_GETGROUPS=no
10229 rm -fr conftest*
10234 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10235 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_BROKEN_GETGROUPS 1
10242 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10243 echo "configure:10244: checking whether getpass should be replaced" >&5
10244 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10246 else
10248 SAVE_CPPFLAGS="$CPPFLAGS"
10249 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10254 #define REPLACE_GETPASS 1
10255 #define NO_CONFIG_H 1
10256 #define main dont_declare_main
10257 #include "${srcdir-.}/lib/getsmbpass.c"
10258 #undef main
10260 int main() {
10262 ; return 0; }
10264 if { (eval echo configure:10265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10265 rm -rf conftest*
10266 samba_cv_REPLACE_GETPASS=yes
10267 else
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10270 rm -rf conftest*
10271 samba_cv_REPLACE_GETPASS=no
10273 rm -f conftest*
10274 CPPFLAGS="$SAVE_CPPFLAGS"
10278 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10279 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10280 cat >> confdefs.h <<\EOF
10281 #define REPLACE_GETPASS 1
10286 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10287 echo "configure:10288: checking for broken inet_ntoa" >&5
10288 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10292 if test "$cross_compiling" = yes; then
10293 samba_cv_REPLACE_INET_NTOA=cross
10294 else
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10299 #include <stdio.h>
10300 #include <sys/types.h>
10301 #include <netinet/in.h>
10302 #ifdef HAVE_ARPA_INET_H
10303 #include <arpa/inet.h>
10304 #endif
10305 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10306 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10307 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10308 exit(1);}
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10311 then
10312 samba_cv_REPLACE_INET_NTOA=yes
10313 else
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10316 rm -fr conftest*
10317 samba_cv_REPLACE_INET_NTOA=no
10319 rm -fr conftest*
10324 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10325 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10326 cat >> confdefs.h <<\EOF
10327 #define REPLACE_INET_NTOA 1
10332 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10333 echo "configure:10334: checking for secure mkstemp" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336 else
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_SECURE_MKSTEMP=cross
10340 else
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 #include <stdlib.h>
10345 #include <sys/types.h>
10346 #include <sys/stat.h>
10347 #include <unistd.h>
10348 main() {
10349 struct stat st;
10350 char tpl[20]="/tmp/test.XXXXXX";
10351 int fd = mkstemp(tpl);
10352 if (fd == -1) exit(1);
10353 unlink(tpl);
10354 if (fstat(fd, &st) != 0) exit(1);
10355 if ((st.st_mode & 0777) != 0600) exit(1);
10356 exit(0);
10359 if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10360 then
10361 samba_cv_HAVE_SECURE_MKSTEMP=yes
10362 else
10363 echo "configure: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 rm -fr conftest*
10366 samba_cv_HAVE_SECURE_MKSTEMP=no
10368 rm -fr conftest*
10373 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10374 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10375 cat >> confdefs.h <<\EOF
10376 #define HAVE_SECURE_MKSTEMP 1
10381 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10382 echo "configure:10383: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10383 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10385 else
10387 if test "$cross_compiling" = yes; then
10388 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10389 else
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10393 #include <unistd.h>
10394 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10397 then
10398 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10399 else
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10402 rm -fr conftest*
10403 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10405 rm -fr conftest*
10410 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10411 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10412 cat >> confdefs.h <<\EOF
10413 #define SYSCONF_SC_NGROUPS_MAX 1
10418 echo $ac_n "checking for root""... $ac_c" 1>&6
10419 echo "configure:10420: checking for root" >&5
10420 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10422 else
10424 if test "$cross_compiling" = yes; then
10425 samba_cv_HAVE_ROOT=cross
10426 else
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 main() { exit(getuid() != 0); }
10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10433 then
10434 samba_cv_HAVE_ROOT=yes
10435 else
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10438 rm -fr conftest*
10439 samba_cv_HAVE_ROOT=no
10441 rm -fr conftest*
10446 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10447 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE_ROOT 1
10452 else
10453 echo "configure: warning: running as non-root will disable some tests" 1>&2
10456 ##################
10457 # look for a method of finding the list of network interfaces
10458 iface=no;
10459 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10460 echo "configure:10461: checking for iface AIX" >&5
10461 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10463 else
10465 if test "$cross_compiling" = yes; then
10466 samba_cv_HAVE_IFACE_AIX=cross
10467 else
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10472 #define HAVE_IFACE_AIX 1
10473 #define AUTOCONF_TEST 1
10474 #include "confdefs.h"
10475 #include "${srcdir-.}/lib/interfaces.c"
10477 if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10478 then
10479 samba_cv_HAVE_IFACE_AIX=yes
10480 else
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10483 rm -fr conftest*
10484 samba_cv_HAVE_IFACE_AIX=no
10486 rm -fr conftest*
10491 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10492 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10493 iface=yes;cat >> confdefs.h <<\EOF
10494 #define HAVE_IFACE_AIX 1
10499 if test $iface = no; then
10500 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10501 echo "configure:10502: checking for iface ifconf" >&5
10502 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10504 else
10506 if test "$cross_compiling" = yes; then
10507 samba_cv_HAVE_IFACE_IFCONF=cross
10508 else
10509 cat > conftest.$ac_ext <<EOF
10510 #line 10511 "configure"
10511 #include "confdefs.h"
10513 #define HAVE_IFACE_IFCONF 1
10514 #define AUTOCONF_TEST 1
10515 #include "confdefs.h"
10516 #include "${srcdir-.}/lib/interfaces.c"
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10519 then
10520 samba_cv_HAVE_IFACE_IFCONF=yes
10521 else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -fr conftest*
10525 samba_cv_HAVE_IFACE_IFCONF=no
10527 rm -fr conftest*
10532 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10533 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10534 iface=yes;cat >> confdefs.h <<\EOF
10535 #define HAVE_IFACE_IFCONF 1
10541 if test $iface = no; then
10542 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10543 echo "configure:10544: checking for iface ifreq" >&5
10544 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546 else
10548 if test "$cross_compiling" = yes; then
10549 samba_cv_HAVE_IFACE_IFREQ=cross
10550 else
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10555 #define HAVE_IFACE_IFREQ 1
10556 #define AUTOCONF_TEST 1
10557 #include "confdefs.h"
10558 #include "${srcdir-.}/lib/interfaces.c"
10560 if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10561 then
10562 samba_cv_HAVE_IFACE_IFREQ=yes
10563 else
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 rm -fr conftest*
10567 samba_cv_HAVE_IFACE_IFREQ=no
10569 rm -fr conftest*
10574 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10575 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10576 iface=yes;cat >> confdefs.h <<\EOF
10577 #define HAVE_IFACE_IFREQ 1
10584 ################################################
10585 # look for a method of setting the effective uid
10586 seteuid=no;
10587 if test $seteuid = no; then
10588 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10589 echo "configure:10590: checking for setresuid" >&5
10590 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10594 if test "$cross_compiling" = yes; then
10595 samba_cv_USE_SETRESUID=cross
10596 else
10597 cat > conftest.$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10601 #define AUTOCONF_TEST 1
10602 #define USE_SETRESUID 1
10603 #include "confdefs.h"
10604 #include "${srcdir-.}/lib/util_sec.c"
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10607 then
10608 samba_cv_USE_SETRESUID=yes
10609 else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -fr conftest*
10613 samba_cv_USE_SETRESUID=no
10615 rm -fr conftest*
10620 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10621 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10622 seteuid=yes;cat >> confdefs.h <<\EOF
10623 #define USE_SETRESUID 1
10630 if test $seteuid = no; then
10631 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10632 echo "configure:10633: checking for setreuid" >&5
10633 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635 else
10637 if test "$cross_compiling" = yes; then
10638 samba_cv_USE_SETREUID=cross
10639 else
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10644 #define AUTOCONF_TEST 1
10645 #define USE_SETREUID 1
10646 #include "confdefs.h"
10647 #include "${srcdir-.}/lib/util_sec.c"
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10650 then
10651 samba_cv_USE_SETREUID=yes
10652 else
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -fr conftest*
10656 samba_cv_USE_SETREUID=no
10658 rm -fr conftest*
10663 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10664 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10665 seteuid=yes;cat >> confdefs.h <<\EOF
10666 #define USE_SETREUID 1
10672 if test $seteuid = no; then
10673 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10674 echo "configure:10675: checking for seteuid" >&5
10675 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10676 echo $ac_n "(cached) $ac_c" 1>&6
10677 else
10679 if test "$cross_compiling" = yes; then
10680 samba_cv_USE_SETEUID=cross
10681 else
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10686 #define AUTOCONF_TEST 1
10687 #define USE_SETEUID 1
10688 #include "confdefs.h"
10689 #include "${srcdir-.}/lib/util_sec.c"
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10692 then
10693 samba_cv_USE_SETEUID=yes
10694 else
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -fr conftest*
10698 samba_cv_USE_SETEUID=no
10700 rm -fr conftest*
10705 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10706 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10707 seteuid=yes;cat >> confdefs.h <<\EOF
10708 #define USE_SETEUID 1
10714 if test $seteuid = no; then
10715 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10716 echo "configure:10717: checking for setuidx" >&5
10717 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10719 else
10721 if test "$cross_compiling" = yes; then
10722 samba_cv_USE_SETUIDX=cross
10723 else
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10728 #define AUTOCONF_TEST 1
10729 #define USE_SETUIDX 1
10730 #include "confdefs.h"
10731 #include "${srcdir-.}/lib/util_sec.c"
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10734 then
10735 samba_cv_USE_SETUIDX=yes
10736 else
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 rm -fr conftest*
10740 samba_cv_USE_SETUIDX=no
10742 rm -fr conftest*
10747 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10748 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10749 seteuid=yes;cat >> confdefs.h <<\EOF
10750 #define USE_SETUIDX 1
10757 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10758 echo "configure:10759: checking for working mmap" >&5
10759 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10761 else
10763 if test "$cross_compiling" = yes; then
10764 samba_cv_HAVE_MMAP=cross
10765 else
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include "${srcdir-.}/tests/shared_mmap.c"
10771 if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10772 then
10773 samba_cv_HAVE_MMAP=yes
10774 else
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10777 rm -fr conftest*
10778 samba_cv_HAVE_MMAP=no
10780 rm -fr conftest*
10785 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10786 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10787 cat >> confdefs.h <<\EOF
10788 #define HAVE_MMAP 1
10793 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10794 echo "configure:10795: checking for ftruncate needs root" >&5
10795 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797 else
10799 if test "$cross_compiling" = yes; then
10800 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10801 else
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 #include "${srcdir-.}/tests/ftruncroot.c"
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10808 then
10809 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10810 else
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 rm -fr conftest*
10814 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10816 rm -fr conftest*
10821 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10822 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10823 cat >> confdefs.h <<\EOF
10824 #define FTRUNCATE_NEEDS_ROOT 1
10829 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10830 echo "configure:10831: checking for fcntl locking" >&5
10831 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_HAVE_FCNTL_LOCK=cross
10837 else
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841 #include "${srcdir-.}/tests/fcntl_lock.c"
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10844 then
10845 samba_cv_HAVE_FCNTL_LOCK=yes
10846 else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -fr conftest*
10850 samba_cv_HAVE_FCNTL_LOCK=no
10852 rm -fr conftest*
10857 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10858 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10859 cat >> confdefs.h <<\EOF
10860 #define HAVE_FCNTL_LOCK 1
10865 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10866 echo "configure:10867: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10867 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10869 else
10871 if test "$cross_compiling" = yes; then
10872 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10873 else
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 #include "${srcdir-.}/tests/fcntl_lock64.c"
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10880 then
10881 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10882 else
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10885 rm -fr conftest*
10886 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10888 rm -fr conftest*
10893 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10894 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10895 cat >> confdefs.h <<\EOF
10896 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10900 else
10903 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10904 echo "configure:10905: checking for 64 bit fcntl locking" >&5
10905 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10907 else
10909 if test "$cross_compiling" = yes; then
10910 samba_cv_HAVE_STRUCT_FLOCK64=cross
10911 else
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10916 #if defined(HAVE_UNISTD_H)
10917 #include <unistd.h>
10918 #endif
10919 #include <stdio.h>
10920 #include <stdlib.h>
10922 #ifdef HAVE_FCNTL_H
10923 #include <fcntl.h>
10924 #endif
10926 #ifdef HAVE_SYS_FCNTL_H
10927 #include <sys/fcntl.h>
10928 #endif
10929 main() { struct flock64 fl64;
10930 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10931 exit(0);
10932 #else
10933 exit(1);
10934 #endif
10937 if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10938 then
10939 samba_cv_HAVE_STRUCT_FLOCK64=yes
10940 else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 rm -fr conftest*
10944 samba_cv_HAVE_STRUCT_FLOCK64=no
10946 rm -fr conftest*
10951 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10953 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10954 cat >> confdefs.h <<\EOF
10955 #define HAVE_STRUCT_FLOCK64 1
10961 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10962 echo "configure:10963: checking for a crypt that needs truncated salt" >&5
10963 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10965 else
10967 if test "$cross_compiling" = yes; then
10968 samba_cv_HAVE_TRUNCATED_SALT=cross
10969 else
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 #include "${srcdir-.}/tests/crypttest.c"
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10976 then
10977 samba_cv_HAVE_TRUNCATED_SALT=no
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -fr conftest*
10982 samba_cv_HAVE_TRUNCATED_SALT=yes
10984 rm -fr conftest*
10989 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10990 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_TRUNCATED_SALT 1
10997 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10998 echo "configure:10999: checking for broken nisplus include files" >&5
10999 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11001 else
11003 cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 #include <sys/acl.h>
11007 #if defined(HAVE_RPCSVC_NIS_H)
11008 #include <rpcsvc/nis.h>
11009 #endif
11010 int main() {
11011 return 0;
11012 ; return 0; }
11014 if { (eval echo configure:11015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11015 rm -rf conftest*
11016 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11017 else
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11023 rm -f conftest*
11026 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11027 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11028 cat >> confdefs.h <<\EOF
11029 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11035 #################################################
11036 # check for smbwrapper support
11037 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11038 echo "configure:11039: checking whether to use smbwrapper" >&5
11039 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11040 if test "${with_smbwrapper+set}" = set; then
11041 withval="$with_smbwrapper"
11042 case "$withval" in
11043 yes)
11044 echo "$ac_t""yes" 1>&6
11045 cat >> confdefs.h <<\EOF
11046 #define WITH_SMBWRAPPER 1
11049 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11051 if test x$ATTEMPT_WRAP32_BUILD = x; then
11052 WRAP32=""
11053 else
11054 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11057 # Conditions under which smbwrapper should not be built.
11059 if test x$PICFLAG = x; then
11060 echo No support for PIC code - disabling smbwrapper and smbsh
11061 WRAP=""
11062 WRAP32=""
11063 elif test x$ac_cv_func_syscall = xno; then
11064 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11065 WRAP=""
11066 WRAP32=""
11070 echo "$ac_t""no" 1>&6
11072 esac
11073 else
11074 echo "$ac_t""no" 1>&6
11079 #################################################
11080 # check for the AFS filesystem
11081 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11082 echo "configure:11083: checking whether to use AFS" >&5
11083 # Check whether --with-afs or --without-afs was given.
11084 if test "${with_afs+set}" = set; then
11085 withval="$with_afs"
11086 case "$withval" in
11087 yes)
11088 echo "$ac_t""yes" 1>&6
11089 cat >> confdefs.h <<\EOF
11090 #define WITH_AFS 1
11095 echo "$ac_t""no" 1>&6
11097 esac
11098 else
11099 echo "$ac_t""no" 1>&6
11105 #################################################
11106 # check for the DFS auth system
11107 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11108 echo "configure:11109: checking whether to use DFS auth" >&5
11109 # Check whether --with-dfs or --without-dfs was given.
11110 if test "${with_dfs+set}" = set; then
11111 withval="$with_dfs"
11112 case "$withval" in
11113 yes)
11114 echo "$ac_t""yes" 1>&6
11115 cat >> confdefs.h <<\EOF
11116 #define WITH_DFS 1
11121 echo "$ac_t""no" 1>&6
11123 esac
11124 else
11125 echo "$ac_t""no" 1>&6
11130 #################################################
11131 # check for Kerberos IV auth system
11132 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11133 echo "configure:11134: checking whether to use Kerberos IV" >&5
11134 # Check whether --with-krb4 or --without-krb4 was given.
11135 if test "${with_krb4+set}" = set; then
11136 withval="$with_krb4"
11137 echo "$ac_t""yes" 1>&6
11138 cat >> confdefs.h <<\EOF
11139 #define KRB4_AUTH 1
11142 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11143 echo "configure:11144: checking for dn_expand in -lresolv" >&5
11144 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11147 else
11148 ac_save_LIBS="$LIBS"
11149 LIBS="-lresolv $LIBS"
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11153 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char dn_expand();
11158 int main() {
11159 dn_expand()
11160 ; return 0; }
11162 if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11163 rm -rf conftest*
11164 eval "ac_cv_lib_$ac_lib_var=yes"
11165 else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -rf conftest*
11169 eval "ac_cv_lib_$ac_lib_var=no"
11171 rm -f conftest*
11172 LIBS="$ac_save_LIBS"
11175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11176 echo "$ac_t""yes" 1>&6
11177 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11179 cat >> confdefs.h <<EOF
11180 #define $ac_tr_lib 1
11183 LIBS="-lresolv $LIBS"
11185 else
11186 echo "$ac_t""no" 1>&6
11189 LIBS="$LIBS -lkrb -ldes"
11190 CFLAGS="$CFLAGS -I$withval/include"
11191 LDFLAGS="$LDFLAGS -L$withval/lib"
11192 else
11193 echo "$ac_t""no" 1>&6
11198 #################################################
11199 # check for Kerberos 5 auth system
11200 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11201 echo "configure:11202: checking whether to use Kerberos 5" >&5
11202 # Check whether --with-krb5 or --without-krb5 was given.
11203 if test "${with_krb5+set}" = set; then
11204 withval="$with_krb5"
11205 echo "$ac_t""yes" 1>&6
11206 cat >> confdefs.h <<\EOF
11207 #define KRB5_AUTH 1
11210 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11211 CFLAGS="$CFLAGS -I$withval/include"
11212 LDFLAGS="$LDFLAGS -L$withval/lib"
11213 else
11214 echo "$ac_t""no" 1>&6
11219 #################################################
11220 # check for automount support
11221 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11222 echo "configure:11223: checking whether to use AUTOMOUNT" >&5
11223 # Check whether --with-automount or --without-automount was given.
11224 if test "${with_automount+set}" = set; then
11225 withval="$with_automount"
11226 case "$withval" in
11227 yes)
11228 echo "$ac_t""yes" 1>&6
11229 cat >> confdefs.h <<\EOF
11230 #define WITH_AUTOMOUNT 1
11235 echo "$ac_t""no" 1>&6
11237 esac
11238 else
11239 echo "$ac_t""no" 1>&6
11244 #################################################
11245 # check for smbmount support
11246 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11247 echo "configure:11248: checking whether to use SMBMOUNT" >&5
11248 # Check whether --with-smbmount or --without-smbmount was given.
11249 if test "${with_smbmount+set}" = set; then
11250 withval="$with_smbmount"
11251 case "$withval" in
11252 yes)
11253 echo "$ac_t""yes" 1>&6
11254 cat >> confdefs.h <<\EOF
11255 #define WITH_SMBMOUNT 1
11258 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11261 echo "$ac_t""no" 1>&6
11262 MPROGS=
11264 esac
11265 else
11266 echo "$ac_t""no" 1>&6
11267 MPROGS=
11273 #################################################
11274 # check for a PAM password database
11275 with_pam_for_crypt=no
11276 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11277 echo "configure:11278: checking whether to use PAM password database" >&5
11278 # Check whether --with-pam or --without-pam was given.
11279 if test "${with_pam+set}" = set; then
11280 withval="$with_pam"
11281 case "$withval" in
11282 yes)
11283 echo "$ac_t""yes" 1>&6
11284 cat >> confdefs.h <<\EOF
11285 #define WITH_PAM 1
11288 LIBS="$LIBS -lpam"
11289 with_pam_for_crypt=yes
11292 echo "$ac_t""no" 1>&6
11294 esac
11295 else
11296 echo "$ac_t""no" 1>&6
11301 # we can't build a pam module if we don't have pam.
11302 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11303 echo "configure:11304: checking for pam_get_data in -lpam" >&5
11304 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11307 else
11308 ac_save_LIBS="$LIBS"
11309 LIBS="-lpam $LIBS"
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 /* Override any gcc2 internal prototype to avoid an error. */
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11316 char pam_get_data();
11318 int main() {
11319 pam_get_data()
11320 ; return 0; }
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11323 rm -rf conftest*
11324 eval "ac_cv_lib_$ac_lib_var=yes"
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -rf conftest*
11329 eval "ac_cv_lib_$ac_lib_var=no"
11331 rm -f conftest*
11332 LIBS="$ac_save_LIBS"
11335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 cat >> confdefs.h <<\EOF
11338 #define HAVE_LIBPAM 1
11341 else
11342 echo "$ac_t""no" 1>&6
11346 #################################################
11347 # check for pam_smbpass support
11348 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11349 echo "configure:11350: checking whether to use pam_smbpass" >&5
11350 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11351 if test "${with_pam_smbpass+set}" = set; then
11352 withval="$with_pam_smbpass"
11353 case "$withval" in
11354 yes)
11355 echo "$ac_t""yes" 1>&6
11357 # Conditions under which pam_smbpass should not be built.
11359 if test x$PICFLAG = x; then
11360 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11361 PAM_MOD=""
11362 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11363 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11364 PAM_MOD=""
11365 else
11366 cat >> confdefs.h <<\EOF
11367 #define WITH_PAM_SMBPASS 1
11370 PAM_MOD="bin/pam_smbpass.so"
11374 echo "$ac_t""no" 1>&6
11376 esac
11377 else
11378 echo "$ac_t""no" 1>&6
11384 ###############################################
11385 # test for where we get crypt() from, but only
11386 # if not using PAM
11387 if test $with_pam_for_crypt = no; then
11388 for ac_func in crypt
11390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11391 echo "configure:11392: checking for $ac_func" >&5
11392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11394 else
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func(); below. */
11400 #include <assert.h>
11401 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11404 char $ac_func();
11406 int main() {
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11412 choke me
11413 #else
11414 $ac_func();
11415 #endif
11417 ; return 0; }
11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 rm -rf conftest*
11421 eval "ac_cv_func_$ac_func=yes"
11422 else
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 rm -rf conftest*
11426 eval "ac_cv_func_$ac_func=no"
11428 rm -f conftest*
11431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11432 echo "$ac_t""yes" 1>&6
11433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11434 cat >> confdefs.h <<EOF
11435 #define $ac_tr_func 1
11438 else
11439 echo "$ac_t""no" 1>&6
11441 done
11443 if test x"$ac_cv_func_crypt" = x"no"; then
11444 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11445 echo "configure:11446: checking for crypt in -lcrypt" >&5
11446 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11450 ac_save_LIBS="$LIBS"
11451 LIBS="-lcrypt $LIBS"
11452 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455 /* Override any gcc2 internal prototype to avoid an error. */
11456 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11458 char crypt();
11460 int main() {
11461 crypt()
11462 ; return 0; }
11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11465 rm -rf conftest*
11466 eval "ac_cv_lib_$ac_lib_var=yes"
11467 else
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 rm -rf conftest*
11471 eval "ac_cv_lib_$ac_lib_var=no"
11473 rm -f conftest*
11474 LIBS="$ac_save_LIBS"
11477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11478 echo "$ac_t""yes" 1>&6
11479 LIBS="$LIBS -lcrypt";
11480 cat >> confdefs.h <<\EOF
11481 #define HAVE_CRYPT 1
11484 else
11485 echo "$ac_t""no" 1>&6
11492 #################################################
11493 # check for a TDB password database
11494 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11495 echo "configure:11496: checking whether to use TDB password database" >&5
11496 # Check whether --with-tdbsam or --without-tdbsam was given.
11497 if test "${with_tdbsam+set}" = set; then
11498 withval="$with_tdbsam"
11499 case "$withval" in
11500 yes)
11501 echo "$ac_t""yes" 1>&6
11502 cat >> confdefs.h <<\EOF
11503 #define WITH_TDBPWD 1
11506 # AC_MSG_ERROR([TDB password database not supported in this version.])
11509 echo "$ac_t""no" 1>&6
11511 esac
11512 else
11513 echo "$ac_t""no" 1>&6
11518 #################################################
11519 # check for a LDAP password database
11520 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11521 echo "configure:11522: checking whether to use LDAP password database" >&5
11522 # Check whether --with-ldap or --without-ldap was given.
11523 if test "${with_ldap+set}" = set; then
11524 withval="$with_ldap"
11525 case "$withval" in
11526 yes)
11527 echo "$ac_t""yes" 1>&6
11528 cat >> confdefs.h <<\EOF
11529 #define WITH_LDAP 1
11532 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11535 echo "$ac_t""no" 1>&6
11537 esac
11538 else
11539 echo "$ac_t""no" 1>&6
11544 #################################################
11545 # check for a NISPLUS password database
11546 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11547 echo "configure:11548: checking whether to use NISPLUS password database" >&5
11548 # Check whether --with-nisplus or --without-nisplus was given.
11549 if test "${with_nisplus+set}" = set; then
11550 withval="$with_nisplus"
11551 case "$withval" in
11552 yes)
11553 echo "$ac_t""yes" 1>&6
11554 cat >> confdefs.h <<\EOF
11555 #define WITH_NISPLUS 1
11560 echo "$ac_t""no" 1>&6
11562 esac
11563 else
11564 echo "$ac_t""no" 1>&6
11569 #################################################
11570 # check for a NISPLUS_HOME support
11571 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11572 echo "configure:11573: checking whether to use NISPLUS_HOME" >&5
11573 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11574 if test "${with_nisplus_home+set}" = set; then
11575 withval="$with_nisplus_home"
11576 case "$withval" in
11577 yes)
11578 echo "$ac_t""yes" 1>&6
11579 cat >> confdefs.h <<\EOF
11580 #define WITH_NISPLUS_HOME 1
11585 echo "$ac_t""no" 1>&6
11587 esac
11588 else
11589 echo "$ac_t""no" 1>&6
11594 #################################################
11595 # check for the secure socket layer
11596 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11597 echo "configure:11598: checking whether to use SSL" >&5
11598 # Check whether --with-ssl or --without-ssl was given.
11599 if test "${with_ssl+set}" = set; then
11600 withval="$with_ssl"
11601 case "$withval" in
11602 yes)
11603 echo "$ac_t""yes" 1>&6
11604 cat >> confdefs.h <<\EOF
11605 #define WITH_SSL 1
11608 withval="/usr/local/ssl" # default
11610 if test "${with_sslinc+set}" = set; then
11612 withval="$with_sslinc"
11613 case "$withval" in
11614 yes|no)
11615 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11616 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11617 LIBS="-lssl -lcrypto $LIBS"
11618 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11621 CFLAGS="-I${withval}/include $CFLAGS"
11622 LIBS="-lssl -lcrypto $LIBS"
11623 LDFLAGS="-L${withval}/lib $LDFLAGS"
11625 esac
11627 else
11629 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11630 LIBS="-lssl -lcrypto $LIBS"
11631 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11635 if test ! -d ${withval}; then
11636 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11637 exit 1
11640 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11644 echo "$ac_t""no" 1>&6
11646 esac
11647 else
11648 echo "$ac_t""no" 1>&6
11653 #################################################
11654 # check for syslog logging
11655 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11656 echo "configure:11657: checking whether to use syslog logging" >&5
11657 # Check whether --with-syslog or --without-syslog was given.
11658 if test "${with_syslog+set}" = set; then
11659 withval="$with_syslog"
11660 case "$withval" in
11661 yes)
11662 echo "$ac_t""yes" 1>&6
11663 cat >> confdefs.h <<\EOF
11664 #define WITH_SYSLOG 1
11669 echo "$ac_t""no" 1>&6
11671 esac
11672 else
11673 echo "$ac_t""no" 1>&6
11678 #################################################
11679 # check for a shared memory profiling support
11680 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11681 echo "configure:11682: checking whether to use profiling" >&5
11682 # Check whether --with-profile or --without-profile was given.
11683 if test "${with_profile+set}" = set; then
11684 withval="$with_profile"
11685 case "$withval" in
11686 yes)
11687 echo "$ac_t""yes" 1>&6
11688 cat >> confdefs.h <<\EOF
11689 #define WITH_PROFILE 1
11694 echo "$ac_t""no" 1>&6
11696 esac
11697 else
11698 echo "$ac_t""no" 1>&6
11704 #################################################
11705 # check for experimental netatalk resource fork support
11706 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11707 echo "configure:11708: checking whether to support netatalk" >&5
11708 # Check whether --with-netatalk or --without-netatalk was given.
11709 if test "${with_netatalk+set}" = set; then
11710 withval="$with_netatalk"
11711 case "$withval" in
11712 yes)
11713 echo "$ac_t""yes" 1>&6
11714 cat >> confdefs.h <<\EOF
11715 #define WITH_NETATALK 1
11720 echo "$ac_t""no" 1>&6
11722 esac
11723 else
11724 echo "$ac_t""no" 1>&6
11729 #################################################
11730 # check for experimental disk-quotas support
11731 QUOTAOBJS=smbd/noquotas.o
11733 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11734 echo "configure:11735: checking whether to support disk-quotas" >&5
11735 # Check whether --with-quotas or --without-quotas was given.
11736 if test "${with_quotas+set}" = set; then
11737 withval="$with_quotas"
11738 case "$withval" in
11739 yes)
11740 echo "$ac_t""yes" 1>&6
11741 QUOTAOBJS=smbd/quotas.o
11744 echo "$ac_t""no" 1>&6
11746 esac
11747 else
11748 echo "$ac_t""no" 1>&6
11754 #################################################
11755 # check for experimental utmp accounting
11757 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11758 echo "configure:11759: checking whether to support utmp accounting" >&5
11759 # Check whether --with-utmp or --without-utmp was given.
11760 if test "${with_utmp+set}" = set; then
11761 withval="$with_utmp"
11762 case "$withval" in
11763 yes)
11764 echo "$ac_t""yes" 1>&6
11765 cat >> confdefs.h <<\EOF
11766 #define WITH_UTMP 1
11771 echo "$ac_t""no" 1>&6
11773 esac
11774 else
11775 echo "$ac_t""no" 1>&6
11780 #################################################
11781 # check for MS Dfs support
11783 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11784 echo "configure:11785: checking whether to support Microsoft Dfs" >&5
11785 # Check whether --with-msdfs or --without-msdfs was given.
11786 if test "${with_msdfs+set}" = set; then
11787 withval="$with_msdfs"
11788 case "$withval" in
11789 yes)
11790 echo "$ac_t""yes" 1>&6
11791 cat >> confdefs.h <<\EOF
11792 #define WITH_MSDFS 1
11797 echo "$ac_t""no" 1>&6
11799 esac
11800 else
11801 echo "$ac_t""no" 1>&6
11806 #################################################
11807 # set private directory location
11808 # Check whether --with-privatedir or --without-privatedir was given.
11809 if test "${with_privatedir+set}" = set; then
11810 withval="$with_privatedir"
11811 case "$withval" in
11812 yes|no)
11814 # Just in case anybody calls it without argument
11816 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11817 privatedir='${prefix}/private'
11820 privatedir="$withval"
11822 esac
11824 else
11825 privatedir='${prefix}/private'
11831 #################################################
11832 # set lock directory location
11833 # Check whether --with-lockdir or --without-lockdir was given.
11834 if test "${with_lockdir+set}" = set; then
11835 withval="$with_lockdir"
11836 case "$withval" in
11837 yes|no)
11839 # Just in case anybody calls it without argument
11841 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11842 lockdir='$(VARDIR)/locks'
11845 lockdir="$withval"
11847 esac
11849 else
11850 lockdir='$(VARDIR)/locks'
11856 #################################################
11857 # set SWAT directory location
11858 # Check whether --with-swatdir or --without-swatdir was given.
11859 if test "${with_swatdir+set}" = set; then
11860 withval="$with_swatdir"
11861 case "$withval" in
11862 yes|no)
11864 # Just in case anybody does it
11866 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11867 swatdir='${prefix}/swat'
11870 swatdir="$withval"
11872 esac
11874 else
11875 swatdir='${prefix}/swat'
11881 #################################################
11882 # these tests are taken from the GNU fileutils package
11883 echo "checking how to get filesystem space usage" 1>&6
11884 echo "configure:11885: checking how to get filesystem space usage" >&5
11885 space=no
11887 # Test for statvfs64.
11888 if test $space = no; then
11889 # SVR4
11890 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11891 echo "configure:11892: checking statvfs64 function (SVR4)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_statvfs64=cross
11897 else
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11902 #if defined(HAVE_UNISTD_H)
11903 #include <unistd.h>
11904 #endif
11905 #include <sys/types.h>
11906 #include <sys/statvfs.h>
11907 main ()
11909 struct statvfs64 fsd;
11910 exit (statvfs64 (".", &fsd));
11913 if { (eval echo configure:11914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11914 then
11915 fu_cv_sys_stat_statvfs64=yes
11916 else
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 rm -fr conftest*
11920 fu_cv_sys_stat_statvfs64=no
11922 rm -fr conftest*
11927 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11928 if test $fu_cv_sys_stat_statvfs64 = yes; then
11929 space=yes
11930 cat >> confdefs.h <<\EOF
11931 #define STAT_STATVFS64 1
11937 # Perform only the link test since it seems there are no variants of the
11938 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11939 # because that got a false positive on SCO OSR5. Adding the declaration
11940 # of a `struct statvfs' causes this test to fail (as it should) on such
11941 # systems. That system is reported to work fine with STAT_STATFS4 which
11942 # is what it gets when this test fails.
11943 if test $space = no; then
11944 # SVR4
11945 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11946 echo "configure:11947: checking statvfs function (SVR4)" >&5
11947 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
11949 else
11950 cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953 #include <sys/types.h>
11954 #include <sys/statvfs.h>
11955 int main() {
11956 struct statvfs fsd; statvfs (0, &fsd);
11957 ; return 0; }
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 rm -rf conftest*
11961 fu_cv_sys_stat_statvfs=yes
11962 else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 fu_cv_sys_stat_statvfs=no
11968 rm -f conftest*
11971 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11972 if test $fu_cv_sys_stat_statvfs = yes; then
11973 space=yes
11974 cat >> confdefs.h <<\EOF
11975 #define STAT_STATVFS 1
11981 if test $space = no; then
11982 # DEC Alpha running OSF/1
11983 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11984 echo "configure:11985: checking for 3-argument statfs function (DEC OSF/1)" >&5
11985 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 fu_cv_sys_stat_statfs3_osf1=no
11990 else
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11995 #include <sys/param.h>
11996 #include <sys/types.h>
11997 #include <sys/mount.h>
11998 main ()
12000 struct statfs fsd;
12001 fsd.f_fsize = 0;
12002 exit (statfs (".", &fsd, sizeof (struct statfs)));
12005 if { (eval echo configure:12006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12006 then
12007 fu_cv_sys_stat_statfs3_osf1=yes
12008 else
12009 echo "configure: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12011 rm -fr conftest*
12012 fu_cv_sys_stat_statfs3_osf1=no
12014 rm -fr conftest*
12019 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12020 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12021 space=yes
12022 cat >> confdefs.h <<\EOF
12023 #define STAT_STATFS3_OSF1 1
12029 if test $space = no; then
12030 # AIX
12031 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12032 echo "configure:12033: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12033 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035 else
12036 if test "$cross_compiling" = yes; then
12037 fu_cv_sys_stat_statfs2_bsize=no
12038 else
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12043 #ifdef HAVE_SYS_PARAM_H
12044 #include <sys/param.h>
12045 #endif
12046 #ifdef HAVE_SYS_MOUNT_H
12047 #include <sys/mount.h>
12048 #endif
12049 #ifdef HAVE_SYS_VFS_H
12050 #include <sys/vfs.h>
12051 #endif
12052 main ()
12054 struct statfs fsd;
12055 fsd.f_bsize = 0;
12056 exit (statfs (".", &fsd));
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12060 then
12061 fu_cv_sys_stat_statfs2_bsize=yes
12062 else
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12065 rm -fr conftest*
12066 fu_cv_sys_stat_statfs2_bsize=no
12068 rm -fr conftest*
12073 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12074 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12075 space=yes
12076 cat >> confdefs.h <<\EOF
12077 #define STAT_STATFS2_BSIZE 1
12083 if test $space = no; then
12084 # SVR3
12085 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12086 echo "configure:12087: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12087 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12089 else
12090 if test "$cross_compiling" = yes; then
12091 fu_cv_sys_stat_statfs4=no
12092 else
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <sys/types.h>
12097 #include <sys/statfs.h>
12098 main ()
12100 struct statfs fsd;
12101 exit (statfs (".", &fsd, sizeof fsd, 0));
12104 if { (eval echo configure:12105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12105 then
12106 fu_cv_sys_stat_statfs4=yes
12107 else
12108 echo "configure: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 rm -fr conftest*
12111 fu_cv_sys_stat_statfs4=no
12113 rm -fr conftest*
12118 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12119 if test $fu_cv_sys_stat_statfs4 = yes; then
12120 space=yes
12121 cat >> confdefs.h <<\EOF
12122 #define STAT_STATFS4 1
12128 if test $space = no; then
12129 # 4.4BSD and NetBSD
12130 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12131 echo "configure:12132: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12132 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134 else
12135 if test "$cross_compiling" = yes; then
12136 fu_cv_sys_stat_statfs2_fsize=no
12137 else
12138 cat > conftest.$ac_ext <<EOF
12139 #line 12140 "configure"
12140 #include "confdefs.h"
12141 #include <sys/types.h>
12142 #ifdef HAVE_SYS_PARAM_H
12143 #include <sys/param.h>
12144 #endif
12145 #ifdef HAVE_SYS_MOUNT_H
12146 #include <sys/mount.h>
12147 #endif
12148 main ()
12150 struct statfs fsd;
12151 fsd.f_fsize = 0;
12152 exit (statfs (".", &fsd));
12155 if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12156 then
12157 fu_cv_sys_stat_statfs2_fsize=yes
12158 else
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -fr conftest*
12162 fu_cv_sys_stat_statfs2_fsize=no
12164 rm -fr conftest*
12169 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12170 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12171 space=yes
12172 cat >> confdefs.h <<\EOF
12173 #define STAT_STATFS2_FSIZE 1
12179 if test $space = no; then
12180 # Ultrix
12181 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12182 echo "configure:12183: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12183 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
12185 else
12186 if test "$cross_compiling" = yes; then
12187 fu_cv_sys_stat_fs_data=no
12188 else
12189 cat > conftest.$ac_ext <<EOF
12190 #line 12191 "configure"
12191 #include "confdefs.h"
12192 #include <sys/types.h>
12193 #ifdef HAVE_SYS_PARAM_H
12194 #include <sys/param.h>
12195 #endif
12196 #ifdef HAVE_SYS_MOUNT_H
12197 #include <sys/mount.h>
12198 #endif
12199 #ifdef HAVE_SYS_FS_TYPES_H
12200 #include <sys/fs_types.h>
12201 #endif
12202 main ()
12204 struct fs_data fsd;
12205 /* Ultrix's statfs returns 1 for success,
12206 0 for not mounted, -1 for failure. */
12207 exit (statfs (".", &fsd) != 1);
12210 if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12211 then
12212 fu_cv_sys_stat_fs_data=yes
12213 else
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 rm -fr conftest*
12217 fu_cv_sys_stat_fs_data=no
12219 rm -fr conftest*
12224 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12225 if test $fu_cv_sys_stat_fs_data = yes; then
12226 space=yes
12227 cat >> confdefs.h <<\EOF
12228 #define STAT_STATFS2_FS_DATA 1
12235 # As a gating factor for large file support, in order to
12236 # use <4GB files we must have the following minimal support
12237 # available.
12238 # long long, and a 64 bit off_t or off64_t.
12239 # If we don't have all of these then disable large
12240 # file support.
12242 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12243 echo "configure:12244: checking if large file support can be enabled" >&5
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12248 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12249 #include <sys/types.h>
12250 #else
12251 __COMPILE_ERROR_
12252 #endif
12254 int main() {
12255 int i
12256 ; return 0; }
12258 if { (eval echo configure:12259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12259 rm -rf conftest*
12260 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12261 else
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12267 rm -f conftest*
12268 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12269 cat >> confdefs.h <<\EOF
12270 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12274 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12276 # Check whether --with-spinlocks or --without-spinlocks was given.
12277 if test "${with_spinlocks+set}" = set; then
12278 withval="$with_spinlocks"
12282 if test "x$with_spinlocks" = "xyes"; then
12283 cat >> confdefs.h <<\EOF
12284 #define USE_SPINLOCKS 1
12288 case "$host_cpu" in
12289 sparc)
12290 cat >> confdefs.h <<\EOF
12291 #define SPARC_SPINLOCKS 1
12296 i386|i486|i586|i686)
12297 cat >> confdefs.h <<\EOF
12298 #define INTEL_SPINLOCKS 1
12303 mips)
12304 cat >> confdefs.h <<\EOF
12305 #define MIPS_SPINLOCKS 1
12310 powerpc)
12311 cat >> confdefs.h <<\EOF
12312 #define POWERPC_SPINLOCKS 1
12316 esac
12319 #################################################
12320 # check for ACL support
12322 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12323 echo "configure:12324: checking whether to support ACLs" >&5
12324 # Check whether --with-acl-support or --without-acl-support was given.
12325 if test "${with_acl_support+set}" = set; then
12326 withval="$with_acl_support"
12327 case "$withval" in
12328 yes)
12330 case "$host_os" in
12331 *sysv5*)
12332 echo "$ac_t""Using UnixWare ACLs" 1>&6
12333 cat >> confdefs.h <<\EOF
12334 #define HAVE_UNIXWARE_ACLS 1
12338 *solaris*)
12339 echo "$ac_t""Using solaris ACLs" 1>&6
12340 cat >> confdefs.h <<\EOF
12341 #define HAVE_SOLARIS_ACLS 1
12345 *irix*)
12346 echo "$ac_t""Using IRIX ACLs" 1>&6
12347 cat >> confdefs.h <<\EOF
12348 #define HAVE_IRIX_ACLS 1
12352 *aix*)
12353 echo "$ac_t""Using AIX ACLs" 1>&6
12354 cat >> confdefs.h <<\EOF
12355 #define HAVE_AIX_ACLS 1
12360 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12361 echo "configure:12362: checking for acl_get_file in -lacl" >&5
12362 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12365 else
12366 ac_save_LIBS="$LIBS"
12367 LIBS="-lacl $LIBS"
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12374 char acl_get_file();
12376 int main() {
12377 acl_get_file()
12378 ; return 0; }
12380 if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12381 rm -rf conftest*
12382 eval "ac_cv_lib_$ac_lib_var=yes"
12383 else
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 rm -rf conftest*
12387 eval "ac_cv_lib_$ac_lib_var=no"
12389 rm -f conftest*
12390 LIBS="$ac_save_LIBS"
12393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12397 cat >> confdefs.h <<EOF
12398 #define $ac_tr_lib 1
12401 LIBS="-lacl $LIBS"
12403 else
12404 echo "$ac_t""no" 1>&6
12407 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12408 echo "configure:12409: checking for ACL support" >&5
12409 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12411 else
12413 cat > conftest.$ac_ext <<EOF
12414 #line 12415 "configure"
12415 #include "confdefs.h"
12416 #include <sys/types.h>
12417 #include <sys/acl.h>
12418 int main() {
12419 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12420 ; return 0; }
12422 if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12423 rm -rf conftest*
12424 samba_cv_HAVE_POSIX_ACLS=yes
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429 samba_cv_HAVE_POSIX_ACLS=no
12431 rm -f conftest*
12434 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12435 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12436 echo "$ac_t""Using posix ACLs" 1>&6
12437 cat >> confdefs.h <<\EOF
12438 #define HAVE_POSIX_ACLS 1
12441 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12442 echo "configure:12443: checking for acl_get_perm_np" >&5
12443 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445 else
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 #include <sys/types.h>
12451 #include <sys/acl.h>
12452 int main() {
12453 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12454 ; return 0; }
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12457 rm -rf conftest*
12458 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12459 else
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12462 rm -rf conftest*
12463 samba_cv_HAVE_ACL_GET_PERM_NP=no
12465 rm -f conftest*
12468 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12469 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12470 cat >> confdefs.h <<\EOF
12471 #define HAVE_ACL_GET_PERM_NP 1
12476 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12477 echo "configure:12478: checking for XFS ACL support" >&5
12478 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12482 cat > conftest.$ac_ext <<EOF
12483 #line 12484 "configure"
12484 #include "confdefs.h"
12485 #include <sys/types.h>
12486 #include <acl/acl.h>
12487 int main() {
12488 char test_str[13] = SGI_ACL_FILE;
12489 ; return 0; }
12491 if { (eval echo configure:12492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12492 rm -rf conftest*
12493 samba_cv_HAVE_XFS_ACLS=yes
12494 else
12495 echo "configure: failed program was:" >&5
12496 cat conftest.$ac_ext >&5
12497 rm -rf conftest*
12498 samba_cv_XFS_POSIX_ACLS=no
12500 rm -f conftest*
12503 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12504 if test x"$samba_cv_HAVE_XFS_ACLS" = x"yes"; then
12505 echo "$ac_t""Using XFS ACLs" 1>&6
12506 cat >> confdefs.h <<\EOF
12507 #define HAVE_XFS_ACLS 1
12512 esac
12515 echo "$ac_t""no" 1>&6
12516 cat >> confdefs.h <<\EOF
12517 #define HAVE_NO_ACLS 1
12521 esac
12522 else
12523 cat >> confdefs.h <<\EOF
12524 #define HAVE_NO_ACLS 1
12527 echo "$ac_t""no" 1>&6
12532 #################################################
12533 # check whether winbind is supported on this platform
12535 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12536 echo "configure:12537: checking whether to compile winbind" >&5
12537 case "$host_os" in
12538 *linux*|*solaris*)
12539 echo "$ac_t""yes" 1>&6
12540 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12543 echo "$ac_t""unsupported for $host_os" 1>&6
12545 esac
12549 #################################################
12550 # final configure stuff
12552 echo "checking configure summary"
12553 if test "$cross_compiling" = yes; then
12555 else
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12558 "configure"
12558 #include "confdefs.h"
12559 #include "${srcdir-.}/tests/summary.c"
12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12562 then
12563 echo "configure OK";
12564 else
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 rm -fr conftest*
12568 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12570 rm -fr conftest*
12574 builddir=`pwd`
12577 trap '' 1 2 15
12578 cat > confcache <<\EOF
12579 # This file is a shell script that caches the results of configure
12580 # tests run on this system so they can be shared between configure
12581 # scripts and configure runs. It is not useful on other systems.
12582 # If it contains results you don't want to keep, you may remove or edit it.
12584 # By default, configure uses ./config.cache as the cache file,
12585 # creating it if it does not exist already. You can give configure
12586 # the --cache-file=FILE option to use a different cache file; that is
12587 # what configure does when it calls configure scripts in
12588 # subdirectories, so they share the cache.
12589 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12590 # config.status only pays attention to the cache file if you give it the
12591 # --recheck option to rerun configure.
12594 # The following way of writing the cache mishandles newlines in values,
12595 # but we know of no workaround that is simple, portable, and efficient.
12596 # So, don't put newlines in cache variables' values.
12597 # Ultrix sh set writes to stderr and can't be redirected directly,
12598 # and sets the high bit in the cache file unless we assign to the vars.
12599 (set) 2>&1 |
12600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12601 *ac_space=\ *)
12602 # `set' does not quote correctly, so add quotes (double-quote substitution
12603 # turns \\\\ into \\, and sed turns \\ into \).
12604 sed -n \
12605 -e "s/'/'\\\\''/g" \
12606 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12609 # `set' quotes correctly as required by POSIX, so do not add quotes.
12610 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12612 esac >> confcache
12613 if cmp -s $cache_file confcache; then
12615 else
12616 if test -w $cache_file; then
12617 echo "updating cache $cache_file"
12618 cat confcache > $cache_file
12619 else
12620 echo "not updating unwritable cache $cache_file"
12623 rm -f confcache
12625 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12628 # Let make expand exec_prefix.
12629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12631 # Any assignment to VPATH causes Sun make to only execute
12632 # the first set of double-colon rules, so remove it if not needed.
12633 # If there is a colon in the path, we need to keep it.
12634 if test "x$srcdir" = x.; then
12635 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12638 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12640 DEFS=-DHAVE_CONFIG_H
12642 # Without the "./", some shells look in PATH for config.status.
12643 : ${CONFIG_STATUS=./config.status}
12645 echo creating $CONFIG_STATUS
12646 rm -f $CONFIG_STATUS
12647 cat > $CONFIG_STATUS <<EOF
12648 #! /bin/sh
12649 # Generated automatically by configure.
12650 # Run this file to recreate the current configuration.
12651 # This directory was configured as follows,
12652 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12654 # $0 $ac_configure_args
12656 # Compiler output produced by configure, useful for debugging
12657 # configure, is in ./config.log if it exists.
12659 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12660 for ac_option
12662 case "\$ac_option" in
12663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12664 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12665 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12666 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12667 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12668 exit 0 ;;
12669 -help | --help | --hel | --he | --h)
12670 echo "\$ac_cs_usage"; exit 0 ;;
12671 *) echo "\$ac_cs_usage"; exit 1 ;;
12672 esac
12673 done
12675 ac_given_srcdir=$srcdir
12676 ac_given_INSTALL="$INSTALL"
12678 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12680 cat >> $CONFIG_STATUS <<EOF
12682 # Protect against being on the right side of a sed subst in config.status.
12683 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12685 $ac_vpsub
12686 $extrasub
12687 s%@SHELL@%$SHELL%g
12688 s%@CFLAGS@%$CFLAGS%g
12689 s%@CPPFLAGS@%$CPPFLAGS%g
12690 s%@CXXFLAGS@%$CXXFLAGS%g
12691 s%@FFLAGS@%$FFLAGS%g
12692 s%@DEFS@%$DEFS%g
12693 s%@LDFLAGS@%$LDFLAGS%g
12694 s%@LIBS@%$LIBS%g
12695 s%@exec_prefix@%$exec_prefix%g
12696 s%@prefix@%$prefix%g
12697 s%@program_transform_name@%$program_transform_name%g
12698 s%@bindir@%$bindir%g
12699 s%@sbindir@%$sbindir%g
12700 s%@libexecdir@%$libexecdir%g
12701 s%@datadir@%$datadir%g
12702 s%@sysconfdir@%$sysconfdir%g
12703 s%@sharedstatedir@%$sharedstatedir%g
12704 s%@localstatedir@%$localstatedir%g
12705 s%@libdir@%$libdir%g
12706 s%@includedir@%$includedir%g
12707 s%@oldincludedir@%$oldincludedir%g
12708 s%@infodir@%$infodir%g
12709 s%@mandir@%$mandir%g
12710 s%@RUNPROG@%$RUNPROG%g
12711 s%@MPROGS@%$MPROGS%g
12712 s%@LDSHFLAGS@%$LDSHFLAGS%g
12713 s%@HOST_OS@%$HOST_OS%g
12714 s%@PAM_MOD@%$PAM_MOD%g
12715 s%@WRAP@%$WRAP%g
12716 s%@WRAP32@%$WRAP32%g
12717 s%@PICFLAG@%$PICFLAG%g
12718 s%@SHLIBEXT@%$SHLIBEXT%g
12719 s%@CC@%$CC%g
12720 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12721 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12722 s%@INSTALL_DATA@%$INSTALL_DATA%g
12723 s%@AWK@%$AWK%g
12724 s%@host@%$host%g
12725 s%@host_alias@%$host_alias%g
12726 s%@host_cpu@%$host_cpu%g
12727 s%@host_vendor@%$host_vendor%g
12728 s%@host_os@%$host_os%g
12729 s%@build@%$build%g
12730 s%@build_alias@%$build_alias%g
12731 s%@build_cpu@%$build_cpu%g
12732 s%@build_vendor@%$build_vendor%g
12733 s%@build_os@%$build_os%g
12734 s%@RANLIB@%$RANLIB%g
12735 s%@LN_S@%$LN_S%g
12736 s%@LIBTOOL@%$LIBTOOL%g
12737 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12738 s%@BROKEN_CC@%$BROKEN_CC%g
12739 s%@target@%$target%g
12740 s%@target_alias@%$target_alias%g
12741 s%@target_cpu@%$target_cpu%g
12742 s%@target_vendor@%$target_vendor%g
12743 s%@target_os@%$target_os%g
12744 s%@CPP@%$CPP%g
12745 s%@LIBOBJS@%$LIBOBJS%g
12746 s%@TERMLIBS@%$TERMLIBS%g
12747 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12748 s%@ROFF@%$ROFF%g
12749 s%@QUOTAOBJS@%$QUOTAOBJS%g
12750 s%@privatedir@%$privatedir%g
12751 s%@lockdir@%$lockdir%g
12752 s%@swatdir@%$swatdir%g
12753 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12754 s%@builddir@%$builddir%g
12756 CEOF
12759 cat >> $CONFIG_STATUS <<\EOF
12761 # Split the substitutions into bite-sized pieces for seds with
12762 # small command number limits, like on Digital OSF/1 and HP-UX.
12763 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12764 ac_file=1 # Number of current file.
12765 ac_beg=1 # First line for current file.
12766 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12767 ac_more_lines=:
12768 ac_sed_cmds=""
12769 while $ac_more_lines; do
12770 if test $ac_beg -gt 1; then
12771 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12772 else
12773 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12775 if test ! -s conftest.s$ac_file; then
12776 ac_more_lines=false
12777 rm -f conftest.s$ac_file
12778 else
12779 if test -z "$ac_sed_cmds"; then
12780 ac_sed_cmds="sed -f conftest.s$ac_file"
12781 else
12782 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12784 ac_file=`expr $ac_file + 1`
12785 ac_beg=$ac_end
12786 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12788 done
12789 if test -z "$ac_sed_cmds"; then
12790 ac_sed_cmds=cat
12794 cat >> $CONFIG_STATUS <<EOF
12796 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12798 cat >> $CONFIG_STATUS <<\EOF
12799 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12801 case "$ac_file" in
12802 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12803 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12804 *) ac_file_in="${ac_file}.in" ;;
12805 esac
12807 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12809 # Remove last slash and all that follows it. Not all systems have dirname.
12810 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12811 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12812 # The file is in a subdirectory.
12813 test ! -d "$ac_dir" && mkdir "$ac_dir"
12814 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12815 # A "../" for each directory in $ac_dir_suffix.
12816 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12817 else
12818 ac_dir_suffix= ac_dots=
12821 case "$ac_given_srcdir" in
12822 .) srcdir=.
12823 if test -z "$ac_dots"; then top_srcdir=.
12824 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12825 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12826 *) # Relative path.
12827 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12828 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12829 esac
12831 case "$ac_given_INSTALL" in
12832 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12833 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12834 esac
12836 echo creating "$ac_file"
12837 rm -f "$ac_file"
12838 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12839 case "$ac_file" in
12840 *Makefile*) ac_comsub="1i\\
12841 # $configure_input" ;;
12842 *) ac_comsub= ;;
12843 esac
12845 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12846 sed -e "$ac_comsub
12847 s%@configure_input@%$configure_input%g
12848 s%@srcdir@%$srcdir%g
12849 s%@top_srcdir@%$top_srcdir%g
12850 s%@INSTALL@%$INSTALL%g
12851 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12852 fi; done
12853 rm -f conftest.s*
12855 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12856 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12858 # ac_d sets the value in "#define NAME VALUE" lines.
12859 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12860 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12861 ac_dC='\3'
12862 ac_dD='%g'
12863 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12864 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12865 ac_uB='\([ ]\)%\1#\2define\3'
12866 ac_uC=' '
12867 ac_uD='\4%g'
12868 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12869 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12870 ac_eB='$%\1#\2define\3'
12871 ac_eC=' '
12872 ac_eD='%g'
12874 if test "${CONFIG_HEADERS+set}" != set; then
12876 cat >> $CONFIG_STATUS <<EOF
12877 CONFIG_HEADERS="include/config.h"
12879 cat >> $CONFIG_STATUS <<\EOF
12881 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12883 case "$ac_file" in
12884 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12885 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12886 *) ac_file_in="${ac_file}.in" ;;
12887 esac
12889 echo creating $ac_file
12891 rm -f conftest.frag conftest.in conftest.out
12892 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12893 cat $ac_file_inputs > conftest.in
12897 # Transform confdefs.h into a sed script conftest.vals that substitutes
12898 # the proper values into config.h.in to produce config.h. And first:
12899 # Protect against being on the right side of a sed subst in config.status.
12900 # Protect against being in an unquoted here document in config.status.
12901 rm -f conftest.vals
12902 cat > conftest.hdr <<\EOF
12903 s/[\\&%]/\\&/g
12904 s%[\\$`]%\\&%g
12905 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12906 s%ac_d%ac_u%gp
12907 s%ac_u%ac_e%gp
12909 sed -n -f conftest.hdr confdefs.h > conftest.vals
12910 rm -f conftest.hdr
12912 # This sed command replaces #undef with comments. This is necessary, for
12913 # example, in the case of _POSIX_SOURCE, which is predefined and required
12914 # on some systems where configure will not decide to define it.
12915 cat >> conftest.vals <<\EOF
12916 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12919 # Break up conftest.vals because some shells have a limit on
12920 # the size of here documents, and old seds have small limits too.
12922 rm -f conftest.tail
12923 while :
12925 ac_lines=`grep -c . conftest.vals`
12926 # grep -c gives empty output for an empty file on some AIX systems.
12927 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12928 # Write a limited-size here document to conftest.frag.
12929 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12930 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12931 echo 'CEOF
12932 sed -f conftest.frag conftest.in > conftest.out
12933 rm -f conftest.in
12934 mv conftest.out conftest.in
12935 ' >> $CONFIG_STATUS
12936 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12937 rm -f conftest.vals
12938 mv conftest.tail conftest.vals
12939 done
12940 rm -f conftest.vals
12942 cat >> $CONFIG_STATUS <<\EOF
12943 rm -f conftest.frag conftest.h
12944 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12945 cat conftest.in >> conftest.h
12946 rm -f conftest.in
12947 if cmp -s $ac_file conftest.h 2>/dev/null; then
12948 echo "$ac_file is unchanged"
12949 rm -f conftest.h
12950 else
12951 # Remove last slash and all that follows it. Not all systems have dirname.
12952 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12954 # The file is in a subdirectory.
12955 test ! -d "$ac_dir" && mkdir "$ac_dir"
12957 rm -f $ac_file
12958 mv conftest.h $ac_file
12960 fi; done
12963 cat >> $CONFIG_STATUS <<EOF
12966 cat >> $CONFIG_STATUS <<\EOF
12968 exit 0
12970 chmod +x $CONFIG_STATUS
12971 rm -fr confdefs* $ac_clean_files
12972 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1